]> git.proxmox.com Git - grub2.git/blob - ChangeLog
* grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
[grub2.git] / ChangeLog
1 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
2 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3
4 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
5 into account when calculating radius.
6
7 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
8
9 * grub-core/gfxmenu/view.c: Fix off-by-one error.
10
11 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
12
13 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
14
15 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
16
17 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
18 missing closing bracket.
19
20 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
21
22 * INSTALL: Mention xorriso requirement.
23
24 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
25
26 * grub-core/commands/verify.c: Fix hash algorithms values for
27 the first three hashes - they start with 1, not with 0.
28
29 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
30
31 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
32 Try terminating EFI services several times due to quirks in some
33 implementations.
34
35 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
36
37 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
38 skipping Event, Device, Processor, PowerRes, ThermalZone, and
39 BankField extended opcodes.
40 (get_sleep_type): Add minimal scope handling (just enough to
41 handle setting the scope to the root path).
42 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
43 * include/grub/acpi.h: Add enumeration values for Event, Device,
44 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
45
46 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
47
48 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
49 memory leak.
50
51 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
52
53 * grub-core/disk/ahci.c: Give more time for AHCI request.
54
55 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
56
57 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
58 command.
59
60 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
61
62 Replace the region at 0 from coreboot tables to available in BSD
63 memory map.
64
65 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
66
67 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
68 non-BIOS platforms.
69
70 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
71
72 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
73 platforms.
74
75 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
76
77 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
78 handling of multi-device filesystems.
79
80 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
81
82 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
83 platforms.
84
85 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
86
87 Add new 'proc' filesystem framework and put luks_script into it.
88
89 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
90
91 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
92 and qemu.
93
94 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
95
96 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
97
98 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
99
100 Add ability to generate newc additions on runtime.
101
102 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
103
104 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
105 description.
106
107 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
108
109 * po/POTFILES.in: Regenerate.
110
111 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
112
113 * grub-core/commands/verify.c (hashes): Add several hashes
114 from the spec.
115
116 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
117
118 Slight improve in USB-related boot-time checkpoints.
119
120 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
121
122 * grub-core/commands/boottime.c: Fix copyright header.
123
124 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
125
126 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
127 coreboot tables content. Support for cbmemc.
128
129 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
130
131 Fix a conflict between ports structures with 2 controllers of
132 same kind.
133
134 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
135
136 * include/grub/boottime.h: Add missing file.
137
138 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
139
140 Initialize USB ports in parallel to speed-up boot.
141
142 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
143
144 Fix USB devices not being detected when requested
145 due to delayed attach.
146
147 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
148
149 Implement boot time analysis framework.
150
151 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
152
153 Remove get_endpoint_descriptor and change all functions needing
154 descriptor to just receive it as argument rather than endpoint
155 address.
156
157 2013-03-19 Aleš Nesrsta <starous@volny.cz>
158
159 Better estimate the maximum USB transfer size.
160
161 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
162
163 Resend a packet if we got the wrong buffer in status.
164
165 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
166
167 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
168 multiplication rather than division.
169
170 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
171
172 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
173 than divisions.
174
175 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
176
177 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
178 operations to have intended shifts and not divisions.
179
180 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
181
182 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
183 intended shifts rather than division.
184
185 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
186
187 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
188 computation for some years before epoch. Avode confusing division
189 while on it.
190
191 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
192
193 * grub-core/video/i386/pc/vbe.c
194 (grub_video_vbe_print_adapter_specific_info): Replace division by
195 shifts.
196
197 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
198
199 Adjust types in gdb module to have intended unsigned shifts rather than
200 signed divisions.
201
202 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
203
204 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
205 maximum size is 4G - 1 on hfs
206
207 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
208
209 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
210
211 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
212
213 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
214 function.
215
216 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
217
218 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
219 causing gcc error with gcc 4.7.1.
220
221 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
222
223 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
224 dereference null pointer. While the code is technically correct, gcc
225 may eliminate a null check if pointer is already dereferenced.
226
227 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
228
229 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
230 OOM check.
231 * grub-core/normal/term.c (read_terminal_list): Likewise.
232
233 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
234
235 Lift up core size limits on some platforms. Fix potential memory
236 corruption with big core on small memory systems. Document remaining
237 limits.
238
239 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
240
241 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
242 gotoxy to 0,0.
243
244 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
245
246 Remove all trampoline support. Add -Wtrampolines when
247 present. Remove symbols used for trampolines to make
248 link fail if trampolines are present.
249
250 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
251
252 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
253 append out of its parent.
254
255 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
256
257 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
258 parent.
259
260 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
261
262 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
263 all vars to a macro. All users updated.
264
265 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
266
267 * grub-core/disk/ieee1275/nand.c: Fix compilation on
268 i386-ieee1275.
269
270 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
271
272 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
273
274 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
275
276 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
277
278 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
279
280 Move to more hookless approach in IEEE1275 devices handling.
281
282 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
283
284 * grub-core/kern/term.c (grub_term_normal_color),
285 (grub_term_highlight_color): Add back lost defaults.
286
287 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
288
289 Make elfload not use hooks. Opt for flags and iterators instead.
290
291 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
292
293 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
294 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
295
296 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
297
298 * grub-core/script/execute.c (gettext_append): Remove nested functions.
299
300 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
301
302 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
303 hook pass-through parameter. All users updated and unnested.
304
305 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
306
307 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
308 out of its parent.
309
310 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
311
312 * grub-core/fs/hfs.c: Remove nested functions.
313
314 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
315
316 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
317 the context through.
318 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
319
320 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
321
322 * util/grub-editenv.c (list_variables): Move print_var out of its
323 parent.
324
325 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
326
327 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
328 function.
329
330 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
331
332 * grub-core/gentrigtables.c: Make tables const.
333
334 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
335
336 Remove nested functions from videoinfo iterators.
337
338 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
339
340 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
341 for 64-bit platforms.
342
343 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
344
345 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
346 a FOR_CHILDREN macro.
347
348 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
349
350 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
351 platform from firmware path.
352
353 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
354
355 Enable linux16 on non-BIOS systems for i.a. memtest.
356
357 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
358 correctly.
359 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
360
361 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
362
363 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
364 Fix end of table condition.
365
366 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
367
368 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
369 out of its parent.
370
371 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
372
373 * grub-core/fs/jfs.c: Remove nested functions.
374
375 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
376
377 * grub-core/fs/minix.c: Remove nested functions.
378
379 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
380
381 * grub-core/fs/iso9660.c: Remove nested functions.
382
383 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
384
385 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
386 of parent function.
387
388 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
389
390 * util/grub-fstest.c: Remove nested functions.
391
392 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
393
394 * grub-core/loader/machoXX.c: Remove nested functions.
395
396 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
397
398 Remove nested functions from disk and file read hooks.
399
400 * include/grub/disk.h (grub_disk_read_hook_t): New type.
401 (struct grub_disk): Add read_hook_data member.
402 * include/grub/file.h (struct grub_file): Likewise.
403 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
404 argument.
405
406 Update all callers.
407
408 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
409
410 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
411 Fix off by one error in enumerating extended partitions.
412
413 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
414
415 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
416 memory leak if device name is not found.
417
418 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
419
420 * grub-core/normal/menu_entry.c (update_screen): remove
421 unused variable `off' which caused scroll down arrow to be always shown.
422
423 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
424
425 * grub-core/normal/menu_entry.c (insert_string): fix off by one
426 access to unallocated memory.
427
428 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
429
430 * Makefile.util.def: Add partmap/msdos.c to common library.
431 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
432 * grub-core/disk/ldm.c: Check for existence of
433 GRUB_PC_PARTITION_TYPE_LDM.
434
435 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
436
437 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
438 sizes and display sector size.
439
440 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
441
442 Implement new command cmosdump.
443
444 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
445
446 Support Openfirmware disks with non-512B sectors.
447
448 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
449 size of the disk.
450 * (grub_ofdisk_get_block_size): New function.
451 * (grub_ofdisk_prepare): Use the correct block size.
452 * (grub_ofdisk_read): Likewise.
453 * (grub_ofdisk_write): Likewise.
454 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
455 New proto.
456
457 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
458
459 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
460
461 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
462
463 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
464 on first error.
465
466 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
467
468 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
469 freeing it.
470
471 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
472
473 Implement USBDebug (full USB stack variant).
474
475 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
476
477 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
478 unless they have unexpected values.
479
480 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
481
482 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
483 grub_print_error.
484
485 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
486
487 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
488 zero-out of port structure.
489
490 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
491
492 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
493 of extended attributes.
494
495 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
496
497 * util/grub-install.in: change misleading comment about
498 device.map creation
499
500 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
501
502 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
503 when menu highlight color isn't set.
504
505 2013-01-27 C. Masloch <pushbx@38.de>
506
507 Improve FreeDOS direct loading support compatibility.
508
509 * include/grub/i386/relocator.h (grub_relocator16_state):
510 New member ebp.
511 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
512 variable.
513 (grub_relocator16_boot): Handle %ebp.
514 * grub-core/lib/i386/relocator16.S: Likewise.
515 * grub-core/loader/i386/pc/freedos.c:
516 Load BPB to pass kernel which partition to load from.
517 Check that kernel file is not too large.
518 Set register dl to BIOS unit number as well.
519
520 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
521
522 * util/grub-reboot.in (usage): Document the need for
523 GRUB_DEFAULT=saved.
524 * util/grub-set-default.in (usage): Likewise.
525 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
526
527 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
528
529 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
530 than defining WORDS_BIGENDIAN manually.
531
532 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
533
534 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
535 invariants.
536
537 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
538
539 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
540 nested.
541 (blit_comb: add_device_width): Likewise.
542
543 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
544
545 Remove nested functions from USB iterators.
546
547 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
548 (grub_usb_controller_iterate_hook_t): Likewise.
549 (grub_usb_iterate): Add hook_data argument.
550 (grub_usb_controller_iterate): Likewise.
551 (struct grub_usb_controller_dev.iterate): Likewise.
552
553 Update all implementations and callers.
554
555 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
556
557 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
558 margin when not needed.
559
560 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
561
562 Make color variables global instead of it being per-terminal.
563
564 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
565
566 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
567 asterisk.
568
569 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
570
571 Fix powerpc and sparc64 build failures caused by un-nesting memory
572 map iterators.
573
574 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
575
576 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
577 parameter declarations.
578
579 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
580
581 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
582
583 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
584
585 Improve spkmomdem reliability by adding a separator between bytes.
586
587 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
588
589 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
590 an Acer registration utility with several sightings in the wild.
591 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
592
593 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
594
595 Remove nested functions from filesystem directory iterators.
596
597 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
598 (struct grub_fs.dir): Add hook_data argument.
599
600 Update all implementations and callers.
601
602 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
603
604 * docs/grub.texi (Multi-boot manual config): Fix typo for
605 "recommended".
606
607 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
608
609 * util/grub-mkimage.c (main): Postpone freeing arguments.output
610 until after its use in generate_image.
611
612 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
613
614 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
615 initrd size to addr_min, since the initrd will be allocated after
616 this address.
617
618 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
619
620 * conf/Makefile.common: Fix autogen rules to pass definition
621 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
622
623 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
624
625 * include/grub/elf.h: Update ARM definitions based on binutils.
626
627 2013-01-20 Aleš Nesrsta <starous@volny.cz>
628
629 Split long USB transfers into short ones.
630
631 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
632
633 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
634 is interrupted by ESC.
635
636 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
637
638 * util/grub-script-check.c (main): Uniform the error message.
639
640 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
641
642 Remove nested functions from ELF iterators.
643
644 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
645
646 Remove nested functions from device iterators.
647
648 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
649 (grub_arc_iterate_devs): Add hook_data argument.
650 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
651 (struct grub_ata_dev.iterate): Add hook_data argument.
652 * include/grub/device.h (grub_device_iterate_hook_t): New type.
653 (grub_device_iterate): Add hook_data argument.
654 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
655 (struct grub_disk_dev.iterate): Add hook_data argument.
656 (grub_disk_dev_iterate): Likewise.
657 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
658 Likewise.
659 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
660 Likewise.
661 * include/grub/partition.h (grub_partition_iterate_hook_t): New
662 type.
663 (struct grub_partition_map.iterate): Add hook_data argument.
664 (grub_partition_iterate): Likewise.
665 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
666 (struct grub_scsi_dev.iterate): Add hook_data argument.
667
668 Update all callers.
669
670 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
671
672 Fix typos for "developer" and "development".
673
674 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
675
676 Add license header to spkmodem-recv.c.
677
678 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
679
680 Rewrite spkmodem to use PIT for timing. Double the speed.
681
682 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
683
684 Add new command pcidump.
685
686 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
687
688 New terminal outputs using serial: morse and spkmodem.
689
690 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
691
692 Improve bidi handling in entry editor.
693
694 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
695
696 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
697 argument to prevent name collision.
698
699 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
700
701 Remove nested functions from script reading and parsing.
702
703 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
704 getline_data argument, passed to getline.
705 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
706 getline_data argument, passed to grub_parser_split_cmdline.
707 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
708 lexerstate->getline_data to lexerstate->getline.
709 (grub_script_lexer_init): Add getline_data argument, saved in
710 lexerstate->getline_data.
711 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
712 argument, passed to grub_script_parse.
713 * grub-core/script/script.c (grub_script_parse): Add getline_data
714 argument, passed to grub_script_lexer_init.
715 * include/grub/parser.h (grub_parser_split_cmdline): Update
716 prototype. Update all callers to pass appropriate getline data.
717 (struct grub_parser.parse_line): Likewise.
718 (grub_rescue_parse_line): Likewise.
719 * include/grub/reader.h (grub_reader_getline_t): Add void *
720 argument.
721 * include/grub/script_sh.h (struct grub_lexer_param): Add
722 getline_data member.
723 (grub_script_parse): Update prototype. Update all callers to pass
724 appropriate getline data.
725 (grub_script_lexer_init): Likewise.
726 (grub_normal_parse_line): Likewise.
727
728 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
729 data argument.
730 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
731 static instead of nested. Rename to ...
732 (grub_parser_execute_getline): ... this.
733 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
734 data argument.
735 * grub-core/normal/main.c (read_config_file: getline): Make static
736 instead of nested. Rename to ...
737 (read_config_file_getline): ... this.
738 (grub_normal_read_line): Add unused data argument.
739 * grub-core/script/execute.c (grub_script_execute_sourcecode:
740 getline): Make static instead of nested. Rename to ...
741 (grub_script_execute_sourcecode_getline): ... this.
742 * util/grub-script-check.c (main: get_config_line): Make static
743 instead of nested.
744
745 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
746
747 Remove nested functions from memory map iterators.
748
749 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
750 argument, passed to hook.
751 * grub-core/kern/i386/coreboot/mmap.c
752 (grub_linuxbios_table_iterate): Likewise.
753 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
754 instead of nested.
755 (grub_machine_mmap_iterate): Add hook_data argument.
756 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
757 Add hook_data argument, passed to hook.
758 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
759 Likewise.
760 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
761 Likewise.
762 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
763 Likewise.
764 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
765 Likewise.
766 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
767 Likewise.
768 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
769 Likewise.
770 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
771 (grub_machine_mmap_iterate): Likewise.
772 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
773 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
774 prototype.
775 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
776 Remove NESTED_FUNC_ATTR from here and from all users.
777 (grub_mmap_iterate): Update prototype.
778 (grub_efi_mmap_iterate): Update prototype. Update all callers to
779 pass appropriate hook data.
780 (grub_machine_mmap_iterate): Likewise.
781
782 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
783 static instead of nested.
784 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
785 Rename to ...
786 (lsmmap_hook): ... this.
787 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
788 Likewise.
789 (grub_efiemu_mmap_fill: fill_hook): Likewise.
790 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
791 heap_init): Likewise.
792 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
793 Rename to ...
794 (mmap_iterate_hook): ... this.
795 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
796 Likewise.
797 * grub-core/lib/ieee1275/relocator.c
798 (grub_relocator_firmware_get_max_events: count): Likewise.
799 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
800 to ...
801 (grub_relocator_firmware_fill_events_iter): ... this.
802 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
803 hook): Likewise. Rename to ...
804 (grub_relocator_alloc_chunk_align_iter): ... this.
805 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
806 Rename to ...
807 (generate_e820_mmap_iter): ... this.
808 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
809 Rename to ...
810 (count_hook): ... this.
811 (grub_linux_boot: hook): Likewise. Rename to ...
812 (grub_linux_boot_mmap_find): ... this.
813 (grub_linux_boot: hook_fill): Likewise. Rename to ...
814 (grub_linux_boot_mmap_fill): ... this.
815 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
816 hook): Likewise. Rename to ...
817 (grub_fill_multiboot_mmap_iter): ... this.
818 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
819 hook): Likewise. Rename to ...
820 (count_hook): ... this.
821 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
822 hook): Likewise. Rename to ...
823 (grub_fill_multiboot_mmap_iter): ... this.
824 * grub-core/loader/powerpc/ieee1275/linux.c
825 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
826 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
827 Likewise. Rename to ...
828 (alloc_phys_choose): ... this.
829 (determine_phys_base: get_physbase): Likewise.
830 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
831 find_hook): Likewise.
832 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
833 (malloc_hook: count_hook): Likewise.
834 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
835 Likewise. Rename to ...
836 (lower_hook): ... this.
837 (grub_mmap_get_upper: hook): Likewise. Rename to ...
838 (upper_hook): ... this.
839 (grub_mmap_get_post64: hook): Likewise. Rename to ...
840 (post64_hook): ... this.
841 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
842 Likewise. Rename to ...
843 (lower_hook): ... this.
844 (grub_mmap_get_upper: hook): Likewise. Rename to ...
845 (upper_hook): ... this.
846 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
847 (grub_mmap_iterate: fill_hook): Likewise.
848 (fill_mask): Pass addr and mask within a single struct.
849 (grub_cmd_badram: hook): Make static instead of nested. Rename
850 to ...
851 (badram_iter): ... this.
852 (grub_cmd_cutmem: hook): Likewise. Rename to ...
853 (cutmem_iter): ... this.
854
855 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
856
857 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
858 delimit path in strings using quotes.
859 * util/getroot.c (grub_guess_root_devices): Likewise.
860 (grub_make_system_path_relative_to_its_root): Likewise.
861 * util/grub-probe.c (probe): Likewise.
862 * util/ieee1275/ofpath.c (find_obppath): Likewise.
863 (xrealpath): Likewise.
864
865 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
866
867 Fix compilation with older compilers.
868
869 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
870 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
871 declarations.
872 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
873 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
874 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
875 identifier with b.
876 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
877 * include/grub/crypto.h: Add type defines.
878 * util/import_gcrypth.sed: Remove duplicate type defines.
879
880 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
881
882 New command list_trusted.
883
884 * grub-core/commands/verify.c (grub_cmd_list): New function.
885
886 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
887
888 * util/grub-mkimage.c (generate_image): Fix "size of public key"
889 info message.
890
891 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
892
893 Remove nested functions from PCI iterators.
894
895 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
896 passed to hook. Update all callers to pass appropriate hook data.
897 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
898 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
899 Remove NESTED_FUNC_ATTR from here and from all users.
900 (grub_pci_iterate): Update prototype.
901 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
902 instead of nested. Rename to ...
903 (grub_cs5536_find_iter): ... this.
904 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
905 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
906 Likewise.
907 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
908 Likewise.
909 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
910 Likewise.
911 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
912 Likewise.
913 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
914 * grub-core/video/radeon_fuloong2e.c
915 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
916 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
917 find_card): Likewise.
918 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
919 Likewise.
920
921 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
922
923 * grub-core/commands/verify.c: Mark messages for translating.
924
925 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
926
927 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
928 fatal.
929
930 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
931
932 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
933 fatal.
934
935 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
936
937 * autogen.sh: Do not try to delete nonexistant files.
938 * util/import_gcrypth.sed: Add some missing header removals.
939
940 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
941
942 Clean up dangling references to grub-setup.
943 Fixes Ubuntu bug #1082045.
944
945 * docs/grub.texi (Images): Refer generally to grub-install rather
946 than directly to grub-setup.
947 (Installing GRUB using grub-install): Remove direct reference to
948 grub-setup.
949 (Device map) Likewise.
950 (Invoking grub-install): Likewise.
951 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
952 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
953 * util/grub-install.in (usage): Likewise.
954
955 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
956 Apply to grub-bios-setup and grub-sparc64-setup rather than to
957 grub-setup.
958 * configure.ac: Remove grub_setup output variable.
959
960 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
961 to grub-bios-setup.
962 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
963 grub-setup to grub-sparc64-setup.
964
965 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
966
967 Import gcrypt public-key cryptography and implement signature checking.
968
969 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
970
971 * grub-core/fs/ntfs.c: Ue more appropriate types.
972 * grub-core/fs/ntfscomp.c: Likewise.
973 * include/grub/ntfs.h: Likewise.
974
975 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
976
977 Support Apple FAT binaries on non-Apple platforms.
978
979 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
980 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
981 Likewise.
982 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
983 Apple FAT binaries.
984
985 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
986
987 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
988 sector devices.
989
990 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
991
992 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
993 explicitly zeroing elements.
994 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
995 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
996 of elements in a structure already allocated using grub_zalloc.
997 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
998
999 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
1000
1001 * docs/grub.texi (grub_cpu): New subsection.
1002 (grub_platform): Likewise.
1003
1004 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
1005
1006 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
1007
1008 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1009
1010 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
1011 divisions.
1012
1013 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1014
1015 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
1016 * grub-core/fs/ntfscomp.c: Likewise.
1017 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
1018 (grub_ntfs_comp): Likewise.
1019
1020 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1021
1022 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
1023 Rename to ...
1024 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
1025 of groups_per_block. All users updated.
1026
1027 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1028
1029 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
1030 grub_error properly.
1031 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
1032 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
1033
1034 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1035
1036 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
1037 always in /boot/zfs.
1038 Reported by: Yuta Satoh.
1039
1040 2013-01-03 Yuta Satoh <nigoro>
1041
1042 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
1043 ${grub_probe}
1044
1045 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1046
1047 * configure.ac: Extend -Wno-trampolines to host.
1048
1049 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1050
1051 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
1052 entry->len = 0.
1053
1054 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
1055
1056 * docs/grub.texi (Invoking grub-mkrelpath): New section.
1057 (Invoking grub-script-check): Likewise.
1058
1059 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
1060
1061 * docs/grub.texi (Invoking grub-mount): New section.
1062 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
1063
1064 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
1065
1066 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
1067 test failures, so that a failing unit test correctly causes 'make
1068 check' to fail.
1069
1070 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
1071
1072 Fix failing printf test.
1073
1074 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
1075 '$' in the correct order when collecting type information.
1076
1077 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
1078
1079 * docs/grub.texi (configfile): Explain environment variable
1080 handling.
1081 (source): New section.
1082 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
1083
1084 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
1085
1086 Remove several trivially-unnecessary uses of nested functions.
1087
1088 * grub-core/commands/i386/pc/sendkey.c
1089 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
1090 instead of nested.
1091 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
1092 Rename to ...
1093 (legacy_file_getline): ... this.
1094 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
1095 Likewise.
1096 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
1097 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
1098 to ...
1099 (probe_dummy_iter): ... this.
1100 * grub-core/kern/i386/coreboot/mmap.c
1101 (grub_linuxbios_table_iterate: check_signature): Likewise.
1102 * grub-core/kern/parser.c (grub_parser_split_cmdline:
1103 check_varstate): Likewise. Mark inline.
1104 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
1105 an additional parameter.
1106 (find_long: fnd_long): Likewise. Pass two additional parameters.
1107 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
1108 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
1109 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
1110 Likewise. Rename to ...
1111 (grub_cmos_find_port_iter): ... this.
1112 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
1113 Rename to ...
1114 (find_rtc_iter): ... this.
1115
1116 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
1117 function directly into the function body, since it is only called
1118 once.
1119
1120 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
1121
1122 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
1123 __attribute__ ((unused)).
1124 * grub-core/video/bochs.c (find_card): Likewise.
1125 * grub-core/video/cirrus.c (find_card): Likewise.
1126 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
1127 * grub-core/video/sis315pro.c (find_card): Likewise.
1128 * grub-core/video/sm712.c (find_card): Likewise.
1129
1130 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1131
1132 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
1133 Fixes Savannah bug #37821.
1134
1135 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1136
1137 Apply program name transformations at build-time rather than at
1138 run-time. Fixes Debian bug #696465.
1139
1140 * acinclude.m4 (grub_TRANSFORM): New macro.
1141 * configure.ac: Create output variables with transformed names for
1142 most programs.
1143 * util/bash-completion.d/grub-completion.bash.in: Use
1144 pre-transformed variables for program names.
1145 * util/grub-install.in: Likewise.
1146 * util/grub-kbdcomp.in: Likewise.
1147 * util/grub-mkconfig.in: Likewise.
1148 * util/grub-mkconfig_lib.in: Likewise.
1149 * util/grub-mknetdir.in: Likewise.
1150 * util/grub-mkrescue.in: Likewise.
1151 * util/grub-mkstandalone.in: Likewise.
1152 * util/grub-reboot.in: Likewise.
1153 * util/grub-set-default.in: Likewise.
1154 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1155 * tests/util/grub-shell-tester.in: Remove unused assignment.
1156 * tests/util/grub-shell.in: Likewise.
1157 * util/grub.d/00_header.in: Likewise.
1158
1159 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1160
1161 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
1162
1163 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
1164 HAVE_RAW_DECL_GETS.
1165 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
1166
1167 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1168
1169 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
1170 Reported by: Eriks Latosheks <foresterlv>.
1171
1172 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1173
1174 * docs/grub.texi (Network): Update instructions on generating netboot
1175 image.
1176
1177 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1178
1179 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
1180 around device name if necessarry.
1181
1182 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1183
1184 * util/grub-install.in: Follow the symbolic link parameter added
1185 to the file command.
1186
1187 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
1188
1189 * util/grub-install.in: Remove stale TODO.
1190
1191 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1192
1193 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
1194 dynamic allocation for the bootpath buffer.
1195
1196 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
1197
1198 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
1199 window too small.
1200
1201 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1202
1203 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
1204 argument rather than font name. All users updated.
1205 (grub_gfxterm_set_window): Likewise.
1206
1207 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
1208
1209 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
1210 from working.
1211
1212 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1213
1214 * util/getroot.c (convert_system_partition_to_system_disk): Support
1215 nbd disks.
1216
1217 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1218
1219 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
1220 infinite loop on corrupted FS.
1221
1222 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1223
1224 Fix big-endian mtime.
1225
1226 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
1227 together sec and usec.
1228 (grub_ufs_dir): Use correct byteswapping for UFS time.
1229
1230 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1231
1232 Support big-endian UFS1.
1233
1234 * Makefile.util.def (libgrubmods): Add ufs_be.c
1235 * grub-core/Makefile.core.def (ufs1_be): New module.
1236 * grub-core/fs/ufs_be.c: New file.
1237 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
1238 the file.
1239
1240 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
1241
1242 * include/grub/types.h: Fix functionality unaffecting typo in
1243 GRUB_TARGET_WORDSIZE conditional macro.
1244
1245 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1246
1247 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
1248
1249 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
1250
1251 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
1252 that /netbsd appears first (when it exists).
1253
1254 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
1255
1256 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
1257 Fixes Savannah bug #37558.
1258
1259 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
1260
1261 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
1262 description of extract_entries_configfile.
1263
1264 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
1265
1266 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
1267 preferred_address.
1268 (grub_cmd_linux): Likewise.
1269 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
1270 preferred_lifetime. Update all users.
1271
1272 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
1273
1274 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
1275 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
1276
1277 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
1278
1279 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
1280 errors from grub-probe to /dev/null, not stdout.
1281
1282 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
1283
1284 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
1285 sector 1.
1286
1287 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
1288
1289 * util/grub-install.in: Make the error message if $source_dir
1290 doesn't exist more useful.
1291
1292 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
1293
1294 Fix grub-emu build on FreeBSD.
1295
1296 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
1297 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
1298 headers on Linux.
1299 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
1300 implementation is currently Linux-specific.
1301 * util/getroot.c (exec_pipe): Define only on Linux or when either
1302 libzfs or libnvpair is unavailable.
1303 (find_root_devices_from_poolname): Remove unused path variable.
1304
1305 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
1306
1307 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
1308 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
1309 should fit before end == 63.
1310
1311 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
1312
1313 * util/grub-setup.c (write_rootdev): Remove unused core_img
1314 parameter. Update all callers.
1315 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
1316 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
1317 GRUB_SETUP_BIOS.
1318
1319 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1320
1321 * util/grub-mkconfig_lib.in (grub_tab): New variable.
1322 (grub_add_tab): New function.
1323 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
1324 * util/grub.d/10_illumos.in: Likewise.
1325 * util/grub.d/10_kfreebsd.in: Likewise.
1326 * util/grub.d/10_linux.in: Likewise.
1327 * util/grub.d/10_netbsd.in: Likewise.
1328 * util/grub.d/10_windows.in: Likewise.
1329 * util/grub.d/10_xnu.in: Likewise.
1330 * util/grub.d/20_linux_xen.in: Likewise.
1331 * util/grub.d/30_os-prober.in: Likewise.
1332
1333 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1334
1335 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1336 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
1337 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
1338 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
1339 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
1340 ieee1275-nocursor.
1341 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1342 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
1343
1344 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1345
1346 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
1347 le-conversion.
1348 Reported by: BURETTE, Bernard.
1349
1350 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
1351
1352 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
1353 from comment.
1354
1355 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
1356
1357 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
1358 IEEE1275 machines. Fixes powerpc-emu compilation.
1359 * include/grub/terminfo.h: Likewise.
1360
1361 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1362
1363 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
1364 a const pointer.
1365 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
1366 const pointer.
1367 (efiemu_set_variable): Make vendor_guid a const pointer.
1368
1369 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1370
1371 Don't require grub-mkconfig_lib to generate manpages for programs.
1372
1373 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
1374 dependencies, don't add grub-mkconfig_lib.
1375 (program): Pass empty adddeps.
1376 (script): Pass grub-mkconfig_lib as adddeps.
1377
1378 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1379
1380 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
1381 * util/getroot.c (grub_find_device): Likewise.
1382 (get_mdadm_uuid): Likewise.
1383 (grub_util_is_imsm): Likewise.
1384 (grub_util_pull_device): Likewise.
1385 * util/grub-probe.c (probe): Likewise.
1386
1387 2012-09-10 Benoit Gschwind <gschwind>
1388
1389 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
1390 (devs): Add devpath_8.
1391
1392 2012-09-08 Peter Jones <pjones@redhat.com>
1393
1394 * grub-core/Makefile.core.def (efifwsetup): New module.
1395 * grub-core/commands/efi/efifwsetup.c: New file.
1396 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
1397 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
1398 New define.
1399 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
1400
1401 2012-09-05 Jiri Slaby <jslaby@suse.cz>
1402
1403 * configure.ac: Add SuSe path.
1404
1405 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1406
1407 * NEWS: Fix typo.
1408
1409 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1410
1411 * util/import_gcry.py: Sort cipher_files, to make build system
1412 generation more deterministic.
1413
1414 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1415
1416 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
1417 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
1418 (grub_set_datetime): Likewise.
1419
1420 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1421
1422 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
1423 warnings.
1424
1425 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1426
1427 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
1428
1429 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1430
1431 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
1432
1433 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1434
1435 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
1436 required for checkouts from bzr, but it may be useful for users or
1437 distributors wishing to update translations against a tarball
1438 distribution, and it can be helpful for the tarball to be a superset
1439 of what's in bzr.
1440
1441 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1442
1443 * Makefile.am (EXTRA_DIST): Add
1444 grub-core/tests/boot/linux.init-mips.S,
1445 grub-core/tests/boot/linux.init-ppc.S, and
1446 grub-core/tests/boot/linux-ppc.cfg.
1447
1448 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1449
1450 * grub-core/mmap/mips/loongson: Remove empty directory.
1451
1452 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1453
1454 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
1455 gone.
1456
1457 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1458
1459 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
1460 grub-sparc64-setup.
1461
1462 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1463
1464 * configure.ac: Strengthen the test for working -nostdinc -isystem.
1465
1466 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1467
1468 * po/POTFILES.in: Regenerated.
1469
1470 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1471
1472 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
1473 (NetBSD): New subsection.
1474
1475 2012-07-22 Ales Nesrsta <starous@volny.cz>
1476
1477 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
1478 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
1479
1480 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1481
1482 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
1483 * util/grub.d/10_hurd.in: Add missing quoting.
1484 * util/grub.d/10_illumos.in: Likewise.
1485 * util/grub.d/10_kfreebsd.in: Likewise.
1486 * util/grub.d/10_linux.in: Likewise.
1487 * util/grub.d/20_linux_xen.in: Likewise.
1488
1489 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1490
1491 New command `lsefi'.
1492
1493 * grub-core/Makefile.core.def (lsefi): New module.
1494 * grub-core/commands/efi/lsefi.c: New file.
1495 * include/grub/efi/api.h: Add more GUIDs.
1496
1497 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1498
1499 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
1500 (grub_bsd_elf32_hook): Likewise.
1501 (grub_bsd_elf64_size_hook): Likewise.
1502 (grub_bsd_elf64_hook): Likewise.
1503 (grub_bsd_load_elf): Likewise.
1504
1505 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1506
1507 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
1508 if hash function is unavailable.
1509 (dec_stream_header): Likewise.
1510
1511 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1512
1513 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
1514 filter state.
1515
1516 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1517
1518 Fix coreboot compilation.
1519
1520 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
1521 (grub_vga_text_init_real): ... this.
1522 (grub_vga_text_fini): Rename to ...
1523 (grub_vga_text_fini_real): ... this.
1524
1525 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1526
1527 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
1528
1529 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1530
1531 * grub-core/lib/legacy_parse.c: Support clear and testload.
1532
1533 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1534
1535 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
1536
1537 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1538
1539 * grub-core/fs/ext2.c: Experimental support for 64-bit.
1540
1541 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1542
1543 * grub-core/net/tftp.c (ack): Fix endianness problem.
1544 (tftp_receive): Likewise.
1545 Reported by: Michael Davidsaver.
1546
1547 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1548
1549 * gentpl.py: Make mans depend on grub-mkconfig_lib.
1550
1551 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1552
1553 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
1554 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
1555 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
1556
1557 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1558
1559 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
1560 efi_mmap_size.
1561 Reported by: Stuart Hayes.
1562
1563 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1564
1565 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
1566
1567 * grub-core/Makefile.core.def (mda_text): New module.
1568 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
1569 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
1570 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
1571 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
1572 here.
1573 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
1574 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
1575 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
1576 here.
1577 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
1578 to ..
1579 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
1580 ... here
1581 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
1582 here.
1583 * grub-core/term/i386/vga_common.c: Removed.
1584 * include/grub/i386/vga_common.h: Likewise.
1585 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
1586 (grub_vga_cr_bw_read): Likewise.
1587 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
1588 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
1589 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
1590 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
1591 grub_vga_cr_read/grub_vga_cr_write.
1592 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
1593
1594 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1595
1596 * configure.ac: Bump version to 2.00.
1597 * grub-core/normal/main.c (features): Add feature_200_final.
1598
1599 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1600 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
1601
1602 * NEWS: Fix unclarity and language mistakes.
1603
1604 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1605
1606 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
1607 additional size to 3 pages.
1608 Reported by: Stuart Hayes.
1609
1610 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1611
1612 * NEWS: Add 2.00 entry.
1613
1614 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1615
1616 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
1617 put explicit "/" for empty path.
1618 (wildcard_expand): Improve dprintf.
1619
1620 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1621
1622 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
1623 it's equal to currnode. This can happen with "" symlink.
1624
1625 2012-06-27 Yves Blusseau <blusseau@zetam.org>
1626
1627 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
1628 echo shell command by printf command.
1629
1630 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1631
1632 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
1633 the value returned by firmware is the maximal position, not diumension.
1634 (grub_terminfo_output_state): Use a more sane fallback.
1635
1636 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1637
1638 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
1639
1640 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1641
1642 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
1643 frequency to 150 MHz.
1644
1645 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1646
1647 Apple fixes.
1648
1649 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
1650 __APPLE_
1651 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
1652 definition.
1653 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
1654
1655 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1656
1657 Handle slash in HFS label.
1658
1659 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
1660 (grub_hfs_dir): Tanslate slash.
1661 (grub_hfs_label): Don't translate slash.
1662
1663 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1664
1665 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
1666 network protocol listing since it introduces problematic dependency on
1667 net module.
1668
1669 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1670
1671 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
1672
1673 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1674
1675 Init video early on yeeloong to avoid being rebooted by watchdog.
1676
1677 * grub-core/Makefile.am (gensm712): New target.
1678 (sm712_start.S): Likewise.
1679 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
1680 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
1681 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
1682 description.
1683 * include/grub/vga.h: Move registry definitions to...
1684 * include/grub/vgaregs.h: ... here.
1685
1686 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1687
1688 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
1689 signedness.
1690
1691 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1692
1693 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
1694 platforms with firmware disk drivers in the core.
1695
1696 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1697
1698 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
1699 informative verbose message.
1700 (read_lv): Handle 64-bit segment size.
1701
1702 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1703
1704 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
1705
1706 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1707
1708 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
1709 character but still remove trainling spaces.
1710 (grub_fat_label): Ignore archive flag.
1711
1712 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1713
1714 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
1715 cast between linux_kernel_header and linux_kernel_params.
1716
1717 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1718
1719 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
1720 type for size.
1721 (grub_raid6_recover_func_t): Likewise.
1722 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
1723 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
1724
1725 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1726
1727 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
1728
1729 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
1730
1731 Fix overflow.
1732
1733 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
1734 [__NetBSD__]: Add explicit cast before bitshift.
1735
1736 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1737
1738 * configure.ac: Bump to 2.00~rc1.
1739
1740 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1741
1742 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
1743 half of $a0.
1744
1745 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1746 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
1747
1748 * docs/grub.texi: Fix search syntax.
1749 (Multi-boot manual config): Put msdos rather than GPT example.
1750 Grammar corrections.
1751
1752 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1753
1754 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
1755
1756 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1757
1758 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
1759
1760 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1761
1762 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
1763 message on double free. Put the value of magic in case of mismatch.
1764
1765 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1766
1767 Speed-up video on yeeloong.
1768
1769 * grub-core/video/sm712.c (framebuffer): Remove render_target and
1770 add cached_ptr.
1771 (grub_video_sm712_video_fini): Unmap cached_ptr.
1772 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
1773 (grub_video_sm712_set_active_render_target): Removed.
1774 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1775 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
1776 sync caches.
1777
1778 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1779
1780 Avoid flushing the same line multiple times on loongson.
1781
1782 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
1783 Step in 32 bytes and not 1 byte.
1784 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
1785 Likewise.
1786
1787 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1788
1789 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
1790 subvolumes.
1791
1792 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1793
1794 Implement flow control for http.
1795
1796 * grub-core/net/http.c (parse_line): Handle response 206.
1797 (http_receive): Stall if too many packets are in the queue.
1798 (http_establish): Fix range header.
1799 (http_seek): Fix double free.
1800 (http_close): Likewise.
1801 (http_packets_pulled): New function.
1802 (grub_http_protocol): Set http_seek
1803 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
1804 (ack_real): Set window depending on i_stall.
1805 (grub_net_send_tcp_packet): Likewise.
1806 (grub_net_tcp_stall): New function.
1807 (grub_net_tcp_unstall): Likewise.
1808 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
1809 (grub_net_tcp_unstall): Likewise.
1810
1811 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1812
1813 * grub-core/net/tftp.c: Decrease stall to 50 packets.
1814
1815 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1816
1817 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
1818
1819 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1820
1821 * tests/util/grub-shell.in: Fix a typo.
1822
1823 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1824
1825 Implement flow control for tftp.
1826
1827 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
1828 packets but stop only if stop condition is satisfied.
1829 (grub_net_fs_read_real): Call packets_pulled after real read. Use
1830 `stall' instead of `eof' as stop condition.
1831 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
1832 (http_err): Likewise.
1833 * grub-core/net/tftp.c (ack): Replace the first argument with data
1834 instead of socket.
1835 (tftp_receive): Stall if too many packets are in wait queue.
1836 (tftp_packets_pulled): New function.
1837 (grub_tftp_protocol): Set packets_pulled.
1838 * include/grub/net.h (grub_net_packets): New field count.
1839 (grub_net_put_packet): Increment count.
1840 (grub_net_remove_packet): Likewise.
1841 (grub_net_app_protocol): New field `packets_pulled'.
1842 (grub_net): New field `stall'.
1843
1844 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1845
1846 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
1847 sync part to handle them.
1848
1849 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1850
1851 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
1852 * grub-core/net/drivers/ieee1275/ofnet.c
1853 (grub_ieee1275_net_config_real): Likewise.
1854
1855 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1856
1857 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
1858 the direct route for server/gateway.
1859
1860 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1861
1862 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
1863 IP address to server name since we may not hame the DNS.
1864
1865 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1866
1867 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
1868 freeing random buffer on failure.
1869 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
1870
1871 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1872
1873 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
1874
1875 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1876
1877 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
1878 reserved bytes.
1879 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
1880 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
1881 Handle malloc error correctly.
1882
1883 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1884
1885 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
1886 blocks.
1887
1888 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1889
1890 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
1891 increment.
1892
1893 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1894
1895 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
1896 none is explicitly specified.
1897
1898 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1899
1900 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
1901 while reallocating.
1902
1903 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1904
1905 Respect netmask from bootp/dhcp.
1906
1907 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
1908 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
1909 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
1910 into ...
1911 (grub_net_add_ipv4_local): ... this.
1912 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
1913 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
1914 (grub_net_add_ipv4_local): New proto.
1915
1916 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1917
1918 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
1919 determining EFI memory map size.
1920
1921 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1922
1923 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
1924
1925 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1926
1927 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
1928 when looking for partition separator.
1929
1930 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1931
1932 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
1933 Escape commas.
1934
1935 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1936
1937 Restructure FAT driver to avoid hook in label reading as it hits a
1938 GCC bug.
1939
1940 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
1941 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
1942 (grub_fat_iterate_dir): Split into ...
1943 (grub_fat_iterate_init): ... this, ...
1944 (grub_fat_iterate_fini): ... this, ...
1945 (grub_fat_iterate_dir_next): ... and this. All users updated.
1946
1947 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1948
1949 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
1950 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
1951 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1952 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
1953 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
1954 New fields last_key and last_key_time.
1955 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
1956 extended key-esc into extended key-extended key.
1957
1958 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1959
1960 Avoid unnecessary memcpy of whole video buffer.
1961
1962 * grub-core/video/fb/video_fb.c (dirty): New struct.
1963 (framebuffer): Add members current_dirty and previous_dirty.
1964 (dirty): New function.
1965 (grub_video_fb_fill_rect): Update dirty.
1966 (common_blitter): Likewise.
1967 (grub_video_fb_scroll): Likewise.
1968 (doublebuf_blit_update_screen): Copy only dirty part.
1969 (doublebuf_pageflipping_update_screen): Likewise.
1970 (grub_video_fb_doublebuf_blit_init): Init dirty.
1971 (doublebuf_pageflipping_init): Likewise.
1972 (grub_video_fb_setup): Likewise.
1973
1974 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1975
1976 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
1977 poll rate.
1978
1979 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1980
1981 Fix wildcard regexp dot and other special characters handling.
1982 Reported by: Robert Mabee.
1983
1984 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
1985 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
1986 (split_path): Trigger expansion on '?'.
1987 (unescape): New function.
1988 (wildcard_expand): Unescape parts copied without globbing.
1989 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
1990 (grub_script_arglist_to_argv): Don't unescape expansions.
1991
1992 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1993
1994 * include/grub/net.h (grub_net_card): New member txbufsize.
1995 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
1996 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
1997 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
1998 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
1999 txbufsize.
2000 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
2001 compatible property to check for macs. Set
2002 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2003 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
2004 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
2005 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
2006 (send_card_buffer): Use txbuf.
2007 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
2008 nested function out of the parent while on it.
2009
2010 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2011
2012 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
2013 presence check.
2014 (grub_ieee1275_net_config_real): Fix config pointer.
2015
2016 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2017
2018 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
2019 filename parsing to non-block devices.
2020
2021 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2022
2023 * grub-core/kern/device.c (grub_device_open): Remove dead code.
2024
2025 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2026
2027 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
2028 All users updated.
2029
2030 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2031
2032 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
2033 UUID search command even if hints probing failed.
2034
2035 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2036
2037 * po/POTFILES.in: Regenerated.
2038
2039 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2040
2041 Speed-up video on fuloong.
2042
2043 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
2044 New function.
2045 (grub_pci_device_unmap_range): Handle non-cached address.
2046 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
2047 add direct_ptr.
2048 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
2049 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
2050 (grub_video_sis315pro_set_active_render_target): Removed.
2051 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
2052 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
2053 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
2054 sync caches.
2055 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
2056 New proto.
2057
2058 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2059
2060 * docs/grub.texi (Multi-boot manual config): New section.
2061
2062 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2063
2064 Avoid slow read-back from VRAM.
2065
2066 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
2067 Move from here ...
2068 * grub-core/video/fb/video_fb.c
2069 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
2070 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
2071 (front_target): Remove front_target. Add pages.
2072 (grub_video_fb_init): Skip setting front_pages.
2073 (grub_video_fb_fini): Likewise.
2074 (doublebuf_blit_update_screen): Use pages.
2075 (grub_video_fb_doublebuf_blit_init): Likewise.
2076 (doublebuf_pageflipping_init): Allocate offscreen buffer.
2077 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
2078 (grub_video_fb_setup): Prefer doublebuffing.
2079
2080 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2081
2082 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
2083 gzio.
2084
2085 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2086
2087 Add loongson tests.
2088
2089 * tests/util/grub-shell.in: Handle loongson.
2090 * tests/partmap_test.in: Add loongson to the list of platform using ATA
2091 drivers.
2092 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
2093 Reboot instead of shutdown if REBOOT is defined.
2094
2095 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2096
2097 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
2098 sized ports since unlike on real hardware qemu supports only 32-bit
2099 regs.
2100
2101 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2102
2103 * Makefile.util.def (grub-mkrescue): Enable on loongson.
2104 * util/grub-mkrescue.in: Handle loongson.
2105
2106 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
2107
2108 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
2109 Set is_part appropriately.
2110 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
2111 names. Canonicalize partition without full disk.
2112
2113 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2114
2115 Revert usb-quiesce since it's wrong.
2116
2117 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
2118 (grub_ofdisk_init): Don't do quiesce.
2119
2120 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2121
2122 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
2123 PowerMac workaround to Xserves as well.
2124 Information supplied by: Benjamin Herrenschmidt.
2125
2126 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2127
2128 Don't assume that beginning address is also the entry point on ppc.
2129
2130 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
2131 (grub_linux_boot): Use linux_entry.
2132 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
2133 (grub_linux_load64): Likewise.
2134
2135 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2136
2137 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
2138
2139 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2140
2141 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
2142 needlessly lose the console.
2143
2144 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2145
2146 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
2147 space.
2148
2149 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2150
2151 Remove non-functional EFI grub_get_rtc. Put a better fatal message
2152 than current grub_get_rtc() not implemented when booted with
2153 coreboot without TSC.
2154
2155 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
2156 Add machine/time.h to kernel headers on loongson.
2157 * grub-core/Makefile.core.def (kernel): Remove
2158 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
2159 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
2160 (grub_get_rtc): Likewise.
2161 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
2162 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
2163 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
2164 * grub-core/kern/i386/tsc.c (grub_tsc_init)
2165 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
2166 rather than installing known non-working time source.
2167 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
2168 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
2169 * include/grub/time.h: Don't include machine/time.h.
2170 * include/grub/efi/time.h: Removed.
2171 * include/grub/i386/efi/time.h: Likewise.
2172 * include/grub/i386/ieee1275/time.h: Likewise.
2173 * include/grub/powerpc/ieee1275/time.h: Likewise.
2174 * include/grub/sparc64/ieee1275/time.h: Likewise.
2175 * include/grub/x86_64/efi/time.h: Likewise.
2176
2177 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2178
2179 Remove dot on i and j when combining with above diacritics.
2180
2181 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
2182 value.
2183 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
2184 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
2185 with dotless variants when any combining above is present.
2186
2187 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2188
2189 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
2190 text and not binary.
2191
2192 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2193
2194 Stop polling as soon as we have the packet we were waiting for.
2195
2196 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
2197 All users updated.
2198 * grub-core/net/arp.c (have_pending): New var.
2199 (pending_req): Likewise.
2200 (grub_net_arp_send_request): Fill pending_req and use have_pending as
2201 stop indicator.
2202 (grub_net_arp_receive): Set have_pending.
2203 * grub-core/net/dns.c (recv_data): New field stop.
2204 (recv_hook): Set stop.
2205 (grub_net_dns_lookup): Init stop and use as stop condition.
2206 * grub-core/net/http.c (http_establish): Use headers_recv as stop
2207 condition.
2208 * grub-core/net/net.c (grub_net_poll_cards): New argument
2209 stop_condition. Stop when it goes true.
2210 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
2211 indicator.
2212 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
2213
2214 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2215
2216 Keep TX and RX buffers on EFI rather than always allocate new ones.
2217
2218 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
2219 card. All users updated.
2220 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
2221 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
2222 (get_card_packet): Likewise.
2223 (grub_efinet_findcards): Init new fields.
2224
2225 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2226
2227 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
2228 compilation error on sparc64.
2229
2230 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2231
2232 Use ITC on IA64 rather than broken routine based on daytime.
2233
2234 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
2235 ia64.
2236 (grub_get_rtc) [__ia64__]: Likewise.
2237 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
2238 (get_itc): New function.
2239 (grub_rtc_get_time_ms): Likewise.
2240 (grub_machine_init): Calibrate ITC.
2241 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
2242 Keep only on non-ia64. Don't export since it's broken and used only
2243 if TSC is unavailable.
2244
2245 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2246
2247 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
2248 even if it's used.
2249 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
2250 Skip if parent is unused.
2251
2252 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2253
2254 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
2255
2256 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2257
2258 Fix wildcard escaping.
2259
2260 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
2261 * grub-core/script/execute.c (wildcard_escape): .. to here.
2262 Don't escape dot.
2263 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
2264 * grub-core/script/execute.c (wildcard_unescape): .. to here.
2265 Don't escape dot.
2266 * grub-core/script/execute.c (gettext_append): Always escape.
2267 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
2268 * grub-core/script/yylex.l: Don't cut away the escaping.
2269 * tests/grub_script_echo1.in: Add tests with wildcard.
2270
2271 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2272
2273 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
2274 (ftdi_hw_configure): Likewise.
2275 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
2276 define.
2277 (real_config): Handle 1.5 stop bits.
2278 (pl2303_hw_configure): Likewise.
2279
2280 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2281
2282 * Makefile.am: Add ppc linux bootcheck.
2283 * grub-core/tests/boot/linux-ppc.cfg: New file.
2284 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
2285
2286 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2287
2288 * tests/grub_script_expansion.in: Skip network protocols.
2289
2290 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2291
2292 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
2293
2294 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2295
2296 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
2297 --rom-directory.
2298 Add -graft-points.
2299
2300 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2301
2302 ESCC serial driver for conducting sautomated tests in qemu.
2303 Not tested on real hardware.
2304
2305 * include/grub/serial.h (grub_serial_port): New field escc_desc.
2306 * grub-core/term/ieee1275/escc.c: New file.
2307 * grub-core/Makefile.core.def (escc): New module.
2308
2309 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2310
2311 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
2312 invalid on error.
2313 (serial_hw_fetch): Don't read invalid handle.
2314 (serial_hw_put): Don't write into invalid handle.
2315
2316 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2317
2318 Add a 1.5 stop bits value.
2319
2320 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
2321 * include/grub/serial.h (grub_serial_stop_bits_t): Add
2322 GRUB_SERIAL_STOP_BITS_1_5.
2323
2324 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2325
2326 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
2327 value rather than let it uninited.
2328
2329 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2330
2331 * grub-core/commands/wildcard.c (+check_file): New function.
2332 (wildcard_expand): Don't expand to non-existing files, expand with
2333 suffix and not attempt to expand if not needed.
2334
2335 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2336
2337 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
2338 out of partitions containing other partitions.
2339
2340 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2341
2342 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
2343 on some qemu versions with GRUB.
2344
2345 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
2346 define.
2347 (grub_openbsd_bootarg_pcibios): New struct.
2348 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
2349 Add PCIINFO.
2350
2351 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2352
2353 * tests/util/grub-shell.in: Trim firmware output on EFI.
2354
2355 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2356
2357 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
2358 and coreboot since it's already in kernel.
2359
2360 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2361
2362 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
2363 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2364 to here. New return value start. All users updated.
2365 Recursively scan linear mappings.
2366 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
2367 proto.
2368 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
2369 Use grub_util_get_dm_node_linear_info.
2370 * util/getroot.c (convert_system_partition_to_system_disk): Use
2371 grub_util_info rather than grub_dprintf.
2372 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
2373
2374 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2375
2376 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
2377
2378 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
2379 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
2380
2381 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2382
2383 * include/grub/types.h (grub_set_unaligned64): New function.
2384 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
2385 (setup): Likewise.
2386
2387 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2388
2389 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
2390 (grub_ofdisk_fini): Quiesce USB devices.
2391
2392 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2393
2394 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
2395 caches.
2396
2397 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2398
2399 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
2400
2401 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 * grub-core/disk/pata.c (grub_pata_pio_read)
2404 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
2405 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
2406
2407 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2408
2409 Extend automated tests to qemu-mips.
2410
2411 * Makefile.am: reorganise tests and enable qemu-mips.
2412 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
2413 * grub-core/tests/boot/linux.init-mips.S: New file.
2414 * tests/partmap_test.in: Handle ata0 disks.
2415 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
2416 non-pc i386.
2417
2418 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2419
2420 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
2421 ia64.
2422 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
2423 quotes while on it.
2424
2425 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2426
2427 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
2428 (grub_halt): Likewise.
2429 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
2430
2431 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2432
2433 * grub-core/term/serial.c (grub_serial_register)
2434 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
2435 the behaviour in line with x86 platforms.
2436
2437 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2438
2439 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
2440 (grub_ata_strncpy): Likewise.
2441 (grub_ata_identify): Add missing byteswaps.
2442
2443 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2444
2445 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
2446 byte-swap.
2447 (screen_read_char): Likewise.
2448 (grub_vga_text_cls): Likewise.
2449
2450 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2451
2452 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
2453 filenames.
2454 (make_file_path): Likewise.
2455
2456 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2457
2458 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
2459 machines.
2460 Tested by: Paulo Flabiano Smorigo.
2461 Crucial information about API supplied by: Coleen <Last name unknown>.
2462 Reviewed by: Coleen <Last name unknown>.
2463
2464 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2465
2466 * util/grub-mkimage.c: Disable -Wcast-align.
2467
2468 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2469
2470 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
2471 as they are fatal.
2472
2473 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2474
2475 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
2476
2477 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2478
2479 * util/grub-probe.c (escape_of_path): Fix double free.
2480
2481 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2482
2483 * grub-core/commands/videoinfo.c (hook): Show pitch.
2484
2485 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2486
2487 * util/grub.d/20_linux_xen.in: Skip xen-syms.
2488
2489 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2490
2491 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
2492 (probe): Add ieee1275 to OFW devices.
2493
2494 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2495
2496 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
2497
2498 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2499
2500 Handle IBM OFW path.
2501
2502 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
2503 available.
2504 (of_path_of_scsi): Handle vdevice.
2505
2506 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2507
2508 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
2509 Allocate in multiples of 16 to avoid adding a few bytes free region the
2510 windows bugs upon.
2511
2512 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2513
2514 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
2515 Allocate in multiples of 16 to avoid adding a few bytes free region the
2516 windows bugs upon.
2517 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
2518
2519 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2520
2521 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
2522 resolutions.
2523 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
2524 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
2525
2526 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
2527
2528 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
2529
2530 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2531
2532 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
2533 resulted in \\ at the end of the line.
2534
2535 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2536
2537 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
2538 (grub_parser_cmdline_state): Likewise.
2539 (grub_parser_split_cmdline): Likewise.
2540
2541 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2542
2543 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
2544 /dev/root and /dev/dm-*.
2545
2546 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2547
2548 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
2549 fix partially stale display.
2550
2551 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2552
2553 * grub-core/normal/menu_entry.c (backward_char): Use right line for
2554 substraction.
2555
2556 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2557
2558 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
2559 Fix MBR remapping workaround.
2560 (grub_util_biosdisk_read) [__linux__]: Likewise.
2561
2562 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
2563
2564 * util/grub-install.in: Check for ieee1275 and not ieee1276.
2565
2566 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2567
2568 * configure.ac: Bump to beta6.
2569
2570 2012-05-31 Christer Weinigel <christer@weinigel.se>
2571
2572 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
2573
2574 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2575
2576 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
2577 (grub_cmd_linux): Likewise.
2578
2579 2012-05-31 Christer Weinigel <christer@weinigel.se>
2580
2581 Fix EHCI low-speed.
2582
2583 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
2584 (GRUB_EHCI_MULT_TWO): Likewise.
2585 (GRUB_EHCI_MULT_THREE): Likewise.
2586 (GRUB_EHCI_CMASK_MASK): New enum value.
2587 (GRUB_EHCI_SMASK_MASK): Likewise.
2588 (GRUB_EHCI_CMASK_OFF): Likewise.
2589 (GRUB_EHCI_SMASK_OFF): Likewise.
2590 (grub_ehci_pci_iter): Enable periodic schedule.
2591 (grub_ehci_parse_notrun): Likewise.
2592 (grub_ehci_restore_hw): Likewise.
2593 (grub_ehci_setup_qh): Set flags for low speed transfers.
2594 (grub_ehci_find_qh): Use periodic list for low speed.
2595 (grub_ehci_setup_transfer): Check periodic queue as well.
2596 (grub_ehci_check_transfer): Likewise.
2597 (grub_ehci_cancel_transfer): Cancel periodic transfer.
2598
2599 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2600
2601 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
2602 parameter is used.
2603
2604 2012-05-31 Peter Jones <pjones@redhat.com>
2605
2606 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
2607 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
2608 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
2609
2610 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2611
2612 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
2613 uninited variable. Allocate at least setup_sects.
2614
2615 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2616
2617 Fix handling of EFI with big memory maps.
2618
2619 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
2620 (real_mode_mem): Likewise.
2621 (real_mode_target): Likewise.
2622 (real_mode_pages): Likewise.
2623 (prot_mode_pages): Likewise.
2624 (linux_params): New var.
2625 (linux_cmdline): Likewise.
2626 (free_pages): Don't set real mode variables.
2627 (allocate_pages): Don't allocate real mode memory.
2628 (grub_e820_add_region): Remove the limit.
2629 (grub_linux_boot): Allocate and copy real mode memory.
2630 (grub_linux_unload): Free linux_cmdline.
2631 (grub_cmd_linux): Use temporary storage for parameters.
2632 (grub_cmd_initrd): Likewise.
2633 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
2634 (linux_kernel_params): Make it 1K big.
2635
2636 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2637
2638 * Makefile.util.def: Remove -Wno-format.
2639 * grub-core/Makefile.core.def: Likewise.
2640
2641 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2642
2643 * tests/cmp_unit_test.c: Add missing failure message.
2644 * tests/example_unit_test.c: Likewise.
2645 * tests/printf_unit_test.c: Likewise.
2646
2647 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2648
2649 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
2650 relaxation of protective MBR requirements.
2651
2652 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2653
2654 * configure.ac: Add condition for COND_HOST_XNU.
2655 * Makefile.util.def (10_xnu): New script.
2656 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
2657
2658 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2659
2660 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
2661 objconv bug.
2662
2663 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2664
2665 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
2666 Binary on other platforms stays identical.
2667
2668 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2669
2670 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
2671 Apple.
2672
2673 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2674
2675 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
2676
2677 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2678
2679 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
2680 rather than defining size_t ourselves to avoid conflict.
2681
2682 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2683
2684 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
2685 initialisation to avoid __bzero reference.
2686
2687 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2688
2689 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
2690 version.
2691 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
2692 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
2693 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
2694 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
2695 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
2696
2697 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2698
2699 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
2700 * grub-core/kern/misc.c: Likewise.
2701 * grub-core/loader/i386/xnu.c: Likewise.
2702 * include/grub/i386/tsc.h: Likewise.
2703 * include/grub/symbol.h: Likewise.
2704
2705 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2706
2707 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
2708 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
2709 on older compiler.
2710
2711 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2712
2713 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2714 Implement Apple flavour.
2715 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
2716
2717 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2718
2719 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
2720 (memmove) [__APPLE__]: Likewise.
2721 (memcpy) [__APPLE__]: Likewise.
2722 (memset) [__APPLE__]: Likewise.
2723 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
2724 (memmove) [__APPLE__]: Likewise.
2725 (memcpy) [__APPLE__]: Likewise.
2726 (memset) [__APPLE__]: Likewise.
2727
2728 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2729
2730 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
2731 dependency discard.
2732
2733 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2734
2735 * grub-core/normal/main.c (read_config_file): Provide config_file and
2736 config_directory.
2737 * util/grub.d/41_custom.in: Use config_directoy when available.
2738
2739 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2740
2741 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
2742 (grub_bfs_dir): Likewise.
2743
2744 2012-05-27 Peter Jones <pjones@redhat.com>
2745
2746 The old code gives arguments to a printf function which can't work
2747 correctly, and the compiler complains.
2748
2749 * grub-core/tests/example_functional_test.c (example_test): Add
2750 missing text.
2751 * grub-core/tests/lib/test.c (add_failure): Rewrite.
2752 * include/grub/test.h (grub_test_assert_helper): New declaration.
2753 (grub_test_assert): Use grub_test_assert_helper.
2754
2755 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2756
2757 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
2758 (exfctest): ... this to avoid overlong filenames.
2759 All users updated.
2760
2761 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2762
2763 Handle "." and ".." on squashfs.
2764
2765 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
2766 Make inode numbers into stack.
2767 (grub_squash_read_symlink): Use stack.
2768 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
2769 (make_root_node): Fill stack.
2770 (grub_squash_open): Use stack.
2771
2772 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2773
2774 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
2775 freeing.
2776
2777 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2778
2779 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
2780 stderr on test calls.
2781
2782 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2783
2784 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
2785
2786 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2787
2788 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
2789
2790 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2791
2792 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
2793 "..".
2794
2795 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2796
2797 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
2798 (grub_hfsplus_iterate_dir): Add "." and "..".
2799
2800 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2801
2802 * grub-core/fs/cpio.c (canonicalize): Handle "..".
2803 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
2804
2805 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2806
2807 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
2808 (find_path): Handle "." and "..".
2809
2810 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2811
2812 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
2813 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
2814 (grub_affs_iterate_dir): Handle hardlinks.
2815
2816 2012-05-26 Matthew Garrett <mjg@redhat.com>
2817
2818 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
2819 (grub_efi_console_fini): Likewise.
2820 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
2821 (grub_video_gop_fill_mode_info): Rename to ...
2822 (grub_video_gop_fill_real_mode_info): ... this.
2823 (grub_video_gop_fill_mode_info): New function.
2824 (grub_video_gop_setup): Setup double framebuffer.
2825 (grub_video_gop_get_info_and_fini): Use original framebuffer.
2826 Free offscreen.
2827 (grub_video_gop_swap_buffers): Copy framebuffer.
2828 (grub_video_gop_fini): Free offscreen buffer.
2829 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
2830 New enum.
2831 (grub_efi_gop_blt_pixel): New struct.
2832
2833 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2834
2835 * gentpl.py: Remove error disabling for objconv.
2836
2837 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2838
2839 * configure.ac: Remove -Wunitialized as it's not available on older
2840 compilers.
2841
2842 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2843
2844 Fix extent overflow comparator.
2845
2846 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
2847 (grub_hfsplus_read_block): Set type.
2848 (grub_hfsplus_cmp_extkey): Compare type.
2849
2850 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
2851
2852 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
2853
2854 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2855
2856 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
2857 than 0.
2858
2859 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2860
2861 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
2862 (dejavu_bold_14.pf2): New target.
2863
2864 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2865
2866 * configure.ac: Fix djvu font detection.
2867
2868 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2869
2870 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
2871 ext* instead of ext2.
2872
2873 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2874
2875 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
2876 name with \0.
2877
2878 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
2879
2880 * docs/grub-dev.texi: Remove dot from .png.
2881
2882 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2883
2884 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
2885 protective entry in any slot.
2886 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
2887 if protective entry is found in any slot.
2888
2889 Protective entry in non-first slot make no sense but is a widespread
2890 brain damage.
2891
2892 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2893
2894 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
2895
2896 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2897
2898 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
2899 with old reiserfs.
2900 (grub_reiserfs_open): Don't free root.
2901
2902 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2903
2904 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
2905 after freeing for safety.
2906
2907 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2908
2909 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
2910 Reported by: Jordan Uggla.
2911
2912 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
2913
2914 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
2915 actual implementation. Specifically, clarify that the grub menu will
2916 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
2917 passed.
2918
2919 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
2920
2921 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
2922 of r0.
2923
2924 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2925
2926 Remove unjustified hard dependency of normal.mod on gfxterm.
2927
2928 * include/grub/term.h (grub_term_output): New member fullscreen.
2929 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
2930 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
2931 (grub_gfxterm): Set .fullscreen.
2932 * grub-core/normal/menu.c (menu_init): Use fullscreen.
2933 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
2934
2935 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2936
2937 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
2938 mentioning possible problems with non-ASCII (non-compliant) ISOs.
2939 Mention case-insensitive AFFS, SFS and JFS.
2940
2941 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2942
2943 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
2944
2945 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2946
2947 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
2948 a bad FS.
2949
2950 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2951
2952 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
2953 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
2954
2955 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2956
2957 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
2958 (grub_jfs_mount): Fill caseins.
2959 (grub_jfs_find_file): Respect caseins.
2960
2961 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2962
2963 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
2964 through UTF-16.
2965
2966 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2967
2968 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
2969 New argument origpath. All users updated.
2970
2971 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2972
2973 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
2974 (read_attr): Ensure that we read start of possibly compressed block.
2975
2976 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2977
2978 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
2979 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
2980 All users updated.
2981
2982 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2983
2984 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
2985 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
2986 (dejavu.pf2): Replace with ...
2987 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
2988 this.
2989
2990 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2991
2992 * util/grub.d/20_linux_xen.in: Add missing line.
2993
2994 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2995
2996 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
2997 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
2998 (grub_utf16_to_utf8): Likewise.
2999
3000 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3001
3002 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
3003 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
3004 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3005 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
3006 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
3007 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
3008
3009 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3010
3011 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3012 a bad FS.
3013
3014 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3015
3016 * grub-core/fs/udf.c (read_string): Bail out on size=0.
3017 (grub_udf_read_symlink): Handle read_string failure.
3018
3019 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3020
3021 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
3022 comment.
3023
3024 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3025
3026 Fix handling of UDF symlinks.
3027
3028 * grub-core/fs/udf.c (read_string): New argument outbuf.
3029 All users updated.
3030 (grub_ufs_read_symlink): Rename to ...
3031 (grub_udf_read_symlink): ... this. All users updated.
3032 Handle symlinks with more than one component.
3033
3034 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3035
3036 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
3037 symlinks. Replace leading colon with a slash.
3038
3039 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3040
3041 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
3042 filename.
3043
3044 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3045
3046 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
3047 match in inner node.
3048
3049 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3050
3051 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
3052 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
3053 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
3054 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
3055 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
3056 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
3057 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
3058 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
3059 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
3060
3061 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3062
3063 Use grub-probe and not cmp to check that disk is empty.
3064
3065 * util/grub-install.in: Use grub-probe for zero-check.
3066 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
3067 (probe): Handle PRINT_ZERO_CHECK.
3068 (argp_parser): Handle -t zero_check.
3069
3070 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3071
3072 Flush block cache on adding disk to device map.
3073
3074 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
3075 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
3076 adding.
3077 (read_device_map): Likewise.
3078 (open_device): Flush on opening.
3079
3080 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3081
3082 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
3083 (handle_symlink): Fix off-by-one error.
3084 Canonicalize the target.
3085 (grub_cpio_dir): Canonicalize the name.
3086 Fix memory leak.
3087 Set directory.
3088 (grub_cpio_open): Canonicalize the name.
3089
3090 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3091
3092 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
3093 handling.
3094
3095 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3096
3097 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
3098 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
3099
3100 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3101
3102 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
3103 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3104 All users updated.
3105
3106 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3107
3108 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
3109 counterpart.
3110
3111 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3112
3113 Fix UFS1 big file support.
3114
3115 * grub-core/fs/ufs.c (INODE): Removed.
3116 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
3117 64-bit.
3118 (INODE_MODE): Simplify.
3119 (grub_ufs_inode): Use uint64_t for size and not int64_t.
3120 (grub_ufs_lookup_symlink): Don't use INODE.
3121
3122 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3123
3124 Fix minixfs with non-power-of-two blocks since it's supported by minix.
3125
3126 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
3127 (grub_minix_data): Replace log_block_size with block_size.
3128 (grub_minix_read_file): Use block_size but avoid 64-bit division.
3129 (grub_minix_mount): Fill block_size.
3130
3131 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3132
3133 * configure.ac: Bump to beta5.
3134
3135 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3136
3137 Fix wrapped HFS+ handling.
3138
3139 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
3140 blocks_start. All users updated.
3141 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
3142 wrapping offset.
3143 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
3144
3145 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3146
3147 Fix long symlinks on reiserfs.
3148
3149 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
3150 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
3151 (grub_reiserfs_iterate_dir): Save size for non-directories.
3152 (grub_reiserfs_open): Don't reread stat block as we already know the
3153 size.
3154 (grub_reiserfs_read): Split into...
3155 (grub_reiserfs_read_real): ... and ...
3156 (grub_reiserfs_read): ...this.
3157
3158 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3159
3160 Fix non-indexed JFS.
3161
3162 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
3163 (grub_jfs_data): New field namecomponentlen.
3164 (grub_jfs_mount): Fill namecomponentlen.
3165 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
3166
3167 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3168
3169 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
3170 * tests/grub_script_echo1.in: Add tests.
3171
3172 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3173
3174 * util/grub-install.in: Ignore empty devicetree directory.
3175
3176 2012-05-08 Bean <bean123ch@gmail.com>
3177
3178 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
3179 All users updated.
3180 (free_rsm): Free header as well.
3181 (free_old_fragments): Fix memory leak.
3182 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
3183 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
3184 (destroy_pq): Likewise.
3185 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
3186
3187 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3188
3189 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
3190 resulting hash as a precaution.
3191
3192 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3193
3194 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
3195 '_' in variable names.
3196 * grub-core/net/net.c (grub_net_network_level_interface_register):
3197 Likewise.
3198
3199 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3200
3201 Fix AFFS with non-512B blocks.
3202
3203 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
3204 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
3205 (grub_affs_data): Replace blocksize with log_blocksize.
3206 (grub_affs_read_block): Fix non-512B blocks.
3207 (grub_affs_read_symlink): Likewise.
3208 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
3209 (grub_affs_read): Fix non-512B blocks.
3210 (grub_affs_label): Likewise.
3211 (grub_affs_mtime): Likewise.
3212 (grub_affs_mount): Fix block detection routine.
3213
3214 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3215
3216 Add filesystem mtime to AFFS.
3217
3218 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
3219 (aftime2ctime): New function.
3220 (grub_affs_dir): Use aftime2ctime.
3221 (grub_affs_label): Fix return value.
3222 (grub_affs_mtime): New function.
3223 (grub_affs_fs): Add mtime.
3224
3225 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3226
3227 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
3228 UTF-8.
3229
3230 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3231
3232 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
3233 UTF-8.
3234
3235 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3236
3237 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
3238
3239 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3240
3241 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
3242 flags.
3243 (FLAGS_CASE_SENSITIVE): New enum value.
3244 (cache_entry): New struct.
3245 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
3246 cache_size and cache.
3247 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
3248 Add log_blocksize and fshelp_flags.
3249 (grub_sfs_read_extent): Handle non-512 blocks.
3250 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
3251 (grub_sfs_read_file): Handle non-512 blocks.
3252 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
3253 fshelp_flags.
3254 (grub_sfs_read_symlink): Handle non-512 blocks.
3255 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
3256 (grub_sfs_dir): Free cache.
3257 (grub_sfs_close): Likewise.
3258
3259 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3260
3261 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
3262 filesystems.
3263
3264 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3265
3266 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
3267
3268 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3269
3270 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
3271
3272 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3273
3274 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
3275 (grub_sfs_read_extent): Likewise.
3276 (grub_sfs_read_block): Likewise.
3277 (grub_sfs_mount): Likewise.
3278 (grub_sfs_iterate_dir): Likewise.
3279 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
3280 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
3281
3282 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3283
3284 Fix errors on compressed NTFS with 512B clusters.
3285
3286 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
3287 types.
3288 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
3289 not 0.
3290 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
3291 Relax check for inline extents.
3292 (ntfscomp): Return correct -1 on error and not 0.
3293
3294 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3295
3296 * util/grub-install.in: Fix handling of prefix containing spaces.
3297
3298 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3299
3300 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
3301 (grub_squash_read_data): Fix offset byte-swapping.
3302
3303 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3304
3305 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
3306 per common usage and preffered in several parts of code.
3307 (grub_memcmp): Likewise.
3308 (grub_strncmp): Likewise.
3309 * include/grub/misc.h (grub_strcasecmp): Likewise.
3310 (grub_strncasecmp): Likewise.
3311 * Makefile.util.def (cmp_test): New test.
3312 (grub_script_strcmp): Likewise.
3313 * tests/cmp_unit_test.c: New file.
3314 * tests/grub_script_strcmp.in: Likewise.
3315 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
3316
3317 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3318
3319 * include/grub/pci.h: Move enums into no-asm part.
3320
3321 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3322
3323 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
3324
3325 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3326
3327 * util/getroot.c (find_hurd_root_device): Try to make error message
3328 and comments to translators clearer.
3329
3330 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3331
3332 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
3333
3334 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3335
3336 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
3337 btrfs.
3338
3339 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3340
3341 * docs/grub.cfg: Update.
3342
3343 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3344
3345 * docs/grub.texi (PXE): Remove not present variables.
3346
3347 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3348
3349 * grub-core/net/net.c (defserver_set_env): New function.
3350 (defserver_get_env): Likewise.
3351 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
3352
3353 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3354
3355 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
3356 entries.
3357
3358 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3359
3360 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
3361 * grub-core/kern/emu/hostdisk.c: Likewise.
3362
3363 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3364
3365 Handle hurd userspace partitions.
3366
3367 * util/getroot.c (find_hurd_root_device): New function.
3368 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
3369
3370 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3371
3372 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
3373 names.
3374 Reported by: Bastian Blank.
3375
3376 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3377
3378 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
3379 crossing page boundary.
3380
3381 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3382
3383 Fix B-tree search in BFS, especially in presence of non-ASCII
3384 characters.
3385
3386 * grub-core/fs/bfs.c (bfs_strcmp): New function.
3387 (find_in_b_tree): Use standard bsearch + btree algorithm.
3388
3389 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3390
3391 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
3392 and so on.
3393
3394 2012-05-03 Matthew Garrett <mjg@redhat.com>
3395 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3396
3397 Suspend broadcom cards in order to stop their DMA.
3398
3399 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
3400 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
3401 (pci): Don't build on x86 EFI.
3402 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
3403 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
3404 New function.
3405 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
3406 stop_broadcom if running on EFI.
3407 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
3408 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
3409 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
3410 (grub_pci_find_capability): New proto.
3411
3412 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3413
3414 * docs/grub.texi: Remove dot from the extension as it apparently
3415 doesn't work with some makeinfo versions.
3416
3417 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3418
3419 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
3420 with GRUB expectance.
3421
3422 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3423
3424 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
3425
3426 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3427
3428 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
3429 zero after directory block since last entry may be not 0-terminated if
3430 it ends on block boundary. Use continue instead of if spanning whole
3431 loop.
3432
3433 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3434
3435 Support 4K sectors UDF inline files.
3436
3437 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
3438 (grub_udf_extended_file_entry): Likewise.
3439 (grub_fshelp_node): Name the anonymous union. Put block at the end.
3440 All users updated.
3441 (get_fshelp_size): New function.
3442 (grub_udf_read_icb): Read whole block.
3443 (grub_udf_iterate_dir): Likewise.
3444 (grub_udf_dir): Likewise.
3445 (grub_udf_open): Likewise.
3446
3447 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3448
3449 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
3450
3451 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3452
3453 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
3454 inline symlinks in addition to workaround.
3455
3456 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3457
3458 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
3459
3460 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3461
3462 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
3463
3464 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3465
3466 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
3467
3468 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3469
3470 Fix reiserfs big seek times.
3471
3472 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
3473 exact. All users updated.
3474 (grub_reiserfs_read): Use nearest btree search for seeking.
3475 Fix return value on error.
3476
3477 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3478
3479 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
3480 entries.
3481 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
3482 * docs/grub.texi: Update menuentry description.
3483
3484 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3485
3486 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
3487 crash when embedding onto filesystem.
3488
3489 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3490
3491 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
3492 name.
3493
3494 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3495
3496 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
3497
3498 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3499
3500 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
3501 commit.
3502
3503 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3504 2012-05-01 Bean <bean123ch@gmail.com>
3505
3506 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
3507
3508 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3509
3510 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
3511 Special behaviour for len = 0 to read whole file isn't used anywhere and
3512 can cause buffer ovewrflows in several places.
3513
3514 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3515
3516 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
3517
3518 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3519
3520 Handle RAIDZ on non-512B sectors.
3521
3522 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
3523 max_children_ashift.
3524 (fill_vdev_info_real): Fill max_children_ashift.
3525 (read_device): Use max_children_ashift.
3526
3527 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3528
3529 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
3530
3531 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3532
3533 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
3534 disk names.
3535 * docs/grub.texi: Update device.map parts.
3536
3537 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3538
3539 Don't scan into non-diskfilter devices having diskfilter names.
3540
3541 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
3542 (scan_disk): New argument accept_diskfilter. Fix recursion depth
3543 handling.
3544 (scan_disk_hook): New function.
3545
3546 2012-04-29 Bean <bean123ch@gmail.com>
3547
3548 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
3549 allocation.
3550
3551 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
3552
3553 * configure.ac: Detect starfield theme font path
3554 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
3555
3556 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3557
3558 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
3559 geometry on serial consoles.
3560
3561 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3562
3563 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
3564 because of network consoles.
3565
3566 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3567
3568 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
3569 handling.
3570
3571 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3572
3573 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
3574 falls on Q syndrom.
3575
3576 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3577
3578 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
3579 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
3580
3581 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3582
3583 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
3584 Allocate at lest 8192 for temporary buffer as required for lzo.
3585
3586 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3587
3588 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
3589 to cluster_bits, since it's already added in.
3590 (grub_fat_read_data): Likewise.
3591
3592 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3593
3594 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
3595 as long as cluster size is multiple of 512 bytes.
3596
3597 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3598
3599 * util/grub-mkrescue.in: Fix locale directory.
3600
3601 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3602
3603 * grub-core/kern/emu/hostdisk.c (map): Make static.
3604
3605 2012-04-23 Bean <bean123ch@gmail.com>
3606
3607 * util/grub-fstest.c (fstest): Add missing break.
3608
3609 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3610
3611 Fix hurd build.
3612
3613 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
3614 not define nr variable.
3615 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
3616 find_root_devices_from_poolname, find_root_devices_from_libzfs,
3617 grub_find_device): Do not define.
3618
3619 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3620
3621 Fix kfreebsd compile and behaviour.
3622
3623 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
3624 format-security.
3625 * util/getroot.c: Fix wait.h include.
3626 (grub_guess_root_devices): Error if grub_find_device fails.
3627 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
3628 (grub_util_get_dev_abstraction): Likewise.
3629 (grub_util_pull_device): Likewise.
3630 (grub_util_get_grub_dev): Likewise.
3631 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
3632
3633 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3634
3635 Fix and unify wholedisk detection.
3636
3637 * util/getroot.c (convert_system_partition_to_system_disk): New argument
3638 is_part. All users updated.
3639 (device_is_wholedisk): Removed.
3640 (grub_util_biosdisk_get_grub_dev): Use is_part.
3641
3642 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3643
3644 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
3645 mode.
3646
3647 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3648
3649 * configure.ac: Bump to beta4.
3650
3651 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3652
3653 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
3654 --fs-uuid --set UUID syntax.
3655
3656 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3657
3658 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
3659 disunification.
3660
3661 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3662
3663 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
3664
3665 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
3666
3667 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
3668
3669 2012-04-18 Mike Gilbert <floppym@gentoo.org>
3670
3671 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
3672
3673 2012-04-18 Bean <bean123ch@gmail.com>
3674
3675 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
3676 place.
3677
3678 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3679
3680 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
3681 users updated.
3682 (grub_util_biosdisk_read): Handle Linux partitions not exactly
3683 corresponding to GRUB partitions.
3684 (grub_util_biosdisk_write): Likewise.
3685
3686 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3687
3688 Scan mdraid before LVM.
3689
3690 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
3691 (grub_diskfilter_register_front): ... this.
3692 (grub_diskfilter_register_back): New function.
3693 All users of grub_diskfilter_register updated.
3694
3695 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3696
3697 * util/grub-install.in: Fix an automatic target detection bug.
3698
3699 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3700
3701 * util/grub-install.in: New option --efi-directory.
3702
3703 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3704
3705 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
3706 boot services if we have no other choice.
3707
3708 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3709
3710 * util/grub-mknetdir.in: Rename --override-directory to --directory and
3711 document it.
3712 * tests/util/grub-shell.in: Update to --directory.
3713
3714 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3715
3716 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
3717
3718 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3719
3720 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
3721 (grub_minix_read_file): Likewise.
3722 (grub_minix_read_inode): Likewise.
3723 (grub_minix_find_file): Likewise.
3724 (grub_minix_dir): Likewise.
3725
3726 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3727
3728 * util/grub-setup.c (setup): Fix partition handling and blocklist
3729 check.
3730
3731 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3732
3733 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
3734 redundant buggy overlap check.
3735
3736 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3737
3738 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
3739 and grub-mknetdir.
3740
3741 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3742
3743 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
3744 kh.loadflags on pre-2.00 kernels.
3745
3746 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3747
3748 Terminate UNDI and PXE before launching the payload to avoid problems
3749 with DMA.
3750
3751 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
3752 (grub_loader_flags): ... this. All users updated.
3753 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
3754 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
3755 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
3756 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
3757 function.
3758 (grub_pxe_restore): Likewise.
3759 (fini_hnd): New var.
3760 (GRUB_MOD_INIT): Register shutdown hook.
3761 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
3762 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
3763 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
3764 (grub_loader_set): Rename second argument to flags.
3765
3766 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3767
3768 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
3769 written bytes.
3770 (grub_get_num_of_utf8_bytes): New function.
3771 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
3772 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
3773 executing it.
3774 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
3775 (grub_ucs4_to_utf8): Change return type.
3776
3777 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3778
3779 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
3780 warning.
3781 * grub-core/fs/bfs.c (hop_level): Likewise.
3782 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
3783
3784 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3785
3786 * grub-core/lib/adler32.c: Recode due to license unclearness.
3787
3788 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3789
3790 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
3791 (test_header): Likewise.
3792
3793 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3794
3795 Fix --help formatting.
3796
3797 * util/grub-mkconfig_lib.in (print_option_help): New function.
3798 (grub_fmt): Likewise.
3799 * util/grub-install.in: Use print_option_help and grub_fmt.
3800 * util/grub-kbdcomp.in: Likewise.
3801 * util/grub-mkconfig.in: Likewise.
3802 * util/grub-mknetdir.in: Likewise.
3803 * util/grub-mkrescue.in: Likewise.
3804 * util/grub-mkstandalone.in: Likewise.
3805 * util/grub-reboot.in: Likewise.
3806 * util/grub-set-default.in: Likewise.
3807 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3808
3809 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3810
3811 * linguas.sh: Remove autogenerated *.po.
3812
3813 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3814
3815 * po/README: Move language fetcing to ...
3816 * linguas.sh: ... here.
3817 * po/README: Point to linguas.sh.
3818
3819 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3820
3821 * po/README: Exclude ko.po due to disclaimer problems.
3822
3823 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3824
3825 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
3826 len = 0.
3827 (grub_gettext_translate_real): Handle 0th string.
3828 (grub_gettext_translate): Ensure that "" isn't translated.
3829
3830 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3831
3832 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
3833 TRANSLATORS comment.
3834 (grub_diskfilter_print_partmap): Propagate changing of error into
3835 warning.
3836
3837 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3838
3839 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
3840 to uint64_t to prevent overflow.
3841 (grub_diskfilter_lv): Increase start_extent and extent_count
3842 to uint64_t to prevent overflow.
3843
3844 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3845
3846 * configure.ac: Increase version.
3847
3848 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3849
3850 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
3851
3852 * po/Rules-translit: New file.
3853 * po/arabic.sed: Likewise.
3854 * po/cyrillic.sed: Likewise.
3855 * po/greek.sed: Likewise.
3856 * po/hebrew.sed: Likewise.
3857 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
3858 * po/Makefile.in.in: Add extra_dist4.
3859
3860 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3861
3862 Handle big-endian minixfs (fixes minixfs tests on bigendian).
3863
3864 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
3865 modify names. Introduce MODE_BIGENDIAN.
3866 * grub-core/fs/minix_be.c: New file.
3867 * grub-core/fs/minix2_be.c: Likewise
3868 * grub-core/fs/minix3_be.c: Likewise.
3869 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
3870 minix3_be.
3871 * grub-core/Makefile.core.def (minix_be): New module.
3872 (minix2_be): Likewise.
3873 (minix3_be): Likewise.
3874
3875 2012-04-01 Felix <email@hamburg.de>
3876
3877 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
3878 (devs): Add MBP 2011.
3879
3880 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3881
3882 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
3883
3884 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3885
3886 * grub-core/normal/cmdline.c (print_completion): New field
3887 prompt_len.
3888 (grub_cmdline_get): Handle width properly.
3889
3890 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3891
3892 * grub-core/commands/lsacpi.c (options): Add missing terminator.
3893
3894 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3895
3896 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
3897 after 29th of February.
3898
3899 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3900
3901 Fix exfat endianness handling.
3902
3903 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
3904 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
3905 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
3906 Byte-swap utf16 when necessary.
3907 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
3908
3909 2012-03-31 Anton Blanchard <anton@samba.org>
3910 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3911
3912 Fix btrfs endianness handling.
3913
3914 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
3915 (lower_bound): Make root uint64_t. Use root in le.
3916 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
3917 (find_path): Fix template key init.
3918 (grub_btrfs_dir): Fix mtime byteswap.
3919 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
3920
3921 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3922
3923 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
3924 recursion_depth. Break infinite resursions. All users updated.
3925
3926 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3927
3928 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
3929 after free.
3930 Reported by: Peter Jones.
3931
3932 2012-03-31 Anton Blanchard <anton@samba.org>
3933
3934 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
3935 8 bit values.
3936
3937 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3938
3939 * util/grub-install.in: Fix nvram call for PreP.
3940
3941 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3942
3943 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
3944 the error when some elements are missing into a warning.
3945
3946 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3947
3948 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
3949
3950 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
3951
3952 * docs/grub.texi (Invoking grub-probe): New section.
3953 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
3954
3955 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
3956
3957 Fix tab and wide character handling in editor and menu.
3958
3959 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
3960 agglomerate control characters with combining marks.
3961 (bidi_line_wrap): Allow break on tab.
3962 (grub_unicode_get_comb_start): New function.
3963 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
3964 and tab correctly.
3965 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
3966 with a space.
3967 * grub-core/normal/term.c (print_ucs4_terminal): New argument
3968 fixed_tab_size. All users updated.
3969 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
3970 (grub_term_getcharwidth): Handle \t.
3971 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
3972 and copy.
3973
3974 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3975
3976 Handle big-endian mdraid.
3977
3978 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
3979 * grub-core/Makefile.core.def (mdraid09_be): New module.
3980 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
3981 rather than grub_le_to_cpu* and grub_cpu_to_le*.
3982 * grub-core/disk/mdraid_linux_be.c: New file.
3983
3984 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3985
3986 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
3987
3988 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3989
3990 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
3991 missing quotes which caused confusion among translators.
3992
3993 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3994
3995 * util/grub-mkconfig_lib.in: Fix typo.
3996
3997 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3998
3999 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
4000 spaces.
4001 * tests/grub_script_leading_whitespace.in: New file.
4002 * Makefile.util.def (grub_script_leading_whitespace): New test.
4003
4004 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4005
4006 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
4007 to work.
4008
4009 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4010
4011 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
4012 starts with control character.
4013
4014 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4015
4016 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
4017 overflow.
4018 (grub_gdb_outbuf): Likewise.
4019
4020 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4021
4022 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
4023 zero terminator. Fixes a crash.
4024
4025 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4026
4027 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
4028 beyond 4 GiB.
4029 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
4030 images independently of preffered adderss field.
4031
4032 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4033
4034 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
4035 * grub-core/commands/regexp.c: Likewise.
4036 * grub-core/loader/i386/linux.c: Likewise.
4037 * grub-core/partmap/msdos.c: Likewise.
4038 * grub-core/script/execute.c: Likewise.
4039 * grub-core/term/gfxterm.c: Likewise.
4040
4041 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4042
4043 Add variable parsing in $"..." and fix several mismatches with bash.
4044
4045 * Makefile.util.def (grub_script_gettext): New test.
4046 * grub-core/script/execute.c (parse_string): New function.
4047 (gettext_append): Likewise.
4048 (grub_script_arglist_to_argv): Use gettext_append.
4049 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
4050 * tests/grub_script_gettext.in: New file.
4051
4052 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4053
4054 Fix handling of leading spaces in scripts.
4055
4056 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
4057 spaces.
4058 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
4059 other than skipping \r. All users updated.
4060 * tests/grub_script_echo1.in: Add space-related tests.
4061 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
4062
4063 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4064
4065 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
4066
4067 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4068
4069 * configure.ac: Bump up the version to beta2.
4070
4071 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4072
4073 Fix gettext reload bugs (e.g. inability to disable gettext
4074 once enabled).
4075
4076 * grub-core/gettext/gettext.c: Encapsulate all static variables in
4077 main_context and secondary_context. All functions updated.
4078 (grub_gettext_translate): Rename to ...
4079 (grub_gettext_translate_real): ... this. Return NULL on failed
4080 translate.
4081 (grub_gettext_translate): Handle secondary context.
4082 (grub_gettext_delete_list): Close file and zero-out the context.
4083 (grub_mofile_open): Don't call grub_gettext_delete_list.
4084 Don't close file.
4085 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
4086 if locale="" to avoid pointless error message.
4087 (grub_gettext_env_write_lang): Update lang even if load fails.
4088 Handle secondary context.
4089 (grub_gettext_reread_prefix): New function.
4090 (read_main): Likewise.
4091 (read_secondary): Likewise.
4092 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
4093 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
4094 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
4095 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
4096
4097 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4098
4099 * configure.ac: Decrease warning level to avoid spurious warnings and
4100 to be able to compile with GCC 4.2.
4101 * Makefile.util.def: Remove -Wno-error=logical-op.
4102
4103 2012-03-10 William Bittner <william.bittner@gmail.com>
4104
4105 * util/import_unicode.py: Add missing brackets around string for
4106 python 3 support.
4107
4108 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4109
4110 Fix efi chainloader on network root.
4111
4112 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
4113 network devices.
4114 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
4115 New function.
4116
4117 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4118
4119 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
4120 unused show_text member.
4121 * docs/grub.texi: Document "text" property.
4122
4123 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4124
4125 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
4126 in dprintf.
4127
4128 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4129
4130 Fix IMSM handling on Fedora.
4131
4132 * util/getroot.c (grub_util_is_imsm): New function.
4133 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
4134
4135 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4136
4137 * Makefile.am: Strip gold section.
4138 * conf/Makefile.common: Likewise.
4139 * gentpl.py: Likewise.
4140 * grub-core/Makefile.core.def: Likewise.
4141 * grub-core/genmod.sh.in: Likewise.
4142
4143 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4144
4145 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
4146 * util/grub.d/20_linux_xen.in: Likewise.
4147 Based on Debian patch.
4148
4149 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4150
4151 * util/grub.d/10_linux.in: Fix syntax error resulting in
4152 Richard Laager's patch.
4153 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
4154
4155 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4156
4157 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
4158 dependencies.
4159
4160 2012-03-10 Richard Laager <rlaager@wiktel.com>
4161
4162 * util/grub.d/10_linux.in: Fix ZFS root passing.
4163
4164 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4165
4166 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4167 * grub-core/commands/xnu_uuid.c: Likewise.
4168 * grub-core/loader/efi/appleloader.c: Likewise.
4169 * grub-core/script/execute.c: Likewise.
4170 * grub-core/script/main.c: Likewise.
4171 * util/grub-mkfont.c: Likewise.
4172
4173 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4174
4175 * util/grub-mkfont.c (options): Use more appropriate "select" that
4176 "set" for face index.
4177
4178 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4179
4180 * util/grub-editenv.c (options): Gettextize command summaries.
4181
4182 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4183
4184 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
4185 "out of memory" error messagge.
4186
4187 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4188
4189 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
4190 of diskfilter for diskfilter on diskfilter support.
4191
4192 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4193
4194 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
4195
4196 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4197
4198 * util/grub-install.in: Check for themes/starfield/theme.txt and not
4199 themes/starfield.
4200
4201 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4202
4203 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
4204
4205 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4206
4207 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
4208
4209 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4210
4211 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
4212 of error message.
4213
4214 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4215
4216 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
4217
4218 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4219
4220 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
4221 message.
4222 * util/grub-install.in: Fix and gettextize error message.
4223
4224 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4225
4226 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
4227 Gettextize.
4228 * util/grub-mount.c (options): Likewise.
4229
4230 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4231
4232 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
4233 gettextize.
4234 * grub-core/commands/search_wrap.c (options): Likewise.
4235
4236 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4237
4238 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
4239
4240 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4241
4242 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
4243 size calculation.
4244 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
4245 none is known.
4246
4247 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4248
4249 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
4250 "temporary" since it's used in identifier and is limited in space.
4251
4252 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4253
4254 * po/POTFILES.in: Regenerate. Include *.h since they contain
4255 translatable strings as well.
4256
4257 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4258
4259 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
4260 byte-swap on big-endian.
4261 Reported by: Lennart Sorensen
4262
4263 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
4264
4265 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
4266 (allocate_pages): Improve dprintf.
4267 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
4268 code32_start. Fill code32_start and kernel_alignment in params.
4269 (grub_cmd_initrd): Use prot_init_space.
4270
4271 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4272
4273 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
4274
4275 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4276
4277 * util/grub-install.in: Add missing dot at the end of sentence.
4278
4279 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4280
4281 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4282 * grub-core/commands/videotest.c: Likewise.
4283 * grub-core/loader/i386/linux.c: Likewise.
4284
4285 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4286
4287 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
4288 sentence.
4289 Reported by: Milo Casagrande.
4290
4291 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4292
4293 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
4294 * grub-core/commands/gptsync.c: Likewise.
4295 * grub-core/commands/hashsum.c: Likewise.
4296 * grub-core/commands/i386/pc/sendkey.c: Likewise.
4297 * grub-core/commands/legacycfg.c: Likewise.
4298 * grub-core/io/gzio.c: Likewise.
4299 * grub-core/net/net.c: Likewise.
4300 * grub-core/term/gfxterm.c: Likewise.
4301 * grub-core/term/terminfo.c: Likewise.
4302 * grub-core/tests/test_blockarg.c: Likewise.
4303 * grub-core/video/video.c: Likewise.
4304 * util/grub-install.in: Likewise.
4305 * util/grub-mkfont.c: Likewise.
4306
4307 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4308
4309 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
4310
4311 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4312
4313 * grub-core/commands/search_wrap.c (options): Fix a typo.
4314 Reported by: David Prévot.
4315
4316 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4317
4318 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
4319 description.
4320
4321 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4322
4323 * util/grub-script-check.c (main): Fix a syntax error message which was
4324 unclear.
4325
4326 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4327
4328 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
4329
4330 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4331
4332 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
4333 messages.
4334
4335 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4336
4337 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
4338 without argument.
4339 * util/grub-mount.c (options): Likewise.
4340
4341 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4342
4343 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
4344
4345 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4346
4347 * grub-core/net/http.c: Add TRANSLATORS comments.
4348 * grub-core/normal/cmdline.c: Likewise.
4349 * grub-core/normal/misc.c: Likewise.
4350 * grub-core/partmap/msdos.c: Likewise.
4351 * grub-core/parttool/msdospart.c: Likewise.
4352 * grub-core/script/execute.c: Likewise.
4353 * grub-core/script/main.c: Likewise.
4354 * grub-core/term/terminfo.c: Likewise.
4355 * grub-core/video/bitmap.c: Likewise.
4356 * util/grub-install.in: Likewise.
4357 * util/grub-mkimage.c: Likewise.
4358 * util/grub-mklayout.c: Likewise.
4359 * util/grub-setup.c: Likewise.
4360
4361 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4362
4363 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
4364 with similar messages in grub-fstest.
4365
4366 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4367
4368 * util/grub-install.in: Unify "option requires an argument" message
4369 with similar messages in other files.
4370 * util/grub-mkconfig.in: Likewise.
4371
4372 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4373
4374 * util/grub-set-default.in: Replace printf with gettext_printf (the
4375 string in in question is already translated from grub-reboot)
4376
4377 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4378
4379 * configure.ac: Bump up the version to beta1.
4380
4381 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4382
4383 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
4384 case when min_align = 0.
4385
4386 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4387
4388 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
4389 and fix a case when line_start overflows.
4390
4391 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4392
4393 * util/grub-reboot.in (usage): Mention id posibility.
4394 * util/grub-set-default.in (usage): Likewise.
4395
4396 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4397
4398 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
4399 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
4400 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
4401 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
4402 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
4403 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4404 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4405
4406 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4407
4408 * grub-core/commands/menuentry.c (options): Remove
4409 GRUB_ARG_OPTION_REPEATABLE.
4410 Reported by: Andreas Vogel
4411
4412 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
4413
4414 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
4415
4416 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
4417
4418 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
4419 error.
4420
4421 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4422
4423 Use sort -V by the idea of Georgi Georgiev.
4424
4425 * util/grub-mkconfig_lib.in (version_sort): New function.
4426 (version_test_numeric): Use version_sort.
4427
4428 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4429
4430 Use submenus in grub-mkconfig.
4431
4432 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
4433 * util/grub-mkconfig_lib.in (grub_quote): New function.
4434 (gettext_printf): Use gettext and not gettext_quoted to fix several
4435 messages.
4436 * util/grub.d/10_hurd.in: Use submenus.
4437 * util/grub.d/10_kfreebsd.in: Likewise.
4438 * util/grub.d/10_linux.in: Likewise.
4439 * util/grub.d/10_netbsd.in: Likewise.
4440 * util/grub.d/20_linux_xen.in: Likewise.
4441 * util/grub.d/30_os-prober.in: Likewise.
4442 * util/grub.d/10_illumos.in: Add missing quoting.
4443 * util/grub.d/10_windows.in: Likewise.
4444
4445 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4446
4447 Fix menu title instability bug.
4448
4449 * grub-core/commands/menuentry.c (options): New option --id.
4450 (grub_normal_add_menu_entry): New argument id. All users updated.
4451 (grub_cmd_menuentry): Handle --id.
4452 (grub_menu_init): Accept unknown arguments.
4453 * grub-core/normal/main.c (features): Add feature_menuentry_id and
4454 feature_menuentry_options.
4455 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
4456 saved_entry.
4457 (get_entry_number): Match with id as well.
4458 * include/grub/menu.h (grub_menu_entry): New member id.
4459 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
4460 * util/grub.d/00_header.in: Define menuentry_id_option.
4461 * util/grub.d/10_hurd.in: Define id.
4462 * util/grub.d/10_illumos.in: Likewise.
4463 * util/grub.d/10_kfreebsd.in: Likewise.
4464 * util/grub.d/10_linux.in: Likewise.
4465 * util/grub.d/10_netbsd.in: Likewise.
4466 * util/grub.d/10_windows.in: Likewise.
4467 * util/grub.d/20_linux_xen.in: Likewise.
4468 * util/grub.d/30_os-prober.in: Likewise.
4469
4470 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4471
4472 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
4473 "scope" with "body".
4474
4475 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4476
4477 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
4478 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
4479 prot_size and prot_file_size.
4480
4481 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4482
4483 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
4484 All users updated. If easily=1 require raid-5/-6 to be full.
4485 (is_node_readable): Likewise.
4486 (scan_devices): Scan incomplete but readable LVs at the end.
4487 (grub_diskfilter_memberlist): Pull missing devices.
4488 (insert_array): Skip scanning until device is complete or scan is
4489 done otherwise.
4490 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
4491 check.
4492 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
4493 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
4494
4495 2012-03-03 Matthew Garrett <mjg@redhat.com>
4496 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4497
4498 Avoid EFI boot services when loading Linux.
4499
4500 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
4501 avoid_efi_bootservices. All users updated.
4502 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
4503 argument avoid_efi_bootservices. All users updated.
4504 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
4505 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
4506 align, min_align, relocatable, prefered_address. All users updated.
4507 Allocate avoiding boot services if kernel is relocatable.
4508 (grub_cmd_linux): Check if kernel is relocatable.
4509 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
4510 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
4511 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
4512 avoid_efi_boot_services.
4513 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
4514 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
4515 (linux_kernel_params): Likewise.
4516
4517 2012-03-03 Matthew Garrett <mjg@redhat.com>
4518 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4519
4520 Use EDID on EFI.
4521
4522 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
4523 datasize_out.
4524 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
4525 modes. Set gop_handle.
4526 (grub_video_gop_get_edid): New function.
4527 (grub_gop_get_preferred_mode): Likewise.
4528 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
4529 (grub_video_efi_gop_adapter): Set .get_edid.
4530 * include/grub/efi/edid.h: New file.
4531 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
4532
4533 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4534
4535 * util/grub-install.in: Load efivars unconditionally.
4536
4537 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4538
4539 * po/Rules-piglatin: Change suffix from .po-update-en to
4540 .po-update-en-piglatin.
4541
4542 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4543
4544 Add a pig farm.
4545
4546 * po/piglatin.sed: New file.
4547 * po/en@piglatin.header: Likewise.
4548 * po/Rules-piglatin: Likewise.
4549 * po/README: Add en@piglatin to autogenerated languages.
4550
4551 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4552
4553 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
4554 "Command for ...".
4555 * grub-core/commands/hdparm.c (options): Use "Display" rather than
4556 "Check" since we don't check anything.
4557 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
4558 is 64-bit one.
4559 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
4560 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
4561 (grub_md_sha512_real): Likewise.
4562
4563 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4564
4565 * grub-core/commands/gptsync.c: Fix typographic quoting.
4566 * grub-core/commands/ieee1275/suspend.c: Likewise.
4567 * grub-core/commands/parttool.c: Likewise.
4568 * grub-core/commands/search_wrap.c: Likewise.
4569 * grub-core/commands/videoinfo.c: Likewise.
4570 * grub-core/gfxmenu/gui_label.c: Likewise.
4571 * grub-core/hello/hello.c: Likewise.
4572 * grub-core/kern/emu/main.c: Likewise.
4573 * grub-core/net/net.c: Likewise.
4574 * grub-core/normal/menu.c: Likewise.
4575 * grub-core/normal/menu_text.c: Likewise.
4576 * grub-core/normal/misc.c: Likewise.
4577 * util/grub-editenv.c: Likewise.
4578 * util/grub-install.in: Likewise.
4579 * util/grub-kbdcomp.in: Likewise.
4580 * util/grub-mkconfig.in: Likewise.
4581 * util/grub-mknetdir.in: Likewise.
4582 * util/grub-mkrescue.in: Likewise.
4583 * util/grub-mkstandalone.in: Likewise.
4584 * util/grub-reboot.in: Likewise.
4585 * util/grub-set-default.in: Likewise.
4586 * util/grub-setup.c: Likewise.
4587 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4588
4589 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4590
4591 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
4592 * grub-core/commands/keystatus.c: Likewise.
4593 * grub-core/commands/loadenv.c: Likewise.
4594 * grub-core/commands/probe.c: Likewise.
4595 * grub-core/commands/regexp.c: Likewise.
4596 * grub-core/commands/true.c: Likewise.
4597 * grub-core/commands/videoinfo.c: Likewise.
4598 * grub-core/disk/cryptodisk.c: Likewise.
4599 * grub-core/disk/ldm.c: Likewise.
4600 * grub-core/disk/loopback.c: Likewise.
4601 * grub-core/disk/luks.c: Likewise.
4602 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4603 * grub-core/kern/disk.c: Likewise.
4604 * grub-core/kern/emu/hostdisk.c: Likewise.
4605
4606 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4607
4608 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
4609 * util/grub-install.in: Add missing quote in the comment.
4610
4611 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4612
4613 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
4614 * grub-core/commands/lsmmap.c: Likewise.
4615 * grub-core/commands/minicmd.c: Likewise.
4616 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
4617 * grub-core/commands/regexp.c: Likewise.
4618 * grub-core/gdb/gdb.c: Likewise.
4619 * grub-core/term/gfxterm.c: Likewise.
4620 * util/grub-mkconfig.in: Likewise.
4621 * util/grub-mkfont.c: Likewise.
4622 * util/grub-mklayout.c: Likewise.
4623 * util/grub-mknetdir.in: Likewise.
4624 * util/grub-mkrescue.in: Likewise.
4625 * util/grub.d/30_os-prober.in: Likewise.
4626
4627 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4628
4629 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
4630 with "Direct color" and "Packed" with "Packed pixel".
4631 (grub_cmd_videoinfo): Simplify legend.
4632
4633 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4634
4635 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4636 absolutely unclear error message.
4637
4638 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4639
4640 * util/grub-mkstandalone.in: Remove confusing leftover print.
4641
4642 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4643
4644 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
4645 comments.
4646 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
4647 (GRUB_MOD_INIT): Likewise.
4648 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
4649 VGA mode.
4650 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
4651 comments.
4652 * util/grub-install.in (usage): Likewise.
4653 Spell ID in whole letters.
4654 Add missing ending dot.
4655 Quote variables.
4656 * util/grub-reboot.in: Fix capitalisation.
4657 * util/grub-set-default.in: Likewise.
4658
4659 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4660
4661 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
4662 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
4663 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
4664 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
4665 Disable -Werror for -Wdeprecated-declarations.
4666 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
4667 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
4668 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
4669 (grub_util_get_grub_dev): Make luks handling dependent on
4670 HAVE_DEVICE_MAPPER and not __linux__.
4671 (get_win32_path): Fix format security.
4672 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
4673 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
4674 Don't try grub_find_zpool_from_dir.
4675 (grub_make_system_path_relative_to_its_root) [!__linux__]:
4676 #ifdef-out paresdir.
4677
4678 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4679
4680 * util/grub-pe2elf.c (usage): Add missing noreturn.
4681 (write_section_data): Rename name to shname to avoid shadowing.
4682 (write_symbol_table): Rename name to symname to avoid shadowing.
4683 Fix write_reloc_section call.
4684
4685 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4686
4687 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
4688 to ensure that it's after the last byte of .text.
4689
4690 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4691
4692 * util/ieee1275/ofpath.c (my_isdigit): New function.
4693 (trailing_digits): Use my_isdigit.
4694 (strip_trailing_digits): Likewise.
4695
4696 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4697
4698 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
4699 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
4700
4701 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4702
4703 * grub-core/kern/i386/pc/startup.S: Define __start.
4704
4705 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4706
4707 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
4708 strip already transforms he format.
4709
4710 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4711
4712 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
4713
4714 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4715
4716 * util/grub-install.in: Add missing gettext init.
4717 * util/grub-kbdcomp.in: Likewise.
4718 * util/grub-mkconfig.in: Likewise.
4719 * util/grub-mknetdir.in: Likewise.
4720 * util/grub-mkrescue.in: Likewise.
4721 * util/grub-mkstandalone.in: Likewise.
4722 * util/grub-reboot.in: Likewise.
4723 * util/grub-set-default.in: Likewise.
4724 * util/grub.d/00_header.in: Likewise.
4725 * util/grub.d/10_hurd.in: Likewise.
4726 * util/grub.d/10_windows.in: Likewise.
4727 * util/grub.d/30_os-prober.in: Likewise.
4728 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4729
4730 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4731
4732 * po/Rules-swiss: Fix header comment.
4733
4734 2012-02-29 Andreas Vogel <anvoit>
4735
4736 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
4737 resulted in leak of arguments.
4738
4739 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4740
4741 * grub-core/boot/i386/pc/startup_raw.S: Use separate
4742 reed_solomon_size const definition instead of computing it since
4743 Apple assembler doesn't support the later.
4744
4745 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4746
4747 * gentpl.py (kernel): Rewrite Apple part.
4748
4749 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4750
4751 * include/grub/kernel.h (FOR_MODULES): Check module magic.
4752
4753 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4754
4755 * util/grub-mkimagexx.c (locate_sections): Support non-standard
4756 ELF section gap.
4757 (load_image): Likewise.
4758
4759 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4760
4761 * configure.ac: Fix a typo in previous commit.
4762
4763 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4764
4765 Don't add -Wl,-N on Apple platform.
4766
4767 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
4768 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
4769
4770 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4771
4772 * grub-core/Makefile.core.def (lzma_decompress): Use
4773 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
4774
4775 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4776
4777 * grub-core/genmod.sh.in: Rewrite the Apple part.
4778
4779 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4780
4781 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
4782 comparison.
4783
4784 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4785
4786 * acinclude.m4 (grub_CHECK_PIC): New test.
4787 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
4788
4789 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4790
4791 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
4792 to avoid the warning.
4793
4794 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4795
4796 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
4797 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
4798 after. All users updated.
4799
4800 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4801
4802 Use the common size routine in hostfs so we can read disks as well.
4803
4804 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
4805 (grub_util_get_fd_size): ... this. Return size in bytes.
4806 All users updated.
4807 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
4808 grub_util_get_fd_size.
4809
4810 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4811
4812 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
4813 Add blocksize retrieval.
4814
4815 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4816
4817 * configure.ac: Restore CFLAGS after efiemu check.
4818
4819 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4820
4821 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
4822 Apple bug.
4823
4824 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4825
4826 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
4827
4828 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4829
4830 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
4831 (grub_cmd_halt): Likewise.
4832
4833 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4834
4835 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
4836 for local arithmetics.
4837 Break %sp init into 2 instructions.
4838 Add 0 byte at the end.
4839
4840 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4841
4842 * grub-core/disk/diskfilter.c (read_segment): Initialise err
4843 before loops.
4844
4845 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4846
4847 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
4848 for context.
4849
4850 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4851
4852 * grub-core/disk/ldm.c (make_vg): Init part.name.
4853 (grub_ldm_detect): Silence spurious warning.
4854 (grub_util_is_ldm): Likewise.
4855
4856 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4857
4858 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
4859 sane value to avoid a spurious warning.
4860
4861 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4862
4863 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
4864 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
4865
4866 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4867
4868 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
4869 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
4870
4871 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4872
4873 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
4874 hardcoding the relevant info.
4875
4876 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4877
4878 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
4879 missing const qualifiers.
4880 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
4881
4882 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4883
4884 * util/getroot.c [__APPLE__]: Add missing includes.
4885 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
4886
4887 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4888
4889 * util/grub-mkimage.c (generate_image): Silence spurious warning.
4890
4891 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4892
4893 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
4894 avoid conflicts.
4895
4896 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4897
4898 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
4899
4900 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4901
4902 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
4903 and grub_file_close call.
4904
4905 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4906
4907 Add LZSS Mach-O support (needed for new xnu kernelcache).
4908
4909 * grub-core/Makefile.core.def (xnu): Add file lzss.c
4910 * grub-core/loader/lzss.c: New file.
4911 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
4912 on Mach-O open failure.
4913 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
4914 Don't free cmdsXX in uncompressedXX is set.
4915 (grub_macho_file): Init new fields.
4916 New argument is_64bit. All users updated.
4917 Handle compressed. Error out if no suitable architecture is found.
4918 Don't close file.
4919 (grub_macho_open): New argument is_64bit. All users updated.
4920 * grub-core/loader/macho32.c: Add defines for new fields.
4921 * grub-core/loader/macho64.c: Likewise.
4922 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
4923 (grub_macho_parse): Handle compressed.
4924 Defer actual processing if compressed.
4925 (grub_macho_cmds_iterate): Decompress if compressed. New argument
4926 "filename". All users updated.
4927 (grub_macho_size): New argument "filename". All users updated.
4928 (grub_macho_get_entry_point): Likewise.
4929 (grub_macho_load): Handle compressed.
4930 * include/grub/macho.h (grub_macho_lzss_header): New struct.
4931 (GRUB_MACHO_LZSS_OFFSET): New define.
4932 (grub_decompress_lzss): New proto.
4933 * include/grub/machoload.h (grub_macho_file): New fields to handle
4934 compressed.
4935 (grub_macho_contains_macho64): Remove proto.
4936 (grub_macho_contains_macho32): Likewise.
4937 * util/grub.d/30_os-prober.in: Use kernel cache if available.
4938
4939 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4940
4941 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
4942
4943 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4944
4945 Fix make dist.
4946
4947 * Makefile.am (starfield_theme_files): New var.
4948 (starfield_DATA): Use starfield_theme_files.
4949 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
4950 Add bootcheck-related files.
4951 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
4952 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
4953 and font_char_metrics.txt.
4954 * grub-core/Makefile.core.def (kernel): Update extra_dist.
4955 (setjmp): Add lib/ia64/longjmp.S.
4956 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
4957 * po/POTFILES.in: Regenerate.
4958 * po/Rules-swiss: use DISTFILES.common.extra2 and not
4959 DISTFILES.common.extra1.
4960 * util/devicemap.c: Removed.
4961 * grub-core/lib/i386/relocator_backward.S: Likewise.
4962 * util/import_gcry.py: Remove unused files. Add extra_dist for
4963 ChangeLog.
4964
4965 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4966
4967 * grub-core/gettext/gettext.c (grub_mofile_open): Call
4968 grub_gettext_delete_list before changing grub_gettext_max to avoid
4969 running out of array bounds.
4970
4971 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4972
4973 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
4974 grub_vga_text_init/grub_vga_text_fini.
4975
4976 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4977
4978 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
4979
4980 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4981
4982 * configure.ac: Bump to 2.00~beta0.
4983
4984 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4985
4986 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
4987 missing initialisation.
4988
4989 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4990
4991 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
4992
4993 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4994
4995 Support v2 xnu boot arguments.
4996
4997 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
4998 New argument fsbfreq_out.
4999 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
5000 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
5001 be used.
5002 * grub-core/loader/machoXX.c (grub_macho_load): New argument
5003 darwin_version.
5004 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
5005 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
5006 (grub_xnu_boot_params): Rename to ...
5007 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
5008 (grub_xnu_boot_params_v2): New struct.
5009
5010 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5011
5012 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
5013 zeroing of CRC field before computing CRC.
5014
5015 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5016
5017 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
5018 Change order of allocations to decrease fragmentation.
5019
5020 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5021
5022 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
5023
5024 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
5025
5026 Use write-combining MTRR to speed up video with buggy BIOSes.
5027
5028 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
5029 (cpuid): New define.
5030 (rdmsr): Likewise.
5031 (wrmsr): Likewise.
5032 (mtrr_base): Likewise.
5033 (mtrr_mask): Likewise.
5034 (grub_vbe_enable_mtrr_entry): New function.
5035 (grub_vbe_enable_mtrr): Likewise.
5036 (grub_vbe_disable_mtrr): Likewise.
5037 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
5038 control off to BIOS.
5039 (grub_video_vbe_init): Fill mtrr.
5040 (grub_video_vbe_fini): Disable mtrr.
5041 (grub_video_vbe_get_info_and_fini): Likewise.
5042 (grub_video_vbe_setup): Enable mtrr.
5043
5044 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
5045
5046 * include/grub/partition.h (grub_partition_map): Change prototype of
5047 embed to take a maximum value for nsectors.
5048 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
5049 * include/grub/fs.h (grub_fs): Likewise.
5050 * grub-core/partmap/msdos.c (embed_signatures): New array.
5051 (pc_partition_map_embed): Check for and avoid sectors matching any
5052 of the signatures in embed_signatures, up to max_nsectors.
5053 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
5054 returned sector map to max_nsectors.
5055 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
5056 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
5057 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
5058 * util/grub-setup.c (setup): Allow for the embedding area being
5059 split into multiple blocklists. Tell dest_partmap->embed the
5060 maximum number of sectors we care about.
5061
5062 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5063
5064 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
5065 Specify blocklist_install and reserver_first_sector for all fs.
5066 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
5067 blocklists.
5068
5069 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5070
5071 * util/grub-install.in: Clarify strings.
5072 Fix source dir check.
5073
5074 2012-02-27 Richard Laager <rlaager@wiktel.com>
5075
5076 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
5077 "zfs" and "fuse.zfs" as synonyms.
5078
5079 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5080
5081 * configure.ac: Put platform and target_cpu substitutions back since
5082 they are used for directories.
5083
5084 2012-02-27 Richard Laager <rlaager@wiktel.com>
5085 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5086
5087 * util/grub.d/10_linux.in: Add ZFS-related arguments.
5088 * util/grub.d/20_linux_xen.in: Likewise.
5089
5090 2012-02-27 Richard Laager <rlaager@wiktel.com>
5091
5092 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
5093 with full paths.
5094
5095 2012-02-27 Richard Laager <rlaager@wiktel.com>
5096
5097 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
5098 unescape.
5099
5100 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5101
5102 Don't use insecure popen in getroot.
5103
5104 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
5105 (exec_pipe): ... here.
5106 (find_root_devices_from_poolname): Use exec_pipe.
5107
5108 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5109
5110 Remove platform and target_cpu replacement.
5111
5112 * configure.ac: Remove platform and target_cpu substitutions.
5113 * tests/util/grub-shell.in: Use modinfo.
5114 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
5115 explicitly.
5116
5117 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5118
5119 Autodetect platform in grub-install but allow override.
5120
5121 * util/grub-install.in: Autodetect platform. Support --target and
5122 --directory. Read platform from modinfo.sh.
5123
5124 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5125
5126 Support btrfs multi-volume probe.
5127
5128 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
5129 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
5130 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
5131 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
5132 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
5133 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
5134 grub_find_root_devices_from_btrfs if on btrfs.
5135
5136 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5137
5138 Remove any awareness of *.c util files about target.
5139
5140 * Makefile.util.def (grub-setup): Split to ...
5141 (grub-bios-setup): ... and this.
5142 (grub-sparc64-setup): ... and this.
5143 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
5144 * docs/man/grub-setup.h2m: Split into ...
5145 * docs/man/grub-sparc64-setup.h2m: ... this.
5146 * docs/man/grub-bios-setup.h2m: ... and this.
5147 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
5148 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
5149 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
5150 (grub_target_addr_t): Remove.
5151 (grub_target_size_t): Remove.
5152 (grub_target_ssize_t): Remove.
5153 * util/grub-install.in: Use new grub-*-setup.
5154 * util/grub-mkimagexx.c (Elf_Word): New define.
5155 (Elf_Half): Likewise.
5156 (Elf_Section): Likewise.
5157 (ELF_ST_TYPE): Likewise.
5158 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
5159 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
5160
5161 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5162
5163 Replace grub_target_addr with more appropriate types.
5164
5165 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
5166 grub_target_addr with grub_addr.
5167 * grub-core/commands/iorw.c (grub_cmd_read): Replace
5168 grub_target_addr with grub_port.
5169 (grub_cmd_write): Likewise.
5170 * grub-core/commands/memrw.c (grub_cmd_read): Replace
5171 grub_target_addr with grub_addr.
5172 (grub_cmd_write): Likewise.
5173 * grub-core/video/efi_uga.c (find_line_len): Likewise.
5174
5175 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5176
5177 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
5178 const qualifier for vendor_guid.
5179
5180 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5181
5182 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
5183 const qualifier.
5184 (efiemu_memequal): Likewise.
5185 (find_variable): Likewise.
5186
5187 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5188
5189 Fix missing console prototype on qemu-mips.
5190
5191 * include/grub/mips/qemu_mips/console.h: New file.
5192
5193 2012-02-27 Matthew Garrett <mjg@redhat.com>
5194 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5195
5196 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
5197 * include/grub/efi/efi.h: Likewise.
5198 * include/grub/efi/api.h: Add guid for EFI-specified variables.
5199 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
5200 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
5201 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
5202 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
5203 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
5204
5205 2012-02-27 Matthew Garrett <mjg@redhat.com>
5206
5207 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
5208
5209 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5210
5211 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
5212 error.
5213
5214 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5215
5216 * configure.ac: Remove inappropriate use of program_transform_name
5217 on grubdir and bootdir but allow explicit specification of those
5218 variables.
5219
5220 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5221
5222 * util/grub-mknetdir.in (grub_prefix): Removed.
5223 (subdir): Use @bootdirname@ and @grubdirname@.
5224
5225 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5226
5227 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
5228
5229 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5230
5231 * po/POTFILES.in: Regenerated.
5232
5233 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5234
5235 Remove improper use of program_transform_name on pkglibrootdir.
5236
5237 * configure.ac (pkglibrootdir): Removed.
5238 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
5239 * util/grub-mkimage.c: Likewise.
5240
5241 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5242
5243 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
5244 warning.
5245
5246 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5247
5248 * util/grub-install.in: Use file identifier if no UUID is available
5249 or user explicitly prompted for it.
5250
5251 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
5252
5253 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
5254 (freebsd_get_zfs): New function.
5255 (grub_freebsd_boot): Pass zfs UUID.
5256 (grub_cmd_freebsd): Set zfs UUID.
5257
5258 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5259
5260 * conf/Makefile.common (platformdir): Base on pkglibdir and not
5261 pkglibrootdir.
5262
5263 2012-02-27 Mike Gilbert <floppym@gentoo.org>
5264
5265 Add configure flag to control libzfs integration.
5266
5267 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
5268
5269 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5270
5271 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
5272 device.
5273 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
5274 small devices.
5275
5276 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5277
5278 Remove grub_{modname}_init and grub_{modname}_fini. They should never
5279 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
5280 be used on non-modules.
5281
5282 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
5283 Rename to grub_boot_init.
5284 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
5285 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
5286 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
5287 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
5288 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
5289 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
5290 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
5291 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
5292 includes.
5293 (grub_machine_init): Remove empty inits.
5294 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
5295 includes.
5296 (grub_machine_init): Remove empty inits.
5297 * grub-core/term/arc/console.c: Remove explicit proto.
5298 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
5299 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
5300 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5301 grub_at_keyboard_fini.
5302 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
5303 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
5304 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5305 grub_gfxterm_fini.
5306 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
5307 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
5308 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5309 grub_vgatext_fini.
5310 * grub-core/term/ieee1275/console.c: Remove explicit proto.
5311 * grub-core/term/serial.c (GRUB_MOD_INIT)
5312 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
5313 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5314 grub_serial_fini.
5315 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
5316 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
5317 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5318 grub_terminfo_fini.
5319 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
5320 (GRUB_MOD_FINI): Likewise.
5321 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
5322 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
5323 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5324 grub_video_radeon_fuloong2e_fini.
5325 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
5326 [LOONGSON]: Rename to grub_video_sis315pro_init.
5327 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5328 grub_video_sis315pro_fini.
5329 * grub-core/video/sm712.c (GRUB_MOD_INIT)
5330 [LOONGSON]: Rename to grub_video_sm712_init.
5331 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5332 grub_video_sm712_fini.
5333 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
5334 (grub_at_keyboard_fini): Likewise.
5335 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
5336 Don't declare grub_{modname}_init.
5337 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
5338 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
5339 New proto.
5340 (grub_keylayouts_fini) [!EMU]: Likewise.
5341 * include/grub/serial.h (grub_serial_init) [!EMU]:
5342 New proto.
5343 (grub_serial_fini) [!EMU]: Likewise.
5344 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
5345 New proto.
5346 (grub_terminfo_fini) [!EMU]: Likewise.
5347 * include/grub/video.h (grub_font_init) [!EMU]:
5348 New proto.
5349 (grub_font_fini) [!EMU]: Likewise.
5350 (grub_gfxterm_init) [!EMU]: Likewise.
5351 (grub_gfxterm_fini) [!EMU]: Likewise.
5352 (grub_video_sm712_init) [!EMU]: Likewise.
5353 (grub_video_sm712_fini) [!EMU]: Likewise.
5354 (grub_video_sis315pro_init) [!EMU]: Likewise.
5355 (grub_video_sis315pro_fini) [!EMU]: Likewise.
5356 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
5357 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
5358
5359 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5360
5361 Make nand a prefix for nand devices.
5362
5363 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
5364
5365 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5366
5367 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
5368 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
5369
5370 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5371
5372 * include/grub/env.h (grub_env_find): Remove prototype.
5373 * grub-core/kern/env.c (grub_env_find): Make static.
5374 (grub_env_set): Remove useless set.
5375
5376 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5377
5378 * grub-core/kern/i386/realmode.S: Remove useless align.
5379
5380 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5381
5382 * include/grub/dl.h (grub_dl_load_file): Don't export.
5383
5384 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5385
5386 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
5387 grub_dprintf.
5388
5389 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5390
5391 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
5392 grub_errors.
5393 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
5394 not reloading whole superblock but only the part which is really needed.
5395 Remove useless grub_errors.
5396 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
5397 grub_errors.
5398
5399 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5400
5401 Don't export grub_get_rtc.
5402
5403 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
5404 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
5405
5406 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5407
5408 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
5409
5410 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5411
5412 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
5413 argument since it can be deduced from diskfilter. All users updated.
5414
5415 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5416
5417 Remove prio_list.
5418
5419 * include/grub/list.h (grub_prio_list): Removed.
5420 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
5421 GRUB_COMMAND_PRIO_MASK.
5422 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
5423 GRUB_COMMAND_FLAG_ACTIVE.
5424 (grub_prio_list_insert): Removed.
5425 (grub_prio_list_remove): Likewise.
5426 (GRUB_AS_PRIO_LIST): Likewise.
5427 (GRUB_AS_PRIO_LIST_P): Likewise.
5428 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
5429 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
5430 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
5431 * grub-core/kern/command.c (grub_register_command_prio): Inline
5432 the prio_list code.
5433 (grub_unregister_command): Likewise.
5434
5435 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5436
5437 Fix interrupt mixup from previous commit.
5438
5439 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
5440 (grub_realidt): New var.
5441 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
5442 Load idt.
5443 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
5444 New declaration.
5445 (grub_relocator16_boot): Set grub_relocator16_idt.
5446 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
5447 (LOCAL(realidt)): ... this.
5448 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
5449 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
5450 (grub_realidt): New variable.
5451
5452 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5453
5454 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
5455 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
5456 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
5457 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
5458 Gettextize.
5459 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
5460 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
5461 * po/POTFILES.in: Regenerate.
5462
5463 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5464
5465 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
5466 errors.
5467
5468 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5469
5470 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
5471 \0.
5472 (add_length): Likewise.
5473
5474 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5475 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
5476
5477 GDB serial and backtrace support.
5478
5479 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
5480 (prot_to_real): Likewise.
5481 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
5482 * grub-core/Makefile.core.def (backtrace): New module.
5483 (gdb): Likewise.
5484 * grub-core/gdb/cstub.c: New file.
5485 * grub-core/gdb/gdb.c: Likewise.
5486 * grub-core/gdb/i386/idt.c: Likewise.
5487 * grub-core/gdb/i386/machdep.S: Likewise.
5488 * grub-core/gdb/i386/signal.c: Likewise.
5489 * grub-core/lib/i386/backtrace.c: Likewise.
5490 * grub-core/lib/backtrace.c: Likewise.
5491 * include/grub/backtrace.h: Likewise.
5492 * include/grub/gdb.h: Likewise.
5493 * include/grub/i386/gdb.h: Likewise.
5494
5495 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5496
5497 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
5498 New function.
5499 (add_length): Likewise.
5500 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
5501 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
5502 proto.
5503 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
5504 __argp_get_display_len.
5505
5506 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5507
5508 $"..." support in scripts.
5509
5510 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
5511 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
5512 * grub-core/script/yylex.l: Likewise.
5513 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
5514 value.
5515
5516 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5517
5518 * gentpl.py: Remove obsolete pkglib_DATA handling.
5519
5520 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5521
5522 Don't transform PACKAGE_TARNAME following a discussion on autoconf
5523 mailing list.
5524
5525 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
5526 * util/grub-kbdcomp.in: Likewise.
5527 * util/grub-mkconfig.in: Likewise.
5528 * util/grub-mkconfig_lib.in: Likewise.
5529 * util/grub-mknetdir.in: Likewise.
5530 * util/grub-mkrescue.in: Likewise.
5531 * util/grub-mkstandalone.in: Likewise.
5532 * util/grub-reboot.in: Likewise.
5533 * util/grub-set-default.in: Likewise.
5534 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5535
5536 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5537
5538 Remove GRUB_PREFIX.
5539
5540 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
5541 * util/grub.d/00_header.in: Compute prefix in the only place it's still
5542 used for backward compatibility.
5543
5544 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5545
5546 Add new all_video module.
5547
5548 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
5549 * grub-core/Makefile.core.def (all_video): New module.
5550 * grub-core/genmoddep.awk: Generate dependency of all_video from
5551 video.lst.
5552 * grub-core/lib/fake_module.c: New file.
5553 * grub-core/normal/main.c (features): Add feature_all_video_module.
5554 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
5555 don't do explicit search again.
5556 insmod all_video in load_video if available.
5557
5558 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5559
5560 Another round of string clarification and adding TRANSLATORS comments.
5561
5562 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5563
5564 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
5565
5566 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5567
5568 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
5569 to grub_ssize_t.
5570 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
5571 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
5572
5573 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5574
5575 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
5576 trailing newline implicitly. All users updated.
5577
5578 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5579
5580 Implement serial on IEEE1275 and EFI.
5581
5582 * docs/grub.texi (Platform-specific limitations): Fix the columen video
5583 on emu. Mention arc and emu as the only platforms without serial
5584 support.
5585 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
5586 ieee1275 platforms.
5587 * grub-core/term/efi/serial.c: New file.
5588 * grub-core/term/ieee1275/serial.c: Likewise.
5589 * grub-core/term/serial.c (grub_serial_find): Disable direct port
5590 specification if no ns8250 driver is available.
5591 (grub_cmd_serial): Likewise.
5592 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
5593 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
5594 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
5595 (grub_efi_parity_type_t): New type.
5596 (grub_efi_stop_bits_t): Likewise.
5597 (grub_efi_serial_io_interface): New struct.
5598 * include/grub/serial.h (grub_serial_port): Make 'broken' field
5599 available for all interfaces.
5600 Add EFI and IEEE1275 fields.
5601 (grub_ofserial_init): New proto.
5602 (grub_efiserial_init): Likeiwse.
5603 * util/grub.d/00_header.in: Don't check for the presence of serial
5604 module.
5605
5606 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5607
5608 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
5609 name as if it was an alias.
5610
5611 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5612
5613 * grub-core/commands/lsacpi.c (options): Fix typo.
5614
5615 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5616
5617 Convert grub-emu to argp.
5618
5619 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
5620 emu.
5621 * util/argp_common.c: Rename to ...
5622 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
5623 Add missing includes.
5624 * grub-core/kern/emu/main.c: Convert to argp.
5625 * po/POTFILES.in: Regenerate.
5626 * util/grub-install.in (usage): Make first letter lowcase in messages
5627 for uniformity.
5628 * util/grub-setup.c (options): Likewise.
5629
5630 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5631
5632 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
5633 Put back accidently commented-out code.
5634
5635 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5636
5637 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
5638 loop check using Brent algorithm.
5639 (grub_hfsplus_btree_search): Likewise.
5640
5641 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5642
5643 * util/grub-install.in: Fix usage of wrong device for PreP install.
5644
5645 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5646
5647 * conf/Makefile.common (CFLAGS_GNULIB): Add
5648 -Wno-unsafe-loop-optimizations.
5649 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
5650 on tools.
5651 * grub-core/commands/legacycfg.c: Add pragma to skip
5652 -Wunsafe-loop-optimizations.
5653 (check_password_md5_real): Fix loop counter type.
5654 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
5655 reading.
5656 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
5657 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
5658 loop condition.
5659 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
5660 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
5661 * grub-core/net/net.c (grub_net_route_address): Add safety loop
5662 condition.
5663 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
5664 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
5665 avoid possible infinite loops.
5666 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
5667 and -Wunsafe-loop-optimizations.
5668 * grub-core/script/yylex.l: Likewise.
5669 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
5670 (print_glyphs): Avoid infinite loops.
5671 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
5672
5673 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
5674
5675 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
5676 to avoid infinite loop.
5677 (disp_acpi_rsdt_table): Likewise.
5678
5679 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5680
5681 * grub-core/font/font.c (grub_font_load): Add support for default
5682 path for fonts ($prefix/fonts).
5683 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
5684 for checking if string is a path.
5685 * grub-core/normal/main.c (features): Add feature_default_font_path.
5686 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
5687 * util/grub.d/00_header.in: Use default directory if possible.
5688 * util/grub-install.in: Install unicode.pf2.
5689
5690 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5691
5692 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
5693 * po/Rules-swiss: New file.
5694 * po/swiss.sed: Likewise.
5695
5696 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5697
5698 * grub-core/fs/btrfs.c (find_device): Fix typos.
5699 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
5700 * util/grub-mkrelpath.c (argp_parser): Likewise.
5701 Reported by: Yuri Chornoivan.
5702
5703 2012-02-23 Dalet Omega <daletomega@gmail.com>
5704
5705 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
5706 for usual informative messages.
5707
5708 2012-02-23 Dalet Omega <daletomega@gmail.com>
5709
5710 Starfield theme.
5711
5712 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
5713 * conf/Makefile.common: Define starfielddir.
5714 * configure.ac: Configure starfield.
5715 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
5716 * themes/starfield/README: Likewise.
5717 * themes/starfield/blob_w.png: Likewise.
5718 * themes/starfield/boot_menu_c.png: Likewise.
5719 * themes/starfield/boot_menu_e.png: Likewise.
5720 * themes/starfield/boot_menu_n.png: Likewise.
5721 * themes/starfield/boot_menu_ne.png: Likewise.
5722 * themes/starfield/boot_menu_nw.png: Likewise.
5723 * themes/starfield/boot_menu_s.png: Likewise.
5724 * themes/starfield/boot_menu_se.png: Likewise.
5725 * themes/starfield/boot_menu_sw.png: Likewise.
5726 * themes/starfield/boot_menu_w.png: Likewise.
5727 * themes/starfield/slider_c.png: Likewise.
5728 * themes/starfield/slider_n.png: Likewise.
5729 * themes/starfield/slider_s.png: Likewise.
5730 * themes/starfield/src/blob_nw.xcf: Likewise.
5731 * themes/starfield/src/bootmenu/: Likewise.
5732 * themes/starfield/src/bootmenu/center.xcf: Likewise.
5733 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
5734 * themes/starfield/src/bootmenu/side.xcf: Likewise.
5735 * themes/starfield/src/slider_c.xcf: Likewise.
5736 * themes/starfield/src/slider_n.xcf: Likewise.
5737 * themes/starfield/src/slider_s.xcf: Likewise.
5738 * themes/starfield/src/terminalbox/: Likewise.
5739 * themes/starfield/src/terminalbox/center.xcf: Likewise.
5740 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
5741 * themes/starfield/src/terminalbox/side.xcf: Likewise.
5742 * themes/starfield/starfield.png: Likewise.
5743 * themes/starfield/terminal_box_c.png: Likewise.
5744 * themes/starfield/terminal_box_e.png: Likewise.
5745 * themes/starfield/terminal_box_n.png: Likewise.
5746 * themes/starfield/terminal_box_ne.png: Likewise.
5747 * themes/starfield/terminal_box_nw.png: Likewise.
5748 * themes/starfield/terminal_box_s.png: Likewise.
5749 * themes/starfield/terminal_box_se.png: Likewise.
5750 * themes/starfield/terminal_box_sw.png: Likewise.
5751 * themes/starfield/terminal_box_w.png: Likewise.
5752 * themes/starfield/theme.txt: Likewise.
5753
5754 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5755
5756 * util/grub.d/00_header.in: Add missing export theme.
5757
5758 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5759
5760 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
5761 already included.
5762 Reported by: Eren D.
5763
5764 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5765
5766 * conf/Makefile.common (grubdatadir): Removed.
5767 (Makefile.am): Move eveything grubdata to pkgdata.
5768
5769 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5770
5771 * grub-core/commands/acpihalt.c (get_sleep_type):
5772 Remove unused variable.
5773
5774 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5775
5776 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
5777 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
5778 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
5779 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
5780 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
5781 i18n with gettext no-op.
5782 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
5783 GRUB_ACPI_OPCODE_STRING_CONST.
5784 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
5785 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
5786
5787 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5788
5789 * po/POTFILES.in: Regenerate.
5790
5791 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5792
5793 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
5794 -Wno-error=missing-noreturn.
5795
5796 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5797
5798 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
5799 condition to avoid possibly infinite loops.
5800 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
5801 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
5802
5803 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5804
5805 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
5806 condition to avoid possibly infinite loops.
5807
5808 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5809
5810 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
5811 on show_error.
5812
5813 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5814
5815 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
5816
5817 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5818
5819 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
5820
5821 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5822
5823 * util/bin2h.c (usage): Add missing attribute noreturn.
5824
5825 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5826
5827 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
5828 if the size isn't divisible by 512.
5829
5830 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5831
5832 Make list_push and list_remove functions rather than inline functions
5833 to decrease size and avoid aliasing violations.
5834
5835 * include/grub/list.h (grub_list_push): Move to ...
5836 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
5837 * include/grub/list.h (grub_list_remove): Move to ...
5838 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
5839
5840 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5841
5842 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
5843 and -Wunused-result.
5844
5845 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5846
5847 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
5848 Reported by: Seth Goldberg
5849
5850 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5851
5852 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
5853
5854 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5855
5856 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
5857 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
5858 command line.
5859 * docs/grub.texi (Simple configuration): Document
5860 GRUB_CMDLINE_GNUMACH.
5861
5862 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5863
5864 * conf/Makefile.common (platform_SCRIPTS): New variable.
5865 (platform_PROGRAMS): Likewise.
5866 * gentpl.py: Mark *,module and *.image for install.
5867 * grub-core/gdb_grub.in: Add a notice of expected environment.
5868 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
5869 (gmodule.pl): Likewise.
5870
5871 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5872
5873 Replace grub_checkkey with grub_getkey_noblock.
5874
5875 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
5876 (grub_getkey_noblock): ... this. All users updated.
5877
5878 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5879
5880 * grub-core/kern/emu/console.c: Move to ...
5881 * grub-core/term/emu/console.c: ...here.
5882 (grub_ncurses_getkey): Fix return value if no key is detected.
5883
5884 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5885
5886 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
5887 (grub_unit_test_fini): Likewise.
5888 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
5889
5890 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5891
5892 * include/grub/test.h (GRUB_UNIT_TEST)
5893
5894 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5895
5896 * grub-core/script/execute.c (grub_script_break): Clarify logic.
5897 Better error handling.
5898 (grub_script_return): Likewise.
5899 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
5900
5901 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5902
5903 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
5904 rimplicit redifinition.
5905
5906 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5907
5908 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
5909 GRUB.
5910
5911 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5912
5913 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
5914 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
5915 prompt here.
5916
5917 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5918
5919 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
5920 as GRUB_ERR_BUG. Don't malloc if no device is available.
5921
5922 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5923
5924 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
5925 Mark calling with invalid term as GRUB_ERR_BUG.
5926
5927 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5928
5929 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
5930 packets rather than raising an error.
5931
5932 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5933
5934 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
5935 in if.
5936
5937 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5938
5939 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
5940 diagnostic to dprintf.
5941 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
5942
5943 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5944
5945 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
5946 device name.
5947
5948 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5949
5950 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
5951 (grub_ntfs_iterate_dir): Likewise.
5952
5953 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5954
5955 Efiemu stylistic fixes and gettext.
5956
5957 * grub-core/efiemu/i386/loadcore32.c
5958 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
5959 * grub-core/efiemu/i386/loadcore64.c
5960 (grub_arch_efiemu_relocate_symbols64): Likewise.
5961 * grub-core/efiemu/i386/pc/cfgtables.c
5962 (grub_machine_efiemu_init_tables): Likewise.
5963 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
5964 (grub_efiemu_loadcore_initXX): Add a filename argument.
5965 All users updated.
5966 Improved error message.
5967 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
5968 Add a filename argument.
5969 All users updated.
5970 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
5971 Reclassify double relocation as GRUB_ERR_BUG.
5972
5973 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5974
5975 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
5976 handling.
5977
5978 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5979
5980 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
5981 on partition.
5982
5983 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5984
5985 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
5986
5987 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5988
5989 Improve string. Gettextize.
5990
5991 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5992
5993 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
5994 utils.
5995 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
5996
5997 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5998
5999 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
6000 [GRUB_UTIL]: New function.
6001 (insert_array) [GRUB_UTIL]: Store partmaps.
6002 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
6003 partmaps.
6004 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
6005 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
6006 (probe_abstraction): Print diskfilter and not raid.
6007 Reported by: Lennart Sorensen
6008
6009 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6010
6011 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
6012 * util/grub-mkimagexx.c (MASK3): New define.
6013 (add_value_to_slot_20b): Use MASK3.
6014 (add_value_to_slot_21): Likewise.
6015 (relocate_addresses): Fix format specification.
6016 (load_image): Explicitly init symtab_section.
6017
6018 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6019
6020 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
6021 (grub_util_biosdisk_get_grub_dev): Fix format specification.
6022
6023 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6024
6025 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
6026 on powerpc.
6027 Reported by: Lennart Sorensen
6028
6029 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6030
6031 * gentpl.py: Add missing license header.
6032 * docs/grub.texi: Update copyright year.
6033
6034 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
6035
6036 Source grub-mkconfig_lib from the build directory at build time.
6037 Suggested by: Vladimir Serbinenko.
6038
6039 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
6040 * util/grub-install.in: Define pkgdatadir if not already set, and source
6041 grub-mkconfig_lib from there.
6042 * util/grub-kbdcomp.in: Likewise.
6043 * util/grub-mkconfig.in: Likewise.
6044 * util/grub-mknetdir.in: Likewise.
6045 * util/grub-mkrescue.in: Likewise.
6046 * util/grub-mkstandalone.in: Likewise.
6047 * util/grub-reboot.in: Likewise.
6048 * util/grub-set-default.in: Likewise.
6049 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6050
6051 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6052
6053 Increase warning level.
6054
6055 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
6056 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
6057 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
6058 (TARGET_CFLAGS): Likewise.
6059 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
6060 * grub-core/Makefile.core.def (decompressor_xz): Add
6061 -Wno-unreachable-code.
6062 (normal): Add -Wno-redundant-decls.
6063 (xzio): Add -Wno-unreachable-code.
6064 (lzopio): Add -Wno-redundant-decls -Wno-error.
6065 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
6066 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
6067 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
6068 * grub-core/kern/dl.c: Add exception to -Wcast-align.
6069 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
6070 * grub-core/kern/i386/coreboot/init.c: Add exception to
6071 -Wsuggest-attribute=noreturn.
6072 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
6073 * grub-core/kern/ia64/dl_helper.c: Likewise.
6074 * grub-core/kern/mips/dl.c: Likewise.
6075 * grub-core/kern/sparc64/dl.c: Likewise.
6076 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
6077 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
6078 (memcmp): Likewise.
6079 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
6080 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
6081 * grub-core/loader/mips/linux.c: Likewise.
6082 * grub-core/loader/multiboot_elfxx.c: Likewise.
6083 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
6084 * grub-core/video/sm712.c: Add exception to -Wcast-align.
6085 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
6086 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
6087 fixme.
6088 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
6089 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
6090 Fix prototype.
6091
6092 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6093
6094 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
6095 address.
6096
6097 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6098
6099 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
6100 Avoid improper use of strings.
6101 (grub_cmd_legacy_initrdnounzip): Likewise.
6102
6103 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6104
6105 * include/grub/emu/misc.h (grub_util_warn): Add missing format
6106 attribute.
6107 (grub_util_info): Likewise.
6108 (grub_util_error): Likewise.
6109
6110 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6111
6112 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
6113 * util/grub-fstest.c (fstest): Likewise.
6114
6115 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6116
6117 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
6118 (grub_md_sha512_real): Likewise.
6119 (grub_util_get_geli_uuid): Likewise.
6120 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
6121 (grub_util_biosdisk_open): Fix format specification.
6122 Respect format security.
6123 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
6124 (xrealloc): Likewise.
6125 (xasprintf): Likewise.
6126
6127 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6128
6129 * util/import_gcry.py: Include grub/crypto.h in init.c.
6130
6131 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6132
6133 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
6134 (generate_image): Make prefix a const char *.
6135 Fix format specifications. Respect format security.
6136 Avoid void * arithmetics.
6137 Avoid shadowing.
6138 (argp_parser): Remove unused variable. Respect format security.
6139 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
6140 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
6141 (count_funcs): Remove unused variable.
6142 (relocate_addresses): Fix format specification.
6143 Disable x86-64 with elf32. Remove unused variables.
6144 (add_fixup_entry): Avoid shadowing.
6145 (make_reloc_section): Fix format specification.
6146 Use assert.
6147 (locate_sections): Fix format specifications.
6148 (load_image): Avoid shadowing.
6149
6150 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6151
6152 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
6153 Fix format specifications. Respect format security.
6154 Don't translate already translated grub_errmsg.
6155 (argp_parser): Remove unused variable
6156
6157 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6158
6159 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
6160
6161 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6162
6163 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
6164 (main): Likewise. Use xmalloc. Respect format security.
6165
6166 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6167
6168 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
6169 a const char *.
6170 (argp_parser): Remove unused variable.
6171
6172 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6173
6174 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
6175 (add_pixel): Make static.
6176 (add_font): Likewise.
6177 (write_string_section): Make name and str a const char *.
6178 (write_be16_section): Make name a const char *.
6179 (print_glyphs): Make static.
6180 (write_font_ascii_bitmap): Likewise.
6181 (write_font_width_spec): Likewise.
6182 (write_font_pf2): Likewise.
6183 (argp_parser): Remove unused variable.
6184 Respect format security.
6185 (main): Avoid shadowing. Respect format security.
6186
6187 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6188
6189 * util/grub-editenv.c (argp_parser): Make static.
6190 (create_envblk_file): Use xmalloc.
6191 (open_envblk_file): Likewise.
6192 Resepect format security.
6193 (set_variables): Respect format security.
6194
6195 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6196
6197 * util/getroot.c (grub_find_device): Respect format security.
6198 (get_mdadm_uuid): Remove unused variable.
6199 (grub_util_pull_device): Dont call gettext on already translated
6200 grub_errmsg.
6201 (find_system_device): Remove unused variable.
6202 (grub_util_get_grub_dev): Likewise.
6203 (grub_make_system_path_relative_to_its_root): Respect format security.
6204
6205 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6206
6207 * util/grub-fstest.c (execute_command): Make first argument
6208 a const char *.
6209 (read_file): Avoid shadowing.
6210 Reuse underlying error message if device open fails.
6211 (cmd_cmp): Respect format security.
6212 (root): Make const char *.
6213 (fstest): Remove args argument and use global copy.
6214 Respect format security.
6215 (argp_parser): Make static.
6216 (main): Make default_root const char *.
6217
6218 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6219
6220 * util/grub-mount.c (root): Make const char *.
6221 (execute_command): Make first argument a const char *.
6222 (fuse_init): Respect format security.
6223 (argp_parser): Make static. Remove unused variable.
6224 (main): Make default_root a const char *.
6225 Respect format security.
6226
6227 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6228
6229 * util/grub-probe.c (probe): Don't call gettext on already translated
6230 grub_errmsg.
6231 Remove unused variables.
6232 (argp_parser): Remove unused variable.
6233
6234 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6235
6236 * util/grub-script-check.c (argp_parser): Remove unused variable.
6237 (main): Rename read to curread to avoid shadowing.
6238
6239 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6240
6241 * util/misc.c (grub_util_write_image_at): Fix format specification.
6242 (grub_util_write_image): Likewise.
6243 (grub_script_execute_argument_to_string): Removed (unused).
6244 (grub_script_execute_menuentry): Likewise.
6245 (grub_putchar): Likewise.
6246
6247 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6248
6249 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
6250 (FUNCTION) [GRUB_UTIL]: Likewise.
6251 (VARIABLE) [GRUB_UTIL]: Likewise.
6252
6253 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6254
6255 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
6256 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
6257
6258 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6259
6260 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
6261 buffer.
6262
6263 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6264
6265 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
6266 (LzmaEnc_SaveState): Removed (unused).
6267 (LzmaEnc_RestoreState): Likewise.
6268 (LzmaEnc_InitPriceTables): Made static.
6269 (LzmaEnc_Construct): Likewise.
6270 (LzmaEnc_FreeLits): Likewise.
6271 (LzmaEnc_Destruct): Likewise.
6272 (LzmaEnc_Init): Likewise.
6273 (LzmaEnc_InitPrices): Likewise.
6274 (LzmaEnc_Finish): Likewise.
6275 (LzmaEnc_PrepareForLzma2): Removed (unused).
6276 (LzmaEnc_MemPrepare): Likewise.
6277 (LzmaEnc_GetNumAvailableBytes): Likewise.
6278 (LzmaEnc_GetCurBuf): Likewise.
6279 (LzmaEnc_CodeOneMemBlock): Likewise.
6280
6281 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6282
6283 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
6284 (grub_util_ldm_embed): Likewise.
6285
6286 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6287
6288 * util/grub-editenv.c (print_var): Rename name to varname to
6289 avoid shadowing.
6290 (main): Rename index to curindex to avoid shadowing.
6291 Make filename a const char *.
6292
6293 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6294
6295 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
6296 to arg_getline to avoid shadowing.
6297
6298 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6299
6300 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
6301 disk_ to avoid shadowing.
6302
6303 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6304
6305 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
6306 curindex to avoid shadowing.
6307 Make static.
6308 (MatchFinder_GetNumAvailableBytes): Make static.
6309
6310 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6311
6312 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
6313 avoid shadowing.
6314
6315 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6316
6317 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
6318 argument from encrypt to do_encrypt to avoid shadowing.
6319
6320 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6321
6322 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
6323 incorrect nesting of #if's.
6324
6325 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6326
6327 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
6328 checks which are always false on some platforms.
6329 (grub_cmd_lsacpi): Likewise.
6330 * grub-core/kern/misc.c (grub_strtoul): Likewise.
6331 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
6332 Likewise.
6333
6334 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6335
6336 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
6337 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
6338
6339 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6340
6341 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
6342 re_dfa_t to avoid breaking alignment invariants.
6343 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
6344 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
6345
6346 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6347
6348 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
6349 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
6350
6351 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6352
6353 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
6354 Fix declaration.
6355
6356 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6357
6358 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
6359 conserve alignment invariants.
6360 (grub_ehci_ehcc_read16): Likewise.
6361 (grub_ehci_oper_read32): Likewise.
6362 (grub_ehci_oper_write32): Likewise.
6363 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
6364 Conserve alignment invariants.
6365
6366 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6367
6368 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
6369 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
6370 declarations.
6371
6372 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6373
6374 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
6375 Remove unused variable.
6376
6377 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6378
6379 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
6380 Remove set in if.
6381
6382 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6383
6384 * include/grub/net.h: Remove double declarations.
6385
6386 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6387
6388 Remove "payload" command in ia64 Linux loader since I couldn't
6389 find any evidence of it being used for anything.
6390 Replace "relocate" command with an environment variable
6391
6392 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
6393 fields.
6394 (ia64_boot_payload): Removed.
6395 (last_payload): Likewise.
6396 (RELOCATE_OFF): Likewise.
6397 (RELOCATE_ON): Likewise.
6398 (RELOCATE_FORCE): Likewise.
6399 (relocate): Likewise.
6400 (free_pages): Don't free payloads.
6401 (grub_load_elf64): Use common error messages.
6402 Use "linux_relocate" variable.
6403 Increase the space after boot_params.
6404 (grub_cmd_payload): Removed.
6405 (grub_cmd_relocate): Likewise.
6406 (grub_cmd_fpswa): Improve messages.
6407 (cmd_payload): Removed.
6408 (cmd_relocate): Likewise.
6409 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
6410 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
6411
6412 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6413
6414 Convert UHCI to DMA framework.
6415
6416 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
6417 (grub_uhci_pci_iter): Fill new members
6418 (grub_alloc_td): Use P2V and V2P functions.
6419 (grub_free_queue): Likewise.
6420 (grub_alloc_qh): Likewise.
6421 (grub_uhci_setup_transfer): Likewise.
6422 (grub_uhci_check_transfer): Likewise.
6423
6424 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6425
6426 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
6427 Remove assignment in if while on it.
6428
6429 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6430
6431 * util/grub-mkstandalone.in: Fix modules directory.
6432
6433 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6434
6435 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
6436 on i386-pc target.
6437 (argp_parser): Accept "auto" as compression specification.
6438
6439 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6440
6441 Fix `help' with unloaded modules.
6442
6443 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
6444 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
6445 (grub_dyncmd_dispatcher): Small stylistic fix.
6446 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
6447 explicit help is requested.
6448
6449 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6450
6451 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
6452 Explicitly init restart while on it.
6453
6454 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6455
6456 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
6457 uninited variable.
6458
6459 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6460
6461 * util/grub-mknetdir.in: Use . rather than source for POSIX
6462 compatibility.
6463
6464 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6465
6466 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
6467
6468 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6469
6470 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
6471 variable.
6472
6473 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6474
6475 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
6476 without quotes.
6477
6478 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6479
6480 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
6481
6482 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6483
6484 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
6485 iteration of partitions.
6486
6487 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6488
6489 Improve gettext support. Stylistic fixes and error handling fixes while
6490 on it.
6491
6492 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6493
6494 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
6495 part. Instead setup the correct stack in RM.
6496 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
6497 for stack.
6498 * include/grub/i386/relocator_private.h: New file.
6499
6500 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6501
6502 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
6503 argument.
6504 * util/grub-fstest.c (options): Add missing DEVICE part.
6505
6506 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6507
6508 Clarify and unify messages.
6509
6510 * grub-core/commands/hashsum.c (options): Unify messages.
6511 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
6512 literal-only message as translatable.
6513 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
6514 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
6515 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
6516 commands.
6517 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
6518 key, not the key used to unlock. Clarify what it's used for.
6519 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
6520 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
6521 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
6522 * util/grub-editenv.c (options): Unify "verbose" message.
6523 * util/grub-fstest.c (read_file): Unify error message.
6524 (fstest): Add quotes around commands.
6525 (options): Unify "verbose" message.
6526 * util/grub-install.in: Add quotes around variable name.
6527 * util/grub-kbdcomp.in: Unify error message.
6528 * util/grub-mkfont.c (main): Likewise.
6529 * util/grub-mkrescue.in: Likewise.
6530 * util/grub-mklayout.c (options): Unify "verbose" message.
6531 * util/grub-mkstandalone.in: Unify help and verbose messages.
6532 * util/grub-mount.c (options): Unify "verbose" message.
6533 * util/grub-probe.c (options): Likewise.
6534 * util/grub-script-check.c (options): Likewise.
6535 * util/grub-setup.c (setup): Unify no-terminator message.
6536 (options): Use DEVICE and not DEV.
6537 Unify "verbose" message.
6538 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
6539
6540 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6541
6542 Improve and unify messages.
6543
6544 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
6545 name. All users updated.
6546 Print filename in error.
6547 (read_device_map): Print filename in error.
6548 * util/getroot.c (grub_guess_root_devices): Print filename in error.
6549 (grub_util_get_os_disk): Likewise.
6550 (grub_util_biosdisk_get_grub_dev): Likewise.
6551 (grub_util_check_block_device): Likewise.
6552 (grub_util_check_char_device): Likewise.
6553 (grub_make_system_path_relative_to_its_root): Likewise.
6554 * util/grub-editenv.c (create_envblk_file): Likewise.
6555 (open_envblk_file): Likewise.
6556 (write_envblk): Likewise.
6557 * util/grub-fstest.c (cmd_cp): Likewise.
6558 (cmd_cat): Likewise.
6559 (cmd_cmp): Likewise.
6560 * util/grub-menulst2cfg.c (main): Likewise.
6561 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
6562 (write_font_width_spec): Likewise.
6563 (write_font_pf2): Likewise.
6564 * util/grub-mkimage.c (generate_image): New argument outname.
6565 All users updated.
6566 Remove unreacheable message.
6567 (options): Unify messages.
6568 (help_filter): Likewise.
6569 * util/grub-mklayout.c (usage): Removed (unused).
6570 (main): Print filename in error.
6571 * util/grub-mkrescue.in: Fix wrong quoting.
6572 * util/grub-setup.c (setup): Print filename in error.
6573 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
6574 (check_sas): Likewise.
6575 * util/misc.c (grub_util_get_fp_size): Removed.
6576 (grub_util_get_image_size): Print filename in error.
6577 (grub_util_read_at): Removed.
6578 (grub_util_read_image): Print filename in error.
6579 (grub_util_load_image): Likewise.
6580 (grub_util_write_image_at): New argument filename. All users updated.
6581 Print filename in error.
6582 (grub_util_write_image): New argument filename. All users updated.
6583 Print filename in error.
6584 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
6585 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
6586
6587 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6588
6589 * grub-core/Makefile.core.def (pxechain): New module.
6590 * grub-core/loader/i386/pc/pxechainloader.c: New file.
6591 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
6592 function.
6593 (grub_pc_net_config_real): Use grub_pxe_get_cached.
6594 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
6595
6596 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6597
6598 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
6599 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
6600 * include/grub/err.h (grub_error_saved): New struct.
6601 (grub_errmsg): Make array size explicit.
6602 * include/grub/misc.h (grub_error_save): New function.
6603 (grub_error_load): Likewise.
6604 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
6605 (grub_error_push): Update `errno' member name.
6606 (grub_error_pop): Likewise
6607 * grub-core/net/tftp.c (tftp_data): New member save_err.
6608 (tftp_receive): Save error.
6609 (tftp_open): Restore error.
6610
6611 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6612
6613 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
6614 to real mode down to execute A20-related code in protected mode as
6615 intended.
6616
6617 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
6618
6619 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
6620 NULL when the argument `level' has an unexpected value.
6621
6622 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6623
6624 Move platform-dependent files from $prefix to $prefix/$platform.
6625
6626 * config.h.in (GRUB_TARGET_CPU): New definition.
6627 (GRUB_PLATFORM): Likewise.
6628 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
6629 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
6630 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
6631 * grub-core/kern/dl.c (grub_dl_load): Likewise.
6632 * grub-core/normal/autofs.c (read_fs_list): Likewise.
6633 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
6634 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
6635 * grub-core/normal/term.c (read_terminal_list): Likewise.
6636 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
6637 $prefix/locale.
6638 (grub_gettext_init_ext): Likewise.
6639 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
6640 grub_platform.
6641 * util/grub-install.in: Update directories.
6642 * util/grub-mknetdir.in: Likewise.
6643 * util/grub-mkrescue.in: Likewise.
6644
6645 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6646
6647 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
6648 grub_error framework. All users updated.
6649
6650 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6651
6652 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
6653 lists (by always binsearching), improve caching (cache strings
6654 used for binsearch, not only results), improve
6655 maintainability (by using more structured binary search) and correct
6656 error handling.
6657
6658 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6659
6660 * grub-core/script/execute.c (grub_script_return): Fix warning.
6661
6662 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6663
6664 * grub-core/script/execute.c (grub_script_return): Fix potential
6665 NULL-dereference.
6666 Reported by: Jim Meyering.
6667
6668 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6669
6670 * po/POTFILES.in: Regenerate.
6671 * util/grub-install.in: Gettextize the strings missed in first pass.
6672
6673 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6674
6675 * Makefile.util.def (grub-mkdevicemap): Removed.
6676 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
6677 * include/grub/util/deviceiter.h: Removed.
6678 * util/deviceiter.c: Likewise.
6679 * util/getroot.c (grub_util_get_os_disk): New function.
6680 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
6681 replacement for EFI.
6682 * util/grub-mkdevicemap.c: Removed.
6683 * util/grub-probe.c (probe): Handle PRINT_DISK.
6684 (argp_parser): Handle -t disk.
6685
6686 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6687
6688 * util/grub-mkfont.c: Migrate to argp.
6689 * util/grub-mklayout.c: Likewise.
6690 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6691 * util/grub-mkrelpath.c: Likewise.
6692 * util/grub-probe.c: Likewise.
6693 * util/grub-script-check.c: Likewise.
6694
6695 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6696
6697 * util/grub-reboot.in: Add missing datarootdir.
6698 Add missing newline.
6699 * util/grub-set-default.in: Add missing datarootdir.
6700 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
6701 * util/grub-mkrescue.in: Likewise.
6702
6703 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6704
6705 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
6706
6707 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6708
6709 * util/grub-kbdcomp.in: Add decent help and gettextize.
6710 * docs/man/grub-kbdcomp.h2m: New file.
6711
6712 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6713
6714 Migrate grub-mkimage.c to argp.
6715
6716 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
6717 (grub-setup): Likewise.
6718 * util/grub-setup.c (print_version): Move to ...
6719 * util/argp_common.c (print_version): ... here.
6720 * util/grub-setup.c (argp_program_version_hook): Move to ...
6721 * util/argp_common.c (argp_program_version_hook): ... here.
6722 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
6723 safety.
6724 * util/grub-mkimage.c (main): Migrate to argp.
6725
6726 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6727
6728 * util/grub-mkrescue.in: Use same message as
6729 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
6730 for better translations.
6731
6732 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6733
6734 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
6735 options with generic grub-mkrescue.in with the goal of future
6736 merge.
6737
6738 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6739
6740 * grub-core/kern/mm.c: Add missing include of i18n.h
6741 * grub-core/lib/relocator.c: Likewise.
6742
6743 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6744
6745 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
6746 error.
6747 (allocate_pages): Check return value.
6748 Replace fatal with error.
6749 (grub_linux_boot): Replace printf with dprintf.
6750 Check find_mmap_size return value.
6751 Replace fatal with error.
6752 Don't call grub_machine_fini.
6753 (grub_load_elf64): Replace printf with dprintf.
6754 (grub_cmd_linux): Likewise.
6755 (grub_cmd_initrd): Likewise.
6756 (grub_cmd_payload): Likewise.
6757
6758 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6759
6760 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
6761 message.
6762 * grub-core/video/radeon_fuloong2e.c
6763 (grub_video_radeon_fuloong2e_setup): Likewise.
6764 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
6765 * grub-core/video/video.c (grub_video_set_mode): Don't override
6766 standard out of memory message.
6767
6768 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6769
6770 NetBSD disk wedge support.
6771
6772 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
6773 [__NetBSD__]: Handle NetBSD disk wedges.
6774 * util/getroot.c (convert_system_partition_to_system_disk)
6775 [__NetBSD__]: Likewise.
6776
6777 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
6778
6779 * util/grub-mkconfig.in: Use umask rather than chmod to create
6780 grub.cfg.new to avoid insecure grub.cfg.
6781
6782 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6783
6784 * grub-core/commands/ls.c: Gettextize.
6785 * grub-core/commands/setpci.c: Likewise.
6786 * grub-core/commands/videotest.c: Likewise.
6787 * grub-core/disk/geli.c: Likewise.
6788 * grub-core/kern/mm.c: Likewise.
6789 * grub-core/lib/relocator.c: Likewise.
6790 * grub-core/loader/efi/appleloader.c: Likewise.
6791 * grub-core/loader/i386/xnu.c: Likewise.
6792 * grub-core/loader/ia64/efi/linux.c: Likewise.
6793 * grub-core/loader/xnu.c: Likewise.
6794 * grub-core/net/dns.c: Likewise.
6795 * grub-core/net/net.c: Likewise.
6796 * grub-core/script/lexer.c: Likewise.
6797 * grub-core/script/parser.y: Likewise.
6798 * grub-core/script/yylex.l: Likewise.
6799 * util/getroot.c: Likewise.
6800 * util/grub-setup.c: Likewise.
6801
6802 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6803
6804 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
6805 number.
6806
6807 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6808
6809 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
6810
6811 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6812
6813 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
6814 macro.
6815 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
6816 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
6817
6818 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6819
6820 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
6821 * util/grub-install.in: Gettextize.
6822 * util/grub-mkconfig.in: Likewise.
6823 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
6824 if not available.
6825 (grub_warn): Gettextize.
6826 * util/grub-mknetdir.in: Gettextize.
6827 * util/grub-mkrescue.in: Likewise.
6828 * util/grub-mkstandalone.in: Likewise.
6829 * util/grub-reboot.in: Likewise.
6830 * util/grub-set-default.in: Likewise.
6831 * util/grub.d/00_header.in: Likewise.
6832 * util/grub.d/10_hurd.in: Likewise.
6833 * util/grub.d/10_kfreebsd.in: Likewise.
6834 * util/grub.d/10_linux.in: Likewise.
6835 * util/grub.d/10_netbsd.in: Likewise.
6836 * util/grub.d/10_windows.in: Likewise.
6837 * util/grub.d/20_linux_xen.in: Likewise.
6838 * util/grub.d/30_os-prober.in: Likewise.
6839 * po/POTFILES-shell.in: Regenerate.
6840
6841 2012-02-03 Richard Laager <rlaager@wiktel.com>
6842
6843 * util/grub-mkimage.c (main): Fix format-security warning.
6844 * util/grub-mkrelpath.c (main): Likewise.
6845 * util/grub-probe.c (main): Likewise.
6846
6847 2012-02-03 Richard Laager <rlaager@wiktel.com>
6848
6849 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
6850 failure.
6851 Put back lost PRINT_DRIVE.
6852
6853 2012-02-03 Richard Laager <rlaager@wiktel.com>
6854
6855 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
6856 (grub_guess_root_devices): Replace strlen with sizeof.
6857 Avoid crash.
6858 (find_root_devices_from_poolname): Remove unused variable.
6859 Handle raidzN.
6860
6861 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6862
6863 Support install on multi-device filesystems.
6864
6865 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
6866 (grub_guess_root_devices): ...this. Return char **. All users updated.
6867 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
6868 Removed.
6869 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
6870 (find_root_devices_from_poolname): ... here.
6871 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
6872 Support zfs-fuse.
6873 (grub_guess_root_device): Rename to ...
6874 (grub_guess_root_devices): ... this. Return char **. All users updated.
6875 * util/grub-install.in: Handle multi-device filesystems.
6876 * util/grub-probe.c (probe). Make device_names a char **. Add delim
6877 argument. All users updated.
6878 Handle multi-device filesystems.
6879 Use 'delim' as separator.
6880 Remove device check to allow filesystems on file.
6881 (main): Support -0 argument. Handle multi-device.
6882 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
6883 Fix a cross-device check while on it.
6884 (arguments): Remove root_dev.
6885 (argp_parser): Remove -r.
6886 (main): Remove root_dev.
6887
6888 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6889
6890 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
6891
6892 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6893
6894 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
6895 symbol.
6896 Reported by: NODA, Kai <nodakai>.
6897
6898 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6899
6900 Fix ehci on amd64.
6901
6902 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
6903 pointers.
6904 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
6905 (grub_ehci_setup_qh): Likewise.
6906 (grub_ehci_find_qh): Likewise.
6907 (grub_ehci_transaction): Likewise.
6908 (grub_ehci_setup_transfer): Likewise.
6909 (grub_ehci_check_transfer): Likewise.
6910 (grub_ehci_portstatus): Likewise.
6911 (grub_ehci_detect_dev): Likewise.
6912 (grub_ehci_transfer_controller_data): New field td_last_phys.
6913 (grub_ehci_setup_transfer): Fill td_last_phys.
6914 (grub_ehci_check_transfer): Use td_last_phys.
6915
6916 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
6917
6918 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
6919 if no submenu is present.
6920
6921 2012-02-01 Aleš Nesrsta <starous@volny.cz>
6922
6923 CBI support.
6924
6925 * include/grub/usb.h (grub_usbms_protocol_t): New values
6926 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
6927 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
6928 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
6929 (grub_usbms_dev): Add subclass, protocol and intrpt.
6930 Remove in_maxsz and out_maxsz.
6931 (grub_usbms_reset): Rename to ...
6932 (grub_usbms_bo_reset): .. this.
6933 (grub_usbms_cbi_cmd): New function.
6934 (grub_usbms_cbi_reset): Likewise.
6935 (grub_usbms_reset): Likewise.
6936 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
6937 (grub_usbms_transfer): Rename to ...
6938 (grub_usbms_transfer_bo): ... this.
6939 (grub_usbms_transfer_cbi): Likewise.
6940 (grub_usbms_transfer): Likewise.
6941
6942 2012-02-01 Aleš Nesrsta <starous@volny.cz>
6943 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6944
6945 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
6946 the support for the CS5536 modification thereos and few bugfixes.
6947
6948 * grub-core/Makefile.core.def (ehci): New module.
6949 * grub-core/bus/usb/ehci.c: New file.
6950 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
6951 port and hubaddr. All users updated.
6952 Save port and hubaddr into dev structure.
6953 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
6954 define.
6955 * include/grub/pci.h (grub_dma_phys2virt): New function.
6956 (grub_dma_virt2phys): Likewise.
6957 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
6958
6959 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6960
6961 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
6962 check as some mkfs implementations omit it.
6963
6964 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6965
6966 * docs/grub.texi (Unicode): Mention identifier and space limitations.
6967
6968 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6969
6970 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
6971 Add new member volname2.
6972 (grub_jfs_label): Use volname2 if available.
6973
6974 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6975
6976 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
6977 over last_mounted as seen in image generated by mkfs.nilfs2.
6978 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
6979
6980 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6981
6982 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
6983 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
6984 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
6985
6986 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6987
6988 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
6989 over the sector.
6990
6991 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6992
6993 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
6994 subvolume name (by removing a bogus and useless check).
6995
6996 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6997
6998 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
6999 sizeof while on it.
7000
7001 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7002
7003 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
7004 (grub_scsi_read_capacity10): ... this.
7005 (grub_scsi_read_capacity16): New function.
7006 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
7007 0xffffffff.
7008 Fix off-by-one error.
7009 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
7010 64-bit unsigned.
7011 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
7012 (grub_scsi_read_capacity10): ... this.
7013 (grub_scsi_read_capacity_data): Rename to ...
7014 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
7015 (grub_scsi_read_capacity16): New struct.
7016 (grub_scsi_read_capacity16_data): Likewise.
7017 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
7018 grub_scsi_cmd_read_capacity10.
7019 New command grub_scsi_cmd_read_capacity16.
7020
7021 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7022
7023 SCSI >2TiB support.
7024
7025 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
7026 (grub_scsi_write16): Likewise.
7027 (grub_scsi_read): Use read16 when necessary.
7028 (grub_scsi_write): Likewise.
7029 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
7030 (grub_scsi_write16): Likewise.
7031 (grub_scsi_cmd_t): Add READ16 and WRITE16.
7032
7033 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7034
7035 SCSI write support (for usbms mainly).
7036
7037 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
7038 a const pointer.
7039 (grub_scsi_write): Implement.
7040 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
7041
7042 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7043
7044 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
7045 variable.
7046
7047 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7048
7049 * grub-core/lib/posix_wrap/string.h (memchr): New function.
7050
7051 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7052
7053 * po/POTFILES.in: Regenerate.
7054
7055 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7056
7057 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
7058 with grub_printf to avoid unnecessary fatal failure.
7059
7060 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7061
7062 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
7063 (INT_MAX): Likewise.
7064 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
7065 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
7066 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
7067 (strcpy): Likewise.
7068 (strstr): Likewise.
7069 (strchr): Likewise.
7070 (strncpy): Likewise.
7071 (strcat): Likewise.
7072 (strncat): Likewise.
7073 (strcoll): Likewise.
7074 * include/grub/types.h (GRUB_SHRT_MAX): New define.
7075 (GRUB_INT_MAX): Likewise.
7076
7077 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7078
7079 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
7080 unexpected error.
7081 (optimize_utf8): Likewise.
7082 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
7083
7084 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7085
7086 * grub-core/boot/i386/pc/lnxboot.S: Use
7087 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
7088 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
7089 location.
7090 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
7091 definition.
7092 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
7093
7094 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7095
7096 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
7097 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
7098 now to avoid double free.
7099 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
7100 hostdisk.
7101 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
7102 * util/grub-probe.c (escape_of_path): Always return a new copy.
7103 (print_full_name): Escape path.
7104 (probe): Don't call grub_util_devname_to_ofpath on NULL.
7105 Fix hints on abstractions.
7106
7107 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7108
7109 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
7110 Don't add "root" line if no compatibility hont is available.
7111 Suggested by: Seth Goldberg.
7112
7113 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7114
7115 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
7116 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
7117 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
7118 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
7119
7120 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7121
7122 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
7123
7124 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7125
7126 * util/grub-pe2elf.c (ehdr): Make static.
7127 (shdr): Likewise.
7128 (num_sections): Likewise.
7129 (offset): Likewise.
7130
7131 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7132
7133 Eliminate ofpath limits and possible overflows.
7134
7135 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
7136 (OF_PATH_MAX): Removed.
7137 (MAX_DISK_CAT): New const.
7138 (find_obppath): Use allocated rather than preallocated buffer.
7139 Return result. Argument of_path removed. All users updated.
7140 Add missing fdstat.
7141 (xrealpath): New function.
7142 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
7143 Allocate rather than use preallocated buffer. All users updated.
7144 (__of_path_common): Use allocated rather than preallocatecd buffer.
7145 Return result. Argument of_path removed. All users updated.
7146 (vendor_is_ATA): Read only needed part form the file.
7147 (check_sas): Allocate depending on contents rather than fixed.
7148 (main) [STANDALONE]: Handle NULL result.
7149
7150 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7151
7152 * grub-core/normal/completion.c (iterate_dev): Close the disk.
7153
7154 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7155
7156 Cryptodisk write support.
7157
7158 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
7159 (grub_cryptodisk_decrypt): Moved logic to ...
7160 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
7161 (grub_cryptodisk_write): Implement.
7162 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
7163 (grub_util_fd_write): ... this. Make global.
7164 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
7165
7166 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7167
7168 * include/grub/list.h (grub_list_remove): Don't crash if element is
7169 removed twice.
7170
7171 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7172
7173 Rename ofconsole to console.
7174
7175 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
7176 as sysnonym to console.
7177 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
7178 * grub-core/term/ieee1275/console.c: ... this. All users updated.
7179 Rename grub_ofconsole_ to grub_console_. All users updated
7180 (grub_console_term_output): Rename "ofconsole" to "console".
7181 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
7182 as "console".
7183
7184 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7185
7186 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
7187 handling.
7188 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
7189 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
7190 GRUB_DISK_DEVICE_FILE_ID.
7191
7192 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7193
7194 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
7195 and improve performance.
7196
7197 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7198
7199 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
7200 missing ieee1275/ prefix on whole disk.
7201
7202 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7203
7204 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
7205 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
7206
7207 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7208
7209 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
7210
7211 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7212
7213 Merge common RAID and LVM logic to an abstract diskfilter.
7214 Add LDM support using the same framework.
7215
7216 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
7217 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
7218 (libgrubmods): Remove grub-core/disk/raid.c and
7219 grub-core/partmap/gpt.c.
7220 * grub-core/Makefile.core.def (ldm): New module.
7221 (raid): Renamed to diskfilter. All users updated.
7222 * grub-core/disk/raid.c: Moved to ...
7223 * grub-core/disk/diskfilter.c: ... here.
7224 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
7225 (lv_num): New var.
7226 (find_array): Renamed to ...
7227 (find_lv): ... this. Support multi-LV. Skip nameless LVs
7228 (grub_is_array_readable): Renamed to ...
7229 (grub_is_lv_readable): ... this. Support multinode hierarchy.
7230 (insert_array): New argument id.
7231 (is_node_readable): New function.
7232 (scan_device): Rename to ...
7233 (scan_disk): .. this. Restrict to one disk.
7234 (scan_devices): New function.
7235 (grub_diskfilter_iterate): Support multi-LV.
7236 Skip invisible and nameless LVs.
7237 (grub_diskfilter_memberlist): Support multi-LV.
7238 (grub_diskfilter_read_node): New function.
7239 (grub_raid_read): Most of logic moved to ...
7240 (read_segment): ... here
7241 (read_lv): New function.
7242 (grub_diskfilter_get_vg_by_uuid): New function.
7243 (grub_diskfilter_make_raid): Likewise.
7244 * grub-core/disk/ldm.c: New file.
7245 * grub-core/disk/lvm.c (vg_list): Removed.
7246 (lv_count): Likewise.
7247 (scan_depth): Likewise.
7248 (is_lv_readable): Likewise.
7249 (grub_lvm_getvalue): Advance pointer past the number.
7250 (find_lv): Removed.
7251 (do_lvm_scan): Refactored into ...
7252 (grub_lvm_detect): ... this. Support raid.
7253 (grub_lvm_iterate): Removed.
7254 (grub_lvm_memberlist): Likewise.
7255 (grub_lvm_open): Likewise.
7256 (grub_lvm_close): Likewise.
7257 (read_lv): Likewise.
7258 (read_node): Likewise.
7259 (is_node_readable): Likewise.
7260 (is_lv_readable): Likewise.
7261 (grub_lvm_read): Likewise.
7262 (grub_lvm_write): Likewise.
7263 (grub_lvm_dev): Use diskfilter
7264 (GRUB_MOD_INIT): Likewise.
7265 (GRUB_MOD_FINI): Likewise.
7266 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
7267 new interface.
7268 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
7269 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7270 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
7271 grub_diskfilter_read_node.
7272 Fix a bug with xor.
7273 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
7274 grub_diskfilter_read_node.
7275 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
7276 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
7277 (grub_disk_dev_iterate): Move from here...
7278 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
7279 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
7280 Make global.
7281 (grub_hostdisk_find_partition_start): Likewise.
7282 (grub_hostdisk_os_dev_to_grub_drive): New function.
7283 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
7284 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
7285 * util/getroot.c (make_device_name): ... here.
7286 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
7287 Move to ...
7288 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
7289 * grub-core/kern/emu/hostdisk.c
7290 (convert_system_partition_to_system_disk): Move to ...
7291 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
7292 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
7293 * util/getroot.c (device_is_wholedisk): ... here.
7294 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
7295 * util/getroot.c (find_system_device): ... here.
7296 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
7297 Move to ...
7298 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
7299 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
7300 Move to ...
7301 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
7302 Handle LDM.
7303 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
7304 Move to ...
7305 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
7306 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
7307 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
7308 DISKFILTER.
7309 * include/grub/raid.h: Renamed to ...
7310 * include/grub/diskfilter.h: ... this.
7311 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
7312 (GRUB_RAID_LAYOUT_*): Make into array.
7313 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
7314 (grub_diskfilter_vg): New struct.
7315 (grub_diskfilter_pv_id): Likewise.
7316 (grub_raid_member): Removed.
7317 (grub_raid_array): Likewise.
7318 (grub_diskfilter_pv): New struct.
7319 (grub_diskfilter_lv): Likewise.
7320 (grub_diskfilter_segment): Likewise.
7321 (grub_diskfilter_node): Likewise.
7322 (grub_diskfilter_get_vg_by_uuid): New proto.
7323 (grub_raid_register): Inline.
7324 (grub_diskfilter_unregister): Likewise.
7325 (grub_diskfilter_make_raid): New proto.
7326 (grub_diskfilter_vg_register): Likewise.
7327 (grub_diskfilter_read_node): Likewise.
7328 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
7329 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
7330 (grub_util_is_ldm): Likewise.
7331 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
7332 (grub_hostdisk_find_partition_start): Likewise.
7333 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
7334 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
7335 New definition.
7336 (grub_gpt_partition_map_iterate): New proto.
7337 * include/grub/lvm.h (grub_lvm_vg): Removed.
7338 (grub_lvm_pv): Likewise.
7339 (grub_lvm_lv): Likewise.
7340 (grub_lvm_segment): Likewise.
7341 (grub_lvm_node): Likewise.
7342 * util/getroot.c [...]
7343 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
7344 (probe_abstraction): Likewise.
7345 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
7346 (main): Remove dead logic.
7347
7348 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
7349
7350 Simplify root device discover and don't fail when trying to open
7351 incorrect devices.
7352
7353 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
7354 function.
7355 (get_diskname_from_path): Likewise.
7356 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
7357 of iterating.
7358
7359 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7360
7361 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
7362
7363 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7364
7365 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
7366 pastthe end.
7367
7368 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7369
7370 * util/grub-install.in: Add missing \.
7371 Reported by: gentoofan
7372
7373 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7374
7375 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
7376 (direct_read): Use correct compressed size.
7377 (grub_squash_read_data): Likewise.
7378
7379 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7380
7381 * docs/grub.texi (Platform limitations): New section.
7382 (Platform-specific operations): Likewise.
7383 * docs/grub-dev.texi (Porting): Likewise.
7384
7385 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7386
7387 IEEE1275 disk write support.
7388
7389 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
7390 const void *.
7391 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
7392 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
7393 and seek loginc to ...
7394 (grub_ofdisk_prepare): ... here.
7395 (grub_ofdisk_write): Implement.
7396
7397 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7398
7399 ARC disk write support.
7400
7401 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
7402 (reopen): New argument writable. All users updated.
7403 Handle required access mode.
7404 (grub_arcdisk_write): Implement.
7405 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
7406 (grub_arc_firmware_vector): Make buffer to write a const buffer.
7407
7408 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7409
7410 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
7411 (read_sblock): Don't attempt to read superblocks outside the disk size.
7412
7413 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7414
7415 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
7416 first superblock to find the second one when possible.
7417
7418 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7419
7420 * util/grub-install.in: Fix an ARC bug.
7421 Print a warning if no platform-specific setup is available.
7422
7423 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7424
7425 Use static allocation rather than scratch pointer in reed_solomon.
7426 It decreases its size significantly and avoids a variable in .text.
7427
7428 * grub-core/lib/reed_solomon.c (scratch): Removed.
7429 (chosenstat): New const or static array.
7430 (sigma): Likewise.
7431 (errpot): Likewise.
7432 (errpos): Likewise.
7433 (sy): Likewise.
7434 (mstat): Likewise.
7435 (errvals): Likewise.
7436 (eqstat): Likewise.
7437 (pol_evaluate): Replace x with log_x argument. All users updated.
7438 (syndroms): Removed.
7439 (gauss_solve): Use statically allocated arrays.
7440 (rs_recover): Likewise.
7441 Calculate syndroms directly.
7442 (decode_block): Use statically allocated arrays.
7443 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
7444 (main) [TEST]: Allow -DTEST -DSTANDALONE.
7445
7446 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7447
7448 Eliminate fixed limit on reed solomon decoder length.
7449
7450 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
7451 rather than hardcoding the address.
7452 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
7453 no_reed_solomon_length.
7454 Move gate_a20 to no-reed-solomon part.
7455 Don't force a particular size of no reed-solomon part.
7456 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7457 Removed.
7458 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
7459 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
7460
7461 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7462
7463 * grub-core/commands/wildcard.c (match_files): Handle filenames
7464 without explicit device.
7465 (wildcard_expand): Don't add explicit device if not already present.
7466 * tests/grub_script_echo1.in: Add a new expansion test.
7467
7468 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7469
7470 Replace single-linked with double-linked lists. It results in more
7471 compact and more efficient code.
7472
7473 * grub-core/kern/list.c (grub_list_push): Moved from here ...
7474 * include/grub/list.h (grub_list_push): ... to here. Set prev.
7475 (grub_list_remove): Moved from here ...
7476 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
7477 (grub_prio_list_insert): Set prev.
7478 * include/grub/list.h (grub_list): Add prev. All users updated.
7479
7480 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7481
7482 Handle newer autotools. Add some missing quotes while on it.
7483
7484 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
7485 (pkglib_DATA): Move grub-mkconfig_lib from here ...
7486 (pkgdata_DATA): ... here.
7487 * Makefile.util.def (update-grub_lib): Removed.
7488 * conf/Makefile.common (pkglib_DATA): Removed.
7489 (pkglib_SCRIPTS): Likewise.
7490 (pkgdata_DATA): New variable.
7491 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
7492 needed.
7493 Add missing quotes.
7494 Remove unused variable while on it.
7495 * tests/util/grub-shell.in: Likewise.
7496 * util/grub-install.in: Likewise.
7497 * util/grub-mkconfig.in: Likewise.
7498 * util/grub-mknetdir.in: Likewise.
7499 * util/grub-mkrescue.in: Likewise.
7500 * util/grub-mkstandalone.in: Likewise.
7501 * util/grub.d/00_header.in: Likewise.
7502 * util/grub.d/10_hurd.in: Likewise.
7503 * util/grub.d/10_illumos.in: Likewise.
7504 * util/grub.d/10_kfreebsd.in: Likewise.
7505 * util/grub.d/10_linux.in: Likewise.
7506 * util/grub.d/10_netbsd.in: Likewise.
7507 * util/grub.d/10_windows.in: Likewise.
7508 * util/grub.d/20_linux_xen.in: Likewise.
7509 * util/grub.d/30_os-prober.in: Likewise.
7510 * util/update-grub_lib.in: Removed.
7511
7512 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
7513
7514 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
7515 a workaround for intel problem.
7516
7517 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
7518 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7519 2012-01-23 pfsmorigo
7520
7521 * util/grub-install.in: Support dd'in into PreP partition.
7522 * util/grub-probe.c (probe): Support discovering partition type.
7523 (main): Support -t msdos_parttype.
7524
7525 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7526
7527 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
7528 infinite recursion using counter.
7529 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
7530 init to skip it if the magic check fails.
7531 (dec_stream_header): Init s->crc32.
7532
7533 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7534 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
7535 2012-01-22 Richard Laager <rlaager@wiktel.com>
7536
7537 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
7538 All users updated.
7539 (find_bestub): Determine correct size.
7540 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
7541 (scan_disk): Align the size down.
7542 Call check pool before find_bestub to have ashift.
7543
7544 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7545
7546 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
7547 dprintf in no-malloc zone.
7548
7549 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
7550
7551 * configure.ac: Add back in test for limits.h.
7552
7553 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7554
7555 Support 4K-sector NTFS.
7556
7557 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
7558 (grub_ntfs_data): Remove blocksize.
7559 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
7560 Remove data argument. All users updated.
7561
7562 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7563
7564 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
7565 being in .text to avoid dprel references.
7566 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
7567 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
7568 (grub_arch_highmemsize): Likewise.
7569 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
7570 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
7571 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
7572
7573 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7574
7575 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
7576
7577 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
7578 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
7579
7580 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7581
7582 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
7583 GRUB_UTIL.
7584 (grub_set_datetime_cmos): Likewise.
7585
7586 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7587
7588 Make XZ compression parameters dependent on target and not host CPU.
7589
7590 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
7591 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
7592
7593 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7594
7595 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
7596 set but not used variable.
7597
7598 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7599
7600 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
7601 created when no uuid support is compiled into mkfs.reiser.
7602
7603 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7604
7605 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
7606 (utf8_to_macroman): Do the opposite.
7607 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
7608
7609 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7610
7611 * configure.ac: Refise build qemu_mips w/o unifont.
7612
7613 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7614
7615 Eliminate grub_min/grub_max prone to overflow usage.
7616
7617 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
7618 (poll_nonroot_hub): Likewise.
7619 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
7620 (grub_affs_label): Likewise.
7621 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
7622 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
7623 (grub_hfs_label): Likewise.
7624 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
7625 * grub-core/fs/zfs/zfs.c (MIN): Remove.
7626 (zap_leaf_array_equal): Use grub_size. Remove MIN.
7627 (zap_leaf_array_get): Likewise.
7628 (dnode_get_path): Likewise.
7629 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
7630 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
7631 * grub-core/script/execute.c (grub_script_break): Likewise.
7632 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
7633 grub_max.
7634 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
7635 * include/grub/misc.h (grub_min): Removed.
7636 (grub_max): Likewise.
7637
7638 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7639
7640 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
7641 direct.inode = 0.
7642
7643 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7644
7645 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
7646
7647 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7648
7649 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
7650
7651 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7652
7653 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
7654 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
7655
7656 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7657
7658 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
7659 rather than a hack for grub_strncasemap.
7660
7661 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7662
7663 Support multiple initrds
7664 Note: part of this was accidently committed in r3739.
7665
7666 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
7667 initrd.
7668 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
7669 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
7670 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7671 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7672 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7673
7674 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7675
7676 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
7677 disks with unknown size.
7678 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
7679
7680 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7681
7682 Remove defines pertaining to arbitrary limits not affecting GRUB
7683 anymore.
7684
7685 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
7686 (EXT2_MAX_SYMLINKCNT): Likewise.
7687 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
7688 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
7689 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
7690 (GRUB_PXE_MAX_BLKSIZE): Likewise.
7691 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
7692 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
7693 (DN_MAX_OBJECT_SHIFT): Likewise.
7694 (DN_MAX_OFFSET_SHIFT): Likewise.
7695 (DN_MAX_OBJECT): Likewise.
7696 (DNODES_PER_LEVEL_SHIFT): Likewise.
7697 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
7698 (SPA_MAXBLOCKSIZE): Likewise.
7699 (SPA_BLOCKSIZES): Likewise.
7700 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
7701 (MZAP_MAX_BLKSZ): Likewise.
7702
7703 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7704
7705 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
7706 handle NULL appropriately.
7707 Remove MIN.
7708
7709 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7710
7711 Fix efiemu.
7712
7713 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
7714 cpu/types.h.
7715 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
7716 * configure.ac: Fix efiemu check.
7717
7718 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7719
7720 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
7721 grub_probe.
7722 Reported by: adamwill
7723
7724 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
7725
7726 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
7727
7728 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7729
7730 Fix handling of wide characters in gfxterm.
7731
7732 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
7733 (clear_char): Likewise.
7734 (paint_char): Skip code == NULL chars.
7735 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
7736
7737 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7738
7739 * grub-core/normal/charset.c: Move comment to right place.
7740
7741 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7742
7743 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
7744 (GRUB_AFFS_FLAG_FFS): Put back where it was.
7745 (grub_affs_mount): Revert the correct version checking.
7746
7747 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7748
7749 * docs/grub.texi (Unicode): Mention several other unsupported features.
7750
7751 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7752
7753 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
7754 case statements as compile-time one.
7755 (direct_read): Prevent spurious warnings.
7756 (grub_squash_read_data): Likewise.
7757
7758 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7759
7760 Various squash4 fixes and LZO and XZ support.
7761
7762 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
7763 Add xzembed source files.
7764 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
7765 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
7766 (grub_squash_inode): New subtype long_dir.
7767 (SQUASH_TYPE_LONG_DIR): New inode type.
7768 (COMPRESSION): New enum.
7769 (XZBUFSIZ): New const.
7770 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
7771 (read_chunk): Use data->decompress.
7772 (zlib_decompress): New function.
7773 (lzo_decompress): Likewise.
7774 (xz_decompress): Likewise.
7775 (squash_mount): Set new data fields.
7776 (grub_squash_iterate_dir): Handle long dir.
7777 (squash_unmount): Free xzdec and xzbuf.
7778 (grub_squash_open): Check ino type.
7779 (direct_read): Stylistic fixes. Use data->decompress.
7780 (grub_squash_read_data): Likewise.
7781 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
7782 (get_byte): Likewise.
7783 (grub_zlib_disk_read): Removed.
7784 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
7785 (GRUB_POSIX_BOOL_DEFINED): New define.
7786 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
7787 * grub-core/lib/xzembed/xz.h: Addmissing includes.
7788 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
7789 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
7790
7791 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7792
7793 Don't override more informative errors.
7794
7795 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
7796 * grub-core/font/font.c (open_section): Likewise.
7797 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
7798 filename. Don't override errors.
7799 (grub_cmd_openbsd_ramdisk): Don't override errors.
7800 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
7801 (grub_cmd_initrd): Likewise.
7802 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7803 (grub_cmd_initrd): Likewise.
7804 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
7805 (grub_cmd_linux): Likewise.
7806 (grub_cmd_initrd): Likewise.
7807 (grub_cmd_payload): Likewise.
7808 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7809 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
7810 (grub_cmd_module): Likewise.
7811 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7812 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7813 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
7814 (grub_cmd_xnu_mkext): Likewise.
7815 (grub_cmd_xnu_ramdisk): Likewise.
7816 (grub_xnu_check_os_bundle_required): Likewise.
7817 (grub_xnu_load_kext_from_dir): Likewise.
7818 (grub_cmd_xnu_kextdir): Likewise.
7819 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
7820
7821 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7822
7823 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
7824 as 1024 in block size field. Found on one of my test images.
7825 Small optimisation while on it.
7826
7827 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7828
7829 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
7830 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
7831 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
7832 performance fixes while on it.
7833 (grub_sfs_close): Fix memory leak while on it.
7834 (grub_sfs_label): Convert Latin1 to UTF-8.
7835
7836 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7837
7838 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
7839 space to avoid overflows.
7840 (grub_hfs_label): Convert from macroman to UTF-8.
7841
7842 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7843
7844 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
7845
7846 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7847
7848 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
7849
7850 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7851
7852 * unicode: Import Unicode 6.0 data.
7853
7854 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7855
7856 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
7857 outside of range.
7858
7859 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7860
7861 Avoid cutting in the middle of UTF-8 character.
7862
7863 * include/grub/charset.h (grub_getend): New function.
7864 * grub-core/script/function.c (grub_script_function_find): Use
7865 grub_getend.
7866 * grub-core/normal/completion.c (add_completion): Likewise.
7867
7868 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7869
7870 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
7871 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
7872 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
7873 (GRUB_UNICODE_TAG_END): Likewise.
7874 (GRUB_UNICODE_LAST_VALID): Likewise.
7875
7876 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7877
7878 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
7879 len and make it smaller. All users updated.
7880 * util/import_unicode.py: Put length and not end character.
7881 Check length.
7882
7883 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7884
7885 Make better Unicode-compliant and unify some UTF-8 code pathes.
7886
7887 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
7888 valid character.
7889 (grub_is_valid_utf8): Use grub_utf8_process.
7890 Check resulting code range.
7891 (grub_utf8_to_ucs4): Use grub_utf8_process.
7892 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
7893 valid character.
7894
7895 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7896
7897 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
7898
7899 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7900
7901 * docs/grub.texi (Filesystems): Mention AFS.
7902
7903 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7904
7905 * docs/grub.texi (Filesystems): Clarify restrictions.
7906 (Regexp): Mention non-Unicode regexp behaviour.
7907 (Other): Mention non-Unicode matching behaviour.
7908
7909 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7910
7911 Make HFS implementation use MacRoman.
7912
7913 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
7914 (macroman): New const array.
7915 (macroman_to_utf8): New function.
7916 (utf8_to_macroman): Likewise.
7917 (grub_hfs_find_dir): Use utf8_to_macroman.
7918 (grub_hfs_dir): Use macroman_to_utf8.
7919 Set case_insensitive.
7920
7921 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7922
7923 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
7924
7925 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7926
7927 Integrate hints into autogeneration scripts.
7928
7929 * docs/grub.texi (Filesystems): Add a hostdisk example.
7930 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
7931 (grub-probe): Add ofpath.
7932 * gentpl.py: Remove group nosparc64.
7933 * grub-core/commands/search.c (cache_entry): New struct.
7934 (cache): New var.
7935 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
7936 * grub-core/commands/search_wrap.c (options): Add platform-specific
7937 hint options.
7938 (grub_cmd_search): Handle platform-specific hints.
7939 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
7940 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
7941 (grub_util_biosdisk_data): Likewise.
7942 (grub_util_biosdisk_open): Set device_map.
7943 (read_device_map): Handle "" as indication of no map.
7944 Set device_map.
7945 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
7946 (grub_util_biosdisk_get_compatibility_hint): New function.
7947 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
7948 * include/grub/emu/hostdisk.h
7949 (grub_util_biosdisk_get_compatibility_hint): New proto.
7950 * util/grub-install.in: Don't call grub-mkdevicemap.
7951 Add platform-specific hint to load.cfg.
7952 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
7953 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
7954 hints. Set root preliminary to compatibility hint, not to OS name.
7955 * util/grub-probe.c (PRINT_*): Add hints.
7956 (print): Make static.
7957 (escape_of_path): New function.
7958 (guess_bios_drive): Likewise.
7959 (guess_efi_drive): Likewise.
7960 (guess_baremetal_drive): Likewise.
7961 (print_full_name): Likewise.
7962 (probe): Handle hints.
7963 (main): Likewise.
7964 * util/ieee1275/devicemap.c: Removed.
7965 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
7966 updated.
7967 (grub_util_devname_to_ofpath): Return NULL on failure.
7968
7969 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
7970 resource leak.
7971 * util/getroot.c (grub_util_pull_device): Fix memory leak.
7972
7973 * po/POTFILES.in: Regenerated.
7974
7975 Allow purely long options
7976
7977 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
7978 (SHORT_ARG_USAGE): Likewise.
7979 (grub_arg_show_help): Compare opt with help_options.
7980 (parse_option): Receive opt as argument. If makes big simplificatons.
7981 All users updated
7982
7983 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7984
7985 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
7986 Restructure to avoid warning.
7987
7988 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7989
7990 * util/grub-install.in: Account for possible escaped comma in device
7991 name.
7992
7993 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7994
7995 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
7996 channel.
7997
7998 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7999
8000 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
8001 allocation and zero-setting.
8002 (grub_ieee1275_get_devname): Check that alias is complete.
8003
8004 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8005
8006 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
8007 unaligned segments.
8008
8009 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8010
8011 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
8012 prefix.
8013 (grub_ofdisk_open): Check and discard ieee1275 prefix.
8014 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8015 Add ieee1275 prefix.
8016
8017 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8018
8019 * docs/grub.texi (Filesystems): Update.
8020
8021 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8022
8023 Support odc, newc and bigendian cpio formats.
8024
8025 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
8026 * grub-core/Makefile.core.def (newc): New module.
8027 (odc): Likewise.
8028 (cpio_be): Likewise.
8029 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
8030 (MAGIC): Likewise.
8031 (MAGIC2): Likewise.
8032 (head) [MODE_ODC]: Adapt for the format.
8033 (head) [MODE_NEWC]: Likewise.
8034 (head) [!MODE_*]: Write fields of interest as arrays.
8035 (MAGIC_USTAR): Removed.
8036 (read_number) [MODE_NEWC]: Change to hex.
8037 (read_number) [!MODE_*]: Parse binary arrays.
8038 (grub_cpio_find_file): Factor out the code for better structure and
8039 always use read_number.
8040 (grub_cpio_mount): Use MAGIC and MAGIC2.
8041 (grub_cpio_dir): Exit on first hook non-0 return.
8042 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
8043 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
8044 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
8045 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
8046 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
8047 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
8048 * grub-core/fs/newc.c: New file.
8049 * grub-core/fs/odc.c: Likewise.
8050 * grub-core/fs/cpio_be.c: Likewise.
8051
8052 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8053
8054 Fix handling of tar numbers occupying the whole field.
8055
8056 * grub-core/fs/cpio.c (read_number): New function.
8057 (grub_cpio_find_file): Use read_number instead of strtoull.
8058
8059 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8060
8061 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
8062 occupying the whole field size.
8063
8064 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
8065
8066 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
8067
8068 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8069
8070 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
8071
8072 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
8073
8074 * grub-core/Makefile.core.def (lzma_decompress): Add missing
8075 TARGET_IMG_LDFLAGS.
8076
8077 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8078
8079 * util/getroot.c (ESCAPED_PATH_MAX): New define.
8080 (mountinfo_entry): Increase the field size to take escaping into
8081 account.
8082 (find_root_device_from_libzfs): Add one byte to size of strings for
8083 security.
8084
8085 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8086
8087 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
8088 an assert.
8089 * util/grub-setup.c (setup): Likewise.
8090
8091 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8092
8093 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
8094 _LzmaDecodeA.
8095
8096 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8097
8098 * docs/grub.texi (Internationalisation): New section.
8099
8100 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8101
8102 * docs/grub.texi (Loopback booting): New section.
8103
8104 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
8105
8106 * util/grub-mkstandalone.in: Fix minor typo errors.
8107
8108 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
8109
8110 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
8111
8112 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
8113 net/icmp.c and net/icmp6.c.
8114 (http): New module.
8115 (priority_queue): Likewise.
8116 * grub-core/io/bufio.c: Rewritten.
8117 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
8118 TYPE_WITH_CONFIGFILE_OPTION.
8119 (legacy_commands): Add bootp and dhcp.
8120 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
8121 (grub_legacy_parse): Likewise.
8122 * grub-core/lib/priority_queue.c: New file.
8123 * grub-core/net/arp.c: Add missing license header.
8124 (arp_find_entry): Removed.
8125 (arp_find_entry): Likewise.
8126 (grub_net_arp_resolve): Rename to ...
8127 (grub_net_arp_send_request): ...this.
8128 (grub_net_arp_receive): New card argument.
8129 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
8130 Set router and DNS server.
8131 (grub_net_configure_by_dhcp_ack): Handle routing information.
8132 (grub_cmd_bootp): Set checksum.
8133 (grub_bootp_init): Remove net_dhcp.
8134 * grub-core/net/dns.c: New file.
8135 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
8136 completion.
8137 (get_card_packet): Handle allocation.
8138 (grub_efinet_findcards): Set mtu.
8139 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
8140 (get_card_packet): Handle allocation.
8141 (emucard): Set mtu.
8142 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
8143 (GRUB_MOD_INIT): Set mtu.
8144 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
8145 mtu.
8146 (get_card_packet): Handle allocation.
8147 (grub_ofnet_findcards): Set mtu.
8148 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
8149 assert.
8150 (grub_net_recv_ethernet_packet): Handle IPv6.
8151 * grub-core/net/http.c: New file.
8152 * grub-core/net/icmp.c: Likewise.
8153 * grub-core/net/icmp6.c: Likewise.
8154 * grub-core/net/ip.c (ip6addr): New type.
8155 (ip6hdr): Likewise.
8156 (reassemble): Likewise.
8157 (cmp): New function.
8158 (reassembles): New variable.
8159 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
8160 (id): New variable.
8161 (send_fragmented): New function.
8162 (grub_net_send_ip_packet): Rename to ...
8163 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
8164 Handle non-UDP.
8165 (grub_net_recv_ip_packets): Rename to ...
8166 (handle_dgram): ... this. Check checksum. Handle non-UDP.
8167 (free_rsm): New function.
8168 (free_old_fragments): Likewise.
8169 (grub_net_recv_ip4_packets): New function.
8170 (grub_net_send_ip6_packet): Likewise.
8171 (grub_net_send_ip_packet): Likewise.
8172 (grub_net_recv_ip6_packets): Likewise.
8173 (grub_net_recv_ip_packets): Likewise.
8174 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
8175 (LINK_LAYER_CACHE_SIZE): New const.
8176 (link_layer_find_entry): New function.
8177 (grub_net_link_layer_add_address): Likewise.
8178 (grub_net_link_layer_resolve_check): Likewise.
8179 (grub_net_link_layer_resolve): Likewise.
8180 (grub_net_ipv6_get_slaac): Likewise.
8181 (grub_net_ipv6_get_link_local): Likewise.
8182 (grub_cmd_ipv6_autoconf): Likewise.
8183 (parse_ip): Handle one number representation.
8184 (parse_ip6): New functoion.
8185 (match_net): Handle IPv6.
8186 (grub_net_resolve_address): Handle IPv6 and DNS.
8187 (grub_net_resolve_net_address): Handle IPv6.
8188 (route_cmp): New function.
8189 (grub_net_route_address): Find best route.
8190 (grub_net_addr_to_str): Handle IPv6.
8191 (grub_net_addr_cmp): New function.
8192 (grub_net_add_addr): Register local route.
8193 (print_net_address): Handle net address.
8194 (grub_net_poll_cards): Retransmit TCP.
8195 (grub_net_poll_cards_idle_real): Likewise.
8196 (have_ahead): New function.
8197 (grub_net_seek_real): Use underlying seek.
8198 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
8199 * grub-core/net/tcp.c: New file.
8200 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
8201 (cmp): New function.
8202 (ack): Likewise.
8203 (tftp_receive): Handle unordered input.
8204 (destroy_pq): New function.
8205 (tftp_close): Close pq.
8206 * grub-core/net/udp.c: Put missing license header.
8207 (grub_net_udp_socket): New function.
8208 (udp_socket_register): Likewise.
8209 (grub_net_udp_close): Likewise.
8210 (grub_net_recv_udp_packet): Check checksum.
8211 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
8212 * include/grub/misc.h (grub_memchr): New function.
8213 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
8214 (grub_net_card_driver): Return buf in recv.
8215 (grub_net_slaac_mac_list): New struct.
8216 (grub_network_level_protocol_id): Add ipv6.
8217 (grub_net_network_level_addr): Likewise.
8218 (grub_net_network_level_net_addr): Likewise.
8219 (grub_net_app_protocol): Add seek.
8220 (grub_net_socket): Removed.
8221 (grub_net_sockets): Likewise.
8222 (grub_net_socket_register): Likewise.
8223 (grub_net_socket_unregister): Likewise.
8224 (FOR_NET_SOCKETS): Likewise.
8225 (grub_net_add_addr): Add const.
8226 (GRUB_NET_BOOTP_*): New enum.
8227 (grub_net_addr_cmp): New proto.
8228 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
8229 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
8230 (grub_net_hwaddr_to_str): NEw proto.
8231 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
8232 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
8233 (grub_dns_init): New proto.
8234 (grub_dns_fini): Likewise.
8235 (grub_net_tcp_retransmit): Likewise.
8236 (grub_net_link_layer_add_address): Likewise.
8237 (grub_net_link_layer_resolve_check): Likewise.
8238 (grub_net_link_layer_resolve): Likewise.
8239 (grub_net_dns_lookup): Likewise.
8240 (grub_net_add_dns_server): Likewise.
8241 (grub_net_remove_dns_server): Likewise.
8242 (GRUB_NET_TRIES): New const.
8243 (GRUB_NET_INTERVAL): Likewise.
8244 * include/grub/net/arp.h: Mostly rewritten.
8245 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
8246 * include/grub/net/ip.h: Mostly rewritten.
8247 * include/grub/net/netbuff.h: Indent.
8248 * include/grub/net/tcp.h: New file.
8249 * include/grub/net/udp.h: Mostly rewritten.
8250 * include/grub/priority_queue.h: New file.
8251 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
8252 (grub_swap_bytes64_compile_time): Likewise.
8253 (grub_cpu_to_be16_compile_time): Likewise.
8254 (grub_cpu_to_be32_compile_time): Likewise.
8255 (grub_cpu_to_be64_compile_time): Likewise.
8256 (grub_be_to_cpu64_compile_time): Likewise.
8257
8258 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
8259
8260 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
8261 UINT_TO_PTR with cast.
8262
8263 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8264
8265 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
8266 don't use them.
8267
8268 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8269
8270 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
8271 already there.
8272
8273 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8274
8275 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
8276 confusing ipxe.
8277
8278 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8279
8280 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
8281 Add missing const attribute.
8282 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
8283 Likewise.
8284 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
8285 Likewise.
8286
8287 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8288
8289 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
8290 misaligned access.
8291 (serpent_setkey): Likewise.
8292 (serpent_encrypt_internal): Likewise.
8293 (serpent_decrypt_internal): Likewise.
8294 (serpent_encrypt): Don't put an alignment-increasing cast.
8295 (serpent_decrypt): Likewise.
8296 (serpent_test): Likewise.
8297
8298 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8299
8300 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
8301
8302 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8303
8304 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
8305
8306 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
8307 grub_addr_t casts.
8308 (PTR_TO_UINT64): Likewise.
8309 (PTR_TO_UINT32): Likewise.
8310
8311 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8312
8313 * util/grub-mkimage.c (generate_image): Decrease the higher limit
8314 because of stack.
8315 * util/grub-setup.c (setup): Don't add redundancy past the higher load
8316 limit.
8317
8318 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8319
8320 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
8321 text_width > available width a bit more gracefully.
8322
8323 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8324
8325 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
8326 current address calculation.
8327
8328 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8329
8330 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
8331 stack.
8332 (encode_block): Likewise.
8333
8334 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8335
8336 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
8337 certainety.
8338
8339 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8340
8341 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
8342 non-RS part to avoid RS messing with GDT.
8343 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
8344 Increase to suit in realmode routines.
8345
8346 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8347
8348 * grub-core/kern/i386/realmode.S: Increase alignment.
8349 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
8350
8351 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8352
8353 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
8354 be deterministic.
8355 (syndroms): Compute 0 syndrom.
8356 (rs_recover): Use 0 syndrom.
8357
8358 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8359
8360 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
8361
8362 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8363
8364 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
8365 brackets.
8366
8367 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8368
8369 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
8370 account.
8371 (get_top_pad): Likewise.
8372 (get_right_pad): Likewise.
8373 (get_bottom_pad): Likewise.
8374
8375 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8376
8377 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
8378
8379 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8380
8381 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
8382 attribute as the structure isn't guaranteed to be properly aligned.
8383 (grub_efi_pci_device_path): Likewise.
8384 (grub_efi_pccard_device_path): Likewise.
8385 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
8386 specify the size of `memory_type'.
8387 (grub_efi_vendor_device_path): Likewise.
8388 (grub_efi_controller_device_path): Likewise.
8389 (grub_efi_acpi_device_path): Likewise.
8390 (grub_efi_expanded_acpi_device_path): Likewise.
8391 (grub_efi_atapi_device_path): Likewise.
8392 (grub_efi_scsi_device_path): Likewise.
8393 (grub_efi_fibre_channel_device_path): Likewise.
8394 (grub_efi_1394_device_path): Likewise.
8395 (grub_efi_usb_device_path): Likewise.
8396 (grub_efi_usb_class_device_path): Likewise.
8397 (grub_efi_i2o_device_path): Likewise.
8398 (grub_efi_mac_address_device_path): Likewise.
8399 (grub_efi_ipv4_device_path): Likewise.
8400 (grub_efi_ipv6_device_path): Likewise.
8401 (grub_efi_infiniband_device_path): Likewise.
8402 (grub_efi_uart_device_path): Likewise.
8403 (grub_efi_vendor_messaging_device_path): Likewise.
8404 (grub_efi_hard_drive_device_path): Likewise.
8405 (grub_efi_cdrom_device_path): Likewise.
8406 (grub_efi_vendor_media_device_path): Likewise.
8407 (grub_efi_file_path_device_path): Likewise.
8408 (grub_efi_protocol_device_path): Likewise.
8409 (grub_efi_piwg_device_path): Likewise.
8410 (grub_efi_bios_device_path): Likewise.
8411
8412 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8413
8414 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
8415 (grub_ucs4_to_utf8_alloc): Likewise.
8416 (grub_ucs4_to_utf8): Likewise.
8417 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
8418 (grub_ucs4_to_utf8_alloc): Likewise.
8419
8420 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8421
8422 AFFS never uses unicode.
8423
8424 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
8425 (grub_latin1_to_utf8): New inline function.
8426 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
8427
8428 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8429
8430 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
8431 overflow.
8432
8433 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8434
8435 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
8436 (grub_squash_dirent_header): Likewise.
8437 (read_chunk): Don't double swap.
8438 (grub_squash_iterate_dir): Fix swap sizes.
8439
8440 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8441
8442 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
8443
8444 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8445
8446 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
8447 (grub_hfs_iterate_dir): Likewise.
8448
8449 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8450
8451 Fix video on platforms where unaligned access is forbidden.
8452 Make several optimisations while on it.
8453
8454 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
8455 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8456 (grub_video_fbblit_replace_32bit_1bit): Likewise.
8457 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8458 Disable.
8459 (grub_video_fbblit_replace_16bit_1bit):
8460 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8461 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8462 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
8463 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
8464 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8465 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8466 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
8467 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
8468 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
8469 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
8470 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
8471 (grub_video_fbblit_replace_index_RGB888): Likewise.
8472 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
8473 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
8474 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
8475 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
8476 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
8477 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8478 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8479 Disable.
8480 (grub_video_fbblit_blend_XXX565_1bit):
8481 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8482 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
8483 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
8484 void *.
8485 * grub-core/video/fb/video_fb.c (common_blitter)
8486 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
8487 (grub_video_fb_create_render_target_from_pointer)
8488 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8489 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
8490 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
8491 definition.
8492 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
8493
8494 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8495
8496 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
8497 HH22 and HM10 relocations.
8498
8499 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8500
8501 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
8502
8503 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8504
8505 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
8506 allocation succeeded.
8507
8508 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8509
8510 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
8511 argument a u8 pointer. All users updated.
8512 Handle unaligned buffers.
8513
8514 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8515
8516 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
8517 add_part to workaround compiler bug.
8518
8519 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8520
8521 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
8522
8523 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8524
8525 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
8526 Reserve alignment invariants.
8527 (grub_multiboot_load): Likewise.
8528 (retrieve_video_parameters): Likewise.
8529 (grub_multiboot_make_mbi): Likewise.
8530
8531 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8532
8533 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
8534 incorrect pointer.
8535
8536 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8537
8538 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
8539 (grub_pata_pio_write): Likewise.
8540
8541 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8542
8543 Add noreturn attributes and remove unreachable code.
8544
8545 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
8546 code.
8547 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
8548 code. Mark as noreturn.
8549 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
8550 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
8551 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
8552 unreachable code.
8553 * grub-core/kern/main.c (grub_main): Mark as noreturn.
8554 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
8555 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
8556 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
8557 * include/grub/kernel.h (grub_main): Mark as noreturn.
8558 * include/grub/reader.h (grub_rescue_run): Likewise.
8559
8560 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8561
8562 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
8563 redundant declaration.
8564
8565 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8566
8567 * include/grub/net.h (grub_net_network_level_interfaces): Remove
8568 redundant declaration.
8569 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
8570
8571 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8572
8573 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
8574 to ensure alignment.
8575 (grub_hdparm_print_identify): Make argument uint16 * to ensure
8576 alignment. Ensure tmp alignment.
8577 (grub_cmd_hdparm): Ensure buf alignment.
8578 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
8579 to ensure alignment.
8580 (grub_ata_dumpinfo): Ensure text alignment.
8581 (grub_atapi_identify): Preserve alignment invariant.
8582 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
8583
8584 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8585
8586 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
8587 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
8588 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
8589 * include/grub/misc.h (grub_reboot)
8590 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
8591 (grub_halt) [__mips__]: Likewise.
8592
8593 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8594
8595 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
8596 Remove redundant declaration.
8597 (grub_mmap_get_post64): Likewise.
8598 (grub_mmap_get_upper): Likewise.
8599 (grub_mmap_get_lower): Likewise.
8600
8601 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8602
8603 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
8604 uint32_t * to ensure alignment.
8605 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
8606
8607 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8608
8609 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
8610 uint16_t * to ensure alignment.
8611 (sun_pc_partition_map_iterate): Make `block' a union to ensure
8612 alignment.
8613
8614 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8615
8616 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
8617 to ensure alignment.
8618 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
8619
8620 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8621
8622 * grub-core/fs/ntfs.c (u16at): Make into inline function.
8623 Handle unaligned pointers.
8624 (u32at): Likewise.
8625 (u64at): Likewise.
8626 (fixup): Use byte access instead of v16at.
8627 (find_attr): Fix imporper usage of v32at.
8628 (read_data): Likewise.
8629 (list_file): Handle byte-swapping and unaligned strings.
8630 (grub_ntfs_label): Likewise.
8631
8632 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8633
8634 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
8635 as it's not necessarily aligned.
8636
8637 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8638
8639 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
8640 redundant declaration.
8641 (grub_serial_init): Likewise.
8642 (grub_terminfo_init): Likewise.
8643
8644 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8645
8646 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
8647 function.
8648 (ZAP_HASH_IDX): Likewise.
8649 (ZAP_LEAF_HASH_SHIFT): Likewise.
8650 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
8651 (LEAF_HASH): Likewise.
8652 (ZAP_LEAF_NUMCHUNKS): Likewise.
8653 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
8654 alignment invariants. Return pointer. All users updated.
8655 (ZAP_LEAF_ENTRY): Make into inline function.
8656 (NBBY): Removed.
8657 (xor): LIkewise.
8658 (xor_out): Use grub_crypto_xor.
8659 (dnode_get_path): Use grub_get_unaligned.
8660 (nvlist_find_value): Likewise.
8661 (grub_zfs_nvlist_lookup_uint64): Likewise.
8662 (grub_zfs_nvlist_lookup_string): Likewise.
8663 (get_nvlist_size): Likewise.
8664 (grub_zfs_open): Likewise.
8665 (fill_fs_info): Likewise.
8666 (grub_zfs_dir): Likewise.
8667 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
8668 alignment invariants.
8669 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
8670 necessarily aligned.
8671
8672 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8673
8674 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
8675
8676 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8677
8678 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
8679 arithmetic to conserve alignment invariants.
8680
8681 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8682
8683 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
8684 redundant declaration.
8685 (grub_efiemu_mm_obtain_request): Likewise.
8686 (grub_efiemu_prepare): Likewise.
8687
8688 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8689
8690 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
8691 to match types.
8692
8693 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8694
8695 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
8696 case of aunaligned recptr.
8697 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
8698 alignment.
8699 (grub_hfsplus_btree_search): Handle unaligned index.
8700
8701 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8702
8703 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
8704 to get freetag and skip.
8705
8706 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8707
8708 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
8709 array.
8710 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
8711 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
8712
8713 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8714
8715 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
8716 name for checksum and fix allocation algorithm.
8717
8718 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8719
8720 * include/grub/types.h (grub_properly_aligned_t): New type.
8721 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
8722 (grub_get_unaligned16): Add explicit casts.
8723 (grub_get_unaligned32): Likewise.
8724 (grub_get_unaligned64): Likewise.
8725 (grub_set_unaligned16): New function.
8726 (grub_set_unaligned32): Likewise.
8727
8728 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8729
8730 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8731
8732 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8733
8734 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
8735 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
8736 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
8737
8738 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8739
8740 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
8741 conditionals.
8742
8743 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8744
8745 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
8746 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
8747
8748 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8749
8750 Unify and improve RAID and crypto xor.
8751
8752 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
8753 changed to grub_crypto_xor
8754 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
8755 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
8756 Use bigger types when possible.
8757
8758 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8759
8760 * grub-core/disk/raid.c (scan_devices): Fix condition.
8761
8762 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8763
8764 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
8765 Make name a const ptr.
8766
8767 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8768
8769 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
8770 first argument a const pointer.
8771 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
8772 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
8773 proto.
8774 (grub_children_iterate): Likewise.
8775 (grub_machine_mmap_iterate): Remove redundant declaration.
8776
8777 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8778
8779 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
8780 (grub_cmd_acpi) [!x86]: Disable EBDA.
8781
8782 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8783
8784 Enable UTF8 in gnulib regexp.
8785
8786 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
8787 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
8788 (isupper): Use grub_isupper.
8789 (isascii): New inline function.
8790 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
8791 * grub-core/lib/posix_wrap/wctype.h: Likewise.
8792 * grub-core/normal/charset.c (grub_utf8_process): New function.
8793 (grub_utf8_to_utf16): Use grub_utf8_process.
8794 (grub_encode_utf8_character): New function.
8795 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
8796 * include/grub/charset.h (grub_utf8_process): New declaration.
8797 (grub_encode_utf8_character): Likewise.
8798 * include/grub/misc.h (grub_islower): New inline function.
8799 (grub_isupper): Likewise.
8800 (grub_strchrsub): Moved down to fix the definitions.
8801
8802 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8803
8804 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
8805 specification.
8806
8807 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8808
8809 * include/grub/loader.h (grub_loader_register_preboot_hook):
8810 Use struct preboot * and not void * for handle. All users updated.
8811 (grub_loader_unregister_preboot_hook): Likewise.
8812
8813 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8814
8815 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
8816 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
8817 UTF-16-BE. All users updated.
8818 (grub_hfsplus_cmp_catkey): Fix unicode handling.
8819 (grub_hfsplus_iterate_dir): Likewise.
8820 (grub_hfsplus_label): Likewise.
8821
8822 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8823
8824 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
8825
8826 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
8827
8828 Add missing const qualifiers.
8829
8830 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
8831 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
8832 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
8833 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
8834 (grub_lvm_check_flag): Likewise.
8835 * grub-core/efiemu/i386/coredetect.c
8836 (grub_efiemu_get_default_core_name): Likewise
8837 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
8838 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
8839 * grub-core/fs/ntfs.c (fixup): Likewise.
8840 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
8841 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
8842 (fzap_lookup): Likewise.
8843 (zap_lookup): Likewise.
8844 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
8845 * grub-core/lib/legacy_parse.c (check_option): Likewise.
8846 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
8847 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
8848 (grub_freebsd_add_meta_module): Likewise.
8849 (grub_cmd_freebsd_module): Likewise.
8850 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
8851 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
8852 (grub_xnu_writetree_get_size): Likewise.
8853 (grub_xnu_writetree_toheap_real): Likewise.
8854 (grub_xnu_find_key): Likewise.
8855 (grub_xnu_create_key): Likewise.
8856 (grub_xnu_create_value): Likewise.
8857 (grub_xnu_register_memory): Likewise.
8858 (grub_xnu_check_os_bundle_required): Likewise.
8859 (grub_xnu_scan_dir_for_kexts): Likewise.
8860 (grub_xnu_load_kext_from_dir): Likewise.
8861 * grub-core/normal/color.c (color_list): Likewise.
8862 * grub-core/normal/completion.c (current_word): Likewise.
8863 * grub-core/normal/menu_entry.c (insert_string): Likewise.
8864 * grub-core/term/serial.c (grub_serial_find): Likewise.
8865 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
8866 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
8867 Likewise.
8868 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
8869 (grub_freebsd_add_meta_module): Likewise.
8870 * include/grub/lib/arg.h (grub_arg_option): Likewise.
8871 * include/grub/net.h (grub_net_card_driver): Likewise.
8872 (grub_net_card): Likewise.
8873 (grub_net_app_protocol): Likewise.
8874 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
8875 * include/grub/serial.h (grub_serial_find): Likewise.
8876 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
8877 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
8878 (grub_xnu_create_value): Likewise.
8879 (grub_xnu_find_key): Likewise.
8880 (grub_xnu_scan_dir_for_kexts): Likewise.
8881 (grub_xnu_load_kext_from_dir): Likewise.
8882
8883 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
8884 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
8885 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
8886 Moved from here ...
8887 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
8888
8889 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
8890
8891 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
8892
8893 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
8894
8895 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
8896 (read_device): Fix size calculation.
8897
8898 2011-11-25 Robert Millan <rmh@gnu.org>
8899
8900 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
8901 (find_root_device_from_libzfs): Add zpool output parser to be used
8902 as fallback when libzfs isn't available.
8903
8904 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
8905
8906 * po/Makefile.in.in: Add missing escape-continuation.
8907
8908 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
8909
8910 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
8911
8912 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8913
8914 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
8915
8916 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8917
8918 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
8919
8920 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8921
8922 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
8923
8924 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
8925
8926 * grub-core/lib/adler32.c: Add missing license specification.
8927 * grub-core/lib/crc64.c: Likewise.
8928 * grub-core/loader/i386/pc/plan9.c: Likewise.
8929 * grub-core/partmap/plan.c: Likewise.
8930
8931 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
8932
8933 Add facility to debug GRUB with gdb under qemu.
8934
8935 * grub-core/gdb_grub.in: New file.
8936 * grub-core/gmodule.pl.in: Likewise.
8937 * grub-core/Makefile.core.def (gmodule.pl): New script.
8938 (gdb_grub): Likewise.
8939
8940 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8941
8942 * util/grub-mount.c (argp_parser): Accept relative pathes.
8943 * util/grub-fstest.c (argp_parser): Likewise.
8944
8945 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8946
8947 Plan9 support.
8948
8949 * Makefile.util.def (libgrubmods): Add
8950 grub-core/partmap/plan.c.
8951 * docs/grub.texi: Notice Plan9 support.
8952 * grub-core/Makefile.core.def (plan9): New module.
8953 (part_plan): Likewise.
8954 * grub-core/loader/i386/pc/plan9.c: New file.
8955 * grub-core/partmap/plan.c: Likewise.
8956 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
8957 define.
8958 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
8959 * include/grub/mm.h (grub_extend_alloc): New inline function.
8960
8961 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8962
8963 Make Reed-Solomon faster by using power of generator representation of
8964 GF(256)*.
8965
8966 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
8967 (gf_double_t): Likewise.
8968 (gf_invert): Removed.
8969 (gf_powx): New array.
8970 (gf_powx_inv): Likewise.
8971 (scratch): Move higher.
8972 (gf_reduce): Removed.
8973 (gf_mul): Use powx.
8974 (gf_invert): Likewise.
8975 (init_inverts): Replaced with ...
8976 (init_powx): ...this. All users updated.
8977 (pol_evaluate): Replace multiplications with additions.
8978 (rs_encode): Likewise.
8979 (gauss_eliminate): Call gf_invert.
8980 (grub_reed_solomon_add_redundancy): Call init_powx.
8981 (grub_reed_solomon_recover): Call init_powx unconditionally.
8982
8983 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8984
8985 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
8986
8987 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8988
8989 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
8990 disk->partiton for safety.
8991
8992 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8993
8994 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
8995 Fix a memory leak.
8996 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
8997
8998 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8999
9000 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
9001
9002 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9003
9004 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
9005
9006 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9007
9008 Fix spaces handling in proc/self/mountinfo.
9009
9010 * util/getroot.c (unescape): New function.
9011 (grub_find_root_device_from_mountinfo): Use unescape.
9012
9013 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9014
9015 Support ZFS embedding.
9016
9017 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
9018 (grub_zfs_fs): Register grub_zfs_embed.
9019
9020 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9021
9022 Fix MIPS compilation.
9023
9024 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
9025 * include/grub/offsets.h: Rename decompressor fields from
9026 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
9027 * util/grub-mkimage.c (image_targets): Use new names.
9028
9029 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9030
9031 Defer multiboot device parsing until we're in compressed part.
9032
9033 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
9034 bsd_part. setdevice has fallen into disuse.
9035 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
9036 (bsd_part): Likewise.
9037 (boot_dev): New variable.
9038 (multiboot_trampoline): Don't parse multiboot device.
9039 Pass multiboot device in %edx.
9040 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
9041 grub_boot_device.
9042 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
9043 Likewise.
9044 * grub-core/kern/i386/pc/startup.S: Save edx.
9045 (grub_boot_drive): Removed.
9046 (grub_install_dos_part): Likewise.
9047 (grub_install_bsd_part): Likewise.
9048 (grub_boot_device): New variable.
9049 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
9050 (grub_install_bsd_part): Likewise.
9051 (grub_boot_drive): Likewise.
9052 (grub_boot_device): New variable.
9053 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
9054 Removed.
9055 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
9056 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
9057 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
9058 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
9059 * util/grub-install.in: Remove redundant condition.
9060
9061 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9062
9063 Fix bug introduced by previous commit.
9064
9065 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
9066
9067 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9068
9069 Use decompressors framework on i386-pc. It increases core size
9070 by 46 bytes but improves compatibility and maintainability.
9071
9072 * grub-core/Makefile.core.def (lzma_decompress): New image.
9073 (kernel): Add i386_pc_ldflags.
9074 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
9075 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
9076 to real_to_prot, prot_to_real and device info.
9077 * include/grub/offsets.h: Renamed decompressor offsets.
9078 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
9079 (image_target_desc): Remove raw_size and rename decompressor fields.
9080 (compress_kernel): Handle lzma.
9081 (generate_image): Handle decompressors on i386-pc.
9082
9083 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9084
9085 * configure.ac: Add -fno-asynchronous-unwind-tables.
9086
9087 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9088
9089 Move assembly code to C by using intwrap. It increases core size
9090 by 88 bytes but improves compatibility and maintainability.
9091
9092 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
9093 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
9094 ... here. Translated to C.
9095 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
9096 * grub-core/term/i386/pc/console.c (grub_console_getkey):
9097 ... here. Translated to C.
9098 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
9099 * grub-core/term/i386/pc/console.c (grub_console_getxy):
9100 ... here. Translated to C.
9101 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
9102 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
9103 ... here. Translated to C.
9104 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
9105 * grub-core/term/i386/pc/console.c (grub_console_cls):
9106 ... here. Translated to C.
9107 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
9108 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
9109 ... here. Translated to C.
9110 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
9111 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
9112 Translated to C.
9113 * grub-core/term/i386/pc/console.c (int10_9): New function.
9114 (grub_console_putchar): Likewise.
9115 * include/grub/i386/pc/console.h: Removed the not anymore shared
9116 functions.
9117
9118 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9119
9120 Move grub_chainloader_real_boot out of the kernel.
9121
9122 * grub-core/Makefile.am: Remove machine/loader.h.
9123 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
9124 Removed.
9125 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
9126 variable.
9127 (grub_relocator16_keep_a20_enabled): Likewise.
9128 (grub_relocator16_boot): Fill new variables.
9129 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
9130 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
9131 relocator.
9132 (grub_chainloader_unload): Likewise.
9133 (grub_chainloader_cmd): Likewise.
9134 * include/grub/i386/pc/loader.h: Removed.
9135 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
9136 and esi. All initialisers updated.
9137
9138 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9139 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
9140
9141 * Makefile.util.def (grub-mount): New util.
9142 * .bzrignore: Add grub-mount.
9143 * configure.ac: Check for fuse and enable grub-mount if available.
9144 * docs/man/grub-mount.h2m: New file.
9145 * util/grub-mount.c: Likewise.
9146
9147 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9148
9149 * grub-core/commands/efi/fixvideo.c: Gettextize.
9150 * grub-core/commands/hashsum.c: Likewise.
9151 * grub-core/commands/i386/cmostest.c: Likewise.
9152 * grub-core/commands/i386/pc/drivemap.c: Likewise.
9153 * grub-core/commands/i386/pc/lsapm.c: Likewise.
9154 * grub-core/commands/i386/pc/sendkey.c: Likewise.
9155 * grub-core/commands/lsmmap.c: Likewise.
9156 * grub-core/commands/menuentry.c: Likewise.
9157 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
9158 * grub-core/commands/setpci.c: Likewise.
9159 * grub-core/loader/i386/bsd.c: Likewise.
9160 * grub-core/loader/i386/linux.c: Likewise.
9161 * util/getroot.c: Likewise.
9162 * util/grub-editenv.c: Likewise.
9163 * util/grub-fstest.c: Likewise.
9164 * util/grub-mkfont.c: Likewise.
9165 * util/grub-mkimage.c: Likewise.
9166 * util/grub-mkpasswd-pbkdf2.c: Likewise.
9167 * util/grub-pe2elf.c: Likewise.
9168 * util/grub-probe.c: Likewise.
9169 * util/grub-setup.c: Likewise.
9170 * util/ieee1275/ofpath.c: Likewise.
9171 * util/misc.c: Likewise.
9172 * util/raid.c: Likewise.
9173
9174 2011-11-11 Robert Millan <rmh@gnu.org>
9175
9176 * util/getroot.c (grub_util_get_geom_abstraction): Remove
9177 __attribute__((unused)) from `os_dev', which *is* being used.
9178
9179 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9180
9181 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
9182 forgotten define.
9183 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
9184 GRUB_IA64_DL_GOT_ALIGN.
9185 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
9186 GRUB_IA64_DL_TRAMP_ALIGN.
9187
9188 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9189
9190 Replace grub_fatal with normal errors in i386 linux loader.
9191
9192 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
9193 (allocate_pages): Check find_efi_mmap_size return value.
9194 (grub_e820_add_region): Return error.
9195 (grub_linux_boot): Check mmap return value.
9196
9197 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9198
9199 * grub-core/commands/acpihalt.c: Gettextized.
9200 * grub-core/commands/cacheinfo.c: Likewise.
9201 * grub-core/commands/cmp.c: Likewise.
9202 * grub-core/commands/efi/loadbios.c: Likewise.
9203 * grub-core/commands/gptsync.c: Likewise.
9204 * grub-core/commands/ieee1275/suspend.c: Likewise.
9205 * grub-core/commands/legacycfg.c: Likewise.
9206 * grub-core/commands/memrw.c: Likewise.
9207 * grub-core/commands/minicmd.c: Likewise.
9208 * grub-core/commands/parttool.c: Likewise.
9209 * grub-core/commands/time.c: Likewise.
9210 * grub-core/commands/videoinfo.c: Likewise.
9211 * grub-core/disk/geli.c: Likewise.
9212 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
9213 * grub-core/disk/luks.c: Likewise.
9214 * grub-core/disk/lvm.c: Likewise.
9215 * grub-core/font/font_cmd.c: Likewise.
9216 * grub-core/fs/zfs/zfscrypt.c: Likewise.
9217 * grub-core/fs/zfs/zfsinfo.c: Likewise.
9218 * grub-core/gfxmenu/view.c: Likewise.
9219 * grub-core/kern/emu/hostdisk.c: Likewise.
9220 * grub-core/kern/emu/main.c: Likewise.
9221 * grub-core/kern/emu/misc.c: Likewise.
9222 * grub-core/kern/emu/mm.c: Likewise.
9223 * grub-core/kern/mips/arc/init.c: Likewise.
9224 * grub-core/kern/mips/loongson/init.c: Likewise.
9225 * grub-core/kern/partition.c: Likewise.
9226 * grub-core/lib/i386/halt.c: Likewise.
9227 * grub-core/lib/mips/arc/reboot.c: Likewise.
9228 * grub-core/lib/mips/loongson/reboot.c: Likewise.
9229 * grub-core/loader/i386/pc/chainloader.c: Likewise.
9230 * grub-core/loader/i386/xnu.c: Likewise.
9231 * grub-core/loader/multiboot.c: Likewise.
9232 * grub-core/net/bootp.c: Likewise.
9233 * grub-core/net/net.c: Likewise.
9234 * grub-core/normal/term.c: Likewise.
9235 * grub-core/partmap/bsdlabel.c: Likewise.
9236 * grub-core/parttool/msdospart.c: Likewise.
9237 * grub-core/term/gfxterm.c: Likewise.
9238 * grub-core/term/terminfo.c: Likewise.
9239 * grub-core/video/i386/pc/vbe.c: Likewise.
9240 * util/grub-menulst2cfg.c: Likewise.
9241 * util/grub-mkdevicemap.c: Likewise.
9242 * util/grub-mklayout.c: Likewise.
9243 * util/grub-mkrelpath.c: Likewise.
9244 * util/grub-script-check.c: Likewise.
9245 * util/ieee1275/grub-ofpathname.c: Likewise.
9246 * util/resolve.c: Likewise.
9247
9248 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9249
9250 Support %1$d syntax.
9251
9252 * tests/printf_unit_test.c: New file.
9253 * Makefile.util.def (printf_test): New test.
9254 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
9255
9256 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9257
9258 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
9259 fix.
9260
9261 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9262
9263 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
9264 dprintf.
9265 * grub-core/font/font.c (grub_font_load): Likewise.
9266
9267 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9268
9269 * util/grub-macho2img.c: Add comment concerning gettext.
9270 * grub-core/lib/legacy_parse.c: Likewise.
9271
9272 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9273
9274 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
9275 (grub_xvasprintf): Likewise.
9276
9277 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9278
9279 Add const keyword to grub_env_get and gettextize week days.
9280
9281 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
9282 (grub_read_hook_datetime): Return const char *.
9283 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
9284 updated.
9285 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
9286 Mark for gettext.
9287 (grub_get_weekday_name): Return const char *. Call gettext.
9288 * grub-core/script/argv.c (grub_script_argv_append): Receive const
9289 char * and len as the argument. All users updated.
9290 (grub_script_argv_split_append): Receive const char *.
9291 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
9292 * include/grub/env.h (grub_env_get): Likewise.
9293 (grub_env_read_hook_t): Return const char *.
9294 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
9295 (grub_script_argv_split_append): Likewise.
9296
9297 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9298
9299 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
9300
9301 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9302
9303 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
9304 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
9305
9306 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9307
9308 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
9309 Fix prototype.
9310
9311 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9312
9313 Fix mips compilation.
9314
9315 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
9316 normal decoder.
9317 (hashes): Use in embed decoder as well (for sizes).
9318 (dec_stream_header): Fix embed decompressor logic.
9319 (dec_stream_footer): Likewise.
9320
9321 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9322
9323 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
9324 an error and not a fatal on unrecognised relocation types.
9325
9326 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9327
9328 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
9329 Issue error rather than printf on unknown arguments.
9330
9331 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9332
9333 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
9334 Make buf a const.
9335
9336 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9337
9338 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
9339 Fix module name.
9340
9341 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9342
9343 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
9344 leftover debug printf.
9345
9346 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9347
9348 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
9349
9350 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9351
9352 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
9353 A stylistic fix.
9354
9355 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9356
9357 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
9358
9359 2011-11-10 Shea Levy <slevy@tieronedesign.com>
9360
9361 Allow all modules to perform serial IO
9362
9363 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
9364 * include/grub/serial.h (grub_serial_port_configure): New inline
9365 function.
9366 (grub_serial_port_fetch): Likewise.
9367 (grub_serial_port_put): Likewise.
9368 (grub_serial_port_fini): Likewise.
9369 (grub_serial_find): New proto.
9370
9371 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9372
9373 Put symlink at the end of the node and fix a potential
9374 memory corruption.
9375
9376 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
9377 Make symlink into an array.
9378 (set_rockridge): Set have_symlink and alloc_dirents.
9379 (grub_iso9660_read_symlink): Use new layout.
9380 (grub_iso9660_iterate_dir): Fix memory corruption.
9381 Use new layout.
9382 (grub_iso9660_dir): Set have_symlink.
9383 (grub_iso9660_open): Likewise.
9384
9385 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9386
9387 Remove local keyword.
9388
9389 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
9390 (version_test_gt): Likewise.
9391 (version_find_latest): Likewise.
9392 (gettext_printf): Likewise.
9393 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
9394
9395 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9396
9397 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
9398
9399 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9400
9401 Fix ZFS memory and resource leaks.
9402
9403 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
9404 All users updated.
9405 Free type on exit.
9406 (fill_vdev_info): New parameter inserted. All users updated.
9407 (check_pool_label): Likewise.
9408 (scan_disk): Likewise.
9409 (scan_devices): Close non-inserted disks.
9410 (fzap_iterate): Free l.
9411 (unmount_device): Free children descripto memory.
9412
9413 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9414
9415 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
9416 argument (access out of bounds).
9417
9418 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9419
9420 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
9421 >= 6 drives.
9422
9423 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9424
9425 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
9426 Fix declaration.
9427
9428 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9429
9430 Fix several memory leaks.
9431
9432 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
9433 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
9434 (grub_cpio_dir): Likewise.
9435 * grub-core/fs/fat.c (grub_fat_label): Likewise.
9436 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
9437 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
9438 (grub_romfs_label): Likewise.
9439 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
9440 (squash_unmount): New function.
9441 (grub_squash_dir): Fix memory leak.
9442 (grub_squash_open): Likewise.
9443 (grub_squash_read): Likewise.
9444 (grub_squash_mtime): Likewise.
9445 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
9446 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
9447 * util/grub-fstest.c (fstest): Likewise.
9448
9449 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9450
9451 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
9452 avoid accessing beyond the array.
9453
9454 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9455
9456 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
9457
9458 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9459
9460 Several AFFS fixes.
9461
9462 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
9463 (GRUB_AFFS_FLAG_FFS): Removed.
9464 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
9465 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
9466 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
9467 (grub_fshelp_node): Make block 32-bit.
9468 Add block_cache and last_block_cache.
9469 (grub_affs_read_block): Fill and use block cache.
9470 (grub_affs_read_file): Removed.
9471 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
9472 boot block.
9473 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
9474 safety.
9475 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
9476 space.
9477 (grub_affs_close): Free block cache.
9478 (grub_affs_read): Use grub_fshelp_read_file directly.
9479
9480 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9481
9482 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
9483 with no error set.
9484
9485 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9486
9487 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
9488 used variable.
9489 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
9490 Likewise.
9491
9492 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9493
9494 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
9495
9496 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
9497 byteswap when needed.
9498
9499 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9500
9501 Fix FreeBSD compilation.
9502
9503 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
9504 to avoid circular dependency.
9505 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
9506 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
9507 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
9508
9509 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9510
9511 Fix ZFS crypto error types.
9512
9513 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
9514 (grub_gcm_decrypt): Likewise.
9515 (grub_zfs_load_key_real): Fix error code type. Handle possible error
9516 from PBKDF2.
9517
9518 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9519
9520 Illumos support.
9521
9522 * Makefile.util.def (10_illumos): New script.
9523 * configure.ac: Set COND_HOST_ILLUMOS.
9524 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
9525 Support Illumos calls.
9526 (find_partition_start) [__sun__]: Likewise.
9527 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
9528 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
9529 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
9530 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
9531 device.
9532 * util/grub-probe.c (probe) [__sun__]: Do character check.
9533 * util/grub.d/10_illumos.in: New file.
9534
9535 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9536
9537 Support escaped commas in hostdisk.
9538
9539 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
9540 (find_grub_drive): Use unescape_cmp.
9541 (make_device_name): Escape commas.
9542
9543 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9544
9545 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
9546
9547 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9548
9549 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
9550 variable.
9551
9552 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9553
9554 Support trampoline jumps on powerpc.
9555
9556 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
9557 __ia64__ path.
9558 (grub_dl_load_segments): Set mod->sz.
9559 (grub_dl_flush_cache): Flush whole space occupied by module, not just
9560 segments.
9561 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
9562 (jump): Likewise.
9563 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
9564 function.
9565 (trampoline): New struct.
9566 (trampoline_template): New const.
9567 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
9568 * include/grub/dl.h (grub_dl): Add sz element.
9569 [__powerpc__]: Follow __ia64__.
9570 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
9571 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
9572 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
9573 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
9574
9575 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9576
9577 ZFS crypto support.
9578
9579 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
9580 * grub-core/Makefile.core.def (zfscrypt): New module.
9581 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
9582 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
9583 it. All users updated.
9584 (grub_zfs_decrypt): New var.
9585 (grub_zfs_load_key): Likewise.
9586 (zio_checksum_functions): Add SHA256+MAC.
9587 (zio_checksum_verify): Handle incomplete comparison due to MAC.
9588 (zio_read): Handle encrypted blocks.
9589 (zap_verify): Remove incorrect check.
9590 (fzap_iterate): Handle non-standard fzap.
9591 (zap_iterate): Likewise.
9592 (zap_iterate_u64): New function.
9593 (dnode_get_fullpath): Load keys.
9594 * grub-core/fs/zfs/zfscrypt.c: New file.
9595 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
9596 (grub_crypto_ecb_encrypt): Make input const.
9597 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
9598 (grub_crypto_ecb_encrypt): Make input const.
9599 (GRUB_CIPHER_AES): New macro.
9600 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
9601 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
9602 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
9603 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
9604 prefix. All users updated.
9605 (grub_zfs_add_key): New proto.
9606 (grub_zfs_decrypt): Likewise.
9607 (grub_zfs_load_key): Likewise.
9608 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
9609 * util/grub-fstest.c (options): Add -K option.
9610 (argp_parser): Likewise.
9611
9612 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9613
9614 Support zle compression on ZFS.
9615
9616 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
9617 (decomp_table): Add zle.
9618 * include/grub/zfs/zio.h (zio_compress): Add zle.
9619
9620 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9621
9622 Support BtrFS embedding.
9623
9624 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
9625 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
9626 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
9627 * util/grub-setup.c (setup): Use fs embedding if available.
9628 Add additional sanity check.
9629
9630 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9631
9632 * util/grub-install.in: Fix condition for config_opt.
9633
9634 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9635
9636 Support third redundancy strip on raidz3.
9637
9638 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
9639 Return error on singularity. All users updated.
9640 (read_device): Don't stop on 3rd failure on raidz3.
9641
9642 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9643
9644 Support case-insensitive ZFS subvolumes.
9645
9646 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
9647 All users updated.
9648 (zap_hash): Likewise.
9649 (name_cmp): New function.
9650 (zap_leaf_array_equal): New parameter case_insensitive.
9651 All users updated.
9652 (zap_leaf_lookup): Likewise.
9653 (fzap_lookup): Likewise.
9654 (zap_lookup): Likewise.
9655 (dnode_get_path): New parameter case_insensitive. Retrieve case
9656 sensitiviness of a volume. All users updated.
9657 (dnode_get_fullpath): New parameter case_insensitive.
9658 All users updated.
9659 (grub_zfs_dir): Set info.case_insensitiveness.
9660
9661 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9662
9663 Support second redundancy strip on raidz(2,3).
9664
9665 * grub-core/fs/zfs/zfs.c (powx): New array.
9666 (powx_inv): Likewise.
9667 (poly): New const.
9668 (xor_out): New function.
9669 (gf_mul): Likewise.
9670 (recovery): Likewise.
9671 (read_device): Use second redundancy strip.
9672
9673 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9674
9675 Use a power of generator representation of GF(256) multiplication group
9676 to save space time and complexity.
9677
9678 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
9679 (raid6_table2): Likewise.
9680 (powx): New array.
9681 (powx_inv): Likewise.
9682 (poly): New const.
9683 (grub_raid_block_mul): Replace with ...
9684 (grub_raid_block_mulx): ...this.
9685 (grub_raid6_init_table): Rewritten.
9686 (grub_raid6_recover): Use power of generator representation.
9687
9688 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9689
9690 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
9691 for the right device.
9692
9693 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9694
9695 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
9696 expected by grub-mkimage and it's more clear since there is no implicit
9697 padding.
9698
9699 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9700
9701 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
9702 disk.
9703 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9704
9705 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
9706
9707 * util/grub-mkrescue.in: Fix handling xorriso option.
9708
9709 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9710
9711 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
9712 NULL.
9713
9714 2011-11-03 crocket <crockabiscuit@gmail.com>
9715
9716 * util/grub.d/10_linux.in: Add Slackware initrd naming.
9717
9718 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9719
9720 XZ CRC64 and SHA256 support.
9721
9722 * Makefile.util.def (libgrubmods): Add crc64.c.
9723 * grub-core/Makefile.core.def (crc64): New module.
9724 * grub-core/lib/crc64.c: New file.
9725 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
9726 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
9727 Fix the type.
9728 (MAX_HASH_SIZE): New define.
9729 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
9730 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
9731 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9732 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9733 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
9734 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
9735 Handle non-crc32 hashes.
9736 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
9737 (dec_stream_header): Handle non-crc32 hashes.
9738 (dec_stream_footer): Likewise.
9739 (dec_block_header): Likewise.
9740 (dec_main): Likewise.
9741 (xz_dec_init): Likewise.
9742 (xz_dec_reset): Likewise.
9743 (xz_dec_end): Likewise.
9744 * util/import_gcry.py: Add CRC64 line.
9745
9746 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9747
9748 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
9749 as well.
9750
9751 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9752
9753 Make reiserfs label retrieval similar to other *_label functions.
9754
9755 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
9756 (REISERFS_MAX_LABEL_LENGTH): Removed.
9757 (REISERFS_LABEL_OFFSET): Likewise.
9758 (grub_reiserfs_label): Rewritten.
9759
9760 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9761
9762 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
9763 field.
9764
9765 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9766
9767 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
9768
9769 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9770
9771 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
9772 drive failure on both raidz and raidz2.
9773
9774 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9775
9776 Fix RAIDZ(2) for >= 5 devices.
9777
9778 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
9779 asize argument. All users updated.
9780
9781 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9782
9783 Fix RAIDZ(2).
9784
9785 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
9786 (fill_vdev_info_real): Set ashift.
9787 (read_device): Rewrite RAIDZ part based on reverse engineering.
9788
9789 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9790
9791 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
9792 don't report potentially unavialiable fields in debug output.
9793 (find_path): Fix double-free and memory leak.
9794
9795 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9796
9797 Read label on UFS1.
9798
9799 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
9800 (grub_ufs_fs): Always set .label.
9801
9802 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9803
9804 Use shifts in UFS.
9805
9806 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
9807 (grub_ufs_data): New field log2_blksz.
9808 (grub_ufs_read_file): Use shifts.
9809 (grub_ufs_mount): Check block size and logarithm it.
9810
9811 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9812
9813 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
9814 long symlinks.
9815
9816 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9817
9818 Handle symlinks and long names on tar and cpio.
9819
9820 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
9821 (ATTR_FILE): Likewise.
9822 (ATTR_DIR): Likewise.
9823 (ATTR_LNK): Likewise.
9824 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
9825 (grub_cpio_find_file): Fill mode, handle linkname field as well as
9826 L and K entries.
9827 (grub_cpio_mount): Zero-fill data.
9828 (handle_symlink): New function.
9829 (grub_cpio_dir): Handle symlinks.
9830 (grub_cpio_open): Likewise.
9831 (grub_cpio_close) [MODE_USTAR]: Free linkname.
9832
9833 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9834
9835 Fix iso9660 filename limitations and fix memory leaks.
9836
9837 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
9838 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
9839
9840 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9841
9842 Fix JFS file name length limitations.
9843
9844 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
9845 (grub_jfs_diropen): Fix maximum filename length.
9846 (grub_jfs_getent): Fix filename length.
9847 (grub_jfs_lookup_symlink): Fix size checks.
9848
9849 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9850
9851 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
9852 string.
9853
9854 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9855
9856 Leverage BFS implementation to read AFS.
9857
9858 * Makefile.util.def (libgrubmods): Add afs.c.
9859 * grub-core/Makefile.core.def (afs): New module
9860 * grub-core/fs/afs.c: New file.
9861 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
9862
9863 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9864
9865 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
9866
9867 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9868
9869 * grub-core/fs/bfs.c: Run indent.
9870
9871 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9872
9873 BFS implementation based on the specification.
9874
9875 * grub-core/fs/bfs.c: New file.
9876 * Makefile.util.def (libgrubmods): Add bfs.c.
9877 * grub-core/Makefile.core.def (bfs): New module.
9878
9879 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9880
9881 * util/grub-fstest.c (cmd_cp): Clarify error message.
9882 (cmd_cmp): Likewise.
9883
9884 2011-10-30 Yves Blusseau <blusseau@zetam.org>
9885
9886 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
9887 and befs_be.
9888
9889 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
9890
9891 Remove afs and befs because of copyright problem.
9892
9893 * grub-core/fs/afs.c: Removed.
9894 * grub-core/fs/afs_be.c: Removed.
9895 * grub-core/fs/befs.c: Removed.
9896 * grub-core/fs/befs_be.c: Removed.
9897 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
9898 * grub-core/Makefile.core.def (afs): Removed.
9899 (afs_be): Likewise.
9900 (befs): Likewise.
9901 (befs_be): Likewise.
9902
9903 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9904
9905 Prefer rockridge over Joliet.
9906
9907 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
9908 to ...
9909 (set_rockridge): ... here.
9910 (grub_iso9660_mount): Check rockridge on the primary label when
9911 discovering. Ignore Joliet if Rockridge is present.
9912
9913 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9914
9915 Use shifts in nilfs2.
9916
9917 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
9918 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
9919 (grub_nilfs2_palloc_entries_per_group): Replace with ...
9920 (grub_nilfs2_log_palloc_entries_per_group): ... this.
9921 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
9922 (grub_nilfs2_entries_per_block): Replaced with ...
9923 (grub_nilfs2_log_entries_per_block_log): ... this.
9924 (grub_nilfs2_blocks_per_group): Replaced with ...
9925 (grub_nilfs2_blocks_per_group_log): ... this.
9926 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
9927 (grub_nilfs2_blocks_per_desc_block_log): ... this.
9928 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
9929 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
9930 (grub_nilfs2_palloc_entry_offset): Replaced ...
9931 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
9932 (grub_nilfs2_dat_translate): Use shifts.
9933 (grub_nilfs2_read_inode): Likewise.
9934 (GRUB_MOD_INIT): Ensure that logs are correct.
9935
9936 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9937
9938 Use shifts in minix filesystem.
9939
9940 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
9941 (GRUB_MINIX_ZONE2SECT): Likewise.
9942 (grub_minix_data): Replace block_size with log_block_size.
9943 (grub_minix_read_file): Use shifts.
9944 (grub_minix_mount): Check block size and take a logarithm.
9945
9946 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9947
9948 Use shifts in squash4.
9949
9950 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
9951 (squash_mount): Check block size and take logarithm.
9952 (direct_read): Use shifts.
9953
9954 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9955
9956 Correct befs block counting logic.
9957
9958 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
9959 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
9960 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
9961 (grub_afs_read_inode): Use block_shift.
9962 (RANGE_SHIFT): New definition.
9963 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
9964 unexpected conditions, use shifts and appropriate types.
9965 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
9966
9967 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9968
9969 * grub-core/disk/raid.c (scan_devices): Check partition.
9970 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9971
9972 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
9973
9974 Support BFS (befs) UUID.
9975
9976 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
9977 (grub_afs_small_data_element_header): New struct.
9978 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
9979 (grub_afs_read_attribute) [MODE_BFS]: New function.
9980 (grub_afs_iterate_dir): Allocate for complete inode.
9981 (grub_afs_mount): Likewise.
9982 (grub_afs_uuid) [MODE_BFS]: New function.
9983 (grub_afs_fs) [MODE_BFS]: Add .uuid.
9984
9985 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
9986
9987 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
9988 (zfs_unmount): Fix memory leak.
9989
9990 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9991
9992 Support NTFS reparse points.
9993
9994 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
9995 (symlink_descriptor): New struct.
9996 (grub_ntfs_read_symlink): New function.
9997 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
9998 (grub_ntfs_open): Likewise.
9999
10000 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10001
10002 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
10003
10004 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10005
10006 fstest xnu_uuid subcommand.
10007
10008 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
10009 grub-core/commands/xnu_uuid.c.
10010 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
10011 (fstest): Handle xnu_uuid.
10012 (options): Document xnu_uuid.
10013 (argp_parser): Parse xnu_uuid.
10014
10015 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10016
10017 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
10018 -l argument. Add newline at the end if printing.
10019 (GRUB_MOD_INIT): Document -l.
10020
10021 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10022
10023 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
10024
10025 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10026
10027 ZFS multi-device and version 33 support.
10028
10029 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
10030 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
10031 (grub_zfs_data): Add multidev-ice-related fields.
10032 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
10033 (dva_get_offset): Make dva const.
10034 (zfs_fetch_nvlist): New function.
10035 (fill_vdev_info_real): Likewise.
10036 (fill_vdev_info): Likewise.
10037 (check_pool_label): Likewise.
10038 (scan_disk): Likewise.
10039 (scan_devices): Likewise.
10040 (read_device): Likewise.
10041 (read_dva): Likewise.
10042 (zio_read_gang): Use read_dva.
10043 (zio_read_data): Likewise.
10044 (zap_leaf_lookup): Add missing endian conversion.
10045 (zap_verify): Add missing endian conversion. All users updated.
10046 (fzap_lookup): Likewise.
10047 (fzap_iterate): Likewise.
10048 (dnode_get_path): Handle SA bonus.
10049 (nvlist_find_value): Make input const. All users updated.
10050 (unmount_device): New function.
10051 (zfs_unmount): Use unmount_device.
10052 (zfs_mount): Use scan_disk.
10053 (zfs_mtime): New function.
10054 (grub_zfs_open): Handle system attributes.
10055 (fill_fs_info): Likewise.
10056 (grub_zfs_dir): Likewise.
10057 (grub_zfs_fs): Add mtime.
10058 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
10059 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
10060 (SA_MTIME_OFFSET): Likewise.
10061 (SA_SYMLINK_OFFSET): Likewise.
10062 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
10063 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
10064 (fstest): Support zfsinfo.
10065 (argp_parser): Likewise.
10066
10067 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10068
10069 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
10070 error.
10071
10072 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10073
10074 ZFS fixes.
10075
10076 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
10077 sharing the same block. Iterate over correct number of indices.
10078 (dnode_get_path): Handle symlinks correctly.
10079
10080 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10081
10082 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
10083
10084 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10085
10086 Read label on HFS+.
10087
10088 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
10089 (grub_hfsplus_btree_search): Fix types.
10090 (grub_hfsplus_label): Implement.
10091
10092 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10093
10094 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
10095
10096 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10097
10098 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
10099
10100 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10101
10102 Fix symlink handling on iso9660.
10103
10104 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
10105 All users updated.
10106 (grub_iso9660_susp_iterate): Accept zero-size iterate.
10107 (grub_iso9660_read_symlink): Moved most of code ...
10108 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
10109
10110 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10111
10112 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10113 Use union to avoid breaking strict-aliasing rules.
10114
10115 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10116
10117 Support multi-extent iso files.
10118
10119 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
10120 Add node.
10121 (grub_fshelp_node): Revamp. All users updated.
10122 (FLAG_*): New enum.
10123 (read_node): New function.
10124 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
10125 All users updated.
10126 (grub_iso9660_mount): Don't attempt to read sua when there is none.
10127 (get_node_size): New function.
10128 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
10129 entries.
10130 Fix memory leak on . and ..
10131 (grub_iso9660_read): Use read_node.
10132 (grub_iso9660_close): Free node.
10133
10134 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10135
10136 Fix tar 4G limit and handle paths containing dot.
10137
10138 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
10139 (canonicalize): New function.
10140 (grub_cpio_find_file): Use canonicalize. Store offs in
10141 grub_disk_addr_t.
10142 (grub_cpio_dir): Use grub_disk_addr_t.
10143 (grub_cpio_open): Likewise.
10144
10145 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10146
10147 Fix handling of uncompressed blocks on squashfs and break 4G limit.
10148
10149 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
10150 unused flags.
10151 (grub_squash_inode): Add long_file and block_size.
10152 (grub_squash_cache_inode): New struct.
10153 (grub_squash_dirent): Make types into enum.
10154 (SQUASH_TYPE_LONG_REGULAR): New type.
10155 (grub_squash_frag_desc): Add field size.
10156 (SQUASH_BLOCK_FLAGS): New enum.
10157 (grub_squash_data): Use grub_squash_cache_inode.
10158 (grub_fshelp_node): Make ino_chunk 64-bit.
10159 (read_chunk): Minor argument change. All users updated.
10160 (squash_mount): Use correct le_to_cpu.
10161 (grub_squash_open): Handle LONG_REGULAR.
10162 (direct_read): New function.
10163 (grub_squash_read_data): Handle blocks correctly.
10164
10165 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10166
10167 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
10168
10169 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10170
10171 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
10172
10173 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10174
10175 Fix 2G limit on ZFS.
10176
10177 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
10178 types.
10179 (uberblock_verify): Likewise.
10180 (dmu_read): Likewise.
10181 (grub_zfs_read): Likewise. Remove invalid cast.
10182
10183 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10184
10185 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
10186 (grub_jfs_blkno): Fix incorrect shift.
10187 (grub_jfs_read_file): Use more appropriate types.
10188
10189 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10190
10191 Support triple indirect on minix2 and minix3.
10192
10193 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
10194 Declare triple_indir_zone.
10195 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
10196 indirect.
10197
10198 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10199
10200 Minix FS fixes.
10201
10202 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
10203 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
10204 Rename ctime to mtime. All users updated.
10205 (grub_minix_get_file_block): Fix types and double indirect computations.
10206
10207 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10208
10209 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
10210 if no label is found.
10211 (grub_fat_iterate_dir): Fix file size type.
10212 (grub_fat_iterate_dir): Likewise.
10213
10214 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10215
10216 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
10217 save some space.
10218 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
10219 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
10220
10221 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10222
10223 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
10224
10225 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10226
10227 * util/import_gcry.py: Accept space between # and include.
10228
10229 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10230
10231 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
10232
10233 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10234
10235 Fine grainely disable warnings on lexer. Remove Wno-error on it.
10236
10237 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
10238 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
10239 yylex_strncpy.
10240 * grub-core/script/yylex.l: Add fine-grained #pragma.
10241
10242 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10243
10244 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
10245 New inline function.
10246 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
10247 Likewise.
10248 (memset) [GRUB_UTIL]: Likewise.
10249 (memcmp) [GRUB_UTIL]: Likewise.
10250
10251 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10252
10253 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
10254 inline function rather than a define.
10255
10256 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10257
10258 * util/grub-setup.c: Add missing include.
10259
10260 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10261
10262 * util/ieee1275/grub-ofpathname.c: Add missing include.
10263
10264 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10265
10266 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
10267 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
10268 Likewise.
10269
10270 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10271
10272 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
10273 grub_memcmp usage.
10274
10275 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10276
10277 * util/grub-install.in: Add datarootdir as per automake manual
10278 suggestion.
10279 * util/grub-mknetdir.in: Likewise.
10280
10281 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10282
10283 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
10284 suggestion.
10285 * util/grub.d/10_kfreebsd.in: Likewise.
10286 * util/grub.d/10_linux.in: Likewise.
10287 * util/grub.d/10_netbsd.in: Likewise.
10288 * util/grub.d/10_windows.in: Likewise.
10289 * util/grub.d/20_linux_xen.in: Likewise.
10290
10291 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
10292
10293 Remove redundant grub_kernel_image_size.
10294
10295 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
10296 _edata and _start.
10297 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
10298 the small code. It moves it only by few bytes but simplifies the code.
10299 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
10300 _start.
10301 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
10302 (grub_kernel_image_size): Removed.
10303 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
10304 (grub_kernel_image_size): Removed.
10305 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
10306 compiled with Apple toolchain.
10307 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
10308 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
10309 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
10310 (grub_total_module_size): Likewise.
10311 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
10312 Removed.
10313 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
10314 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
10315 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10316 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
10317 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
10318 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
10319 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
10320 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
10321 Removed.
10322 (grub_total_module_size): Removed.
10323 * util/grub-mkimage.c (image_target_desc): Remove image_size.
10324 (image_targets): Likewise.
10325 Set .compressed_size to no field on sparc.
10326 (generate_image): Remove kernel_image_size handling.
10327
10328 2011-10-19 Szymon Janc <szymon@janc.net.pl>
10329
10330 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
10331 NULL pointer dereference.
10332
10333 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10334
10335 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
10336 done with a dedicated section.
10337
10338 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
10339 Ensure the correct position of boot_path.
10340 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
10341 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
10342 other fields.
10343 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
10344 * include/grub/boot.h: Removed. All references removed.
10345 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10346 Removed.
10347 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
10348
10349 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10350
10351 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
10352 name.
10353
10354 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10355
10356 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
10357
10358 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10359
10360 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
10361 Don't add the bogus brackets.
10362
10363 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10364
10365 ExFAT support.
10366
10367 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
10368 * grub-core/Makefile.core.def (exfat): New module.
10369 * grub-core/fs/exfat.c: New file.
10370 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
10371 (GRUB_FAT_ATTR_*): Make into an enum.
10372 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
10373 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
10374 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
10375 (GRUB_FAT_MAXFILE): Removed.
10376 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
10377 (grub_current_fat_bpb_t): New type.
10378 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
10379 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
10380 (grub_fat_dir_node_t): New type.
10381 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
10382 (fat_log2) [MODE_EXFAT]: Removed.
10383 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
10384 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
10385 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
10386 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
10387 (grub_fat_label) [MODE_EXFAT]: New function.
10388 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
10389 reserved_first_sector to 0.
10390
10391 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10392
10393 Move grub_reboot out of the kernel.
10394
10395 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
10396 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
10397 * grub-core/lib/efi/reboot.c: ... here.
10398 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
10399 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10400 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
10401 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
10402 * grub-core/lib/i386/reboot_trampoline.S: ... here.
10403 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
10404 * grub-core/lib/ieee1275/reboot.c: ... here.
10405 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
10406 * grub-core/lib/mips/arc/reboot.c: ... here.
10407 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
10408 * grub-core/lib/mips/loongson/reboot.c: ...here.
10409 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
10410 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
10411 * include/grub/emu/misc.h (grub_reboot): New function declaration.
10412 * include/grub/i386/reboot.h: New file.
10413 * include/grub/mips/loongson/ec.h: Fix includes.
10414 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
10415 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
10416 * grub-core/lib/i386/reboot.c: New file.
10417
10418 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
10419
10420 Make grub_prefix into module to fix the arbitrary limit and save
10421 some space.
10422
10423 * grub-core/kern/emu/main.c (grub_prefix): Removed.
10424 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
10425 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
10426 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
10427 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
10428 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
10429 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
10430 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
10431 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
10432 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
10433 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
10434 * include/grub/ia64/efi/kernel.h: Removed.
10435 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
10436 (grub_prefix): Removed.
10437 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
10438 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
10439 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
10440 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
10441 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
10442 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
10443 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
10444 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
10445 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
10446 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
10447 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
10448 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
10449 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
10450 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
10451 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
10452 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
10453 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
10454 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
10455 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
10456 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
10457 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
10458 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
10459 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
10460 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
10461 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
10462 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
10463 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
10464 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
10465 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
10466 from module.
10467 * util/grub-mkimage.c (image_target_desc): Removed prefix and
10468 prefix_end.
10469 (image_targets): Likewise.
10470 (generate_image): Put prefix as a module.
10471
10472 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10473
10474 Replace grub_module_iterate with FOR_MODULES.
10475
10476 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
10477 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
10478 (grub_efi_modules_addr): ...this.
10479 * grub-core/kern/efi/init.c (grub_modbase): New variable.
10480 (grub_efi_init): Set grub_modbase.
10481 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
10482 (grub_modbase): New variable.
10483 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
10484 (grub_modbase): New variable.
10485 (grub_machine_init): Set grub_modbase.
10486 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
10487 (grub_modbase): New variable.
10488 (grub_machine_init): Set grub_modbase.
10489 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
10490 (grub_modbase): New variable.
10491 (grub_machine_init): Set grub_modbase.
10492 * grub-core/kern/main.c (grub_module_iterate): Remove.
10493 (grub_modules_get_end): Use grub_modbase.
10494 (grub_load_modules): Use FOR_MODULES.
10495 (grub_load_config): Likewise.
10496 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
10497 (grub_modbase): New variable.
10498 (grub_machine_init): Set grub_modbase.
10499 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
10500 (grub_modbase): New variable.
10501 (grub_machine_init): Set grub_modbase.
10502 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
10503 Removed.
10504 (grub_modbase): New variable.
10505 (grub_machine_init): Set grub_modbase.
10506 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
10507 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
10508 (grub_module_iterate): Likewise.
10509 (grub_modbase): New variable declaration.
10510 (FOR_MODULES): New macro.
10511
10512 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10513
10514 * configure.ac: Check for __ctzdi2 and __ctzsi2.
10515 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
10516
10517 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10518
10519 Fix few obvious type discrepancies.
10520
10521 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
10522 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
10523 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
10524 variable.
10525 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
10526 and connected types.
10527 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
10528 offset.
10529 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
10530 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
10531 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
10532 and connected types.
10533
10534 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10535
10536 Fix python 3.x incompatibilities.
10537
10538 * gentpl.py: Put brackets around print strings.
10539 * util/import_gcry.py: Open explicitly as utf-8.
10540 Use in instead of has_key.
10541
10542 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10543
10544 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
10545 (GRUB_XFS_INO_AGBITS): Make into inline function.
10546 (GRUB_XFS_INO_INOINAG): Likewise.
10547 (GRUB_XFS_INO_AG): Likewise.
10548 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
10549 (GRUB_XFS_EXTENT_OFFSET): Likewise.
10550 (GRUB_XFS_EXTENT_BLOCK): Likewise.
10551 (GRUB_XFS_EXTENT_SIZE): Likewise.
10552 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
10553 (GRUB_XFS_NEXT_DIRENT): Likewise.
10554 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
10555 (grub_xfs_read_file): Fix offset type.
10556
10557 2011-10-15 Robert Millan <rmh@gnu.org>
10558
10559 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
10560
10561 2011-10-15 Robert Millan <rmh@gnu.org>
10562
10563 Fix build problem on FreeBSD and GNU/kFreeBSD.
10564
10565 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
10566
10567 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10568
10569 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
10570
10571 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
10572 types.
10573 (grub_hfsplus_btree_recoffset): Likewise.
10574 (grub_hfsplus_btree_recptr): Likewise.
10575 (grub_hfsplus_find_block): Likewise.
10576 (grub_hfsplus_btree_search): Likewise.
10577 (grub_hfsplus_read_block): Likewise.
10578 (grub_hfsplus_read_file): Likewise.
10579 (grub_hfsplus_mount): Likewise.
10580 (grub_hfsplus_btree_iterate_node): Likewise.
10581 (grub_hfsplus_btree_search): Likewise.
10582 (grub_hfsplus_iterate_dir): Likewise.
10583 (grub_hfsplus_read): A small code simplification.
10584
10585 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10586
10587 * grub-core/kern/emu/hostdisk.c
10588 (convert_system_partition_to_system_disk): Don't assume that children
10589 of mapper nodes are mapper nodes.
10590
10591 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10592
10593 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
10594 * include/grub/misc.h (grub_isxdigit): New function.
10595 * grub-core/video/colors.c (my_isxdigit): Removed. All users
10596 switched to grub_isxdigit.
10597 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
10598 number starting with a letter.
10599
10600 2011-10-09 Robert Millan <rmh@gnu.org>
10601
10602 LVM support for FreeBSD and GNU/kFreeBSD.
10603
10604 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
10605 GNU/kFreeBSD.
10606 (LVM_DEV_MAPPER_STRING): Move from here ...
10607 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
10608 * util/getroot.c: Include `<grub/util/lvm.h>'.
10609 (grub_util_get_dev_abstraction): Enable
10610 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
10611 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
10612 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
10613 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
10614 support it.
10615 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
10616 GNU/kFreeBSD.
10617 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
10618 when LVM abstraction is required for ${GRUB_DEVICE}.
10619
10620 2011-10-06 Szymon Janc <szymon@janc.net.pl>
10621
10622 Add support for LZO compression in GRUB:
10623 - import of minilzo library,
10624 - LZO decompression for btrfs,
10625 - lzop files decompression.
10626
10627 * grub-core/io/lzopio.c: New file.
10628 * grub-core/lib/adler32.c: Likewise.
10629 * grub-core/lib/minilzo/lzoconf.h: Likewise.
10630 * grub-core/lib/minilzo/lzodefs.h: Likewise.
10631 * grub-core/lib/minilzo/minilzo.c: Likewise.
10632 * grub-core/lib/minilzo/minilzo.h: Likewise.
10633 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
10634 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
10635 grub-core/lib/minilzo/minilzo.c to common.
10636 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
10637 cflags in cppflags.
10638 * grub-core/Makefile.core.def (btrfs): Likewise.
10639 * grub-core/Makefile.core.def (lzopio): New module.
10640 (adler32): Likewise.
10641 * grub-core/fs/btrfs.c: Include minilzo.h.
10642 (GRUB_BTRFS_COMPRESSION_LZO): New define.
10643 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
10644 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
10645 (grub_btrfs_lzo_decompress): New function.
10646 (grub_btrfs_extent_read): Add support for LZO compression type.
10647 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
10648 (GRUB_USHRT_MAX): Likewise.
10649 (GRUB_UINT_MAX): Likewise.
10650 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
10651 (UINT_MAX): Likewise.
10652 (CHAR_BIT): Likewise.
10653 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
10654 grub-core/lib/posix_wrap/limits.h
10655 (UCHAR_MAX): Likewise.
10656 * include/grub/file.h (grub_file_filter_id): New compression filter
10657 GRUB_FILE_FILTER_LZOPIO.
10658 * include/grub/file.h (grub_file_filter_id): Set
10659 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
10660 * include/grub/types.h (grub_get_unaligned16): New function.
10661 (grub_get_unaligned32): Likewise.
10662 (grub_get_unaligned64): Likewise.
10663 * util/import_gcry.py (cryptolist): Add adler32.
10664
10665 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
10666
10667 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
10668 in perspective decreases the complexity of build system and fixes
10669 compilation right now.
10670
10671 2011-10-01 Ales Nesrsta <starous@volny.cz>
10672
10673 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
10674 (fixed problem related to using UHCI with coreboot).
10675
10676 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10677
10678 * gentpl.py: Use Autogen macros so that the output template file
10679 (Makefile.tpl) size is reduced.
10680
10681 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
10682
10683 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
10684 extra_dist.
10685
10686 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10687
10688 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
10689 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
10690
10691 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10692
10693 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
10694 _fullpath.
10695
10696 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10697
10698 Remove extra declaration of sleep for mingw32.
10699
10700 * util/misc.c (sleep) [__MINGW32__]: Removed.
10701 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
10702
10703 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
10704
10705 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
10706 type and packname.
10707 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
10708 Resurrected.
10709 (NETBSD_BTINFO_BOOTWEDGE): New definition.
10710 (grub_netbsd_btinfo_bootwedge): New struct.
10711 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10712 New function.
10713 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
10714
10715 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
10716
10717 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
10718 loader.
10719
10720 2011-09-28 Andreas Born <futur.andy@googlemail.com>
10721
10722 Fix incorrect identifiers in bash-completion.
10723
10724 * util/bash-completion.d/grub-completion.bash.in
10725 (_grub_mkpasswd-pbkdf2): Rename to ...
10726 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
10727 (_grub_script-check): Rename to ...
10728 (_grub_script_check): ... this. All users updated.
10729
10730 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
10731
10732 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
10733 Return 0 if disk isn't biosdisk.
10734
10735 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10736
10737 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
10738 on NetBSD.
10739 * Makefile.util.def (grub-fstest): Likewise.
10740
10741 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10742
10743 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
10744 Get sector size from disk label.
10745
10746 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
10747
10748 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
10749 */README* as well as README*.
10750 Reported by: Axel Beckert.
10751
10752 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10753
10754 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
10755 case of less than 256 MiB of RAM.
10756
10757 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10758
10759 * grub-core/commands/wildcard.c (make_regex): Handle @.
10760
10761 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10762
10763 * util/grub-install.in: Move cryptodisk logic to appropriate place.
10764
10765 2011-08-21 Szymon Janc <szymon@janc.net.pl>
10766
10767 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
10768 AC_LANG_CONFTEST macros.
10769
10770 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10771
10772 Add grub-fstest option to uncompress data for commands.
10773
10774 * util/grub-fstest.c (uncompress): New var.
10775 (options): New option -u.
10776
10777 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10778
10779 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
10780 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
10781
10782 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10783
10784 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
10785 file type was not recognized correctly (not gzip or corrupted).
10786
10787 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10788
10789 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
10790 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
10791
10792 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10793
10794 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
10795 loongson.
10796 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
10797 video_radeon_fuloong2e.
10798 * grub-core/video/radeon_fuloong2e.c: New file.
10799 * include/grub/video.h (grub_video_id_t): Add new ID
10800 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
10801
10802 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10803
10804 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
10805 define.
10806 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
10807 that PRID matches the detected subplatform and reset the subplatform
10808 if it doesn't.
10809
10810 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10811
10812 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
10813
10814 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10815
10816 Fix PCI iterating on functions >= 4.
10817
10818 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
10819 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
10820 Removed.
10821 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
10822 (grub_pci_read): Fix bitmask.
10823 (grub_pci_read_word): Likewise.
10824 (grub_pci_read_byte): Likewise.
10825 (grub_pci_write): Likewise.
10826 (grub_pci_write_word): Likewise.
10827 (grub_pci_write_byte): Likewise.
10828
10829 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10830
10831 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
10832 can still be specified in TARGET_CFLAGS)
10833
10834 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10835
10836 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
10837
10838 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
10839 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
10840 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
10841 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
10842 (FULOONG): Rename to ...
10843 (FULOONG2F): ... this. All users updated.
10844 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
10845 (machtype_fuloong2f_str): ... this.
10846 (machtype_fuloong2e_str): New string.
10847 Check for machtype_fuloong2e_str.
10848 * grub-core/loader/mips/linux.c (loongson_machtypes)
10849 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
10850 * grub-core/term/serial.c (loongson_defserial)
10851 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
10852 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
10853 loongson_defserial.
10854 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
10855 Rename to ...
10856 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
10857 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
10858 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
10859 to IMAGE_FULOONG2F_FLASH. All users updated.
10860 (image_targets): Rename images.
10861 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
10862
10863 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10864
10865 Make enable of disk cache statistics code configurable.
10866
10867 * configure.ac: --enable-cache-stats added.
10868 * config.h.in (DISK_CACHE_STATS): New define.
10869 * grub-core/Makefile.core.def (cacheinfo): New command.
10870 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
10871 * grub-core/commands/cacheinfo.c: New file.
10872 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
10873 moved to cacheinfo.c.
10874 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
10875 debug code.
10876 * include/grub/disk.h: Likewise.
10877
10878 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10879
10880 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
10881 * grub-core/Makefile.am: Likewise.
10882
10883 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10884
10885 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
10886 non-zero pull.
10887
10888 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10889
10890 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
10891 All users updated.
10892 (grub_jfs_lookup_symlink): Use correct starting inode.
10893
10894 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10895
10896 * util/grub-setup.c (main): Add missing gcry initialisation.
10897
10898 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10899
10900 Don't accept text modes on EFI when booting Linux.
10901
10902 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
10903 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
10904
10905 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
10906 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
10907
10908 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
10909 use of "/path/.." as in grub-install for EFI as well as handling
10910 symlinks correctly.
10911 Fixes Debian bug #637768.
10912
10913 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
10914
10915 * util/grub-probe.c: Remove duplicate #include.
10916
10917 2011-08-10 Robert Millan <rmh@gnu.org>
10918
10919 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
10920
10921 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
10922 function.
10923 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
10924 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
10925
10926 2011-08-03 Robert Millan <rmh@gnu.org>
10927
10928 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
10929 la_array as packed.
10930 Reported by: Zachary Bedell
10931
10932 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
10933
10934 * configure.ac: The Loongson port requires grub-mkfont due to its
10935 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
10936 be built.
10937
10938 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
10939
10940 * util/grub-install.in: Don't source grub-mkconfig_lib until after
10941 processing arguments (otherwise help2man fails when GRUB has not yet
10942 been installed).
10943
10944 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10945
10946 New script grub-mkstandalone.
10947
10948 * Makefile.util.def (grub-mkstandalone): New script.
10949 * docs/man/grub-mkstandalone.h2m: New file.
10950 * util/grub-mkstandalone.in: Likewise.
10951
10952 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10953
10954 Support ATA disks with 4K sectors.
10955
10956 * include/grub/ata.h (grub_ata): New member log_sector_size.
10957 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
10958 (grub_ata_identify): Read sector size.
10959 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
10960
10961 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10962
10963 * util/grub-install.in: Don't use uhci outside of x86.
10964
10965 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10966
10967 * util/grub-mkrescue.in: Add missing quotes.
10968
10969 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10970
10971 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
10972 dereference.
10973
10974 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10975
10976 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
10977
10978 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10979
10980 * include/grub/video.h: add missing EXPORT_FUND on
10981 grub_video_edid_checksum and grub_video_edid_preferred_mode.
10982
10983 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10984
10985 * include/grub/mips/kernel.h: Fix define conflict.
10986
10987 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10988
10989 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
10990 all four ways.
10991
10992 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
10993
10994 Preferred resolution detection for VBE.
10995
10996 * grub-core/video/video.c (grub_video_edid_checksum): New function.
10997 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
10998 the Flat Panel extension, in line with the X.org VESA driver.
10999 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
11000 New function.
11001 (grub_vbe_bios_get_ddc_capabilities): Likewise.
11002 (grub_vbe_bios_read_edid): Likewise.
11003 (grub_vbe_get_preferred_mode): Likewise.
11004 (grub_video_vbe_setup): When the mode is "auto", try to get the
11005 preferred mode from VBE, and use the largest mode that is no larger
11006 than the preferred mode (some BIOSes expose a preferred mode that is
11007 not in their mode list!). If this fails, fall back to 640x480 as a
11008 safe conservative choice.
11009 (grub_video_vbe_get_edid): New function.
11010 (grub_video_vbe_adapter): Add get_edid.
11011 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
11012 (struct grub_video_adapter): Add get_edid.
11013 (grub_video_edid_checksum): Add prototype.
11014 (grub_video_edid_preferred_mode): Likewise.
11015 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
11016 structure.
11017
11018 * grub-core/commands/videoinfo.c (print_edid): New function.
11019 (grub_cmd_videoinfo): Print EDID if available.
11020
11021 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
11022 is more appropriate on a wider range of platforms than 640x480.
11023 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
11024 documentation.
11025
11026 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11027
11028 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
11029
11030 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11031
11032 * po/POTFILES.in: Regenerate.
11033
11034 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11035
11036 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
11037 incorrect memory usage.
11038
11039 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11040
11041 * util/grub-install.in: Source grub-mkconfig_lib.
11042
11043 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11044
11045 Remove getroot.c from core on emu platform.
11046
11047 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
11048 kern/emu/raid.c.
11049 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
11050 useless.
11051 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
11052 * util/getroot.c (get_win32_path): ... here.
11053 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
11054 * util/getroot.c (fini_libzfs): ... here.
11055 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
11056 * util/getroot.c (grub_get_libzfs_handle): ... here.
11057 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
11058 Moved from here...
11059 * util/getroot.c (grub_find_zpool_from_dir): ... here.
11060 * grub-core/kern/emu/misc.c
11061 (grub_make_system_path_relative_to_its_root): Moved from here...
11062 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
11063 * grub-core/kern/emu/getroot.c: Moved from here ...
11064 * util/getroot.c: ... here. All users updated.
11065 * grub-core/kern/emu/raid.c: Moved from here ...
11066 * util/raid.c: ... here. All users updated.
11067
11068 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11069
11070 * po/POTFILES.in: Regenerate.
11071
11072 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11073
11074 Fix compilation on GNU/Linux.
11075
11076 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
11077 Disable geli.
11078 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
11079 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
11080 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
11081
11082 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11083 2011-07-07 Michael Gorven <michael@gorven.za.net>
11084 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
11085
11086 LUKS and GELI support.
11087
11088 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
11089 grub-core/disk/luks.c, grub-core/disk/geli.c,
11090 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
11091 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
11092 grub-core/lib/arg.c.
11093 (libgrubmods.a): Remove gcrypts cflags and cppflags.
11094 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
11095 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
11096 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
11097 (grub-bin2h): Add libgcry.a.
11098 (grub-mkimage): Likewise.
11099 (grub-mkrelpath): Likewise.
11100 (grub-script-check): Likewise.
11101 (grub-editenv): Likewise.
11102 (grub-mkpasswd-pbkdf2): Likewise.
11103 (grub-pe2elf): Likewise.
11104 (grub-fstest): Likewise.
11105 (grub-mkfont): Likewise.
11106 (grub-mkdevicemap): Likewise.
11107 (grub-probe): Likewise.
11108 (grub-ofpath): Likewise.
11109 (grub-mklayout): Likewise.
11110 (example_unit_test): Likewise.
11111 (grub-menulst2cfg): Likewise.
11112 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
11113 * grub-core/Makefile.core.def (cryptodisk): New module.
11114 (luks): Likewise.
11115 (geli): Likewise.
11116 * grub-core/disk/AFSplitter.c: New file.
11117 * grub-core/disk/cryptodisk.c: Likewise.
11118 * grub-core/disk/geli.c: Likewise.
11119 * grub-core/disk/luks.c: Likewise.
11120 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
11121 grub_util_is_lvm.
11122 (grub_util_get_dm_abstraction): New function.
11123 (grub_util_follow_gpart_up): Likewise.
11124 (grub_util_get_geom_abstraction): Likewise.
11125 (grub_util_get_dev_abstraction): Use new functions.
11126 (grub_util_pull_device): Pull GELI and LUKS.
11127 (grub_util_get_grub_dev): Handle LUKS and GELI.
11128 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
11129 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
11130 (follow_geom_up): Removed.
11131 (grub_util_fd_seek): New function.
11132 (open_device): Use grub_util_fd_seek.
11133 (nread): Rename to ..
11134 (grub_util_fd_read): ... this. All users updated.
11135 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
11136 (grub_crypto_cbc_decrypt): Likewise.
11137 (grub_crypto_hmac_write): Likewise.
11138 (grub_crypto_hmac_buffer): Likewise.
11139 (grub_password_get): Extend to util.
11140 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
11141 New member modname.
11142 (gcry_md_spec) [GRUB_UTIL]: Likewise.
11143 * include/grub/cryptodisk.h: New file.
11144 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
11145 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
11146 LUKS and GELI.
11147 (grub_util_follow_gpart_up): New proto.
11148 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
11149 (grub_util_fd_read): Likewise.
11150 (grub_cryptodisk_cheat_mount): Likewise.
11151 (grub_util_cryptodisk_print_uuid): Likewise.
11152 (grub_util_get_fd_sectors): Likewise.
11153 * util/grub-fstest.c (mount_crypt): New var.
11154 (fstest): Mount crypto if requested.
11155 (options): New option -C.
11156 (argp_parser): Parse -C.
11157 (main): Init and fini gcry.
11158 * util/grub-install.in: Support cryptodisk install.
11159 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
11160 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
11161 cryptodisk.
11162 (prepare_grub_to_access_device): Likewise.
11163 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
11164 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
11165 (probe_cryptodisk_uuid): New function.
11166 (probe_abstraction): Likewise.
11167 (probe): Use new functions.
11168 * util/import_gcry.py: Create Makefile.utilgcry.def.
11169 Add modname member.
11170
11171 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11172
11173 Lazy device scanning.
11174
11175 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
11176 (grub-setup): Remove util/raid.c.
11177 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
11178 * grub-core/disk/lvm.c (scan_depth): New variable.
11179 (grub_lvm_iterate): Rescan if necessary.
11180 (find_lv): New function based on grub_lvm_open.
11181 (grub_lvm_open): Use find_lv. Rescan on error.
11182 (is_node_readable): New function.
11183 (is_lv_readable): Likewise.
11184 (grub_lvm_scan_device): Skip already found disks.
11185 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
11186 Stop if searched device is found and readable.
11187 * grub-core/disk/raid.c (inscnt): New variable.
11188 (scan_depth): Likewise.
11189 (scan_devices): New function based on grub_raid_register. Abort if
11190 looked for device is found.
11191 (grub_raid_iterate): Rescan if needed.
11192 (find_array): NEw function based on -grub_raid_open.
11193 (grub_raid_open): Use find_array and rescan.
11194 (insert_array): Set became_readable_at.
11195 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
11196 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
11197 New function.
11198 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
11199 (grub_util_pull_device): New function.
11200 (grub_util_get_grub_dev): Call grub_util_pull_device.
11201 * util/raid.c: Moved to ..
11202 * grub-core/kern/emu/raid.c: ... here.
11203 (grub_util_raid_getmembers): New parameter "bootable".
11204 All users updated. Support 1.x.
11205 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
11206 All users updated.
11207 * include/grub/disk.h (grub_disk_pull_t): New enum.
11208 (grub_disk_dev): Change iterate prototype.
11209 All users updated.
11210 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
11211 New proto.
11212 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
11213 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
11214 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
11215 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
11216 All users updated.
11217 * include/grub/util/raid.h: Removed.
11218
11219 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11220
11221 * po/POTFILES.in: Regenerate.
11222
11223 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11224
11225 Unify sparc init with other ieee1275.
11226
11227 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
11228 instead of kern/sparc64/ieee1275/init.c.
11229 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
11230 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
11231 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
11232 grub/machine/kernel.h.
11233 (grub_ieee1275_original_stack) [__sparc__]: New variable.
11234 (grub_claim_heap) [__sparc__]: Use sparc version.
11235 (grub_machine_init): Moved args parsing to
11236 (grub_parse_cmdline): ...this.
11237 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
11238 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
11239 New definition.
11240 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
11241
11242 Move BOOTP to separate file.
11243
11244 * grub-core/Makefile.core.def (net): Add net/bootp.c.
11245 * grub-core/net/net.c: Move all BOOTP functions to
11246 * grub-core/net/bootp.c: ... here.
11247
11248 Use frame interface on PXE.
11249
11250 * grub-core/Makefile.core.def (pxecmd): Removed.
11251 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
11252 * grub-core/commands/i386/pc/pxecmd.c: Removed.
11253 * grub-core/i386/pc/pxe.c: Moved from here ...
11254 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
11255 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
11256 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
11257
11258 EFI network support.
11259
11260 * grub-core/Makefile.core.def (efinet): New module.
11261 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
11262 here...
11263 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
11264 All users updated.
11265 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
11266 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
11267 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
11268 * grub-core/net/drivers/efi/efinet.c: New file.
11269 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
11270 (grub_efi_net_config): New extern var.
11271
11272 Various cleanups and bugfixes.
11273
11274 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
11275 error.
11276 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
11277 disk declared as partition.
11278 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
11279 leak on failure.
11280 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
11281 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
11282 (grub_debug_zalloc): Likewise.
11283 (grub_debug_realloc): Likewise.
11284 (grub_debug_memalign): Likewise.
11285 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
11286 Check that target is IPv4.
11287 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
11288 local-mac-address as fallback.
11289 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
11290 memory leak.
11291 * grub-core/net/ip.c (ipchksum): Rename to ...
11292 (grub_net_ip_chksum): ... this. All users updated.
11293 (grub_net_recv_ip_packets): Special handling for DHCP.
11294 * util/grub-mkimage.c (generate_image): Zero-out aout header.
11295
11296 Unify prefix handling
11297
11298 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
11299 (grub_machine_get_bootlocation): ... this.
11300 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
11301 (grub_machine_get_bootlocation): ... this.
11302 (grub_prefix): New variable.
11303 (prefix): Removed.
11304 (root_dev): New variable.
11305 (dir): Likewise.
11306 (main): Use new variables.
11307 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
11308 Revamped into ...
11309 (grub_machine_get_bootlocation): ... this.
11310 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
11311 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
11312 (grub_machine_get_bootlocation): ... this.
11313 (grub_machine_set_prefix): Removed.
11314 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
11315 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
11316 Revamped into ...
11317 (grub_machine_get_bootlocation): ... this.
11318 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
11319 (grub_set_prefix_and_root): ... this. All users updated.
11320 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
11321 Revamped into ...
11322 (grub_machine_get_bootlocation): ... this.
11323 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
11324 (grub_machine_get_bootlocation): New proto.
11325 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
11326
11327 Less intrusive and more reliable seek on network implementation.
11328
11329 * grub-core/kern/file.c (grub_file_net_seek): Removed.
11330 (grub_file_seek): Don't call grub_file_net_seek.
11331 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
11332 (grub_net_fs_read_real): .. this.
11333 (grub_net_seek_real): Use net->offset.
11334 (grub_net_fs_read): Seek if necessary.
11335
11336 Unify IEEE1275 netwotk config with the other platforms.
11337
11338 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
11339 New variable.
11340 (grub_machine_get_bootlocation): Support network.
11341 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
11342 Support type and device parsing.
11343 (grub_ieee1275_get_device_type): New function.
11344 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
11345 into ...
11346 (grub_ieee1275_net_config_real): ... this.
11347 (grub_ofnet_probecards): Removed.
11348 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
11349 * include/grub/ieee1275/ofnet.h: Removed.
11350 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
11351 extern var.
11352 (grub_ieee1275_get_device_type): New function.
11353
11354 Unify network device closing across platforms and make more robust.
11355
11356 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
11357 grub_grubnet_fini.
11358 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
11359 already.
11360 * grub-core/net/net.c (grub_net_network_level_interface_register):
11361 Update num_ifaces.
11362 (grub_net_card_unregister): Close all interfaces.
11363 (receive_packets): Don't poll if no iterfaces are registered.
11364 Open if necessary.
11365 (grub_net_fini_hw): New function.
11366 (grub_net_restore_hw): Likewise.
11367 (fini_hnd): New variable.
11368 (GRUB_MOD_INIT): Register preboot hook.
11369 (GRUB_MOD_FINI): Run and unregister preboot hook.
11370
11371 Poll network cards when idle.
11372
11373 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
11374 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
11375 * grub-core/net/net.c (receive_packets): Save last poll time.
11376 (grub_net_poll_cards_idle_real): New function.
11377 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
11378 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
11379 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
11380
11381 Rename ofnet interfaces.
11382
11383 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
11384 (grub_ofnet_findcards): Use ofnet_%s names.
11385
11386 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
11387
11388 Cleanup socket opening.
11389
11390 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
11391 (grub_net_fs_close): Likewise.
11392 (grub_net_fs_read_real): Use eof member.
11393 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
11394 (+grub_net_udp_close): New inline function.
11395
11396 * include/grub/net/tftp.h: Moved to the top of ...
11397 * grub-core/net/tftp.c: ... here.
11398 * include/grub/net/ip.h: Moved mostly to the top of ...
11399 * grub-core/net/ip.c: ... here.
11400 * include/grub/net/ethernet.h: Moved mostly to the top of ...
11401 * grub-core/net/ethernet.c: ... here.
11402
11403 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
11404
11405 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
11406 FS name.
11407
11408 * include/grub/net/ip.h (ipv4_ini): Removed.
11409 (ipv4_fini): Likewise.
11410
11411 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
11412 (grub_net_send_ip_packets): Likewise.
11413
11414 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11415
11416 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
11417 grub_read_cmos prototype.
11418
11419 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11420
11421 VGA text support in qemu-mips
11422
11423 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
11424 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
11425 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
11426 text.
11427 * grub-core/kern/i386/qemu/init.c: Renamed to ...
11428 * grub-core/kern/vga_init.c: ... this.
11429 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
11430 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
11431 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
11432 Adjust.
11433 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
11434 GRUB_MACHINE_PCI_IO_BASE.
11435
11436 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11437
11438 MIPS qemu flash support.
11439
11440 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
11441 magic.
11442 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
11443 (grub_machine_init): Probe memory if its size isn't known.
11444 * util/grub-mkimage.c (image_targets): Add flash targets.
11445 (generate_image): Handle flash targets.
11446
11447 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11448
11449 MIPS qemu at_keyboard support.
11450
11451 * gentpl.py (videoinkernel): Add qemu-mips.
11452 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
11453 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
11454 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
11455 modules.
11456 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
11457 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
11458 * grub-core/term/serial.c (grub_serial_register)
11459 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
11460
11461 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11462
11463 CMOS support on sparc.
11464
11465 * gentpl.py (cmos): Add powerpc and sparc.
11466 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
11467 powerpc and sparc.
11468 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
11469 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
11470 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
11471 grub_set_datetime_cmos.
11472 * grub-core/lib/ieee1275/cmos.c: New file.
11473 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
11474 (find_rtc): Set no_ieee1275_rtc on error.
11475 (grub_get_datetime): Call grub_get_datetime_cmos on error.
11476 (grub_set_datetime): Call grub_set_datetime_cmos on error.
11477 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
11478 fail. Move value to argument. All users updated
11479 (grub_cmos_write): Likewise.
11480 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
11481 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
11482 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
11483 grub_get_datetime_cmos and grub_set_datetime_cmos.
11484
11485 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
11486
11487 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
11488 sourcing grub-mkconfig_lib.
11489 * util/update-grub_lib.in: Likewise.
11490 * util/grub.d/00_header.in: Likewise.
11491 * util/grub.d/10_hurd.in: Likewise.
11492 * util/grub.d/10_kfreebsd.in: Likewise.
11493 * util/grub.d/10_linux.in: Likewise.
11494 * util/grub.d/10_netbsd.in: Likewise.
11495 * util/grub.d/10_windows.in: Likewise.
11496 * util/grub.d/20_linux_xen.in: Likewise.
11497 * util/grub.d/30_os-prober.in: Likewise.
11498
11499 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
11500
11501 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
11502 default_bg_color rather than black.
11503 (grub_gfxterm_fullscreen): Likewise.
11504 (grub_gfxterm_background_color_cmd): Save new background color in
11505 default_bg_color.
11506
11507 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11508
11509 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
11510
11511 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11512
11513 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
11514 mismerge.
11515
11516 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11517
11518 Chainloading on coreboot support.
11519
11520 * grub-core/Makefile.core.def (chain): Add coreboot.
11521 * grub-core/loader/i386/coreboot/chainloader.c: New file.
11522
11523 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11524
11525 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
11526 if it happens.
11527
11528 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11529
11530 Implement time command.
11531
11532 * grub-core/Makefile.core.def (time): New module.
11533 * grub-core/commands/time.c: New file.
11534 * grub-core/script/parser.y: Remove "time" keyword.
11535 * grub-core/script/yylex.l: Likewise.
11536
11537 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11538
11539 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
11540
11541 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11542
11543 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
11544 when handling leftovers.
11545
11546 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11547
11548 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
11549 so that help2man doesn't fail.
11550
11551 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11552
11553 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
11554 type in pointers on sparc64.
11555 (get_card_packet): Likewise.
11556
11557 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
11558
11559 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
11560 with `*'.
11561 (grub_cmd_videoinfo): Fetch current video mode.
11562
11563 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11564
11565 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
11566 because of underlying system restrictions.
11567
11568 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11569
11570 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
11571 necessary.
11572
11573 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11574
11575 Coreboot video support.
11576
11577 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
11578 (vbe): Likewise.
11579 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
11580 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
11581 here ...
11582 * grub-core/kern/i386/int.S: ... here.
11583 * grub-core/video/i386/pc/vbe.c: Updated includes.
11584 * grub-core/video/i386/pc/vga.c: Likewise.
11585 * include/grub/i386/coreboot/memory.h
11586 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
11587 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
11588 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
11589 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
11590 Disable interrupts.
11591 * include/grub/i386/pc/vga.h: Removed. All users updated.
11592
11593 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11594
11595 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
11596 definitions for dprintf.
11597 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
11598
11599 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11600
11601 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
11602 prototype.
11603 (get_card_packet): Likewise.
11604
11605 2011-06-26 Yves Blusseau <blusseau@zetam.org>
11606
11607 Display the path of the file when file is not found
11608
11609 * grub-core/fs/fat.c: Display the filename when file is not found.
11610 * grub-core/fs/fshelp.c: Likewise.
11611 * grub-core/fs/hfs.c: Likewise.
11612 * grub-core/fs/jfs.c: Likewise.
11613 * grub-core/fs/minix.c: Likewise.
11614 * grub-core/fs/ufs.c: Likewise.
11615 * grub-core/fs/btrfs.c: Likewise.
11616 * grub-core/commands/i386/pc/play.c: Likewise.
11617
11618 2011-06-26 Szymon Janc <szymon@janc.net.pl>
11619
11620 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
11621 pointer checks before calling grub_free().
11622 * grub-core/commands/wildcard.c (match_devices): Likewise.
11623 * grub-core/commands/wildcard.c (match_files): Likewise.
11624 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
11625 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
11626 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
11627 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
11628 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
11629 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
11630 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
11631 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
11632 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
11633
11634 2011-06-25 Patrick <p55@mailinator.com>
11635
11636 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
11637
11638 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
11639
11640 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
11641 (grub_pxe_send): Likewise.
11642 (GRUB_MOD_INIT): Fix types.
11643
11644 2011-06-24 Szymon Janc <szymon@janc.net.pl>
11645
11646 * grub-core/io/xzio.c: Fix code style issues
11647
11648 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11649 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
11650
11651 Network infrastructure.
11652 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
11653
11654 * include/grub/net/arp.h: New file.
11655 * include/grub/net/device.h: Likewise.
11656 * include/grub/net/ethernet.h: Likewise.
11657 * include/grub/net/ip.h: Likewise.
11658 * include/grub/net/netbuff.h: Likewise.
11659 * include/grub/net/tftp.h: Likewise.
11660 * include/grub/net/udp.h: Likewise.
11661 * include/grub/ieee1275/ofnet.h: Likewise.
11662 * include/grub/emu/export.h: Likewise.
11663 * include/grub/net.h: Likewise.
11664 * grub-core/net/arp.c: Likewise.
11665 * grub-core/net/ethernet.c: Likewise.
11666 * grub-core/net/ip.c: Likewise.
11667 * grub-core/net/udp.c: Likewise.
11668 * grub-core/net/tftp.c: Likewise.
11669 * grub-core/net/netbuff.c: Likewise.
11670 * grub-core/net/net.c: Likewise.
11671 * grub-core/net/drivers/emu/emunet.c: Likewise.
11672 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
11673 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
11674 export.h.
11675 * grub-core/Makefile.core.def (net): New module.
11676 (tftp): Likewise.
11677 (ofnet): Likewise.
11678 (emunet): Likewise.
11679 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
11680 network protocols.
11681 * grub-core/kern/device.c (grub_net_open) : New variable.
11682 (grub_device_open): Handle network device.
11683 (grub_device_close): Likewise.
11684 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
11685 (grub_grubnet_fini): Likewise.
11686 (grub_file_seek): Seek in network device.
11687 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
11688 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
11689 network root.
11690 (grub_machine_fini): Call grub_grubnet_fini.
11691 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
11692 network.
11693 (grub_ieee1275_get_aliasdevname): New function.
11694 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
11695 Add unofficial Solaris network info.
11696 (grub_multiboot_make_mbi): Likewise.
11697 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
11698 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
11699 * include/grub/device.h (grub_fs): Removed.
11700 * include/grub/err.h (grub_err_t): Add network-related values.
11701 * include/grub/i386/pc/pxe.h: Removed bootp parts.
11702 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
11703 (grub_ieee1275_get_aliasdevname): New proto.
11704 * include/grub/net.h: Rewritten.
11705
11706 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11707
11708 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
11709 names.
11710
11711 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11712
11713 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
11714 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
11715 it truncates the output.
11716 Reported by: Ximin Luo.
11717
11718 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11719
11720 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
11721
11722 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11723
11724 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
11725 partmap before abstraction.
11726
11727 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
11728
11729 * util/grub-mkconfig_lib.in: Add missing quotes.
11730
11731 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11732
11733 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
11734 old method if mountinfo would return /dev/root and /dev/root doesn't
11735 exist.
11736
11737 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11738
11739 ZFS zlib support
11740
11741 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
11742 (decomp_table): Add zlib entries.
11743 (zio_read): USe 8 bits for compression function rather than 3.
11744 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
11745
11746 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11747
11748 * grub-core/disk/ahci.c: Add missing license statements.
11749 * grub-core/fs/romfs.c: Likewise.
11750 * grub-core/lib/ia64/setjmp.S: Likewise.
11751 * grub-core/loader/i386/pc/freedos.c: Likewise.
11752 * grub-core/loader/ia64/efi/linux.c: Likewise.
11753 * grub-core/video/colors.c: Likewise.
11754 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
11755
11756 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11757
11758 AHCI support.
11759
11760 * grub-core/Makefile.core.def (ata_pthru): Removed.
11761 (ahci): New module.
11762 (pata): Likewise.
11763 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
11764 on unload.
11765 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
11766 readwrite.
11767 (grub_hdparm_do_check_powermode_cmd): Likewise.
11768 (grub_hdparm_do_smart_cmd): Likewise.
11769 (grub_hdparm_set_val_cmd): Likewise.
11770 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
11771 * grub-core/disk/ahci.c: New file.
11772 * grub-core/disk/ata.c: Factor out the low-level part into ...
11773 * grub-core/disk/pata.c: ... here.
11774 * grub-core/disk/ata_pthru.c: Contents moved to ...
11775 * grub-core/disk/pata.c: ... here.
11776 * grub-core/disk/scsi.c (grub_scsi_names): New array.
11777 (grub_scsi_iterate): Use grub_scsi_names.
11778 (grub_scsi_open): Likewise.
11779 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
11780 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
11781 (grub_ata_regs_t): New struct.
11782 (grub_disk_ata_pass_through_parms): Likewise.
11783 (grub_ata_device): Renamed to ...
11784 (grub_ata): ... this.
11785 (grub_ata_dev): New struct.
11786 Removed all low-level inline functions.
11787 * include/grub/scsi.h: Add PATA and AHCI subsystems.
11788 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
11789 iterate hooks and open. All users updated.
11790 * util/grub-install.in: Handle AHCI disk module.
11791
11792 2011-06-23 Szymon Janc <szymon@janc.net.pl>
11793
11794 Add support for DRI and RSTn markers in JPEG files.
11795
11796 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
11797 (JPEG_MARKER_RST0): Likewise.
11798 (JPEG_MARKER_RST1): Likewise.
11799 (JPEG_MARKER_RST2): Likewise.
11800 (JPEG_MARKER_RST3): Likewise.
11801 (JPEG_MARKER_RST4): Likewise.
11802 (JPEG_MARKER_RST5): Likewise.
11803 (JPEG_MARKER_RST6): Likewise.
11804 (JPEG_MARKER_RST7): Likewise.
11805 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
11806 (grub_jpeg_decode_dri): New function.
11807 (grub_jpeg_decode_sos): Move image data related part into
11808 grub_jpeg_decode_data function.
11809 (grub_jpeg_decode_data): New function.
11810 (grub_jpeg_reset): New function.
11811 (grub_jpeg_decode_jpeg): Handle new markers.
11812
11813 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11814
11815 * util/ieee1275/ofpath.c (check_sas): Close fd.
11816 (main): Free of_path.
11817 Reported by: David Volgyes <dvolgyes>.
11818
11819 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11820
11821 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
11822 Reported by: David Volgyes <dvolgyes>.
11823
11824 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11825
11826 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
11827 file after stat.
11828 Reported by: David Volgyes <dvolgyes>.
11829
11830 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11831
11832 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
11833
11834 Reported by: David Volgyes <dvolgyes>.
11835
11836 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11837
11838 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
11839 Prevent memory leak.
11840
11841 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11842
11843 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
11844 (main): Close file.
11845 Reported by: David Volgyes <dvolgyes>.
11846
11847 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11848
11849 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
11850 to continue if allocation is failed.
11851
11852 Reported by: David Volgyes <dvolgyes>.
11853
11854 2011-06-23 David Volgyes <dvolgyes>
11855
11856 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
11857 dereference.
11858
11859 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11860
11861 Fix spurious warning.
11862
11863 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
11864 (acorn_partition_map_find): Use .bin member.
11865
11866 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11867
11868 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
11869 /dev/root as a valid device.
11870
11871 2011-06-23 Jim Meyering <meyering@redhat.com>
11872
11873 Avoid NULL deref in grub_device_open.
11874
11875 * grub-core/kern/device.c (grub_device_open): Don't dereference
11876 a NULL pointer upon failed grub_env_get.
11877
11878 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11879
11880 Support non-512B sectors and agglomerate reads.
11881
11882 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
11883 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
11884 (disk_io_guid): Removed.
11885 (make_devices): Locate solely by BlockIO.
11886 (grub_efidisk_open): Fill log_sector_size and total_sectors.
11887 (grub_efidisk_read): Use read_blocks.
11888 (grub_efidisk_write): Use write_blocks.
11889 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
11890 log_sector_size.
11891 (get_safe_sectors): Handle non-512B sectors.
11892 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
11893 sectors.
11894 (grub_biosdisk_write): Handle non-512B sectors.
11895 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
11896 (grub_scsi_read): Remove special non-512B block handling (now handled
11897 one level up).
11898 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
11899 and do sanity checks.
11900 (grub_disk_adjust_range): Handle non-512B sectors.
11901 (transform_sector): New function.
11902 (grub_disk_read_small): Likewise.
11903 (grub_disk_read): Rewritten.
11904 (grub_disk_write): Handle non-512B sectors.
11905 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
11906 log_sector_size.
11907 (open_device): Use log_sector_size.
11908 (grub_util_biosdisk_read): Likewise.
11909 (grub_util_biosdisk_write): Likewise.
11910 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
11911 non-512B sectors.
11912 (pc_partition_map_embed): Likewise.
11913 * include/grub/disk.h (grub_disk): New field log_sector_size.
11914 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
11915 (GRUB_DISK_CACHE_BITS): Increased to 6.
11916 * util/grub-fstest.c (fstest): New command testload.
11917 (argp_parser): Likewise.
11918
11919 2011-06-16 Robert Millan <rmh@gnu.org>
11920
11921 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
11922 `ata' driver on kernel of FreeBSD 9.
11923
11924 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
11925 (get_ataraid_disk_name): New functions.
11926 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
11927 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
11928 get_ataraid_disk_name() and get_ada_disk_name().
11929
11930 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
11931
11932 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
11933 input format.
11934
11935 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
11936
11937 * docs/grub.texi (Obtaining and Building GRUB): Substitute
11938 `ftp.gnu.org' for `alpha.gnu.org'.
11939
11940 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
11941
11942 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
11943 partitions under /dev/disk/by-id/.
11944
11945 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
11946
11947 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
11948 after ten consecutive open failures. Scanning all the way up to
11949 10000 is excessive and can cause serious performance problems in
11950 some configurations.
11951 Fixes Ubuntu bug #787461.
11952
11953 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11954
11955 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
11956 opening new one.
11957
11958 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
11959 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11960
11961 Don't stat devices unless we have to.
11962
11963 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
11964 dir == /dev/mapper.
11965 (grub_guess_root_device): Use already known os_dev if possible.
11966 * grub-core/kern/emu/hostdisk.c
11967 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
11968 if device is known to be a dm one.
11969
11970 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
11971
11972 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
11973 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
11974 Reported by: Pawel Tecza.
11975
11976 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11977
11978 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
11979 (lsefisystab): Likewise.
11980 (lssal): Likewise.
11981 (lsefimmap): Likewise.
11982 (hdparm): Enable on qemu-mips.
11983 (setjmp): Add ia64 nodist.
11984 (serial): Simplify tags.
11985
11986 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11987
11988 * Makefile.util.def (grub-ofpathname): Install manual page.
11989
11990 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11991
11992 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
11993
11994 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11995
11996 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
11997
11998 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11999
12000 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
12001 into dprintf.
12002
12003 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12004
12005 Use full 64-bit division.
12006
12007 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
12008 (grub_divmod64): ... this.
12009 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
12010 version.
12011
12012 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12013
12014 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
12015 `source'.
12016
12017 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12018
12019 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
12020 to avoid accidents when debugging with 'sh -x'.
12021 * grub-core/gensyminfo.sh.in: Likewise.
12022 * tests/example_scripted_test.in: Likewise.
12023 * tests/grub_cmd_regexp.in: Likewise.
12024 * tests/grub_script_blanklines.in: Likewise.
12025 * tests/grub_script_dollar.in: Likewise.
12026 * tests/grub_script_expansion.in: Likewise.
12027 * tests/grub_script_final_semicolon.in: Likewise.
12028 * tests/partmap_test.in: Likewise.
12029 * tests/util/grub-shell-tester.in: Likewise.
12030 * tests/util/grub-shell.in: Likewise.
12031
12032 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12033
12034 Move gfxmenu color handling to video, so that gfxterm can use it
12035 too.
12036
12037 * grub-core/gfxmenu/named_colors.c: Move to ...
12038 * grub-core/video/colors.c: ... here. Rename
12039 grub_gui_get_named_color to grub_video_get_named_color.
12040 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
12041 * grub-core/video/colors.c (my_isxdigit): ... here.
12042 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
12043 Move to ...
12044 * grub-core/video/colors.c (parse_hex_color_component): ... here.
12045 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
12046 to ...
12047 * grub-core/video/colors.c (grub_video_parse_color): ... here.
12048
12049 * include/grub/gui.h (grub_gui_color_t): Move to ...
12050 * include/grub/video.h (grub_video_rgba_color_t): ... here.
12051 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
12052 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
12053 * include/grub/gui.h (grub_gui_map_color): Move to ...
12054 * include/grub/video.h (grub_video_map_rgba_color): ... here.
12055 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
12056 to ...
12057 * include/grub/video.h (grub_video_get_named_color): ... here.
12058 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
12059 * include/grub/video.h (grub_video_parse_color): ... here.
12060
12061 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
12062 video/colors.c.
12063 (gfxmenu): Remove gfxmenu/named_colors.c.
12064 (video) [videomodules]: Add video/colors.c.
12065
12066 Add a background_color command.
12067
12068 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
12069 function.
12070 (GRUB_MOD_INIT): Register background_color command.
12071 (GRUB_MOD_FINI): Unregister background_color command.
12072 (redraw_screen_rect): Allow blend/replace of text layer to be
12073 controlled independently from whether there is a background bitmap.
12074 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
12075 changing bitmap.
12076
12077 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12078
12079 Patch BPB in ntldr and chainloader --bpb.
12080
12081 * grub-core/fs/fat.c: Include grub/fat.h.
12082 (grub_fat_bpb): Moved to ...
12083 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
12084 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
12085 grub/ntfs.h.
12086 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
12087 Moved from here...
12088 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
12089 here.
12090 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
12091 New function.
12092 (grub_chainloader_cmd): Patch BPB if --bpb is given.
12093 (GRUB_MOD_INIT): Show --bpb.
12094 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
12095 * grub-core/normal/main.c (features): New variable.
12096 (GRUB_MOD_INIT): Set feature_* variables.
12097 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
12098 proto.
12099 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
12100
12101 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12102
12103 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
12104 for cleanness.
12105
12106 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12107
12108 FreeDOS direct loading support.
12109
12110 * docs/grub.texi (Supported OS): Add FreeDOS.
12111 * grub-core/Makefile.core.def (freedos): New module.
12112 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
12113 variable.
12114 (grub_relocator16_boot): Handle %ebx.
12115 * grub-core/lib/i386/relocator16.S: Likewise.
12116 * grub-core/loader/i386/pc/freedos.c: New file.
12117
12118 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12119
12120 Long Linux command line support.
12121
12122 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12123 (maximal_cmdline_size): New variable.
12124 (allocate_pages): Use maximal_cmdline_size.
12125 (grub_cmd_linux): Set and use maximal_cmdline_size.
12126 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12127 (allocate_pages): Use maximal_cmdline_size.
12128 (grub_cmd_linux): Set and use maximal_cmdline_size.
12129 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
12130 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
12131 and cmdline_size.
12132
12133 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12134 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12135
12136 Improve devmapper support
12137
12138 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
12139 (grub_util_is_lvm): New function.
12140 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
12141 than lvm if not dmraid.
12142 Handle mapped md nodes.
12143 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
12144 (grub_util_device_is_mapped): ... this. Make always available. All users
12145 updated.
12146 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
12147 (convert_system_partition_to_system_disk): Handle lvm, mpath and
12148 dmraid nodes.
12149 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
12150
12151 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12152
12153 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
12154
12155 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
12156 * grub-core/modinfo.sh.in: New file.
12157 * grub-core/Makefile.core.def (modinfo.sh): New script.
12158 * util/grub-mknetdir.in: Use modinfo.sh.
12159 * util/grub-mkrescue.in: Likewise.
12160
12161 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12162
12163 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
12164 Fix potential usage of Elf32 instead of Elf64 when compiling on
12165 32-bit architecture. Add endianness macros while on it.
12166
12167 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12168
12169 Use mipsel- rather than mips- in directories involving mipsel ports to
12170 allow both endiannesses coexist.
12171
12172 * configure.ac: proparate target_cpu=mipsel rather than resetting to
12173 mips. All conditions adjusted.
12174 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
12175 variable.
12176 * util/grub-install.in: Adjust conditions to take renaming into account.
12177 * util/grub-mkimage.c (image_targets): Likewise. New target
12178 mips-qemu_mips-elf for bigendian mips.
12179
12180 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12181
12182 Avoid unnecessary copying on MIPS.
12183
12184 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
12185 early if src == dest.
12186 * util/grub-mkimage.c (generate_image): Arange for src == dest if
12187 compression is none.
12188
12189 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12190
12191 Reduce memory footprint on SGI by putting modules before the kernel
12192 as opposed to after.
12193
12194 * grub-core/Makefile.core.def (kernel): Increase linking address.
12195 (none_decompress): Likewise.
12196 (xz_decompress): Likewise.
12197 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
12198 address.
12199 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
12200 layout change.
12201 (grub_arch_modules_addr): New function.
12202 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
12203 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
12204 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
12205 here.
12206 * grub-core/kern/mips/startup.S (total_size): Rename to ...
12207 (grub_total_modules_size): ... this. Make global.
12208 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
12209 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
12210 New definition.
12211 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
12212 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
12213 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
12214 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
12215 * util/grub-mkimage.c (image_target_desc): New flag
12216 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
12217 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
12218 (generate_image): Handle images with modules before kernel.
12219
12220 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12221
12222 Prevent potential loss of memory map by overwrite on qemu-mips.
12223
12224 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12225 Save ram size in $s4.
12226 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
12227 All users changed to grub_arch_memsize.
12228 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
12229 Loongson.
12230 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
12231 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
12232 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
12233 external variable.
12234
12235 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12236
12237 * .bzrignore: Remove grub-dumpbios.
12238
12239 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12240
12241 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
12242 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
12243 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
12244 existing options which append).
12245 * docs/grub.texi (Simple configuration): Document new options.
12246 Reported by: Ian Jackson. Fixes Debian bug #617538.
12247
12248 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12249
12250 * util/grub-fstest.c (cmd_cat): New function.
12251 (fstest): Handle CMD_CAT.
12252 (options): Add cat.
12253 (argp_parser): Handle cat.
12254
12255 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12256
12257 * Makefile.util.def (grub-bin2h): Don't install.
12258 * docs/man/grub-bin2h.h2m: Remove.
12259
12260 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12261
12262 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
12263 place.
12264
12265 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12266
12267 Reenable qemu-mips port.
12268
12269 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
12270 Fix small arc bug while on it.
12271 * gentpl.py: Handle qemu_mips.
12272 * grub-core/Makefile.am: Likewise.
12273 * grub-core/Makefile.core.def: Likewise.
12274 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
12275 inappropriate includes.
12276 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
12277 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
12278 * grub-core/kern/main.c (grub_modules_get_end)
12279 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
12280 * grub-core/kern/mips/qemu-mips: Moved to ..
12281 * grub-core/kern/mips/qemu_mips: ... this.
12282 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
12283 (grub_machine_init): Call terminfo_init and serial_init.
12284 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
12285 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12286 New variable.
12287 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
12288 parameter passing.
12289 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
12290 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
12291 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
12292 * include/grub/mips/qemu_mips/cmos.h: New file.
12293 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
12294 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
12295 Removed.
12296 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
12297 Use correct mips-style address.
12298 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
12299 (GRUB_TICKS_PER_SECOND): Removed.
12300 (grub_get_rtc): Likewise.
12301 (grub_cpu_idle): Likewise.
12302 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
12303 New definition.
12304 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
12305 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
12306 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
12307 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
12308 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
12309 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
12310 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
12311 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
12312
12313 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12314
12315 SGI ARCS port.
12316
12317 * Makefile.util.def (libgrubmods.a): Add dvh.c.
12318 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
12319 platforms.
12320 * configure.ac: New target mips-arc.
12321 * gentpl.py: Likewise.
12322 * grub-core/Makefile.am: Likewise.
12323 * grub-core/Makefile.core.def: Likewise.
12324 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
12325 (none_decompress): Likewise.
12326 (lsdev): New module.
12327 (datetime): Use lib/arc/datetime.c on ARC.
12328 (part_dvh): New module.
12329 * grub-core/commands/arc/lsdev.c: New file.
12330 * grub-core/disk/arc/arcdisk.c: Likewise.
12331 * grub-core/kern/mips/arc/init.c: Likewise.
12332 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
12333 aligned addresses.
12334 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
12335 support.
12336 (grub_arch_dl_relocate_symbols): Likewise.
12337 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
12338 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
12339 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
12340 platforms.
12341 * grub-core/lib/arc/datetime.c: New file.
12342 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
12343 pci.h on non-loongson.
12344 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
12345 (grub_linux_boot): Set unused registers to 0.
12346 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
12347 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
12348 * grub-core/mmap/mips/uppermem.c: ...here.
12349 * grub-core/partmap/dvh.c: New file.
12350 * grub-core/term/arc/console.c: Likewise.
12351 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
12352 (grub_terminfo_set_current): Add terminal "arc".
12353 (grub_terminfo_readkey): Support ARC sequences.
12354 * include/grub/arc/arc.h: New file.
12355 * include/grub/arc/console.h: Likewise.
12356 * include/grub/disk.h (grub_disk_dev_id): Add
12357 GRUB_DISK_DEVICE_ARCDISK_ID.
12358 * include/grub/mips/arc/kernel.h: New file.
12359 * include/grub/mips/arc/memory.h: Likewise.
12360 * include/grub/mips/arc/time.h: Likewise.
12361 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
12362 * include/grub/mips/kernel.h (grub_halt): ... here.
12363 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
12364 here...
12365 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
12366 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
12367 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
12368 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
12369 proto.
12370 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
12371 from here ...
12372 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
12373 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
12374 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
12375 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
12376 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
12377 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
12378 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
12379 (grub_phys_addr_t): Moved from here ...
12380 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
12381 (grub_vtop): Moved from here ...
12382 * include/grub/mips/memory.h (grub_vtop): ... here.
12383 (grub_map_memory): Moved from here ...
12384 * include/grub/mips/memory.h (grub_map_memory): ... here.
12385 (grub_unmap_memory): Moved from here ...
12386 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
12387 (grub_machine_mmap_iterate): Moved from here ...
12388 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
12389 (grub_mmap_get_lower): Moved from here ...
12390 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
12391 (grub_mmap_get_upper): Moved from here ...
12392 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
12393 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12394 here ...
12395 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12396 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
12397 here ...
12398 * include/grub/mips/time.h (grub_get_rtc): ... here.
12399 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12400 here ...
12401 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12402 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
12403 here ...
12404 * include/grub/mips/time.h (grub_cpu_idle): ... here.
12405 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
12406 definition.
12407 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
12408 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
12409 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
12410 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
12411 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12412 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12413 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
12414 (GRUB_MACHINE_LINK_ADDR): Likewise.
12415 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
12416 to 6.
12417 * util/grub-install.in: Run dvhtool on ARC.
12418 * util/grub-mkimage.c (image_targets): Add mips-arc.
12419 (generate_image): Handle ECOFF output for mips-arc.
12420
12421 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12422
12423 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
12424 blocks.
12425
12426 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12427
12428 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
12429 after enabling port.
12430
12431 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12432
12433 Skip incorrect USB devices.
12434
12435 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
12436 configcnt == 0.
12437 * include/grub/usb.h (grub_usb_err_t): New enum value
12438 GRUB_USB_ERR_BADDEVICE.
12439
12440 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12441
12442 Fuloong video init support.
12443
12444 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
12445 well.
12446 (grub_vga_read_arx): New function.
12447 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
12448 definition.
12449 (framebuffer): New members io, mmioptr and mmiobase.
12450 (read_sis_cmd): New function.
12451 (write_sis_cmd): Likewise.
12452 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
12453 rather than 640x400.
12454 * grub-core/video/sis315_init.c: New file.
12455
12456 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12457
12458 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
12459 non-loongson.
12460 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
12461 to grub_dl_register_symbol.
12462
12463 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12464
12465 Fix compilation errors.
12466
12467 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
12468 potentially unused.
12469 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
12470 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
12471 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
12472 to loongson machines.
12473
12474 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12475
12476 Several FS mtime support.
12477
12478 * grub-core/fs/affs.c (grub_affs_time): New struct.
12479 (grub_affs_file): New field mtime.
12480 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
12481 type. Removed 'size'. New field 'di'. All users updated.
12482 (grub_affs_mount): Simplify checsum checking.
12483 (grub_affs_iterate_dir): New helper grub_affs_create_node.
12484 (grub_affs_dir): Handle mtime.
12485 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
12486 (grub_cpio_dir): Likewise.
12487 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
12488 (grub_hfs_filerec): New field mtime.
12489 (grub_hfs_dir): Handle mtime.
12490 (grub_hfs_mtime): New function.
12491 (grub_hfs_fs): Register grub_hfs_mtime.
12492 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
12493 (grub_iso9660_dir): New field mtime.
12494 (grub_fshelp_node): New field dirent.
12495 (iso9660_to_unixtime): New function.
12496 (iso9660_to_unixtime2): Likewise.
12497 (grub_iso9660_read_symlink): Use node->dirent.
12498 (grub_iso9660_iterate_dir): Likewise.
12499 (grub_iso9660_dir): Set mtime.
12500 (grub_iso9660_mtime): New function.
12501 (grub_iso9660_fs): Register grub_iso9660_mtime.
12502 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
12503 (grub_jfs_inode): New fields atime, ctime and mtime.
12504 (grub_jfs_dir): Set mtime.
12505 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
12506 * grub-core/fs/ntfs.c (list_file): Set mtime.
12507 (grub_ntfs_dir): Likewise.
12508 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
12509 (grub_reiserfs_iterate_dir): Set mtime.
12510 (grub_reiserfs_dir): Likewise.
12511 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
12512 (grub_fshelp_node): Likewise.
12513 (grub_sfs_iterate_dir): Set mtime.
12514 (grub_sfs_dir): Likewise.
12515 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
12516 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
12517 (grub_xfs_inode): New fields atime, mtime, ctime.
12518 (grub_xfs_dir): Set mtime.
12519 * include/grub/datetime.h (grub_datetime2unixtime): New function.
12520 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
12521 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
12522
12523 Support UDF symlinks.
12524
12525 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
12526 (grub_ufs_read_symlink): New function. All users updated.
12527
12528 Check amiga partmap checksum.
12529
12530 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
12531 (grub_amiga_partition): Likewise.
12532 (amiga_partition_map_checksum): New function.
12533 (amiga_partition_map_iterate): Check checksum.
12534
12535 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12536
12537 ROMFS support.
12538
12539 * Makefile.util.def (libgrubmods.a): Add romfs.
12540 * grub-core/Makefile.core.def (romfs): New module.
12541 * grub-core/fs/romfs.c: New file.
12542
12543 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12544
12545 Squashfs v4 support.
12546
12547 * Makefile.util.def (libgrubmods.a): Add squash4.
12548 * grub-core/Makefile.core.def (squash4): New module.
12549 * grub-core/fs/squash4.c: New file.
12550 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
12551 disk_input_start, disk_input.
12552 (get_byte): Handle disk_input.
12553 (grub_zlib_disk_read): New function.
12554 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
12555
12556 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12557 2011-05-15 Feiran Zheng <famcool@gmail.com>
12558
12559 * Makefile.util.def (libgrubmods.a): Add minix3.
12560 * grub-core/Makefile.core.def (minix3): New module.
12561 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
12562 (GRUB_MINIX_BSIZE): Removed.
12563 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
12564 (grub_minix_ino_t): New type.
12565 (grub_minix_le_to_cpu_ino): New macro.
12566 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
12567 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
12568 (grub_minix_data): New field block_size.
12569 (grub_minix_read_file): Handle 64-bit correctly.
12570 * grub-core/fs/minix3.c: New file.
12571
12572 2011-05-15 Tristan Gingold <gingold@free.fr>
12573 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
12574 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12575
12576 IA64 support.
12577
12578 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
12579 * configure.ac: Add ia64-efi target.
12580 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
12581 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
12582 * gentpl.py: Add ia64_efi platform.
12583 Rename x86_efi to efi and Add ia64-efi. All users updated.
12584 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
12585 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
12586 Remove kern/generic/rtc_get_time_ms.c on EFI.
12587 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
12588 kern/ia64/dl_helper.c on ia64-efi.
12589 Add kern/emu/cache.c on emu.
12590 (linux): Use on loader/ia64/efi/linux.c on ia64.
12591 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
12592 whether symbol is a function.
12593 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
12594 (grub_symbol): New field 'isfunc'.
12595 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
12596 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
12597 (grub_dl_load_segments): Place all sections into the same region.
12598 [__ia64__]: Create trampolines and got.
12599 [GRUB_MACHINE_EMU]: Call mprotect.
12600 (grub_dl_resolve_symbols): Resolve symbol type as well.
12601 [__ia64__]: Create function descriptors.
12602 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
12603 (grub_rtc_get_time_ms): ... this. Expressions simplified.
12604 (grub_get_rtc): New function.
12605 * grub-core/kern/emu/cache.c [__ia64__]: New file.
12606 * grub-core/kern/emu/cache.S: Renamed to ...
12607 * grub-core/kern/emu/cache_s.S: ... this.
12608 [__ia64__]: Add a nop.
12609 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
12610 [__ia64__]: New function.
12611 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
12612 * grub-core/kern/ia64/dl.c: New file.
12613 * grub-core/kern/ia64/dl_helper.c: Likewise.
12614 * grub-core/kern/ia64/efi/init.c: New file.
12615 * grub-core/kern/ia64/efi/startup.S: Likewise.
12616 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
12617 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
12618 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
12619 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
12620 * grub-core/loader/ia64/efi/linux.c: New file.
12621 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
12622 (GRUB_MOD_DEP): Likewise.
12623 (grub_dl) [__ia64__]: New fields got and tramp.
12624 (grub_dl): New field 'base'.
12625 (grub_dl_register_symbol): New argument isfunc. All users updated.
12626 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
12627 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
12628 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
12629 (grub_ia64_dl_get_tramp_got_size): New proto.
12630 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
12631 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
12632 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
12633 * include/grub/efi/api.h: Skip call wrappers on ia64.
12634 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
12635 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
12636 * include/grub/elf.h (ELF_ST_INFO): New definition.
12637 * include/grub/ia64/efi/kernel.h: New file.
12638 * include/grub/ia64/efi/memory.h: Likewise.
12639 * include/grub/ia64/efi/time.h: Likewise.
12640 * include/grub/ia64/kernel.h: Likewise.
12641 * include/grub/ia64/setjmp.h: Likewise (from glibc).
12642 * include/grub/ia64/time.h: New file.
12643 * include/grub/ia64/types.h: Likewise.
12644 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
12645 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
12646 New protos.
12647 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
12648 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12649 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
12650 * util/grub-mkimage.c (image_target_desc): New field pe_target.
12651 All users updated.
12652 (EFI64_HEADER_SIZE): New definition. All users updated.
12653 (image_targets): Add ia64-efi.
12654 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
12655 jumpers_addr. All users updated.
12656 Create function descriptors.
12657 (count_funcs): New function.
12658 (unaligned_uint32): New struct.
12659 (MASK20): New definition.
12660 (MASK19): Likewise.
12661 (MASKF21): Likewise.
12662 (add_value_to_slot_20b): New function.
12663 (add_value_to_slot_21_real): Likewise.
12664 (add_value_to_slot_21): Likewise.
12665 (ia64_kernel_trampoline): New struct.
12666 (nopm): New variable.
12667 (jump): Likewise.
12668 (make_trampoline): New function.
12669 (relocate_addresses): Handle ia64.
12670 (make_reloc_section): Likewise.
12671 (load_image): Likewise.
12672
12673 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12674
12675 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
12676 warning. Move variables before code while on it.
12677
12678 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12679
12680 Fuloong support.
12681
12682 * configure.ac: Rename yeeloong platform to loongson. All users updated.
12683 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
12684 * grub-core/boot/mips/loongson/fuloong.S: New file.
12685 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
12686 Explicitly init CS5536.
12687 [FULOONG]: Don't use serial until CS5536 is available.
12688 Set GPIO based on dumps.
12689 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
12690 [FULOONG]: Handle GPIO and memory controller differences.
12691 Parse machine type in $a2.
12692 * grub-core/boot/mips/startup_raw.S: Determine and save the
12693 architecture.
12694 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
12695 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
12696 init on architecture type.
12697 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12698 SIS315E. Don't init at_keyboard on fuloong.
12699 (grub_halt): Support Fuloong.
12700 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
12701 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
12702 (loongson_machtypes): New array.
12703 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
12704 type.
12705 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
12706 config. All users updated. Handle CS5536 serial.
12707 * grub-core/term/serial.c (grub_serial_register): Conditionalise
12708 default port on machine type. Register serial as inactive.
12709 * grub-core/video/sis315pro.c: New file.
12710 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
12711 definition.
12712 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
12713 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
12714 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
12715 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
12716 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
12717 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
12718 to ...
12719 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
12720 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
12721 definition.
12722 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
12723 (grub_arch_machine): New extern var.
12724 * include/grub/mips/loongson/serial.h
12725 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
12726 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
12727 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
12728 (GRUB_MACHINE_SERIAL_PORT0): ... this.
12729 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
12730 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
12731 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
12732 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
12733 * include/grub/term.h (grub_term_register_input_inactive): New inline
12734 function.
12735 (grub_term_register_output_inactive): Likewise.
12736 * include/grub/video.h (grub_video_driver_id): New value
12737 GRUB_VIDEO_DRIVER_SIS315PRO.
12738 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
12739 New field "names". All users updated.
12740 New field value IMAGE_FULOONG_FLASH.
12741 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
12742
12743 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
12744
12745 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
12746 and add some clarification.
12747
12748 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12749
12750 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
12751 platforms if kernel is compressed.
12752
12753 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12754
12755 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
12756 unused modules since currently referrence counter isn't reliable and
12757 there isn't much memory to recover there anyway.
12758
12759 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12760
12761 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
12762 rather than resetting it to allow modules to reference themselves
12763 in init.
12764
12765 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12766
12767 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
12768 counter on dependencies since grub_dl_unref already handles this.
12769
12770 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12771
12772 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
12773 on error if not already done.
12774
12775 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12776
12777 Fix few potential memory misusage.
12778
12779 * grub-core/font/font.c (load_font_index): Don't free char_index to
12780 avoid double free.
12781 (grub_font_load): Zero-fill font at alloc for safety.
12782 Close file on error.
12783 (free_font): Free bmp_idx.
12784
12785 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12786
12787 * docs/grub.texi (Installation): Fix several outdated claims.
12788
12789 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12790
12791 Handle module_license on windows.
12792
12793 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
12794 sections shifted.
12795 (insert_string): Make argument const char * instead of char *.
12796 (write_section_data): Handle long section names.
12797 Handle module_license.
12798
12799 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12800
12801 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
12802 handle class-free menuentries.
12803 (grub_normal_add_menu_entry): Add a check to be sure.
12804
12805 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12806
12807 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
12808 PgUp and PgDown.
12809
12810 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12811
12812 * configure.ac: Bump version to 1.99.
12813
12814 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12815
12816 Give ATA device a bit more time on first try in order to allow disks
12817 to spin up.
12818
12819 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
12820 if dev->present is 1. Reset dev->present on failure.
12821 (grub_ata_device_initialize): Set dev->present to 1.
12822 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
12823 (grub_ata_device): New member 'present'.
12824
12825 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12826
12827 * util/grub-mkimage.c (generate_image): Update hash.
12828
12829 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12830
12831 Flush caches on DMA memory.
12832
12833 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
12834 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
12835 (grub_dma_free): Likewise.
12836 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
12837
12838 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12839
12840 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
12841 to avoid asm treating ld and sd as macros.
12842
12843 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12844
12845 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
12846 decompressor.
12847
12848 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12849
12850 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
12851 grub_decompress_core since later would fail if grub_decompress_core
12852 is too far.
12853
12854 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12855
12856 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
12857 R_MIPS_JALR since it's used by newer compiler.
12858
12859 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
12860
12861 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
12862
12863 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12864
12865 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
12866 file_path to 0 for surety.
12867 (grub_chainloader_boot): Set exit_data to NULL.
12868 Unset the loader once done.
12869 (grub_cmd_chainloader): Fix confusing error message if file is empty.
12870
12871 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12872
12873 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
12874 unknown key into a dprintf.
12875
12876 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12877
12878 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
12879 on first non-existant partition.
12880
12881 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12882
12883 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
12884 openning fails.
12885 Reported by: Mark Korenberg.
12886
12887 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12888
12889 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
12890 overflow.
12891
12892 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12893
12894 * util/grub-mkimage.c (main): Explicitely flush and sync the output
12895 before closing to ensure that it will be readable by grub-setup.
12896
12897 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12898
12899 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
12900 (devpath_1): Use MAKE_PIWG_PATH.
12901 (devpath_2): Likewise.
12902 (devpath_3): Likewise.
12903 (devpath_4): Likewise.
12904 (devpath_5): Likewise.
12905 (devpath_6): Likewise.
12906
12907 The appleldr.mod was checked that to be binary identical to previous
12908 version.
12909
12910 2011-05-05 Zach <mikezackles>
12911
12912 Support 2010 Macbooks.
12913
12914 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
12915 (devs): Add devpath_6.
12916
12917 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12918
12919 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
12920 /dev/random. /dev/urandom is good enough for our purposes (salting).
12921
12922 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12923
12924 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
12925
12926 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12927
12928 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
12929 hexadecimal.
12930
12931 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12932
12933 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
12934 and not 0 on failure.
12935
12936 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
12937
12938 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
12939 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
12940 disk; otherwise grub_fs_probe will not fall back to the next
12941 filesystem.
12942 (grub_pxefs_open): Likewise, for consistency.
12943 Reported and tested by: Ezekiel Grave.
12944
12945 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
12946
12947 * tests/partmap_test.in: Don't hardcode path to parted.
12948 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
12949
12950 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
12951
12952 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
12953 of `ls' to find out which devices are available.
12954
12955 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12956
12957 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
12958 than source address for efi mmap buffer.
12959
12960 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12961
12962 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
12963 wrong action on non-detecting the magic.
12964
12965 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12966
12967 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
12968 already supplied by another part of the module (fixes compilation on
12969 FreeBSD).
12970
12971 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12972
12973 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
12974 match the one used by mdadm.
12975
12976 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12977
12978 * po/README: Add instructions for creating po/LINGUAS.
12979
12980 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12981
12982 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
12983 #551428.
12984
12985 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
12986 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
12987 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
12988 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
12989 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
12990 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
12991 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
12992 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
12993 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
12994 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
12995 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
12996 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
12997 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
12998 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
12999 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
13000 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
13001 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
13002 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
13003 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
13004 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
13005 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
13006 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
13007
13008 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13009
13010 * grub-core/kern/emu/getroot.c
13011 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
13012 test that was incorrectly reintroduced in r3214.
13013 Reported by: Ian Dall. Fixes Savannah bug #33133.
13014
13015 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13016
13017 Fix stack pointer handling in 16-bit relocator.
13018
13019 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
13020 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
13021 Fixes Ubuntu bug #683904.
13022
13023 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13024
13025 * configure.ac: Bump version to 1.99~rc2.
13026
13027 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13028
13029 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
13030 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
13031 * grub-core/lib/x86_64/setjmp.S: Likewise.
13032 * grub-core/lib/mips/setjmp.S: Likewise.
13033 * grub-core/lib/powerpc/setjmp.S: Likewise.
13034 * grub-core/lib/sparc64/setjmp.S: Likewise.
13035
13036 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13037
13038 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
13039 * grub-core/lib/efi/datetime.c: Likewise.
13040
13041 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13042
13043 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
13044 New function.
13045 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
13046 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
13047 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
13048
13049 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13050
13051 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
13052 bitmap.
13053 (grub_gfxterm_term_init): Likewise.
13054
13055 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13056
13057 Take into account the decorations the computing menu entry width.
13058
13059 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
13060 (grub_gfxmenu_create_box): Register get_border_width.
13061 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
13062 if available.
13063 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
13064 get_border_width.
13065
13066 2011-04-18 Endres Puschner <code@e7p.de>
13067
13068 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
13069 Don't skip first class.
13070
13071 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13072
13073 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
13074 chunks.
13075 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
13076
13077 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13078
13079 Complete 64-bit division support.
13080
13081 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
13082 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
13083 * include/grub/misc.h (grub_divmod64): Rename to ...
13084 (grub_divmod64_full): ... this.
13085 (grub_divmod64): New inline function.
13086
13087 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13088
13089 * util/grub-mkimage.c (generate_image): Add forgotten comma.
13090
13091 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13092
13093 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
13094 performing the necessary test.
13095
13096 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13097
13098 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
13099 (kfreebsd.elf): Likewise.
13100 (pc-chainloader.elf): Likewise.
13101 (ntldr.elf): Likewise.
13102
13103 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13104
13105 Identify RAID by its UUID rather than (guessed) name.
13106
13107 * grub-core/disk/raid.c (ascii2hex): New function.
13108 (grub_raid_open): Accept mduuid/%s specification.
13109 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
13110 (get_mdadm_uuid): ... this.
13111 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
13112
13113 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
13114
13115 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
13116 to negative size.
13117
13118 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
13119
13120 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
13121 btrfs subvolume.
13122 * util/grub.d/20_linux_xen.in: Likewise.
13123
13124 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
13125
13126 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
13127 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
13128
13129 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
13130 Build a list of relevant visible mounts using the mnt_id and
13131 parent_mnt_id fields, and then scan that list at the end.
13132
13133 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13134
13135 * docs/grub.texi (normal): New section.
13136 (normal_exit): New section.
13137 (Embedded configuration): Add reference to normal.
13138 (GRUB only offers a rescue shell): Likewise.
13139 * docs/grub-dev.texi (Error Handling): Fix typo.
13140
13141 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13142
13143 * NEWS: Drop obsolete entry about probe-only btrfs support.
13144
13145 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13146
13147 * util/import_gcry.py: Fix typo.
13148
13149 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13150
13151 * NEWS: Add btrfs support.
13152
13153 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13154 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
13155
13156 BtrFS support. Written by me (Vladimir) with important bugfixes and
13157 even more important testing by Colin.
13158
13159 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
13160 * grub-core/Makefile.core.def (btrfs): Add crc.c.
13161 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
13162 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
13163 mem_input_off and mem_input. All users updated to accept in-RAM input.
13164 (gzio_seek): New function.
13165 (test_zlib_header): Likewise.
13166 (grub_gzio_read): Likewise.
13167 (grub_zlib_decompress): Likewise.
13168 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
13169 Accept partial and non-virtual mounts.
13170 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
13171 avoid receiving /dev/dm-X as device.
13172 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
13173 Handle bind and partial mounts.
13174 * grub-core/lib/crc.c: New file.
13175 * include/grub/deflate.h: Likewise.
13176 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
13177 proto.
13178 * include/grub/lib/crc.h: New file.
13179
13180 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13181
13182 Implement automatic module license checking according to new GNU
13183 guidelines.
13184
13185 * grub-core/kern/dl.c (grub_dl_check_license): New function.
13186 (grub_dl_load_core): Use grub_dl_check_license.
13187 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
13188 (GRUB_MOD_LICENSE): Likewise.
13189 (GRUB_MOD_DUAL_LICENSE): Likewise.
13190 All modules updated.
13191
13192 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
13193
13194 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
13195 reserved_first_sector to 1. btrfs reserves plenty of space for boot
13196 loaders.
13197 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
13198
13199 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13200
13201 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
13202
13203 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13204
13205 * util/grub-fstest.c (read_file): Report GRUB error if file opening
13206 failed.
13207
13208 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13209
13210 * grub-core/kern/file.c (grub_file_open): Don't take into account the
13211 parenthesis in the middle of the filename.
13212
13213 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13214
13215 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
13216 rather than trying to put initrd way too high.
13217 Reported by: Ryan Lortie <desrt@desrt.ca>
13218
13219 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13220
13221 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
13222 improperly removed string.
13223
13224 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13225
13226 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
13227 is_disk.
13228 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
13229 (open_device) Likewise.
13230 (grub_util_biosdisk_close): Likewise.
13231 Reported by: Mark Korenberg.
13232
13233 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
13234
13235 * util/grub-mkconfig_lib.in: Add missing quotes.
13236
13237 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
13238
13239 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
13240 is NULL.
13241
13242 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13243
13244 Dynamically count the number of lines for the lower banner.
13245
13246 * grub-core/normal/menu_entry.c (per_term_screen): New member
13247 num_entries.
13248 (print_down): Use num_entries.
13249 (update_screen): Likewise.
13250 (grub_menu_entry_run): Set num_entries.
13251 * grub-core/normal/menu_text.c (menu_viewer_data): New member
13252 num_entries.
13253 (grub_print_message_indented): Move real part to ...
13254 (grub_print_message_indented_real): ... here. Additional argument
13255 dry_run.
13256 (draw_border): Additional argument num_entries.
13257 (print_message): Additional argument dry_run.
13258 (print_entries): Receive menu viewer data.
13259 (grub_menu_init_page): New argment num_entries.
13260 (menu_text_set_chosen_entry): Use num_entries.
13261 (grub_menu_try_text): Likewise.
13262 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
13263 All users updated.
13264 (grub_ucs4_count_lines): New function.
13265 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
13266 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
13267 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
13268 (grub_term_border_height): Likewise.
13269 (grub_term_num_entries): Likewise.
13270
13271 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13272
13273 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
13274 Remove now unused string.
13275
13276 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
13277
13278 * docs/grub-dev.texi (Finding your way around): Update for 1.99
13279 build system.
13280 (Getting started): GRUB is developed in Bazaar now, not Subversion.
13281
13282 (Comment): Fix typo.
13283 (Getting started): General copy-editing.
13284 (Typical Development Experience): Likewise.
13285 (Error Handling): Likewise.
13286 (Video API): Likewise.
13287
13288 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
13289
13290 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
13291 throughout.
13292
13293 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13294
13295 * util/grub-mkimage.c (main): Handle special naming of yeeloong
13296 directory.
13297
13298 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
13299
13300 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
13301 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
13302 "development".
13303
13304 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13305
13306 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
13307 grub_strcpy since the lines aren't necessarily 0-terminated.
13308
13309 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13310
13311 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
13312 root on legacy.
13313
13314 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13315
13316 * grub-core/commands/probe.c (options): Argument to set isn't optional.
13317 (GRUB_MOD_INIT): DEVICE isn't optional.
13318
13319 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13320
13321 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
13322 word on new line if it's too long anyway. Fixes a hang.
13323
13324 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13325
13326 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
13327 const.
13328 * util/grub-setup.c (main): Reuse md device name if available.
13329 * util/raid.c (grub_util_raid_getmembers): Receive device name and
13330 not GRUB name as argument.
13331 Based on patch by: Florian Wagner <fwagner>.
13332
13333 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13334
13335 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13336 Place mbi on low memory for better compatibility.
13337
13338 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13339
13340 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
13341
13342 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13343 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
13344
13345 * autogen.sh: Ensure that collate and ctype locale is C.
13346 * conf/Makefile.common: Likewise.
13347
13348 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13349
13350 * grub-core/normal/menu.c: Add missing include.
13351
13352 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13353
13354 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
13355
13356 2011-04-08 Martin Zuther <mzuther@mzuther.de>
13357
13358 * util/grub-mkconfig.in: Ignore emacsen backup.
13359
13360 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13361
13362 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
13363 on open.
13364 (grub_util_biosdisk_close): Likewise.
13365
13366 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13367
13368 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
13369 const attribute and use grub_isdigit.
13370
13371 2011-04-06 Andrey <dev_null@ukr.net>
13372
13373 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
13374 gcc warning.
13375
13376 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13377
13378 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
13379 useful grub_dprintf's.
13380
13381 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13382
13383 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
13384
13385 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13386
13387 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
13388
13389 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13390
13391 Output errors if theme loading failed.
13392
13393 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
13394 grub_gfxterm_fullscreen on error paths to ...
13395 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
13396 theme loading error.
13397
13398 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13399
13400 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
13401 space for older compilers.
13402 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13403
13404 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13405
13406 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
13407 and report them as not RAID members since they are useless for GRUB.
13408 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13409
13410 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13411
13412 Increase LVM implementation robustness in order not to crash on
13413 configurations like pvmove. Previously code assumed that in some places
13414 only lvs or only pvs are used whereas it seems that they are used
13415 interchangeably.
13416
13417 * grub-core/disk/lvm.c (read_node): New function.
13418 (read_lv): Use read_node.
13419 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
13420 Match volumes only at the end when all lvs are found. Take both
13421 pvs (first) and lvs (second) into account.
13422 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
13423 mirror_* into node_*. All users updated.
13424 (grub_lvm_stripe): Merge this ...
13425 (grub_lvm_mirror): ... and this ...
13426 (grub_lvm_node): ... into this. All users updated.
13427
13428 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13429
13430 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
13431 of function to allow further scanning for LVMs.
13432
13433 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13434
13435 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
13436 on failed seek as it breaks open fd reusage.
13437
13438 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13439
13440 * util/grub-install.in: Add a recommendation to use --recheck before
13441 reporting bugs.
13442
13443 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13444
13445 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
13446 are obtained.
13447
13448 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13449
13450 GRUB developper manual based on existing Internals section and
13451 contributions by the various authors with active copyright assignment.
13452
13453 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
13454 * docs/font_char_metrics.png: New file.
13455 * docs/font_char_metrics.txt: Likewise.
13456 * docs/grub-dev.texi: Likewise.
13457 * docs/grub.texi (Internals): Move from here ...
13458 * docs/grub-dev.texi: ... here.
13459
13460 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13461
13462 Store the loopback device as data on loopback grub_disk structures,
13463 rather than the file it points to. This fixes use of freed memory
13464 if an existing loopback device is replaced.
13465
13466 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
13467 disk->data, not dev->file.
13468 (grub_loopback_read): Adjust file assignment to match.
13469 Fixes Ubuntu bug #742967.
13470
13471 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13472
13473 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
13474 when replacing an existing device.
13475
13476 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
13477
13478 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
13479 memory corruptions.
13480
13481 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
13482 unsigned.
13483 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
13484 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
13485 (grub_jfs_read_inode): Likewise.
13486 (grub_jfs_opendir): Likewise. Remove now useless casts.
13487 (grub_jfs_getent): Likewise.
13488 Make ino a grub_uint32_t rather than int.
13489 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
13490 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
13491 division and module with bit operations.
13492 (grub_jfs_find_file): Make ino a grub_uint32_t.
13493 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
13494
13495 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13496
13497 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
13498 warning. (This was in fact always initialised before use, but GCC
13499 wasn't smart enough to prove that.)
13500 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13501
13502 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
13503
13504 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
13505 stack alignment.
13506 (efi_wrap_1): Likewise.
13507 (efi_wrap_2): Likewise.
13508 (efi_wrap_3): Likewise.
13509 (efi_wrap_4): Likewise.
13510 (efi_wrap_5): Likewise.
13511 (efi_wrap_6): Likewise.
13512 (efi_wrap_10): Likewise.
13513 Based on information by: Red Hat/Peter Jones.
13514
13515 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13516
13517 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
13518 set-but-not-used variable.
13519
13520 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13521
13522 * docs/grub.texi (Simple configuration): Be more explicit about
13523 GRUB_DEFAULT, and add an example.
13524 Reported by: Leslie Rhorer.
13525
13526 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13527
13528 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
13529 shell".
13530
13531 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13532
13533 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
13534 * util/grub.d/20_linux_xen.in: Likewise.
13535
13536 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13537
13538 * util/grub.d/10_linux.in: Try alternative config filenames where
13539 we parse config file.
13540 * util/grub.d/20_linux_xen.in: Likewise.
13541
13542 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13543
13544 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
13545 * util/grub.d/20_linux_xen.in: Likewise.
13546
13547 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13548
13549 * grub-core/disk/raid.c (insert_array): Add few potentially
13550 useful grub_util_info.
13551 (grub_raid_register): Likewise.
13552
13553 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13554
13555 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
13556 Preserve partition number in mdadm code path.
13557
13558 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13559
13560 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
13561 few potentially useful grub_util_info.
13562
13563 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13564
13565 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
13566
13567 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13568
13569 * docs/grub.texi (default): Use @example rather than nested
13570 itemized lists to avoid breaking gendocs.
13571
13572 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13573
13574 * docs/grub.texi (Future): Update.
13575
13576 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13577
13578 * docs/grub.texi (Environment): New chapter.
13579 (Changes from GRUB Legacy): Link to "Environment block" section for
13580 details of limitations.
13581 (Simple configuration): Likewise. Link to documentation of gfxmode
13582 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
13583 respectively.
13584 (Shell-like scripting): Note that normal variables are stored in the
13585 environment.
13586 (gettext): Link to documentation of lang and locale_dir.
13587 (list_env): New section.
13588 (load_env): New section.
13589 (save_env): New section.
13590
13591 (Reporting bugs): Fix typo.
13592
13593 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13594
13595 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
13596 the example.
13597
13598 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13599
13600 * grub-core/term/at_keyboard.c (set_scancodes)
13601 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
13602
13603 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13604
13605 * docs/grub.texi (Menu-specific commands): Remove some semantics
13606 that were true in GRUB Legacy but not in GRUB 2.
13607 (submenu): New section.
13608 (false): New section.
13609 (read): New section.
13610 (true): New section.
13611
13612 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13613
13614 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
13615
13616 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13617
13618 * docs/grub.texi (Simple configuration): Explain some of the
13619 current limitations of grub-mkconfig.
13620 Reported by: Leslie Rhorer.
13621
13622 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13623
13624 Old macs search for boot.efi rather than for bootia32.efi.
13625
13626 * util/grub-install.in: Copy bootia32.efi to boot.efi.
13627 * util/grub-mkrescue.in: Likewise.
13628 Suggested by: Peter Jones.
13629
13630 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13631
13632 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
13633
13634 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13635
13636 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
13637 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
13638 (grub_lvm_mirror): New struct.
13639 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
13640 (grub_lvm_iterate): Iterate only visible volumes.
13641 (grub_lvm_read): Factor out to ..
13642 (read_lv): ... this. Support mirrors.
13643 (grub_lvm_read): New wrapper function.
13644 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
13645 stripped or mirrored.
13646
13647 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13648
13649 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
13650
13651 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13652
13653 * docs/grub.texi (loopback): New section.
13654
13655 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13656
13657 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
13658 removed -p option.
13659
13660 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13661
13662 * docs/grub.texi (BIOS installation): New section, partly based on
13663 previous text in other sections.
13664 (Installing GRUB using grub-install): Replace BIOS discussion with a
13665 cross-reference.
13666 (Images): Likewise.
13667
13668 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13669
13670 * grub-core/kern/emu/hostdisk.c (find_partition_start)
13671 [HAVE_DIOCGDINFO]: Add safety checks.
13672
13673 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13674
13675 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
13676 per default compiled in kernel and prior to 8.0 isn't shipped at all.
13677
13678 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13679
13680 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
13681 real_sb->size is zero (e.g. RAID-0), get the disk size from
13682 real_sb->data_size instead.
13683 Fixes Ubuntu bug #743136.
13684
13685 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13686
13687 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
13688 printf clauses for printing size and start.
13689
13690 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13691
13692 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
13693 Reported and tested by: Timothy Nikkel.
13694
13695 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13696
13697 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
13698 (dirty_region_add_real): ... this.
13699 (dirty_region_add): Don't discard margin refresh when performing
13700 scheduled repaint.
13701
13702 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13703
13704 * grub-core/lib/relocator.c (allocate_regstart)
13705 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
13706 terminals are capabple of malloc-free operation.
13707 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13708 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13709
13710 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
13711
13712 * util/grub-setup.c: Copy the partition table zone if floppy support
13713 is disabled, even if no partition table is found.
13714
13715 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
13716 during POST if an invalid partition table is contained in the PBR
13717 of the active partition when GRUB is installed to a partition.
13718
13719 2011-03-28 Colin Watson <cjwatson@debian.org>
13720
13721 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
13722 comment.
13723
13724 2011-03-28 Colin Watson <cjwatson@debian.org>
13725
13726 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
13727 to be specific about what kind of RAID device we're scanning for.
13728
13729 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
13730
13731 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
13732 return freed string.
13733
13734 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13735
13736 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
13737
13738 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13739
13740 Use libgeom on FreeBSD to detect partitions.
13741
13742 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
13743 (grub-mkrelpath): Likewise.
13744 (grub-script-check): Likewise.
13745 (grub-editenv): Likewise.
13746 (grub-mkpasswd-pbkdf2): Likewise.
13747 (grub-fstest): Likewise.
13748 (grub-mkfont): Likewise.
13749 (grub-mkdevicemap): Likewise.
13750 (grub-probe): Likewise.
13751 (grub-setup): Likewise.
13752 (grub-ofpathname): Likewise.
13753 (grub-mklayout): Likewise.
13754 (example_unit_test): Likewise.
13755 (grub-menulst2cfg): Likewise.
13756 * grub-core/Makefile.core.def (grub-emu): Likewise.
13757 (grub-emu-lite): Likewise.
13758 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
13759 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
13760 define HAVE_DIOCGDINFO.
13761 (follow_geom_up) [FreeBSD]: New function.
13762 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
13763 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
13764 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
13765 unconditionally of HAVE_DIOCGDINFO.
13766
13767 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13768
13769 Fix FreeBSD compilation problem.
13770
13771 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
13772 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
13773
13774 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
13775
13776 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
13777 Switch back to page zero before loading a kernel, since some kernel
13778 drivers expect that.
13779 Thanks to: Felix Kuehling.
13780
13781 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13782
13783 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
13784 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
13785 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
13786
13787 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13788
13789 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
13790 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
13791
13792 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13793
13794 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
13795 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
13796 malloc is disabled.
13797
13798 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13799
13800 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
13801 for modules headers when counting the needed allocation size.
13802
13803 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13804
13805 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
13806 if no ASCII character is found to prevent crash.
13807
13808 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
13809
13810 * grub-core/video/bitmap.c (match_extension): Ignore case.
13811
13812 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13813
13814 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
13815
13816 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13817
13818 * grub-core/script/parser.y: Declare "time" as valid argument.
13819
13820 2011-03-23 Peter Jones <pjones@redhat.com>
13821
13822 Fix incorrect assert failure reporting.
13823
13824 * grub-core/tests/example_functional_test.c (example_test): Add
13825 a failure comment.
13826 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
13827 (failure_start): ...this. Check that malloc succeeded.
13828 Don't call xvasprintf. Return failure struct.
13829 (failure_append_vtext): New function.
13830 (failure_append_text): Likewise.
13831 (add_failure): Likewise.
13832 (grub_test_assert_helper): Likewise.
13833 * include/grub/test.h (grub_test_assert_helper): New declaration.
13834 (grub_test_assert): Macro rewritten.
13835
13836 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13837
13838 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
13839
13840 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13841
13842 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
13843
13844 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13845
13846 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
13847 into GRUB-style one.
13848
13849 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13850
13851 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
13852 error and not grub_errno.
13853 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
13854
13855 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13856
13857 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
13858 GRUB_USB_SPEED_NONE in case of failure and not the error code.
13859
13860 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13861
13862 * grub-core/efiemu/i386/pc/cfgtables.c
13863 (grub_machine_efiemu_init_tables): Make declaration a prototype.
13864 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
13865 (grub_xnu_unlock): Likewise.
13866 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
13867
13868 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13869
13870 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
13871 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
13872 * grub-core/commands/hashsum.c (aliases): Likewise.
13873 * grub-core/commands/setpci.c (pci_registers): Likewise.
13874 * grub-core/disk/usbms.c (attach_hook): Likewise.
13875 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
13876 (zio_checksum_table): Likewise.
13877 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
13878 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
13879 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
13880 * grub-core/lib/relocator.c (leftovers): Likewise.
13881 (extra_blocks): Likewise.
13882 * grub-core/loader/i386/bsd.c (relocator): Likewise.
13883 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
13884 (modules_last): Likewise.
13885 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
13886 (devices): Likewise.
13887 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
13888 (modules_last): Likewise.
13889 * grub-core/normal/auth.c (users): Likewise.
13890 * grub-core/normal/context.c (initial_menu): Likewise.
13891 (current_menu): Likewise.
13892 * grub-core/normal/crypto.c (crypto_specs): Likewise.
13893 * grub-core/term/serial.c (grub_serial_ports): Likewise.
13894 (grub_serial_terminfo_input_template): Likewise.
13895 (grub_serial_terminfo_output_template): Likewise.
13896 (grub_serial_terminfo_input): Likewise.
13897 (grub_serial_terminfo_output): Likewise.
13898 (registered): Likewise.
13899 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
13900
13901 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13902
13903 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
13904 grub_video_mode_type_t.
13905 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
13906 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
13907 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
13908
13909 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13910
13911 * util/grub-install.in: Correct the x86-64 name as x86_64.
13912
13913 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
13914
13915 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
13916 initial chunk read from the kernel always includes GRUB's multiboot
13917 header, which is now outside the first sector.
13918
13919 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
13920
13921 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
13922 cached mmap_size, so that this works correctly when called multiple
13923 times.
13924 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
13925
13926 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
13927
13928 * docs/grub.texi (Simple configuration): Tidy up formatting.
13929
13930 2011-03-07 Szymon Janc <szymon@janc.net.pl>
13931
13932 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
13933 Set-but-not-used variable removed.
13934
13935 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13936
13937 Workaround yet another IEEE1275 bug.
13938
13939 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
13940 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
13941 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
13942 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
13943 is set.
13944 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
13945 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
13946
13947 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13948
13949 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
13950 error.
13951
13952 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
13953
13954 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
13955 empty, since in that case we can only generate either nothing or a
13956 syntactically invalid configuration file.
13957 Reported by: Michal Suchanek. Fixes Debian bug #612898.
13958
13959 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
13960
13961 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
13962 (Making a GRUB bootable CD-ROM): Likewise.
13963 (Invoking grub-mkrescue): New section.
13964 Reported by: Yann Dirson. Fixes Debian bug #612585.
13965
13966 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
13967
13968 * util/grub-install.in: Remove unnecessary brackets from tr
13969 arguments.
13970 * util/grub.d/10_hurd.in: Likewise.
13971 * util/grub.d/10_kfreebsd.in: Likewise.
13972 * util/grub.d/10_linux.in: Likewise.
13973 * util/grub.d/20_linux_xen.in: Likewise.
13974 Reported by: Jamie Heilman. Fixes Debian bug #612564.
13975
13976 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
13977
13978 * include/grub/file.h (not_easly_seekable): Rename to ...
13979 (not_easily_seekable): ... this. Update all users.
13980
13981 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
13982
13983 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
13984 grub-mkrescue.
13985
13986 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13987
13988 * util/grub-mkimage.c (generate_image): Refuse to create the images
13989 bigger than the actual flash (512K) in Loongson machines. 512K is also
13990 the biggest chip supported by them.
13991
13992 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13993
13994 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
13995
13996 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
13997
13998 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
13999 super_offset field.
14000
14001 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14002
14003 * util/grub-install.in: Ignore install device on platforms
14004 where it doesn't make sense. Always use UUIDs except on pc, efi and
14005 sparc64.
14006 Reported by: Daniel Kahn Gillmor.
14007
14008 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14009
14010 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
14011
14012 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14013
14014 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
14015 (iterate_real): Don't rely on partition being non-NULL.
14016
14017 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14018
14019 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
14020 supported platforms. Put a compile time assert for this rather than
14021 generate a warning with 32-bit shift.
14022
14023 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14024
14025 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
14026 logical expression more readable.
14027
14028 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14029
14030 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
14031 even if some elements have a name.
14032 Reported by: Alexander GQ Gerasiov.
14033
14034 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
14035
14036 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
14037 path unreadable if `grub-probe -t abstraction' fails, for example if
14038 memberlist fails on an LVM volume group.
14039 Reported by: Darius Jahandarie.
14040
14041 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
14042
14043 * docs/grub.texi (Simple configuration): Document
14044 GRUB_PRELOAD_MODULES.
14045
14046 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
14047
14048 * .bzrignore: Remove nonexistent grub-pbkdf2.
14049
14050 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
14051
14052 * configure.ac: Bump version to 1.99~rc1.
14053
14054 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
14055
14056 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
14057 for safety.
14058
14059 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14060
14061 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
14062 module.
14063
14064 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14065
14066 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
14067
14068 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14069
14070 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
14071 diskdevid.
14072
14073 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14074
14075 Fix compilation on cygwin.
14076
14077 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
14078 -R .drectve on cygwin.
14079 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
14080 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
14081 (COND_CYGWIN): New condition.
14082 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
14083 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
14084 not @TARGET_OBJ2ELF@.
14085 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
14086 type to determine whether aux is to be used.
14087
14088 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14089
14090 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
14091 realpath'ed device string.
14092 Handle floppy (somewhat).
14093 Issue error in unknown case rather than garbage.
14094 Reported by: Axel Beckert.
14095
14096 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14097
14098 * util/grub.d/00_header.in (load_video): Handle the case when no video
14099 drivers available.
14100 Thanks to: Axel Beckert.
14101
14102 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14103
14104 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
14105 variable. Fixes problem on big endian platforms.
14106
14107 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14108
14109 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
14110 It doesn't work well there.
14111
14112 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14113
14114 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
14115 warning.
14116 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
14117 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
14118 counter.
14119
14120 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14121
14122 Use alias->path rather than buggy "canon".
14123
14124 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
14125 (ofdisk_hash_add): New argument curcan. All users updated.
14126
14127 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
14128
14129 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
14130
14131 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14132
14133 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
14134 loadmask before doing any calculations. Use correct type for offset.
14135 (grub_linux_load64): Likewise.
14136
14137 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
14138
14139 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
14140 with NULL.
14141 (console_grub_equivalences_unshift): Likewise.
14142 Reported by: Daniel Dehennin.
14143
14144 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14145
14146 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
14147 (set_env_limn_ro): Likewise.
14148 (GRUB_MOD_INIT): Likewise.
14149 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
14150 ARRAY_SIZE while on it.
14151 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
14152 * grub-core/normal/context.c (grub_env_export): Move from here ...
14153 * grub-core/kern/env.c (grub_env_export): ... here.
14154 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
14155 prefix.
14156 * grub-core/kern/main.c (grub_main): Export root and prefix.
14157 * include/grub/env.h (grub_env_export): Export.
14158 Reported by: Seth Goldberg.
14159
14160 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14161
14162 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14163 Take into account space used by ELF sections and multiboot palette.
14164 Reported by: Grégoire Sutre.
14165
14166 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14167
14168 * BUGS: New file.
14169
14170 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14171
14172 Pass more appropriate video id to Linux.
14173
14174 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
14175 grub_video_get_driver_id and variable gfxpayloadforcelfb to
14176 fill have_vga.
14177 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
14178 shift params->lfb_size.
14179 * include/grub/i386/linux.h: Make an enume out of have_vga values.
14180
14181 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14182
14183 * util/grub-menulst2cfg.c: Add missing include of misc.h.
14184
14185 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14186
14187 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
14188 separator and pass bootpath/devid even if only one of them is available.
14189 Reported by: Seth Goldberg.
14190
14191 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14192
14193 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
14194 implementations bug on them.
14195
14196 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
14197 memory.
14198 (filter_memory_map): Likewise.
14199
14200 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14201
14202 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
14203 Reported by: nebuchadnezzar.
14204
14205 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14206
14207 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
14208 Reported by: nebuchadnezzar.
14209
14210 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14211
14212 Submenu default support.
14213
14214 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
14215 auto_boot. All users updated.
14216 Declared static.
14217 Handle chosen and default with submenus.
14218 (grub_menu_execute_with_fallback): Declared static.
14219 Don't notify failure if autobooted. Upper level does it.
14220 (menuentry_eq): New function.
14221 (get_entry_number): Use menuentry_eq.
14222 (show_menu): New parameter "autobooted". All users updated.
14223 (grub_show_menu): Likewise.
14224 * include/grub/normal.h (grub_show_menu): Likewise.
14225 * include/grub/menu.h (grub_menu_execute_entry): Removed.
14226 (grub_menu_execute_with_fallback): Likewise.
14227
14228 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14229
14230 * util/grub-mklayout.c (usage): Update help text.
14231
14232 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14233
14234 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
14235
14236 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14237
14238 * util/grub-menulst2cfg.c (main): Trim the line.
14239
14240 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14241
14242 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
14243 (grub_machine_init): Don't check amount of low memory as reportedly
14244 INT 12h can be broken and if low memory is too low we wouldn't have
14245 gotten into grub_machine_init anyway.
14246
14247 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14248
14249 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
14250 (grub_machine_mmap_iterate): Take low memory into account
14251
14252 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14253
14254 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
14255 badfs.
14256 Reported by: TiCPU.
14257
14258 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14259
14260 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
14261 members errors.
14262
14263 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14264
14265 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
14266 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
14267
14268 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14269
14270 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
14271 openbsd and netbsd types being in part_bsd module.
14272
14273 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14274
14275 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
14276 (_FILE_OFFSET_BITS): Likewise.
14277 Reported by: Seth Goldberg.
14278
14279 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
14280
14281 * configure.ac: Check for libdevmapper header.
14282
14283 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14284
14285 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
14286 avoid aliasing.
14287 (fzap_lookup): Likewise.
14288 (dnode_get): Likewise.
14289 (make_mdn): Likewise.
14290 (zfs_mount): Likewise.
14291 (fzap_iterate): Use temporary pointer to avoid aliasing.
14292 (grub_zfs_read): Likewise.
14293 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
14294 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
14295 pointers to avoid aliasing.
14296 (grub_cmd_xnu_kernel64): Likewise.
14297 (grub_xnu_load_driver): Likewise.
14298
14299 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14300
14301 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
14302 aliasing warning.
14303 (grub_cmd_terminal_output): Likewise.
14304 Reported and tested by: Grégoire Sutre.
14305
14306 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14307
14308 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
14309 warning.
14310 Reported and tested by: Grégoire Sutre.
14311
14312 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14313
14314 * configure.ac: Do CPU substitution even if it's specified explicitly.
14315 Reported and tested by: Alain Greppin.
14316
14317 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14318
14319 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
14320 Reported and tested by: Alain Greppin.
14321
14322 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14323
14324 Satisfy some bison versions need for inttypes.h.
14325
14326 * grub-core/lib/posix_wrap/inttypes.h: New file.
14327 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
14328 (int16_t): Likewise.
14329 (int32_t): Likewise.
14330 (int64_t): Likewise.
14331 Reported and tested by: Alain Greppin.
14332
14333 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14334
14335 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
14336 Silence spurious warning.
14337 Reported and tested by: Alain Greppin.
14338
14339 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14340
14341 * docs/grub.texi (Support automatic decompression): Update with xz
14342 decompression support.
14343
14344 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14345
14346 Improve loaders' kernel command line handling.
14347
14348 * grub-core/lib/cmdline.c: New file.
14349 * include/grub/lib/cmdline.h: Likewise.
14350 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
14351 grub_create_loader_cmdline to create kernel command line.
14352 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14353 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
14354 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
14355 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
14356 (linux): Add lib/cmdline.c on common.
14357
14358 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14359
14360 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
14361 inopos might be unaligned.
14362
14363 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14364
14365 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
14366 endian transformations.
14367 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14368 Based on report by: Doug Nazar.
14369
14370 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
14371
14372 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
14373 array->members[i].start_sector.
14374 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
14375
14376 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14377
14378 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
14379 Reported and tested by: Grégoire Sutre.
14380
14381 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14382
14383 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
14384 avoid causing test failures by clearing the screen.
14385
14386 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14387
14388 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
14389 Fix prefix check to handle the case where dir ends with a slash
14390 (most significantly, "/" itself).
14391 Reported by: Michael Vogt.
14392
14393 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14394
14395 Run terminfo_cls on initing terminfo output to clear the screen and
14396 move the cursor to (0,0).
14397
14398 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
14399 Call grub_terminfo_output_init.
14400 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
14401 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
14402 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
14403
14404 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14405
14406 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
14407 only when needed.
14408
14409 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14410
14411 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
14412 CTRL.
14413
14414 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14415
14416 The E820 type 5 is BADRAM, not EXEC_CODE.
14417
14418 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14419 (GRUB_E820_BADRAM): New define.
14420 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
14421 into reserved. Propagate BADRAM.
14422 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14423 (GRUB_E820_BADRAM): New define.
14424
14425 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14426
14427 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
14428 Ignore the memory post-4G.
14429 (grub_relocator_firmware_alloc_region): Additional debug statement.
14430
14431 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14432
14433 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
14434 names.
14435 Reported by: David Pravec.
14436
14437 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14438
14439 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
14440 BIOSes.
14441
14442 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14443
14444 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
14445 Prevent overflow.
14446 (grub_reed_solomon_recover): Likewise.
14447
14448 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14449
14450 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
14451
14452 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14453
14454 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
14455 variable.
14456
14457 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
14458
14459 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
14460 descriptions of extract_legacy_entries_source and
14461 extract_legacy_entries_configfile.
14462 Reported by: Seung Soo, Ha.
14463
14464 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
14465
14466 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
14467 on devices that do not implement function 0.
14468
14469 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
14470
14471 * grub-core/fs/hfsplus.c: Make parent unsigned.
14472 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
14473 overflows.
14474 (grub_hfsplus_cmp_extkey): Likewise
14475
14476 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14477
14478 * util/grub-install.in: Correctly use bootloader_id and not
14479 GRUB_DISTRIBUTOR on efibootmgr line.
14480
14481 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14482
14483 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
14484
14485 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
14486
14487 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
14488 Xen and reorder menu item wording to make it clearer that this entry
14489 will launch Xen. Print separate messages when loading Xen and
14490 Linux.
14491
14492 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14493
14494 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
14495 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
14496 loop in case of incorrect amiga partmap.
14497
14498 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14499
14500 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
14501 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
14502 Reported by:EHeM.
14503
14504 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14505
14506 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
14507 spurious warning.
14508 Reported by: crocket
14509
14510 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14511
14512 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
14513 Preload EFIemu.
14514 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
14515
14516 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14517
14518 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
14519 is loaded
14520 (grub_cmd_xnu_kextdir): Likewise.
14521 (grub_cmd_xnu_splash): Likewise.
14522
14523 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14524
14525 Avoid using Reed-Solomon with 0 redundancy.
14526
14527 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
14528 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
14529 or 0 redundancy.
14530 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
14531 (grub_reed_solomon_recover): Likewise.
14532
14533 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14534
14535 Don't use disk subsystem in freebsd_boot.
14536
14537 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
14538 (freebsd_biosdev): Likewise.
14539 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
14540 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
14541
14542 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14543
14544 Handling of files of unknown size is currently limited. They can't be
14545 used e.g. for initrd or modules. Moreover gzip handling of not
14546 easily seekable files is buggy. Disable unknown file size for now. May
14547 be inefficient but works.
14548
14549 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
14550 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
14551
14552 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
14553
14554 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
14555 floppy probe.
14556
14557 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
14558
14559 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
14560
14561 2010-12-25 Shea Levy <shlevy>
14562
14563 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
14564
14565 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14566
14567 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
14568 Windows Server 2008.
14569 Reported by: Devin Giddings.
14570
14571 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14572
14573 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
14574 writing an error message because of async power management.
14575 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
14576 (grub_reboot): Likewise.
14577
14578 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
14579
14580 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
14581 keep unit tests from failing when they shouldn't.
14582
14583 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14584
14585 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
14586 previous patch increased the size of the RS code by 20 bytes (at
14587 least with gcc-4.4), so increase this by 20 bytes to match.
14588 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14589
14590 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14591
14592 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
14593 scratch area. Make sure to initialise chosen in standalone mode as
14594 well as non-standalone.
14595 Reported by: Robert Hooker and Andy Whitcroft.
14596 Tested by: Andy Whitcroft.
14597
14598 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14599
14600 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
14601 constructing a new unescaped string and passing it to grub_xputs in
14602 one go, rather than passing characters to grub_printf one at a time.
14603
14604 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14605
14606 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
14607 initialising utf16.
14608
14609 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14610
14611 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
14612 comment. Add an extra layer of quotation, requiring the output of
14613 this function to be used in a printf format string.
14614 (gettext_printf): New function.
14615 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
14616 Extract translatable strings from here-documents and use a temporary
14617 variable instead, so that xgettext can find them.
14618 * util/grub.d/10_kfreebsd.in: Likewise.
14619 * util/grub.d/10_linux.in: Likewise.
14620 * util/grub.d/20_linux_xen.in: Likewise.
14621
14622 * po/grub.d.sed: New file.
14623 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
14624 arguments. Set c-format flags on all strings extracted from
14625 util/grub.d/ (xgettext refuses to include these itself for strings
14626 it extracted from a shell file, but these really are c-format).
14627
14628 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14629
14630 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
14631 Avoid next pointing to nowhere.
14632
14633 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14634
14635 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
14636 rather than assuming than rootblock is exactly in the middle.
14637 (grub_affs_label): Likewise.
14638
14639 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14640
14641 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
14642 reserved_first_sector to 0.
14643 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
14644 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
14645 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
14646
14647 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14648
14649 Fix handling of UTF-16 UDF labels.
14650
14651 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
14652 (read_string): .. here.
14653 (grub_udf_label): Use read_string.
14654
14655 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
14656
14657 * grub-core/normal/menu_entry.c (run): Execute commands from menu
14658 editor under argument scope.
14659 Reported by: Jordan Uggla
14660
14661 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14662
14663 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
14664
14665 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
14666
14667 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
14668 line, and other keys scroll an entire page (previous handling was
14669 for \r and \n to scroll a page and other keys to scroll two lines).
14670
14671 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14672
14673 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14674 Set ptrdest to correct get_physical_target_address rather than
14675 incorrect get_virtual_current_address.
14676
14677 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
14678
14679 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
14680 correct cat to grub_uint8_t * rather than grub_uint32_t *.
14681
14682 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14683
14684 * .bzrignore: Ignore grub-core/rs_decoder.S.
14685
14686 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14687
14688 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
14689 .mo/.mo.gz opening sequence to ...
14690 (grub_mofile_open_lang): ... here.
14691 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
14692 * util/grub.d/00_header.in (grub_lang): Include country part of
14693 locale.
14694 Reported by: Mario Limonciello.
14695
14696 2010-12-09 Robert Millan <rmh@gnu.org>
14697
14698 * NEWS: Document addition of ZFS support.
14699
14700 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
14701
14702 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
14703 rather than `/ 2', as the latter requires -Wa,--divide which would
14704 require bumping our minimum binutils version.
14705
14706 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
14707
14708 * util/grub-script-check.c (main): Print script line number on
14709 error.
14710
14711 2010-12-01 Robert Millan <rmh@gnu.org>
14712
14713 * grub-core/fs/zfs/zfs.c: New file.
14714 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
14715 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
14716 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
14717 * grub-core/fs/zfs/zfsinfo.c: Likewise.
14718
14719 * include/grub/zfs/dmu.h: Likewise.
14720 * include/grub/zfs/dmu_objset.h: Likewise.
14721 * include/grub/zfs/dnode.h: Likewise.
14722 * include/grub/zfs/dsl_dataset.h: Likewise.
14723 * include/grub/zfs/dsl_dir.h: Likewise.
14724 * include/grub/zfs/sa_impl.h: Likewise.
14725 * include/grub/zfs/spa.h: Likewise.
14726 * include/grub/zfs/uberblock_impl.h: Likewise.
14727 * include/grub/zfs/vdev_impl.h: Likewise.
14728 * include/grub/zfs/zap_impl.h: Likewise.
14729 * include/grub/zfs/zap_leaf.h: Likewise.
14730 * include/grub/zfs/zfs.h: Likewise.
14731 * include/grub/zfs/zfs_acl.h: Likewise.
14732 * include/grub/zfs/zfs_znode.h: Likewise.
14733 * include/grub/zfs/zil.h: Likewise.
14734 * include/grub/zfs/zio.h: Likewise.
14735 * include/grub/zfs/zio_checksum.h: Likewise.
14736
14737 * Makefile.util.def: Build ZFS into libgrubmods.
14738 * grub-core/Makefile.core.def: Build zfs.mod.
14739
14740 2010-11-30 Szymon Janc <szymon@janc.net.pl>
14741
14742 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
14743 variable.
14744 * grub-core/commands/wildcard.c (match_files): Likewise.
14745
14746 2010-11-30 Robert Millan <rmh@gnu.org>
14747
14748 * grub-core/loader/i386/bsd.c
14749 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
14750 whether kernel is loaded using grub_loader_is_loaded(), rather
14751 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
14752 certain error conditions.
14753
14754 2010-11-30 Robert Millan <rmh@gnu.org>
14755
14756 * grub-core/commands/echo.c: Include `<grub/term.h>'.
14757 (grub_cmd_echo): Call grub_refresh() after printing a message.
14758
14759 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14760
14761 Avoid using tricks for initialising endian variables.
14762
14763 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
14764 Make const.
14765 (GRUB_MOD_INIT): Don't byte-swap.
14766 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14767 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
14768 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
14769 (grub_swap_bytes32_compile_time): Likewise.
14770 (grub_cpu_to_le32_compile_time): Likewise.
14771 (grub_cpu_to_le16_compile_time): Likewise.
14772
14773 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14774
14775 * util/grub-setup.c (setup): Stop recommending --force. People who
14776 understand the dangers of blocklists are able to find this option
14777 anyway and the ones who don't shouldn't use it anyway.
14778
14779 2010-11-26 Robert Millan <rmh@gnu.org>
14780
14781 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
14782 Update all users.
14783
14784 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
14785
14786 Fix LVM-on-RAID probing.
14787
14788 * util/grub-probe.c (probe): Remember which disk was detected as
14789 RAID (perhaps an LVM physical volume). Use that disk's raidname
14790 rather than that of the top-level disk.
14791
14792 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
14793
14794 Fix cmdline argument quotes for setparams command of menuentry
14795 definitions.
14796
14797 * grub-core/commands/menuentry.c (setparams_prefix): Use single
14798 quotes for arguments.
14799 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
14800 grub_strchrsub function instead.
14801
14802 * include/grub/misc.h (grub_strchrsub): New function.
14803
14804 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14805
14806 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
14807 effort by skipping "." and ".." entries up-front.
14808 Suggested by: Michael Lazarev.
14809
14810 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14811
14812 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
14813 ldflags to ldadd, to fix link line ordering.
14814 (none_decompress): Likewise.
14815
14816 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14817
14818 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
14819 platforms.
14820 (grub-emu-lite): Remove kern/emu/cache.S.
14821
14822 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14823
14824 * util/deviceiter.c (compare_devices): If the by-id link for a
14825 device couldn't be resolved, fall back to sorting by the by-id link
14826 rather than segfaulting.
14827 Reported and tested by: Daniel Mierswa.
14828
14829 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14830
14831 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
14832 ldflags, to fix link line ordering.
14833
14834 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14835
14836 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
14837 linkers are picky about this.
14838
14839 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14840
14841 * grub-core/Makefile.am (command.lst): Adjust sed expression
14842 ordering so that extended and priority commands aren't treated as
14843 ordinary commands.
14844
14845 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14846
14847 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14848 Remove byte-swapping function calls, which are not valid in
14849 structure initialisers.
14850 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
14851 non-const.
14852 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
14853 grub_gpt_partition_type_bios_boot.
14854
14855 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14856
14857 Fix test program build on GNU/kFreeBSD.
14858
14859 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
14860 $(LIBNVPAIR)' library dependencies.
14861
14862 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14863
14864 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
14865
14866 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14867
14868 * util/grub-install.in: Remove excessive quoting that broke
14869 installations to RAID devices.
14870
14871 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14872
14873 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
14874 bootloader version instead of 0.
14875
14876 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14877
14878 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
14879 warning.
14880
14881 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14882
14883 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
14884 retrieve the metadat sector if size isn't known.
14885 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14886
14887 2010-11-18 Robert Millan <rmh@gnu.org>
14888
14889 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
14890 with grub_memcmp().
14891
14892 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
14893
14894 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
14895 arrow.
14896 Reported by: Jordan Uggla.
14897
14898 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14899
14900 Make better UTF compliant.
14901
14902 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
14903 sequences as incorrect.
14904 (grub_is_valid_utf8): Likewise.
14905 (grub_utf8_to_ucs4): Likewise.
14906 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
14907 (grub_ucs4_to_utf8_alloc): Likewise.
14908 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
14909
14910 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14911
14912 Make legacy_source behave like source.
14913
14914 * grub-core/commands/legacycfg.c (legacy_file): Don't call
14915 grub_show_menu.
14916 (grub_cmd_legacy_source): Call grub_show_menu if needed.
14917
14918 2010-11-16 Colin Watson <cjwatson@debian.org>
14919
14920 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
14921 (-Wunused implies -Wunused-parameter, but not vice versa).
14922
14923 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
14924
14925 * configure.ac: Make error messages less confusing by testing for
14926 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
14927 accepted, but produces a diagnostic if something else is wrong).
14928
14929 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14930
14931 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
14932 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
14933 (now unused).
14934 (grub_keyboard_controller_init)
14935 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
14936 read the initial state since controller isn't inited yet.
14937
14938 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14939
14940 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
14941 allocate_regbeg may need to create new chunk header.
14942
14943 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14944
14945 Fix quoting in legacy parser.
14946
14947 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
14948 single quotes.
14949 (grub_legacy_parse): Likewise.
14950 Reported by: Jordan Uggla.
14951 Tested by: Jordan Uggla.
14952
14953 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14954
14955 Don't add -lgcc on i386 and x86_64.
14956
14957 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
14958 * conf/Makefile.common (LDADD_KERNEL): Likewise.
14959 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
14960
14961 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14962
14963 * configure.ac: Add -Wno-trampolines when supported.
14964
14965 2010-11-14 Modestas Vainius <modax@debian.org>
14966
14967 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
14968 fakeraid.
14969
14970 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14971
14972 Add generic logical block size support for UDF.
14973
14974 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
14975 (GRUB_UDF_BLKSZ): Removed.
14976 (struct grub_udf_data): New field "lbshift" to hold the logical block
14977 size of the file system in log2 format. All users updated.
14978 (sblocklist): Change type to unsigned.
14979 (grub_udf_mount): Change type of "sblklist" to unsigned.
14980 Move AVDP search before VRS recognition, because the latter requires
14981 knowledge of the logical block size, which is detected during the
14982 former.
14983 Detect and validate logical block size during AVDP search, adding
14984 support for block sizes 512, 1024 and 4096.
14985 Make VRS recognition independent of block size.
14986
14987 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14988
14989 Properly handle deleted files on UDF.
14990
14991 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
14992 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
14993 set.
14994
14995 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14996
14997 Support reading files larger than 2 GiB.
14998
14999 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
15000 "offset" to grub_off_t.
15001 (grub_udf_read_file): Likewise for parameter "pos".
15002
15003 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15004
15005 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
15006 unavailable.
15007 (Simple configuration): Refer to Changes from GRUB Legacy about
15008 save_env availability.
15009
15010 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15011
15012 * util/grub-install.in: Ignore empty partition table detection
15013 instead of trying to include part_ module.
15014
15015 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15016
15017 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
15018 LVM on RAID support.
15019
15020 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15021
15022 Properly define WORDS_BIGENDIAN in wrapped environments.
15023
15024 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
15025 definition.
15026 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
15027
15028 Reported by: Manoel Rebelo Abranches.
15029 Tested by: Manoel Rebelo Abranches.
15030
15031 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15032
15033 * util/grub-mkconfig.in: Fix quoting.
15034
15035 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15036
15037 Support big ext2 files.
15038
15039 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
15040 (grub_ext2_read_block): Support triple indirect blocks.
15041 (grub_ext2_read_file): Use 64-bit types and read size_high.
15042 (grub_ext2_open): Read size_high.
15043 Reported by: Ximin Luo.
15044 Tested by: Manoel Rebelo Abranches.
15045
15046 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15047
15048 * util/grub-install.in: Handle filenames containing spaces.
15049 Reported by: Jordan Uggla.
15050 Tested by: Jordan Uggla.
15051
15052 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15053
15054 * util/grub-mkconfig.in (grub_script_check): New variable.
15055 Use grub_script_check instead of grub-script-check.
15056 Reported by: Barry Jackson.
15057
15058 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15059
15060 * docs/grub.texi (menu): Correct the order.
15061 Reported by: D. Hugh Redelmeier.
15062
15063 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15064
15065 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
15066 jump.
15067
15068 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
15069
15070 * include/grub/elfload.h (grub_elf32_size): New parameter.
15071 All users updated.
15072 Return maximum segments alignment.
15073 (grub_elf64_size): Likewise.
15074 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
15075 Return maximum segments alignment.
15076 (grub_elf64_size): Likewise.
15077 * grub-core/loader/powerpc/ieee1275/linux.c:
15078 (grub_linux_claimmap_iterate): New function. Uses the
15079 "available" property in the "memory" node for memory allocation
15080 for kernel in the PowerPC loader.
15081 (grub_linux_load32): Correctly find linux entry point offset.
15082 (grub_linux_load64): Likewise.
15083
15084 2010-11-07 Robert Millan <rmh@gnu.org>
15085
15086 On mips-yeeloong, build with -march=loongson2f when this flag is
15087 available (GCC >= 4.4).
15088 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
15089 `-march=mips3'.
15090 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
15091 or otherwise add -march=mips3.
15092
15093 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
15094
15095 Suppress shell expansion on echo '*' and echo "*" like cases.
15096 Reported by: Jordan Uggla.
15097
15098 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
15099 string arguments before shell expansion.
15100 * tests/grub_cmd_echo.in: New testcases.
15101
15102 2010-11-07 Robert Millan <rmh@gnu.org>
15103
15104 * conf/mips-qemu-mips.rmk: Remove stale file from previous
15105 transition.
15106
15107 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
15108
15109 * grub-core/kern/emu/hostdisk.c
15110 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
15111
15112 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15113
15114 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
15115 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
15116 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
15117
15118 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15119
15120 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
15121
15122 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15123
15124 * util/grub-install.in: Replace useless recomendation to pass
15125 --modules with a recomendation to report a bug.
15126
15127 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15128
15129 Properly register serial terminfo.
15130 Reported by: Jordan Uggla
15131
15132 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
15133 const.
15134 (grub_serial_terminfo_output_template): Likewise.
15135 (grub_cmd_serial): Register "serial" with terminfo.
15136 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
15137 grub_serial_terminfo_output.
15138
15139 2010-11-05 Robert Millan <rmh@gnu.org>
15140
15141 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
15142 needed).
15143
15144 2010-11-05 Robert Millan <rmh@gnu.org>
15145
15146 On Yeeloong, pass machine type information to Linux.
15147
15148 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
15149 (LOONGSON_MACHTYPE): New macro, set to
15150 "machtype=lemote-yeeloong-2f-8.9inches".
15151 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
15152 additional argument to Linux.
15153
15154 2010-11-04 Robert Millan <rmh@gnu.org>
15155
15156 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
15157 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
15158 (its SATA disks are detected as slaveless IDE master drives on
15159 kFreeBSD).
15160 Reported by Carsten Aulbert.
15161
15162 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
15163
15164 * util/bin2h.c (main): Fix spelling error in generated output.
15165
15166 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
15167
15168 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
15169
15170 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15171
15172 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
15173 vga= option is supplied.
15174
15175 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15176
15177 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
15178 * util/grub.d/10_kfreebsd.in: Likewise.
15179 * util/grub.d/10_linux.in: Likewise.
15180 * util/grub.d/20_linux_xen.in: Likewise.
15181
15182 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15183
15184 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
15185 argument as an argument to no-argument option.
15186
15187 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15188
15189 * util/grub.d/10_linux.in: Add missing load_video with explicit
15190 GRUB_GFXPAYLOAD_LINUX.
15191
15192 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15193
15194 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
15195
15196 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15197
15198 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
15199 elements with invlid index.
15200 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15201 * grub-core/disk/raid.c (insert_array): Automatically reallocate
15202 members.
15203 * include/grub/raid.h (grub_raid_member): New struct.
15204 (grub_raid_array): Transform devices and start_sector into usage of
15205 grub_raid_member. All users updated
15206 (allocated_devs): New member.
15207
15208 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15209
15210 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
15211 is modified
15212
15213 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
15214
15215 NetBSD build fix for getline function conflict from gnulib.
15216
15217 * Makefile.util.def (libgrubkern.a): New library for grub kernel
15218 components that depend on gnulib headers.
15219 (libgrubmods.a): Renamed from earlier libgrub.a.
15220 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
15221
15222 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15223
15224 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
15225 install rather than creating a broken install.
15226
15227 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15228
15229 * util/grub-setup.c (argp): Remove misleading example of installing to
15230 a partition.
15231
15232 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15233
15234 * util/grub-setup.c (setup): Clarify the error message.
15235
15236 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15237
15238 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
15239
15240 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15241
15242 * grub-core/kern/emu/misc.c
15243 (grub_make_system_path_relative_to_its_root)
15244 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
15245
15246 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15247
15248 * grub-core/kern/emu/misc.c
15249 (grub_make_system_path_relative_to_its_root): Revert r2882.
15250
15251 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
15252
15253 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
15254 useless field head. All users updated.
15255 (free_subchunk): Correct handling of IN_REGION subchunk.
15256
15257 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
15258
15259 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
15260 (Supported kernels): Likewise.
15261
15262 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
15263
15264 Make mktemp invocations portable.
15265
15266 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
15267 exit if mktemp fails.
15268 * tests/grub_script_blockarg.in: Likewise.
15269 * tests/partmap_test.in: Likewise.
15270 * tests/util/grub-shell-tester.in: Likewise.
15271 * tests/util/grub-shell.in: Likewise.
15272 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15273 * Makefile.am: Likewise, and chain shell commands with `&&'
15274 instead of ';'.
15275 * util/grub-mkrescue.in: Use the same explicit template as above, and
15276 exit if mktemp fails.
15277
15278 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
15279
15280 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
15281 Linux kernel, reported by Dennis Schridde.
15282
15283 2010-10-17 Szymon Janc <szymon@janc.net.pl>
15284
15285 * grub-core/normal/auth.c (grub_auth_check_authentication):
15286 Set-but-not-used variable removed.
15287
15288 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15289
15290 * docs/grub.texi (GNU/Linux): Document APM unavailability with
15291 32-bit linux protocol.
15292
15293 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15294
15295 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
15296 cursor shape for sanity.
15297
15298 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15299
15300 * docs/grub.texi (Installation): Document buggy BIOS install.
15301
15302 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15303
15304 * docs/grub.texi (Installation): Indent.
15305
15306 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15307
15308 * util/grub-setup.c (setup): New parameter allow_floppy.
15309 (arguments): New member allow_floppy.
15310 (argp_parser): Handle --allow-floppy.
15311 (main): Pass allow_floppy.
15312 * util/grub-install.in: New option --allow-floppy passed though to
15313 grub-setup.
15314
15315 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15316
15317 * util/grub-install.in: Handle partitionless disks.
15318
15319 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15320
15321 * util/grub-setup.c (setup): Don't clean blocklists before readability
15322 verfification.
15323
15324 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15325
15326 * docs/grub.texi (Installation): Document embedding zone. Remove
15327 obsolete grub-install example.
15328
15329 2010-10-16 Szymon Janc <szymon@janc.net.pl>
15330
15331 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
15332 Set-but-not-used variable ifdef'ed.
15333 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
15334 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
15335 variable removed.
15336 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
15337 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
15338 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
15339 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
15340 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
15341 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
15342 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
15343 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
15344 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
15345 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
15346 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
15347 Likewise.
15348
15349 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15350
15351 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
15352 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
15353 enum value.
15354
15355 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15356
15357 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
15358 synonym to _S5_. Needed for some DSDTs.
15359
15360 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15361
15362 Userspace ACPI parser debugging.
15363
15364 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
15365 headers and add relevant defines. Don't include standard headers.
15366 (main) [GRUB_DSDT_TEST]: New function.
15367 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
15368 Don't declare functions.
15369
15370 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15371
15372 Remove dead grub_efi_mm_fini.
15373
15374 * grub-core/kern/efi/mm.c (allocated_page): Removed.
15375 (ALLOCATED_PAGES_SIZE): Likewise.
15376 (MAX_ALLOCATED_PAGES): Likewise.
15377 (allocated_pages): Likewise.
15378 (grub_efi_allocate_pages): Don't record allocated pages.
15379 (grub_efi_free_pages): Likewise.
15380 (grub_efi_mm_init): Likewise.
15381 (grub_efi_mm_fini): Removed.
15382
15383 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15384
15385 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
15386 (grub_efi_mm_init): Take into account the memory map size increase.
15387
15388 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15389
15390 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
15391 (serial_hw_put): Wait based on real time rather than port reads. Don't
15392 roken ports.
15393 * include/grub/serial.h (grub_serial_port): New field broken.
15394
15395 2010-10-16 Robert Millan <rmh@gnu.org>
15396
15397 * grub-core/kern/emu/misc.c
15398 (grub_make_system_path_relative_to_its_root): Fix premature return
15399 when processing non-root ZFS filesystems.
15400 Reported by Sergio Talens-Oliag.
15401
15402 2010-10-15 Robert Millan <rmh@gnu.org>
15403
15404 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
15405 guarantee compressed ones are processed first.
15406
15407 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15408
15409 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
15410 grub_efiemu_autocore.
15411
15412 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15413
15414 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
15415 rather than 0x1b.
15416 (grub_console_getkey): Use correct jae opcode rather than ja.
15417
15418 2010-10-12 Robert Millan <rmh@gnu.org>
15419
15420 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
15421 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
15422 variable. All references updated.
15423
15424 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
15425
15426 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
15427
15428 Correctly distinguish mdraid flavours.
15429
15430 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
15431 (insert_array): New argument raid.
15432 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
15433 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
15434 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
15435
15436 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
15437
15438 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
15439 handling of special keys.
15440
15441 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15442
15443 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
15444 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
15445
15446 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15447
15448 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
15449 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
15450 users updated.
15451 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
15452 Use right endpoint when querying descriptor.
15453
15454 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15455
15456 Clear out 0x80 color bit on EFI.
15457 Tested by: decoder
15458 Reported by: decoder and meta tech.
15459
15460 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
15461 (grub_console_setcolorstate): Clear out 0x80 bit.
15462 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
15463 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
15464 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
15465
15466 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15467
15468 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
15469 Set to "auto".
15470
15471 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15472
15473 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
15474 mo_file after freeing.
15475
15476 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15477
15478 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
15479
15480 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15481
15482 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
15483 flags.
15484
15485 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15486
15487 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
15488 usage.
15489
15490 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15491
15492 Put terminfo into core on ieee1275 and yeeloong (needed for console).
15493
15494 * gentpl.py: New groups terminfoinkernel and terminfomodule.
15495 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
15496 and terminfo.h when needed.
15497 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
15498 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
15499 (terminfo): Enable only on terminfokernel.
15500 (extcmd): Likewise.
15501 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
15502 * include/grub/lib/arg.h: Likewise.
15503 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
15504 incorrect usage of ->.
15505
15506 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15507
15508 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
15509 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
15510
15511 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15512
15513 Fix coreboot compilation.
15514
15515 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15516 Take VBE info into account even if only text is supported.
15517 (fill_vbe_info): Take into account the case when only VGA text
15518 is supported.
15519 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
15520 on coreboot, multiboot and qemu.
15521
15522 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15523
15524 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
15525 debug messages.
15526 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
15527
15528 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15529
15530 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
15531 parameters.
15532
15533 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15534
15535 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
15536 if they were BSD-style.
15537
15538 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15539
15540 * grub-core/boot/i386/pc/lnxboot.S: Replace
15541 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
15542 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
15543
15544 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15545
15546 Write embedding zone using Reed-Solomon.
15547
15548 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
15549 * grub-core/Makefile.am (rs_decoder.S): New target.
15550 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
15551 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
15552 (multiboot): Move to RS part.
15553 (post_reed_solomon): New label.
15554 (grub_boot_drive): Move to non-RS part since it's modified in memory
15555 on boot.
15556 Include rs_decoder.S.
15557 * grub-core/lib/reed_solomon.c: New file.
15558 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
15559 New definition.
15560 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
15561 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
15562 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
15563 * include/grub/partition.h (grub_partition_map): Change prototype of
15564 embed to allow returning additional sectors.
15565 * include/grub/reed_solomon.h: New file.
15566 * util/grub-setup.c (setup): Handle Reed-Solomon.
15567
15568 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
15569
15570 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15571 i386 and x86-64 definedness tests.
15572
15573 2010-09-27 Yves Blusseau <blusseau@zetam.org>
15574
15575 Fix generation of kernel_syms.lst
15576
15577 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
15578 ASM_PREFIX
15579
15580 2010-09-26 Robert Millan <rmh@gnu.org>
15581
15582 Support degraded ZFS arrays in "grub-probe -t device" resolution.
15583
15584 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
15585 the pool is an array of devices, iterate through it and return the
15586 first device that passes a stat() test (instead of blindly returning
15587 the first one).
15588
15589 2010-09-26 Robert Millan <rmh@gnu.org>
15590
15591 Build fixes for GNU/kFreeBSD.
15592
15593 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
15594 to programs that require ZFS conversion.
15595 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
15596 kernels that don't have FLOPPY_MAJOR.
15597
15598 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15599
15600 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
15601
15602 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15603
15604 Fix grub-emu build.
15605
15606 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
15607 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
15608 mdraid09 and mdraid1x.
15609
15610 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
15611
15612 Re-enable grub-extras.
15613
15614 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
15615 avoid confusing Automake. Run autogen only twice, once for the top
15616 level and once for grub-core. Add Makefile.util.def and
15617 Makefile.core.def from extra modules to the appropriate autogen
15618 invocations. If Makefile.common exists in an extra module, include
15619 it in both Makefile.util.am and grub-core/Makefile.core.am;
15620 similarly, include any Makefile.util.common file in Makefile.util.am
15621 and any Makefile.core.common file in grub-core/Makefile.core.am.
15622 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
15623 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
15624 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
15625 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
15626
15627 * gentpl.py (gvar_add): Turn GVARS into a set.
15628 (global_variable_initializers): Sort global variables on output.
15629 (vars_init): New function.
15630 (first_time): Likewise.
15631 (library): Ensure that non-global variable initialisations are
15632 emitted before the first time we emit code for a library block.
15633 Append to variables rather than setting them. Only emit
15634 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
15635 each conditional path.
15636 (program): installdir() emits an Autogen macro, so must be passed to
15637 var_add rather than gvar_add.
15638 (data): Likewise.
15639 (script): Likewise.
15640 (rules): New function, centralising handling for different target
15641 types. Set up Guile association lists for first_time and vars_init,
15642 and send most output to a diversion so that variable initialisations
15643 can be emitted first.
15644 (module_rules): Use new rules function.
15645 (kernel_rules): Likewise.
15646 (image_rules): Likewise.
15647 (library_rules): Likewise.
15648 (program_rules): Likewise.
15649 (script_rules): Likewise.
15650 (data_rules): Likewise.
15651
15652 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
15653
15654 * .bzrignore: Add contrib and grub-core/contrib. Remove
15655 grub-core/Makefile.gcry.am.
15656
15657 2010-09-24 Yves Blusseau <blusseau@zetam.org>
15658
15659 * grub-core/lib/LzFind.c: Add missing include.
15660 * grub-core/lib/LzmaEnc.c: Likewise.
15661 * grub-core/script/lexer.c: Likewise.
15662 * grub-core/script/yylex.l: Likewise.
15663 * util/grub-macho2img.c: Likewise.
15664 * util/grub-menulst2cfg.c: Likewise.
15665 * util/grub-mklayout.c: Likewise.
15666 * util/grub-mkpasswd-pbkdf2.c
15667 * util/grub-mkrelpath.c: Likewise.
15668 * util/resolve.c: Likewise.
15669
15670 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
15671
15672 * Makefile.util.def (example_unit_test): Add
15673 grub-core/gnulib/libgnu.a.
15674
15675 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
15676
15677 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
15678
15679 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15680
15681 Support xz compression on yeeloong.
15682
15683 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
15684 * configure.ac: Check for LZMA.
15685 * grub-core/Makefile.core.def (xz_decompress): New target.
15686 (none_decompress): Likewise.
15687 * grub-core/boot/decompressor/minilib.c: New file.
15688 * grub-core/boot/decompressor/none.c: Likewise.
15689 * grub-core/boot/decompressor/xz.c: Likewise.
15690 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
15691 * grub-core/kern/mips/cache_flush.S: Likewise.
15692 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
15693 * grub-core/kern/mips/startup.S: Move first stage to ...
15694 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
15695 nomacro.
15696 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
15697 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
15698 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
15699 Allocate statically.
15700 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
15701 Allocate statically or use scratch. Don't check CRC32.
15702 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
15703 Allocate statically. Don't check CRC32.
15704 * include/grub/decompressor.h: New file.
15705 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
15706 Removed.
15707 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
15708 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
15709 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
15710 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
15711 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
15712 * util/grub-mkimage.c (grub_compression_t): New type.
15713 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
15714 (image_target_desc): New field default_compression.
15715 (image_targets): Adjust yeeloong targets.
15716 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
15717 (compress_kernel): New parameter comp.
15718 (generate_image): Likewise. Handle new compression case.
15719 (options): New option --compression
15720 (help): Likewise.
15721 (main): Handle new option.
15722
15723 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
15724
15725 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
15726
15727 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
15728
15729 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15730 typo in __i386__ conditional.
15731
15732 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15733
15734 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
15735 include.
15736
15737 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15738
15739 Implement EFI and ACPI multiboot2 extensions.
15740
15741 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
15742 new tags as supported.
15743 (acpiv2_size): New function.
15744 (grub_multiboot_get_mbi_size): Take new tags into account.
15745 (grub_multiboot_make_mbi): Add new tags.
15746 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
15747
15748 2010-09-21 Aleš Nesrsta <starous@volny.cz>
15749
15750 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
15751 Added missing configuration of USB device.
15752
15753 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15754
15755 * grub-core/normal/menu_entry.c (run): Make sure we always return
15756 a value.
15757
15758 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15759
15760 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
15761 NumberOfPages is UINT64 according to the UEFI specification, not
15762 UINTN. Fix printf format.
15763
15764 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15765
15766 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
15767 `err' to grub_usb_err_t.
15768 Reported and tested by: KESHAV P.R.
15769
15770 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15771
15772 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
15773 tpart non-const, so that we can assign to it. (Since this is a
15774 typedef, the constness refers to the pointer rather than what it
15775 points to.)
15776
15777 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15778
15779 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
15780 $(top_srcdir)/grub-core/gnulib as well as
15781 $(top_builddir)/grub-core/gnulib.
15782 Reported by: KESHAV P.R.
15783
15784 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15785
15786 * util/grub-install.in: Fix the bootloader ID option to be
15787 consistently --bootloader-id, not --bootloader_id.
15788 Reported by: KESHAV P.R.
15789
15790 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15791
15792 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
15793 check hash checksum." consistently translatable.
15794
15795 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15796
15797 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
15798 $(top_builddir).
15799
15800 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15801
15802 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
15803 (GRUB_MOD_INIT): Register sha1sum command.
15804 (GRUB_MOD_FINI): Unregister sha1sum command.
15805
15806 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15807
15808 Keep boot and grub directory names in sync with utils scripts
15809
15810 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
15811 * config.h.in: Add previous macros.
15812 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
15813 * util/grub-install.in: Use $bootdir and $grubdir variables.
15814
15815 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15816
15817 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
15818 convert partition names to disk names if the new `convert' parameter
15819 is set.
15820 (grub_util_biosdisk_get_grub_dev): If opening the disk device
15821 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
15822 disk in its own right. This can happen with Xen disk images.
15823
15824 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15825
15826 * util/grub-editenv.c: Update strings to avoid warnings when generating
15827 grub.pot file.
15828 * util/grub-setup.c: Likewise.
15829
15830 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15831
15832 * configure.ac: Change version to 1.99~beta0.
15833
15834 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15835
15836 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
15837 Add BADRAM.
15838 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
15839 Likewise.
15840 * include/multiboot.h: Resynced with specification.
15841 * include/multiboot2.h: Likewise.
15842
15843 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15844
15845 Fix po directory handling.
15846
15847 * configure.ac: Create po/Makefile.in rather than po/Makefile.
15848 * grub-core/gnulib/Makefile.am: Import gettext module.
15849 * m4/gnulib-cache.m4: Likewise.
15850 * m4/gnulib-comp.m4: Likewise.
15851 * m4/gettext.m4: New file, from gnulib.
15852 * m4/glibc2.m4: Likewise.
15853 * m4/iconv.m4: Likewise.
15854 * m4/intdiv0.m4: Likewise.
15855 * m4/intl.m4: Likewise.
15856 * m4/intldir.m4: Likewise.
15857 * m4/intlmacosx.m4: Likewise.
15858 * m4/intmax.m4: Likewise.
15859 * m4/inttypes-pri.m4: Likewise.
15860 * m4/lcmessage.m4: Likewise.
15861 * m4/lib-ld.m4: Likewise.
15862 * m4/lib-link.m4: Likewise.
15863 * m4/lib-prefix.m4: Likewise.
15864 * m4/lock.m4: Likewise.
15865 * m4/nls.m4: Likewise.
15866 * m4/po.m4: Likewise.
15867 * m4/printf-posix.m4: Likewise.
15868 * m4/progtest.m4: Likewise.
15869 * m4/threadlib.m4: Likewise.
15870 * m4/uintmax_t.m4: Likewise.
15871 * m4/visibility.m4: Likewise.
15872 * po/Makefile.am: Remove.
15873 * po/Makefile.in.in: New file, from gettext.
15874 ($(DOMAIN).pot-update): Support POTFILES-shell.
15875 * po/Makevars: New file.
15876 * po/POTFILES-shell: Rename to ...
15877 * po/POTFILES-shell.in: ... this. Update.
15878 * po/POTFILES: Rename to ...
15879 * po/POTFILES.in: ... this. Update.
15880 * po/Rules-quot: New file, from gettext.
15881 * po/boldquot.sed: Likewise.
15882 * po/en@boldquot.header: Likewise.
15883 * po/en@quot.header: Likewise.
15884 * po/insert-header.sin: Likewise.
15885 * po/quot.sed: Likewise.
15886 * po/remove-potcdate.sin: Likewise.
15887
15888 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15889
15890 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
15891
15892 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15893
15894 * util/grub.d/20_linux_xen.in: Use submenus.
15895
15896 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15897
15898 Support submenus.
15899
15900 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
15901 parameter submenu. All users updated.
15902 * grub-core/normal/main.c (free_menu): Rename to ...
15903 (grub_normal_free_menu): ... this. Made global.
15904 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
15905 if requested.
15906 * grub-core/normal/menu_entry.c (screen): New field submenu.
15907 (make_screen): Set submenu.
15908 (run): Open new context if requested.
15909 * include/grub/menu.h (grub_menu_entry): New field submenu.
15910 * include/grub/normal.h (grub_normal_free_menu): New proto.
15911
15912 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15913
15914 Menu entries extractor.
15915
15916 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
15917 variants.
15918 (GRUB_MOD_INIT): Register new variants.
15919 (GRUB_MOD_FINI): Unregister new variants.
15920 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
15921 into grub_cmd_legacy_source.
15922 (grub_cmd_legacy_source): Implement extractor variants.
15923 (GRUB_MOD_INIT): Register new variants.
15924 (GRUB_MOD_FINI): Unregister new variants.
15925 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
15926 as an extractor.
15927 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
15928 search as an extractor.
15929 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
15930 test as an extractor.
15931 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
15932 as an extractor.
15933 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
15934 (grub_env_new_context): New function.
15935 (grub_env_context_open): Likewise.
15936 (grub_env_extractor_open): Likewise.
15937 (grub_env_extractor_close): Likewise.
15938 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
15939 grub_extractor_level.
15940 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
15941 * include/grub/env.h (grub_env_extractor_open): New proto.
15942 (grub_env_extractor_close): Likewise.
15943 * include/grub/normal.h (grub_extractor_level): New external variable.
15944
15945 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15946
15947 Make cutmem accept a region specification.
15948 Suggested by: Samuel Thibault
15949
15950 * grub-core/mmap/mmap.c (parsemem): New function.
15951 (grub_cmd_cutmem): Handle new arguments.
15952
15953 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15954
15955 New command cutmem.
15956
15957 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
15958 (GRUB_MOD_INIT): Register new command.
15959 (GRUB_MOD_FINI): Unregister new command.
15960
15961 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15962
15963 Support some annoying BSD and Minix subpartitions.
15964
15965 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
15966 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
15967 Properly handle concatenation.
15968 * grub-core/kern/device.c (grub_device_iterate): Likewise.
15969 * grub-core/normal/completion.c (iterate_partition): Likewise.
15970 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
15971 contain partition. All users updated.
15972 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
15973 struct.
15974 (grub_openbsdlabel_partition_map): Likewise.
15975 (bsdlabel_partition_map_iterate): Rename to ..
15976 (iterate_real): ... this. New arguments sector, freebsd and pmap.
15977 (bsdlabel_partition_map_iterate): New function.
15978 (netopenbsdlabel_partition_map_iterate): Likewise.
15979 (netbsdlabel_partition_map_iterate): Likewise.
15980 (openbsdlabel_partition_map_iterate): Likewise.
15981 (GRUB_MOD_INIT): Register new partmaps.
15982 (GRUB_MOD_FINI): Unregister new partmaps.
15983 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
15984 (grub_partition_msdos_iterate): ... this. All users updated.
15985 Don't support embedding other than in a minix partition.
15986 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
15987 proto.
15988 * include/grub/partition.h (grub_partition): New field msdostype.
15989 * util/grub-install.in: Handle openbsd and netbsd types being in
15990 part_bsd module.
15991
15992 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15993
15994 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
15995
15996 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
15997 * grub-core/Makefile.core.def (mdraid): Renamed to ...
15998 (mdraid09): ... this.
15999 (mdraid1x): New module.
16000 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
16001 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
16002
16003 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16004
16005 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
16006 vsprintf.
16007
16008 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16009
16010 * grub-core/commands/efi/lsefimmap.c: Correct header.
16011 * NEWS: Update.
16012
16013 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16014
16015 * util/grub-editenv.c (argp_parser): Don't pass translated strings
16016 as printf format strings; the translations might contain '%' which
16017 could cause a crash.
16018 (main): Likewise.
16019 * util/grub-fstest.c (argp_parser): Likewise.
16020 * util/grub-setup.c (argp_parser): Likewise.
16021 (main): Likewise.
16022
16023 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16024
16025 Use argp in grub-fstest.
16026
16027 * util/grub-fstest.c: Don't include getopt.h.
16028 Include argp.h.
16029 (root): New variable.
16030 (args_count): Likewise.
16031 (nparm): Likewise.
16032 (num_disks): Likewise.
16033 (images): Likewise.
16034 (cmd): Likewise.
16035 (debug_str): Likewise.
16036 (args): Likewise.
16037 (options): Transformed to argp.
16038 (usage): Removed.
16039 (main): Split argument parsing into ...
16040 (argp_parser): ... this. Changed to argp format.
16041 (argp): New variable.
16042 (main): Use argp_parse.
16043
16044 2010-09-20 Tristan Gingold <gingold@free.fr>
16045 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
16046 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16047
16048 * grub-core/commands/efi/lsefimmap.c: New file.
16049 * grub-core/Makefile.core.def (lsefimmap): New module.
16050 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
16051
16052 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16053
16054 Pause the execution (10s max) if any errors are displayed so the user
16055 has a chance to see them.
16056
16057 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
16058 (grub_print_error): Increment grub_err_printed_errors.
16059 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
16060 execution if any errors were displayed.
16061 (show_menu): Remove old code for pause.
16062 * grub-core/normal/menu_entry.c (run): Likewise.
16063 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
16064 users updated.
16065 (grub_normal_get_char_counter): Likewise.
16066 * include/grub/err.h (grub_err_printed_errors): New external variable.
16067 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
16068
16069 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16070
16071 Support multiboot VBE info.
16072
16073 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
16074 Take VBE info into account.
16075 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
16076 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16077 Call fill_vbe_info when appropriate.
16078 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
16079 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
16080 as supported.
16081 (grub_multiboot_get_mbi_size): Take new tags into account.
16082 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
16083 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16084 Call fill_vbe_tag when appropriate.
16085 (grub_multiboot_make_mbi): Properly align tags.
16086 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
16087 function.
16088 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
16089 proto.
16090 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
16091
16092 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16093
16094 Suport manual terminal geometry specification.
16095
16096 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
16097 Save state in grub_ofconsole_terminfo_output.
16098 (grub_ofconsole_term): Use grub_terminfo_getwh.
16099 (grub_ofconsole_getwh): Removed.
16100 * grub-core/term/serial.c (grub_serial_getwh): Removed.
16101 (grub_serial_term): Use grub_terminfo_getwh.
16102 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
16103 (options): New struct.
16104 (OPTION_*): New enum.
16105 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
16106 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
16107 width and height.
16108 (grub_terminfo_getwh): New proto.
16109 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
16110
16111 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16112
16113 Handle legacy "terminal" command.
16114
16115 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
16116 and FLAG_TERMINAL.
16117 (legacy_commands): Add terminal and title.
16118 (grub_legacy_parse): Handle terminal. Simplify title handling.
16119
16120 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16121
16122 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
16123 parameters overflow.
16124
16125 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16126
16127 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
16128 widthspec.h.
16129
16130 * docs/grub.texi (Shell-like scripting): Document `!'.
16131 (Network): Simplify using new i386-pc-pxe format. Mention
16132 grub-mknetdir.
16133
16134 * NEWS: Update.
16135
16136 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16137
16138 * Makefile.am (SUBDIRS): Restore "."; it's important to force
16139 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
16140 when needed.
16141
16142 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16143
16144 * grub-core/commands/efi/lsefisystab.c: Correct header.
16145 * grub-core/commands/efi/lssal.c: Likewise.
16146 * grub-core/commands/testload.c: Likewise.
16147
16148 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16149
16150 * util/grub-mkrescue.in: Add explicit root argument to --set to
16151 prevent the UUID being interpreted as an argument to --set (matches
16152 previous change to prepare_grub_to_access_device).
16153
16154 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16155
16156 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
16157 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
16158 the verbosity of later #ifs.
16159 (find_partition_start): Define this function on FreeBSD too.
16160 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
16161 function.
16162 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
16163 on FreeBSD.
16164
16165 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16166
16167 * util/grub-editenv.c: Use argp instead of getopt.
16168
16169 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16170
16171 * util/grub-setup.c: Use argp instead of getopt.
16172
16173 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16174
16175 Use gnulib-tool to create gnulib source files.
16176
16177 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
16178 grub-core/gnulib directories
16179 * .bzignore: Add **/.deps and autogenerated gnulib files
16180 * configure.ac: Assign auxiliary directory to build-aux, add invocation
16181 of gnulib macros, add grub-core/gnulib/Makefile
16182 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
16183 include m4 directory to aclocal.
16184 * Makefile.util.def: Remove direct compilation of gnulib source files
16185 and use the new grub-core/gnulib/libgnu.a.
16186 * build-aux/config.rpath: move config.rpath from top directory to
16187 build-aux
16188 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
16189 in gnulib headers
16190 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
16191 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
16192 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
16193 header.
16194 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
16195 string.
16196
16197 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16198
16199 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
16200 grub-core/genmod.sh and grub-core/gensyminfo.sh
16201
16202 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
16203
16204 Add a test for echo command options.
16205
16206 * tests/grub_cmd_echo.in: New test.
16207 * Makefile.util.def: Rules for new test.
16208
16209 2010-09-20 Szymon Janc <szymon@janc.net.pl>
16210
16211 Remove crc.mod and move crc command to hashsum.mod.
16212 Remove lib/crc.c - users updated to use gcrypt implementation.
16213
16214 * grub-core/commands/crc.c: Removed.
16215 * grub-core/Makefile.core.def (crc): Module removed.
16216 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
16217 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
16218 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
16219 * grub-core/lib/crc.c: Removed.
16220 * include/grub/lib/crc.h: Removed.
16221 * Makefile.util.def (crc): Remove lib/crc.c
16222 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
16223 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
16224 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
16225 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
16226 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
16227 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
16228
16229 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16230
16231 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
16232
16233 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16234
16235 Split config.h for util and core.
16236
16237 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
16238 (ADDR32): Likewise.
16239 (DATA32): Likewise.
16240 (BSS_START_SYMBOL): Likewise.
16241 (END_SYMBOL): Likewise.
16242 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
16243 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
16244 * config.h.in: New file.
16245 * configure.ac: Use config-util.h as config define file.
16246 Rename MACHINE into GRUB_MACHINE. All users updated.
16247 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
16248 updated.
16249 (NESTED_FUNC_ATTR): Likewise.
16250 Substitue new variables.
16251 (COND_HAVE_ASM_USCORE): New conditional.
16252 * grub-core/Makefile.am (ASM_PREFIX): New variable.
16253 (kernel_syms.lst): Use ASM_PREFIX.
16254 * grub-core/kern/emu/console.c: Include config-util.h.
16255 * grub-core/kern/emu/misc.c: Likewise.
16256 * grub-core/kern/emu/mm.c: Likewise.
16257 * include/grub/emu/misc.h: Likewise.
16258 * include/grub/libgcc.h: Likewise.
16259
16260 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16261
16262 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
16263 constants usage.
16264 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
16265 Fix GRUB_TERM_KEY_* constants usage.
16266 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
16267
16268 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16269
16270 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
16271 print pointer.
16272 * grub-core/bus/usb/uhci.c: Remove empty define.
16273 (grub_uhci_check_transfer): Add missing cast.
16274 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
16275 print pointer.
16276 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
16277 PRIuGRUB_SIZE.
16278 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
16279
16280 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16281
16282 * grub-core/Makefile.core.def (legacycfg): Add
16283 lib/i386/pc/vesa_modes_table.c on emu.
16284
16285 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16286
16287 Reduce number of temporary files generated by build system.
16288
16289 * grub-core/gencmdlist.sh: Removed.
16290 * grub-core/genfslist.sh: Removed.
16291 * grub-core/genhandlerlist.sh: Removed.
16292 * grub-core/genmodsrc.sh: Removed.
16293 * grub-core/genpartmaplist.sh: Removed.
16294 * grub-core/genparttoollist.sh: Removed.
16295 * grub-core/gentermiinallist.sh: Removed.
16296 * grub-core/genvideolist.sh: Removed.
16297
16298 * grub-core/genmod.sh.in: New file.
16299 * grub-core/gensyminfo.sh.in: New file.
16300
16301 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
16302 * conf/Makefile.extra-dist: Update with new files.
16303 * gentpl.py: Remove rules related to unnecessary temporary files.
16304 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
16305 and und-* files.
16306 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
16307 genmod.sh scripts.
16308 * grub-core/bus/usb/uhci.c: Remove empty #define.
16309 * grub-core/genmoddep.awk: Updated with new syminfo format.
16310 * util/bash-completion.d/Makefile.am: Add config.log to
16311 CLEANFILES.
16312
16313 2010-09-19 Yves Blusseau <blusseau@zetam.org>
16314
16315 * Makefile.util.def: Add forgotten $(LIBINTL) library.
16316
16317 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16318
16319 * util/grub-mkconfig.in: Check the config script for syntax errors
16320 before saving.
16321
16322 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
16323 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16324
16325 * Makefile.util.def (grub-install): Use util/grub-install.in on all
16326 platforms.
16327 * util/grub-install.in: Add EFI and IEEE1275 support.
16328 * util/i386/efi/grub-install.in: Removed.
16329 * util/ieee1275/grub-install.in: Likewise.
16330
16331 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16332
16333 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
16334 (grub_cmd_cmosclean): Likewise.
16335 (GRUB_MOD_INIT): Register command cmosclean.
16336 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
16337 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
16338
16339 2010-09-18 Carles Pina i Estany <carles@pina.cat>
16340 2010-09-18 Aleš Nesrsta <starous@volny.cz>
16341 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16342
16343 Add keyboard layouts support.
16344
16345 * Makefile.util.def (grub-mklayout): New file.
16346 (grub-kbdcomp): New script.
16347 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
16348 Add keyboard_layouts.h.
16349 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
16350 commands/boot.c on yeeloong.
16351 (keylayouts): New module.
16352 * grub-core/bus/usb/ohci.c
16353 * grub-core/bus/usb/uhci.c
16354 * grub-core/bus/usb/usbhub.c (rescan): New variable.
16355 (grub_usb_add_hub): Poll interrupt pipe for device handling.
16356 (attach_root_port): Likewise.
16357 (poll_nonroot_hub): Likewise.
16358 (grub_usb_poll_devices): Likewise.
16359 (detach_device): Close transfer.
16360 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
16361 function.
16362 (grub_usb_bulk_setup_readwrite): Likewise.
16363 (grub_usb_bulk_finish_readwrite): Likewise.
16364 * grub-core/commands/keylayouts.c: New file.
16365 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
16366 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
16367 aliases.
16368 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
16369 support scancode 2.
16370 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
16371 * include/grub/keyboard_layouts.h: New file.
16372 * util/grub-mklayout.c: New file.
16373 * util/grub-kbdcomp.in: Likewise.
16374
16375 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16376
16377 Unify memory types.
16378
16379 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
16380 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
16381 types.
16382 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
16383 (grub_upper_mem): Likewise.
16384 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
16385 * include/grub/memory.h (grub_memory_type_t): New enum.
16386 All users updated.
16387
16388 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16389
16390 * grub-core/Makefile.core.def (lsapm): New module.
16391 * grub-core/commands/i386/pc/lsapm.c: New file.
16392 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
16393 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
16394 Likewise.
16395 * include/grub/i386/pc/apm.h: New file.
16396 * include/multiboot.h (multiboot_apm_info): New struct.
16397
16398 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16399
16400 GRUB-legacy configuration file support.
16401
16402 * Makefile.util.def (grub-menulst2cfg): New util.
16403 * docs/man/grub-menulst2cfg.h2m: New file.
16404 * grub-core/Makefile.core.def (legacycfg): New module.
16405 * grub-core/commands/legacycfg.c: New file.
16406 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
16407 (grub_normal_add_menu_entry): ... this.
16408 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
16409 (grub_normal_set_password): ...this.
16410 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
16411 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
16412 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
16413 * grub-core/lib/legacy_parse.c: New file.
16414 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
16415 * include/grub/i386/pc/vesa_modes_table.h: New file.
16416 * include/grub/legacy_parse.h: Likewise.
16417 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
16418 * util/grub-menulst2cfg.c: New file.
16419
16420 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16421
16422 * grub-core/kern/emu/hostdisk.c
16423 (convert_system_partition_to_system_disk): Initialise node.
16424
16425 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16426
16427 * grub-core/kern/emu/hostdisk.c
16428 (convert_system_partition_to_system_disk): Fix devmapper memory pool
16429 leak.
16430 Reported and based on patch by: Modestas Vainius.
16431
16432 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16433
16434 Fix DM-RAID probing with recent versions of device-mapper udev
16435 rules.
16436
16437 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
16438 canonicalise device paths under /dev/mapper/.
16439 (convert_system_partition_to_system_disk): Compare the
16440 uncanonicalised path to /dev/mapper/ rather than the canonicalised
16441 path, since device nodes under /dev/mapper/ are often symlinks.
16442
16443 2010-09-17 Yves Blusseau <blusseau@zetam.org>
16444
16445 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
16446
16447 2010-09-16 Yves Blusseau <blusseau@zetam.org>
16448
16449 * configure.ac: Avoid some annoying error messages if freetype-config
16450 program is not found.
16451
16452 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16453
16454 Support RAID on virtio devices, and others.
16455
16456 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
16457 Rename to ...
16458 [__MINGW32__] (grub_find_device): ... this.
16459 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
16460 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
16461 reasonable default if dir is NULL.
16462 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
16463 ...
16464 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
16465 (grub_guess_root_device): Update callers.
16466 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
16467
16468 * util/raid.c (grub_util_getdiskname): Remove.
16469 (grub_util_raid_getmembers): Use grub_find_device rather than
16470 grub_util_getdiskname.
16471
16472 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16473
16474 * docs/grub.texi (serial): Remove obsolete comment about GRUB
16475 needing to be compiled with serial support.
16476 (ls): Indicate that multiple files are accepted.
16477 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
16478 indicate that multiple files are accepted.
16479
16480 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16481
16482 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
16483 libgrub_a_init.c, and util/bash-completion.d/grub.
16484
16485 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16486
16487 * util/grub-setup.c (setup): Fix incorrect container semantics.
16488
16489 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16490
16491 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
16492 misusage.
16493 Reported by: J. Nick Terry
16494
16495 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16496
16497 Move embedding routines to partmap sources files.
16498
16499 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
16500 [GRUB_UTIL]: New variable.
16501 (gpt_partition_map_iterate): Set part.parent.
16502 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
16503 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
16504 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
16505 New function.
16506 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
16507 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
16508 (grub_partition_map) [GRUB_UTIL]: New field embed.
16509 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
16510 (setup): Use ->embed.
16511
16512 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16513
16514 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
16515 function.
16516 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
16517 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
16518
16519 2010-09-15 Yves Blusseau <blusseau@zetam.org>
16520
16521 Add function to get completions from usage.
16522
16523 * util/bash-completion.d/grub-completion.bash.in: Add function to get
16524 completions from usage. Use LC_ALL=C to get options properly.
16525
16526 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16527
16528 * grub-core/gnulib/basename-lgpl.c: Imported.
16529 * grub-core/gnulib/basename.c: Likewise.
16530 * grub-core/gnulib/dirname-lgpl.c: Likewise.
16531 * grub-core/gnulib/dirname.c: Likewise.
16532 * grub-core/gnulib/dirname.h: Likewise.
16533 * grub-core/gnulib/stripslash.c: Likewise.
16534
16535 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16536
16537 * grub-core/gnulib/error.c: Resynced.
16538 * grub-core/gnulib/getopt.c: Likewise.
16539 * grub-core/gnulib/getopt_int.h: Likewise.
16540 * grub-core/gnulib/regex.h: Likewise.
16541 * grub-core/gnulib/regex_internal.c: Likewise.
16542 * grub-core/gnulib/regex_internal.h: Likewise.
16543
16544 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16545
16546 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
16547 CRC calculations and validity checks.
16548 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
16549 calculations.
16550
16551 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16552
16553 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
16554
16555 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16556
16557 Fix incorrect echo options handling.
16558 Reported by: Yves Blusseau.
16559
16560 * include/grub/command.h (grub_command_flags_t): New flags
16561 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
16562 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
16563 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
16564
16565 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16566
16567 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
16568 users updated.
16569 (GRUB_COMMAND_FLAG_MENU): Likewise.
16570 (GRUB_COMMAND_FLAG_BOTH): Likewise.
16571 (GRUB_COMMAND_FLAG_TITLE): Removed.
16572 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
16573 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
16574 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
16575 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
16576 (grub_command_flags_t): New enum. All users updated.
16577
16578 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
16579
16580 Fix solaris compilation.
16581
16582 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
16583 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
16584 (grub-emu-list): Likewise.
16585
16586 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16587
16588 Remove deprecated root command.
16589
16590 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
16591 updated.
16592
16593 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16594
16595 * util/i386/pc/grub-setup.c: Merge this ...
16596 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
16597 * util/grub-setup.c: ... into this.
16598 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
16599 New struct.
16600
16601 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16602
16603 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
16604 possible.
16605
16606 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16607
16608 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
16609 allocate p.
16610
16611 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16612
16613 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
16614 explicit root argument to set to prevent UUID to be interpreted as
16615 argument to set.
16616
16617 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16618
16619 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
16620
16621 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16622
16623 Don't export grub_gate_a20.
16624
16625 * grub-core/kern/i386/pc/init.c: Remove leftovers.
16626 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
16627 to ...
16628 (grub_gate_a20): ... this. All users updated.
16629 * include/grub/i386/pc/init.h: Removed. All users updated.
16630
16631 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16632
16633 Create euro.pf2 which supports most European languages.
16634
16635 * Makefile.am (grubdata_DATA): Add euro.pf2.
16636 (euro.pf2): New target.
16637 (CLEANFILES): Add euro.pf2.
16638
16639 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16640
16641 * configure.ac: Disable emu-usb by default to prevent inadvertent
16642 device takeover.
16643
16644 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16645
16646 Disable usbserial on grub-emu since our libusb code isn't good enough
16647 yet.
16648
16649 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
16650 (usbserial_pl2303): Likewise.
16651 (usbserial_ftdi): Likewise.
16652
16653 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16654
16655 * include/grub/disk.h (grub_disk): Remove has_partitions.
16656 All users updated.
16657 * disk/loopback.c (grub_loopback): Remove has_partitions.
16658 All users updated.
16659 (options): Remove partitions. All users updated.
16660 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
16661 * util/i386/pc/grub-setup.c (setup): copy partition table only when
16662 actual partition table is found.
16663
16664 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16665
16666 Remove readability checks (too many false negatives).
16667
16668 * util/grub-install.in: Remove readability checks.
16669 * util/grub-mkconfig.in: Likewise.
16670 * util/grub.d/10_hurd.in: Likewise.
16671 * util/grub.d/10_kfreebsd.in: Likewise.
16672 * util/grub.d/10_linux.in: Likewise.
16673 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
16674 way.
16675
16676 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16677
16678 Enable acpi shutdown on all ACPI platforms.
16679
16680 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
16681 on coreboo, multiboot and EFI.
16682 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
16683 (grub_acpi_halt): Likewise.
16684 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
16685 (grub_cmd_halt): Don't call grub_acpi_halt directly.
16686 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
16687 * grub-core/lib/i386/halt.c (grub_halt)
16688 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
16689
16690 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16691
16692 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
16693 context.
16694
16695 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16696
16697 * grub-core/video/efi_gop.c: Fix over-80-chars line.
16698 * grub-core/video/efi_uga.c: Likewise.
16699
16700 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16701
16702 Filter devaliases and never open same device twice.
16703
16704 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
16705 (last_ihandle): Likewise.
16706 (ofdisk_hash_ent): New member shortest.
16707 (ofdisk_hash_add): Add canonical path too.
16708 (scan): New function.
16709 (grub_ofdisk_iterate): Iterate over hashed entries.
16710 (compute_dev_path): Don't add :0.
16711 (grub_ofdisk_open): Don't really open the disk.
16712 (grub_ofdisk_close): Avoid closing unrelated disk.
16713 (grub_ofdisk_read): Implement reopen logic.
16714 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
16715 New function.
16716 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
16717 New proto.
16718
16719 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16720
16721 Fix sparc64.
16722
16723 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
16724 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
16725 right address. Add sparc64_ieee1275_ldflags.
16726 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
16727 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
16728 to grub_host_to_target_addr
16729 (load_image): Likewise.
16730
16731 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16732
16733 * grub-core/normal/completion.c (complete_file): Handle device
16734 containing slash.
16735 Fix based on patch by Doug Nazar.
16736
16737 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16738
16739 grub-mknetdir script.
16740
16741 * Makefile.util.def (grub-mknetdir): New module.
16742 * tests/util/grub-shell.in: Support boot=net
16743 * util/grub-mknetdir.in: New file.
16744
16745 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16746
16747 videoinfo on non-vbe.
16748
16749 * grub-core/Makefile.core.def (vbeinfo): Removed.
16750 (vbetest): Removed.
16751 (videoinfo): New module.
16752 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
16753 * grub-core/commands/i386/pc/vbetest.c: Removed.
16754 * grub-core/commands/videoinfo.c: New file.
16755 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
16756 specification.
16757 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
16758 as vbetest.
16759 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
16760 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
16761 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
16762 mode_number. New parameter mode. All users updated.
16763 (grub_video_gop_iterate): New function.
16764 (grub_video_efi_gop): New member iterate.
16765 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
16766 (grub_vbe_set_video_mode): Remove setting useless fields.
16767 (vbe2videoinfo): New function.
16768 (grub_video_vbe_iterate): Likewise.
16769 (grub_video_vbe_setup): Use vbe2videoinfo.
16770 (grub_video_vbe_print_adapter_specific_info): New function.
16771 (grub_video_vbe_adapter): New fields iterate and
16772 print_adapter_specific_info.
16773 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
16774 All users updated.
16775 (grub_video_mode_info): New field mode_number.
16776 (grub_video_adapter): New fields iterate and
16777 print_adapter_specific_info.
16778
16779 2010-09-13 Tristan Gingold <gingold@free.fr>
16780 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
16781 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16782
16783 * grub-core/commands/efi/lsefisystab.c: New file.
16784 * grub-core/commands/efi/lssal.c: Likewise.
16785 * grub-core/Makefile.core.def (lsacpi): New module.
16786 (lsefisystab): Likewise.
16787 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
16788 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
16789 (grub_efi_sal_system_table): New struct.
16790 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
16791 (grub_efi_sal_system_table_memory_descriptor): Likewise.
16792 (grub_efi_sal_system_table_platform_features): Likewise.
16793 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
16794 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
16795 (grub_efi_sal_system_table_ap_wakeup): Likewise.
16796 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
16797
16798 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16799
16800 Support explicit user claim that a device is BIOS-visible.
16801
16802 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
16803 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
16804 * grub-core/kern/emu/hostdisk.c
16805 (convert_system_partition_to_system_disk): Support mdX.
16806 (find_system_device): New parameter add. All users updated.
16807 (grub_util_biosdisk_is_present): New function.
16808 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
16809 proto.
16810
16811 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16812
16813 Search hints support.
16814
16815 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
16816 All users updated.
16817
16818 2010-09-13 Yves Blusseau <blusseau@zetam.org>
16819
16820 Bash completion script for util commands
16821
16822 * Makefile.am: Add util/bash-completion.d directory
16823 * configure.ac: Likewise.
16824 * util/bash-completion.d/Makefile.am: New file.
16825 * util/bash-completion.d/grub-completion.bash.in: Likewise.
16826
16827 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16828
16829 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
16830 (print_backlog): set backlog_ucs4 and backlog_glyphs.
16831 Reported by: Yves Blusseau.
16832
16833 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16834
16835 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
16836 partition size and offset.
16837
16838 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16839
16840 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
16841
16842 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16843
16844 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
16845
16846 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16847
16848 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
16849 (grub_xvasprintf): Likewise.
16850
16851 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16852
16853 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
16854
16855 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16856
16857 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
16858 args ending with NULL.
16859
16860 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16861
16862 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
16863 pointer.
16864
16865 2010-09-11 Szymon Janc <szymon@janc.net.pl>
16866
16867 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
16868
16869 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16870
16871 Shutdown using ACPI.
16872
16873 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
16874 * grub-core/commands/acpihalt.c: New file.
16875 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
16876 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
16877 (grub_acpi_halt): New proto.
16878 (GRUB_ACPI_SLP_EN): New const.
16879 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
16880 (GRUB_ACPI_OPCODE_*): New enum.
16881 (GRUB_ACPI_EXTOPCODE_*): Likewise.
16882
16883 2010-09-11 Tristan Gingold <gingold@free.fr>
16884 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
16885 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16886
16887 * commands/lsacpi.c: New file.
16888 * grub-core/Makefile.core.def (lsacpi): New module.
16889 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
16890 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
16891 (grub_acpi_madt_entry_header): New struct.
16892 (grub_acpi_madt): Likewise.
16893 (grub_acpi_madt_entry_interrupt_override): Likewise.
16894 (grub_acpi_madt_entry_sapic): Likewise.
16895 (grub_acpi_madt_entry_lsapic): Likewise.
16896 (grub_acpi_madt_entry_platform_int_source): Likewise.
16897 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
16898 (PRIuGRUB_UINT32_T): Likewise.
16899 (PRIxGRUB_UINT64_T): Likewise.
16900
16901 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16902
16903 Implement loading palette on ieee1275_fb.
16904
16905 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
16906 (have_setcolors): Likewise.
16907 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
16908 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
16909 (grub_video_ieee1275_set_palette): Implement.
16910
16911 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16912 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
16913
16914 * util/grub-install.in (grub_partition): New variable.
16915 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
16916 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
16917 Fixes a bug reported by Yves Blusseau.
16918
16919 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16920
16921 Fix emu on mipsel.
16922
16923 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
16924 =grub_cpu_flush_cache on all mips and not only yeeloong.
16925 * configure.ac (COND_mips): New conditional.
16926 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
16927 platforms.
16928 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
16929 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
16930 [GRUB_LINKER_HAVE_INIT]: New function.
16931 (grub_emu_post_init): Likewise.
16932 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
16933 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
16934 * include/grub/cache.h (_mips): Include mips/cache.h.
16935 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
16936 LVM and RAID prototypes.
16937 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
16938 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
16939 function.
16940
16941 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16942
16943 * util/grub-install.in: Don't try to verify core.img until after
16944 running grub-mkimage to create it.
16945
16946 2010-09-10 Robert Millan <rmh@gnu.org>
16947
16948 * util/grub.d/10_hurd.in: Add misc readability checks.
16949 * util/grub.d/10_kfreebsd.in: Likewise.
16950 * util/grub.d/10_linux.in: Likewise.
16951
16952 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16953
16954 * util/grub-install.in: ${imgext} won't be defined here until the
16955 install branch is merged. For the meantime, only verify core.img on
16956 i386-pc and sparc64-ieee1275 platforms.
16957
16958 2010-09-10 Robert Millan <rmh@gnu.org>
16959
16960 Solaris support in grub_find_zpool_from_dir(). Thanks
16961 Seth Goldberg for referring to getextmntent() facility.
16962
16963 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
16964 `sys/mkdev.h'.
16965 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
16966 `<sys/mnttab.h>'.
16967 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
16968 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
16969 method for finding zpool name.
16970
16971 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16972
16973 grub-fstest needs the host and hostfs modules while other utilities
16974 actively require those modules to be absent, so grub-fstest needs
16975 its own initialisation and finalisation code.
16976
16977 * Makefile.am (grub_fstest.pp): New target.
16978 (grub_fstest_init.lst): Likewise.
16979 (grub_fstest_init.c): Likewise.
16980 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
16981
16982 2010-09-10 Robert Millan <rmh@gnu.org>
16983
16984 * configure.ac: Check for `struct statfs.f_fstypename' and
16985 `struct statfs.f_mntfromname'.
16986
16987 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
16988 kFreeBSD-specific code.
16989
16990 2010-09-10 Robert Millan <rmh@gnu.org>
16991
16992 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
16993 on ZFS. Now non-main filesystems are supported as / too.
16994
16995 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
16996
16997 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
16998 and grub-core/disk/host.c to ...
16999 (grub-fstest): ... here. Having the host disk implementation
17000 present confuses grub-probe and other utility programs.
17001
17002 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
17003 when writing to a file, not when writing to stdout.
17004
17005 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
17006
17007 * tests/partmap_test.in: New test for partitions.
17008 * Makefile.util.def: Rules for new test.
17009
17010 2010-09-09 Robert Millan <rmh@gnu.org>
17011
17012 * util/grub-probe.c (probe): Fix a pair of unhandled error
17013 conditions.
17014
17015 2010-09-09 Robert Millan <rmh@gnu.org>
17016
17017 Basic Btrfs support (detection and UUID).
17018
17019 * grub-core/fs/btrfs.c: New file.
17020 * Makefile.util.def (library): Register btrfs.c.
17021 * grub-core/Makefile.core.def: Likewise.
17022
17023 2010-09-08 Robert Millan <rmh@gnu.org>
17024
17025 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
17026 with (optional) parameters to specify device and relative path.
17027 * util/grub-install.in: Use is_path_readable_by_grub() to
17028 verify readability of a few critical files.
17029 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
17030 verify readability of grub.cfg.new.
17031
17032 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17033
17034 Split minix.mod into minix.mod and minix2.mod.
17035
17036 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
17037 * grub-core/Makefile.core.def (minix2): New module.
17038 * grub-core/fs/minix.c: Use definitions instead of runtime version
17039 checking.
17040 * grub-core/fs/minix2.c: New file.
17041
17042 2010-09-08 Yves Blusseau <blusseau@zetam.org>
17043
17044 Add new --boot-directory option to replace --root-directory
17045
17046 * util/grub-install.in: Add new --boot-directory option
17047 * util/grub-reboot.in: Likewise.
17048 * util/grub-set-default.in: Likewise.
17049
17050 2010-09-08 Yves Blusseau <blusseau@zetam.org>
17051
17052 * util/grub-mkconfig.in: Use new variable.
17053
17054 2010-09-08 Yves Blusseau <blusseau@zetam.org>
17055
17056 * configure.ac: Define some useful variables.
17057
17058 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17059
17060 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
17061 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
17062 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
17063 Use terminfo and don't use cursor-on/cursor-off unless it's known
17064 to work.
17065 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
17066 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
17067
17068 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
17069
17070 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
17071 starts with "(,", fill the drive containing the loaded image in
17072 between those two characters, but expect that a full partition
17073 specification including partition map names will follow.
17074
17075 2010-09-08 Robert Millan <rmh@gnu.org>
17076
17077 * configure.ac: Remove `--enable-grub-fstest' option.
17078 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
17079
17080 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
17081 `grub-fstest' instead of `grub-probe' for readability verification.
17082 * util/grub-probe.c (probe): Remove readability verification kludge.
17083
17084 2010-09-08 Robert Millan <rmh@gnu.org>
17085
17086 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
17087 initializing `GRUB_FS'.
17088
17089 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
17090
17091 Not command (!) support to GRUB script.
17092
17093 * tests/grub_script_not.in: New test.
17094 * Makefile.util.def: Rules for new test.
17095
17096 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
17097 ! command as a special case.
17098 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
17099
17100 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17101
17102 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
17103 grub_free.
17104
17105 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17106
17107 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
17108
17109 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17110
17111 * docs/grub.texi (Shell-like scripting): Documentation for break,
17112 continue, shift and return commands.
17113
17114 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
17115
17116 Rename CD-ROM to cd on BIOS.
17117
17118 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
17119 "cd".
17120 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
17121
17122 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17123
17124 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
17125 * util/grub-probe.c (main): Likewise.
17126 * util/i386/pc/grub-setup.c (main): Likewise.
17127 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
17128 Reported and debugged by: alexxy
17129
17130 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17131
17132 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
17133 diagnostic info.
17134
17135 2010-09-05 Jo Shields <directhex@apebox.org>
17136
17137 * util/grub.d/30_os-prober.in: Add missing classes.
17138
17139 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17140
17141 * docs/grub.texi (Theme file format): Document new position format.
17142
17143 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17144
17145 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
17146 a table. Use @code instead of @verbatim.
17147
17148 2010-09-05 Colin D Bennett <colin@gibibit.com>
17149
17150 Gfxmenu documentation.
17151
17152 * docs/grub.texi (Theme file format): New chapter.
17153
17154 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17155
17156 * grub-core/Makefile.core.def (xzio): New module.
17157 * grub-core/io/xzio.c: New file.
17158 * grub-core/lib/xzembed/xz.h: New file (from xembed).
17159 * grub-core/lib/xzembed/xz_config.h: Likewise.
17160 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
17161 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
17162 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
17163 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
17164 * grub-core/lib/xzembed/xz_private.h: Likewise.
17165 * grub-core/lib/xzembed/xz_stream.h: Likewise.
17166 * include/grub/file.h (grub_file_filter_id): New compression filter
17167 GRUB_FILE_FILTER_XZIO.
17168
17169 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17170
17171 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
17172 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
17173 size.
17174
17175 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17176
17177 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
17178 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
17179
17180 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17181
17182 Uncompressed checksum support.
17183
17184 * grub-core/commands/hashsum.c (options): Add option --uncompress.
17185 (check_list): New parameter uncompress.
17186 (grub_cmd_hashsum): Handle --uncompress.
17187
17188 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17189
17190 Reintroduce testload.
17191
17192 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
17193 from here ...
17194 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
17195 (GRUB_MOD_INIT): New function.
17196 (GRUB_MOD_FINI): Likewise.
17197 * grub-core/Makefile.core.def (testload): New module.
17198
17199 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17200
17201 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
17202 (uint8_t): New type.
17203 (uint16_t): Likewise.
17204 (uint32_t): Likewise.
17205 (uint64_t): Likewise.
17206
17207 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17208
17209 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
17210
17211 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17212
17213 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
17214 Made static.
17215 (grub_gzfile_open): Removed. All users updated.
17216 (GRUB_MOD_INIT): New function.
17217 (GRUB_MOD_FINI): Likewise.
17218 * grub-core/kern/file.c (grub_file_filters_all): New variable.
17219 (grub_file_filters_enabled): Likewise.
17220 (grub_file_open): Handle filters.
17221 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
17222 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
17223 * include/grub/file.h (grub_file_filter_id_t): New type.
17224 (grub_file_filter_t): Likewise.
17225 (grub_file_filters_all): New extern variable.
17226 (grub_file_filters_enabled): Likewise.
17227 (grub_file_filter_register): New inline function.
17228 (grub_file_filter_unregister): Likewise.
17229 (grub_file_filter_disable): Likewise.
17230 (grub_file_filter_disable_compression): Likewise.
17231 * include/grub/gzio.h: Removed.
17232
17233 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17234
17235 Filename expansion support for wildcards in GRUB script.
17236
17237 * tests/grub_script_expansion.in: New test.
17238 * Makefile.util.def: Rule for new test.
17239
17240 * grub-core/commands/wildcard.c: New file, implements filename
17241 expansion support for GRUB script.
17242 * grub-core/Makefile.core.def: Rule update for regexp.mod.
17243 * grub-core/script/argv.c: Cosmetic changes.
17244 * grub-core/script/execute.c (grub_script_arglist_to_argv):
17245 Refactored to perform wildcard expansion on arguments.
17246 * include/grub/script_sh.h (grub_script_wildcard_translator): New
17247 struct.
17248
17249 * tests/util/grub-shell.in: Fix quoting for read input.
17250
17251 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17252
17253 Support for updating environment variables with matched substrings
17254 of regexp.
17255
17256 * tests/grub_cmd_regexp.in: New test.
17257 * Makefile.util.def: Rule for new test.
17258
17259 * grub-core/commands/regexp.c: New option -s to update environment
17260 variables with regexp matches.
17261
17262 2010-09-04 Szymon Janc <szymon@janc.net.pl>
17263
17264 * include/grub/file.h (grub_file): New member not_easly_seekable.
17265 (grub_file_seekable): New inline function.
17266 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
17267 easily seekable.
17268 (grub_gzio_open): Set not_easly_seekable.
17269 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
17270 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
17271
17272 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17273
17274 Support for options to appear multiple times on cmdline.
17275
17276 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
17277 * grub-core/commands/extcmd.c: Support for repeatable option.
17278 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
17279 repeatable option support.
17280
17281 Refactor menuentry into a regular command.
17282
17283 * grub-core/commands/menuentry.c: New file, menuentry command
17284 implementation.
17285 * grub-core/Makefile.core.def: Rule update for normal.mod.
17286 * grub-core/normal/main.c: Moved menuentry creation to
17287 grub-core/commands/menuentry.c.
17288 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
17289 (grub_menu_execute_entry_real): Removed.
17290 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
17291 function.
17292 (grub_script_execute_menuentry): Removed.
17293 * grub-core/script/parser.y (menuentry): Removed.
17294 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
17295 * grub-core/script/yylex.l (menuentry): Removed.
17296 * include/grub/menu.h (grub_menu_init): New prototype.
17297 (grub_menu_fini): New prototype.
17298 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
17299 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
17300 (grub_script_execute_sourcecode): New prototype.
17301
17302 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17303
17304 "return" command for GRUB script functions.
17305
17306 * tests/grub_script_return.in: New test.
17307 * Makefile.util.def: Rules for new test.
17308
17309 * grub-core/script/execute.c (grub_script_return): New function.
17310 * grub-core/script/main.c: Register/unregister return commaond.
17311 * include/grub/script_sh.h (grub_script_return): New prototype.
17312
17313 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17314
17315 "setparams" command to update positional parameters.
17316
17317 * tests/grub_script_setparams.in: New test.
17318 * Makefile.util.def: Rules for new test.
17319
17320 * grub-core/script/argv.c (grub_script_argv_make): New function.
17321 * grub-core/script/execute.c (replace_scope): New function.
17322 (grub_script_setparams): New function.
17323 * grub-core/script/lexer.c: Remove unused variables.
17324 * grub-core/script/main.c: Register/unregister setparams command.
17325 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
17326 (grub_script_setparams): New prototype.
17327
17328 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17329
17330 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
17331 grub_free order.
17332
17333 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17334
17335 Support for passing block of commands as an argument to extcmds.
17336
17337 * Makefile.util.def: Rules for new test.
17338 * tests/grub_script_blockarg.in: New test.
17339 * grub-core/tests/test_blockarg.c: New file, block argument
17340 command used in the test.
17341
17342 * include/grub/extcmd.h (grub_extcmd_context): New struct.
17343 (grub_register_extcmd_prio): New function prototype.
17344 (grub_extcmd_dispatcher): New function prototype.
17345 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
17346 type.
17347 * include/grub/script_sh.h (struct grub_script): New members
17348 `children', `next_siblings' and `refcnt' for block arguments and
17349 reference counting.
17350 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
17351 (grub_script_arg): New member `script' for block argument.
17352 (grub_script_argv): New member `script' for block argument.
17353 (grub_parser_param): New member `scripts' for block argument.
17354 (grub_script_mem_free): New extern function prototype.
17355 (grub_script_ref): New function prototype.
17356 (grub_script_unref): New function prototype.
17357
17358 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
17359 extcmd form to support block arguments.
17360 * grub-core/script/argv.c: Block arguments support.
17361 * grub-core/script/execute.c: Likewise.
17362 * grub-core/script/lexer.c: Likewise.
17363 * grub-core/script/main.c: Likewise.
17364 * grub-core/script/script.c: Likewise.
17365 * grub-core/script/parser.y: Likewise. New `block' and `block0'
17366 non-terminals.
17367
17368 * grub-core/commands/acpi.c: Update extcmd implementations with
17369 grub_extcmd_context_t.
17370 * grub-core/commands/cat.c: Likewise.
17371 * grub-core/commands/echo.c: Likewise.
17372 * grub-core/commands/extcmd.c: Likewise.
17373 * grub-core/commands/hashsum.c: Likewise.
17374 * grub-core/commands/hdparm.c: Likewise.
17375 * grub-core/commands/help.c: Likewise.
17376 * grub-core/commands/hexdump.c: Likewise.
17377 * grub-core/commands/i386/cpuid.c: Likewise.
17378 * grub-core/commands/i386/pc/drivemap.c: Likewise.
17379 * grub-core/commands/i386/pc/halt.c: Likewise.
17380 * grub-core/commands/i386/pc/sendkey.c: Likewise.
17381 * grub-core/commands/iorw.c: Likewise.
17382 * grub-core/commands/keystatus.c: Likewise.
17383 * grub-core/commands/loadenv.c: Likewise.
17384 * grub-core/commands/ls.c: Likewise.
17385 * grub-core/commands/lspci.c: Likewise.
17386 * grub-core/commands/memrw.c: Likewise.
17387 * grub-core/commands/probe.c: Likewise.
17388 * grub-core/commands/search_wrap.c: Likewise.
17389 * grub-core/commands/setpci.c: Likewise.
17390 * grub-core/commands/sleep.c: Likewise.
17391 * grub-core/disk/loopback.c: Likewise.
17392 * grub-core/hello/hello.c: Likewise.
17393 * grub-core/loader/i386/bsd.c: Likewise.
17394 * grub-core/loader/xnu.c: Likewise.
17395 * grub-core/term/gfxterm.c: Likewise.
17396 * grub-core/term/serial.c: Likewise.
17397 * grub-core/tests/lib/functional_test.c: Likewise.
17398
17399 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17400
17401 Multi-line quoted strings support.
17402
17403 * grub-core/script/lexer.c (append_newline): Removed.
17404 (grub_script_lexer_yywrap): Refactored.
17405 (grub_script_lexer_init): Refactored.
17406 * grub-core/script/yylex.l (yywrap): New function.
17407 (grub_lexer_resplit): New function.
17408 (grub_lexer_unput): New function.
17409 * include/grub/script_sh.h (grub_lexer_param): New members, unput
17410 and resplit.
17411 * tests/grub_script_echo1.in: Added few more testcases.
17412
17413 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
17414
17415 * grub-core/kern/misc.c: Don't add abort alias in utils.
17416 Reported by: echoline.
17417
17418 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
17419
17420 Add missing files into "make dist" tarball for other platforms.
17421
17422 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
17423 * conf/Makefile.common (dist_noinst_DATA): New variable.
17424 * conf/Makefile.extra-dist: Added missing make dist files.
17425 * grub-core/Makefile.core.def: Likewise.
17426
17427 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17428
17429 Compress grub_prefix.
17430
17431 * grub-core/boot/i386/pc/lnxboot.S: Use
17432 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
17433 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
17434 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
17435 GRUB_MACHINE_PREFIX_END. All users updated.
17436 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
17437 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
17438 + 0x40.
17439 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17440 * util/grub-mkimage.c (image_target_desc): Change data_end to
17441 prefix_end. All users updated.
17442
17443 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17444
17445 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
17446 value.
17447 (grub_openbsd_boot): Likewise.
17448 (grub_netbsd_boot): Likewise.
17449 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
17450 (grub_xnu_boot): Likewise.
17451
17452 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17453
17454 * configure.ac: Clean LIBS variable after tests.
17455
17456 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17457
17458 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
17459
17460 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17461
17462 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
17463 echo if libdevmapper will be used.
17464
17465 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
17466
17467 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
17468 constant for the same file.
17469
17470 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17471
17472 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
17473
17474 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17475
17476 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
17477 grub-core/*.pp.
17478
17479 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17480
17481 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
17482 required by the boot protocol.
17483
17484 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
17485 ebp and edi members.
17486 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
17487 state.ebp and state.edi.
17488 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
17489 %ebp and %edi according to grub_relocator32_ebp and
17490 grub_relocator32_edi respectively.
17491 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
17492 and state.edi.
17493
17494 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17495
17496 Add i386-pc-pxe image target.
17497
17498 * util/grub-mkimage.c (image_target_desc): New enum value
17499 IMAGE_I386_PC_PXE.
17500 (image_targets): New target i386-pc-pxe.
17501 (generate_image): Handle i386-pc-pxe image.
17502
17503 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17504
17505 Fix grub_pxe_scan.
17506
17507 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
17508 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
17509 All users updated.
17510 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
17511 (grub_pxe_pxenv): Correct type.
17512
17513 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17514
17515 * NEWS: Document most of the important changes since 1.98.
17516
17517 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17518
17519 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
17520 generated manual page) a little.
17521
17522 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17523
17524 * docs/grub.texi: Add myself as an author.
17525
17526 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
17527
17528 * Makefile.util.def (libgrub.a): Add missing sunpc.
17529 Reported by: Seth Goldberg.
17530
17531 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17532
17533 Interrupt wrapping and code simplifications.
17534
17535 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
17536 x86_noieee1275 which are functionaly equivalent in this case.
17537 (grub-install): Make source on each platform explicit. Enable on
17538 all noemu.
17539 * gentpl.py (x86_efi_pc): Removed group.
17540 (x86_noefi): Likewise.
17541 (i386_noefi): Likewise.
17542 (x86_noieee1275): Likewise.
17543 (i386_noieee1275): Likewise.
17544 (i386_noefi_noieee1275): Likewise.
17545 (i386_pc_qemu_coreboot): Likewise.
17546 (i386_coreboot_multiboot): Likewise.
17547 (i386_pc_coreboot_multiboot_qemu): Likewise.
17548 (x86_noefi_mips): Likewise.
17549 (noieee1275): Likewise.
17550 (ieee1275_mips): Likewise.
17551 (noemu_noieee1275): Likewise.
17552 (cmos): New group.
17553 (usb): Likewise.
17554 (videoinkernel): Likewise.
17555 (videomodules): Likewise.
17556 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
17557 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
17558 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
17559 include/grub/loader.h, include/grub/msdos_partition.h,
17560 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
17561 include/grub/machine/console.h, include/grub/machine/vga.h,
17562 include/grub/machine/vbe.h, include/grub/machine/init.h,
17563 include/grub/machine/kernel.h, include/grub/cpu/time.h,
17564 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
17565 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
17566 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
17567 * grub-core/Makefile.core.def (kernel): Explicit the source for
17568 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
17569 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
17570 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
17571 Use videoinkernel tag.
17572 (usb): Enable on all usb.
17573 (usbserial_common): Likewise.
17574 (usbserial_pl2303): Likewise.
17575 (usbserial_ftdi): Likewise.
17576 (uhci): Enable on all x86.
17577 (ohci): Enable on all pci.
17578 (cmostest): Enable on all CMOS.
17579 (acpi): Include commands/acpi.c on all platforms.
17580 (halt): Add relevant lib/*/halt.c.
17581 (hdparm): Enable on all pci.
17582 (lspci): Likewise.
17583 (usbtest): Enable on all usb.
17584 (ata): Enable on all pci.
17585 (ata_pthru): Likewise.
17586 (usbms): Enable on all usb.
17587 (usb_keyboard): Likewise.
17588 (font): Use tag videomodules.
17589 (bufio): Likewise.
17590 (datetime): Use tag cmos. Enable on all noemu.
17591 (mmap): Use tags common and x86.
17592 (gfxterm): Use tag videomodules.
17593 (bitmap): Likewise.
17594 (bitmap_scale): Likewise.
17595 (video_fb): Likewise.
17596 (video): Likewise.
17597 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
17598 adjust padding accordingly. All users updated.
17599 (grub_ohci_transaction): Fix bad format specification.
17600 (GRUB_MOD_INIT): Add asserts for struct size.
17601 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
17602 (grub_alloc_td): Likewise.
17603 (grub_free_queue): Likewise.
17604 (grub_uhci_transfer): Likewise.
17605 (grub_uhci_transaction): Fix bad format specification.
17606 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
17607 (grub_usb_bulk_readwrite): Likewise.
17608 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
17609 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
17610 Made static.
17611 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
17612 Made static.
17613 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
17614 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
17615 Transformed into C.
17616 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
17617 Moved from here ...
17618 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
17619 ... here. Transformed into C. Made static.
17620 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
17621 Moved from here ...
17622 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
17623 ... here. Transformed into C. Made static.
17624 * grub-core/kern/i386/pc/startup.S
17625 (grub_biosdisk_check_int13_extensions): Moved from here ...
17626 * grub-core/disk/i386/pc/biosdisk.c
17627 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
17628 Made static.
17629 * grub-core/kern/i386/pc/startup.S
17630 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
17631 * grub-core/disk/i386/pc/biosdisk.c
17632 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
17633 Transformed into C. Made static.
17634 * grub-core/kern/i386/pc/startup.S
17635 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
17636 * grub-core/disk/i386/pc/biosdisk.c
17637 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
17638 Transformed into C. Made static.
17639 * grub-core/kern/i386/pc/startup.S
17640 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
17641 * grub-core/disk/i386/pc/biosdisk.c
17642 (grub_biosdisk_get_diskinfo_standard): ... here.
17643 Transformed into C. Made static.
17644 * grub-core/kern/i386/pc/startup.S
17645 (grub_biosdisk_get_num_floppies): Moved from here ...
17646 * grub-core/disk/i386/pc/biosdisk.c
17647 (grub_biosdisk_get_num_floppies): ... here.
17648 Transformed into C. Made static.
17649 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
17650 New function.
17651 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
17652 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
17653 Transformed into C. Made static.
17654 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
17655 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
17656 Transformed into C. Made static.
17657 * grub-core/kern/i386/ieee1275/init.c: Removed.
17658 * grub-core/kern/i386/misc.S: Likewise.
17659 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
17660 Splitted from here ...
17661 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
17662 Transformed into C. Made static. All users updated.
17663 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
17664 Transformed into C. Made static. All users updated.
17665 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
17666 Moved from here...
17667 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
17668 Transformed into C. Made static. All users updated.
17669 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
17670 Moved from here...
17671 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
17672 Transformed into C. Made static. All users updated.
17673 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
17674 Removed (replaced by C version).
17675 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
17676 Moved from here...
17677 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
17678 Transformed into C. Made static.
17679 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
17680 Moved from here...
17681 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
17682 ... here. Transformed into C.
17683 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
17684 Moved from here...
17685 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
17686 ... here. Transformed into C.
17687 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
17688 Moved from here...
17689 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
17690 ... here. Transformed into C. Made static.
17691 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
17692 Moved from here...
17693 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
17694 ... here. Transformed into C.
17695 * grub-core/kern/i386/pc/startup.S
17696 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
17697 * grub-core/video/i386/pc/vbe.c
17698 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
17699 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
17700 Moved from here...
17701 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
17702 ... here. Transformed into C.
17703 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
17704 Moved from here...
17705 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
17706 ... here. Transformed into C.
17707 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
17708 Moved from here...
17709 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
17710 ... here. Transformed into C.
17711 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
17712 Moved from here...
17713 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
17714 ... here. Transformed into C.
17715 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
17716 Moved from here...
17717 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
17718 ... here. Transformed into C. Made static.
17719 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
17720 Moved from here...
17721 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
17722 ... here. Transformed into C. Made static.
17723 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
17724 Moved from here...
17725 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
17726 ... here. Transformed into C. Made static.
17727 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
17728 pxe_rm_entry as third argument.
17729 (grub_bios_interrupt): New function.
17730 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
17731 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
17732 of calling grub_stop.
17733 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
17734 * grub-core/lib/efi/halt.c (grub_halt): ...here.
17735 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
17736 * grub-core/lib/emu/halt.c (grub_halt): ... here.
17737 * grub-core/lib/i386/halt.c: Moved from here ...
17738 * grub-core/lib/i386/halt.c: ... here.
17739 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
17740 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
17741 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
17742 grub_stop_floppy.
17743 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
17744 * include/grub/i386/coreboot/init.h: Removed.
17745 * include/grub/i386/multiboot/init.h: Likewise.
17746 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
17747 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
17748 * include/grub/i386/pc/int.h: New file.
17749 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
17750 (grub_pxe_scan): Removed.
17751 (grub_pxe_call): Update prototype.
17752 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
17753 prototypes.
17754 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
17755 * include/grub/i386/qemu/init.h: Removed.
17756 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
17757 noreturn.
17758 (grub_halt): Likewise.
17759 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
17760 (grub_reboot): Likewise.
17761 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
17762 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
17763 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
17764
17765 2010-08-30 Robert Millan <rmh@gnu.org>
17766
17767 * NEWS: Document addition of ZFS support in `grub-install' and
17768 `grub-mkconfig'.
17769
17770 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
17771
17772 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
17773 dprintf output.
17774
17775 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17776
17777 Remove leftover embedding of font objects.
17778
17779 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17780 * util/grub-install.in (font): Removed.
17781 * util/grub-mkimage.c (generate_image): Remove font support. All users
17782 updated.
17783
17784 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17785
17786 Remove leftover embedding of font objects.
17787
17788 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17789 * util/grub-install.in (font): Removed.
17790 * util/grub-mkimage.c (generate_image): Remove font support. All users
17791 updated.
17792
17793 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17794
17795 * docs/grub.texi (Network): Fix reference to pxe_blksize.
17796 Reported by: Ian Turner
17797
17798 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17799
17800 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
17801 timeout to avoid indefinite boot stalling.
17802
17803 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17804
17805 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
17806 (grub_env_write_color_highlight): Likewise.
17807
17808 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17809
17810 * grub-core/normal/term.c (print_more): Return to normal and not
17811 to standard state after printing "---MORE---".
17812
17813 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17814
17815 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
17816 Mask out the bit 0x80 since it has other meaning that specifiing color.
17817
17818 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17819
17820 New relocator. Allows for more kernel support and more straightforward
17821 loader writing.
17822
17823 * Makefile.am (BOOTTARGET): New variable.
17824 (QEMU32): Likewise.
17825 (linux.init.x86_64): New target.
17826 (linux.init.i386): Likewise.
17827 (multiboot.elf): Likewise.
17828 (kfreebsd.elf): Likewise.
17829 (kfreebsd.aout): Likewise.
17830 (pc-chainloader.elf): Likewise.
17831 (pc-chainloader.bin): Likewise.
17832 (ntldr.elf): Likewise.
17833 (ntldr.bin): Likewise.
17834 (multiboot2.elf): Likewise.
17835 (kfreebsd.init.x86_64): Likewise.
17836 (kfreebsd.init.i386): Likewise.
17837 (knetbsd.init.i386): Likewise.
17838 (kopenbsd.init.i386): Likewise.
17839 (knetbsd.init.x86_64): Likewise.
17840 (kopenbsd.init.x86_64): Likewise.
17841 (linux-initramfs.i386): Likewise.
17842 (linux-initramfs.x86_64): Likewise.
17843 (kfreebsd-mfsroot.i386.img): Likewise.
17844 (knetbsd.image.i386): Likewise.
17845 (kopenbsd.image.i386): Likewise.
17846 (kopenbsd.image.x86_64): Likewise.
17847 (knetbsd.miniroot-image.i386.img): Likewise.
17848 (kfreebsd-mfsroot.x86_64.img): Likewise.
17849 (knetbsd.image.x86_64): Likewise.
17850 (knetbsd.miniroot-image.x86_64.img): Likewise.
17851 (kfreebsd-mfsroot.i386.gz): Likewise.
17852 (bootcheck-kfreebsd-i386): Likewise.
17853 (kfreebsd-mfsroot.x86_64.gz): Likewise.
17854 (bootcheck-kfreebsd-x86_64): Likewise.
17855 (knetbsd.miniroot-image.i386.gz): Likewise.
17856 (bootcheck-knetbsd-i386): Likewise.
17857 (bootcheck-kopenbsd-i386): Likewise.
17858 (bootcheck-kopenbsd-x86_64): Likewise.
17859 (knetbsd.miniroot-image.x86_64.gz): Likewise.
17860 (bootcheck-knetbsd-x86_64): Likewise.
17861 (bootcheck-linux-i386): Likewise.
17862 (bootcheck-linux-x86_64): Likewise.
17863 (bootcheck-linux16-i386): Likewise.
17864 (bootcheck-linux16-x86_64): Likewise.
17865 (bootcheck-multiboot): Likewise.
17866 (bootcheck-multiboot2): Likewise.
17867 (bootcheck-kfreebsd-aout): Likewise.
17868 (bootcheck-pc-chainloader): Likewise.
17869 (bootcheck-ntldr): Likewise.
17870 (CLEANFILES): Add new targets.
17871 (BOOTCHECKS): New variable.
17872 (.PHONY): Add bootchecks.
17873 (SUCCESSFUL_BOOT_STRING): New variable.
17874 (BOOTCHECK_TIMEOUT): Likewise.
17875 (bootcheck): New target
17876 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
17877 * configure.ac: Correct efiemu excuse.
17878 * docs/grub.texi (Supported kernels): New chapter.
17879 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
17880 include/grub/mm_private.h. Simplify inclusion of
17881 include/grub/boot.h, include/grub/loader.h
17882 and include/grub/msdos_partition.h
17883 (KERNEL_HEADER_FILES) [i386_coreboot]:
17884 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
17885 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
17886 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
17887 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
17888 include/grub/machine/loader.h.
17889 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
17890 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
17891 extra_dist.
17892 (pci.mod): Enable on i386-multiboot.
17893 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
17894 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
17895 i386-qemu.
17896 (relocator.mod): Rewritten.
17897 (aout.mod): Enable on all x86.
17898 (bsd.mod): Likewise.
17899 (ntldr.mod): New module.
17900 (linux.mod): Use loader/i386/linux.c on all x86.
17901 (xnu.mod): Enable on all x86.
17902 (vga_text.mod): disable on EFI and QEMU.
17903 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
17904 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
17905 * grub-core/efiemu/loadcore.c: Likewise.
17906 * grub-core/efiemu/main.c: Likewise.
17907 (grub_efiemu_exit_boot_services): Removed.
17908 (grub_efiemu_finish_boot_services): Likewise.
17909 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
17910 function.
17911 * grub-core/efiemu/i386/nocfgtables.c: New file.
17912 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
17913 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
17914 (grub_efi_finish_boot_services): Moved from here ...
17915 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
17916 Fille finish memory map and related data.
17917 (finish_mmap_buf): New variable.
17918 (grub_efi_uintn_t finish_mmap_size): Likewise.
17919 (grub_efi_uintn_t finish_key): Likewise.
17920 (grub_efi_uintn_t finish_desc_size): Likewise.
17921 (grub_efi_uint32_t finish_desc_version): Likewise.
17922 (grub_efi_is_finished): Likewise.
17923 (grub_efi_get_memory_map): Use saved memory map if EFI is already
17924 finished.
17925 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
17926 (grub_elf64_phdr_iterate): Likewise.
17927 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
17928 (grub_os_area_size): Likewise.
17929 (grub_machine_init): Don't reserve os area.
17930 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
17931 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17932 * grub-core/kern/i386/loader.S: Removed.
17933 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
17934 (grub_os_area_size): Likewise.
17935 (grub_machine_init): Don't reserve os area.
17936 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
17937 Don't call grub_dl_unload_all.
17938 Don't include loader.S.
17939 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
17940 Declare the memory after _end as available.
17941 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
17942 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
17943 (GRUB_MM_ALLOC_MAGIC): Moved from here...
17944 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
17945 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
17946 * include/grub/mm_private.h (grub_mm_header): ... here.
17947 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
17948 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
17949 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
17950 (grub_mm_region): ..here. Removed addr. Added pre_size.
17951 All users updated.
17952 * grub-core/kern/mm.c (base): Renamed to ...
17953 (grub_mm_base): ... this. Made global.
17954 (grub_real_malloc): Alloc from end of region.
17955 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
17956 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
17957 * grub-core/kern/powerpc/cache_flush.S: ... here.
17958 * grub-core/lib/efi/relocator.c: New file.
17959 * grub-core/lib/i386/relocator.c: Rewritten.
17960 * grub-core/lib/i386/relocator16.S: New file.
17961 * grub-core/lib/i386/relocator32.S: Likewise.
17962 * grub-core/lib/i386/relocator64.S: Likewise.
17963 * grub-core/lib/i386/relocator_asm.S: Rewritten.
17964 * grub-core/lib/i386/relocator_common.S: New file.
17965 * grub-core/lib/ieee1275/relocator.c: Likewise.
17966 * grub-core/lib/mips/relocator.c: Rewritten.
17967 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
17968 stylistic adjustments.
17969 * grub-core/lib/powerpc/relocator.c: New file.
17970 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
17971 * grub-core/lib/relocator.c: Rewritten.
17972 * grub-core/lib/x86_64/relocator_asm.S: New file.
17973 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
17974 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
17975 (bsd_tag): New struct.
17976 (tags): New variable.
17977 (tags_last): Likewise.
17978 (netbsd_module): New struct.
17979 (netbsd_mods): New variable.
17980 (netbsd_mods_last): Likewise.
17981 (openbsd_opts): New parameter "serial".
17982 (OPENBSD_SERIAL_ARG): New definition.
17983 (netbsd_opts): New parameter "serial".
17984 (NETBSD_SERIAL_ARG): New definition.
17985 (grub_freebsd_add_meta): Reorganised into ...
17986 (grub_bsd_add_meta): ...this. All users updated.
17987 (grub_freebsd_add_mmap): Reorganised into ...
17988 (generate_e820_mmap): ...this...
17989 (grub_bsd_add_mmap): ...and this. All users updated.
17990 (grub_freebsd_list_modules): Use tags.
17991 (grub_netbsd_add_meta_module): New function.
17992 (grub_netbsd_list_modules): Likewise.
17993 (grub_freebsd_boot): Use relocator and finish EFI.
17994 (grub_openbsd_boot): Likewise.
17995 (grub_netbsd_setup_video): New function.
17996 (grub_netbsd_add_modules): Likewise.
17997 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
17998 and finish EFI.
17999 (grub_bsd_unload): Unload tags.
18000 (grub_bsd_load_aout): Use relocator.
18001 (grub_bsd_elf32_size_hook): New function.
18002 (grub_bsd_elf32_hook): Use relocator.
18003 (grub_bsd_elf64_size_hook): New function.
18004 (grub_bsd_elf64_hook): Use relocator.
18005 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
18006 (grub_bsd_load): Zero-out openbsd_ramdisk.
18007 (grub_bsd_load): Use relocator.
18008 (grub_cmd_openbsd): Support serial.
18009 (grub_cmd_netbsd): Support modules.
18010 (grub_cmd_freebsd_module): Use relocator.
18011 (grub_netbsd_module_load): New function.
18012 (grub_cmd_netbsd_module): Likewise.
18013 (grub_cmd_openbsd_ramdisk): Likewise.
18014 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
18015 kopenbsd_ramdisk.
18016 (GRUB_MOD_FINI): Unregister new commands.
18017 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
18018 (grub_freebsd_load_elfmodule_obj): Use relocator.
18019 (grub_freebsd_load_elfmodule): Likewise.
18020 (grub_freebsd_load_elf_meta): Likewise.
18021 (grub_netbsd_load_elf_meta): New function.
18022 (grub_openbsd_find_ramdisk): Likewise.
18023 * grub-core/loader/i386/bsd_helper.S: Removed.
18024 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
18025 * grub-core/loader/i386/bsd_trampoline.S: Removed.
18026 * grub-core/loader/i386/efi/linux.c: Likewise.
18027 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
18028 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
18029 (DEFAULT_VIDEO_MODE): Likewise.
18030 (real_mode_target): New variable.
18031 (prot_mode_target): Likewise.
18032 (initrd_mem_target): Likewise.
18033 (relocator): Likewise.
18034 (efi_mmap_buf): Likewise.
18035 (efi_mmap_size): Likewise.
18036 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
18037 (free_pages): Use relocator.
18038 (allocate_pages): Account for efi_mmap and use relocator. Return error.
18039 (grub_linux_setup_video): Return error.
18040 (grub_linux_trampoline_start): Removed.
18041 (grub_linux_trampoline_end): Likewise.
18042 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
18043 andd video parameters depending on firmware.
18044 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
18045 [GRUB_MACHINE_EFI]: Pass EFI parameters.
18046 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
18047 (grub_cmd_initrd): Use relocator.
18048 * grub-core/loader/i386/linux_trampoline.S: Removed.
18049 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
18050 (elf_sec_entsize): Likewise.
18051 (elf_sec_shstrndx): Likewise.
18052 (elf_sections): Likewise.
18053 (grub_multiboot_load): Use relocator.
18054 (grub_multiboot_get_mbi_size): Account for sections.
18055 (grub_multiboot_make_mbi): Use relocator and support sections.
18056 (grub_multiboot_add_elfsyms): New function.
18057 (grub_multiboot_free_mbi): Free sections.
18058 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
18059 (grub_linux_real_target): Likewise.
18060 (grub_linux_real_chunk): Likewise.
18061 (grub_linux16_prot_size): Likewise.
18062 (grub_linux16_boot): Use relocator.
18063 (grub_linux_unload): Unload relocator.
18064 (grub_cmd_linux): Use relocator.
18065 (grub_cmd_initrd): Likewise.
18066 * grub-core/loader/i386/pc/ntldr.c: New file.
18067 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
18068 Don't try to guess CPU frequency.
18069 (grub_xnu_set_video): Stretch bitmap.
18070 (grub_xnu_boot): Use relocator.
18071 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
18072 (grub_linux_unload): Free relocator.
18073 (grub_linux_load32): Use relocator.
18074 (grub_linux_load64): Likewise.
18075 (grub_cmd_initrd): Likewise.
18076 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
18077 (grub_multiboot_unload): Unload relocator.
18078 (grub_cmd_multiboot): Use relocator.
18079 (grub_cmd_module): Likewise.
18080 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
18081 Use relocator and support sections.
18082 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
18083 (elf_sec_entsize): Likewise.
18084 (elf_sec_shstrndx): Likewise.
18085 (elf_sections): Likewise.
18086 (grub_multiboot_load): Use relocator.
18087 (grub_multiboot_get_mbi_size): Account for sections.
18088 (grub_multiboot_make_mbi): Use relocator and support sections.
18089 (grub_multiboot_add_elfsyms): New function.
18090 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
18091 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
18092 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
18093 Prototype changed. All users updated.
18094 (grub_xnu_align_heap): Simplified.
18095 (grub_xnu_writetree_toheap): Likewise.
18096 (grub_xnu_unload): Unload relocator.
18097 (grub_cmd_xnu_kernel): Use relocator.
18098 (grub_cmd_xnu_kernel64): Likewise.
18099 (grub_xnu_register_memory): Simplified.
18100 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
18101 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
18102 EFI is finished.
18103 (grub_console_checkkey): Likewise.
18104 (grub_console_getkey): Likewise.
18105 (grub_console_getwh): Likewise.
18106 (grub_console_getxy): Likewise.
18107 (grub_console_gotoxy): Likewise.
18108 (grub_console_cls): Likewise.
18109 (grub_console_setcolorstate): Likewise.
18110 (grub_console_setcursor): Likewise.
18111 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
18112 * grub-core/tests/boot/kbsd.init-i386.S: New file.
18113 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
18114 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
18115 * grub-core/tests/boot/kernel-8086.S: Likewise.
18116 * grub-core/tests/boot/kernel-i386.S: Likewise.
18117 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
18118 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
18119 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
18120 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
18121 * grub-core/tests/boot/knetbsd.cfg: Likewise.
18122 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
18123 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
18124 * grub-core/tests/boot/linux.cfg: Likewise.
18125 * grub-core/tests/boot/linux.init-i386.S: Likewise.
18126 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
18127 * grub-core/tests/boot/linux16.cfg: Likewise.
18128 * grub-core/tests/boot/multiboot.cfg: Likewise.
18129 * grub-core/tests/boot/multiboot2.cfg: Likewise.
18130 * grub-core/tests/boot/ntldr.cfg: Likewise.
18131 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
18132 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
18133 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
18134 New definition.
18135 * include/grub/dl.h (grub_dl_unload_all): Removed.
18136 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
18137 (grub_efi_finish_boot_services): Change prototype.
18138 (grub_efi_is_finished): New variable.
18139 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
18140 Changed prototype.
18141 (grub_efiemu_finish_boot_services): Removed.
18142 (grub_machine_efiemu_init_tables): New prototype.
18143 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
18144 (grub_elf64_phdr_iterate): Likewise.
18145 * include/grub/i386/bsd.h: Include relocator.h.
18146 (freebsd_tag_header): New struct.
18147 (grub_openbsd_bios_mmap): Removed.
18148 (grub_unix_real_boot): Removed.
18149 (grub_freebsd_load_elfmodule32): Changed prototype.
18150 (grub_freebsd_load_elfmodule_obj64): Likewise.
18151 (grub_freebsd_load_elf_meta32): Likewise.
18152 (grub_freebsd_load_elf_meta64): Likewise.
18153 (grub_freebsd_add_meta): Removed.
18154 (grub_netbsd_load_elf_meta32): New prototype.
18155 (grub_netbsd_load_elf_meta64): Likewise.
18156 (grub_bsd_add_meta): Likewise.
18157 (grub_openbsd_ramdisk_descriptor): New struct.
18158 (grub_openbsd_find_ramdisk32): New prototype.
18159 (grub_openbsd_find_ramdisk64): Likewise.
18160 * include/grub/i386/coreboot/loader.h: Removed.
18161 * include/grub/i386/efi/loader.h: Likewise.
18162 * include/grub/i386/ieee1275/loader.h: Likewise.
18163 * include/grub/i386/linux.h (linux_kernel_header): Change void *
18164 to grub_uint32_t.
18165 * include/grub/i386/loader.h: Removed.
18166 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
18167 value.
18168 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
18169 (grub_phys_addr_t): New type.
18170 (grub_vtop): New inline function.
18171 (grub_map_memory): Likewise.
18172 (grub_unmap_memory): Likewise.
18173 * include/grub/i386/multiboot/loader.h: Removed.
18174 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
18175 (NETBSD_BTINFO_CONSOLE): New definition.
18176 (NETBSD_BTINFO_SYMTAB): Likewise.
18177 (NETBSD_BTINFO_MODULES): Likewise.
18178 (NETBSD_BTINFO_FRAMEBUF): Likewise.
18179 (grub_netbsd_bootinfo): New struct.
18180 (grub_netbsd_btinfo_common): Use explicit bitsize.
18181 (grub_netbsd_btinfo_mmap_entry): Removed.
18182 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
18183 (grub_netbsd_btinfo_bootdisk): New struct.
18184 (grub_netbsd_btinfo_symtab): Likewise.
18185 (grub_netbsd_btinfo_serial): Likewise.
18186 (grub_netbsd_btinfo_modules): Likewise.
18187 (grub_netbsd_btinfo_framebuf): Likewise.
18188 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
18189 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
18190 Likewise.
18191 (grub_openbsd_bootargs): Use explicit bitsize.
18192 (grub_openbsd_bootarg_console): New struct.
18193 (GRUB_OPENBSD_COM_MAJOR): New definition.
18194 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
18195 * include/grub/i386/pc/efiemu.h: Removed.
18196 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
18197 * include/grub/i386/qemu/loader.h: Removed.
18198 * include/grub/i386/relocator.h: Rewritten.
18199 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
18200 * include/grub/mips/memory.h: New file.
18201 * include/grub/mips/multiboot.h: Rewritten.
18202 * include/grub/mips/relocator.h: Rewritten.
18203 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
18204 (grub_vtop): New function.
18205 (grub_map_memory): Likewise.
18206 (grub_unmap_memory): Likewise.
18207 * include/grub/misc.h (ALIGN_DOWN): New definition.
18208 * include/grub/mm.h (grub_mm_check_real): New proto.
18209 (GRUB_MM_CHECK): New definition.
18210 * include/grub/mm_private.h: New file.
18211 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
18212 (grub_multiboot_get_mbi_size): Removed.
18213 (grub_multiboot_make_mbi): Change prottype.
18214 (grub_multiboot_set_accepts_video): New proto.
18215 (grub_multiboot_add_elfsyms): Likewise.
18216 (grub_multiboot_payload_eip): New variable.
18217 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
18218 New prototype.
18219 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
18220 New definition.
18221 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
18222 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
18223 * include/grub/powerpc/ieee1275/loader.h: Removed.
18224 * include/grub/powerpc/memory.h: New file.
18225 * include/grub/powerpc/relocator.h: Likewise.
18226 * include/grub/relocator.h: Likewise.
18227 * include/grub/relocator_private.h: Likewise.
18228 * include/grub/sparc64/ieee1275/loader.h: Removed.
18229 * include/grub/x86_64/memory.h: New file.
18230 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
18231 (grub_xnu_heap_malloc): Likewise.
18232 (grub_xnu_heap_real_start): Removed.
18233 (grub_xnu_heap_start): Likewise.
18234 (grub_xnu_relocator): New variable.
18235 (grub_xnu_heap_target_start): Likewise.
18236 * tests/util/grub-shell.in: Support non-pc.
18237 * util/grub-mkimage.c (image_targets): Fix multiboot target.
18238
18239 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18240
18241 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
18242 on malloc error.
18243 (grub_bidi_logical_to_visual): Check that malloc succeded.
18244 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
18245 puts.
18246 (grub_xputs_normal): Likewise.
18247
18248 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18249
18250 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
18251 extra_dist.
18252
18253 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18254
18255 * grub-core/efiemu/runtime/efiemu.sh: Removed.
18256
18257 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18258
18259 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
18260
18261 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18262
18263 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
18264 dprintf.
18265
18266 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
18267
18268 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
18269
18270 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18271
18272 * grub-core/normal/term.c (print_more): Fix a memory leak.
18273 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
18274 (grub_xputs_normal): Likewise.
18275
18276 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18277
18278 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
18279 the begining of the string
18280
18281 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18282
18283 * grub-core/script/script.c (grub_script_parse): Free parsed on
18284 failure.
18285
18286 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18287
18288 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
18289 on failure.
18290
18291 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18292
18293 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
18294 return.
18295
18296 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18297
18298 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
18299 (scroll_up): Fix a memory leak.
18300
18301 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18302
18303 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
18304 errors.
18305
18306 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
18307
18308 Handle USB pendrives exposed as floppies.
18309
18310 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
18311 floppy.
18312 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
18313 Check for partitions on all devices.
18314
18315 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18316
18317 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
18318 (readkey): Likewise.
18319
18320 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
18321
18322 Multiple variable names support to "export" command.
18323
18324 * normal/context.c (grub_cmd_export): "export" command supports
18325 multiple variable names.
18326
18327 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
18328
18329 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
18330 --target=drive output to Mach device name.
18331
18332 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18333
18334 New Automake based build system for GRUB.
18335
18336 * ABOUT-NLS: New file.
18337 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
18338 in Makefile.util.def file.
18339 * Makefile.util.def: New file. Autogen build definitions file for
18340 GRUB host utils.
18341 * conf/Makefile.common: New file. Common variables for GRUB host
18342 utils and target modules.
18343 * conf/Makefile.extra-dist: New file. Extra files for make dist.
18344 * docs/Makefile.am: New file. Automake file for docs.
18345 * gentpl.py: New file. Python script to generate Autogen
18346 template.
18347 * grub-core/Makefile.am: New file. GRUB target modules' rules
18348 that doesn't fit in Makefile.core.def file.
18349 * grub-core/Makefile.core.def: New file. Autogen build
18350 definitions file for GRUB target modules.
18351 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
18352 specific setjmp.S file.
18353 * po/Makefile.am: New file.
18354
18355 * .bzrignore: New ignores.
18356 * INSTALL: New requirements, without Ruby.
18357 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
18358 * autogen.sh: Updated to invoke autogen as necessary.
18359 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
18360 and defines for Automake conditionals.
18361 * geninit.sh: Refactoring.
18362
18363 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
18364 necessary.
18365 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
18366 New prototype.
18367
18368 * include/grub/test.h: Fix functional test modules' naming.
18369 * grub-core/tests/example_functional_test.c: Fix test module name.
18370
18371 * util/misc.c: Hosted versions' of grub functions for libgrub.a
18372 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
18373 * util/grub-editenv.c: Likewise.
18374 * util/grub-fstest.c: Likewise.
18375 * util/grub-mkdevicemap.c: Likewise.
18376 * util/grub-mkfont.c: Likewise.
18377 * util/grub-mkimage.c: Likewise.
18378 * util/grub-mkpasswd-pbkdf2.c: Likewise.
18379 * util/grub-probe.c: Likewise.
18380 * util/grub-script-check.c: Likewise.
18381 * util/i386/pc/grub-setup.c: Likewise.
18382 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18383
18384 * tests/util/grub-shell.in: Fix override directory path.
18385 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
18386 * util/import_gcry.py: Create Makefile.gcry.def file instead.
18387
18388 * util/lvm.c: Update #includes.
18389 * util/raid.c: Likewise.
18390 * util/resolve.c: Likewise.
18391 * grub-core/bus/emu/pci.c: Likewise.
18392 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
18393 * grub-core/lib/posix_wrap/string.h: Likewise.
18394 * grub-core/kern/emu/main.c: Likewise.
18395
18396 * grub-core/gensymlist.sh: New file. Script for generating kernel
18397 symbols file.
18398 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
18399
18400 * grub-core/gentrigtables.c: Fix unused variable warnings.
18401
18402 * Makefile.in: Removed.
18403 * conf/any-emu.rmk: Removed.
18404 * conf/common.rmk: Removed.
18405 * conf/i386-coreboot.rmk: Removed.
18406 * conf/i386-efi.rmk: Removed.
18407 * conf/i386-ieee1275.rmk: Removed.
18408 * conf/i386-multiboot.rmk: Removed.
18409 * conf/i386-pc.rmk: Removed.
18410 * conf/i386-qemu.rmk: Removed.
18411 * conf/i386.rmk: Removed.
18412 * conf/mips-yeeloong.rmk: Removed.
18413 * conf/mips.rmk: Removed.
18414 * conf/powerpc-ieee1275.rmk: Removed.
18415 * conf/sparc64-ieee1275.rmk: Removed.
18416 * conf/tests.rmk: Removed.
18417 * conf/x86-efi.rmk: Removed.
18418 * conf/x86_64-efi.rmk: Removed.
18419 * gendistlist.sh: Removed.
18420 * geninitheader.sh: Removed.
18421 * genkernsyms.sh.in: Removed.
18422 * genmk.rb: Removed.
18423 * gensymlist.sh.in: Removed.
18424 * mkinstalldirs: Removed.
18425 * boot: Moved ...
18426 * grub-core/boot: ... to here.
18427 * bus: Moved ...
18428 * grub-core/bus: ... to here.
18429 * commands: Moved ...
18430 * grub-core/commands: ... to here.
18431 * disk: Moved ...
18432 * grub-core/disk: ... to here.
18433 * efiemu: Moved ...
18434 * grub-core/efiemu: ... to here.
18435 * font: Moved ...
18436 * grub-core/font: ... to here.
18437 * fs: Moved ...
18438 * grub-core/fs: ... to here.
18439 * gencmdlist.sh: Moved ...
18440 * grub-core/gencmdlist.sh: ... to here.
18441 * genemuinit.sh: Moved ...
18442 * grub-core/genemuinit.sh: ... to here.
18443 * genemuinitheader.sh: Moved ...
18444 * grub-core/genemuinitheader.sh: ... to here.
18445 * genfslist.sh: Moved ...
18446 * grub-core/genfslist.sh: ... to here.
18447 * genhandlerlist.sh: Moved ...
18448 * grub-core/genhandlerlist.sh: ... to here.
18449 * genmoddep.awk: Moved ...
18450 * grub-core/genmoddep.awk: ... to here.
18451 * genmodsrc.sh: Moved ...
18452 * grub-core/genmodsrc.sh: ... to here.
18453 * genpartmaplist.sh: Moved ...
18454 * grub-core/genpartmaplist.sh: ... to here.
18455 * genparttoollist.sh: Moved ...
18456 * grub-core/genparttoollist.sh: ... to here.
18457 * genterminallist.sh: Moved ...
18458 * grub-core/genterminallist.sh: ... to here.
18459 * gentrigtables.c: Moved ...
18460 * grub-core/gentrigtables.c: ... to here.
18461 * genvideolist.sh: Moved ...
18462 * grub-core/genvideolist.sh: ... to here.
18463 * gettext: Moved ...
18464 * grub-core/gettext: ... to here.
18465 * gfxmenu: Moved ...
18466 * grub-core/gfxmenu: ... to here.
18467 * gnulib: Moved ...
18468 * grub-core/gnulib: ... to here.
18469 * hello: Moved ...
18470 * grub-core/hello: ... to here.
18471 * hook: Moved ...
18472 * grub-core/hook: ... to here.
18473 * io: Moved ...
18474 * grub-core/io: ... to here.
18475 * kern: Moved ...
18476 * grub-core/kern: ... to here.
18477 * lib: Moved ...
18478 * grub-core/lib: ... to here.
18479 * loader: Moved ...
18480 * grub-core/loader: ... to here.
18481 * mmap: Moved ...
18482 * grub-core/mmap: ... to here.
18483 * normal: Moved ...
18484 * grub-core/normal: ... to here.
18485 * partmap: Moved ...
18486 * grub-core/partmap: ... to here.
18487 * parttool: Moved ...
18488 * grub-core/parttool: ... to here.
18489 * script: Moved ...
18490 * grub-core/script: ... to here.
18491 * term: Moved ...
18492 * grub-core/term: ... to here
18493 * tests/example_functional_test.c: Moved ...
18494 * grub-core/tests/example_functional_test.c: ... to here.
18495 * tests/lib/functional_test.c: Moved ...
18496 * grub-core/tests/lib/functional_test.c: ... to here.
18497 * tests/lib/test.c: Moved ...
18498 * grub-core/tests/lib/test.c: ... to here.
18499 * video: Moved ...
18500 * grub-core/video: ... to here.
18501
18502 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18503
18504 Replace --enable-grub-emu-modules with grub-emu-lite.
18505
18506 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
18507 cache.S.
18508
18509 * include/grub/emu/misc.h (grub_emu_init): New prototype.
18510 * kern/emu/full.c: New file. For grub-emu specific initialization.
18511 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
18512 * kern/emu/main.c: Call initialization function grub_emu_init.
18513
18514 * Makefile.in: Include grub-emu-lite in install.
18515 * commands/parttool.c: Use grub_no_autoload to differentiate
18516 between grub-emu and grub-emu-lite.
18517 * include/grub/misc.h: New variable grub_no_autoload.
18518
18519 * conf/any-emu.rmk: New rules for grub-emu-lite.
18520 * configure.ac: Remove --enable-grub-emu-modules.
18521 * genmk.rb: Cleanup unnecessary rules.
18522 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
18523
18524 * normal/main.c: Don't load list files on grub-emu-lite.
18525 * util/misc.c (grub_arch_sync_caches): Removed.
18526
18527 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
18528
18529 * kern/mips/startup.S (grub_prefix): Update comment to refer to
18530 grub-mkimage rather than grub-mkelfimage.
18531 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
18532
18533 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
18534
18535 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
18536 a key after CapsLock or NumLock. It's just a qemu bug.
18537
18538 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18539
18540 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
18541 needed by libusb wrapper.
18542
18543 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18544
18545 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
18546
18547 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18548
18549 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
18550 --nounzip is passed.
18551
18552 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
18553
18554 USB hotunplugging and USB serial support.
18555
18556 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
18557 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
18558 (grub_uhci_transfer): Respect timeout and set *actual.
18559 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
18560 non-standard length.
18561 (grub_usb_device_attach): Autoload modules.
18562 (GRUB_MOD_INIT): Set grub_term_poll_usb.
18563 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
18564 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
18565 users updated.
18566 (grub_usb_add_hub): Fill nports and children.
18567 (attach_root_port): Receive hub instead of controller.
18568 All users updated. Fill hub->devices.
18569 (grub_usb_root_hub): Allocate hub->devices.
18570 (detach_device): New function.
18571 (poll_nonroot_hub): Fill children and detach devices.
18572 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
18573 actual arguments. All users updated.
18574 (grub_usb_bulk_read_extended): New function.
18575 * bus/usb/serial/common.c: New file.
18576 * bus/usb/serial/ftdi.c: Likewise.
18577 * bus/usb/serial/pl2303.c: Likewise.
18578 * commands/terminal.c (handle_command): Support wildcard.
18579 * commands/usbtest.c: Output "Unknown" instead of empty string.
18580 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
18581 (usbserial_common_mod_SOURCES): New variable.
18582 (usbserial_common_mod_CFLAGS): Likewise.
18583 (usbserial_common_mod_LDFLAGS): Likewise.
18584 (pkglib_MODULES): Add usbserial_pl2303.mod.
18585 (usbserial_pl2303_mod_SOURCES): New variable.
18586 (usbserial_pl2303_mod_CFLAGS): Likewise.
18587 (usbserial_pl2303_mod_LDFLAGS): Likewise.
18588 (pkglib_MODULES): Add usbserial_ftdi.mod.
18589 (usbserial_ftdi_mod_SOURCES): New variable.
18590 (usbserial_ftdi_mod_CFLAGS): Likewise.
18591 (usbserial_ftdi_mod_LDFLAGS): Likewise.
18592 (pkglib_MODULES): Add serial.mod.
18593 (serial_mod_SOURCES): New variable.
18594 (serial_mod_CFLAGS): Likewise.
18595 (serial_mod_LDFLAGS): Likewise.
18596 * conf/i386-pc.rmk: Likewise.
18597 * conf/mips-yeeloong.rmk: Likewise.
18598 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
18599 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
18600 * disk/usbms.c (first_available_slot): New variable.
18601 (grub_usbms_attach): Don't reuse free slots due to potential cache
18602 problems.
18603 * include/grub/serial.h: Moved to ..
18604 * include/grub/ns8250.h: ...this.
18605 * include/grub/serial.h: New file.
18606 * include/grub/term.h (grub_term_poll_usb): New variable.
18607 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
18608 readkey. All users updated.
18609 (grub_terminfo_output_state): Pass term to put.
18610 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
18611 (grub_usb_controller_dev): Add timeout and actual arguments to
18612 transfer. All users updated.
18613 (grub_usb_interface): New field detach_data.
18614 (grub_usb_device): New fields children and nports.
18615 (grub_usb_ep_type_t): New type.
18616 (grub_usb_get_ep_type): New function.
18617 (grub_usb_bulk_read_extended): Likewise.
18618 * include/grub/usbdesc.h (grub_usb_desc): New type.
18619 * include/grub/usbserial.h: New file.
18620 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
18621 * kern/term.c (grub_term_poll_usb): New variable.
18622 (grub_getkey): Call grub_term_poll_usb if set.
18623 (grub_checkkey): Likewise.
18624 (grub_getkeystatus): Likewise.
18625 * term/serial.c: Moved controller-specific parts to ...
18626 * term/ns8250.c: ... here.
18627 * term/serial.c: Mostly rewritten.
18628 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
18629 according to spec.
18630
18631 2010-08-20 Robert Millan <rmh@gnu.org>
18632
18633 Make kFreeBSD code more generic to support ext2fs as root, ufs as
18634 a separate module and maybe other interesting combinations.
18635
18636 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
18637 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
18638 (kfreebsd_entry): Add generic filesystem module load routine.
18639 Map GRUB `ext2' to kFreeBSD `ext2fs'.
18640
18641 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18642
18643 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
18644 "numcenter" (I misunderstood the purpose of this entry).
18645 * docs/grub.texi (sendkey): Likewise.
18646
18647 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18648
18649 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
18650 status flag options; simply omitting the option is equivalent and
18651 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
18652 (keysym_table): Rename "num5numlock" to "numlock".
18653 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
18654 can uniformly say that only the last of multiple `sendkey'
18655 invocations has any effect.
18656 * docs/grub.texi (sendkey): New section.
18657
18658 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
18659
18660 * commands/i386/pc/sendkey.c (options): Fix three typos.
18661
18662 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18663
18664 Implement sendkey support.
18665
18666 * commands/i386/pc/sendkey.c: New file.
18667 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
18668 (sendkey_mod_SOURCES): New variable.
18669 (sendkey_mod_CFLAGS): Likewise.
18670 (sendkey_mod_LDFLAGS): Likewise.
18671
18672 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18673
18674 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
18675 fix warnings from Autoconf.
18676
18677 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18678
18679 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
18680 to avoid false positives with some assemblers that output things
18681 like "someprefix_func" as part of their output.
18682
18683 2010-08-15 Robert Millan <rmh@gnu.org>
18684
18685 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
18686 errors.
18687 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
18688 grub_get_libzfs_handle() errors.
18689
18690 2010-08-14 Robert Millan <rmh@gnu.org>
18691
18692 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
18693 filesystem is not ZFS.
18694
18695 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18696
18697 Fix for misspelled color names defaulting to black/black (bug
18698 reported by Doug Nazar)
18699
18700 * include/grub/normal.h (grub_parse_color_name_pair): Add return
18701 status to prototype.
18702 * normal/color.c (grub_parse_color_name_pair): Return failure
18703 status.
18704 (grub_env_write_color_normal): Ignore bad color names.
18705 (grub_env_write_color_highlight): Likewise.
18706 * normal/main.c (GRUB_MOD_INIT): Set default color names.
18707
18708 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18709
18710 "shift" command support to GRUB script.
18711
18712 * include/grub/script_sh.h (grub_script_shift): New prototype.
18713 * script/execute.c (grub_script_shift): New function.
18714 * script/main.c (grub_script_init): Register shift command.
18715 (grub_script_fini): Unregister shift command.
18716 * util/grub-script-check.c (grub_script_cmd_shift): New function.
18717
18718 * tests/grub_script_shift.in: New testcase.
18719 * conf/tests.rmk: Rules for new testcase.
18720
18721 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18722
18723 "continue" command support to GRUB script.
18724
18725 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
18726 (grub_script_break): Continue support.
18727 * script/main.c (grub_script_init): Register continue command.
18728 (grub_script_fini): Unregister continue command.
18729
18730 * tests/grub_script_continue.in: New testcase.
18731 * conf/tests.rmk: Rules for new testcase.
18732
18733 2010-08-12 BVK Chaitanya <bvk@dbook>
18734
18735 "break" command support to GRUB script.
18736
18737 * conf/common.rmk: Rule updates to grub-script-check.
18738 * include/grub/misc.h (grub_min): New function.
18739 * include/grub/script_sh.h (grub_script_init): New prototype.
18740 (grub_script_fini): New prototype.
18741 (grub_script_break): New prototype.
18742 * script/main.c (grub_script_init): New function.
18743 (grub_script_fini): New function.
18744 * script/execute.c (grub_script_break): New function.
18745 * normal/main.c: Calls to grub_script_{init,fini}.
18746 * util/grub-script-check.c (grub_script_break): New function.
18747
18748 * tests/grub_script_break.in: New testcase.
18749 * conf/tests.rmk: Rules for new test case.
18750
18751 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18752
18753 Function parameters support to GRUB script.
18754
18755 * script/yylex.l (VARIABLE): Regular expression update.
18756 * script/function.c (grub_script_function_call): Moved ...
18757 * script/execute.c (grub_script_function_call): ... to here.
18758 (grub_script_execute_arglist_to_argv): Removed.
18759 (grub_script_arglist_to_argv): New function.
18760 * script/argv.c: New file.
18761 (grub_script_argv_free): New function.
18762 (grub_script_argv_next): Likewise.
18763 (grub_script_argv_append): Likewise.
18764 (grub_script_argv_split_append): Likewise.
18765 * include/grub/script_sh.h (grub_script_argv): New struct.
18766 (grub_script_argv_free): New function.
18767 (grub_script_argv_next): Likewise.
18768 (grub_script_argv_append): Likewise.
18769 (grub_script_argv_split_append): Likewise.
18770
18771 * conf/common.rmk (normal.mod): New source script/argv.c.
18772
18773 * tests/grub_script_echo1.in: More tests.
18774 * tests/grub_script_vars1.in: Likewise.
18775 * tests/grub_script_functions.in: New test case.
18776 * conf/tests.rmk: Rules for new testcase.
18777
18778 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18779
18780 Remove grub_script_cmdblock struct.
18781
18782 * include/grub/script_sh.h: Remove grub_script_cmdblock.
18783 * script/parser.y: Likewise.
18784 * script/execute.c: Rename cmdblock suffix to cmdlist.
18785 * script/script.c: Likewise.
18786 * util/grub-script-check.c: Likewise.
18787
18788 2010-08-11 Yves Blusseau <blusseau@zetam.org>
18789
18790 * .bzrignore: add grub-macho2img
18791
18792 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18793
18794 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
18795
18796 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18797
18798 Remove the dump of sm712 initialisation sequence.
18799
18800 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
18801 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
18802 (GRUB_VGA_IO_MISC_WRITE): Likewise.
18803 (GRUB_VGA_CR_*): Added many registers.
18804 (GRUB_VGA_SR_*): Likewise.
18805 (GRUB_VGA_GR_*): Likewise.
18806 (grub_vga_write_arx): New function.
18807 (grub_video_hw_config): New struct.
18808 (grub_vga_set_geometry): New function.
18809 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
18810 GRUB_PCI_CLASS_SUBCLASS_VGA.
18811 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
18812 * video/sm712.c (grub_sm712_write_reg): New function
18813 (grub_sm712_read_reg): Likewise.
18814 (grub_sm712_sr_write): Likewise.
18815 (grub_sm712_gr_write): Likewise.
18816 (grub_sm712_cr_write): Likewise.
18817 (grub_sm712_write_arx): Likewise.
18818 (grub_sm712_cr_shadow_write): Likewise.
18819 (grub_sm712_write_dda_lookup): Likewise.
18820 (grub_video_sm712_setup): Initialise the video rather then
18821 blindly replay the dump.
18822 (main) [TEST]: Add a routine to be able to compile as standalone for
18823 tests.
18824 * video/sm712_init.c (sm712_init): Removed.
18825 (sm712_sr_seq1): New array.
18826 (sm712_sr_seq2): Likewise.
18827
18828 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18829
18830 * include/grub/vga.h: Add missing grub/pci.h include.
18831
18832 2010-08-10 Yves Blusseau <blusseau@zetam.org>
18833
18834 * util/grub-macho2img.c (main): fix typo
18835
18836 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18837
18838 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
18839 (grub_vga_gr_read): Likewise.
18840 (grub_vga_cr_write): Likewise.
18841 (grub_vga_cr_read): Likewise.
18842 (grub_vga_sr_write): Likewise.
18843 (grub_vga_sr_read): Likewise.
18844 (grub_vga_palette_read): Likewise.
18845 (grub_vga_palette_write): Likewise.
18846 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
18847 (grub_sm712_sr_read): New function.
18848 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
18849 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
18850
18851 2010-08-09 Robert Millan <rmh@gnu.org>
18852
18853 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
18854 out unused variables on non-ZFS build.
18855
18856 2010-08-08 Robert Millan <rmh@gnu.org>
18857
18858 Fix path generation for sub-filesystems in ZFS.
18859
18860 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
18861 missing slash.
18862
18863 2010-08-08 Robert Millan <rmh@gnu.org>
18864
18865 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
18866
18867 2010-08-08 Robert Millan <rmh@gnu.org>
18868
18869 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
18870 exist, issue a proper error message (rely on `ls' for translated
18871 strings).
18872
18873 2010-08-08 Robert Millan <rmh@gnu.org>
18874
18875 Fix grub-probe invocation.
18876
18877 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
18878
18879 2010-08-04 Robert Millan <rmh@gnu.org>
18880
18881 * configure.ac: Remove checks for getfsstat() and getmntany().
18882 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
18883 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
18884 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
18885 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
18886 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
18887 function.
18888 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
18889 via find_mount_point_from_dir() and getfsstat() / getmntany().
18890
18891 2010-08-04 Robert Millan <rmh@gnu.org>
18892
18893 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18894 (grub_find_zpool_from_mount_point): Merge into ...
18895 (grub_find_zpool_from_dir): ... this.
18896 * kern/emu/misc.c: Likewise.
18897
18898 * kern/emu/misc.c
18899 (grub_make_system_path_relative_to_its_root): Replace
18900 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
18901 with grub_find_zpool_from_dir().
18902 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
18903
18904 2010-08-04 Robert Millan <rmh@gnu.org>
18905
18906 Support OpenSolaris in ZFS device resolution.
18907
18908 * configure.ac: Check for getmntany().
18909 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
18910 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
18911 support.
18912
18913 2010-08-03 Robert Millan <rmh@gnu.org>
18914
18915 Fix grub-emu build.
18916
18917 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
18918 * include/grub/emu/misc.h: ... here.
18919
18920 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
18921 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
18922
18923 * util/misc.c: Remove `<grub/util/libzfs.h>'.
18924 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
18925 (grub_get_libzfs_handle): Move to ...
18926 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
18927 (grub_get_libzfs_handle): ... here.
18928
18929 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
18930
18931 * script/execute.c (grub_script_execute_cmdline): Check for NULL
18932 as command name case.
18933
18934 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
18935
18936 * disk/raid.c (insert_array): Select unique numbers for named arrays
18937 as well, for use as keys in the disk cache.
18938
18939 2010-08-01 Robert Millan <rmh@gnu.org>
18940
18941 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
18942 kFreeBSD device name, except on ZFS where the filesystem label is
18943 used.
18944 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
18945 `/boot/zfs/zpool.cache'.
18946 Set mountfrom kernel variable using ${kfreebsd_device}.
18947
18948 2010-08-01 Robert Millan <rmh@gnu.org>
18949
18950 Make it even harder to use uninitialized `libzfs_handle' (and
18951 make the interface a bit simpler).
18952
18953 * include/grub/util/misc.h (grub_util_init_libzfs)
18954 (libzfs_handle): Remove.
18955 (grub_get_libzfs_handle): New prototype.
18956
18957 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
18958 attribute.
18959 (grub_util_init_libzfs): Remove.
18960 (grub_get_libzfs_handle): New function.
18961
18962 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
18963 grub_get_libzfs_handle() to obtain a libzfs handle instead of
18964 accessing `libzfs_handle' directly.
18965
18966 2010-08-01 Robert Millan <rmh@gnu.org>
18967
18968 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18969 (grub_find_zpool_from_mount_point): New function prototypes.
18970
18971 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
18972 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
18973
18974 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
18975 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
18976 `static' attribute.
18977
18978 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
18979 finding zpool from mount point into ...
18980 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
18981
18982 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
18983 requested path is part of a ZFS pool, use
18984 grub_find_zpool_from_mount_point() to detect its filesystem name,
18985 and generate a path with `/fsname@path' syntax.
18986
18987 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18988
18989 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
18990 (void) rather than () so that this is a proper prototype.
18991
18992 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18993
18994 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
18995
18996 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18997
18998 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
18999 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
19000
19001 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19002
19003 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
19004
19005 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19006
19007 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
19008
19009 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19010
19011 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
19012 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
19013 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
19014 disable gfxpayload.
19015 (Shell-like scripting): Add real content.
19016 (Serial terminal): Suggest `terminal_input serial; terminal_output
19017 serial' rather than putting the two commands on separate lines,
19018 since console input will be inoperative after the first command.
19019 (menuentry): Document --class, --users, and --hotkey options.
19020 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
19021 Vladimir Serbinenko).
19022
19023 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19024 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19025
19026 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
19027
19028 2010-08-01 Robert Millan <rmh@gnu.org>
19029
19030 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19031 (grub_find_zpool_from_mount_point): New function prototypes.
19032
19033 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19034 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19035
19036 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19037 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19038 `static' attribute.
19039
19040 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19041 finding zpool from mount point into ...
19042 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19043
19044 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19045 requested path is part of a ZFS pool, use
19046 grub_find_zpool_from_mount_point() to detect its filesystem name,
19047 and generate a path with `/fsname@path' syntax.
19048
19049 2010-08-01 Robert Millan <rmh@gnu.org>
19050
19051 Prevent accidental use of uninitialized libzfs_handle.
19052
19053 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
19054 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
19055 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
19056
19057 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19058
19059 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
19060 util/grub.d/10_linux.in). Fixes Debian bug #591093.
19061
19062 2010-08-01 Robert Millan <rmh@gnu.org>
19063
19064 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
19065
19066 2010-07-31 Robert Millan <rmh@gnu.org>
19067
19068 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
19069
19070 2010-07-31 Robert Millan <rmh@gnu.org>
19071
19072 * kern/emu/misc.c: Add missing license header.
19073
19074 2010-07-31 Robert Millan <rmh@gnu.org>
19075
19076 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
19077
19078 * include/grub/util/libnvpair.h: Include `<config.h>'.
19079 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
19080 declaring libnvpair prototypes ourselves.
19081 * include/grub/util/libzfs.h: Include `<config.h>'.
19082 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
19083 declaring libzfs prototypes ourselves.
19084
19085 (libzfs_handle): Moved to ...
19086 * include/grub/util/misc.h (libzfs_handle): ... here.
19087 Include `<grub/util/libzfs.h>'.
19088
19089 2010-07-30 Robert Millan <rmh@gnu.org>
19090
19091 * include/grub/emu/misc.h: Add missing license header.
19092
19093 2010-07-30 Robert Millan <rmh@gnu.org>
19094
19095 Enable `grub-probe -t device' resolution on ZFS.
19096
19097 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
19098 * include/grub/util/libnvpair.h: New file.
19099 * include/grub/util/libzfs.h: New file.
19100
19101 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
19102 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
19103 `<grub/util/libnvpair.h>'.
19104 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
19105
19106 (find_mount_point_from_dir): New static function.
19107 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
19108 function.
19109 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
19110 find_root_device_from_libzfs() before ressorting to find_root_device().
19111
19112 * include/grub/util/misc.h (grub_util_init_libzfs): New function
19113 prototype.
19114 * util/misc.c: Include `<grub/util/libzfs.h>'.
19115 (grub_util_init_libzfs): New function.
19116 [HAVE_LIBZFS] (libzfs_handle): New global variable.
19117 [HAVE_LIBZFS] (fini_libzfs): New static function.
19118 (grub_util_init_libzfs): New function.
19119 * util/grub-probe.c (main): Call grub_util_init_libzfs().
19120
19121 2010-07-30 Robert Millan <rmh@gnu.org>
19122
19123 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
19124 (xmalloc, xrealloc, xstrdup, xasprintf): Add
19125 `warn_unused_result' attribute.
19126 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
19127 (grub_xasprintf, grub_xvasprintf): Likewise.
19128 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
19129
19130 2010-07-29 Robert Millan <rmh@gnu.org>
19131
19132 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
19133 (probe): Handle `PRINT_FS_LABEL'.
19134 (main): Handle `-t fs_label'.
19135
19136 2010-07-29 Robert Millan <rmh@gnu.org>
19137
19138 * configure.ac: Remove grub-mkisofs checks.
19139
19140 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
19141
19142 * util/ieee1275/grub-install.in: Don't use empty grub_device.
19143 Reported by: Lennart Sorensen.
19144
19145 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19146
19147 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
19148 prior to terminal_input/terminal_output separation. It's been over 1.5
19149 years and those versions weren't widely deployed.
19150
19151 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
19152
19153 * disk/raid.c (insert_array): Don't count named arrays when looking
19154 for unused array numbers.
19155 Reported and tested by: Michael Guntsche.
19156
19157 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19158
19159 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
19160 implementation of this so that grub-emu links again, with a note
19161 that this should support hotplugging in the future.
19162
19163 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19164
19165 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
19166
19167 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19168
19169 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
19170 handle on failure.
19171 (grub_loopback_close): Remove empty function.
19172 (grub_loopback_dev): Remove close method.
19173
19174 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19175
19176 Disable EFI cursor when the EFI console becomes inactive.
19177
19178 * term/efi/console.c (grub_efi_console_init): New function.
19179 (grub_efi_console_fini): New function.
19180 (grub_console_term_output): Register init and fini methods.
19181
19182 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19183
19184 * tests/util/grub-shell-tester.in: Remove bashism and declare as
19185 sh script.
19186
19187 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19188
19189 * disk/loopback.c (grub_loopback): Replace filename with file.
19190 (delete_loopback): Handle new semantics.
19191 (grub_cmd_loopback): Likewise.
19192 (grub_loopback_iterate): Likewise.
19193 (grub_loopback_close): Likewise.
19194
19195 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19196
19197 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
19198 with -p "".
19199 Reported by: Tito Keitel.
19200
19201 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19202
19203 * docs/grub.texi (Naming convention): Document new naming convention.
19204
19205 2010-07-20 Vadim Solomin <vadic052@gmail.com>
19206 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19207
19208 Generate device.map in something closer to the old ordering.
19209
19210 * util/deviceiter.c (struct device): New declaration.
19211 (compare_file_names): Rename to ...
19212 (compare_devices): ... this. Sort by kernel name in preference to
19213 the stable by-id name, but keep the latter as a fallback comparison.
19214 Update header comment.
19215 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
19216 of `struct device' rather than of plain file names.
19217
19218 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
19219
19220 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
19221 on i386.
19222
19223 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19224
19225 * commands/acpi.c (setup_common_tables): Use sizeof instead of
19226 hardcoding size.
19227 (setv1table): Likewise.
19228
19229 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19230
19231 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
19232 removing the homehost if present.
19233 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
19234 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
19235 removing the homehost if present.
19236 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
19237 if possible.
19238 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
19239
19240 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
19241 parameter. Set its pointer target to 0.
19242 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
19243 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
19244 `data_offset' value from the superblock for 1.x metadata.
19245 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
19246 data on the device.
19247 (insert_array): Record the start sector of data on the device.
19248 (grub_raid_register): Pass start_sector parameters to
19249 grub_raid_list->detect and insert_array.
19250 * include/grub/raid.h (struct grub_raid_array): Add start_sector
19251 member.
19252 (struct grub_raid): Add start_sector parameter to `detect'.
19253
19254 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
19255 __attribute__ ((packed)), leaving a comment.
19256 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
19257 (grub_mdraid_detect_09): ... here and ...
19258 (grub_mdraid_detect_1x): ... here.
19259
19260 2010-07-20 Peter Henn <peter.henn@web.de>
19261
19262 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
19263 chunk size and disk size, which are already given as sector counts
19264 as distinct from the 0.90 units. Fetch the correct device number
19265 from the role table instead of using the table index.
19266
19267 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
19268
19269 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
19270 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
19271 (WriteMostly1): New macro.
19272 Set array->name to NULL for metadata format 0.90. Add support for
19273 metadata 1.x. Fix some comments.
19274 * disk/raid.c (): Add support for name based RAID arrays. Fix a
19275 few comments.
19276 * util/getroot.c (grub_util_get_grub_dev): Add support for
19277 /dev/md/name style devices.
19278
19279 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19280
19281 * .bzrignore: Ignore 20_linux_xen.
19282
19283 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
19284
19285 * util/import_unicode.py: Remove unnecessary imports.
19286
19287 2010-07-17 Aleš Nesrsta <starous@volny.cz>
19288
19289 Hotplugging and USB hub support.
19290
19291 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
19292 (grub_ohci): Likewise.
19293 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
19294 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
19295 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
19296 (GRUB_OHCI_CTRL_EDS): Likewise.
19297 (GRUB_OHCI_BULK_EDS): Likewise.
19298 (GRUB_OHCI_TDS): Likewise.
19299 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
19300 (grub_ohci_ed_phys2virt): New function.
19301 (grub_ohci_virt_to_phys): Likewise.
19302 (grub_ohci_td_phys2virt): Likewise.
19303 (grub_ohci_td_virt2phys): Likewise.
19304 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
19305 attachment.
19306 (grub_ohci_find_ed): New function.
19307 (grub_ohci_alloc_td): Likewise.
19308 (grub_ohci_free_td): Likewise.
19309 (grub_ohci_free_tds): Likewise.
19310 (grub_ohci_transfer): Use previously allocated memory.
19311 (grub_ohci_portstatus): Reset status changed bit.
19312 (grub_ohci_detect_dev): Supply status changed.
19313 (grub_ohci_fini_hw): Free memory.
19314 (grub_ohci_restore_hw): Reallocate memory.
19315 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
19316 Reset status change.
19317 (grub_uhci_detect_dev): Supply status_change.
19318 * bus/usb/usb.c (attach_hooks): New var.
19319 (grub_usb_device_attach): New function.
19320 (grub_usb_register_attach_hook_class): Likewise.
19321 (grub_usb_unregister_attach_hook_class): Likewise.
19322 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
19323 (grub_usb_add_hub): Reset connection changed bit.
19324 (attach_root_port): New function.
19325 (grub_usb_root_hub): Likewise.
19326 (poll_nonroot_hub): Likewise.
19327 (grub_usb_poll_devices): Likewise.
19328 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
19329 * disk/usbms.c (grub_usbms_open): Use device hooks.
19330 (grub_usbms_iterate) :Poll devices.
19331 (grub_usbms_finddevs): Split into ...
19332 (grub_usbms_attach): ... this ...
19333 (grub_usbms_attach): ... and this.
19334 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
19335 in detect_dev.
19336 (grub_usb_interface): New fields attached and detach_hook.
19337 (grub_usb_attach_hook_class): New type.
19338 (grub_usb_attach_desc): New struct.
19339 (grub_usb_register_attach_hook_class): New function.
19340 (grub_usb_unregister_attach_hook_class): Likewise.
19341 (grub_usb_poll_devices): Likewise.
19342 (grub_usb_device_attach): Likewise.
19343 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
19344 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
19345
19346 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19347
19348 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
19349 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
19350 delta determination style. Works with most NetBSD partitions too.
19351
19352 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19353
19354 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
19355 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
19356
19357 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19358
19359 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
19360
19361 2010-07-14 Anton Blanchard <anton@samba.org>
19362
19363 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
19364 ET_DYN files.
19365
19366 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19367
19368 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
19369
19370 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19371
19372 * kern/partition.c (grub_partition_check_containment): New function to
19373 check that a partition is physically contained in a parent. Since
19374 offsets are relative (and non-negative), this reduces to checking that
19375 the partition ends before its parent.
19376 (grub_partition_map_probe): Discard out-of-range sub-partitions.
19377 (grub_partition_iterate): Likewise.
19378 * include/grub/partition.h (grub_partition_map): Slightly more detailed
19379 comments.
19380 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
19381 partitions that start before their parent, and add debug printfs.
19382
19383 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19384
19385 * Makefile.in (.SUFFIX): Spell correctly, as ...
19386 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
19387 bare module name without `.mod', e.g. `test') tried to invoke a
19388 Modula-2 compiler.
19389
19390 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19391
19392 * README: Point to the Info manual.
19393
19394 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
19395
19396 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
19397 2nd superblock position from partition size.
19398
19399 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
19400
19401 * Makefile.in (MAINTAINER_CLEANFILES): Remove
19402 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
19403 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
19404 outputs.
19405
19406 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19407
19408 Restructure SCSI .id handling.
19409 Reported and tested by: Aleš Nesrsta.
19410
19411 * disk/ata.c (grub_atapi_close): Removed. All users updated.
19412 (grub_atapi_dev): Changed .name to "ata". New field .id.
19413 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
19414 (grub_usbms_dev): New field .id.
19415 * disk/scsi.c (grub_scsi_iterate): Generate name.
19416 (grub_scsi_open): Parse name.
19417 * include/grub/scsi.h (grub_make_scsi_id): New function.
19418 (grub_scsi_dev): Change iterate and open to number instead of naming
19419 busses. All users updated.
19420 (grub_scsi): Remove name. Add .bus.
19421
19422 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19423
19424 * commands/help.c (grub_cmd_help): Fix a typo.
19425
19426 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19427
19428 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
19429 Reported and tested by: Colin Watson.
19430
19431 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19432
19433 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
19434 in this context.
19435
19436 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
19437
19438 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
19439
19440 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
19441
19442 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
19443 indentation.
19444
19445 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19446
19447 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
19448 and disk/raid6_recover.c.
19449 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19450 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
19451
19452 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19453
19454 * term/gfxterm.c (repaint_schedulded): Rename to ...
19455 (repaint_scheduled): ... this. Update all callers.
19456 (repaint_was_schedulded): Rename to ...
19457 (repaint_was_scheduled): ... this. Update all callers.
19458
19459 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19460
19461 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
19462 which we expect to be handled by upper layers.
19463
19464 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
19465
19466 * bus/usb/usbhub.c: #include time.h header.
19467
19468 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19469
19470 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
19471 entry_name also for entries without stat blocks (e.g. ".."); fixes
19472 corruption of the first entry in a directory.
19473
19474 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19475
19476 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
19477 after setting gfxterm as the active terminal. GRUB_BACKGROUND
19478 doesn't work otherwise.
19479
19480 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19481
19482 * docs/grub.texi (Features): Update list of supported file systems.
19483 (GNU/Linux): Update for GRUB 2.
19484 (Serial terminal): Remove mention of --disable-serial, which was a
19485 GRUB Legacy configure option. Update instructions to use
19486 `terminal_input' and `terminal_output' rather than `terminal'.
19487 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
19488 configuration' and `Installing GRUB using grub-install'.
19489 (Menu entry editor): Update for GRUB 2.
19490 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
19491 Document new -a, -u, and -v options.
19492 (initrd): New section.
19493 (initrd16): New section.
19494 (linux): New section.
19495 (linux16): New section.
19496 (search): The `var' argument to `--set' is optional.
19497 (GRUB only offers a rescue shell): Go into a little more detail on
19498 drive ordering.
19499
19500 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19501
19502 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
19503
19504 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19505
19506 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
19507 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
19508
19509 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19510
19511 * util/i386/pc/grub-setup.c (setup): Rename prefix to
19512 install_prefix, in line with install_dos_part and install_bsd_part.
19513 Add new prefix variable, which is copied to install_prefix after
19514 comparing core.img in memory with the one read from disk in the
19515 no-embedding case, and use that rather than overwriting
19516 install_prefix immediately when installing to a partition.
19517 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
19518 Bicakci.
19519
19520 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19521
19522 * configure.ac: Avoid == in test command, it's not portable.
19523 * util/grub.d/30_os-prober.in: Likewise.
19524
19525 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
19526
19527 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
19528
19529 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19530
19531 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
19532 multiple (top-level) partmaps.
19533
19534 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19535
19536 * util/i386/efi/grub-install.in: Don't use empty grub_device.
19537 Reported by: Tino Keitel.
19538
19539 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19540
19541 Bidi and diacritics support.
19542
19543 * Makefile.in (widthspec.bin): New target.
19544 (widthspec.h): Likewise.
19545 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
19546 * autogen.sh: Generate unidata.c.
19547 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
19548 * commands/ls.c (grub_ls_list_devices): Likewise.
19549 (grub_ls_list_files): Likewise.
19550 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
19551 (grub_mini_cmd_lsmod): Likewise.
19552 * commands/read.c: Likewise.
19553 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
19554 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
19555 * lib/arg.c (grub_arg_show_help): Likewise.
19556 * lib/crypto.c (grub_password_get): Likewise.
19557 * normal/auth.c (grub_username_get): Likewise.
19558 * normal/misc.c (grub_normal_print_device_info): Likewise.
19559 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
19560 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
19561 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
19562 (normal/charset.c_DEPENDENCIES): New variable.
19563 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
19564 (pkglib_MODULES): Remove charset.mod.
19565 (charset_mod_SOURCES): Removed.
19566 (charset_mod_CFLAGS): Likewise.
19567 (charset_mod_LDFLAGS): Likewise.
19568 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
19569 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
19570 and term/tparm.c.
19571 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19572 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19573 (kernel_img_HEADERS): Add terminfo.h.
19574 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
19575 Fill ->font. Reverse ascii bitmaps.
19576 (grub_font_get_xheight): New function.
19577 * font/font.c (grub_font_get_string_width): Moved from here ...
19578 * gfxmenu/font.c (grub_font_get_string_width): ... here.
19579 * font/font.c (grub_font_draw_string): Moved from here ...
19580 * gfxmenu/font.c (grub_font_draw_string): ... here.
19581 * font/font.c (grub_font_dup_glyph): New function.
19582 (grub_font_blit_glyph): Likewise.
19583 (grub_font_blit_glyph_mirror): Likewise.
19584 (blit_comb): Likewise.
19585 (grub_font_construct_dry_run): Likewise.
19586 (grub_font_get_constructed_device_width): Likewise.
19587 (grub_font_construct_glyph): Likewise.
19588 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
19589 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
19590 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
19591 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
19592 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
19593 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
19594 (grub_font_get_xheight): New proto.
19595 (grub_font_get_constructed_device_width): Likewise.
19596 (grub_font_construct_glyph): Likewise.
19597 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
19598 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
19599 * include/grub/font.h (grub_font_draw_string): Moved from here ...
19600 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
19601 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
19602 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
19603 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
19604 (grub_console_getcharwidth): Likewise.
19605 * include/grub/misc.h (grub_xputs): New proto.
19606 (grub_puts): Inlined.
19607 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
19608 (grub_normal_get_line_counter): Removed.
19609 (grub_install_newline_hook): Likewise.
19610 (grub_normal_get_char_counter): New proto.
19611 (grub_normal_reset_more): Likewise.
19612 (grub_xputs_normal): Likewise.
19613 * include/grub/powerpc/ieee1275/console.h: Removed.
19614 * include/grub/sparc64/ieee1275/console.h: Likewise.
19615 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
19616 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
19617 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
19618 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
19619 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
19620 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
19621 (grub_term_input): Pass reference to self. All users updated.
19622 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
19623 Pass reference to self. New fields normal_color, highlight_color and
19624 data. All users updated.
19625 (grub_putchar): Removed.
19626 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
19627 (grub_unicode_estimate_width): New function.
19628 (grub_term_getcharwidth): Add defaults.
19629 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
19630 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
19631 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
19632 (grub_cls): Remove EXPORT_FUNC.
19633 (grub_setcolorstate): Inline.
19634 (grub_newline_hook): Removed.
19635 * include/grub/terminfo.h: Rewritten. All users updated.
19636 * include/grub/unicode.h: New file.
19637 * include/grub/video.h (grub_video_signed_rect): New type.
19638 * kern/emu/console.c (grub_console_highlight_color): Removed.
19639 (grub_console_normal_color): Likewise.
19640 (grub_console_standard_color): Made static.
19641 (grub_ncurses_putchar): Remove mapping.
19642 (grub_ncurses_getcharwidth): Removed.
19643 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19644 (grub_ncurses_setcolor): Removed.
19645 (grub_ncurses_getcolor): Likewise.
19646 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
19647 (grub_console_putchar): ... this.
19648 (grub_console_putchar): Handle argument difference.
19649 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
19650 console_init_early and console_init_lately.
19651 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
19652 * kern/misc.c (grub_puts): Removed.
19653 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
19654 (grub_vsnprintf_real): Remove str = NULL support.
19655 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
19656 * normal/charset.c (grub_utf8_to_ucs4): ... here.
19657 * kern/term.c (grub_putcode): Renamed to ...
19658 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
19659 (grub_putchar): Removed.
19660 (grub_xputs_dumb): New function.
19661 (grub_xputs): New variable.
19662 * lib/charset.c: Move from here ...
19663 * normal/charset.c: ... to here.
19664 (grub_ucs4_to_utf8): New function.
19665 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
19666 (join_types): New variable.
19667 (unpack_join): New function.
19668 (bidi_types): New variable.
19669 (unpack_bidi): New function.
19670 (get_bidi_type): Likewise.
19671 (get_join_type): Likewise.
19672 (is_mirrored): Likewise.
19673 (grub_unicode_get_comb_type): Likewise.
19674 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
19675 (is_type_after): Likewise.
19676 (grub_unicode_aglomerate_comb): Likewise.
19677 (bidi_line_wrap): Likewise.
19678 (grub_bidi_line_logical_to_visual): Likewise.
19679 (grub_bidi_logical_to_visual): Likewise.
19680 (grub_unicode_mirror_code): Likewise.
19681 (grub_unicode_shape_code): Likewise.
19682 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
19683 Don't use grub_putchar.
19684 * normal/main.c (grub_normal_init_page): Use grub_putcode.
19685 (grub_normal_reader_init): Likewise.
19686 (grub_xputs_saved): New variable.
19687 (GRUB_MOD_INIT): Set grub_xputs.
19688 (GRUB_MOD_FINI): Restore grub_xputs.
19689 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
19690 (menu_init): Avoid printing gfxmenu error.
19691 (show_menu): Use grub_normal_get_char_counter.
19692 * normal/menu_entry.c (update_screen): Fix out-of-array.
19693 (complete): Avoid NULL dereferencing.
19694 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
19695 * normal/menu_text.c (print_spaces): Removed.
19696 (grub_print_ucs4): Likewise.
19697 (grub_print_message_indented): Use grub_print_ucs4.
19698 (print_message): Use grub_putcode.
19699 (print_entry): Hanlde diacritics.
19700 * normal/term.c (term_state): New type.
19701 (grub_more_lines): Removed.
19702 (term_states): New variable.
19703 (grub_normal_line_counter): Renamed to ..
19704 (grub_normal_char_counter): ...this. All users updated.
19705 (grub_normal_get_line_counter): Renamed to ...
19706 (grub_normal_get_char_counter): ... this.
19707 (grub_normal_reset_more): New function.
19708 (process_newline): Removed.
19709 (print_more): New function.
19710 (grub_install_newline_hook): Removed.
19711 (map_code): New function.
19712 (grub_puts_terminal): Use grub_print_ucs4.
19713 (putglyph): New function.
19714 (putcode_real): Likewise.
19715 (grub_putcode): Use putcode_real.
19716 (get_maxwidth): New function.
19717 (get_startwidth): Likewise.
19718 (print_ucs4_terminal): Likewise.
19719 (find_term_state): Likewise.
19720 (put_glyphs_terminal): Likewise.
19721 (print_backlog): Likewise.
19722 (print_ucs4_real): Likewise.
19723 (grub_print_ucs4): Likewise.
19724 (grub_xputs_normal): Likewise.
19725 * term/efi/console.c (grub_console_putchar): Output diacritics.
19726 (grub_console_getcharwidth): Removed.
19727 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19728 * term/gfxterm.c (clear_char): Free chars.
19729 (scroll_up): Avoid leaking memory.
19730 (grub_gfxterm_putchar): Support diacritics.
19731 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19732 * term/i386/pc/console.c (grub_console_term_output): Declare as
19733 GRUB_TERM_CODE_TYPE_VGA.
19734 * term/i386/pc/vga.c (grub_vga_term): Declare as
19735 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
19736 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
19737 GRUB_TERM_CODE_TYPE_VGA.
19738 * term/i386/vga_common.c (map_char): Removed.
19739 (grub_console_putchar): Likewise.
19740 (grub_console_getcharwidth): Likewise.
19741 * term/ieee1275/ofconsole.c: Simplify using terminfo.
19742 (colors): Reordered to match terminfo.
19743 (grub_ofconsole_normal_color): Removed.
19744 (grub_ofconsole_writeesc): Likewise.
19745 (grub_ofconsole_highlight_color): Likewise.
19746 (grub_ofconsole_getcharwidth): Likewise.
19747 (grub_ofconsole_setcolorstate): Likewise.
19748 (grub_ofconsole_setcolor): Likewise.
19749 (grub_ofconsole_getcolor): Likewise.
19750 (grub_ofconsole_readkey): Renamed to ...
19751 (readkey): ... this. Remove escape sequence handling. Return -1 on no
19752 key.
19753 (grub_ofconsole_checkkey): Removed.
19754 (grub_ofconsole_getkey): Likewise.
19755 (grub_ofconsole_getxy): Likewise.
19756 (grub_ofconsole_gotoxy): Likewise.
19757 (grub_ofconsole_cls): Likewise.
19758 (grub_ofconsole_refresh): Likewise.
19759 (grub_ofconsole_terminfo_input): New struct.
19760 (grub_ofconsole_terminfo_output): Likewise.
19761 (grub_ofconsole_term_input): Use terminfo.
19762 (grub_ofconsole_term_output): Likewise.
19763 (grub_console_init): Split into ...
19764 (grub_console_init_early): ...this and ...
19765 (grub_console_init_lately): ...this. Use terminfo.
19766 (grub_ofconsole_putchar): Renamed to ...
19767 (put): ... this. Remove mapping.
19768 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19769 * term/serial.c: Simplify using terminfo.
19770 (xpos): Removed.
19771 (ypos): Likewise.
19772 (keep_track): Likewise.
19773 (registered): Likewise.
19774 (input_buf): Likewise.
19775 (npending): Likewise.
19776 (serial_translate_key_sequence): Likewise.
19777 (fill_input_buf): Likewise.
19778 (grub_serial_checkkey): Likewise.
19779 (grub_serial_getkey): Likewise.
19780 (grub_serial_getxy): Likewise.
19781 (grub_serial_gotoxy): Likewise.
19782 (grub_serial_putchar): Likewise.
19783 (grub_serial_cls): Likewise.
19784 (grub_serial_setcolorstate): Likewise.
19785 (grub_serial_setcursor): Likewise.
19786 (serial_hw_init): Use serial_hw_fetch.
19787 (grub_serial_terminfo_input): New variable.
19788 (grub_serial_terminfo_output): Likewise.
19789 (grub_serial_term_input): Use terminfo.
19790 (grub_serial_term_output): Likewise.
19791 * term/terminfo.c (putstr): Use put.
19792 (grub_terminfo_all_free): New function
19793 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
19794 (grub_terminfo_output_register): New function.
19795 (grub_terminfo_output_unregister): Likewise.
19796 (grub_terminfo_getxy): Likewise.
19797 (grub_terminfo_readkey): Likewise.
19798 (grub_terminfo_checkkey): Likewise.
19799 (grub_terminfo_getkey): Likewise.
19800 (grub_terminfo_input_init): Likewise.
19801 (print_terminfo): Likewise.
19802 (grub_cmd_terminfo): Handle encoding.
19803 (grub_terminfo_gotoxy): Track position.
19804 (grub_terminfo_cls): Likewise.
19805 (grub_terminfo_putchar): Likewise.
19806 (grub_terminfo_setcolorstate): Handle colors
19807 (grub_terminfo_cursor_on): This ...
19808 (grub_terminfo_cursor_off): ... and this merged into ...
19809 (grub_terminfo_setcursor): ... this.
19810 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
19811 * unicode/ArabicShaping.txt: New file (imported from Unicode).
19812 * unicode/BidiMirroring.txt: Likewise.
19813 * unicode/UnicodeData.txt: Likewise.
19814 * unicode/COPYING: Likewise.
19815 * util/grub-editenv.c (grub_putchar): Removed.
19816 (grub_xputs_real): New function.
19817 (grub_xputs): New variable.
19818 * util/grub-fstest.c (grub_putchar): Removed.
19819 (grub_xputs_real): New function.
19820 (grub_xputs): New variable.
19821 * util/grub-mkdevicemap.c (grub_putchar): Removed.
19822 (grub_xputs_real): New function.
19823 (grub_xputs): New variable.
19824 * util/grub-probe.c (grub_putchar): Removed.
19825 (grub_xputs_real): New function.
19826 (grub_xputs): New variable.
19827 * util/grub-script-check.c (grub_putchar): Removed.
19828 (grub_xputs_real): New function.
19829 (grub_xputs): New variable.
19830 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
19831 (grub_xputs_real): New function.
19832 (grub_xputs): New variable.
19833 * util/import_unicode.py: New file.
19834 * util/grub-mkfont.c (ft_errmsgs): New array.
19835 (grub_glyph_info): Make bitmap a pointer.
19836 (file_formats): New type WIDTH_SPEC.
19837 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
19838 (options): Add width-spec.
19839 (help): Likewise.
19840 (add_char): Renamed to ...
19841 (add_glyph): ... this.
19842 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
19843 (glyph_replace): New type.
19844 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
19845 (add_char): New function.
19846 (add_subst): Likewise.
19847 (process_cursive): Likewise.
19848 (add_font): Handle GSUB.
19849 (write_font_width_spec): New function.
19850 (main): Sort glyphs.
19851 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
19852 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
19853 * kern/term.c (grub_cls): Moved from here...
19854 * normal/term.c (grub_cls): ... here.
19855
19856 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19857
19858 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
19859 suitable for using within the format argument of printf when
19860 converting grub_size_t.
19861 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
19862 "x" to convert grub_size_t arguments.
19863
19864 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19865
19866 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
19867 too long captions.
19868 (list_get_minimal_size): Take selection box into account.
19869
19870 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19871
19872 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
19873 NULL font.
19874
19875 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19876
19877 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
19878 devices when iterating over /dev/disk/by-id; they will be handled
19879 later if appropriate, which they aren't always (e.g. LVM).
19880
19881 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19882
19883 * include/grub/misc.h (grub_reboot): Declare as noreturn.
19884 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
19885 fails.
19886 (grub_halt): Likewise.
19887 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
19888 reset-all fails.
19889 (grub_halt): Don't return, even if all of shut-down, power-off, and
19890 poweroff fail.
19891
19892 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19893
19894 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
19895 arguments, not three.
19896
19897 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19898
19899 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
19900 * util/grub.d/10_linux.in: Use it to check for LVM, so that
19901 LVM-on-RAID is handled correctly.
19902
19903 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19904
19905 * docs/grub.texi (Changes from GRUB Legacy): New section.
19906 (Future): Fix typo.
19907
19908 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19909
19910 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
19911 grub.d/README accidentally ends up executable for one reason or
19912 another. Ignore it.
19913
19914 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19915
19916 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
19917 (gpt_partition_map_iterate): Support non-512B sectors.
19918
19919 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19920
19921 * kern/efi/init.c (grub_efi_init): Disable watchdog.
19922 Tested by: Seth Goldberg.
19923
19924 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19925
19926 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
19927 Properly align mbi.
19928 Reported by: Seth Goldberg.
19929
19930 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19931
19932 * util/grub-mkrescue.in: Avoid module duplication.
19933
19934 2010-07-01 Sean Finney <seanius@seanius.net>
19935
19936 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
19937
19938 2010-07-01 Sean Finney <seanius@seanius.net>
19939
19940 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
19941
19942 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19943
19944 * disk/lvm.c (grub_lvm_checkvalue): New function.
19945 (grub_lvm_check_flag): Likewise.
19946
19947 2010-07-01 Robert Millan <rmh@gnu.org>
19948
19949 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
19950 Support 'p' as partition separator on kernel of FreeBSD (used
19951 with GPT labels).
19952 (grub_util_biosdisk_get_grub_dev): Likewise.
19953
19954 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19955
19956 Yeeloong firmware port.
19957
19958 * boot/mips/yeeloong/fwstart.S: New file.
19959 * bus/cs5536.c (gpiodump): New const.
19960 (set_io_space): New function.
19961 (set_iod): Likewise.
19962 (set_p2d): Likewise.
19963 (grub_cs5536_init_geode): Likewise.
19964 * commands/mips/yeeloong/lsspd.c: New file.
19965 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
19966 (serial_mod_SOURCES): New variable.
19967 (serial_mod_CFLAGS): Likewise.
19968 (serial_mod_LDFLAGS): Likewise.
19969 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
19970 term/terminfo.c and term/tparm.c.
19971 (pkglib_IMAGES): Add fwstart.img.
19972 (fwstart_img_SOURCES): New variable.
19973 (fwstart_img_CFLAGS): Likewise.
19974 (fwstart_img_ASFLAGS): Likewise.
19975 (fwstart_img_LDFLAGS): Likewise.
19976 (fwstart_img_FORMAT): Likewise.
19977 (pkglib_MODULES): Add lsspd.mod.
19978 (lsspd_mod_SOURCES): New variable.
19979 (lsspd_mod_CFLAGS): Likewise.
19980 (lsspd_mod_LDFLAGS): Likewise.
19981 (pkglib_MODULES): Add halt.mod.
19982 (halt_mod_SOURCES): New variable.
19983 (halt_mod_CFLAGS): Likewise.
19984 (halt_mod_LDFLAGS): Likewise.
19985 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
19986 (serial_mod_SOURCES): Removed.
19987 (serial_mod_CFLAGS): Likewise.
19988 (serial_mod_LDFLAGS): Likewise.
19989 * disk/ata.c (check_device): New function.
19990 (grub_ata_device_initialize): Use check_device.
19991 (grub_ata_iterate): Recheck devices.
19992 (grub_ata_open): Likewise.
19993 (grub_atapi_iterate): Likewise.
19994 (grub_atapi_open): Likewise.
19995 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
19996 (GRUB_ATA_CH1_PORT1): Likewise.
19997 (GRUB_ATA_CH0_PORT2): Likewise.
19998 (GRUB_ATA_CH1_PORT2): Likewise.
19999 * include/grub/mips/loongson.h: New file.
20000 * include/grub/mips/yeeloong/ec.h: Likewise.
20001 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
20002 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
20003 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
20004 * include/grub/misc.h (grub_halt): Declare as noreturn.
20005 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
20006 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
20007 (UART_ENABLE_FIFO_TRIGGER1): New definition.
20008 (UART_ENABLE_DTRRTS): Likewise.
20009 (UART_ENABLE_MODEM): Removed.
20010 (UART_ENABLE_OUT2): New const.
20011 * include/grub/term.h (grub_term_register_input_active): New function.
20012 (grub_term_register_output_active): Likewise.
20013 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
20014 argument.
20015 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
20016 (init_pci): New function.
20017 (grub_machine_init): Execute platform init when firmware. Init serial.
20018 (grub_halt): Implement.
20019 (grub_exit): Likewise.
20020 (grub_reboot): Likewise.
20021 * term/serial.c (serial_hw_init): Update macros.
20022 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
20023 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
20024 (image_targets): New target mipsel-yeeloong-flash.
20025 (generate_image): Support IMAGE_YEELOONG_FLASH.
20026 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
20027 (grub_video_sm712_setup): Init card.
20028 (grub_video_sm712_set_palette): Removed.
20029 * video/sm712_init.c: New file.
20030
20031 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
20032
20033 * Makefile.in (install-local): Temporarily prepend $(builddir) to
20034 PATH when running help2man and then run it on the unadorned
20035 executable names, rather than passing $(builddir)/* paths to
20036 help2man. This avoids the build directory ending up in generated
20037 manual pages.
20038
20039 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
20040
20041 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
20042 to avoid accidents when debugging with 'sh -x'.
20043 * util/grub-mkrescue.in: Likewise.
20044 * util/grub.d/00_header.in: Likewise.
20045 * util/grub.d/10_hurd.in: Likewise.
20046 * util/grub.d/10_kfreebsd.in: Likewise.
20047 * util/grub.d/10_linux.in: Likewise.
20048 * util/grub.d/10_netbsd.in: Likewise.
20049 * util/grub.d/10_windows.in: Likewise.
20050 * util/grub.d/20_linux_xen.in: Likewise.
20051 * util/grub.d/30_os-prober.in: Likewise.
20052 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20053
20054 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
20055
20056 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
20057 last character in the buffer.
20058 Reported by: Vladimir Serbinenko.
20059
20060 2010-06-29 Robert Millan <rmh@gnu.org>
20061
20062 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
20063 (Command-line and menu entry commands): Document `badram' command.
20064
20065 2010-06-28 Robert Millan <rmh@gnu.org>
20066
20067 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
20068 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
20069 command using ${GRUB_BADRAM} as parameter.
20070
20071 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20072
20073 * docs/grub.texi (Device map): New section.
20074 (Themes): New section (stub).
20075 * Makefile.in (docs/grub.info): The info documentation now builds
20076 without errors. Make sure it stays that way.
20077
20078 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20079
20080 Use normal parser for menu entries.
20081 Reported by: Thomas Frauendorfer
20082
20083 * include/grub/parser.h (grub_parser_execute): Don't export.
20084 * normal/menu.c (grub_menu_execute_entry_real): New function.
20085 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
20086
20087 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20088
20089 * docs/grub.texi (Embedded configuration): New section (replacing
20090 old "Preset Menu" stub).
20091 (Images): New section.
20092 (configfile): Note that any menu entries defined in `file' are shown
20093 immediately.
20094
20095 2010-06-28 Josh Triplett <josh@joshtriplett.org>
20096
20097 * mmap/i386/pc/mmap_helper.S: Set CF on return.
20098
20099 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20100
20101 * util/grub-install.in: Add --debug-image= option.
20102
20103 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20104
20105 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
20106 possible on Linux.
20107
20108 * util/deviceiter.c (check_device): Rename to ...
20109 (check_device_readable_unique): ... this. Update all callers.
20110 Maintain and check a list of which devices (by canonicalized name)
20111 have already been seen.
20112 (clear_seen_devices): New function.
20113 (compare_file_names) [__linux__]: New function.
20114 (grub_util_iterate_devices): Clear the list of seen devices on exit
20115 and (just in case) on entry.
20116 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
20117 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
20118 seen-devices list, superseded by general code in check_device.
20119
20120 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20121
20122 * commands/cat.c (options): New variable.
20123 (grub_cmd_cat): Parse options. If the --dos option is given, print
20124 DOS-style "\r\n" line endings as simple newlines (Debian bug
20125 #586358).
20126 (GRUB_MOD_INIT): Use extcmd.
20127 (GRUB_MOD_FINI): Likewise.
20128 * docs/grub.texi (cat): Document --dos.
20129
20130 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20131
20132 XEN with Linux grub-mkconfig support.
20133
20134 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
20135 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
20136 GRUB_CMDLINE_XEN_DEFAULT.
20137 * util/grub.d/20_linux_xen.in: New file.
20138
20139 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20140
20141 Initialise VGA video on qemu ourselves.
20142
20143 * boot/i386/qemu/boot.S: Don't call 0xc000.
20144 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
20145 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
20146 (kernel_img_HEADERS): Add pci.h.
20147 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
20148 * configure.ac: Force unifont on qemu and yeeloong.
20149 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
20150 (grub_vga_palette_write): Use correct register.
20151 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
20152 Call grub_qemu_init_cirrus.
20153 * kern/i386/qemu/init.c: New file.
20154 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
20155
20156 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
20157
20158 2010-06-26 Pavel Roskin <proski@gnu.org>
20159
20160 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
20161 13.
20162
20163 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
20164
20165 * docs/grub.texi (Simple configuration): Explain that
20166 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
20167 set to `true' to disable their respective recovery entries, not
20168 merely set.
20169
20170 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
20171
20172 Make the `source' command slightly faster.
20173
20174 * normal/main.c (grub_normal_execute): Don't re-read list files when
20175 nested.
20176
20177 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
20178
20179 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
20180 field position and mask size to red fields from mode_info, not
20181 green.
20182 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
20183 Remove redundant tag->common.framebuffer_type assignment.
20184 Reported by: Seth Goldberg.
20185
20186 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
20187
20188 Sync up other versions of the Linux loader with Robert Millan's
20189 change of 2010-01-09, "Make loader output a bit more user-friendly".
20190
20191 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
20192 grub_dprintf().
20193 (grub_cmd_linux): Likewise.
20194 (grub_cmd_initrd): Likewise.
20195 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
20196 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20197
20198 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
20199
20200 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
20201 larger than MEMORY_MAP_SIZE.
20202
20203 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
20204
20205 Fix parallel build.
20206
20207 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
20208 dependency.
20209 * script/parser.y: #include grub_script.tab.h header.
20210
20211 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20212
20213 Support >3GiB and <16MiB RAM in i386-qemu.
20214
20215 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
20216 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
20217 (grub_lower_mem): Removed.
20218 (grub_upper_mem): Likewise.
20219 (mem_size): Made static.
20220 (above_4g): New variable.
20221 (grub_machine_mmap_init): Detect small mem_size and above_4g.
20222 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
20223 support.
20224
20225 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20226
20227 Cirrus 5446 and Bochs video cards support.
20228
20229 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
20230 video_bochs.mod
20231 (video_cirrus_mod_SOURCES): New variable.
20232 (video_cirrus_mod_CFLAGS): Likewise.
20233 (video_cirrus_mod_LDFLAGS): Likewise.
20234 (video_bochs_mod_SOURCES): Likewise.
20235 (video_bochs_mod_CFLAGS): Likewise.
20236 (video_bochs_mod_LDFLAGS): Likewise.
20237 * include/grub/vga.h: New file.
20238 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
20239 (grub_video_fb_set_page_t): New type.
20240 (grub_video_fb_setup): New prototype.
20241 (grub_video_fb_swap_buffers): Likewise.
20242 (grub_video_fb_get_info_and_fini): Likewise.
20243 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
20244 (CRTC_DATA_PORT): Likewise.
20245 (CRTC_CURSOR): Likewise.
20246 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20247 (CRTC_CURSOR_ADDR_LOW): Likewise.
20248 (CRTC_CURSOR_DISABLE): Likewise.
20249 (update_cursor): Use grub_vga_cr_write.
20250 (grub_vga_text_setcursor): Likewise.
20251 * video/bochs.c: New file.
20252 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
20253 (palette): Likewise.
20254 (palette_size): Likewise.
20255 (framebuffer): New variable.
20256 (grub_video_fb_init): Use 'framebuffer'.
20257 (grub_video_fb_fini): Likewise.
20258 (grub_video_fb_get_info): Likewise.
20259 (grub_video_fb_get_palette): Likewise.
20260 (grub_video_fb_set_palette): Likewise.
20261 (grub_video_fb_set_viewport): Likewise.
20262 (grub_video_fb_get_viewport): Likewise.
20263 (grub_video_fb_map_color): Likewise.
20264 (grub_video_fb_map_rgb): Likewise.
20265 (grub_video_fb_map_rgba): Likewise.
20266 (grub_video_fb_unmap_color): Likewise.
20267 (grub_video_fb_unmap_color_int): Likewise.
20268 (grub_video_fb_fill_rect): Likewise.
20269 (grub_video_fb_blit_bitmap): Likewise.
20270 (grub_video_fb_blit_render_target): Likewise.
20271 (grub_video_fb_scroll): Likewise.
20272 (grub_video_fb_create_render_target): Likewise.
20273 (grub_video_fb_doublebuf_blit_init): Likewise.
20274 (grub_video_fb_set_active_render_target): Handle doublebuffering.
20275 (doublebuf_pageflipping_update_screen): New function.
20276 (doublebuf_pageflipping_init): Likewise.
20277 (grub_video_fb_setup): Likewise.
20278 (grub_video_fb_swap_buffers): Likewise.
20279 (grub_video_fb_get_info_and_fini): Likewise.
20280 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
20281 All users updated.
20282 (doublebuf_pageflipping_commit): Restructured into ...
20283 (doublebuf_pageflipping_set_page): ... this.
20284 (doublebuf_pageflipping_update_screen): Removed.
20285 (doublebuf_pageflipping_init): Likewise.
20286 (double_buffering_init): Likewise.
20287 (grub_video_vbe_setup): Use grub_video_fb_setup.
20288 (grub_video_vbe_swap_buffers): Removed.
20289 (grub_video_vbe_set_active_render_target): Likewise.
20290 (grub_video_vbe_get_active_render_target): Likewise.
20291 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
20292 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
20293 grub_video_fb_set_active_render_target and
20294 grub_video_fb_get_active_render_target.
20295 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
20296 (SEQUENCER_DATA_PORT): Likewise.
20297 (MAP_MASK_REGISTER): Likewise.
20298 (CRTC_ADDR_PORT): Likewise.
20299 (CRTC_DATA_PORT): Likewise.
20300 (START_ADDR_HIGH_REGISTER): Likewise.
20301 (START_ADDR_LOW_REGISTER): Likewise.
20302 (GRAPHICS_ADDR_PORT): Likewise.
20303 (GRAPHICS_DATA_PORT): Likewise.
20304 (READ_MAP_REGISTER): Likewise.
20305 (INPUT_STATUS1_REGISTER): Likewise.
20306 (INPUT_STATUS1_VERTR_BIT): Likewise.
20307 (get_map_mask): Use grub_vga_sr_read.
20308 (set_map_mask): Use grub_vga_sr_write.
20309 (set_read_map): Use grub_vga_gr_write.
20310 (set_start_address): Use grub_vga_cr_write.
20311 * video/sm712.c (framebuffer): Remove leftover fields.
20312
20313 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
20314
20315 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
20316 setting GRUB_VIDEO_BACKEND. Make it available as a user override
20317 instead. Replace the gfxterm backend check with a check that
20318 ${GRUB_PREFIX}/video.lst is non-empty.
20319 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
20320 again.
20321 (load_video): New generated function. Call it before loading
20322 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
20323 * util/grub.d/10_linux.in (linux_entry): Call load_video.
20324 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
20325 * docs/grub.texi (Simple configuration): Document
20326 GRUB_VIDEO_BACKEND.
20327
20328 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20329
20330 Use video functions in linux and xnu loaders.
20331
20332 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
20333 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
20334 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
20335 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
20336 loader/i386/pc/linux.c.
20337 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
20338 (find_line_len): Removed.
20339 (find_framebuf): Likewise.
20340 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
20341 * loader/i386/efi/xnu.c: Removed.
20342 * loader/i386/pc/xnu.c: Moved from here...
20343 * loader/i386/xnu.c: ...here.
20344
20345 Enable priorities in video drivers.
20346
20347 * include/grub/video.h (grub_video_adapter_prio_t): New type.
20348 (grub_video_adapter): New field prio.
20349 (grub_video_register): Respect prio when inserting.
20350 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
20351 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
20352 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
20353 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
20354 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
20355 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
20356 * video/sm712.c (grub_video_sm712_adapter): Likewise.
20357
20358 Fix SDL driver ID.
20359
20360 * include/grub/video.h (grub_video_driver_id_t): New value
20361 GRUB_VIDEO_DRIVER_SDL.
20362 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
20363
20364 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20365
20366 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
20367 argument to printf.
20368 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20369
20370 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20371
20372 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
20373 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20374
20375 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20376
20377 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
20378 directly, and recommend grub-install instead.
20379 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20380
20381 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20382
20383 Fix i386-pc prefix handling with nested partitions (Debian bug
20384 #585068). Note that the case where the core image is booted using
20385 multiboot and relocated from its original location still requires
20386 more work.
20387
20388 * kern/i386/pc/init.c (make_install_device): If the prefix starts
20389 with "(,", fill the boot drive in between those two characters, but
20390 expect that a full partition specification including partition map
20391 names will follow.
20392 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
20393 specified, write a prefix without the drive name but including a
20394 full partition specification.
20395
20396 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
20397
20398 * util/grub-mkconfig.in: Ignore non-option arguments, for
20399 compatibility with older versions (before 2010-06-12) which did the
20400 same. In particular, this makes it easier to ship an update-grub
20401 wrapper which is compatible with that used with GRUB Legacy (Debian
20402 bug #586056).
20403
20404 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20405
20406 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
20407 for manual page generation.
20408
20409 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20410
20411 * po/POTFILES: Remove leftover commands/handler.c.
20412
20413 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20414
20415 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
20416 left this script non-functional.
20417
20418 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20419
20420 * docs/man/grub-emu.h2m: New file.
20421
20422 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
20423
20424 * docs/grub.texi (Commands): Document reduced command set in rescue
20425 mode.
20426 (cpuid): New section.
20427
20428 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
20429
20430 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
20431 new partition naming style.
20432 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
20433
20434 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
20435
20436 Add "-o grub.iso" like cmdline options support.
20437
20438 * util/grub-install.in: Improve cmdline option parsing.
20439 * util/grub-mkconfig.in: Likewise.
20440 * util/grub-mkrescue.in: Likewise.
20441 * util/grub-reboot.in: Likewise.
20442 * util/grub-set-default.in: Likewise.
20443 * util/i386/efi/grub-install.in: Likewise.
20444 * util/ieee1275/grub-install.in: Likewise.
20445 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20446
20447 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20448
20449 * .bzrignore: Ignore 41_custom.
20450
20451 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20452
20453 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
20454
20455 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20456
20457 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
20458 prototype declarations.
20459
20460 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
20461 generating fs, partmap, and video lists.
20462 * include/grub/fs.h (grub_fs_register): Omit prototype if
20463 GRUB_LST_GENERATOR is defined.
20464 * include/grub/partition.h (grub_partition_map_register): Likewise.
20465 * include/grub/video.h (grub_video_register): Likewise.
20466
20467 2010-06-12 Javier Martín <lordhabbit@gmail.com>
20468
20469 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
20470
20471 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20472
20473 * util/grub-mkrescue.in: Support --xorriso argument.
20474
20475 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20476
20477 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
20478 Suggested by: Thomas Schmitt.
20479
20480 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20481
20482 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
20483 Suggested by: Thomas Schmitt.
20484
20485 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20486
20487 custom.cfg support.
20488
20489 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
20490 * util/grub.d/41_custom.in: New file.
20491
20492 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20493
20494 * util/grub-mkrescue.in (make_image): Remove sh module, which has
20495 been merged back into normal.
20496
20497 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20498
20499 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
20500 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
20501
20502 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20503
20504 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
20505 when generating manual pages.
20506 * docs/man/grub-bin2h.h2m: New file.
20507 * docs/man/grub-editenv.h2m: New file.
20508 * docs/man/grub-fstest.h2m: New file.
20509 * docs/man/grub-install.h2m: New file.
20510 * docs/man/grub-macho2img.h2m: New file.
20511 * docs/man/grub-mkconfig.h2m: New file.
20512 * docs/man/grub-mkdevicemap.h2m: New file.
20513 * docs/man/grub-mkfont.h2m: New file.
20514 * docs/man/grub-mkimage.h2m: New file.
20515 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
20516 * docs/man/grub-mkrelpath.h2m: New file.
20517 * docs/man/grub-mkrescue.h2m: New file.
20518 * docs/man/grub-ofpathname.h2m: New file.
20519 * docs/man/grub-pe2elf.h2m: New file.
20520 * docs/man/grub-probe.h2m: New file.
20521 * docs/man/grub-reboot.h2m: New file.
20522 * docs/man/grub-script-check.h2m: New file.
20523 * docs/man/grub-set-default.h2m: New file.
20524 * docs/man/grub-setup.h2m: New file.
20525
20526 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
20527
20528 Use FOR_* macros instead of *_iterate whenever possible.
20529
20530 * commands/handler.c: Removed.
20531 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
20532 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
20533 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20534 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
20535 (grub_probe_SOURCES): Remove kern/parser.c.
20536 (util/grub-script-check.c_DEPENDENCIES): Removed.
20537 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
20538 and grub_script_check_init.c.
20539 (grub_script_check_init.lst): Removed.
20540 (grub_script_check_init.h): Likewise.
20541 (grub_script_check_init.c): Likewise.
20542 (pkglib_MODULES): Remove handler.mod and sh.mod.
20543 (handler_mod_SOURCES): Removed.
20544 (handler_mod_CFLAGS): Likewise.
20545 (handler_mod_LDFLAGS): Likewise.
20546 (normal_mod_SOURCES): Remove normal/handler.c.
20547 Add script/main.c, script/script.c, script/execute.c,
20548 script/function.c, script/lexer.c, grub_script.tab.c
20549 and grub_script.yy.c.
20550 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20551 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20552 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
20553 (grub_setup_SOURCES): Remove kern/parser.c.
20554 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20555 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
20556 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
20557 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20558 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20559 (grub_setup_SOURCES): Remove kern/parser.c.
20560 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20561 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
20562 * include/grub/command.h (grub_command_iterate): Removed.
20563 (FOR_COMMANDS): New macro.
20564 * include/grub/dl.h (grub_dl): New member next.
20565 (grub_dl_iterate): Removed.
20566 (grub_dl_head): New variable declaration.
20567 (FOR_DL_MODULES): New macro.
20568 * include/grub/fs.h: Include list.h.
20569 (grub_fs): Make next first element.
20570 (grub_fs_list): New variable declaration.
20571 (grub_fs_register): Make inline.
20572 (grub_fs_unregister): Likewise.
20573 (grub_fs_iterate): Removed.
20574 (FOR_FILESYSTEMS): New macro.
20575 * include/grub/handler.h: Removed.
20576 * include/grub/list.h (grub_list_hook_t): Removed.
20577 (grub_list_test_t): Likewise.
20578 (grub_list_pop): Likewise.
20579 (grub_list_iterate): Likewise.
20580 (grub_list_insert): Likewise.
20581 (FOR_LIST_ELEMENTS): New macro.
20582 * include/grub/parser.h (grub_parser_class): Removed.
20583 (grub_parser_register): Likewise.
20584 (grub_parser_unregister): Likewise.
20585 (grub_parser_get_current): Likewise.
20586 (grub_parser_set_current): Likewise.
20587 (grub_register_rescue_parser): Likewise.
20588 (grub_rescue_parse_line): New function.
20589 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
20590 * include/grub/script_sh.h (grub_script_function_list): New variable
20591 declaration.
20592 (FOR_SCRIPT_FUNCTIONS): New macro.
20593 (grub_script_function_iterate): Removed.
20594 (grub_normal_parse_line): New prototype.
20595 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
20596 (FOR_DISABLED_TERM_INPUTS): Likewise.
20597 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
20598 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
20599 * include/grub/video.h (grub_video_adapter): Move 'next' to first
20600 element.
20601 (grub_video_register): Inline.
20602 (grub_video_unregister): Likewise.
20603 (grub_video_adapter_list): New variable declaration.
20604 (grub_video_iterate): Removed.
20605 (FOR_VIDEO_ADAPTERS): New macro.
20606 * kern/dl.c (grub_dl_list): Removed. All users updated.
20607 (grub_dl_iterate): Removed.
20608 * kern/fs.c (grub_fs_list): Make global.
20609 (grub_fs_register): Removed.
20610 (grub_fs_unregister): Likewise.
20611 (grub_fs_iterate): Likewise.
20612 * kern/handler.c: Removed.
20613 * kern/list.c (grub_list_pop): Removed.
20614 (grub_list_iterate): Likewise.
20615 (grub_list_insert): Likewise.
20616 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
20617 (grub_prio_list_insert): Don't use grub_list_insert.
20618 * kern/main.c (grub_register_rescue_parser): Don't call
20619 grub_register_rescue_parser.
20620 * kern/parser.c (grub_parser_class): Removed.
20621 (grub_parser_execute): Use grub_rescue_parse_line.
20622 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
20623 (grub_rescue_parser): Removed.
20624 (grub_register_rescue_parser): Likewise.
20625 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
20626 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
20627 (grub_auth_check_authentication): Likewise.
20628 * normal/completion.c (iterate_command): Removed.
20629 (grub_normal_do_completion): Use FOR_COMMANDS.
20630 * normal/handler.c: Removed.
20631 * normal/main.c (read_config_file): Remove parser changing.
20632 (grub_normal_execute): Don't call read_handler_list.
20633 (grub_normal_read_line_real): Statically allocate prompt.
20634 (grub_cmdline_run): Use grub_normal_parse_line.
20635 (GRUB_MOD_FINI): Don't call free_handler_list.
20636 * normal/menu_entry.c (run): Likewise.
20637 * script/function.c (grub_script_function_list): Make global.
20638 (grub_script_function_iterate): Removed.
20639 * script/main.c (grub_normal_parse_line): Make global.
20640 (grub_sh_parser): Removed.
20641 (GRUB_MOD_INIT): Likewise.
20642 (GRUB_MOD_FINI): Likewise.
20643 * tests/lib/functional_test.c (grub_functional_test): Use
20644 FOR_LIST_ELEMENTS.
20645 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
20646 (grub_test_run): Use FOR_LIST_ELEMENTS.
20647 * tests/lib/unit_test.c (main): Likewise.
20648 * util/deviceiter.c (grub_util_iterate_devices): Don't use
20649 grub_list_pop.
20650 * util/grub-fstest.c (grub_term_input_class): Removed.
20651 (grub_term_output_class): Likewise.
20652 * util/grub-probe.c: Likewise.
20653 * util/i386/pc/grub-setup.c: Likewise.
20654 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20655 * util/grub-script-check.c (main): Don't call grub_init_all and
20656 grub_fini_all.
20657 * video/video.c (grub_video_adapter_list): Make global.
20658 (grub_video_register): Removed.
20659 (grub_video_unregister): Likewise.
20660 (grub_video_iterate): Likewise.
20661
20662 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
20663
20664 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
20665 reported by Henrique Ferreiro.
20666
20667 2010-06-09 Robert Millan <rmh@gnu.org>
20668
20669 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
20670 ones, when both are available.
20671
20672 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20673
20674 Make --version uniform and avoid hard-coded program name.
20675
20676 * util/grub-mkimage.c (main): Use `program_name' instead of
20677 hard-coded string.
20678 * util/i386/pc/grub-setup.c (main): Likewise.
20679 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
20680 * util/grub-install.in: Save the basename of $0 in $self, and use the
20681 latter in informational messages. Use the same format for --version
20682 as the binary programs.
20683 * util/grub-mkconfig.in: Likewise.
20684 * util/grub-mkrescue.in: Likewise.
20685 * util/grub-reboot.in: Likewise.
20686 * util/grub-set-default.in: Likewise.
20687 * util/i386/efi/grub-install.in: Likewise.
20688 * util/ieee1275/grub-install.in: Likewise.
20689 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20690
20691 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20692
20693 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
20694 embedding area. Use <= instead of == when checking for non-emptiness.
20695
20696 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20697
20698 * configure.ac: Add `.' to the directories searched for unifont.
20699
20700 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20701
20702 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
20703 grub_script.yy.h.
20704
20705 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20706
20707 * docs/grub.texi (History): Expand to cover GRUB 2.
20708 (Serial terminal): Refer to `terminal_input' and `terminal_output'
20709 commands, not `terminal'.
20710 (serial): Likewise.
20711 (terminal_input): New section.
20712 (terminal_output): New section.
20713 (uppermem): New section (stub).
20714 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
20715
20716 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20717
20718 * docs/grub.texi (Security): Menu entries are unrestricted by
20719 default, not restricted to superusers as I had previously thought.
20720 Reword to account for this.
20721
20722 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20723
20724 * kern/emu/misc.c (device_mapper_null_log): New function.
20725 (grub_device_mapper_supported): New function.
20726 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
20727 prototype.
20728 * kern/emu/hostdisk.c (find_partition_start): Check whether
20729 device-mapper is supported before trying to use it.
20730 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
20731
20732 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20733
20734 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
20735 (File name syntax): Likewise.
20736 (help): --all is no longer supported in GRUB 2. Be more precise
20737 about pattern matching.
20738
20739 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20740
20741 * normal/completion.c (grub_normal_do_completion): When completing
20742 arguments to "set" and the current word contains an equals sign,
20743 skip to after the equals sign before starting completion.
20744
20745 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20746
20747 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
20748
20749 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20750
20751 * docs/grub.texi (Network): New section.
20752 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
20753 `(nd)' as in GRUB Legacy.
20754 (pxe_unload): New section.
20755
20756 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20757
20758 * docs/grub.texi (Troubleshooting): `echo' is not usually available
20759 in the rescue shell, so recommend using `set' instead. Thanks,
20760 Jordan Uggla.
20761
20762 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20763
20764 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
20765 (password): New section.
20766 (password_pbkdf2): New section.
20767 (search): New section.
20768 (Security): New section.
20769 (Troubleshooting): New section, currently very incomplete.
20770 (Invoking grub-mkpasswd-pbkdf2): New section.
20771 (Internals): New section, currently very incomplete.
20772
20773 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20774
20775 * util/grub.d/00_header.in: Add some more quoting (of
20776 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
20777 work again.
20778 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
20779
20780 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20781
20782 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
20783 to `count', fixing variable shadowing that broke the -c option.
20784
20785 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
20786
20787 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
20788 in case they contain spaces.
20789
20790 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20791
20792 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
20793 "part_" to partmap module names, in line with grub-install.
20794 Reported by: Jindřich Makovička (Debian bug #584426).
20795
20796 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20797
20798 * util/grub-mkimage.c: Make target-related error messages slightly
20799 more helpful; -O talks about "format". Explicitly point to the use
20800 of -O if no target is specified.
20801 Reported by: Didier Raboud (Debian bug #584415).
20802
20803 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
20804
20805 * INSTALL: Document several build requirements for optional features
20806 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
20807
20808 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
20809
20810 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
20811 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
20812 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
20813
20814 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20815
20816 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
20817 Thanks to Jordan Uggla for spotting this.
20818
20819 2010-06-02 Aleš Nesrsta <starous@volny.cz>
20820
20821 Finally make USB usable.
20822
20823 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
20824 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
20825 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
20826 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
20827 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
20828 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
20829 (GRUB_OHCI_FSMPS): Likewise.
20830 (GRUB_OHCI_PERIODIC_START): Likewise.
20831 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
20832 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
20833 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
20834 (GRUB_OHCI_SET_PORT_RESET): Likewise.
20835 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
20836 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
20837 (grub_ohci_transaction): Likewise.
20838 (grub_ohci_transfer): Improve condition detection algorithms.
20839 Handle toggle property. Program the transactions correctly.
20840 Improve error handling. Various important fixups.
20841 (grub_ohci_portstatus): Put register writes in right order.
20842 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
20843 (grub_uhci_transfer): Don't show "failed" message on success.
20844 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
20845 array.
20846 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
20847 determine its size.
20848 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
20849 before initialization is completed. Use IN direction for empty
20850 transfers. Use last_trans and compute toggle.
20851 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
20852 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
20853 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
20854 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
20855 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
20856 (grub_usb_device): Increase toggle to 256.
20857 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
20858 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
20859 GRUB_USBMS_SUBCLASS_SFF8070.
20860 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
20861 (grub_scsi_inquiry): New member page and alloc_length.
20862 (grub_scsi_request_sense): New structure.
20863 (grub_scsi_request_sense_data): Likewise.
20864 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
20865 control.
20866 * disk/scsi.c (grub_scsi_request_sense): New function.
20867 (grub_scsi_test_unit_ready): Likewise.
20868 (grub_scsi_inquiry): Fill new fields.
20869 (grub_scsi_read_capacity): Likewise.
20870 (grub_scsi_read10): Add request sense at the end.
20871 (grub_scsi_read12): Likewise.
20872 (grub_scsi_write10): Likewise.
20873 (grub_scsi_write12): Likewise.
20874 (grub_scsi_open): Add Test Unit Ready.
20875 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
20876 Support additional subclasses. Con't clear halt yet. Activate the
20877 proper config. Calculate LUNs correctly.
20878 (grub_usbms_transfer): Various important fixups.
20879
20880 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20881
20882 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
20883 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
20884 (grub_ohci_fini_hw): New function.
20885 (grub_ohci_restore_hw): Likewise.
20886 (GRUB_MOD_INIT(ohci)): Register preboot hook.
20887 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
20888 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
20889
20890 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20891
20892 Dedicated DMA allocations.
20893
20894 * bus/pci.c (grub_memalign_dma32): New function
20895 (grub_dma_free): Likewise.
20896 (grub_dma_get_virt): Likewise.
20897 (grub_dma_get_phys): Likewise.
20898 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
20899 (grub_ohci_pci_iter): Use dma32_alloc.
20900 (grub_ohci_transfer): Likewise.
20901 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
20902 (grub_usb_bulk_readwrite): Likewise.
20903 * include/grub/pci.h: Add declarations.
20904
20905 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20906
20907 CS5536 support.
20908
20909 * bus/cs5536.c: New file.
20910 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
20911 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
20912 (cs5536_mod_SOURCES): New variable.
20913 (cs5536_mod_CFLAGS): Likewise.
20914 (cs5536_mod_LDFLAGS): Likewise.
20915 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
20916 machine/pci.h.
20917 (kernel_img_SOURCES): Add bus/cs5536.c.
20918 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
20919 usb_keyboard.mod.
20920 (usb_mod_SOURCES): New variable.
20921 (usb_mod_CFLAGS): New variable.
20922 (usb_mod_LDFLAGS): New variable.
20923 (usbtest_mod_SOURCES): New variable.
20924 (usbtest_mod_CFLAGS): New variable.
20925 (usbtest_mod_LDFLAGS): New variable.
20926 (ohci_mod_SOURCES): New variable.
20927 (ohci_mod_CFLAGS): New variable.
20928 (ohci_mod_LDFLAGS): New variable.
20929 (usbms_mod_SOURCES): New variable.
20930 (usbms_mod_CFLAGS): New variable.
20931 (usbms_mod_LDFLAGS): New variable.
20932 (usb_keyboard_mod_SOURCES): New variable.
20933 (usb_keyboard_mod_CFLAGS): New variable.
20934 (usb_keyboard_mod_LDFLAGS): New variable.
20935 * include/grub/smbus.h: New file.
20936 * include/grub/cs5536.h: New file.
20937
20938 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20939
20940 * util/grub.d/00_header.in: Add safety check to make sure that
20941 ${locale_dir} exists before trying to probe it.
20942
20943 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20944
20945 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
20946 per the GNU Coding Standards; this is now too obscure to be worth
20947 documenting.
20948 (QNX): Likewise.
20949 (chainloader): Remove cross-reference to `SCO UnixWare'.
20950
20951 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20952
20953 * docs/grub.texi (Chain-loading): New section.
20954 (DOS/Windows): New section, borrowed from GRUB Legacy with details
20955 adjusted for GRUB 2.
20956 (SCO UnixWare): Likewise.
20957 (QNX): Likewise.
20958 (chainloader): Add reference to `Block list syntax'.
20959 (drivemap): New section.
20960 (parttool): New section.
20961
20962 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20963
20964 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
20965 the grub shell'.
20966 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
20967 (Installing GRUB using grub-install): Remove reference to the grub
20968 shell; mention `grub-mkimage' and `grub-setup' instead.
20969 (Invoking grub-install): Likewise.
20970 (Interface): Add reference to `Menu entry editor'.
20971 (serial): Remove `--device' option.
20972
20973 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20974
20975 * docs/grub.texi (Configuration): New section, documenting
20976 configuration file generation using grub-mkconfig. I've left a slot
20977 for documenting the full shell scripting format but have not yet
20978 started on writing that up.
20979 (Invoking grub-mkconfig): New section.
20980
20981 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20982
20983 * docs/grub.texi (direntry): Remove grub-terminfo reference.
20984 (GNU GRUB manual): Likewise.
20985 (General commands): Update description of `terminfo' for GRUB 2.
20986
20987 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20988
20989 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
20990 (GRUB_MOD_INIT): Fix capitalisation.
20991 * docs/grub.texi (Command-line and menu entry commands): Document
20992 gettext and gptsync commands.
20993
20994 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20995
20996 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
20997 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
20998
20999 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
21000
21001 Add btrfs probing support, currently only in the single-device case.
21002
21003 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
21004 function.
21005 (grub_guess_root_device): Call find_root_device_from_mountinfo
21006 before looking in /dev.
21007
21008 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21009
21010 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
21011 GRUB_DISK_SIZE_UNKNOWN.
21012 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
21013
21014 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
21015
21016 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
21017 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
21018 corrupted or not synced properly.
21019
21020 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21021
21022 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
21023 Reported by: Seth Goldberg.
21024
21025 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21026
21027 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
21028 addition of dest.
21029 Reported by: Seth Goldberg.
21030
21031 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21032
21033 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
21034 Reported by: Seth Goldberg.
21035
21036 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21037
21038 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
21039 64-bit address as signed on MIPS.
21040
21041 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
21042
21043 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
21044 to the empty string.
21045
21046 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
21047
21048 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
21049
21050 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
21051 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
21052 * kern/misc.c (__enable_execute_stack): Disable on
21053 GRUB_MACHINE_EMU.
21054
21055 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
21056
21057 Make grub-probe work with symbolic links under /dev/mapper as well
21058 as with real block devices. The Linux world seems to be (at best)
21059 in transition here, and GRUB shouldn't get caught in the middle.
21060
21061 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
21062 /dev/mapper.
21063
21064 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
21065
21066 * util/grub-script-check.c (main): Ensure defined behaviour on empty
21067 input files (in which case exit zero).
21068
21069 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
21070
21071 * kern/emu/misc.c (canonicalize_file_name): realpath can still
21072 return NULL for various reasons even if it has a maximum-length
21073 buffer: for example, there might be a symlink loop, or the path
21074 might exceed PATH_MAX. If this happens, return NULL.
21075
21076 2010-05-27 Robert Millan <rmh@gnu.org>
21077
21078 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
21079 partmap module to handle cross-partmap setups.
21080 Reported by Orestes Mas. Gràcies!
21081
21082 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
21083
21084 * util/grub-mkrescue.in: Initialise override_dir rather than
21085 assuming that it's unset or empty in the environment.
21086
21087 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
21088
21089 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
21090 variable index into p_index to suppress a warning with -Wshadow.
21091
21092 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
21093
21094 * INSTALL: Added flex >= 2.5.35 requirement.
21095
21096 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21097
21098 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
21099
21100 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21101
21102 cmostest support.
21103
21104 * commands/i386/cmostest.c: New file.
21105 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
21106 (cmostest_mod_SOURCES): New variable.
21107 (cmostest_mod_CFLAGS): Likewise.
21108 (cmostest_mod_LDFLAGS): Likewise.
21109 * conf/i386-pc.rmk: Likewise.
21110 * docs/grub.texi (Vendor power-on keys): New section.
21111 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
21112 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
21113 and GRUB_BUTTON_CMOS_ADDRESS.
21114 * util/grub.d/00_header.in: Handle powering-on by separate button.
21115
21116 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21117
21118 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
21119 Removed drawing_scrollbar argument. All users updated
21120 Fixes #29792.
21121 Reported by Jo Shields
21122
21123 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21124
21125 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
21126 buffer since gfxterm handles double repaint.
21127
21128 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21129
21130 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
21131 * term/gfxterm.c (real_scroll): Likewise.
21132
21133 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21134
21135 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
21136 before calling BIOS.
21137
21138 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21139
21140 * include/grub/i18n.h: Always enable grub_gettext.
21141
21142 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21143
21144 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
21145 partition naming style.
21146
21147 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
21148
21149 * util/grub-mkconfig.in: Fix handling of -o so that it works when
21150 not the first option.
21151
21152 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
21153
21154 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
21155
21156 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
21157
21158 * util/misc.c: Move inclusion of <limits.h> to ...
21159 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
21160
21161 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
21162
21163 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
21164 Fix merge error in NetBSD code.
21165 (find_partition_start) [__NetBSD__]: Likewise.
21166
21167 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
21168
21169 Fix grub-mkrescue usage unit testing.
21170
21171 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
21172
21173 2010-05-18 Christian Franke <franke@computer.org>
21174
21175 * util/grub.d/10_windows.in: Use path names instead of
21176 drive letters to prevent warning from Cygwin 1.7.
21177 Add drivemap command to menuentry if needed.
21178
21179 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
21180
21181 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
21182 gnumach and gnumach.gz.
21183
21184 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21185
21186 * include/grub/i18n.h (gettext): Inline instead of using #define.
21187 (grub_gettext): Likewise.
21188 (_): Likewise.
21189
21190 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21191
21192 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
21193 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
21194 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
21195 (main): Add a slash after pkglibdirroot.
21196
21197 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21198
21199 * util/grub-install.in: Add missing "in" keyword.
21200
21201 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21202
21203 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
21204 Reported by: Seth Goldberg.
21205
21206 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21207
21208 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
21209
21210 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21211
21212 * configure.ac: Check for Linux device-mapper support.
21213
21214 * util/hostdisk.c (device_is_mapped): New function.
21215 (find_partition_start): New function, partly broken out from
21216 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
21217 device-mapper support added.
21218 (linux_find_partition): Use find_partition_start.
21219 (convert_system_partition_to_system_disk): Add `st' argument.
21220 Support Linux /dev/mapper/* devices if device-mapper support is
21221 available; only DM-RAID devices are understood at present.
21222 (find_system_device): Add `st' argument. Pass it to
21223 convert_system_partition_to_system_disk.
21224 (grub_util_biosdisk_get_grub_dev): Pass stat result to
21225 find_system_device and convert_system_partition_to_system_disk. Use
21226 find_partition_start.
21227
21228 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
21229 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
21230 * util/deviceiter.c [__linux__]: Define MINOR.
21231 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
21232 * util/mkdevicemap.c (grub_putchar): New function.
21233 (grub_getkey): New function.
21234 (grub_refresh): New function.
21235 (main): Set debug=all if -v -v is used.
21236
21237 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21238
21239 Fix build with non-GNU libcs.
21240
21241 * util/misc.c (canonicalize_file_name): Move to ...
21242 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
21243 grub_make_system_path_relative_to_its_root.
21244
21245 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21246
21247 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
21248 we handle finding grub-mkimage. Default to finding grub-mkimage in
21249 ${bindir} with program_transform_name applied, and provide a
21250 --grub-mkimage option to override this.
21251
21252 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21253
21254 Remove grub-mkisofs.
21255
21256 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
21257 (grub_mkisofs_SOURCES): Removed.
21258 (grub_mkisofs_CFLAGS): Removed.
21259 * util/mkisofs/defaults.h: Removed.
21260 * util/mkisofs/eltorito.c: Likewise.
21261 * util/mkisofs/exclude.h: Likewise.
21262 * util/mkisofs/hash.c: Likewise.
21263 * util/mkisofs/include/: Likewise.
21264 * util/mkisofs/include/fctldefs.h: Likewise.
21265 * util/mkisofs/include/mconfig.h: Likewise.
21266 * util/mkisofs/include/prototyp.h: Likewise.
21267 * util/mkisofs/include/statdefs.h: Likewise.
21268 * util/mkisofs/iso9660.h: Likewise.
21269 * util/mkisofs/joliet.c: Likewise.
21270 * util/mkisofs/match.c: Likewise.
21271 * util/mkisofs/match.h: Likewise.
21272 * util/mkisofs/mkisofs.c: Likewise.
21273 * util/mkisofs/mkisofs.h: Likewise.
21274 * util/mkisofs/msdos_partition.h: Likewise.
21275 * util/mkisofs/multi.c: Likewise.
21276 * util/mkisofs/name.c: Likewise.
21277 * util/mkisofs/rock.c: Likewise.
21278 * util/mkisofs/tree.c: Likewise.
21279 * util/mkisofs/write.c: Likewise.
21280
21281 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21282
21283 Unify grub-mkimage accross platforms.
21284
21285 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
21286 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
21287 (grub_mkelfimage_SOURCES): Removed.
21288 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
21289 (util/grub-mkimage.c_DEPENDENCIES): .. this.
21290 (bin_UTILITIES): Add grub-mkimage.
21291 (grub_mkimage_SOURCES): New variable.
21292 (kernel_img_HEADERS): Remove machine/kernel.h.
21293 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
21294 (pkglib_PROGRAMS): Add kernel.img.
21295 (kernel_img_HEADERS): Add machine/kernel.h.
21296 (kernel_img_FORMAT): Removed.
21297 (bin_UTILITIES): Remove grub-mkimage.
21298 (grub_mkimage_SOURCES): Removed.
21299 (grub_mkimage_CFLAGS): Likewise.
21300 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21301 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
21302 (pkglib_PROGRAMS): Add kernel.img.
21303 (bin_UTILITIES): Remove grub-mkimage.
21304 (grub_mkimage_SOURCES): Removed.
21305 (grub_mkimage_CFLAGS): Likewise.
21306 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21307 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
21308 (pkglib_PROGRAMS): Add kernel.img.
21309 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
21310 (pkglib_PROGRAMS): Add kernel.img.
21311 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
21312 (grub_mkimage_SOURCES): Removed.
21313 (grub_mkimage_CFLAGS): Likewise.
21314 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21315 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
21316 (pkglib_PROGRAMS): Add kernel.img.
21317 (bin_UTILITIES): Remove grub-mkimage.
21318 (grub_mkimage_SOURCES): Removed.
21319 (grub_mkimage_CFLAGS): Likewise.
21320 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21321 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
21322 (grub_mkimage_SOURCES): Removed.
21323 (grub_mkimage_CFLAGS): Likewise.
21324 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21325 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
21326 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
21327 (grub_pe32_optional_header): ... this.
21328 (grub_pe64_optional_header): ... and this. All users updated.
21329 (GRUB_PE32_PE32_MAGIC): Split into ..
21330 (GRUB_PE32_PE32_MAGIC): .. this.
21331 (GRUB_PE32_PE64_MAGIC): .. and this.
21332 (GRUB_PE32_SIGNATURE_SIZE): New definition.
21333 * include/grub/elf.h (PT_GNU_STACK): New definition.
21334 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
21335 * include/grub/i386/efi/kernel.h: Likewise.
21336 * include/grub/i386/kernel.h: Likewise.
21337 * include/grub/i386/pc/kernel.h: Likewise.
21338 * include/grub/i386/qemu/boot.h: Likewise.
21339 * include/grub/mips/kernel.h: Likewise.
21340 * include/grub/mips/qemu-mips/kernel.h: Likewise.
21341 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21342 * include/grub/powerpc/kernel.h: Likewise.
21343 * include/grub/sparc64/ieee1275/boot.h: Likewise.
21344 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21345 * include/grub/sparc64/kernel.h: Likewise.
21346 * include/grub/x86_64/efi/kernel.h: Likewise.
21347 * include/grub/x86_64/kernel.h: Likewise.
21348 * include/grub/offsets.h: New file.
21349 * include/grub/kernel.h (grub_module_info): Split into ...
21350 (grub_module_info32): ... this.
21351 (grub_module_info64): ... and this.
21352 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
21353 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
21354 (grub_boot_blocklist): Moved from here ...
21355 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
21356 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
21357 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
21358 * include/grub/types.h (grub_target_to_host16): Removed.
21359 (grub_target_to_host32): Likewise.
21360 (grub_target_to_host64): Likewise.
21361 (grub_host_to_target16): Likewise.
21362 (grub_host_to_target32): Likewise.
21363 (grub_host_to_target64): Likewise.
21364 (grub_host_to_target_addr): Likewise.
21365
21366 Support grub-mkrescue for efi, coreboot and qemu.
21367
21368 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
21369 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
21370 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
21371 * util/grub-mkrawimage.c: Moved from here ...
21372 * util/grub-mkimage.c: ... here. All users updated.
21373 (ALIGN_ADDR): Use image_target.
21374 (TARGET_NO_FIELD): New const.
21375 (image_target_desc): New type.
21376 (image_targets): New array.
21377 (grub_target_to_host64): Use image_target.
21378 (grub_target_to_host32): Likewise.
21379 (grub_target_to_host16): Likewise.
21380 (grub_host_to_target64): Likewise.
21381 (grub_host_to_target32): Likewise.
21382 (grub_host_to_target16): Likewise.
21383 (grub_host_to_target_addr): Likewise.
21384 (generate_image): Handle multiimage.
21385 (main): Require -O parameter. All users updated.
21386 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
21387 util/efi/grub-mkimage.c
21388 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
21389 New option --rom-directory.
21390 Use xorriso.
21391 * util/i386/efi/grub-mkimage.c: Removed.
21392 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
21393 (grub_target_to_host32): Likewise.
21394 (grub_target_to_host64): Likewise.
21395 (grub_host_to_target16): Likewise.
21396 (grub_host_to_target32): Likewise.
21397 (grub_host_to_target64): Likewise.
21398 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
21399 (grub_target_to_host32): Likewise.
21400 (grub_target_to_host64): Likewise.
21401 (grub_host_to_target16): Likewise.
21402 (grub_host_to_target32): Likewise.
21403 (grub_host_to_target64): Likewise.
21404
21405 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
21406
21407 Source tree is reorganized for emu build.
21408
21409 * include/grub/util/console.h: Move from here...
21410 * include/grub/emu/console.h: ...to here.
21411 * include/grub/util/getroot.h: Move from here...
21412 * include/grub/emu/getroot.h: ...to here.
21413 * include/grub/util/hostdisk.h: Move from here...
21414 * include/grub/emu/hostdisk.h: ...to here.
21415 * util/console.c: Move from here...
21416 * kern/emu/console.c: ...to here.
21417 * util/getroot.c: Move from here...
21418 * kern/emu/getroot.c: ...to here.
21419 * util/grub-emu.c: Move from here...
21420 * kern/emu/main.c: ...to here.
21421 * util/hostdisk.c: Move from here...
21422 * kern/emu/hostdisk.c: ...to here.
21423 * util/hostfs.c: Move from here...
21424 * kern/emu/hostfs.c: ...to here.
21425 * util/mm.c: Move from here...
21426 * kern/emu/mm.c: ...to here.
21427 * util/pci.c: Move from here...
21428 * bus/emu/pci.c: ...to here.
21429 * util/sdl.c: Move from here...
21430 * video/emu/sdl.c: ...to here.
21431 * util/time.c: Move from here...
21432 * kern/emu/time.c: ...to here.
21433 * util/usb.c: Move from here...
21434 * bus/usb/emu/usb.c: ...to here.
21435
21436 * include/grub/emu/misc.h: New header for grub-emu functions.
21437 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
21438
21439 * conf/any-emu.rmk: Rule updates for above renames.
21440 * conf/common.rmk: Likewise.
21441 * conf/i386-pc.rmk: Likewise.
21442 * conf/i386-qemu.rmk: Likewise.
21443 * conf/mips.rmk: Likewise.
21444 * conf/sparc64-ieee1275.rmk: Likewise.
21445 * conf/x86-efi.rmk: Likewise.
21446
21447 * disk/lvm.h: #include updates for above renames.
21448 * util/grub-mkrelpath.c: Likewise.
21449 * util/grub-probe.c: Likewise.
21450 * util/i386/pc/grub-setup.c: Likewise.
21451 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21452 * kern/emu/console.c: Likewise.
21453 * kern/emu/getroot.c: Likewise.
21454 * kern/emu/hostdisk.c: Likewise.
21455 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
21456
21457 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
21458 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
21459 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
21460 * util/misc.c: Remove grub-emu functions.
21461
21462 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
21463
21464 Fix gfxmenu crash.
21465 Reported by: Thorsten Grützmacher.
21466
21467 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
21468 timeout hook.
21469 (circprog_set_property): Register and unregister timeout hook.
21470 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
21471 (label_destroy): Free template. and unregister hook.
21472 (label_set_state): New function.
21473 (label_set_property): Handle templates and hooks.
21474 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
21475 timeout hook.
21476 (progress_bar_set_property): Register and unregister timeout hook.
21477 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
21478 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
21479 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
21480 (update_timeout_visit): Removed.
21481 (update_timeouts): New function.
21482 (redraw_timeouts): Likewise.
21483 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
21484 (grub_gfxmenu_clear_timeout): Likewise.
21485 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
21486 (grub_gfxmenu_timeout_notify): Likewise.
21487 (grub_gfxmenu_timeout_notifications): New external variable.
21488 (grub_gfxmenu_timeout_register): New function.
21489 (grub_gfxmenu_timeout_unregister): Likewise.
21490
21491 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
21492
21493 Transform (broken) vga terminal into (working) vga video driver.
21494
21495 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
21496 video/i386/pc/vga.c.
21497 * include/grub/video.h (grub_video_driver_id):
21498 Add GRUB_VIDEO_DRIVER_VGA.
21499 * term/i386/pc/vga.c: Renamed to ...
21500 * video/i386/pc/vga.c: ...this
21501 (DEBUG_VGA): Removed.
21502 (CHAR_WIDTH): Likewise.
21503 (CHAR_HEIGHT): Likewise.
21504 (TEXT_WIDTH): Likewise.
21505 (TEXT_HEIGHT): Likewise.
21506 (DEFAULT_FG_COLOR): Likewise.
21507 (DEFAULT_BG_COLOR): Likewise.
21508 (colored_char): Likewise.
21509 (xpos): Likewise.
21510 (ypos): Likewise.
21511 (cursor_state): Likewise.
21512 (fg_color): Likewise.
21513 (bg_color): Likewise.
21514 (text_buf): Likewise.
21515 (page): Likewise.
21516 (font): Likewise.
21517 (framebuffer): New variable.
21518 (set_read_map): Disabled.
21519 (setup): New variable.
21520 (is_target): Likewise.
21521 (grub_vga_mod_init): Likewise.
21522 (grub_vga_mod_fini): Likewise.
21523 (check_vga_mem): Likewise.
21524 (write_char): Likewise.
21525 (write_cursor): Likewise.
21526 (scroll_up): Likewise.
21527 (grub_vga_putchar): Likewise.
21528 (grub_vga_getcharwidth): Likewise.
21529 (grub_vga_getwh): Likewise.
21530 (grub_vga_getxy): Likewise.
21531 (grub_vga_gotoxy): Likewise.
21532 (grub_vga_cls): Likewise.
21533 (grub_vga_setcolorstate): Likewise.
21534 (grub_vga_setcursor): Likewise.
21535 (grub_video_vga_init): New function.
21536 (grub_video_vga_setup): Likewise.
21537 (grub_video_vga_fini): Likewise.
21538 (update_target): Likewise.
21539 (grub_video_vga_blit_bitmap): Likewise.
21540 (grub_video_vga_blit_render_target): Likewise.
21541 (grub_video_vga_set_active_render_target): Likewise.
21542 (grub_video_vga_get_active_render_target): Likewise.
21543 (grub_video_vga_swap_buffers): Likewise.
21544 (grub_video_vga_set_palette): Likewise.
21545 (grub_video_vga_get_info_and_fini): Likewise.
21546 (grub_vga_term): Removed.
21547 (grub_video_vga_adapter): New variable.
21548 (GRUB_MOD_INIT): Register a video driver instead of terminal.
21549 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
21550
21551 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21552
21553 * video/readers/jpeg.c: Indented.
21554
21555 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21556
21557 Various jpeg cleanups.
21558
21559 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
21560 (grub_jpeg_decode_quan_table): Use sizeof.
21561 (grub_jpeg_decode_du): Use ARRAY_SIZE.
21562
21563 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
21564
21565 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
21566 tables. Ignore non-last ac bit.
21567 (grub_jpeg_decode_quan_table): Likewise.
21568
21569 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21570
21571 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
21572 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
21573 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21574 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
21575 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
21576 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
21577
21578 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21579
21580 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
21581 error.
21582
21583 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21584
21585 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
21586
21587 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21588
21589 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
21590 condition.
21591
21592 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21593
21594 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
21595 part.
21596
21597 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21598
21599 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
21600 pointers.
21601
21602 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21603
21604 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
21605
21606 2010-05-01 Christian Franke <franke@computer.org>
21607
21608 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
21609 Remove broken Cygwin path conversion.
21610 * util/misc.c: [__CYGWIN__] Add include and define.
21611 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
21612 for Cygwin 1.7.
21613 (make_system_path_relative_to_its_root): Simplify loop, replace early
21614 return by break.
21615 [__CYGWIN__] Add conversion to win32 path.
21616 Include "/" case in trailing slash removal.
21617
21618 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21619
21620 * kern/main.c (grub_load_config): Fix copy-pasted comment.
21621 Reported by: Seth Goldberg
21622
21623 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21624
21625 * commands/help.c (grub_cmd_help): Fix a typo.
21626 Reported by: Seth Goldberg
21627
21628 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21629
21630 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
21631 name and add N_.
21632 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
21633 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
21634 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
21635 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
21636 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
21637 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
21638 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
21639 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
21640 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
21641 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
21642 * normal/context.c (GRUB_MOD_INIT): Likewise.
21643 * normal/main.c (GRUB_MOD_INIT): Likewise.
21644 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
21645 * term/serial.c (GRUB_MOD_INIT): Likewise.
21646 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
21647
21648 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21649
21650 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
21651 extra == 0.
21652
21653 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21654
21655 * commands/iorw.c: New file.
21656 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
21657 (iorw_mod_SOURCES): New variable.
21658 (iorw_mod_CFLAGS): Likewise.
21659 (iorw_mod_LDFLAGS): Likewise.
21660
21661 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21662
21663 Hotkey support
21664
21665 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
21666 * normal/main.c (hotkey_aliases): New variable.
21667 (grub_normal_add_menu_entry): Parse "--hotkey".
21668 * normal/menu_text.c (run_menu): Handle hotkeys.
21669
21670 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21671
21672 * kern/i386/coreboot/init.c (grub_machine_init): Call
21673 grub_machine_mmap_init on qemu.
21674
21675 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21676
21677 * boot/i386/qemu/boot.S: Add a missing .code16.
21678
21679 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21680
21681 Use LBIO on coreboot.
21682
21683 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
21684 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
21685 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
21686 New declaration.
21687 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
21688 grub_machine_mmap_init on coreboot.
21689 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
21690 GRUB_LINUXBIOS_MEMBER_LINK.
21691 (grub_machine_mmap_iterate): Fix declaration.
21692 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
21693
21694 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21695
21696 Split coreboot and multiboot ports.
21697
21698 * conf/i386-multiboot.rmk: New file.
21699 * configure.ac: Add multiboot port.
21700 * include/grub/i386/multiboot/boot.h: New file.
21701 * include/grub/i386/multiboot/console.h: Likewise.
21702 * include/grub/i386/multiboot/init.h: Likewise.
21703 * include/grub/i386/multiboot/kernel.h: Likewise.
21704 * include/grub/i386/multiboot/loader.h: Likewise.
21705 * include/grub/i386/multiboot/memory.h: Likewise.
21706 * include/grub/i386/multiboot/serial.h: Likewise.
21707 * include/grub/i386/multiboot/time.h: Likewise.
21708 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
21709 * loader/multiboot.c: Likewise.
21710 * loader/multiboot_mbi2.c: Likewise.
21711 * util/grub-mkrescue.in: Generate multiboot rescue.
21712
21713 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21714
21715 * kern/parser.c (grub_parser_execute): Cope with read-only config.
21716
21717 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21718
21719 Merge handling of input and output terminals. Fix a hang.
21720
21721 * commands/terminal.c (abstract_terminal): New struct.
21722 (handle_command): New function. Based on grub_cmd_terminal_input.
21723 (grub_cmd_terminal_input): Use handle_command.
21724 (grub_cmd_terminal_output): Use handle_command.
21725
21726 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
21727
21728 Fix comment handling.
21729
21730 * tests/grub_script_comments.in: New testcase.
21731 * conf/tests.rmk: Rules for new testcase.
21732 * script/yylex.l: Updated flex rules.
21733
21734 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
21735
21736 * docs/grub.texi (play): Document that zero pitches produce rests.
21737 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
21738 if argc is 1.
21739
21740 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
21741
21742 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
21743 autogen issues.
21744
21745 2010-04-26 Christian Franke <franke@computer.org>
21746
21747 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
21748 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
21749 (grub_get_prefix): Remove function.
21750 * util/grub-emu.c (main): Replace grub_get_prefix () call by
21751 make_system_path_relative_to_its_root ().
21752 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
21753
21754 2010-04-24 Christian Franke <franke@computer.org>
21755
21756 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
21757 (kernel_img_LDFLAGS): Remove -static-libgcc.
21758
21759 2010-04-24 Christian Franke <franke@computer.org>
21760
21761 * configure.ac: Do not CHECK_BSS_START_SYMBOL
21762 and CHECK_END_SYMBOL if grub-emu is built.
21763 Unset TARGET_OBJ2ELF if grub-emu is built
21764 without module support.
21765
21766 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
21767
21768 Nilfs2 support.
21769
21770 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
21771 (grub_fstest_SOURCES): Likewise.
21772 (pkglib_MODULES): Add nilfs2.mod.
21773 (nilfs2_mod_SOURCES): New variable.
21774 (nilfs2_mod_CFLAGS): Likewise.
21775 (nilfs2_mod_LDFLAGS): Likewise.
21776 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21777 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21778 * fs/nilfs2.c: New file.
21779
21780 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
21781
21782 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
21783 is not supported.
21784
21785 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
21786
21787 Add grub-mkconfig support for NetBSD.
21788
21789 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
21790 * util/grub-mkconfig.in: export new NetBSD specific variables.
21791 * po/POTFILES-shell: added 10_netbsd.in.
21792 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
21793
21794 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
21795
21796 Fix emu build with grub-emu-pci and grub-emu-modules.
21797
21798 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
21799 functions.
21800 * include/grub/libpciaccess.h: New file.
21801 * conf/any-emu.rmk: Update kernel headers for emu build.
21802
21803 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21804
21805 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
21806
21807 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21808
21809 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
21810
21811 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21812
21813 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
21814 Retrieve chosen/bootpath if bootpath isn't hardcoded.
21815 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
21816 util/ieee1275/ofpath.c.
21817 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
21818 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
21819 * include/grub/sparc64/ieee1275/boot.h
21820 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
21821 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
21822 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
21823 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
21824 const char *.
21825 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
21826 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
21827 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
21828 install.
21829
21830 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21831
21832 * util/grub-mkconfig.in: Corrected two == equality tests.
21833 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
21834 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
21835 expect a number appended to it.
21836 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
21837 expects a number appended to it.
21838
21839 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21840
21841 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
21842
21843 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21844
21845 * util/hostdisk.c (make_device_name): Change to new partition naming.
21846
21847 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
21848
21849 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
21850
21851 2010-04-17 Christian Franke <franke@computer.org>
21852
21853 * Makefile.in: Add missing localedir setting.
21854
21855 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
21856
21857 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
21858 mistake in r2156. Noticed by Anthony Fok.
21859
21860 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
21861 @localedir@.
21862 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
21863
21864 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
21865
21866 Fix a spurious, uninitialized variable warning.
21867
21868 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
21869 Initialize variable, shdr.
21870 (grub_freebsd_load_elfmodule): Likewise.
21871 (grub_freebsd_load_elf_meta): Likewise.
21872
21873 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
21874
21875 Fix for escaped dollar in double quoted strings.
21876
21877 * script/yylex.l: Updated flex rules.
21878 * conf/tests.rmk: Rule for new testcase.
21879 * tests/grub_script_dollar.in: New testcase.
21880
21881 2010-04-13 Carles Pina i Estany <carles@pina.cat>
21882 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
21883
21884 Enclose all translated strings in grub.cfg in single quotes, and
21885 escape them appropriately (Ubuntu bug #552921).
21886
21887 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
21888 * util/grub.d/10_hurd.in: Use it.
21889 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
21890 * util/grub.d/10_linux.in (linux_entry): Likewise.
21891
21892 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21893
21894 Fix cygwin compilation.
21895
21896 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
21897 * include/grub/misc.h (__register_frame_info)
21898 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
21899 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21900 * kern/misc.c (__register_frame_info)
21901 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
21902 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21903
21904 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21905
21906 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
21907
21908 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21909
21910 Unify libgcc processing.
21911
21912 * Makefile.in (kernel_img_LDFLAGS): New variable.
21913 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
21914 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
21915 overwriting.
21916 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
21917 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
21918 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
21919 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
21920 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
21921 overwriting. Remove -lgcc and -static-libgcc
21922 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
21923 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21924 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21925 (kernel_img_LDFLAGS): Append instead of overwriting.
21926 Remove -lgcc and -static-libgcc
21927 * conf/sparc64-ieee1275.rmk: Likewise.
21928 * include/grub/powerpc/libgcc.h: Move to ...
21929 * include/grub/libgcc.h: .. this.
21930 * include/grub/libgcc.h: Don't export most of the function on x86.
21931 (__bswapsi2): New export.
21932 (__bswapdi2): Likewise.
21933 * include/grub/mips/libgcc.h: Removed.
21934 * include/grub/sparc64/libgcc.h: Likewise.
21935
21936 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21937
21938 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
21939 disk_info_msg (conflicts with gettexting into languages with cases).
21940
21941 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
21942
21943 Add grub-probe support for NetBSD.
21944
21945 * util/getroot.c (find_root_device): Convert block device to
21946 character device on NetBSD.
21947 * util/probe.c (probe): Require character device on NetBSD.
21948 * util/hostdisk.c: NetBSD specific headers.
21949 (configure_device_driver): new function to tune device driver
21950 parameters (currently only for NetBSD floppy driver).
21951 (grub_util_biosdisk_open): NetBSD specific code (get disk size
21952 via disklabel ioctl).
21953 (open_device): call configure_device_driver on NetBSD.
21954 (convert_system_partition_to_system_disk): NetBSD specific code.
21955 (device_is_wholedisk): Likewise.
21956 (grub_util_biosdisk_get_grub_dev): Likewise.
21957 (make_device_name): Fixed a typo in bsd_part_str.
21958 * configure.ac: check for opendisk() and getrawpartition() on
21959 NetBSD and set LIBUTIL.
21960 * Makefile.in: add LIBUTIL to LIBS.
21961
21962 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
21963
21964 Documentation fix.
21965
21966 * util/grub-script-check.c: Better help message.
21967
21968 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
21969
21970 Fix FreeBSD build.
21971
21972 * configure.ac: Flex version check.
21973 * conf/common.rmk: Add -Wno-error to sh.mod.
21974 * script/yylex.l: Remove all #pragma.
21975
21976 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21977
21978 * include/grub/util/misc.h (canonicalise_file_name): Add missing
21979 prototype.
21980 Reported by: Seth Goldberg.
21981
21982 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21983
21984 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
21985 Rename "module" to "module2".
21986 Reported by: Seth Goldberg.
21987
21988 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21989
21990 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
21991 EXPORT_FUNC.
21992 Reported by: Seth Goldberg.
21993
21994 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21995
21996 * lib/posix_wrap/locale.h: Add missing file.
21997 Reported by: Seth Goldberg.
21998
21999 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22000
22001 grub-emu module load support.
22002
22003 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
22004 NO_DYNAMIC_MODULES switched to this.
22005 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
22006 (CFLAGS): Likewise.
22007 * conf/any-emu.rmk: Generate symlist.
22008 (kernel_img_HEADERS): Add util/datetime.h.
22009 (kernel_img_HEADERS) [sdl]: Add sdl.h.
22010 (kernel_img_HEADERS) [libusb]: Add libusb.h.
22011 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
22012 kern/$(target_cpu)/cache.S.
22013 * configure.ac (grub-emu-modules): New option.
22014 * genmk.rb: Handle multiple source lists.
22015 * include/grub/sdl.h: New file.
22016 * include/grub/libusb.h: Likewise.
22017 * util/grub-emu.c (main): Hanle (host) root.
22018 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
22019 GRUB_ERR_UNKNOWN_DEVICE.
22020 * util/misc.c: Move mm functions to ...
22021 * util/mm.c: ... here. All users updated.
22022
22023 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22024
22025 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
22026 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
22027 missing files.
22028 (maintainer-clean): Remove libgcrypt-grub.
22029
22030 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22031
22032 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
22033
22034 2010-04-09 EFI Coder <eficoder@hotmail.com>
22035
22036 * normal/menu_text.c (print_message): Clean up the message and show
22037 the Fn information when on EFI
22038 * term/efi/console.c (grub_console_checkkey): Add F4 support.
22039
22040 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22041
22042 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
22043 All users updated.
22044 * normal/crypto.c (read_crypto_list): Likewise.
22045 * normal/dyncmd.c (read_command_list): Likewise.
22046 * normal/term.c (read_terminal_list): Likewise.
22047 * normal/main.c (read_lists): Use explicit prefix.
22048 (read_lists_hook): Use read_lists.
22049 (grub_normal_execute): Likewise.
22050
22051 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22052
22053 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
22054 Reported by: Thomas Schmitt.
22055 Add -no-emul-boot to grub-mkisofs parameters.
22056
22057 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22058
22059 * font/font.c: Indented.
22060
22061 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22062
22063 Elif support to GRUB script (by Deepak Vankadaru).
22064
22065 * tests/grub_script_if.in: New testcase.
22066 * conf/tests.rmk: Rule for new testcase.
22067 * script/parser.y: Grammar rules for elif.
22068
22069 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22070
22071 While and until loops support to GRUB script.
22072
22073 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
22074 (grub_script_create_cmdwhile): New function prototype.
22075 (grub_script_execute_cmdwhile): New function prototype.
22076 * script/execute.c (grub_script_execute_cmdwhile): New function.
22077 * script/parser.y (command): New commands.
22078 (whilecmd): New grammar rule.
22079 (untilcmd): New grammar rule.
22080 * script/script.c (grub_script_create_cmdwhile): New function.
22081 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
22082 function.
22083
22084 * tests/grub_script_while1.in: New testcase.
22085 * conf/tests.rmk: Rule for new testcase.
22086
22087 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22088
22089 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
22090 as *.jpg.
22091
22092 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
22093
22094 GRUB_BACKGROUND support.
22095
22096 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
22097 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
22098
22099 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22100
22101 Load fonts and modules for gfxmenu in grub-mkconfig.
22102 Idea by: Mario Vazquez
22103
22104 * util/grub.d/00_header.in: Load pf2 and image modules.
22105
22106 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22107
22108 grub-mkconfig multiple terminal support.
22109
22110 * util/grub-mkconfig.in: Handle multiple terminals correctly.
22111 * util/grub.d/00_header.in: Likewise.
22112
22113 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22114
22115 * Makefile.in: Specify files explicitly instead of using $< and $@ since
22116 we use cd $(srcdir).
22117
22118 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
22119
22120 * util/grub.d/10_linux.in: Only use the first word of
22121 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
22122 spaces in GRUB_DISTRIBUTOR.
22123 * util/grub.d/10_kfreebsd.in: Likewise.
22124 * util/grub.d/10_hurd.in: Likewise.
22125
22126 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
22127
22128 Fix unit testing framework for Qemu 0.12.
22129
22130 * tests/util/grub-shell.in: Remove -serial stdio option.
22131
22132 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
22133
22134 POSIX header file wrappers.
22135
22136 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
22137 equivalents.
22138 * lib/posix_wrap/ctype.h: Likewise.
22139 * lib/posix_wrap/errno.h: Likewise.
22140 * lib/posix_wrap/langinfo.h: Likewise.
22141 * lib/posix_wrap/limits.h: Likewise.
22142 * lib/posix_wrap/localcharset.h: Likewise.
22143 * lib/posix_wrap/stdint.h: Likewise.
22144 * lib/posix_wrap/stdio.h: Likewise.
22145 * lib/posix_wrap/stdlib.h: Likewise.
22146 * lib/posix_wrap/string.h: Likewise.
22147 * lib/posix_wrap/sys/types.h: Likewise.
22148 * lib/posix_wrap/unistd.h: Likewise.
22149 * lib/posix_wrap/wchar.h: Likewise.
22150 * lib/posix_wrap/wctype.h: Likewise.
22151 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
22152 (grub_script.yy.h): Likewise.
22153 * script/yylex.l: Remove POSIX emulation #defines.
22154 * Makefile.in (POSIX_CFLAGS): New variable.
22155 (GNULIB_UTIL_CFLAGS): Likewise.
22156
22157 Regexp support.
22158
22159 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
22160 (regexp_mod_SOURCES): New variable.
22161 (regexp_mod_CFLAGS): Likewise.
22162 (regexp_mod_LDFLAGS): Likewise.
22163 * commands/regexp.c: New file.
22164 * gnulib/regcomp.c: New file. Imported from gnulib.
22165 * gnulib/regex.c: Likewise.
22166 * gnulib/regex_internal.c: Likewise.
22167 * gnulib/regex_internal.h: Likewise.
22168 * gnulib/regexec.c: Likewise.
22169 * gnulib/regex.h: Likewise.
22170
22171 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22172
22173 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
22174 unsupported video mode types.
22175
22176 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22177
22178 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
22179
22180 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22181
22182 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
22183 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
22184
22185 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
22186
22187 Remove unused grub_vga_get_font.
22188
22189 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
22190 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
22191
22192 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22193
22194 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
22195 * include/grub/misc.h: Likewise.
22196
22197 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22198
22199 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
22200 for which failure is fatal.
22201
22202 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22203
22204 * util/grub-install.in: Use mkdir -p to create grub directory.
22205 * util/i386/efi/grub-install.in: Likewise.
22206 * util/ieee1275/grub-install.in: Likewise.
22207
22208 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22209
22210 * Makefile.in (LEX): new variable.
22211
22212 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22213
22214 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
22215 `=' and added double quotes on operands of this equality test.
22216
22217 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22218
22219 * Makefile.in (uninstall): Remove a leftover debug echo.
22220 Reported by: Grégoire Sutre
22221
22222 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22223
22224 MIPS multiboot2 support.
22225
22226 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
22227 (multiboot2_mod_SOURCES): New variable.
22228 (multiboot2_mod_CFLAGS): Likewise.
22229 (multiboot2_mod_LDFLAGS): Likewise.
22230 (multiboot2_mod_ASFLAGS): Likewise.
22231 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
22232 definition.
22233 (MULTIBOOT_ENTRY_REGISTER): Likewise.
22234 (MULTIBOOT_MBI_REGISTER): Likewise.
22235 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
22236 (MULTIBOOT_ELF32_MACHINE): Likewise.
22237 (MULTIBOOT_ELF64_MACHINE): Likewise.
22238 * include/grub/mips/multiboot.h: New file.
22239 * include/grub/video.h (grub_video_driver_id): New type
22240 GRUB_VIDEO_DRIVER_SM712.
22241 (grub_video_get_info_and_fini): Export.
22242 (grub_video_get_palette): Likewise.
22243 (grub_video_get_driver_id): Likewise.
22244 * include/multiboot2.h: Resynced with spec.
22245 * loader/i386/multiboot.c: Moved from here ...
22246 * loader/multiboot.c: ... here. All users updated.
22247 (grub_multiboot_boot): Use platform-specific macros.
22248 * loader/i386/multiboot_elfxx.c: Moved from here ...
22249 * loader/multiboot_elfxx.c: ... here. All users updated.
22250 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
22251 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
22252 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
22253
22254 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
22255
22256 Import gnulib argp module.
22257
22258 * gnulib/argp-ba.c: New file.
22259 * gnulib/argp-eexst.c: Likewise.
22260 * gnulib/argp-fmtstream.c: Likewise.
22261 * gnulib/argp-fmtstream.h: Likewise.
22262 * gnulib/argp-fs-xinl.c: Likewise.
22263 * gnulib/argp-help.c: Likewise.
22264 * gnulib/argp-namefrob.h: Likewise.
22265 * gnulib/argp-parse.c: Likewise.
22266 * gnulib/argp-pin.c: Likewise.
22267 * gnulib/argp-pv.c: Likewise.
22268 * gnulib/argp-pvh.c: Likewise.
22269 * gnulib/argp-version-etc.c: Likewise.
22270 * gnulib/argp-version-etc.h: Likewise.
22271 * gnulib/argp-xinl.c: Likewise.
22272 * gnulib/argp.h: Likewise.
22273
22274 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22275
22276 * kern/device.c (grub_device_iterate): Clear errors after failed
22277 opening device.
22278
22279 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22280
22281 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
22282 returned by firmware.
22283
22284 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
22285
22286 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
22287 compilation on coreboot and qemu
22288
22289 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22290
22291 * include/multiboot2.h: Resync with spec.
22292
22293 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22294
22295 Multiboot2 tag support
22296
22297 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
22298 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
22299 Remove loader/multiboot_loader.c.
22300 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
22301 (grub_multiboot2_real_boot): Likewise.
22302 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
22303 (grub_get_multiboot_mmap_count): New proto.
22304 (grub_fill_multiboot_mmap): Likewise.
22305 (grub_multiboot_set_video_mode): Likewise.
22306 (grub_multiboot_set_console): Likewise.
22307 (grub_multiboot_load): Likewise.
22308 (grub_multiboot_load_elf): Likewise.
22309 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
22310 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
22311 * include/multiboot.h: Resynced with specification.
22312 * include/multiboot2.h: Resynced with specification.
22313 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
22314 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
22315 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
22316 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
22317 users updated.
22318 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
22319 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
22320 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
22321 Removed.
22322 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
22323 Moved from here...
22324 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
22325 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22326 Moved from here...
22327 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
22328 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
22329 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
22330 All users updated.
22331 * loader/i386/multiboot_mbi2.c: New file.
22332
22333 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22334
22335 Resync with gnulib.
22336
22337 * Makefile.in (GNULIB_CFLAGS): New variable.
22338 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
22339 (grub_script_check_CFLAGS): New variable.
22340 * gnulib/alloca.h: Resync with gnulib.
22341 * gnulib/error.c: Likewise.
22342 * gnulib/error.h: Likewise.
22343 * gnulib/fnmatch.c: Likewise.
22344 * gnulib/fnmatch_loop.c: Likewise.
22345 * gnulib/getdelim.c: Likewise.
22346 * gnulib/getline.c: Likewise.
22347 * gnulib/getopt.c: Likewise.
22348 * gnulib/getopt1.c: Likewise.
22349 * gnulib/getopt_int.h: Likewise.
22350 * gnulib/gettext.h: Likewise.
22351 * gnulib/progname.c: Likewise.
22352 * gnulib/progname.h: Likewise.
22353
22354 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
22355
22356 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
22357 which is the case with --disabled-nls.
22358
22359 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
22360 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
22361 * util/misc.c: Likewise.
22362 * util/mkisofs/mkisofs.c: Likewise.
22363 * util/mkisofs/mkisofs.h: Likewise.
22364
22365 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22366
22367 Simplify Apple CC support.
22368
22369 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
22370 Add 0 byte at the end not to have a symbol with empty target.
22371 * mmap/i386/pc/mmap_helper.S: Likewise.
22372 * genmk.rb: Ignore errors 2030 and 2050.
22373 * kern/i386/pc/startup.S: Use LOCAL when possible.
22374
22375 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
22376
22377 Testcase and the fix for final semicolon on cmdline.
22378
22379 * tests/grub_script_final_semicolon.in: New testcase.
22380 * conf/tests.rmk: Rules for the new testcase.
22381 * script/parser.y: Grammar fix.
22382
22383 2010-03-26 BVK Chaitanya <bvk@localhost>
22384
22385 Blank lines testcase for GRUB script.
22386
22387 * tests/grub_script_blanklines.in: New testcase.
22388 * conf/tests.rmk: Rules for the new testcase.
22389
22390 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22391
22392 Don't use __FILE__.
22393
22394 * genmk.rb: Add -DGRUB_FILE to all C targets.
22395 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
22396 * include/grub/list.h: Likewise.
22397 * include/grub/misc.h: Likewise.
22398 * include/grub/mm.h: Likewise.
22399 * include/grub/test.h: Likewise.
22400 * kern/mm.c: Likewise.
22401 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
22402
22403 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22404
22405 Sunpc partitions support.
22406
22407 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
22408 (grub_fstest_SOURCES): Likewise.
22409 (pkglib_MODULES): Add part_sunpc.mod.
22410 (part_sunpc_mod_SOURCES): New variable.
22411 (part_sunpc_mod_CFLAGS): Likewise.
22412 (part_sunpc_mod_LDFLAGS): Likewise.
22413 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
22414 * partmap/sunpc.c: New file.
22415
22416 2010-03-26 BVK Chaitanya <bvk@localhost>
22417
22418 For loop support to GRUB script.
22419
22420 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
22421 (grub_script_create_cmdfor): New function prototype.
22422 (grub_script_execute_cmdfor): New function prototype.
22423 * script/execute.c (grub_script_execute_cmdfor): New function.
22424 * script/parser.y (command): New for command.
22425 (forcmd): New grammar rule.
22426 * script/script.c (grub_script_create_cmdfor): New function.
22427 * util/grub-script-check.c (grub_script_execute_cmdfor): New
22428 function.
22429 * tests/grub_script_for1.in: New testcase.
22430 * conf/tests.rmk: Rules for new testcase.
22431
22432 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22433
22434 Nested partitions
22435
22436 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
22437 'partition' is NULL, grub_partition_get_start already does that.
22438 * commands/loadenv.c (check_blocklists): Likewise.
22439 (write_blocklists): Likewise.
22440 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
22441 (grub_fstest_SOURCES): Likewise.
22442 (pkglib_MODULES): Add part_bsd.mod.
22443 (part_bsd_mod_SOURCES): New variable.
22444 (part_bsd_mod_CFLAGS): Likewise.
22445 (part_bsd_mod_LDFLAGS): Likewise.
22446 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
22447 (grub_emu_SOURCES): Likewise.
22448 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22449 * include/grub/bsdlabel.h: New file.
22450 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
22451 'get_name'.
22452 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
22453 (grub_partition_map_list): New variable.
22454 (grub_partition_map_register): Inline.
22455 (grub_partition_map_unregister): Likewise.
22456 (FOR_PARTITION_MAPS): New macro.
22457 (grub_partition_map_iterate): Removed.
22458 (grub_partition_get_start): Handle nested partitions.
22459 * include/grub/msdos_partition.h: Remove bsd-related entries.
22460 (grub_pc_partition): Remove.
22461 * kern/disk.c (grub_disk_close): Free partition data.
22462 (grub_disk_adjust_range): Handle nested partitions.
22463 * kern/partition.c (grub_partition_map_probe): New function.
22464 (grub_partition_probe): Parse name to number, handle subpartitions.
22465 (get_partmap): New function.
22466 (grub_partition_iterate): Handle subpartitions.
22467 (grub_partition_get_name): Likewise.
22468 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
22469 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
22470 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
22471 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
22472 Set 'number'.
22473 (acorn_partition_map_probe): Remove.
22474 (acorn_partition_map_get_name): Likewise.
22475 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
22476 Set 'number'.
22477 Set 'index' to 0 since there can be only one partition entry per sector.
22478 (amiga_partition_map_probe): Remove.
22479 (amiga_partition_map_get_name): Likewise.
22480 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
22481 Set 'number'.
22482 Set 'offset' and 'index' to real positions of partitions.
22483 (apple_partition_map_probe): Remove.
22484 (apple_partition_map_get_name): Likewise.
22485 * partmap/bsdlabel.c: New file.
22486 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
22487 Set 'number'.
22488 Allocate 'data' so it can be correctly freed.
22489 Set 'index' to offset inside sector.
22490 (gpt_partition_map_probe): Remove.
22491 (gpt_partition_map_get_name): Likewise.
22492 * partmap/msdos.c (grub_partition_parse): Remove.
22493 (pc_partition_map_iterate): Don't force raw access.
22494 Set 'number'.
22495 Make 'ext_offset' a local variable.
22496 (pc_partition_map_probe): Remove.
22497 (pc_partition_map_get_name): Remove.
22498 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
22499 Set 'number'.
22500 (sun_partition_map_probe): Remove.
22501 (sun_partition_map_get_name): Likewise.
22502 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
22503 (grub_pcpart_type): Likewise.
22504 * util/hostdisk.c (open_device): Handle new numbering scheme.
22505 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
22506 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
22507 * util/grub-probe.c (probe_partmap): Handle nested paritions.
22508 * util/grub-install.in: Insert all subpartition modules.
22509 * util/ieee1275/grub-install.in: Likewise.
22510
22511 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
22512
22513 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
22514 grammar.
22515
22516 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
22517
22518 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
22519
22520 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
22521
22522 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
22523 match where 'make install' puts them.
22524 * util/i386/efi/grub-install.in: Likewise.
22525
22526 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
22527
22528 * .bzrignore: Add gentrigtables, grub-script-check,
22529 grub_script_check_init.c, grub_script_check_init.h, and
22530 trigtables.c.
22531
22532 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
22533
22534 * kern/parser.c: Indented.
22535
22536 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22537
22538 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
22539
22540 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22541
22542 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
22543 alpha_mask_size == 0 case.
22544
22545 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
22546
22547 GRUB shell lexer and parser improvements.
22548
22549 * conf/any-emu.rmk: Build rule updates.
22550 * conf/common.rmk: Likewise.
22551 * conf/i386-coreboot.rmk: Likewise.
22552 * conf/i386-efi.rmk: Likewise.
22553 * conf/i386-ieee1275.rmk: Likewise.
22554 * conf/i386-pc.rmk: Likewise.
22555 * conf/powerpc-ieee1275.rmk: Likewise.
22556 * conf/x86_64-efi.rmk: Likewise.
22557
22558 * configure.ac: Configure check for flex.
22559
22560 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
22561 types.
22562 (grub_lexer_param): Struct member updates.
22563 (grub_parser_param): Likewise.
22564 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
22565 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
22566 (grub_script_lexer_init): Prototype update.
22567 (grub_script_lexer_record_start): Likewise.
22568 (grub_script_lexer_record_stop): Likewise.
22569 (grub_script_lexer_yywrap): New function prototype.
22570 (grub_script_lexer_fini): Likewise.
22571 (grub_script_execute_argument_to_string): Removed by...
22572 (grub_script_execute_argument_to_argv): ...better version.
22573
22574 * script/execute.c (ROUND_UPTO): New macro.
22575 (grub_script_execute_cmdline): Out of memory fixes.
22576 (grub_script_execute_menuentry): Likewise.
22577 (grub_script_execute_argument_to_string): Removed. Update all
22578 users by...
22579 (grub_script_execute_argument_to_argv): ...better version.
22580 * script/function.c (grub_script_function_create): Use
22581 grub_script_execute_argument_to_argv instead of
22582 grub_script_execute_argument_to_string.
22583
22584 * script/lexer.c (check_varstate): Removed.
22585 (check_textstate): Removed.
22586 (grub_script_lexer_record_start): Likewise.
22587 (grub_script_lexer_record_stop): Likewise.
22588 (recordchar): Replaced with...
22589 (grub_script_lexer_record): ...new function.
22590 (nextchar): Removed.
22591 (grub_script_lexer_init): Rewritten.
22592 (grub_script_yylex): Rewritten.
22593 (append_newline): New function.
22594 (grub_script_lexer_yywrap): New function.
22595 (grub_script_lexer_fini): New function.
22596 (grub_script_yyerror): Sets error flag.
22597
22598 * script/yylex.l: New file.
22599 (grub_lexer_yyfree): Wrapper for flex yyffre.
22600 (grub_lexer_yyalloc): Likewise.
22601 (grub_lexer_yyrealloc): Likewise.
22602 * script/parser.y: Refactored.
22603
22604 * script/script.c (grub_script_arg_add): Out of memory fixes.
22605 (grub_script_add_arglist): Likewise.
22606 (grub_script_create_cmdline): Likewise.
22607 (grub_script_create_cmdmenu): Likewise.
22608 (grub_script_add_cmd): Likewise.
22609 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
22610 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
22611 unnecessary code.
22612
22613 * tests/grub_script_echo1.in: New testcase.
22614 * tests/grub_script_vars1.in: New testcase.
22615 * tests/grub_script_echo_keywords.in: New testcase.
22616
22617 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22618
22619 Remove some redundancy in build system.
22620
22621 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
22622 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
22623 (TARGET_LDFLAGS): Add -nostdlib.
22624 (TARGET_IMG_LDFLAGS): Likewise.
22625 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
22626 anything since mmap isn't available.
22627 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
22628 Add util/time.c.
22629 (pkglib_MODULES): Remove reboot.mod.
22630 (reboot_mod_SOURCES): Removed.
22631 (reboot_mod_CFLAGS): Likewise.
22632 (reboot_mod_LDFLAGS): Likewise.
22633 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
22634 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
22635 (DEFSYMFILES): Add kernel_syms.lst.
22636 (kernel_img_HEADERS): Add common headers.
22637 (symlist.c): New target.
22638 (kernel_syms.lst): Likewise.
22639 (pkglib_MODULES): Add memdisk.mod.
22640 (memdisk_mod_SOURCES): New variable.
22641 (memdisk_mod_CFLAGS): Likewise.
22642 (memdisk_mod_LDFLAGS): Likewise.
22643 (pkglib_MODULES): Add reboot.mod.
22644 (reboot_mod_SOURCES): New variable.
22645 (reboot_mod_CFLAGS): Likewise.
22646 (reboot_mod_LDFLAGS): Likewise.
22647 (pkglib_MODULES): Add date.mod.
22648 (date_mod_SOURCES): New variable.
22649 (date_mod_CFLAGS): Likewise.
22650 (date_mod_LDFLAGS): Likewise.
22651 (pkglib_MODULES): Add datehook.mod.
22652 (datehook_mod_SOURCES): New variable.
22653 (datehook_mod_CFLAGS): Likewise.
22654 (datehook_mod_LDFLAGS): Likewise.
22655 (pkglib_MODULES): Add lsmmap.mod.
22656 (lsmmap_mod_SOURCES): New variable.
22657 (lsmmap_mod_CFLAGS): Likewise.
22658 (lsmmap_mod_LDFLAGS): Likewise.
22659 (pkglib_MODULES): Add boot.mod.
22660 (boot_mod_SOURCES): New variable.
22661 (boot_mod_CFLAGS): Likewise.
22662 (boot_mod_LDFLAGS): Likewise.
22663 * conf/i386-coreboot.rmk: Removed redundant parts.
22664 * conf/i386-ieee1275.rmk: Likewise.
22665 * conf/i386-pc.rmk: Likewise.
22666 * conf/mips-yeeloong.rmk: Likewise.
22667 * conf/mips.rmk: Likewise.
22668 * conf/powerpc-ieee1275.rmk: Likewise.
22669 * conf/sparc64-ieee1275.rmk: Likewise.
22670 * conf/x86_64-efi.rmk: Likewise.
22671 * conf/i386-coreboot.rmk: Moved qemu parts ..
22672 * conf/i386-qemu.rmk: ... here
22673 * conf/i386-efi.rmk: Moved common parts to...
22674 * conf/x86-efi.rmk: ... here.
22675 * conf/i386.rmk: Added modules common to all x86 variants.
22676 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
22677 * disk/memdisk.c: Remove grub/machine/kernel.h.
22678 * gensymlist.sh.in: Include symbol.h.
22679 * hook/datehook.c: Correct module name.
22680 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
22681 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
22682 * include/grub/i386/efi/serial.h: New file.
22683 * include/grub/x86_64/efi/serial.h: Likewise.
22684 * util/time.c: Likewise.
22685 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
22686
22687 2010-03-14 Colin King <colin.king@ubuntu.com>
22688 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22689
22690 Shrink the pre-partition-table part of boot.img by eight bytes.
22691
22692 * boot/i386/pc/boot.S (ERR): New macro.
22693 (chs_mode): Use ERR.
22694 (geometry_error): Likewise.
22695 (hd_probe_error): Remove. This is only used once, so we wrwite
22696 it inline instead.
22697 (read_error): Instead of printing read_error_string, just set up
22698 %si and fall through to ...
22699 (error_message): ... this new function, also used by ERR.
22700
22701 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22702
22703 Speed up consecutive hostdisk operations on the same device.
22704
22705 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
22706 (grub_util_biosdisk_open): Initialise disk->data.
22707 (struct linux_partition_cache): New structure.
22708 (linux_find_partition): Cache partition start positions; these are
22709 expensive to compute on every read and write.
22710 (open_device): Cache open file descriptor in disk->data, so that we
22711 don't have to reopen it and flush the buffer cache for consecutive
22712 operations on the same device.
22713 (grub_util_biosdisk_close): New function.
22714 (grub_util_biosdisk_dev): Set `close' member.
22715
22716 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
22717 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
22718 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22719 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
22720 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
22721
22722 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22723
22724 Compile parts of grub-emu as modules.
22725
22726 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
22727 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
22728 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
22729 (all-local): Add $(GRUB_EMU).
22730 (install-local): Install $(GRUB_EMU).
22731 (uninstall): Uninstall $(GRUB_EMU).
22732 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
22733 * kern/dl.c: Likewise.
22734 * commands/sleep.c: Not include machine/time.h.
22735 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
22736 (COMMON_CFLAGS): Likewise.
22737 (sbin_UTILITIES): Remove grub-emu.
22738 (grub_emu_SOURCES): Removed.
22739 (kernel_img_RELOCATABLE): New variable.
22740 (pkglib_PROGRAMS): Add kernel.img.
22741 (kernel_img_SOURCES): New variable
22742 (kernel_img_CFLAGS): Likewise.
22743 (kernel_img_LDFLAGS): Likewise.
22744 (TARGET_NO_STRIP): Likewise.
22745 (TARGET_NO_DYNAMIC_MODULES): Likewise.
22746 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
22747 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
22748 (grub-emu): New target.
22749 (GRUB_EMU): New variable.
22750 * configure.ac: Whitelist -emu as possible x86_64 architecture.
22751 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
22752 * loader/xnu.c: Likewise.
22753 * include/grub/pci.h: Likewise.
22754 * genemuinit.sh: New file.
22755 * genemuinitheader.sh: Likewise.
22756 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
22757 Support TARGET_NO_DYNAMIC_MODULES.
22758 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
22759 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
22760 * disk/loopback.c: Likewise.
22761 * font/font_cmd.c: Likewise.
22762 * partmap/acorn.c: Likewise.
22763 * partmap/amiga.c: Likewise.
22764 * partmap/apple.c: Likewise.
22765 * partmap/gpt.c: Likewise.
22766 * partmap/msdos.c: Likewise.
22767 * partmap/sun.c: Likewise.
22768 * parttool/msdospart.c: Likewise.
22769 * term/gfxterm.c: Likewise.
22770 * video/bitmap.c: Likewise.
22771 * video/readers/jpeg.c: Likewise.
22772 * video/readers/png.c: Likewise.
22773 * video/readers/tga.c: Likewise.
22774 * video/video.c: Likewise.
22775 * util/grub-emu.c (read_command_list): Removed.
22776 (main): Don't call util_init_nls.
22777 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
22778 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
22779
22780 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22781
22782 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
22783 date.mod, datehook.mod.
22784 (datetime_mod_SOURCES): New variable.
22785 (datetime_mod_CFLAGS): Likewise.
22786 (datetime_mod_LDFLAGS): Likewise.
22787 (date_mod_SOURCES): Likewise.
22788 (date_mod_CFLAGS): Likewise.
22789 (date_mod_LDFLAGS): Likewise.
22790 (datehook_mod_SOURCES): Likewise.
22791 (datehook_mod_CFLAGS): Likewise.
22792 (datehook_mod_LDFLAGS): Likewise.
22793 * conf/sparc64-ieee1275.rmk: Likewise.
22794 * lib/ieee1275/datetime.c: New file.
22795
22796 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22797
22798 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
22799 (ieee1275_fb_mod_SOURCES): New variable.
22800 (ieee1275_fb_mod_CFLAGS): Likewise.
22801 (ieee1275_fb_mod_LDFLAGS): Likewise.
22802 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
22803 New proto.
22804 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
22805 (HEAP_MAX_ADDR): Likewise.
22806 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
22807 type.
22808 Correct stop condition.
22809 (grub_ieee1275_devices_iterate): New function.
22810 * video/ieee1275.c: New file.
22811
22812 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22813
22814 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
22815
22816 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
22817 as scratch.
22818 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
22819 SCRATCH_PAD_DISKBOOT as scratch.
22820 (bootit): Pass Openfirmware pointer in %o4.
22821 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
22822 of 0x200000.
22823 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
22824 with util/grub-mkrawimage.c.
22825 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
22826 * include/grub/aout.h (AOUT_MID_SUN): New definition.
22827 (grub_aout_get_type) [GRUB_UTIL]: Removed.
22828 (grub_aout_load) [GRUB_UTIL]: Likewise.
22829 * include/grub/kernel.h (grub_modules_get_end): New proto.
22830 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
22831 (SCRATCH_PAD_BOOT): New definition.
22832 (SCRATCH_PAD_DISKBOOT): Likewise.
22833 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
22834 * include/grub/sparc64/ieee1275/ieee1275.h
22835 (grub_ieee1275_original_stack): New variable
22836 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
22837 New definition
22838 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
22839 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
22840 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
22841 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
22842 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
22843 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
22844 (grub_platform_image_format_t): New type.
22845 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
22846 * kern/main.c (grub_modules_get_end)
22847 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
22848 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
22849 (codestart): Switch stacks.
22850 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
22851 variable.
22852 (grub_heap_init): Use grub_modules_get_end.
22853 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
22854 stack.
22855 * util/grub-mkrawimage.c (generate_image): Support sparc64.
22856 (main): Likewise.
22857 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
22858
22859 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
22860
22861 * util/grub-mkrescue.in: Base ISO UUID on UTC.
22862
22863 2010-03-08 Matt Kraai <kraai@ftbfs.org>
22864
22865 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
22866 bug #559005).
22867
22868 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
22869
22870 * genmoddep.awk: Output all missing symbols and not only first.
22871
22872 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22873
22874 * NEWS: Put the date of 1.98 release.
22875
22876 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22877
22878 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
22879 ft2build.h.
22880
22881 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22882
22883 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
22884 completition in the middle of string.
22885
22886 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22887
22888 * util/grub-mkrescue.in: Use mktemp with explicit template.
22889
22890 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22891
22892 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
22893
22894 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22895
22896 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
22897 right pointer.
22898
22899 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22900
22901 Fix FreeBSD compilation.
22902
22903 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
22904 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
22905
22906 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22907
22908 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
22909
22910 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22911
22912 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
22913
22914 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22915
22916 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
22917
22918 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
22919
22920 Support relative image path in theme file.
22921
22922 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
22923 (image_set_property): Handle theme_dir and relative path.
22924
22925 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22926
22927 * configure.ac: Alias amd64 to x86_64.
22928
22929 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22930
22931 * NEWS: mention multiboot on EFI.
22932
22933 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22934
22935 * kern/main.c (grub_load_modules): Handle errors from init functions of
22936 embeded modules.
22937
22938 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22939
22940 * normal/autofs.c (autoload_fs_module): Handle errors.
22941
22942 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22943
22944 Disable linux.mod on qemu-mips since it's not functional and leads
22945 to compilation failure.
22946
22947 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
22948 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
22949 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
22950 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
22951 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
22952 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
22953 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
22954 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
22955 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
22956 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
22957 Reported by: BVK Chaitanya
22958
22959 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
22960
22961 * INSTALL: Add gettext as a dependency and add qemu to a new section
22962 "Prerequisites for make-check".
22963
22964 2010-03-04 Christian Franke <franke@computer.org>
22965
22966 * util/grub-pe2elf.c: Add missing include "progname.h".
22967
22968 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22969
22970 * normal/crypto.c (read_crypto_list): Fix a typo.
22971 Reported by: Seth Goldberg.
22972
22973 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22974
22975 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
22976 Reported by: Seth Goldberg.
22977
22978 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22979
22980 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
22981 ascii.bitmaps.
22982
22983 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22984
22985 * genmk.rb: Remove terminal*.lst in make clean.
22986 Reported by: Seth Goldberg.
22987
22988 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22989
22990 * util/i386/efi/grub-install.in: Copy gettext files.
22991
22992 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22993
22994 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
22995
22996 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22997
22998 Wait for user entry basing on presence of output rather than on errors.
22999
23000 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
23001 (grub_install_newline_hook): Likewise.
23002 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
23003 * normal/menu.c (show_menu): Check line_counter to determine presence
23004 of output.
23005 * normal/term.c (grub_normal_line_counter): New variable.
23006 (grub_normal_get_line_counter): New function.
23007 (grub_install_newline_hook): Likewise.
23008
23009 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23010
23011 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
23012
23013 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23014
23015 * configure.ac: Update version to 1.98.
23016
23017 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
23018
23019 * util/grub.d/10_linux.in (linux_entry): Don't default to
23020 gfxpayload=keep if Linux doesn't support video handover.
23021
23022 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
23023
23024 Don't compile video modules on yeeloong since video subsystem is part
23025 of kernel.
23026
23027 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
23028 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
23029 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
23030 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
23031 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
23032 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
23033 * include/grub/bitmap_scale.h: Likewise.
23034 * include/grub/bufio.h: Likewise.
23035 * include/grub/font.h: Likewise.
23036 * include/grub/gfxterm.h: Likewise.
23037 * include/grub/video.h: Likewise.
23038 * include/grub/vbe.h: Don't include video_fb.h.
23039 * video/i386/pc/vbe.c: Include video_fb.h.
23040 * commands/i386/pc/vbetest.c: Include video.h.
23041
23042 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
23043
23044 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
23045 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
23046 default entry if GRUB_SAVEDEFAULT=true. This allows using
23047 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
23048 saving a new default on every boot.
23049
23050 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23051
23052 * normal/crypto.c (read_crypto_list): Fix a memory leak.
23053 * normal/term.c (read_terminal_list): Likewise.
23054 * normal/main.c (grub_normal_init_page): Likewise.
23055 (grub_normal_read_line_real): Likewise.
23056
23057 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23058
23059 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
23060 memory leak.
23061 Reported by: Seth Goldberg.
23062
23063 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
23064
23065 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
23066 duplicate declaration of `start'.
23067
23068 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23069
23070 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
23071 filename.
23072 Reported by: Georgy Buranov
23073
23074 2010-02-20 Carles Pina i Estany <carles@pina.cat>
23075
23076 * util/grub-mkrawimage.c (usage): Change string formatting to
23077 improve gettext.
23078
23079 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
23080
23081 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
23082 backspace keys.
23083
23084 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23085
23086 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
23087 Reported by: Michael Suchanek.
23088
23089 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
23090
23091 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
23092 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
23093
23094 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
23095
23096 Remove any reference to non-free fonts.
23097
23098 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
23099 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
23100 uses non-free components.
23101 * font/font.c (grub_font_get_name): Remove example name.
23102 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
23103 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
23104 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
23105 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
23106
23107 2010-02-16 Georgy Buranov <gburanov@gmail.com>
23108
23109 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
23110
23111 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23112
23113 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
23114 Double divisor.
23115 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
23116 features.
23117 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
23118
23119 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23120
23121 * gensymlist.sh.in: Use TARGET_CC instead of CC.
23122
23123 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23124
23125 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
23126 * docs/grub.texi (Command-line and menu entry commands): Document play
23127 command.
23128
23129 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23130
23131 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
23132 parse arguments as inline tempo and notes. Move code for playing notes
23133 to...
23134 (play): ... new function.
23135
23136 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23137
23138 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
23139 grub_uint16_t instead of short.
23140 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
23141 disk from little endian to cpu endianness.
23142
23143 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
23144
23145 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
23146 GRUB_TICKS_PER_SECOND instead of 120.
23147
23148 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23149
23150 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
23151 escape sequence after \e.
23152
23153 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23154
23155 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
23156 non-ASCII characters.
23157
23158 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23159
23160 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
23161 set root in single quotes to prevent \, from being unescaped.
23162
23163 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23164
23165 Prevent unknown commands from stopping menuentry execution.
23166
23167 * script/execute.c (grub_script_execute_cmdline): Print error after
23168 unknown command.
23169
23170 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23171
23172 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
23173 Reported by: Pavel Pisa.
23174
23175 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23176
23177 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
23178
23179 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23180
23181 Merge grub_ieee1275_map_physical into grub_map and rename to
23182 grub_ieee1275_map
23183
23184 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
23185 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
23186 Remove.
23187 * kern/ieee1275/openfw.c (grub_map): Rename to ...
23188 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
23189 necessary.
23190 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
23191
23192 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23193
23194 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
23195 opening and not after.
23196
23197 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23198
23199 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
23200 constants.
23201
23202 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23203
23204 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
23205 (alloc_phys): Use ALIGN_UP instead of align_addr.
23206
23207 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23208
23209 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
23210
23211 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23212
23213 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
23214
23215 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23216
23217 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
23218 verbose dprintf.
23219
23220 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23221
23222 Fix over-4GiB seek on sparc64.
23223
23224 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
23225 Replace pos_i and pos_lo with pos. All users updated.
23226 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23227 New constant.
23228 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23229 Likewise.
23230 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
23231 and pos_lo.
23232
23233 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23234
23235 * util/grub-mkrawimage.c (main): Call set_program_name.
23236
23237 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23238
23239 Properly align 64-bit targets.
23240
23241 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
23242 (generate_image): Use ALIGN_ADDR.
23243
23244 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23245
23246 Properly create cross-endian images.
23247
23248 * include/grub/types.h (grub_host_to_target_addr): New macro
23249 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
23250
23251 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23252
23253 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
23254
23255 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23256
23257 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
23258
23259 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
23260 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
23261 (grub_linux_boot): Divide by 64K when on VESA.
23262
23263 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23264
23265 Support GRUB_GFXPAYLOAD_LINUX.
23266
23267 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
23268 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
23269
23270 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23271
23272 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
23273 to show messages instead of discarding them.
23274 Process errors after executing command and not before. Keep old method
23275 too as precaution.
23276
23277 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
23278
23279 * configure.ac: Check for ft2build.h.
23280
23281 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23282
23283 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
23284
23285 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23286
23287 * genkernsyms.sh.in: Use TARGET_CC.
23288
23289 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
23290
23291 * NEWS: Update.
23292
23293 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23294
23295 * include/grub/multiboot2.h: Remove leftover file.
23296 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
23297 * include/grub/partition.h [GRUB_UTIL]: Likewise.
23298
23299 2010-02-07 Yves Blusseau <blusseau@zetam.org>
23300
23301 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
23302
23303 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23304
23305 Fix warnings in grub-emu when compiling with maximum warning options.
23306
23307 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
23308 (grub_arch_modules_addr): Return 0 and not NULL.
23309 * util/misc.c (ENABLE_RELOCATABLE): New definition.
23310 (xstrdup): Use newstr instead of dup.
23311 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
23312 of disk to dsk to avoid shadowing.
23313 (find_free_slot): Fix prototype.
23314 * util/getroot.c (grub_util_is_dmraid): Make static.
23315 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
23316 Add missing prototype.
23317 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
23318
23319 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23320
23321 * loader/i386/linux.c (grub_linux_setup_video): Handle error
23322 appropriately.
23323
23324 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23325
23326 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
23327 code out.
23328
23329 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23330
23331 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
23332 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
23333 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
23334 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
23335 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
23336 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
23337
23338 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23339
23340 * include/grub/err.h (grub_err_printf): Don't export.
23341
23342 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23343
23344 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
23345
23346 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23347
23348 * include/grub/i18n.h (grub_gettext_dummy): Removed.
23349 * kern/misc.c (grub_gettext_dummy): Make static.
23350
23351 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23352
23353 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
23354 by non-valid ones.
23355 * kern/term.c (grub_putchar): Likewise.
23356
23357 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23358
23359 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
23360 buggy hook call and memory leak.
23361
23362 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23363
23364 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
23365
23366 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23367
23368 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
23369
23370 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23371
23372 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
23373 modevar.
23374 Return grub_errno on allocation error.
23375
23376 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23377
23378 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
23379
23380 2010-02-06 Yves Blusseau <blusseau@zetam.org>
23381
23382 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
23383 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
23384
23385 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23386
23387 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
23388 non-pxe disk.
23389 (grub_pxefs_open): Likewise.
23390
23391 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23392
23393 * util/grub.d/10_hurd.in: Add --class information to menuentries.
23394 * util/grub.d/10_kfreebsd.in: Likewise.
23395 * util/grub.d/10_linux.in: Likewise.
23396
23397 2010-02-06 Colin D Bennett <colin@gibibit.com>
23398
23399 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
23400 (gfxmenu_mod_SOURCES): New variable.
23401 (gfxmenu_mod_CFLAGS): Likewise.
23402 (gfxmenu_mod_LDFLAGS): Likewise.
23403 * include/grub/term.h (grub_term_set_current_output): Declare
23404 argument as const.
23405 * docs/gfxmenu-theme-example.txt: New file.
23406 * gfxmenu/gfxmenu.c: Likewise.
23407 * gfxmenu/gui_box.c: Likewise.
23408 * gfxmenu/gui_canvas.c: Likewise.
23409 * gfxmenu/gui_circular_progress.c: Likewise.
23410 * gfxmenu/gui_image.c: Likewise.
23411 * gfxmenu/gui_label.c: Likewise.
23412 * gfxmenu/gui_list.c: Likewise.
23413 * gfxmenu/gui_progress_bar.c: Likewise.
23414 * gfxmenu/gui_string_util.c: Likewise.
23415 * gfxmenu/gui_util.c: Likewise.
23416 * gfxmenu/icon_manager.c: Likewise.
23417 * gfxmenu/model.c: Likewise.
23418 * gfxmenu/named_colors.c: Likewise.
23419 * gfxmenu/theme_loader.c: Likewise.
23420 * gfxmenu/view.c: Likewise.
23421 * gfxmenu/widget-box.c: Likewise.
23422 * include/grub/gfxmenu_model.h: Likewise.
23423 * include/grub/gfxmenu_view.h: Likewise.
23424 * include/grub/gfxwidgets.h: Likewise.
23425 * include/grub/gui.h: Likewise.
23426 * include/grub/gui_string_util.h: Likewise.
23427 * include/grub/icon_manager.h: Likewise.
23428
23429 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23430
23431 Agglomerate scrolling in gfxterm.
23432
23433 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
23434 (grub_virtual_screen_setup): Initialise 'total_screen'.
23435 (write_char): Split to ...
23436 (paint_char): ... this ...
23437 (write_char): ... and this.
23438 (paint_char): Handle delayed scrolling.
23439 (draw_cursor): Likewise.
23440 (scroll_up): Split to ...
23441 (real_scroll): ... this ...
23442 (scroll_up): ... and this.
23443 (real_scroll): Handle multi-line scroll and draw below-the-bottom
23444 characters.
23445 (grub_gfxterm_refresh): Call real_scroll.
23446
23447 2010-02-06 Colin D Bennett <colin@gibibit.com>
23448
23449 * include/grub/misc.h (grub_iscntrl): New inline function.
23450 (grub_isalnum): Likewise.
23451 (grub_strtol): Likewise.
23452
23453 2010-02-06 Colin D Bennett <colin@gibibit.com>
23454
23455 * normal/menu_text.c (get_entry_number): Move from here ...
23456 * normal/menu.c (get_entry_number): ... moved here.
23457 * include/grub/menu.h (grub_menu_get_default_entry_index):
23458 New prototype.
23459 * normal/menu.c (grub_menu_get_default_entry_index): New function.
23460 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
23461 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
23462 (grub_menu_viewer_should_return): Likewise.
23463 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
23464 * normal/menu_text.c (run_menu): Enable menu switching.
23465 * normal/menu_viewer.c (should_return): New variable.
23466 (menu_viewer_changed): Likewise.
23467 (grub_menu_viewer_show_menu): Handle menu viewer changes.
23468 (grub_menu_viewer_should_return): New function.
23469 (menuviewer_write_hook): Likewise.
23470 (grub_menu_viewer_init): Likewise.
23471
23472 2010-02-06 Colin D Bennet <colin@gibibit.com>
23473 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23474
23475 Support for gfxterm in a window.
23476
23477 * include/grub/gfxterm.h: New file.
23478 * include/grub/video.h (struct grub_video_rect): New declaration.
23479 (grub_video_rect_t): Likewise.
23480 * term/gfxterm.c (struct grub_gfxterm_window): New type.
23481 (refcount): New variable.
23482 (render_target): Likewise.
23483 (window): Likewise.
23484 (repaint_callback): Likewise.
23485 (grub_virtual_screen_setup): Use 'render_target'.
23486 (init_window): New function.
23487 (grub_gfxterm_init_window): Likewise.
23488 (grub_gfxterm_init): Check reference counter.
23489 Use init_window.
23490 (destroy_window): New function.
23491 (grub_gfxterm_destroy_window): Likewise.
23492 (grub_gfxterm_fini): Check reference counter.
23493 Use destroy_window.
23494 (redraw_screen_rect): Restore viewport.
23495 Use 'render_target' and 'window'.
23496 Call 'repaint_callback'.
23497 (write_char): Use 'render_target'.
23498 (draw_cursor): Likewise.
23499 (scroll_up): Restore viewport.
23500 Use 'render_target' and 'window'.
23501 Call 'repaint_callback'.
23502 (grub_gfxterm_cls): Likewise.
23503 (grub_gfxterm_refresh): Use 'window'.
23504 (grub_gfxterm_set_repaint_callback): New function.
23505 (grub_gfxterm_background_image_cmd): Use 'window'.
23506 (grub_gfxterm_get_term): New function.
23507 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
23508
23509 2010-02-06 Colin D Bennett <colin@gibibit.com>
23510
23511 Bitmap scaling support.
23512
23513 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
23514 (bitmap_scale_mod_SOURCES): New variable.
23515 (bitmap_scale_mod_CFLAGS): Likewise.
23516 (bitmap_scale_mod_LDFLAGS): Likewise.
23517 * include/grub/bitmap_scale.h: New file.
23518 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
23519 (background_image_cmd_options): New variable.
23520 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
23521 (cmd): Rename and change type to ...
23522 (background_image_cmd_handle): ... this. All users updated.
23523 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
23524 * video/bitmap_scale.c: New file.
23525
23526 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23527
23528 SDL support.
23529
23530 * Makefile.in (LIBSDL): New variable.
23531 (enable_grub_emu_sdl): Likewise.
23532 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
23533 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
23534 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
23535 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
23536 * util/sdl.c: New file.
23537
23538 2010-02-06 Colin D Bennett <colin@gibibit.com>
23539 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23540
23541 Double buffering support.
23542
23543 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
23544 * include/grub/video.h: Update comment.
23545 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
23546 New type.
23547 (grub_video_fb_doublebuf_blit_init): New prototype.
23548 * term/gfxterm.c (scroll_up): Support double buffering.
23549 (grub_gfxterm_refresh): Likewise.
23550 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
23551 (grub_video_fb_doublebuf_blit_init): Likewise.
23552 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
23553 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
23554 'displayed_page', 'render_page' and 'update_screen'.
23555 (grub_video_vbe_fini): Free offscreen buffer.
23556 (doublebuf_pageflipping_commit): New function.
23557 (doublebuf_pageflipping_update_screen): Likewise.
23558 (doublebuf_pageflipping_init): Likewise.
23559 (double_buffering_init): Likewise.
23560 (grub_video_vbe_setup): Enable doublebuffering.
23561 (grub_video_vbe_swap_buffers): Implement.
23562 (grub_video_vbe_set_active_render_target): Handle double buffering.
23563 (grub_video_vbe_get_active_render_target): Likewise.
23564 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
23565 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
23566 (grub_video_vbe_enable_double_buffering): Likewise.
23567 (grub_video_vbe_swap_buffers): Use update_screen.
23568 (grub_video_set_mode): Use double buffering.
23569
23570 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23571
23572 * maintainance/gentrigtables.py: Remove.
23573 * lib/trig.c: Likewise.
23574
23575 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
23576
23577 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
23578 `trigtables.c'.
23579 (trigtables.c): New rule.
23580 (gentrigtables): Likewise.
23581 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
23582
23583 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23584
23585 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
23586 integer constants.
23587
23588 2010-02-06 Colin D Bennet <colin@gibibit.com>
23589
23590 Trigonometry support.
23591
23592 * include/grub/trig.h: New file.
23593 * lib/trig.c: Likewise.
23594 * maintainance/gentrigtables.py: Likewise.
23595 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
23596 (trig_mod_SOURCES): New variable.
23597 (trig_mod_CFLAGS): Likewise.
23598 (trig_mod_LDFLAGS): Likewise.
23599
23600 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23601
23602 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
23603 disk devices.
23604
23605 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23606
23607 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
23608 error.
23609
23610 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23611
23612 * util/hostdisk.c (open_device): Don't use partition device when reading
23613 before the partition.
23614 (grub_util_biosdisk_read): Don't read from partition and before the
23615 partition in single operation.
23616 (grub_util_biosdisk_write): Don't write to partition and before the
23617 partition in single operation.
23618
23619 2010-02-03 Torsten Landschoff <torsten@debian.org>
23620
23621 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23622 last sectors.
23623
23624 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23625
23626 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
23627 CDROM reads.
23628 (grub_biosdisk_write): Refuse to write to CDROM.
23629
23630 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23631
23632 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
23633
23634 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23635
23636 * font/font.c (find_glyph): Check that bmp_idx is available before
23637 using it.
23638 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
23639 with (font == NULL).
23640
23641 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
23642
23643 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
23644
23645 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
23646
23647 * include/grub/script_sh.h (sourcecode): Add const qualifier.
23648 * util/grub-script-check.c (getline): Fix empty lines case.
23649
23650 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
23651
23652 * Makefile.in (check): Exit with fail status when one of the tests
23653 fails.
23654 * tests/example_functional_test.c (example_test): Fix reversed assert.
23655 * tests/example_unit_test.c (example_test): Likewise.
23656
23657 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
23658
23659 * util/grub.d/10_linux.in: This script does not use any of the
23660 contents of gettext.sh, only the external command `gettext', so stop
23661 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
23662 the same prefix as GRUB.)
23663 * util/grub.d/10_kfreebsd.in: Likewise.
23664
23665 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23666
23667 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
23668 of the line.
23669
23670 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23671
23672 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23673 last sectors.
23674
23675 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23676
23677 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
23678 having a 4KiB and not 32KiB buffer size.
23679
23680 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23681
23682 * util/hostfs.c: Include `<errno.h>'.
23683 (grub_hostfs_read): Handle errors from fseeko() and fread().
23684
23685 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23686
23687 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
23688 loop when using read hooks on files whose size isn't sector-aligned.
23689
23690 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23691
23692 Remove unused parameter.
23693
23694 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
23695 (grub_iso9660_open): Remove initialization of `data->length'.
23696
23697 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23698
23699 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
23700 memleak conditions.
23701
23702 2010-01-27 Carles Pina i Estany <carles@pina.cat>
23703
23704 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
23705 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
23706
23707 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23708
23709 * util/bin2h.c (usage): Fix warning (space after backslash).
23710
23711 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23712
23713 * font/font.c: Include `grub/fontformat.h.
23714 Remove font file format constants.
23715 (grub_font_load): Use the new macros.
23716 * include/grub/fontformat.h: New file.
23717 * util/grub-mkfont.c: Include `grub/fontformat.c'.
23718 (write_font_pf2): Use the new macros.
23719
23720 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23721
23722 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
23723 does.
23724
23725 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23726
23727 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
23728
23729 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
23730 (_start): Macroify `0x7F'.
23731
23732 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
23733 (make_install_device): Use "(pxe)" as fallback prefix when booting
23734 via PXE.
23735
23736 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
23737
23738 * configure.ac: Reset LIBS after check for libgcc symbols.
23739
23740 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
23741
23742 * util/hostdisk.c (open_device): Add trailing newline to debug
23743 message.
23744
23745 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
23746
23747 * configure.ac: Check for `limits.h'.
23748 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
23749
23750 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
23751
23752 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
23753 capitalize error strings.
23754
23755 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
23756
23757 * util/grub.d/10_hurd.in: Add a recovery mode.
23758
23759 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
23760
23761 * configure.ac: Check for libgcc symbols with -nostdlib.
23762
23763 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
23764
23765 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
23766
23767 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23768
23769 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
23770 stack since heap may be unavailable at that point.
23771 (grub_ofconsole_gotoxy): Likewise.
23772
23773 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23774
23775 * configure.ac: Check for _restgpr_14_x.
23776 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
23777 and _savegpr_* prototypes.
23778
23779 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
23780
23781 Use generic grub_reboot() for i386-efi.
23782
23783 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
23784 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
23785 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
23786
23787 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23788
23789 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
23790 presence of "prefix" variable as it breaks when normal.mod is
23791 embedded.
23792
23793 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23794
23795 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
23796 stack since heap is unavailable at that point.
23797
23798 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23799
23800 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
23801 (grub_freebsd_bootinfo): Rewritten.
23802 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
23803
23804 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23805
23806 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
23807
23808 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
23809
23810 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
23811 domain now.
23812
23813 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
23814
23815 * util/misc.c (make_system_path_relative_to_its_root): Change the work
23816 around for handling "/" to the correct fix. Fix a memory leak. Use
23817 xstrdup instead of strdup.
23818
23819 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23820
23821 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
23822
23823 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23824
23825 Optimise glyph lookup by Basic Multilingual Plane lookup array.
23826
23827 * font/font.c (struct grub_font): New member 'bmp_idx'.
23828 (font_init): Initialise 'bmp_idx'.
23829 (load_font_index): Fill 'bmp_idx'.
23830 (find_glyph): Make inline. Use bmp_idx for BMP characters.
23831
23832 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23833
23834 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
23835 unnecessary calls.
23836
23837 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23838
23839 Move context handling out of the kernel.
23840
23841 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
23842 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
23843 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
23844 * conf/i386-efi.rmk: Likewise.
23845 * conf/i386-ieee1275.rmk: Likewise.
23846 * conf/i386-pc.rmk: Likewise.
23847 * conf/powerpc-ieee1275.rmk: Likewise.
23848 * conf/sparc64-ieee1275.rmk: Likewise.
23849 * conf/x86_64-efi.rmk: Likewise.
23850 * include/grub/env.h: Include grub/menu.h.
23851 (grub_env_var_type): Removed.
23852 (grub_env_var): Replaced field 'type' with 'global'.
23853 (grub_env_find): New prototype.
23854 (grub_env_context_open): Remove EXPORT_FUNC.
23855 (grub_env_context_close): Likewise.
23856 (grub_env_export): Likewise.
23857 (grub_env_set_data_slot): Removed.
23858 (grub_env_get_data_slot): Likewise.
23859 (grub_env_unset_data_slot): Likewise.
23860 (grub_env_unset_menu): New prototype.
23861 (grub_env_set_menu): Likewise.
23862 (grub_env_get_menu): Likewise.
23863 * include/grub/env_private.h: New file.
23864 * include/grub/normal.h (grub_context_init): New prototype.
23865 (grub_context_fini): Likewise.
23866 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
23867 * normal/context.c (grub_cmd_export): ... to here.
23868 * kern/env.c: Include env_private.h.
23869 (HASHSZ): Moved to include/grub/env_private.h.
23870 (grub_env_context): Likewise.
23871 (grub_env_sorted_var): Likewise.
23872 (current_context): Renamed from this ...
23873 (grub_current_context): ...to this. 'static' removed. All users updated.
23874 (grub_env_find): Removed 'static'.
23875 (grub_env_context_open): Moved to normal/context.c.
23876 (grub_env_context_close): Likewise.
23877 (grub_env_export): Likewise.
23878 (mangle_data_slot_name): Removed.
23879 (grub_env_set_data_slot): Likewise.
23880 (grub_env_get_data_slot): Likewise.
23881 (grub_env_unset_data_slot): Likewise.
23882 * kern/main.c (grub_set_root_dev): Don't export root.
23883 It will be done later.
23884 (grub_main): Don't export prefix.
23885 It will be done later.
23886 * normal/context.c: New file.
23887 * normal/main.c (free_menu): Use grub_env_unset_menu.
23888 (grub_normal_add_menu_entry): Use grub_env_get_menu.
23889 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
23890 (GRUB_MOD_INIT(normal)): Call grub_context_init.
23891 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
23892
23893 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23894
23895 setpci support.
23896
23897 * commands/setpci.c: New file.
23898 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
23899 (setpci_mod_SOURCES): New variable.
23900 (setpci_mod_CFLAGS): Likewise.
23901 (setpci_mod_LDFLAGS): Likewise.
23902
23903 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23904
23905 Byte-addressable PCI configuration space.
23906
23907 * bus/pci.c (grub_pci_make_address): Use byte address instead of
23908 dword address.
23909 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
23910 GRUB_PCI_REG_CACHELINE.
23911 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
23912 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
23913 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
23914 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
23915 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
23916 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
23917 grub_pci_make_address.
23918 (lock_rom_area): Likewise.
23919 * commands/lspci.c (grub_lspci_iter): Use macroses
23920 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
23921 of grub_pci_make_address.
23922 * disk/ata.c (grub_ata_pciinit): Likewise.
23923 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
23924 (GRUB_PCI_REG_VENDOR): Likewise.
23925 (GRUB_PCI_REG_DEVICE): Likewise.
23926 (GRUB_PCI_REG_COMMAND): Likewise.
23927 (GRUB_PCI_REG_STATUS): Likewise.
23928 (GRUB_PCI_REG_REVISION): Likewise.
23929 (GRUB_PCI_REG_CLASS): Likewise.
23930 (GRUB_PCI_REG_CACHELINE): Likewise.
23931 (GRUB_PCI_REG_LAT_TIMER): Likewise.
23932 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
23933 (GRUB_PCI_REG_BIST): Likewise.
23934 (GRUB_PCI_REG_ADDRESSES): Likewise.
23935 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23936 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23937 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23938 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23939 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23940 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23941 (GRUB_PCI_REG_CIS_POINTER): Likewise.
23942 (GRUB_PCI_REG_SUBVENDOR): Likewise.
23943 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
23944 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
23945 (GRUB_PCI_REG_CAP_POINTER): Likewise.
23946 (GRUB_PCI_REG_IRQ_LINE): Likewise.
23947 (GRUB_PCI_REG_IRQ_PIN): Likewise.
23948 (GRUB_PCI_REG_MIN_GNT): Likewise.
23949 (GRUB_PCI_REG_MAX_LAT): Likewise.
23950 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
23951 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
23952 * video/efi_uga.c (find_framebuf): Likewise.
23953 * video/sm712.c (grub_video_sm712_setup): Likewise.
23954 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
23955 space.
23956
23957 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23958
23959 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
23960 can be reliably determined to be supported.
23961
23962 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23963
23964 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
23965 that VESA is supported.
23966 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
23967 supported.
23968
23969 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23970
23971 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
23972
23973 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23974
23975 * util/misc.c (make_system_path_relative_to_its_root): Work around
23976 special-casing of "/", as previous incarnation of this routine did.
23977
23978 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23979
23980 Fix any-emu compilation.
23981
23982 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
23983 * grub_bin2h_SOURCES: New variable.
23984
23985 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23986
23987 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
23988
23989 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23990
23991 * util/grub.d/00_header.in: Fix handling of locale_dir.
23992
23993 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23994
23995 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
23996 as possible unifont location (Gentoo).
23997 Reported by: Alexander Brüning
23998
23999 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24000
24001 Don't try to generate lists for kernel.img.
24002
24003 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
24004 (pkglib_MODULES): Remove kernel.img.
24005 (kernel_img_EXPORTS): Removed.
24006 (kernel_img_RELOCATABLE): New variable.
24007 * conf/x86_64-efi.rmk: Likewise.
24008 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
24009
24010 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24011
24012 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
24013 grub_xasprintf or grub_snprintf.
24014 (grub_vsprintf): Likewise.
24015 (grub_snprintf): New proto.
24016 (grub_vsnprintf): Likewise.
24017 (grub_xasprintf): Likewise.
24018 (grub_xvasprintf): Likewise.
24019 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
24020 (grub_sprintf): Removed.
24021 (grub_vsnprintf): New function.
24022 (grub_snprintf): Likewise.
24023 (grub_xvasprintf): Likewise.
24024 (grub_xasprintf): Likewise.
24025 (grub_vsprintf): Renamed to ...
24026 (grub_vsnprintf_real): ...this. New argument max_len.
24027
24028 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
24029
24030 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
24031 fix grub-script-check warning.
24032
24033 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24034
24035 * include/grub/font.h (grub_font_load): Fix prototype.
24036
24037 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24038
24039 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
24040
24041 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24042
24043 * include/grub/x86_64/at_keyboard.h: New file.
24044
24045 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24046
24047 * loader/mips/linux.c: Include missing grub/i18n.h.
24048
24049 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24050
24051 * normal/menu.c (notify_execution_failure): Clarify error message.
24052
24053 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24054
24055 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
24056 return value (and revert all return statements). Update users.
24057
24058 2010-01-20 Dan Merillat <debian@dan.merillat.org>
24059
24060 * kern/device.c (grub_device_iterate): Allocate new part_ent
24061 structure based on sizeof (*p) rather than sizeof (p->next), to
24062 account for structure padding.
24063
24064 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
24065 disk is NULL, which might happen for LVM physical volumes with no
24066 LVM signature.
24067
24068 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24069
24070 * loader/mips/linux.c (grub_cmd_initrd)
24071 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
24072
24073 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24074
24075 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
24076 (grub_video_video_init, grub_video_bitmap_init)
24077 (grub_font_manager_init, grub_term_gfxterm_init)
24078 (grub_at_keyboard_init): New extern declarations.
24079 (grub_machine_init): Initialize gfxterm and at_keyboard.
24080
24081 * kern/main.c (grub_main): Revert grub_printf delay kludge.
24082
24083 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
24084 `gfxterm.mod' into core image.
24085
24086 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24087 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24088 (kernel_img_FORMAT): Copy to ...
24089
24090 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24091 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24092 (kernel_img_FORMAT): ... here, and ...
24093
24094 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24095 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24096 (kernel_img_FORMAT): ... here.
24097
24098 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
24099 and input (at_keyboard) terminals in kernel.
24100 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
24101
24102 (pkglib_MODULES): Remove `pci.mod'.
24103 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
24104 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
24105 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
24106 (at_keyboard_mod_LDFLAGS): Remove variables.
24107
24108 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
24109
24110 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
24111
24112 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
24113
24114 * include/grub/mips/libgcc.h: Only export symbols for functions
24115 that libgcc provides.
24116
24117 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
24118
24119 MIPS support.
24120
24121 * bus/bonito.c: New file.
24122 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
24123 GRUB_PCI_NUM_DEVICES.
24124 * term/i386/pc/serial.c: Move to ...
24125 * term/serial.c: ... here. All users updated.
24126 * util/i386/pc/grub-mkimage.c: Move to ...
24127 * util/grub-mkrawimage.c: ... here. All users updated.
24128 * term/i386/pc/at_keyboard.c: Move to ...
24129 * term/at_keyboard.c: ... here. All users updated.
24130 * conf/mips-qemu-mips.rmk: New file.
24131 * conf/mips-yeeloong.rmk: Likewise.
24132 * conf/mips.rmk: Likewise.
24133 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
24134 mipsel-qemu-mips.
24135 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
24136 to port addresses.
24137 (grub_ata_pciinit): Support CS5536.
24138 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
24139 * font/font_cmd.c (loadfont_command): Open file before passing it to
24140 grub_font_load.
24141 (pseudo_file_read): New function.
24142 (pseudo_file_close): Likewise.
24143 (pseudo_fs): New structure.
24144 (load_font_module): New function.
24145 (GRUB_MOD_INIT(font_manager)): Load embedded font.
24146 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
24147 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
24148 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
24149 * include/grub/i386/at_keyboard.h: Split into ...
24150 * include/grub/at_keyboard.h: ... this ...
24151 * include/grub/i386/at_keyboard.h: ... and this.
24152 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
24153 New prototype.
24154 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
24155 updated.
24156 (grub_elf64_size): Likewise.
24157 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
24158 filename.
24159 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
24160 * include/grub/i386/coreboot/serial.h: Rewritten.
24161 * include/grub/i386/ieee1275/serial.h: Include
24162 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
24163 * include/grub/i386/pc/serial.h: Moved from here ...
24164 * include/grub/serial.h: ... to here. All users updated.
24165 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
24166 (GRUB_PCI_NUM_BUS): Likewise.
24167 (GRUB_PCI_NUM_DEVICES): Likewise.
24168 (grub_pci_device_map_range): Add missing volatile keyword.
24169 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
24170 * include/grub/mips/at_keyboard.h: New file.
24171 * include/grub/mips/cache.h: Likewise.
24172 * include/grub/mips/io.h: Likewise.
24173 * include/grub/mips/kernel.h: Likewise.
24174 * include/grub/mips/libgcc.h: Likewise.
24175 * include/grub/mips/pci.h: Likewise.
24176 * include/grub/mips/qemu-mips/boot.h: Likewise.
24177 * include/grub/mips/qemu-mips/kernel.h: Likewise.
24178 * include/grub/mips/qemu-mips/loader.h: Likewise.
24179 * include/grub/mips/qemu-mips/memory.h: Likewise.
24180 * include/grub/mips/qemu-mips/serial.h: Likewise.
24181 * include/grub/mips/qemu-mips/time.h: Likewise.
24182 * include/grub/mips/relocator.h: Likewise.
24183 * include/grub/mips/time.h: Likewise.
24184 * include/grub/mips/types.h: Likewise.
24185 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
24186 * include/grub/mips/yeeloong/boot.h: Likewise.
24187 * include/grub/mips/yeeloong/kernel.h: Likewise.
24188 * include/grub/mips/yeeloong/loader.h: Likewise.
24189 * include/grub/mips/yeeloong/memory.h: Likewise.
24190 * include/grub/mips/yeeloong/pci.h: Likewise.
24191 * include/grub/mips/yeeloong/serial.h: Likewise.
24192 * include/grub/mips/yeeloong/time.h: Likewise.
24193 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
24194 * kern/elf.c (grub_elf32_size): New parameter. All users
24195 updated.
24196 (grub_elf64_size): Likewise.
24197 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
24198 Load modules before saying "Welcome to GRUB!".
24199 Call grub_refresh after saying "Welcome to GRUB!".
24200 * kern/mips/cache.S: New file.
24201 * kern/mips/cache_flush.S: Likewise.
24202 * kern/mips/dl.c: Likewise.
24203 * kern/mips/init.c: Likewise.
24204 * kern/mips/qemu-mips/init.c: Likewise.
24205 * kern/mips/startup.S: Likewise.
24206 * kern/mips/yeeloong/init.c: Likewise.
24207 * kern/term.c (grub_putcode): Handle NULL terminal.
24208 (grub_getcharwidth): Likewise.
24209 (grub_getkey): Likewise.
24210 (grub_checkkey): Likewise.
24211 (grub_getkeystatus): Likewise.
24212 (grub_getxy): Likewise.
24213 (grub_getwh): Likewise.
24214 (grub_gotoxy): Likewise.
24215 (grub_cls): Likewise.
24216 (grub_setcolorstate): Likewise.
24217 (grub_setcolor): Likewise.
24218 (grub_getcolor): Likewise.
24219 (grub_refresh): Likewise.
24220 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
24221 (write_jump): Add hatch nop.
24222 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
24223 * lib/mips/setjmp.S: New file.
24224 * loader/mips/linux.c: Likewise.
24225 * term/i386/pc/at_keyboard.c: Move from here ...
24226 * term/at_keyboard.c: ... to here.
24227 * term/i386/pc/serial.c: Moved from here ...
24228 * term/serial.c: ... to here. All users updated.
24229 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
24230 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
24231 (serial_translate_key_sequence): Avoid deadlock.
24232 (grub_serial_getkey): Handle backspace.
24233 (grub_serial_putchar): Fix newline handling.
24234 * util/i386/pc/grub-mkimage.c: Move from here ...
24235 * util/grub-mkrawimage.c: ... to here. All users updated.
24236 (generate_image): New parameters 'font_path' and 'format'.
24237 Support embedding font.
24238 Use grub_host_to_target* instead of grub_cpu_to_le*.
24239 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
24240 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
24241 (options): New option "--font".
24242 (usage): Likewise.
24243 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
24244 (main): Handle "--font".
24245 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
24246 (grub_virtual_screen_setup): Set bg_color_display.
24247 (redraw_screen_rect): Use bg_color_display instead of incorrect
24248 bg_color.
24249 (grub_gfxterm_cls): Likewise.
24250 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
24251 Support embedding config file.
24252 (add_segments): Likewise.
24253 (options): New option "--config".
24254 (main): Handle "--config".
24255 * video/sm712.c: New file.
24256
24257 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24258
24259 Fix parallel builds.
24260
24261 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
24262 font.c depend on ascii.h).
24263
24264 2010-01-12 Carles Pina i Estany <carles@pina.cat>
24265
24266 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
24267
24268 2010-01-11 Carles Pina i Estany <carles@pina.cat>
24269
24270 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
24271 By default: disabled.
24272 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
24273 parameter.
24274
24275 2010-01-10 Carles Pina i Estany <carles@pina.cat>
24276
24277 * font/font.c: Update copyright years.
24278 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
24279
24280 2010-01-10 Carles Pina i Estany <carles@pina.cat>
24281
24282 * font/font.c: Include `ascii.h'.
24283 (ASCII_BITMAP_SIZE): New macro.
24284 (ascii_font_glyph): Define.
24285 (ascii_glyph_lookup): New function.
24286 (grub_font_get_string_width): Change comment. If glyph not found, use
24287 ascii_glyph_lookup.
24288 (grub_font_get_glyph_with_fallback): If glyph not available returns
24289 ascii_glyph_lookup.
24290 * util/grub-mkfont.c (file_formats): New enum.
24291 (options): Add `ascii-bitmaps' new option.
24292 (usage): Add `asii-bitmaps' new option.
24293 (write_font_ascii_bitmap): New function.
24294 (write_font): Rename to ...
24295 (write_font_p2): ... this. Remove print_glyphs call.
24296 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
24297 used. Call print_glyphs.
24298 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
24299
24300 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24301
24302 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
24303 (grub_bin2h_SOURCES): New variable.
24304 * util/bin2h.c: New file.
24305
24306 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24307
24308 * include/multiboot.h: Resynced with spec.
24309 * include/multiboot2.h: Likewise.
24310 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
24311 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
24312
24313 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24314
24315 * include/grub/term.h (grub_term_register_input,
24316 grub_term_register_output): Check return of terminal init()
24317 routines, and abort if errors are raised.
24318
24319 * commands/terminal.c: Update copyright year.
24320
24321 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24322
24323 * commands/terminal.c (grub_cmd_terminal_input)
24324 (grub_cmd_terminal_output): Check return of terminal init()
24325 routines, and abort if errors are raised.
24326
24327 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24328
24329 * include/grub/i386/bsd.h: Fix include pathes.
24330
24331 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24332
24333 Add missing *BSD copyright headers.
24334
24335 * include/grub/aout.h: Add BSD licence.
24336 * include/grub/i386/bsd.h: Parts under different licences moved to ...
24337 * include/grub/i386/freebsd_linker.h: ... here,
24338 * include/grub/i386/freebsd_reboot.h: ... here,
24339 * include/grub/i386/netbsd_bootinfo.h: ... here,
24340 * include/grub/i386/netbsd_reboot.h: ... here,
24341 * include/grub/i386/openbsd_bootarg.h: ... here,
24342 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
24343 licence to each file.
24344
24345 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24346
24347 * acinclude.m4: Remove `nop' assembly instruction; it's not
24348 implemented by all architectures.
24349
24350 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24351
24352 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
24353 ELILO. This is no longer necessary.
24354
24355 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
24356
24357 Added new tool, grub-scrit-check to verify grub.cfg syntax.
24358
24359 * util/grub-script-check.c: grub-script-check tool.
24360 * conf/common.rmk: Make rules for grub-script-check.
24361
24362 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24363
24364 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
24365 spotting it back in 2008. Shame on me for forgetting he did.
24366
24367 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
24368
24369 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24370
24371 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
24372 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
24373 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
24374 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
24375 (GRUB_VIDEO_TYPE_EFI): Rename to ...
24376 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
24377
24378 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
24379
24380 * include/grub/test.h: Add license header.
24381 * tests/example_functional_test.c: Likewise.
24382 * tests/example_unit_test.c: Likewise.
24383 * tests/lib/functional_test.c: Likewise.
24384 * tests/lib/test.c: Likewise.
24385 * tests/lib/unit_test.c: Likewise.
24386
24387 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
24388
24389 Use flag-based instead of hook-based video mode selection and "auto"
24390 keyword.
24391
24392 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
24393 (grub_video_set_mode): Changed prototype. All users updated.
24394 (grub_video_check_mode_flag): New inline function.
24395 * video/video.c (parse_modespec): New function.
24396 (grub_video_set_mode): Parse flags and keywords.
24397
24398 2010-01-17 Carles Pina i Estany <carles@pina.cat>
24399
24400 * util/misc.c (grub_util_info): Fix the order of the parameters in a
24401 fprintf call.
24402
24403 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
24404
24405 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
24406
24407 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24408
24409 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
24410 string.
24411 * util/grub-emu.c (usage): Likewise.
24412 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
24413 * util/i386/efi/grub-mkimage.c (usage): Likewise.
24414 * util/i386/pc/grub-mkimage.c (usage): Likewise.
24415 * util/i386/pc/grub-setup.c (usage): Likewise.
24416
24417 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24418
24419 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
24420 the message.
24421 (grub_util_info): Likewise.
24422 (grub_util_error): Likewise.
24423 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
24424 and/or new lines in `grub_util_warna', `grub_util_info',
24425 `grub_util_error' calls.
24426 * util/getroot.c: Likewise.
24427 * util/grub-editenv.c: Likewise.
24428 * util/grub-emu.c: Likewise.
24429 * util/grub-fstest.c: Likewise.
24430 * util/grub-mkdevicemap.c: Likewise.
24431 * util/grub-mkfont.c: Likewise.
24432 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24433 * util/grub-mkrelpath.c: Likewise.
24434 * util/grub-pe2elf.c: Likewise.
24435 * util/grub-probe.c: Likewise.
24436 * util/hostdisk.c: Likewise.
24437 * util/i386/efi/grub-mkimage.c: Likewise.
24438 * util/i386/pc/grub-mkimage.c: Likewise.
24439 * util/i386/pc/grub-setup.c: Likewise.
24440 * util/ieee1275/ofpath.c: Likewise.
24441 * util/mkisofs/eltorito.c: Likewise.
24442 * util/mkisofs/rock.c: Likewise.
24443 * util/mkisofs/write.c: Likewise.
24444 * util/raid.c: Likewise.
24445 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
24446 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24447
24448 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24449
24450 Enable multiboot on non-pc.
24451
24452 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
24453 multiboot.mod and multiboot2.mod to ...
24454 * conf/i386.rmk (pkglib_MODULES): ... here.
24455 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
24456 Moved to ...
24457 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
24458 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
24459 Moved to ...
24460 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
24461 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
24462 Moved to ...
24463 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
24464 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
24465 Moved to ...
24466 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
24467 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
24468 relocator.mod.
24469 (ata_mod_SOURCES): Removed.
24470 (ata_mod_CFLAGS): Likewise.
24471 (ata_mod_LDFLAGS): Likewise.
24472 (relocator_mod_SOURCES): Removed.
24473 (relocator_mod_CFLAGS): Likewise.
24474 (relocator_mod_ASFLAGS): Likewise.
24475 (relocator_mod_LDFLAGS): Likewise.
24476 Include i386.mk.
24477 * include/grub/x86_64/multiboot.h: New file.
24478 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
24479 Terminate EFI.
24480
24481 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24482
24483 Video multiboot support.
24484
24485 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
24486 New prototype.
24487 * include/multiboot.h: Resynced with multiboot specification.
24488 * include/multiboot2.h: Likewise.
24489 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
24490 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
24491 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
24492 (HAS_VGA_TEXT): Likewise.
24493 (accepts_video): New variable.
24494 (grub_multiboot_set_accepts_video): New function.
24495 (grub_multiboot_get_mbi_size): Account for video structures.
24496 (set_video_mode): New function.
24497 (retrieve_video_parameters): Likewise.
24498 (grub_multiboot_make_mbi): Fill video fields.
24499
24500 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24501
24502 Video driver ids.
24503
24504 * include/grub/video.h (grub_video_driver_id): New type.
24505 (grub_video_adapter): New member 'id'. All users updated.
24506 (grub_video_get_driver_id): New proto.
24507 * video/video.c (grub_video_get_driver_id): New function.
24508
24509 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24510
24511 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
24512 `var=val'.
24513
24514 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24515
24516 * normal/cmdline.c (print_completion): Gettextizze.
24517
24518 2001-01-14 Carles Pina i Estany <carles@pina.cat>
24519
24520 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
24521
24522 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24523
24524 * gettext/gettext.c (grub_gettext_translate): Push and pop
24525 grub_errno.
24526 (grub_gettext_delete_list): Change comment style.
24527 * kern/err.c (grub_error): Gettextizze.
24528 (grub_fatal): Gettextizze.
24529
24530 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24531
24532 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
24533 (grub_linux16_real_boot): ... this.
24534 * kern/i386/loader.S: Likewise.
24535 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
24536 (grub_linux16_boot): New function. Switches to text mode and calls
24537 grub_linux16_real_boot().
24538
24539 * loader/i386/bsd.c: Include `<grub/video.h>'.
24540 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
24541 text mode before calling grub_unix_real_boot().
24542
24543 * loader/i386/multiboot.c: Include `<grub/video.h>'.
24544 (grub_multiboot_boot): Switch to text mode before calling
24545 grub_relocator32_boot().
24546
24547 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
24548 (grub_chainloader_boot): Switch to text mode before calling
24549 grub_chainloader_real_boot().
24550
24551 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24552 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24553
24554 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
24555 non-empty value.
24556
24557 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24558 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24559
24560 * util/grub.d/00_header.in: Define a "savedefault" function for use
24561 in menu entries.
24562 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
24563
24564 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24565 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24566
24567 * util/grub-mkconfig_lib.in (save_default_entry): Only set
24568 saved_entry if boot_once is unset.
24569 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
24570 previous saved entry (i.e. grub-reboot).
24571
24572 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24573
24574 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
24575
24576 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24577
24578 * util/grub.d/00_header.in: Use `set var=val' rather than plain
24579 `var=val'.
24580 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
24581
24582 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24583
24584 * util/grub-reboot.in: Fix --version output.
24585 * util/grub-set-default.in: Likewise.
24586
24587 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24588
24589 * util/grub.d/00_header.in: Silently ignore zero-sized environment
24590 blocks.
24591
24592 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24593
24594 * util/grub.d/00_header.in: Quote the value assigned to `default',
24595 in case it contains spaces.
24596
24597 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24598
24599 * util/grub.d/30_os-prober.in: Fix merge error that moved a
24600 `save_default_entry' call from the macosx case to the linux case.
24601
24602 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
24603 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
24604
24605 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
24606 in `chosen' environment variable.
24607 * normal/menu_text.c (get_entry_number): Check if the variable
24608 matches the title of a menu entry.
24609 (run_menu): Pass menu to get_entry_number.
24610
24611 * util/grub-reboot.in: New file.
24612 * util/grub-set-default.in: New file.
24613 * conf/common.rmk (grub-reboot): New utility.
24614 (grub-set-default): New utility.
24615
24616 * util/grub-mkconfig_lib.in (save_default_entry): New function.
24617 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
24618 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
24619 move it to `saved_entry' for the next boot. Load environment on
24620 initialisation.
24621 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
24622 * util/grub.d/10_hurd.in: Likewise.
24623 * util/grub.d/10_linux.in (linux_entry): Likewise.
24624 * util/grub.d/10_windows.in: Likewise.
24625 * util/grub.d/30_os-prober.in: Likewise.
24626
24627 * util/grub-install.in: Create environment block.
24628 * util/i386/efi/grub-install.in: Likewise.
24629 * util/ieee1275/grub-install.in: Likewise.
24630 * util/sparc64/ieee1275/grub-install.in: Likewise.
24631
24632 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
24633
24634 Unit testing framework for GRUB.
24635
24636 * Makefile.in: Test framework build rules for 'make check'.
24637 * conf/tests.rmk: Build rules for individual tests and framework.
24638
24639 * include/grub/test.h: Header file for whitebox tests.
24640 * tests/lib/functional_test.c: Framework support for whitebox
24641 functional tests.
24642 * tests/lib/test.c: Common whitebox testing code for unit and
24643 functional tests.
24644 * tests/lib/unit_test.c: Framework support for whitebox unit
24645 tests.
24646
24647 * tests/util/grub-shell-tester.in: Support utility for grub-script
24648 tests.
24649 * tests/util/grub-shell.in: Utility to execute grub-script
24650 commands in a Qemu instance.
24651
24652 * tests/example_functional_test.c: Example whitebox functional
24653 test.
24654 * tests/example_grub_script_test.in: Example grub-script test.
24655 * tests/example_scripted_test.in: Example scripted test.
24656 * tests/example_unit_test.c: Example whitebox unit test.
24657
24658 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
24659
24660 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
24661 Add loader/i386/multiboot_mbi.c.
24662 (multiboot2_mod_SOURCES): Likewise.
24663 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
24664 (multiboot2_mod_SOURCES): Likewise.
24665 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
24666 (grub_multiboot_make_mbi): Likewise.
24667 (grub_multiboot_free_mbi): Likewise.
24668 (grub_multiboot_init_mbi): Likewise.
24669 (grub_multiboot_add_module): Likewise.
24670 (grub_multiboot_set_bootdev): Likewise.
24671 * loader/i386/multiboot.c (mbi): Removed.
24672 (mbi_dest): Likewise.
24673 (alloc_mbi): New variable.
24674 (grub_multiboot_payload_size): Removed. All users updated.
24675 (grub_multiboot_pure_size): New variable.
24676 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
24677 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
24678 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
24679 (grub_fill_multiboot_mmap): Likewise.
24680 (grub_multiboot_get_bootdev): Likewise.
24681 (grub_multiboot): Use multiboot_mbi functions.
24682 * loader/i386/multiboot_mbi.c: New file.
24683
24684 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24685
24686 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
24687 it would result in module crash.
24688
24689 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24690
24691 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
24692 (grub_ofconsole_getwh): Split to ...
24693 (grub_ofconsole_getwh): ... this.
24694 (grub_ofconsole_dimensions): ...and this.
24695 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
24696
24697 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
24698
24699 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
24700
24701 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24702
24703 * loader/i386/pc/multiboot2.c: Removed stalled file.
24704
24705 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24706
24707 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
24708 Reported by: Grégoire Sutre
24709
24710 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
24711
24712 * util/misc.c (canonicalize_file_name): New function.
24713 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
24714 instead of realpath().
24715
24716 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
24717
24718 * util/grub-install.in (usage): Clarify meaning of --root-directory,
24719 and make it clearer that it's optional. Based on confusion
24720 witnessed on IRC.
24721
24722 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24723
24724 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
24725 in premature implicit newline.
24726
24727 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24728
24729 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
24730 which resulted in garbled command line at the end of screen.
24731
24732 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24733
24734 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
24735 initialization with similar approach as with other Linux loaders.
24736
24737 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24738
24739 Fix i386-ieee1275 build.
24740
24741 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
24742 and grub_term_height() for video_{width,height} initialization.
24743
24744 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24745
24746 Fix grub-emu build.
24747
24748 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
24749
24750 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24751 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24752
24753 Support for multiple terminals.
24754
24755 * Makefile.in (pkglib_DATA): terminal.lst.
24756 (terminal.lst): New target.
24757 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
24758 (GRUB_MOD_INIT(handler)): Likewise.
24759 (GRUB_MOD_FINI(handler)): Likewise.
24760 * commands/help.c (grub_cmd_help): Handle multiple terminals.
24761 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
24762 * commands/sleep.c (do_print): Use grub_term_restore_pos.
24763 (grub_cmd_sleep): Use grub_term_save_pos.
24764 * commands/terminal.c: New file.
24765 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
24766 commands/terminal.c and lib/charset.c.
24767 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
24768 (pkglib_MODULES): Add terminal.mod.
24769 (terminal_mod_SOURCES): New variable.
24770 (terminal_mod_CFLAGS): Likewise.
24771 (terminal_mod_LDFLAGS): Likewise.
24772 * genhandlerlist.sh: Don't handle terminals.
24773 * genmk.rb: Generate terminal-*.lst.
24774 * genterminallist.sh: New file.
24775 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
24776 (grub_is_valid_utf8): Likewise.
24777 (grub_utf8_to_ucs4_alloc): Likewise.
24778 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
24779 (grub_menu_register_viewer): Changed argument.
24780 (grub_menu_try_text): New proto.
24781 (grub_gfxmenu_try_hook): New declaration.
24782 * include/grub/normal.h (grub_normal_exit_level): New declaration.
24783 (grub_menu_init_page): Additional argument term.
24784 (grub_normal_init_page): Likewise.
24785 (grub_cmdline_get): Arguments simplified.
24786 (grub_utf8_to_ucs4_alloc): Removed.
24787 (grub_print_ucs4): Additional argument term.
24788 (grub_getstringwidth): Likewise.
24789 (grub_print_message_indented): Likewise.
24790 (grub_menu_text_register_instances): New proto.
24791 (grub_show_menu): Likewise.
24792 (read_terminal_list): Likewise.
24793 (grub_set_more): Likewise.
24794 * include/grub/parser.h: Include handler.h.
24795 * include/grub/reader.h: Rewritten.
24796 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
24797 (GRUB_TERM_WIDTH): Changed to function.
24798 (GRUB_TERM_HEIGHT): Likewise.
24799 (GRUB_TERM_BORDER_WIDTH): Likewise.
24800 (GRUB_TERM_BORDER_HEIGHT): Likewise.
24801 (GRUB_TERM_NUM_ENTRIES): Likewise.
24802 (GRUB_TERM_ENTRY_WIDTH): Likewise.
24803 (GRUB_TERM_CURSOR_X): Likewise.
24804 (grub_term_input_class): Likewise.
24805 (grub_term_output_class): Likewise.
24806 (grub_term_outputs_disabled): New declaration.
24807 (grub_term_inputs_disabled): Likewise.
24808 (grub_term_outputs): Likewise.
24809 (grub_term_inputs): Likewise.
24810 (grub_term_register_input): Rewritten.
24811 (grub_term_register_output): Likewise.
24812 (grub_term_unregister_input): Likewise.
24813 (grub_term_unregister_output): Likewise.
24814 (FOR_ACTIVE_TERM_INPUTS): New macro.
24815 (FOR_DISABLED_TERM_INPUTS): Likewise.
24816 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24817 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24818 * include/grub/terminfo.h: Add oterm argument to all protypes.
24819 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
24820 Use grub_rescue_run.
24821 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
24822 All users updated.
24823 * kern/reader.c: Removed. All users updated.
24824 * kern/rescue_reader.c (grub_rescue_init): Removed.
24825 (grub_rescue_reader): Likewise.
24826 (grub_register_rescue_reader): Likewise.
24827 (grub_rescue_run): New function based on kern/reader.c.
24828 * kern/term.c: Adapted for multiterm.
24829 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
24830 (grub_is_valid_utf8): Likewise.
24831 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
24832 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
24833 right terminal.
24834 * loader/i386/linux.c (grub_linux_boot): Likewise.
24835 * normal/auth.c (grub_username_get): New function.
24836 (grub_auth_check_authentication): Use grub_username_get.
24837 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
24838 * normal/color.c: Adapt for multiterm.
24839 * normal/main.c (read_config_file): Don't use grub_reader_loop.
24840 (grub_normal_init_page): Additional argument term.
24841 (read_lists): Call read_terminal_lists.
24842 (grub_enter_normal_mode): Call grub_cmdline_run.
24843 Handle grub_normal_exit_level.
24844 (grub_cmd_normal): Make reentrant.
24845 (grub_cmd_normal_exit): New function.
24846 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
24847 * normal/menu.c: Adapt for multiterm.
24848 * normal/menu_entry.c: Likewise.
24849 * normal/menu_text.c: Likewise.
24850 * normal/menu_viewer.c: Removed. All users updated.
24851 * normal/term.c: New file.
24852 * util/console.c: Change order of includes to workaround a bug in
24853 ncurses headers.
24854 * term/terminfo.c: New argument oterm on all exported functions.
24855 All users updated.
24856 * util/grub-editenv.c (grub_term_input_class): Removed.
24857 (grub_term_output_class): Likewise.
24858
24859 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24860
24861 Make loader output a bit more user-friendly.
24862
24863 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
24864 is being loaded. Likewise for the Hurd.
24865
24866 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
24867 that kernel of FreeBSD ${version} is being loaded.
24868
24869 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
24870 grub_dprintf().
24871 (grub_cmd_initrd): Likewise.
24872 * util/grub.d/10_linux.in (linux_entry): Print message indicating
24873 that Linux ${version} is being loaded. Likewise for initrd.
24874
24875 2010-01-09 Carles Pina i Estany <carles@pina.cat>
24876
24877 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
24878
24879 2010-01-08 Carles Pina i Estany <carles@pina.cat>
24880
24881 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
24882 (GRUB_MOD_INIT): Gettextizze.
24883 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
24884 (GRUB_MOD_INIT): Gettextizze.
24885 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
24886 (grub_cmd_linux): Capitalise Linux.
24887 (GRUB_MOD_INIT): Gettextizze.
24888 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
24889 (grub_cmd_linux): Capitalise Linux.
24890 (GRUB_MOD_INIT): Gettextizze.
24891 * loader/i386/linux.c: Include `<grub/i18n.h>'.
24892 (grub_cmd_linux): Capitalise Linux.
24893 (GRUB_MOD_INIT): Gettextizze.
24894 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
24895 (GRUB_MOD_INIT): Gettextizze.
24896 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
24897 (grub_cmd_linux): Capitalise Linux.
24898 (GRUB_MOD_INIT): Gettextizze.
24899 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
24900 (grub_cpu_xnu_init): Gettextizze.
24901 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
24902 (GRUB_MOD_INIT): Gettextizze.
24903 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
24904 (GRUB_MOD_INIT): Gettextizze.
24905 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
24906 (grub_linux_load64): Capitalise Linux.
24907 (GRUB_MOD_INIT): Gettextizze.
24908 * loader/xnu.c: Include `<grub/i18n.h>'.
24909 (GRUB_MOD_INIT): Gettextizze.
24910 * po/POTFILES: Add `loader/efi/appleloader.c',
24911 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
24912 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
24913 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
24914 `loader/i386/xnu.c', `loader/multiboot_loader.c',
24915 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
24916 and `loader/xnu.c'.
24917
24918 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
24919
24920 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
24921
24922 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
24923
24924 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
24925 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
24926 * util/mkisofs/mkisofs.c (main): Readjust --version output.
24927
24928 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24929
24930 Reset Multiboot 2 support. New loader implements the draft in
24931 /branches/multiboot2 and shares as much code as possible with the
24932 production Multiboot 1 implementation.
24933
24934 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
24935 * loader/multiboot2.c: Likewise.
24936 * loader/i386/multiboot_helper.S: Likewise.
24937 * include/multiboot2.h: Replace with latest version from the draft
24938 in /branches/multiboot2.
24939
24940 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
24941 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
24942 and `loader/multiboot2.c'.
24943 (pkglib_MODULES): Add `multiboot2.mod'.
24944 (multiboot2_mod_SOURCES): New variable.
24945 (multiboot2_mod_LDFLAGS): Likewise.
24946 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
24947
24948 * conf/i386-pc.rmk: Likewise.
24949
24950 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
24951 (multiboot_mod_SOURCES): Remove variable.
24952 (multiboot_mod_LDFLAGS): Likewise.
24953 (multiboot_mod_CFLAGS): Likewise.
24954
24955 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
24956 `<multiboot2.h>' instead of `<multiboot.h>'.
24957 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
24958 (MULTIBOOT_HEADER_MAGIC): New macros.
24959
24960 * loader/multiboot_loader.c (module_version_status): Remove variable.
24961 (find_multi_boot2_header): Remove function.
24962 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
24963 logic. Always check for the Multiboot version we're compiling for.
24964 (grub_cmd_module_loader): Likewise.
24965 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
24966 command instead of `multiboot'.
24967
24968 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24969
24970 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
24971 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
24972 all users.
24973
24974 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24975 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24976
24977 Fix breakage introduced with previous commit.
24978
24979 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
24980 commands.
24981 * normal/handler.c (read_handler_list): Revert part of previous commit
24982 affecting this file.
24983 * normal/main.c (read_lists): Move read_handler_list() call back to ...
24984 (grub_normal_execute): ... here.
24985
24986 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24987
24988 Merge prefix-redefinition-fix branch.
24989
24990 * normal/autofs.c (read_fs_list): Make function capable of being
24991 run multiple times, gracefuly replacing the previous data
24992 structures.
24993 * normal/dyncmd.c (read_command_list): Likewise.
24994 * normal/handler.c (read_handler_list): Likewise.
24995 * normal/main.c (read_lists): New function. Calls all the
24996 list reading functions.
24997 (grub_normal_execute): Use read_lists() instead of calling all
24998 list reading functions explicitly. Register read_lists() as a
24999 variable hook attached to ${prefix}.
25000
25001 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25002
25003 Merge crypto branch.
25004
25005 * Makefile.in (pkglib_DATA): Add crypto.lst.
25006 (crypto.lst): New target.
25007 * commands/hashsum.c: New file.
25008 * commands/password.c (check_password): Use grub_crypto_memcmp.
25009 * commands/password_pbkdf2.c: New file.
25010 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
25011 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
25012 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
25013 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
25014 -I$(srcdir)/lib/libgcrypt_wrap.
25015 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
25016 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
25017 password_pbkdf2.mod.
25018 (crypto_mod_SOURCES): New variable.
25019 (crypto_mod_CFLAGS): Likewise.
25020 (crypto_mod_LDFLAGS): Likewise.
25021 (hashsum_mod_SOURCES): New variable.
25022 (hashsum_mod_CFLAGS): Likewise.
25023 (hashsum_mod_LDFLAGS): Likewise.
25024 (pbkdf2_mod_SOURCES): New variable.
25025 (pbkdf2_mod_CFLAGS): Likewise.
25026 (pbkdf2_mod_LDFLAGS): Likewise.
25027 (password_pbkdf2_mod_SOURCES): New variable.
25028 (password_pbkdf2_mod_CFLAGS): Likewise.
25029 (password_pbkdf2_mod_LDFLAGS): Likewise.
25030 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
25031 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
25032 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
25033 Include conf/gcry.rmk.
25034 * include/grub/auth.h: Rewritten.
25035 * include/grub/crypto.h: New file.
25036 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
25037 * include/grub/normal.h (read_crypto_list): New prototype.
25038 * lib/crypto.c: New file.
25039 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
25040 * lib/pbkdf2.c: Likewise.
25041 * normal/auth.c (grub_auth_strcmp): Removed.
25042 (grub_iswordseparator): Likewise.
25043 (grub_auth_strword): Likewise.
25044 (is_authenticated): Use grub_strword.
25045 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
25046 and grub_strword. Pass entered password to authentication callback.
25047 * normal/crypto.c: New file.
25048 * normal/main.c: Call read_crypto_list.
25049 * util/grub-mkpasswd-pbkdf2.c: New file.
25050 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
25051
25052 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
25053
25054 Fix descent and ascent calculation.
25055
25056 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
25057 (options): New option "asce".
25058 (usage): Likewise.
25059 (add_char): Ignore invalid glyphs for descent calculation.
25060 Calculate ascent from actual content.
25061 (print_glyphs): Use 'asce'.
25062 (write_font): Likewise. Allow ascent override.
25063 (main): Handle "asce" option.
25064
25065 2010-01-06 Carles Pina i Estany <carles@pina.cat>
25066
25067 * kern/err.c: Include `<grub/i18n.h>'.
25068 (grub_print_error): Add full stop. Gettextizze.
25069 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
25070 (grub_bsd_load_elf): Capitalise ELF.
25071 (grub_cmd_freebsd_loadenv): Add `s' in error string.
25072 (grub_cmd_freebsd_module): Likewise.
25073 (grub_cmd_freebsd_module_elf): Likewise.
25074 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
25075
25076 2010-01-06 Carles Pina i Estany <carles@pina.cat>
25077
25078 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
25079 * commands/search_file.c (HELP_MESSAGE): New macro.
25080 * commands/search_label.c (HELP_MESSAGE): Likewise.
25081 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
25082 * po/POTFILES: Add `commands/search_file.c',
25083 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
25084 `commands/search.c'.
25085
25086 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25087
25088 * config.rpath: Update from Gnulib.
25089
25090 2010-01-05 Yves Blusseau <blusseau@zetam.org>
25091
25092 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
25093
25094 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
25095
25096 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
25097
25098 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
25099
25100 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
25101 arguments to fread so that we get a return value in bytes, rather
25102 than something that will normally be rounded down to 0.
25103 Adjust error handling to avoid producing garbage when size_t is not
25104 the same size as long long.
25105
25106 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
25107
25108 * util/mkisofs/write.c (padblock_write): Check return value of
25109 fread.
25110
25111 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25112
25113 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
25114 floppy images now.
25115
25116 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
25117
25118 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25119
25120 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
25121 instead of manual alignment.
25122 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
25123 verbose). Avoid attempts to read past end of the device
25124 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
25125 but GRUB_DISK_CACHE_SIZE may exceed that).
25126
25127 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25128
25129 * commands/crc.c (grub_cmd_crc): Abort on read errors.
25130 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
25131 it to upper layer.
25132
25133 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25134
25135 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
25136 New constant.
25137 (grub_efi_piwg_device_path): New structure
25138 (grub_efi_piwg_device_path_t): New type.
25139 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
25140 (devpath_1): Transform to a structure. All users updated.
25141 (devpath_2): Likewise.
25142 (devpath_3): Likewise.
25143 (devpath_4): Likewise.
25144 (devpath_5): Likewise.
25145
25146 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25147
25148 * loader/efi/appleloader.c: Restored. Update all users.
25149
25150 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25151
25152 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
25153
25154 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
25155 (struct boot_blocklist): Move from here ...
25156 * include/grub/i386/pc/boot.h [ASM_FILE]
25157 (struct grub_boot_blocklist): ... to here. Update all users.
25158 (setup): Only initialize `start' member of `first_block'
25159 structure. Add assert() calls to verify the other members.
25160
25161 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
25162 (generate_image): Fix broken blocklist length initialization.
25163 Add assert() call to verify blocklist `segment' field.
25164
25165 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25166
25167 * loader/efi/appleloader.c: Remove. Update all users.
25168
25169 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25170
25171 * boot/i386/pc/boot.S: Update copyright year.
25172 * boot/i386/pc/cdboot.S: Likewise.
25173 * boot/i386/pc/diskboot.S: Likewise.
25174 * boot/i386/pc/lnxboot.S: Likewise.
25175 * boot/i386/pc/pxeboot.S: Likewise.
25176 * bus/pci.c: Likewise.
25177 * commands/cmp.c: Likewise.
25178 * commands/help.c: Likewise.
25179 * commands/hexdump.c: Likewise.
25180 * commands/i386/pc/halt.c: Likewise.
25181 * commands/i386/pc/play.c: Likewise.
25182 * commands/i386/pc/vbeinfo.c: Likewise.
25183 * commands/ls.c: Likewise.
25184 * commands/test.c: Likewise.
25185 * disk/dmraid_nvidia.c: Likewise.
25186 * disk/i386/pc/biosdisk.c: Likewise.
25187 * disk/ieee1275/nand.c: Likewise.
25188 * disk/ieee1275/ofdisk.c: Likewise.
25189 * disk/lvm.c: Likewise.
25190 * disk/raid.c: Likewise.
25191 * disk/raid6_recover.c: Likewise.
25192 * disk/scsi.c: Likewise.
25193 * fs/affs.c: Likewise.
25194 * fs/cpio.c: Likewise.
25195 * fs/ext2.c: Likewise.
25196 * fs/hfs.c: Likewise.
25197 * fs/iso9660.c: Likewise.
25198 * fs/ntfs.c: Likewise.
25199 * fs/sfs.c: Likewise.
25200 * fs/udf.c: Likewise.
25201 * fs/ufs.c: Likewise.
25202 * fs/xfs.c: Likewise.
25203 * gencmdlist.sh: Likewise.
25204 * genmk.rb: Likewise.
25205 * include/grub/disk.h: Likewise.
25206 * include/grub/efi/api.h: Likewise.
25207 * include/grub/efi/efi.h: Likewise.
25208 * include/grub/efi/pe32.h: Likewise.
25209 * include/grub/elf.h: Likewise.
25210 * include/grub/fs.h: Likewise.
25211 * include/grub/i386/at_keyboard.h: Likewise.
25212 * include/grub/i386/pc/memory.h: Likewise.
25213 * include/grub/i386/pc/vbe.h: Likewise.
25214 * include/grub/i386/pci.h: Likewise.
25215 * include/grub/i386/tsc.h: Likewise.
25216 * include/grub/ieee1275/ieee1275.h: Likewise.
25217 * include/grub/ntfs.h: Likewise.
25218 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
25219 * include/grub/sparc64/libgcc.h: Likewise.
25220 * include/grub/symbol.h: Likewise.
25221 * include/grub/types.h: Likewise.
25222 * include/multiboot2.h: Likewise.
25223 * io/gzio.c: Likewise.
25224 * kern/device.c: Likewise.
25225 * kern/disk.c: Likewise.
25226 * kern/efi/efi.c: Likewise.
25227 * kern/efi/mm.c: Likewise.
25228 * kern/elf.c: Likewise.
25229 * kern/file.c: Likewise.
25230 * kern/i386/dl.c: Likewise.
25231 * kern/i386/pc/init.c: Likewise.
25232 * kern/i386/pc/startup.S: Likewise.
25233 * kern/ieee1275/ieee1275.c: Likewise.
25234 * kern/ieee1275/init.c: Likewise.
25235 * kern/main.c: Likewise.
25236 * kern/mm.c: Likewise.
25237 * kern/powerpc/dl.c: Likewise.
25238 * kern/sparc64/dl.c: Likewise.
25239 * kern/x86_64/dl.c: Likewise.
25240 * lib/hexdump.c: Likewise.
25241 * loader/efi/appleloader.c: Likewise.
25242 * loader/i386/ieee1275/linux.c: Likewise.
25243 * loader/i386/pc/chainloader.c: Likewise.
25244 * loader/i386/pc/linux.c: Likewise.
25245 * loader/i386/pc/multiboot2.c: Likewise.
25246 * loader/ieee1275/multiboot2.c: Likewise.
25247 * loader/multiboot2.c: Likewise.
25248 * loader/multiboot_loader.c: Likewise.
25249 * loader/powerpc/ieee1275/linux.c: Likewise.
25250 * normal/completion.c: Likewise.
25251 * normal/menu_entry.c: Likewise.
25252 * partmap/apple.c: Likewise.
25253 * util/grub.d/10_hurd.in: Likewise.
25254 * util/hostfs.c: Likewise.
25255 * video/readers/png.c: Likewise.
25256
25257 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
25258
25259 * include/grub/misc.h (GNUC_PREREQ): New macro.
25260 (ATTRIBUTE_ERROR): New macro.
25261 * include/grub/list.h (grub_bad_type_cast_real): Use
25262 ATTRIBUTE_ERROR.
25263
25264 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25265
25266 * normal/menu_text.c (print_message): Change messages.
25267
25268 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25269
25270 * normal/menu_entry.c (store_completion): Gettextizze.
25271
25272 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25273
25274 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
25275
25276 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25277
25278 * po/POTFILES: Sort correctly.
25279
25280 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25281
25282 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
25283 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
25284 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
25285 full stop.
25286 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
25287 summary. Gettextizze the strings.
25288 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
25289 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
25290 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
25291 full stop.
25292 (GRUB_MOD_INIT): Remove command name from summary.
25293 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
25294 summary.
25295 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
25296 * term/i386/pc/serial.c (options): Add full stops.
25297 (GRUB_MOD_INIT): Remove command name from the summary.
25298
25299 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25300
25301 * commands/acpi.c: Gettextizze help strings and/or options. Include
25302 `grub/i18n.h' if needed.
25303 * commands/blocklist.c: Likewise.
25304 * commands/boot.c: Likewise.
25305 * commands/cat.c: Likewise.
25306 * commands/cmp.c: Likewise.
25307 * commands/configfile.c: Likewise.
25308 * commands/crc.c: Likewise.
25309 * commands/date.c: Likewise.
25310 * commands/echo.c: Likewise.
25311 * commands/efi/fixvideo.c: Likewise.
25312 * commands/efi/loadbios.c: Likewise.
25313 * commands/gptsync.c: Likewise.
25314 * commands/halt.c: Likewise.
25315 * commands/handler.c: Likewise.
25316 * commands/hdparm.c: Likewise.
25317 * commands/hexdump.c: Likewise.
25318 * commands/i386/cpuid.c: Likewise.
25319 * commands/i386/pc/drivemap.c: Likewise.
25320 * commands/i386/pc/halt.c: Likewise.
25321 * commands/i386/pc/pxecmd.c: Likewise.
25322 * commands/i386/pc/vbeinfo.c: Likewise.
25323 * commands/i386/pc/vbetest.c: Likewise.
25324 * commands/ieee1275/suspend.c: Likewise.
25325 * commands/keystatus.c: Likewise.
25326 * commands/loadenv.c: Likewise.
25327 * commands/ls.c: Likewise.
25328 * commands/lsmmap.c: Likewise.
25329 * commands/lspci.c: Likewise.
25330 * commands/memrw.c: Likewise.
25331 * commands/minicmd.c: Likewise.
25332 * commands/parttool.c: Likewise.
25333 * commands/password.c: Likewise.
25334 * commands/probe.c: Likewise.
25335 * commands/read.c: Likewise.
25336 * commands/reboot.c: Likewise.
25337 * commands/search.c: Likewise.
25338 * commands/sleep.c: Likewise.
25339 * commands/test.c: Likewise.
25340 * commands/true.c: Likewise.
25341 * commands/usbtest.c: Likewise.
25342 * commands/videotest.c: Likewise.
25343 * commands/xnu_uuid.c: Likewise.
25344 * disk/loopback.c: Likewise.
25345 * hello/hello.c: Likewise.
25346 * loader/i386/bsd.c: Likewise.
25347 * term/i386/pc/serial.c: Likewise.
25348 * po/POTFILES: Add new files.
25349
25350 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
25351
25352 * term/i386/pc/at_keyboard.c
25353 (keyboard_controller_wait_untill_ready): Rename to ...
25354 (keyboard_controller_wait_until_ready): ... this. Update all users.
25355
25356 2010-01-01 Carles Pina i Estany <carles@pina.cat>
25357
25358 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
25359 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
25360 string using string width.
25361 * normal/menu_text.c (grub_print_message_indented): Use
25362 grub_print_spaces and not print_spaces.
25363 (print_timeout): Likewise.
25364 (print_spaces): Move to...
25365 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
25366
25367 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
25368
25369 Import from Gnulib.
25370
25371 * gnulib/getdelim.c: New file.
25372 * gnulib/getline.c: Likewise.
25373
25374 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
25375
25376 * include/grub/list.h (grub_assert_fail): Removed.
25377 (grub_bad_type_cast_real): New function.
25378 (grub_bad_type_cast): New macro.
25379 (GRUB_AS_LIST): Use grub_bad_type_cast.
25380 (GRUB_AS_LIST_P): Likewise.
25381 (GRUB_AS_NAMED_LIST): Likewise.
25382 (GRUB_AS_NAMED_LIST_P): Likewise.
25383 (GRUB_AS_PRIO_LIST): Likewise.
25384 (GRUB_AS_PRIO_LIST_P): Likewise.
25385 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
25386
25387 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
25388
25389 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
25390 Fix syntax error.
25391
25392 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
25393
25394 * configure.ac: Check for TARGET_CFLAGS initialization before we
25395 initialize it ourselves (sigh).
25396 Move a few modifications to TARGET_CFLAGS to be unconditional
25397 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
25398 eh_frame)
25399
25400 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
25401 * term/i386/pc/at_keyboard.c
25402 (keyboard_controller_wait_untill_ready): Likewise.
25403 (keyboard_controller_led): Rename `led_status' paramter to avoid
25404 name conflict.
25405
25406 2009-12-28 Carles Pina i Estany <carles@pina.cat>
25407
25408 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
25409 quotes.
25410
25411 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25412
25413 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
25414
25415 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25416
25417 * normal/menu_text.c (grub_print_message_indented): Prevent
25418 past-the-end-of-array dereference.
25419
25420 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25421
25422 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
25423 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
25424
25425 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25426
25427 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
25428 * normal/main.c (grub_normal_read_line): Remove a space from the
25429 default prompt.
25430
25431 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25432
25433 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
25434 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25435 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25436 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25437 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25438 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25439 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25440
25441 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25442
25443 * video/readers/jpeg.c (cmd): Declare.
25444 (grub_cmd_jpegtest): Use `grub_command_t' type.
25445 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25446 Assign to `cmd'.
25447 (GRUB_MOD_FINI): Use `cmd' to unregister.
25448 * video/readers/png.c (cmd): Declare.
25449 (grub_cmd_pngtest): Use `grub_command_t' type.
25450 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25451 Assign to `cmd'.
25452 (GRUB_MOD_FINI): Use `cmd' to unregister.
25453 * video/readers/tga.c (cmd): Declare.
25454 (grub_cmd_tgatest): Use `grub_command_t' type.
25455 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25456 Assign to `cmd'.
25457 (GRUB_MOD_FINI): Use `cmd' to unregister.
25458
25459 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25460
25461 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
25462 stops.
25463 * kern/corecmd.c (grub_register_core_commands): Likewise.
25464 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
25465 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25466 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
25467 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25468 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25469 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
25470 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25471 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
25472 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25473 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25474 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25475 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25476 * normal/handler.c (insert_handler): Likewise.
25477 * normal/main.c (GRUB_MOD_INIT): Likewise.
25478 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25479
25480 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25481
25482 * commands/help.c (grub_cmd_help): Print the command name before the
25483 summary.
25484 (GRUB_MOD_INIT): Remove command name from the summary.
25485 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
25486 string as summary.
25487 * lib/arg.c (find_long): Print the command name before the summary.
25488 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
25489 summary.
25490 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
25491 * commands/cat.c (GRUB_MOD_INIT): Likewise.
25492 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
25493 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25494 * commands/crc.c (GRUB_MOD_INIT): Likewise.
25495 * commands/date.c (GRUB_MOD_INIT): Likewise.
25496 * commands/echo.c (GRUB_MOD_INIT): Likewise.
25497 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
25498 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25499 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25500 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
25501 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
25502 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
25503 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
25504 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25505 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
25506 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
25507 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
25508 * commands/ls.c (GRUB_MOD_INIT): Likewise.
25509 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25510 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25511 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25512 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
25513 * commands/password.c (GRUB_MOD_INIT): Likewise.
25514 * commands/probe.c (GRUB_MOD_INIT): Likewise.
25515 * commands/read.c (GRUB_MOD_INIT): Likewise.
25516 * commands/search.c (GRUB_MOD_INIT): Likewise.
25517 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
25518 * commands/test.c (GRUB_MOD_INIT): Likewise.
25519 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
25520 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25521 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25522 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
25523 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25524 * lib/arg.c (GRUB_MOD_INIT): Likewise.
25525 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
25526 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25527 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25528 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25529 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25530 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
25531 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
25532 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
25533
25534 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25535
25536 Use search command for preliminar UUID search.
25537
25538 * commands/search.c: Split into ...
25539 * commands/search_wrap.c: ...this
25540 * commands/search.c: ...and this.
25541 * commands/search_file.c: New file.
25542 * commands/search_label.c: New file.
25543 * commands/search_uuid.c: New file.
25544 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
25545 Add commands/search_wrap.c, commands/search_file.c,
25546 commands/search_label.c and commands/search_uuid.c.
25547 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
25548 (search_mod_SOURCES): Set to commands/search_wrap.c.
25549 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
25550 search_label.mod.
25551 (search_fs_file_mod_SOURCES): New variable.
25552 (search_fs_file_mod_CFLAGS): Likewise.
25553 (search_fs_file_mod_LDFLAGS): Likewise.
25554 (search_label_mod_SOURCES): Likewise.
25555 (search_label_mod_CFLAGS): Likewise.
25556 (search_label_mod_LDFLAGS): Likewise.
25557 (search_fs_uuid_mod_SOURCES): New variable.
25558 (search_fs_uuid_mod_CFLAGS): Likewise.
25559 (search_fs_uuid_mod_LDFLAGS): Likewise.
25560 (fs_file_mod_SOURCES): Removed.
25561 (fs_file_mod_CFLAGS): Likewise.
25562 (fs_file_mod_LDFLAGS): Likewise.
25563 (fs_uuid_mod_SOURCES): Removed.
25564 (fs_uuid_mod_CFLAGS): Likewise.
25565 (fs_uuid_mod_LDFLAGS): Likewise.
25566 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
25567 Set to util/grub-install.in.
25568 * disk/fs_file.c: Removed.
25569 * disk/fs_uuid.c: Likewise.
25570 * include/grub/search.h: New file.
25571 * util/grub-install.in: Handle sparc64.
25572 Create and use load.cfg.
25573 * util/sparc64/ieee1275/grub-install.in: Removed.
25574
25575 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25576
25577 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
25578 Ignore return status if CF is cleared.
25579 (grub_biosdisk_get_diskinfo_standard): Likewise.
25580
25581 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25582
25583 * term/i386/pc/at_keyboard.c
25584 (keyboard_controller_wait_untill_ready): New function.
25585 (grub_keyboard_controller_write, grub_keyboard_controller_read)
25586 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
25587 for keyboard polling, rather than duplicate the same loop. This
25588 saves a few bytes in code size.
25589
25590 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25591
25592 Support for (pxe[:server[:gateway]]) syntax and
25593 use environment variable for PXE.
25594
25595 * commands/i386/pc/pxecmd.c (options): Removed.
25596 (print_ip): Removed.
25597 (grub_cmd_pxe): Removed
25598 (grub_cmd_pxe_unload): New function.
25599 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
25600 (grub_pxe_your_ip): Made static.
25601 (grub_pxe_default_server_ip): Likewise.
25602 (grub_pxe_default_gateway_ip): Likewise.
25603 (grub_pxe_blksize): Likewise.
25604 (parse_ip): New function.
25605 (grub_pxe_open): Support server and gateway specification.
25606 (grub_pxe_close): Free disk->data.
25607 (grub_pxefs_open): Use disk->data.
25608 (grub_pxefs_read): Likewise.
25609 (grub_env_write_readonly): New function.
25610 (set_mac_env): Likewise.
25611 (set_env_limn_ro): Likewise.
25612 (parse_dhcp_vendor): Likewise.
25613 (grub_pxe_detect): Set the environment variables.
25614 (set_ip_env): New function.
25615 (write_ip_env): Likewise.
25616 (grub_env_write_pxe_default_server): Likewise.
25617 (grub_env_write_pxe_default_gateway): Likewise.
25618 (grub_env_write_pxe_blocksize): Likewise.
25619 (GRUB_MOD_INIT(pxe)): Set environment variables.
25620 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
25621 (grub_pxe_mac_addr_t): ... this. All users updated.
25622 (grub_pxe_your_ip): Removed.
25623 (grub_pxe_server_ip): Likewise.
25624 (grub_pxe_gateway_ip): Likewise.
25625 (grub_pxe_blksize): Likewise.
25626
25627 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25628
25629 * commands/help.c: Include `<grub/i18n.h>'.
25630 (grub_cmd_help): Gettextizze.
25631 (GRUB_MOD_INIT): Likewise.
25632 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
25633 (GRUB_MOD_INIT): Gettextizze.
25634 * commands/search.c: Include `<grub/i18n.h>'.
25635 (options): Gettextizze.
25636 (GRUB_MOD_INIT): Gettextizze.
25637 * lib/arg.c: Include `<grub/i18n.h>'.
25638 (help_options): Gettextizze.
25639 (find_long): Likewise.
25640 (grub_arg_show_help): Likewise.
25641 * normal/dyncmd.c: Include `<grub/i18n.h>'.
25642 (read_command_list): Gettextizze.
25643 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
25644 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
25645
25646 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25647
25648 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
25649 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
25650 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
25651 (led_status): New variable.
25652 (keyboard_controller_led): New function.
25653 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
25654 update led status for caps lock, num lock and scroll lock.
25655
25656 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
25657
25658 * util/hostdisk.c (open_device): Fix a comment.
25659
25660 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25661
25662 * util/grub-install.in (host_os): New variable.
25663 * util/i386/efi/grub-install.in (host_os): Likewise.
25664
25665 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25666
25667 * util/mkisofs/write.c (padblock_write): Abort when given an
25668 excedingly large embed image, instead of silently truncating it.
25669
25670 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25671
25672 * include/multiboot.h: Indentation fixes.
25673
25674 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25675
25676 * include/multiboot.h (struct multiboot_aout_symbol_table)
25677 (struct multiboot_elf_section_header_table): New structure
25678 declarations (stolen from GRUB Legacy).
25679 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
25680 table information.
25681
25682 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
25683 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
25684 type aliases.
25685
25686 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25687
25688 * include/multiboot.h: Make comments src2texi-friendly.
25689
25690 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25691
25692 For consistency with [multiboot]/docs/boot.S.
25693
25694 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
25695 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
25696 (MULTIBOOT_MAGIC2): Rename from this ...
25697 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
25698
25699 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25700
25701 * include/multiboot.h: Remove `<grub/types.h>'.
25702 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
25703 types. Update all users.
25704
25705 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25706
25707 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
25708 `couldn't' and `can not' by `cannot'.
25709 * commands/i386/pc/drivemap.c: Likewise.
25710 * disk/ata.c: Likewise.
25711 * disk/ieee1275/nand.c: Likewise.
25712 * fs/affs.c: Likewise.
25713 * fs/fat.c: Likewise.
25714 * fs/hfs.c: Likewise.
25715 * fs/hfsplus.c: Likewise.
25716 * fs/iso9660.c: Likewise.
25717 * fs/jfs.c: Likewise.
25718 * fs/minix.c: Likewise.
25719 * fs/reiserfs.c: Likewise.
25720 * fs/sfs.c: Likewise.
25721 * fs/udf.c: Likewise.
25722 * fs/ufs.c: Likewise.
25723 * fs/xfs.c: Likewise.
25724 * loader/powerpc/ieee1275/linux.c: Likewise.
25725 * loader/sparc64/ieee1275/linux.c: Likewise.
25726 * util/grub-probe.c: Likewise.
25727 * util/misc.c: Likewise.
25728
25729 2009-12-24 Carles Pina i Estany <carles@pina.cat>
25730
25731 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
25732 grub_errno calls.
25733 * commands/acpi.c: Likewise.
25734 * commands/blocklist.c: Likewise.
25735 * commands/efi/loadbios.c: Likewise.
25736 * commands/i386/pc/drivemap.c: Likewise.
25737 * commands/loadenv.c: Likewise.
25738 * commands/memrw.c: Likewise.
25739 * commands/password.c: Likewise.
25740 * commands/videotest.c: Likewise.
25741 * disk/ata.c: Likewise.
25742 * disk/ata_pthru.c: Likewise.
25743 * disk/dmraid_nvidia.c: Likewise.
25744 * disk/ieee1275/nand.c: Likewise.
25745 * disk/ieee1275/ofdisk.c: Likewise.
25746 * disk/loopback.c: Likewise.
25747 * disk/lvm.c: Likewise.
25748 * disk/mdraid_linux.c: Likewise.
25749 * disk/raid.c: Likewise.
25750 * disk/raid6_recover.c: Likewise.
25751 * disk/scsi.c: Likewise.
25752 * efiemu/main.c: Likewise.
25753 * efiemu/mm.c: Likewise.
25754 * efiemu/pnvram.c: Likewise.
25755 * efiemu/symbols.c: Likewise.
25756 * font/font.c: Likewise.
25757 * fs/cpio.c: Likewise.
25758 * fs/hfsplus.c: Likewise.
25759 * fs/iso9660.c: Likewise.
25760 * fs/jfs.c: Likewise.
25761 * fs/minix.c: Likewise.
25762 * fs/ntfs.c: Likewise.
25763 * fs/ntfscomp.c: Likewise.
25764 * fs/reiserfs.c: Likewise.
25765 * fs/ufs.c: Likewise.
25766 * fs/xfs.c: Likewise.
25767 * gettext/gettext.c: Likewise.
25768 * include/grub/auth.h: Likewise.
25769 * kern/elf.c: Likewise.
25770 * kern/file.c: Likewise.
25771 * kern/ieee1275/init.c: Likewise.
25772 * kern/ieee1275/mmap.c: Likewise.
25773 * kern/ieee1275/openfw.c: Likewise.
25774 * kern/powerpc/dl.c: Likewise.
25775 * kern/sparc64/dl.c: Likewise.
25776 * lib/arg.c: Likewise.
25777 * loader/i386/bsd.c: Likewise.
25778 * loader/i386/bsdXX.c: Likewise.
25779 * loader/i386/efi/linux.c: Likewise.
25780 * loader/i386/efi/xnu.c: Likewise.
25781 * loader/i386/ieee1275/linux.c: Likewise.
25782 * loader/i386/linux.c: Likewise.
25783 * loader/i386/multiboot.c: Likewise.
25784 * loader/i386/pc/linux.c: Likewise.
25785 * loader/i386/pc/multiboot2.c: Likewise.
25786 * loader/i386/xnu.c: Likewise.
25787 * loader/ieee1275/multiboot2.c: Likewise.
25788 * loader/macho.c: Likewise.
25789 * loader/machoXX.c: Likewise.
25790 * loader/multiboot2.c: Likewise.
25791 * loader/multiboot_loader.c: Likewise.
25792 * loader/powerpc/ieee1275/linux.c: Likewise.
25793 * loader/sparc64/ieee1275/linux.c: Likewise.
25794 * loader/xnu.c: Likewise.
25795 * loader/xnu_resume.c: Likewise.
25796 * mmap/i386/pc/mmap.c: Likewise.
25797 * normal/menu_viewer.c: Likewise.
25798 * partmap/acorn.c: Likewise.
25799 * partmap/amiga.c: Likewise.
25800 * partmap/apple.c: Likewise.
25801 * script/lexer.c: Likewise.
25802 * term/gfxterm.c: Likewise.
25803 * term/i386/pc/serial.c: Likewise.
25804 * term/i386/pc/vga.c: Likewise.
25805 * term/ieee1275/ofconsole.c: Likewise.
25806 * term/terminfo.c: Likewise.
25807 * video/bitmap.c: Likewise.
25808 * video/efi_gop.c: Likewise.
25809 * video/efi_uga.c: Likewise.
25810 * video/fb/video_fb.c: Likewise.
25811 * video/i386/pc/vbe.c: Likewise.
25812 * video/readers/tga.c: Likewise.
25813 * video/video.c: Likewise.
25814
25815 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
25816
25817 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
25818 * commands/lspci.c: Likewise.
25819 * commands/probe.c: Likewise.
25820 * commands/xnu_uuid.c: Likewise.
25821 * conf/i386-coreboot.rmk: Likewise.
25822 * conf/i386-efi.rmk: Likewise.
25823 * conf/i386-ieee1275.rmk: Likewise.
25824 * conf/i386-pc.rmk: Likewise.
25825 * conf/powerpc-ieee1275.rmk: Likewise.
25826 * conf/sparc64-ieee1275.rmk: Likewise.
25827 * conf/x86_64-efi.rmk: Likewise.
25828 * fs/i386/pc/pxe.c: Likewise.
25829 * gettext/gettext.c: Likewise.
25830 * include/grub/efi/graphics_output.h: Likewise.
25831 * include/grub/i386/pc/memory.h: Likewise.
25832 * kern/env.c: Likewise.
25833 * kern/i386/qemu/startup.S: Likewise.
25834 * lib/i386/pc/biosnum.c: Likewise.
25835 * lib/i386/relocator.c: Likewise.
25836 * lib/i386/relocator_asm.S: Likewise.
25837 * lib/relocator.c: Likewise.
25838 * loader/i386/bsd.c: Likewise.
25839 * loader/i386/multiboot.c: Likewise.
25840 * loader/i386/pc/chainloader.c: Likewise.
25841 * loader/i386/xnu.c: Likewise.
25842 * loader/xnu.c: Likewise.
25843 * normal/main.c: Likewise.
25844 * normal/menu_text.c: Likewise.
25845 * util/getroot.c: Likewise.
25846 * util/grub-mkconfig_lib.in: Likewise.
25847 * util/grub.d/00_header.in: Likewise.
25848 * util/i386/pc/grub-mkimage.c: Likewise.
25849 * util/mkisofs/eltorito.c: Likewise.
25850 * util/mkisofs/exclude.h: Likewise.
25851 * util/mkisofs/hash.c: Likewise.
25852 * util/mkisofs/iso9660.h: Likewise.
25853 * util/mkisofs/joliet.c: Likewise.
25854 * util/mkisofs/mkisofs.c: Likewise.
25855 * util/mkisofs/mkisofs.h: Likewise.
25856 * util/mkisofs/multi.c: Likewise.
25857 * util/mkisofs/name.c: Likewise.
25858 * util/mkisofs/rock.c: Likewise.
25859 * util/mkisofs/tree.c: Likewise.
25860 * util/mkisofs/write.c: Likewise.
25861 * video/efi_gop.c: Likewise.
25862
25863 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
25864
25865 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
25866 size counting.
25867
25868 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25869
25870 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
25871 * genmk.rb (class SCRIPT): Modify the target file instead of source.
25872
25873 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25874
25875 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
25876 (GRUB_MOD_INIT(memrw)): Update help line.
25877
25878 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25879
25880 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
25881 Use grub_extcmd_t. All users updated.
25882 (options): New variable.
25883 (grub_cmd_read): Restructure for readability. Support "-v" option.
25884 (grub_cmd_write): Restructure for readability.
25885
25886 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25887
25888 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
25889
25890 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25891
25892 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
25893 with the actual contents of the correspondending make variable.
25894 * util/grub-mkrescue.in (pkglib_DATA): New variable.
25895 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
25896 specifying `*.lst' and `efiemu??.o'
25897
25898 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25899
25900 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
25901 after function name.
25902 Noticed by Rene Engelhard <rene@debian.org>.
25903
25904 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25905
25906 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
25907 (options): New variable.
25908 (iospace): Likewise.
25909 (grub_lspci_iter): List IO spaces if "-i" was given.
25910 (grub_cmd_lspci): Parse options.
25911 (GRUB_MOD_INIT(lspci)): Use extcmd.
25912 (GRUB_MOD_FINI(lspci)): Likewise.
25913
25914 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25915
25916 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
25917 `function' keyword.
25918 Patch by Tony Mancill <tmancill@debian.org>.
25919
25920 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25921
25922 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
25923 (grub_uhci_portstatus): Likewise.
25924 (grub_uhci_portstatus): Add necessary delay.
25925 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
25926
25927 2009-12-21 Carles Pina i Estany <carles@pina.cat>
25928
25929 * commands/acpi.c (options): Fix capitalizations and/or full stops.
25930 (GRUB_MOD_INIT): Likewise.
25931 * commands/boot.c (GRUB_MOD_INIT): Likewise.
25932 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
25933 * commands/echo.c (options): Fix capitalizations and/or full stops.
25934 * commands/efi/loadbios.c (enable_rom_area): Likewise.
25935 (enable_rom_area): Likewise.
25936 (GRUB_MOD_INIT): Likewise.
25937 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25938 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
25939 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25940 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
25941 * commands/hexdump.c (options): Likewise.
25942 * commands/i386/cpuid.c (options): Likewise.
25943 (GRUB_MOD_INIT): Likewise.
25944 * commands/i386/pc/drivemap.c (options): Likewise.
25945 (GRUB_MOD_INIT): Likewise.
25946 * commands/i386/pc/halt (options): Likewise.
25947 (GRUB_MOD_INIT): Likewise.
25948 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25949 * commands/i386/pc/pxecmd.c (options): Likewise.
25950 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
25951 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
25952 * commands/keystatus.c (options): Likewise.
25953 (GRUB_MOD_INIT): Likewise.
25954 * commands/loadenv.c (options): Likewise.
25955 * commands/ls.c (options): Likewise.
25956 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25957 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25958 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25959 * commands/parttool.c (helpmsg): Likewise.
25960 * commands/probe.c (options): Likewise.
25961 * commands/read.c (GRUB_MOD_INIT): Likewise.
25962 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
25963 * commands/search.c (options): Likewise.
25964 * commands/sleep.c (options): Likewise.
25965 * commands/test.c (GRUB_MOD_INIT): Likewise.
25966 * commands/true.c (GRUB_MOD_INIT): Likewise.
25967 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
25968 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
25969 * lib/arg.c (help_options): Likewise.
25970 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
25971 `$(XGETTEXT)'.
25972 * po/POTFILES: Add `commands/loadenv.c'.
25973
25974 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
25975
25976 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
25977 instead of specifying them explicit.
25978
25979 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25980
25981 * NEWS: Add grub-probe support for GNU/Hurd.
25982
25983 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25984
25985 * NEWS: gettext was added after 1.97.
25986
25987 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25988
25989 * util/mkisofs/msdos_partition.h: New file (based on
25990 include/grub/msdos_partition.h).
25991 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
25992 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
25993 (ld_options, main): Recognize --protective-msdos-label.
25994 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
25995 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
25996 (padblock_write): If `use_protective_msdos_label' is set, patch a
25997 protective DOS-style label in the output image.
25998
25999 * util/grub-mkrescue.in: Use --protective-msdos-label.
26000
26001 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26002
26003 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
26004 boot.
26005
26006 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26007
26008 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
26009 variables.
26010 (ld_options, main): Recognize `--embedded-boot'.
26011 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
26012 declarations.
26013 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
26014 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
26015 (padblock_write): Likewise. Rewrite to support embedded boot image.
26016
26017 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
26018 for BIOS-based disk boot instead of only ElTorito.
26019
26020 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26021
26022 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
26023 build (not needed for bootstrap).
26024
26025 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26026
26027 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
26028 from i386-pc build (not needed for bootstrap).
26029 Rewrite a pair of strings.
26030
26031 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26032
26033 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
26034
26035 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
26036
26037 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
26038
26039 2009-12-21 Andreas Born <futur.andy@googlemail.com>
26040
26041 * kern/env.c (grub_env_context_open): Mark exported variable for
26042 reexport.
26043
26044 2009-12-21 Andreas Born <futur.andy@googlemail.com>
26045
26046 * kern/env.c (grub_env_export): Create nonexistent variables before
26047 exporting.
26048
26049 2009-12-20 Carles Pina i Estany <carles@pina.cat>
26050
26051 * include/grub/auth.h: Include `<grub/i18n.h>'.
26052 (GRUB_GET_PASSWORD): Gettextizze string.
26053 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
26054 menu_text.c.
26055 (grub_utf8_to_ucs4_alloc): Fix indentation.
26056 (grub_print_ucs4): Likewise.
26057 (grub_getstringwidth): Likewise.
26058 (print_message_indented): New declaration.
26059 * normal/auth.c: Include `<grub/i18n.h>'.
26060 (grub_auth_check_authentication): Gettexttize string.
26061 * normal/cmdline.c: Include `<grub/i18n.h>'.
26062 (grub_cmdline_get): Gettextizze.
26063 * normal/color.c: Include `<grub/i18n.h>'.
26064 (grub_parse_color_name_pair): Gettexttize strings.
26065 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
26066 string (use `print_message_indented').
26067 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
26068 `include/grub/normal.h'.
26069 (print_message_indented): Renamed to ...
26070 (grub_print_message_indented): ... this. Remove `static' qualifer (now
26071 used in normal/main.c).
26072 (print_message): Use `grub_print_message_indented' instead of
26073 `print_message_indented'.
26074 (print_timeout): Likewise.
26075 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
26076 (grub_normal_print_device_info): Gettexttize strings.
26077 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
26078
26079 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26080
26081 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
26082 of arguments. Return number of tokens and not arguments. All users
26083 updated.
26084
26085 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26086
26087 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
26088 non-MSDOS paritions.
26089
26090 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
26091
26092 * include/grub/types.h (UNUSED): Removed since it conflicts with
26093 NetBSD headers. All users changed to direct __attribute__ ((unused)).
26094 Reported by Grégoire Sutre.
26095
26096 2009-12-19 Carles Pina i Estany <carles@pina.cat>
26097
26098 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
26099 (grub_print_ucs4_alloc): Likewise.
26100 (grub_getstringwidth): Likewise.
26101 * normal/main.c (grub_normal_init_page): Gettextize version string.
26102 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
26103 (getstringwidth): Renamed to ...
26104 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
26105 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
26106 (grub_print_ucs4): Remove `static' qualifer (now used in
26107 normal/main.c).
26108 * po/POTFILES: Add normal/main.c.
26109
26110 2009-12-19 Carles Pina i Estany <carles@pina.cat>
26111
26112 * normal/menu_text.c (STANDARD_MARGIN): New macro.
26113 (print_message_indented): Add `margin_left' and `margin_right'
26114 parameters.
26115 (print_message): Update `print_message_indented' calls. Adds '\n' to the
26116 strings.
26117 (print_timeout): Use `print_message_indented' to print the message.
26118 Deletes `second_stage' parameter.
26119 (run_menu): Update `print_timeout' calls.
26120
26121 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26122
26123 Fix console palette on OpenFirmware.
26124
26125 * term/ieee1275/ofconsole.c (MAX): Removed.
26126 (colors): Redone based on VGA palette.
26127 (grub_ofconsole_setcolor): Discard brightness bit since only 8
26128 colors are supported.
26129 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
26130
26131 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26132
26133 Fix potential EfiEmu double prepare.
26134
26135 * efiemu/main.c (prepared): New variable
26136 (grub_efiemu_unload): Set prepare to '0'.
26137 (grub_efiemu_prepare): Return if already prepared. Set prepared.
26138
26139 set_virtual_address_map support.
26140
26141 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
26142 prototype.
26143 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
26144 prototype.
26145 (grub_efiemu_crc32): Likewise.
26146 (grub_efiemu_crc64): Likewise.
26147 (grub_efiemu_set_virtual_address_map): Likewise.
26148 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
26149 New definition.
26150 (grub_autoefi_set_virtual_address_map): Likewise.
26151 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
26152 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
26153 Restructure flow to accomodate it.
26154 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
26155 (grub_efiemu_crc): Recompute CRC32.
26156 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
26157 (efiemu_ptv_relocated): ... this. Made global. All users updated.
26158 * efiemu/symbols.c (relocated_handle): New variable.
26159 (grub_efiemu_free_syms): Free relocated_handle.
26160 (grub_efiemu_alloc_syms): Allocate relocated_handle.
26161 (grub_efiemu_write_sym_markers): New function.
26162 (grub_efiemu_set_virtual_address_map): Likewise.
26163
26164 Newer XNU parameters.
26165
26166 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
26167 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
26168 (grub_xnu_fill_devicetree): New prototype.
26169 (grub_xnu_heap_real_start): New variable.
26170 * loader/xnu.c (get_name_ptr): New function.
26171 (grub_xnu_load_driver): Fill namelen and name.
26172
26173 64-bit xnu support.
26174
26175 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
26176 and 'loader/macho64.c'.
26177 * conf/i386-pc.rmk: Likewise.
26178 * conf/x86_64-efi.rmk: Likewise.
26179 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
26180 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
26181 * include/grub/macho.h (grub_macho_segment64): New structure.
26182 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
26183 (grub_macho_size32): ... to this.
26184 (grub_macho32_get_entry_point): Renamed from ...
26185 (grub_macho_get_entry_point32): ... to this.
26186 (grub_macho_contains_macho64): New prototype.
26187 (grub_macho_size64): Likewise.
26188 (grub_macho_get_entry_point64): Likewise.
26189 (grub_macho32_load): Renamed from ...
26190 (grub_macho_load32): ... to this.
26191 (grub_macho32_filesize): Renamed from ...
26192 (grub_macho_filesize32): ... to this.
26193 (grub_macho32_readfile): Renamed from ...
26194 (grub_macho_readfile32): ... to this.
26195 (grub_macho_filesize64): New prototype.
26196 (grub_macho_readfile64): Likewise.
26197 (grub_macho_parse32): Likewise.
26198 (grub_macho_parse64): Likewise.
26199 * loader/macho.c: Split into ...
26200 * loader/machoXX.c: ... and this. Replace 32 with XX.
26201 * loader/macho32.c: New file.
26202 * loader/macho64.c: Likewise.
26203 * loader/xnu.c (grub_xnu_is_64bit): New variable.
26204 (grub_cmd_xnu_kernel): Make 32-bit only.
26205 (grub_cmd_xnu_kernel64): New function.
26206 (grub_xnu_load_driver): Support Mach-O 64.
26207 (grub_cmd_xnu_mkext): Likewise.
26208 * util/grub.d/30_os-prober.in (osx_entry): New function.
26209 Generate entries for 64-bit boot too.
26210
26211 Eliminate ad-hoc tree format in XNU and EfiEmu.
26212
26213 * efiemu/main.c (grub_efiemu_prepare): Update comment.
26214 * efiemu/pnvram.c: Rewritten to use environment variables.
26215 All users updated.
26216
26217 Inline utf16_to_utf8.
26218
26219 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
26220 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
26221 All users updated.
26222 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
26223
26224 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
26225 * commands/usbtest.c (grub_usb_get_string): ... move here.
26226 (usb_print_str): Fix error handling.
26227 * include/grub/usb.h (grub_usb_get_string): Remove.
26228
26229 UTF-8 to UTF-16 transformation.
26230
26231 * conf/common.rmk (pkglib_MODULES): Add charset.mod
26232 (charset_mod_SOURCES): New variable.
26233 (charset_mod_CFLAGS): Likewise.
26234 (charset_mod_LDFLAGS): Likewise.
26235 * include/grub/utf.h: New file.
26236 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
26237
26238 Support for device properties.
26239
26240 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
26241 (grub_xnu_devprop_device_header): Likewise.
26242 (grub_xnu_devprop_device_descriptor): Likewise.
26243 (grub_xnu_devprop_add_device): New prototype.
26244 (grub_xnu_devprop_remove_device): Likewise.
26245 (grub_xnu_devprop_remove_property): Likewise.
26246 (grub_xnu_devprop_add_property_utf8): Likewise.
26247 (grub_xnu_devprop_add_property_utf16): Likewise.
26248 (grub_cpu_xnu_init): Likewise.
26249 (grub_cpu_xnu_fini): Likewise.
26250 (grub_cpu_xnu_unload): Likewise.
26251 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
26252 (property_descriptor): Likewise.
26253 (devices): New variable.
26254 (grub_xnu_devprop_remove_property): New function.
26255 (grub_xnu_devprop_add_device): Likewise.
26256 (grub_xnu_devprop_remove_device): Likewise.
26257 (grub_xnu_devprop_add_property): Likewise.
26258 (grub_xnu_devprop_add_property_utf8): Likewise.
26259 (grub_xnu_devprop_add_property_utf16): Likewise.
26260 (hextoval): Likewise.
26261 (grub_cpu_xnu_fill_devprop): Likewise.
26262 (grub_cmd_devprop_load): Likewise.
26263 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
26264 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
26265 (cmd_devprop_load): New variable.
26266 (grub_cpu_xnu_init): New function.
26267 (grub_cpu_xnu_fini): Likewise.
26268 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
26269 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
26270 (grub_cmd_xnu_devtree): Likewise.
26271 (hextoval): New function.
26272 (unescape): Likewise.
26273 (grub_xnu_fill_devicetree): Likewise.
26274
26275 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
26276 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
26277
26278 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26279
26280 Workaround for broken ATI VBE.
26281
26282 * video/i386/pc/vbe.c (last_set_mode): New variable.
26283 (grub_vbe_set_video_mode): Set 'last_set_mode'.
26284 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
26285 (grub_video_vbe_setup): Don't check for reserved flag.
26286
26287 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
26288
26289 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
26290 the `find' command.
26291
26292 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
26293
26294 UUID support for HFS.
26295
26296 * fs/hfs.c (grub_hfs_uuid): New function.
26297 (grub_hfs_fs): New value .uuid.
26298 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
26299
26300 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
26301
26302 Fix a segfault with parsing unknown long options.
26303
26304 * util/grub-mkrelpath.c (options): Zero terminate it.
26305
26306 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26307
26308 * include/grub/misc.h (grub_puts): New declaration.
26309 (grub_puts_): Likewise.
26310 * kern/misc.c (grub_puts): New definition.
26311 (grub_puts_): Likewise.
26312
26313 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26314
26315 * util/grub-probe.c (probe): Improve error message.
26316
26317 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26318
26319 * loader/i386/multiboot_elfxx.c
26320 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
26321 initialization.
26322
26323 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26324
26325 Relocator framework
26326
26327 * loader/i386/xnu_helper.S: Removed. All users updated.
26328 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
26329 (relocator_mod_SOURCES): New variable.
26330 (relocator_mod_CFLAGS): Likewise.
26331 (relocator_mod_LDFLAGS): Likewise.
26332 (relocator_mod_ASFLAGS): Likewise.
26333 * conf/x86_64.rmk: Likewise.
26334 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
26335 (grub_multiboot_payload_entry_offset): Likewise.
26336 (grub_multiboot_forward_relocator): Likewise.
26337 (grub_multiboot_forward_relocator_end): Likewise.
26338 (grub_multiboot_backward_relocator): Likewise.
26339 (grub_multiboot_backward_relocator_end): Likewise.
26340 (grub_multiboot_payload_eip): New variable.
26341 (grub_multiboot_payload_orig): Likewise.
26342 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
26343 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
26344 * include/grub/i386/memory.h
26345 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
26346 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
26347 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
26348 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
26349 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
26350 * include/grub/i386/relocator.h: New file.
26351 * include/grub/x86_64/relocator.h: Likewise.
26352 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
26353 (XNU_RELOCATOR): New macro.
26354 (grub_xnu_launcher_start): Remove.
26355 (grub_xnu_launcher_end): Likewise.
26356 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
26357 (grub_xnu_heap_real_start): Remove.
26358 (grub_xnu_heap_start): Change to void *. All users updated.
26359 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
26360 * lib/i386/relocator.c: New file.
26361 * lib/i386/relocator_asm.S: Likewise.
26362 * lib/i386/relocator_backward.S: Likewise.
26363 * lib/mips/relocator.c: Likewise.
26364 * lib/mips/relocator_asm.S: Likewise.
26365 * lib/relocator.c: Likewise.
26366 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
26367 (entry): Removed.
26368 (playground): Likewise.
26369 (grub_multiboot_payload_orig): New variable.
26370 (grub_multiboot_payload_dest): Likewise.
26371 (grub_multiboot_payload_size): Likewise.
26372 (grub_multiboot_payload_eip): Likewise.
26373 (grub_multiboot_payload_esp): Likewise.
26374 (grub_multiboot_boot): Use grub_relocator32_boot.
26375 (grub_multiboot_unload): Free relocators.
26376 (grub_multiboot): Setup stack. Use relocators.
26377 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
26378 (grub_multiboot_load_elfXX): Use relocators.
26379 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
26380 (grub_multiboot_payload_size): Likewise.
26381 (grub_multiboot_payload_dest): Likewise.
26382 (grub_multiboot_payload_entry_offset): Likewise.
26383 (grub_multiboot_forward_relocator): Likewise.
26384 (grub_multiboot_backward_relocator): Likewise.
26385 (grub_multiboot_real_boot): Likewise.
26386 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
26387 (grub_xnu_entry_point): Likewise.
26388 (grub_xnu_arg1): Likewise.
26389 (grub_xnu_stack): Likewise.
26390 (grub_xnu_launch): Removed.
26391 (grub_xnu_boot_resume): New function.
26392 (grub_xnu_boot): Use relocators.
26393 * loader/i386/xnu_helper.S: Removed.
26394 * loader/xnu.c (grub_xnu_heap_start): New variable.
26395 (grub_xnu_heap_size): Likewise.
26396 (grub_xnu_heap_malloc): Use relocators.
26397 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
26398
26399 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26400
26401 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
26402 anything.
26403
26404 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26405
26406 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
26407 GRUB_ERR_NONE before calling grub_env_set.
26408
26409 2009-12-12 Robert Millan <rmh@aybabtu.com>
26410
26411 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
26412 * genmk.rb (video): New variable.
26413 (CLEANFILES, VIDEOFILES): Add #{video}.
26414 (#{video}): New target rule.
26415 * genvideolist.sh: New file.
26416 * Makefile.in (pkglib_DATA): Add video.lst.
26417 (video.lst): New target rule.
26418 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
26419 `video.lst'.
26420 * util/grub.d/30_os-prober.in: Replace `vbe' with
26421 ${GRUB_VIDEO_BACKEND}.
26422
26423 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
26424
26425 * THANKS: Add David Miller.
26426
26427 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
26428
26429 libpciaccess support.
26430
26431 * Makefile.in (LIBPCIACCESS): New variable.
26432 (enable_grub_emu_pci): Likewise.
26433 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
26434 util/pci.c and commands/lspci.c.
26435 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
26436 * configure.ac (grub-emu-pci): New option.
26437 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
26438 (grub_pci_device_unmap_range): Likewise.
26439 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
26440 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
26441 (grub_pci_address_t) [!GRUB_UTIL]: New type.
26442 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
26443 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
26444 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
26445 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
26446 * include/grub/pciutils.h: New file.
26447 * util/pci.c: Likewise.
26448
26449 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
26450
26451 * util/misc.c: Don't include <errno.h> twice.
26452
26453 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
26454
26455 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
26456 name in an error message.
26457 (grub_biosdisk_rw): Likewise.
26458
26459 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26460
26461 Eliminate NTFS 4Gib barrier.
26462
26463 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
26464 (read_run_data): Likewise.
26465 (grub_ntfs_read_run_list): Likewise.
26466 (grub_ntfs_read_block): Likewise.
26467 (grub_ntfs_iterate_dir): Likewise.
26468 (read_mft): Likewise.
26469 (read_data): Likewise.
26470 Use COM_LOG_LEN.
26471 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
26472 to avoid 64-bit division
26473 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
26474 (grub_ntfs_rlst): Use grub_disk_addr_t.
26475
26476 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26477
26478 Eliminate grub-fstest 4Gib barrier.
26479
26480 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
26481 (read_file): Fix error reporting.
26482
26483 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26484
26485 Eliminate hexdump 4Gib barrier.
26486
26487 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
26488 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
26489
26490 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26491
26492 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
26493 Fixes amarsh bug.
26494
26495 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
26496
26497 Remove miscellaneous files in distclean target.
26498
26499 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
26500
26501 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
26502
26503 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
26504 if they're already set. This resolves the conflict between my
26505 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
26506 fixing the --grub-probe option again.
26507 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
26508 change on 2009-10-06, so that we now once again source
26509 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26510
26511 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
26512
26513 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
26514 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
26515 `util/devicemap.c'.
26516
26517 2009-12-08 Carles Pina i Estany <carles@pina.cat>
26518
26519 * include/grub/misc.h (grub_printf_): New declaration.
26520 * kern/misc.c (grub_printf_): New definition.
26521 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
26522 instead of `grub_printf' and `_'.
26523 * normal/menu_entry.c (store_completion): Likewise.
26524 (run): Likewise.
26525 (grub_menu_entry_run): Likewise.
26526 * normal/menu_text.c (grub_wait_after_message): Likewise.
26527 (notify_booting): Likewise.
26528 (notify_fallback): Likewise.
26529 (notify_execution_failure): Likewise.
26530
26531 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
26532
26533 * configure.ac: Check for vasprintf.
26534 * util/misc.c (asprintf): Move allocation from here ...
26535 (vasprintf): ... to here. New function.
26536 (xasprintf): New function.
26537 * include/grub/util/misc.h (vasprintf, xasprintf): Add
26538 prototypes.
26539 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26540 * util/grub-mkfont.c (write_font): Likewise.
26541 * util/grub-probe.c (probe): Likewise.
26542 * util/hostdisk.c (make_device_name): Likewise.
26543
26544 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
26545
26546 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
26547 anything even prefixed with 'cdrom' as a cdrom.
26548
26549 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
26550
26551 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
26552 mount points.
26553
26554 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26555
26556 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
26557 grub_gettext_msg_list.
26558 (grub_gettext_gettranslation_from_position): Return const char *
26559 and not char *.
26560 (grub_gettext_translate): Add the translated strings into a list,
26561 returns from the list if existing there.
26562 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
26563 (grub_gettext_delete_list): Delete the list.
26564 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
26565 lang environment variable is changed.
26566 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
26567
26568 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26569
26570 Rename kernel.mod to kernel.img.
26571
26572 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
26573 (kernel_mod_EXPORTS): Rename to ...
26574 (kernel_img_EXPORTS): ... this.
26575 (kernel_mod_SOURCES): Rename to ...
26576 (kernel_img_SOURCES): ... this.
26577 (kernel_mod_HEADERS): Rename to ...
26578 (kernel_img_HEADERS): ... this. All users updated.
26579 (kernel_mod_CFLAGS): Rename to ...
26580 (kernel_img_CFLAGS): ... this.
26581 (kernel_mod_ASFLAGS): Rename to ...
26582 (kernel_img_ASFLAGS): ... this.
26583 (kernel_mod_LDFLAGS): Rename to ...
26584 (kernel_img_LDFLAGS): ... this.
26585 * conf/x86_64-efi.rmk: Likewise.
26586 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
26587 (read_kernel_image): ... this. All users updated.
26588 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
26589
26590 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26591
26592 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
26593 (print_spaces): New function.
26594 (grub_print_ucs4): New function.
26595 (getstringwidth): New function.
26596 (print_message_indented): New function.
26597 (print_message): Gettexttize strings using print_message_indented.
26598 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
26599 width.
26600 (get_entry_number): Gettextize and uses dynamic terminal width.
26601 (notify_booting, notify_fallback, notify_execution_failure):
26602 Gettextize.
26603 * normal/menu_entry.c (store_completion): Cleanup the gettextized
26604 string.
26605 (run): Likewise.
26606 (grub_menu_entry_run): Likewise.
26607 * PO/POTFILES: Add normal/menu_entry.c.
26608
26609 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26610
26611 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
26612
26613 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26614
26615 * util/grub-install.in: Install gettext .mo files.
26616 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
26617
26618 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26619
26620 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
26621 grub_dprintf.
26622
26623 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
26624
26625 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
26626 non-firmware-dependant one in realmode.S takes precedence.
26627
26628 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
26629
26630 * commands/halt.c: Replace misc arch-specific headers with
26631 `<grub/misc.h>'.
26632 * commands/reboot.c: Likewise.
26633 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
26634 `<grub/misc.h>'.
26635 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
26636 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
26637 (kernel_img_SOURCES): ... to here.
26638
26639 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
26640 * include/grub/i386/pc/init.h: Likewise.
26641 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
26642 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26643
26644 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
26645
26646 * include/grub/i386/halt.h: Remove.
26647 * include/grub/i386/reboot.h: Likewise.
26648
26649 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
26650
26651 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
26652
26653 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
26654 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
26655 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
26656 "progname.h"
26657 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26658 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26659 (usage): Add missing comma in printf.
26660
26661 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
26662
26663 Use the same reboot approach on i386 coreboot and qemu as we do on
26664 BIOS.
26665
26666 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
26667 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
26668 * kern/i386/reboot.c: Remove.
26669 * include/grub/i386/reboot.h (grub_reboot): Export function.
26670 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
26671 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
26672 0xf000:0xfff0 instead of 0xffff:0x0000.
26673 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
26674 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
26675
26676 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
26677
26678 Fix $srcdir != $objdir build.
26679
26680 * Makefile.in (po/%.po): Rewrite as ...
26681 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
26682
26683 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
26684
26685 Fix GNU/Hurd grub-install crash.
26686 * util/grub-probe.c (probe): Try to access `path' only when it is not
26687 NULL.
26688
26689 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26690
26691 Correct module naming.
26692
26693 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26694 (GRUB_MOD_INIT(efi_uga)): ... to this
26695 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26696 (GRUB_MOD_FINI(efi_uga)): ... to this
26697 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26698 (GRUB_MOD_INIT(efi_gop)): ... to this
26699 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26700 (GRUB_MOD_FINI(efi_gop)): ... to this
26701
26702 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
26703
26704 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
26705 translatable.
26706 (usage): Translate `arg' strings using gettext().
26707 Thanks to Jordi Mallach for the suggestion.
26708
26709 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26710
26711 GOP support. Based on patch from Bean
26712 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26713
26714 * video/efi_gop.c: New file.
26715 * include/grub/efi/graphics_output.h: Likewise.
26716 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
26717 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26718 variables.
26719 * conf/x86_64-efi.rmk: Likewise.
26720
26721 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26722
26723 Rename efi_fb to efi_uga.
26724
26725 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26726 'efi_uga.mod'.
26727 (efi_fb_mod_SOURCES): Rename this ...
26728 (efi_uga_mod_SOURCES): ... to this.
26729 (efi_fb_mod_CFLAGS): Rename this ...
26730 (efi_uga_mod_CFLAGS): ... to this.
26731 (efi_fb_mod_LDFLAGS): Rename this ...
26732 (efi_uga_mod_LDFLAGS): ... to this.
26733 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26734 'efi_uga.mod'.
26735 (efi_fb_mod_SOURCES): Rename this ...
26736 (efi_uga_mod_SOURCES): ... to this.
26737 (efi_fb_mod_CFLAGS): Rename this ...
26738 (efi_uga_mod_CFLAGS): ... to this.
26739 (efi_fb_mod_LDFLAGS): Rename this ...
26740 (efi_uga_mod_LDFLAGS): ... to this.
26741 * video/efi_fb.c: Move this ...
26742 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
26743
26744 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26745
26746 * po/README: New file. Explain our PO file workflow.
26747
26748 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26749
26750 * po/ChangeLog: Remove. Move relevant entries back to ...
26751 * ChangeLog: ... here.
26752 * po/ca.po: Remove (now handled by TLP).
26753 * po/id.po: Likewise.
26754 * po/zh_CN.po: Likewise.
26755 * Makefile.in (LINGUAS): Initialize in a way that supports
26756 empty set.
26757
26758 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26759
26760 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
26761 reliing on po/LINGUAS.
26762 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
26763 (po/%.po): ... this.
26764
26765 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26766
26767 * util/i386/efi/grub-mkimage.c: Include "progname.h".
26768 (main): Use `program_name' instead of nonexistent `progname'.
26769
26770 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26771
26772 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26773 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
26774
26775 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26776
26777 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
26778 commit.
26779 * conf/i386-efi.rmk: Likewise.
26780 * conf/i386-ieee1275.rmk: Likewise.
26781 * conf/powerpc-ieee1275.rmk: Likewise.
26782 * conf/sparc64-ieee1275.rmk: Likewise.
26783 * conf/x86_64-efi.rmk: Likewise.
26784
26785 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26786
26787 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
26788
26789 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26790
26791 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
26792
26793 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26794
26795 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
26796 (grub_mkdevicemap_SOURCES): New variable.
26797 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
26798 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
26799 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
26800 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
26801 (grub_mkdevicemap_SOURCES): Remove.
26802 * conf/i386-efi.rmk: Likewise.
26803 * conf/i386-ieee1275.rmk: Likewise.
26804 * conf/i386-pc.rmk: Likewise.
26805 * conf/powerpc-ieee1275.rmk: Likewise.
26806 * conf/sparc64-ieee1275.rmk: Likewise.
26807 * conf/x86_64-efi.rmk: Likewise.
26808 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
26809 (usage): Fix strings to use `program_name'.
26810 (main): Initialize gettext.
26811 * util/grub-editenv.c: Likewise.
26812 * util/grub-emu.c: Likewise.
26813 * util/grub-fstest.c: Likewise.
26814 * util/grub-mkdevicemap.c: Likewise.
26815 * util/grub-mkfont.c: Likewise.
26816 * util/grub-mkrelpath.c: Likewise.
26817 * util/grub-pe2elf.c: Likewise.
26818 * util/grub-probe.c: Likewise.
26819 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
26820 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26821 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26822
26823 * util/misc.c: Include `"progname.h"'.
26824 (progname): Remove variable.
26825 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
26826
26827 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26828
26829 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
26830 printf and print a newline after the menuentry header line.
26831 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26832
26833 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26834
26835 autoconf >= 2.60 support $(localedir).
26836
26837 * INSTALL: Note that autoconf 2.60 is required.
26838 * configure.ac (AC_PREREQ): Bump to 2.60.
26839 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
26840 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
26841
26842 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
26843
26844 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
26845 aclocal is run.
26846
26847 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26848
26849 * normal/main.c (grub_normal_read_line): Fix off-by-one
26850 buffer overflow.
26851
26852 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26853
26854 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
26855 "parser.grub" in grub_command_execute() call.
26856
26857 2009-11-24 Carles Pina i Estany <carles@pina.cat>
26858
26859 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
26860 * conf/i386-efi.rmk: Likewise.
26861 * conf/i386-ieee1275.rmk: Likewise.
26862 * conf/i386-pc.rmk: Likewise.
26863 * conf/powerpc-ieee1275.rmk: Likewise.
26864 * conf/sparc64-ieee1275.rmk: Likewise.
26865 * conf/x86_64-efi.rmk: Likewise.
26866 * gettext/gettex.c: Include <grub/i18n.h>.
26867 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
26868 here ...
26869 * include/grub/i18n.h: ... to here
26870 * include/grub/i18n.h: ... to here.
26871 * kern/misc.c: Include <grub/i18n.h>
26872 (grub_gettext_dummy): Move above user.
26873
26874 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26875
26876 * util/Makefile.in (install-local): Convert a `for' into a normal
26877 shell expansion.
26878
26879 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
26880
26881 * autogen.sh: Add automake call.
26882 * config.guess: Remove.
26883 * config.sub: Likewise.
26884 * install-sh: Likewise.
26885
26886 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26887
26888 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
26889
26890 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26891
26892 * util/Makefile.in (install-local): Convert a make `$(foreach)'
26893 function to a normal shell `for'.
26894
26895 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26896
26897 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26898
26899 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26900
26901 * util/grub-mkrelpath.c: New file.
26902 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
26903 (grub_mkrelpath_SOURCES): New variable.
26904 * include/grub/util/misc.h: New function prototype.
26905 * util/misc.c (make_system_path_relative_to_its_root): New function.
26906
26907 * util/grub-mkconfig_lib.in (bindir): New variable.
26908 (grub_mkrelpath): Likewise.
26909 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
26910
26911 * util/probe.c (probe): Make the file path relative to its root.
26912 Change a info message to use the GRUB path. Enable again the
26913 check if we can read the file with GRUB facilities.
26914
26915 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
26916 to its root.
26917
26918 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26919
26920 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
26921 platform.
26922
26923 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26924
26925 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
26926 strncmp().
26927
26928 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26929
26930 * util/getroot.c (grub_util_is_dmraid): New function.
26931 (grub_util_get_dev_abstraction): Treat dmraid and multipath
26932 devices as normal ones, not as LVM.
26933
26934 2009-11-23 Carles Pina i Estany <carles@pina.cat>
26935
26936 * conf/common.rmk: Add grub-gettext_lib target and updates
26937 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
26938 LDFLAGS.
26939 * gettext/gettext.c: New file. (Reads mo files).
26940 * include/grub/file.h (grub_file_pread): New prototype.
26941 * include/grub/i18n.h (_): New prototype.
26942 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
26943 prototypes.
26944 * kern/misc.c (grub_gettext_dummy): New function.
26945 * normal/menu_text.c: Include <grub/i18n.h>.
26946 * normal/menu_text.c (print_timeout): Gettexttize string.
26947 * normal/menu_text.c (print_message): Gettexttize string.
26948 * po/POTFILES: Add `normal/menu_text.c'.
26949 * po/ca.po: Add new translations.
26950 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
26951 gettext module and defines locale_dir and lang in grub.cfg.
26952 * NEWS: Add gettext support.
26953
26954 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26955
26956 * util/hostdisk.c: Include `<grub/i18n.h>'.
26957 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
26958 (make_device_name): Rewrite using asprintf.
26959 (convert_system_partition_to_system_disk): Replace 0 with NULL.
26960 (find_system_device): If a device is not found, generate one just
26961 by reusing the OS path name.
26962 (read_device_map): Make it permissible for device.map not to exist.
26963
26964 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26965
26966 * script/sh/execute.c: Move from here ...
26967 * script/execute.c: ... to here. Update all users.
26968 * script/sh/function.c: Move from here ...
26969 * script/function.c: ... to here. Update all users.
26970 * script/sh/lexer.c: Move from here ...
26971 * script/lexer.c: ... to here. Update all users.
26972 * script/sh/main.c: Move from here ...
26973 * script/main.c: ... to here. Update all users.
26974 * script/sh/parser.y: Move from here ...
26975 * script/parser.y: ... to here. Update all users.
26976 * script/sh/script.c: Move from here ...
26977 * script/script.c: ... to here. Update all users.
26978
26979 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26980
26981 * configure.ac: Detect all `emu' platforms. Define
26982 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
26983 --enable-grub-emu logic. Disable include/grub/machine
26984 symlink on `emu' platforms.
26985
26986 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
26987 * gensymlist.sh.in: Likewise.
26988
26989 * include/grub/i386/coreboot/machine.h: Remove file.
26990 * include/grub/i386/efi/machine.h: Likewise.
26991 * include/grub/i386/ieee1275/machine.h: Likewise.
26992 * include/grub/i386/pc/machine.h: Likewise.
26993 * include/grub/i386/qemu/machine.h: Likewise.
26994 * include/grub/powerpc/ieee1275/machine.h: Likewise.
26995 * include/grub/sparc64/ieee1275/machine.h: Likewise.
26996 * include/grub/x86_64/efi/machine.h: Likewise.
26997
26998 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
26999 * commands/halt.c: Likewise.
27000 * commands/reboot.c: Likewise.
27001 * include/grub/autoefi.h: Likewise.
27002 * include/grub/i386/at_keyboard.h: Likewise.
27003 * include/grub/i386/kernel.h: Likewise.
27004 * include/grub/i386/loader.h: Likewise.
27005 * include/grub/i386/pc/memory.h: Likewise.
27006 * kern/dl.c: Likewise.
27007 * kern/i386/coreboot/init.c: Likewise.
27008 * loader/i386/bsd.c: Likewise.
27009 * loader/i386/linux.c: Likewise.
27010 * loader/multiboot_loader.c: Likewise.
27011 * term/i386/pc/serial.c: Likewise.
27012 * term/usb_keyboard.c: Likewise.
27013
27014 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
27015 `<grub/machine/machine.h>'
27016 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
27017 * util/misc.c: Remove `<grub/machine/machine.h>' and
27018 `<grub/machine/time.h>'.
27019
27020 * Makefile.in (enable_grub_emu): Remove variable.
27021 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
27022
27023 * conf/any-emu.rmk: New file.
27024 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
27025 (grub_emu_init.c): Move from here ...
27026 * conf/any-emu.rmk: ... to here.
27027
27028 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
27029 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
27030 * conf/any-emu.rmk: ... to here.
27031
27032 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27033
27034 * include/grub/parser.h (grub_parser_register): Document need
27035 of `name' parameter.
27036 * normal/main.c (grub_normal_read_line): Simplify prompt string.
27037 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
27038 "sh" to "grub".
27039
27040 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27041
27042 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
27043 `$(XGETTEXT)'.
27044 * include/grub/i18n.h (N_): New macro.
27045 * util/mkisofs/mkisofs.h: Likewise.
27046 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
27047 around N_().
27048 (usage): Use gettext() to translate help strings when printing them.
27049
27050 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27051
27052 Based on patch from Bean
27053 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
27054
27055 * video/efi_fb.c: New file.
27056 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
27057 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
27058 variables.
27059 * conf/x86_64-efi.rmk: Likewise.
27060
27061 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
27062
27063 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
27064 * util/i386/pc/grub-setup.c: Likewise.
27065
27066 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
27067
27068 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
27069 <hurd/fs.h>
27070 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
27071 file_get_storage_info to implement grub_guess_root_device.
27072
27073 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
27074
27075 * Makefile.in (target): Use make's builtin $(shell) function
27076 instead of calling directly $(SHELL) to create the locale directories,
27077 inside the $(foreach) function.
27078
27079 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
27080
27081 * util/grub-mkrescue.in: Print an error and usage if output option
27082 has not been given.
27083
27084 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
27085
27086 Patch from Loïc Minier <loic.minier@ubuntu.com>.
27087 * util/grub.d/30_os-prober.in: Cope with Linux entries where
27088 root and /boot are on different devices.
27089
27090 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27091
27092 Fix build for srcdir != objdir.
27093
27094 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
27095 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
27096 $(srcdir).
27097 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
27098 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
27099 reference for input.
27100
27101 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27102
27103 * util/grub-mkrescue.in: Use source directory direcly (without copiing
27104 or hardlinking it). Remove -J option, Joliet is not compatible with
27105 multiple source directories.
27106
27107 2009-11-21 Carles Pina i Estany <carles@pina.cat>
27108 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27109
27110 * util/grub-mkrescue.in: Recognize `--override-directory' option.
27111 (process_input_dir): New function. Process an arbitrary input
27112 directory.
27113 Misc adjustments to support both "override mode" and system-wide mode.
27114
27115 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
27116
27117 * configure.ac (UNIFONT_BDF): Rename to ...
27118 (FONT_SOURCE): ... this. Update all users.
27119
27120 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
27121
27122 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
27123 to the list of unifont files to look for.
27124
27125 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27126
27127 Patch from Joe Auricchio <jauricchio@gmail.com>
27128 * commands/minicmd.c (grub_mini_cmd_clear): New function.
27129 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
27130 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
27131
27132 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
27133
27134 * Makefile.in (install-local): Add a missing backslash.
27135
27136 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
27137
27138 * include/grub/x86_64/io.h: New file.
27139
27140 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27141
27142 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
27143 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
27144 Include `"progname.h"'.
27145 (main): Initialize gettext.
27146 * util/i386/pc/grub-setup.c: Gettexttize.
27147 * util/i386/pc/grub-mkimage.c: Likewise.
27148
27149 * Makefile.in (po/*.po): Redefine as ...
27150 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
27151
27152 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
27153
27154 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27155
27156 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
27157 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
27158 (program_name): Remove.
27159 (main): Initialize gettext support.
27160 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
27161 Include `<libintl.h>'.
27162 (_): New macro.
27163
27164 * util/mkisofs/eltorito.c: Gettexttize.
27165 * util/mkisofs/joliet.c: Likewise.
27166 * util/mkisofs/mkisofs.c: Likewise.
27167 * util/mkisofs/multi.c: Likewise.
27168 * util/mkisofs/rock.c: Likewise.
27169 * util/mkisofs/tree.c: Likewise.
27170 * util/mkisofs/write.c: Likewise.
27171
27172 * po/POTFILES: Update with new files.
27173
27174 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27175
27176 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
27177 * util/mkisofs/iso9660.h: Likewise.
27178 * util/mkisofs/joliet.c: Likewise.
27179 * util/mkisofs/mkisofs.c: Likewise.
27180 * util/mkisofs/mkisofs.h: Likewise.
27181 * util/mkisofs/rock.c: Likewise.
27182 * util/mkisofs/tree.c: Likewise.
27183 * util/mkisofs/write.c: Likewise.
27184
27185 * util/mkisofs/eltorito.c (rcsid): Remove.
27186 * util/mkisofs/hash.c: Likewise.
27187 * util/mkisofs/joliet.c: Likewise.
27188 * util/mkisofs/name.c: Likewise.
27189 * util/mkisofs/rock.c: Likewise.
27190 * util/mkisofs/tree.c: Likewise.
27191 * util/mkisofs/write.c: Likewise.
27192
27193 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27194
27195 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
27196 instead of static allocation.
27197 * util/mkisofs/match.h: Likewise.
27198
27199 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27200
27201 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
27202 and `util/grub.d/10_linux.in'.
27203 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
27204 translatable Shell files.
27205
27206 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27207
27208 * Makefile.in ($(srcdir)/aclocal.m4): New target.
27209
27210 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27211
27212 * INSTALL: Document Automake is needed for bootstrap.
27213 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
27214 * util/grub.d/10_kfreebsd.in (bindir): New variable.
27215 Add gettext initialization.
27216 (kfreebsd_entry): Make menuentry output translatable.
27217
27218 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27219
27220 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
27221 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
27222 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
27223 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
27224 (LINGUAS): Auto-generate using `po/LINGUAS'.
27225 * po/LINGUAS: New file.
27226
27227 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27228
27229 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
27230 other things).
27231 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
27232 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
27233 bindtextdomain() calls for gettext initialization.
27234
27235 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27236
27237 * gnulib/progname.c: New file (imported from Gnulib).
27238 * gnulib/progname.h: Likewise.
27239 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27240 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
27241 (usage): Replace `progname' with `program_name'.
27242 (main): Use set_program_name() for program name initialization.
27243
27244 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27245
27246 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
27247 from here ...
27248 * Makefile.in (CPPFLAGS): ... to here.
27249
27250 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27251
27252 * aclocal.m4: Move from here ...
27253 * acinclude.m4: ... to here.
27254 * autogen.sh: Add call to `aclocal'.
27255 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
27256
27257 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27258
27259 * Makefile.in (CLEANFILES): Add `po/*.mo'.
27260 (LINGUAS): New variable.
27261 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
27262 (install-local): Install MO files.
27263 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
27264 * include/grub/i18n.h: New file.
27265 * po/POTFILES: New file.
27266 * po/ca.po: New file.
27267 * util/grub.d/10_linux.in (bindir): New variable.
27268 Add gettext initialization.
27269 (linux_entry): Make menuentry output translatable.
27270 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
27271 (usage): Make --help output translatable.
27272 (main): Initialize gettext.
27273
27274 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27275
27276 * import_gcry.py: New file (written by Vladimir with minor
27277 adjustments).
27278 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
27279 ciphers.
27280 * INSTALL: Document that Python is required for bootstrap.
27281
27282 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27283
27284 Import ciphers from libgcrypt 1.4.4.
27285
27286 * lib/libgcrypt/cipher/ChangeLog
27287 * lib/libgcrypt/cipher/ac.c
27288 * lib/libgcrypt/cipher/arcfour.c
27289 * lib/libgcrypt/cipher/bithelp.h
27290 * lib/libgcrypt/cipher/blowfish.c
27291 * lib/libgcrypt/cipher/camellia-glue.c
27292 * lib/libgcrypt/cipher/camellia.c
27293 * lib/libgcrypt/cipher/camellia.h
27294 * lib/libgcrypt/cipher/cast5.c
27295 * lib/libgcrypt/cipher/cipher.c
27296 * lib/libgcrypt/cipher/crc.c
27297 * lib/libgcrypt/cipher/des.c
27298 * lib/libgcrypt/cipher/dsa.c
27299 * lib/libgcrypt/cipher/ecc.c
27300 * lib/libgcrypt/cipher/elgamal.c
27301 * lib/libgcrypt/cipher/hash-common.c
27302 * lib/libgcrypt/cipher/hash-common.h
27303 * lib/libgcrypt/cipher/hmac-tests.c
27304 * lib/libgcrypt/cipher/md.c
27305 * lib/libgcrypt/cipher/md4.c
27306 * lib/libgcrypt/cipher/md5.c
27307 * lib/libgcrypt/cipher/primegen.c
27308 * lib/libgcrypt/cipher/pubkey.c
27309 * lib/libgcrypt/cipher/rfc2268.c
27310 * lib/libgcrypt/cipher/rijndael-tables.h
27311 * lib/libgcrypt/cipher/rijndael.c
27312 * lib/libgcrypt/cipher/rmd.h
27313 * lib/libgcrypt/cipher/rmd160.c
27314 * lib/libgcrypt/cipher/rsa.c
27315 * lib/libgcrypt/cipher/seed.c
27316 * lib/libgcrypt/cipher/serpent.c
27317 * lib/libgcrypt/cipher/sha1.c
27318 * lib/libgcrypt/cipher/sha256.c
27319 * lib/libgcrypt/cipher/sha512.c
27320 * lib/libgcrypt/cipher/tiger.c
27321 * lib/libgcrypt/cipher/twofish.c
27322 * lib/libgcrypt/cipher/whirlpool.c
27323
27324 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27325
27326 Fix build for systems without error().
27327
27328 * gnulib/error.c: New file (imported from Gnulib).
27329 * gnulib/error.h: Likewise.
27330 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
27331 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
27332 (this variable is now used by error()).
27333
27334 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27335
27336 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
27337 instead of relying that char is signed.
27338
27339 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
27340
27341 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
27342 blocksize different from specified.
27343 (grub_pxefs_read): Likewise.
27344
27345 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27346
27347 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
27348
27349 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
27350 (grub_ata_readwrite): Likewise. Update 2 format strings.
27351 (grub_atapi_read): Likewise.
27352
27353 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
27354 * conf/i386.rmk (pkglib_MODULES): ... to here ...
27355 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
27356 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
27357 (ata_mod_LDFLAGS): Move from here ...
27358 * conf/i386.rmk: ... to here ...
27359 * conf/x86_64-efi.rmk: ... and here.
27360 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
27361 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
27362
27363 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27364
27365 Relicense multiboot.h, with RMS' blessing.
27366
27367 * include/multiboot.h: Change to X11 license.
27368
27369 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
27370
27371 Support --version in grub-mkisofs.
27372
27373 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
27374 (OPTION_VERSION): New macro.
27375 (ld_options): Recognize --version.
27376 (usage): Move `program_name' from here ...
27377 (program_name): ... to here. Add `static' qualifier.
27378 (main): Recognize `OPTION_VERSION'.
27379
27380 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
27381
27382 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
27383 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
27384
27385 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27386
27387 Fix help2man generation for mkisofs.
27388
27389 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
27390 (usage): Send output to stdout (rather than stderr).
27391
27392 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27393
27394 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
27395 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27396 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
27397 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27398 (bin_SCRIPTS): Add `grub-mkfloppy'.
27399 (grub_mkfloppy_SOURCES): New variable.
27400
27401 * util/grub-mkrescue.in: New file.
27402 * util/i386/pc/grub-mkfloppy.in: New file.
27403
27404 * util/i386/coreboot/grub-mkrescue.in: Remove.
27405 * util/i386/pc/grub-mkrescue.in: Remove.
27406
27407 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27408
27409 * include/grub/multiboot.h (struct grub_multiboot_header): Move
27410 from here ...
27411 * include/multiboot.h (struct multiboot_header): ... to here. Update
27412 all users.
27413 * include/grub/multiboot.h (struct grub_multiboot_info): Move
27414 from here ...
27415 * include/multiboot.h (struct multiboot_info): ... to here. Update
27416 all users.
27417 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
27418 from here ...
27419 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
27420 Update all users.
27421 * include/grub/multiboot.h (struct grub_mod_list): Move
27422 from here ...
27423 * include/multiboot.h (struct multiboot_mod_list): ... to here.
27424 Update all users.
27425
27426 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27427
27428 * include/multiboot2.h (multiboot_word): Rename from this ...
27429 (multiboot2_word): ... to this. Update all users.
27430 (multiboot_header): Rename from this ...
27431 (multiboot2_header): ... to this. Update all users.
27432 (multiboot_tag_header): Rename from this ...
27433 (multiboot2_tag_header): ... to this. Update all users.
27434 (multiboot_tag_start): Rename from this ...
27435 (multiboot2_tag_start): ... to this. Update all users.
27436 (multiboot_tag_name): Rename from this ...
27437 (multiboot2_tag_name): ... to this. Update all users.
27438 (multiboot_tag_module): Rename from this ...
27439 (multiboot2_tag_module): ... to this. Update all users.
27440 (multiboot_tag_memory): Rename from this ...
27441 (multiboot2_tag_memory): ... to this. Update all users.
27442 (multiboot_tag_unused): Rename from this ...
27443 (multiboot2_tag_unused): ... to this. Update all users.
27444 (multiboot_tag_end): Rename from this ...
27445 (multiboot2_tag_end): ... to this. Update all users.
27446
27447 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27448
27449 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
27450 this platform we should support Multiboot1 first.
27451
27452 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
27453 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
27454 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
27455
27456 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27457
27458 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
27459 of write calls (converting them to fwrite() if they aren't already).
27460 (get_torito_desc): Likewise.
27461 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
27462
27463 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27464
27465 * util/i386/pc/grub-install.in: Move from here ...
27466 * util/grub-install.in: ... to here. Update all users.
27467
27468 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
27469
27470 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
27471
27472 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27473
27474 Support for El Torito without floppy emulation.
27475
27476 * util/mkisofs/eltorito.c: Include `<errno.h>'.
27477 (init_boot_catalog): Improve error handling.
27478 (get_torito_desc): Don't use floppy emulation unless requested by
27479 user. Patch boot information table when requested via
27480 `-boot-info-table'.
27481 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
27482 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
27483 (use_boot_info_table): New variables.
27484 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
27485 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
27486 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
27487 `--eltorito-emul-floppy'.
27488 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
27489 and `OPTION_ELTORITO_EMUL_FLOPPY'.
27490 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
27491 (use_boot_info_table, get_731): New prototypes.
27492 * util/mkisofs/write.c (get_731): New function.
27493
27494 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
27495
27496 Fix the generation of the man page.
27497
27498 * util/pc/i386/grub-install.in: Source
27499 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
27500
27501 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27502
27503 Large file support for grub-mkisofs.
27504
27505 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
27506 * util/mkisofs/mkisofs.c (next_extent, last_extent)
27507 (session_start): Upgrade type to `uint64_t'. Update all users.
27508 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
27509 (struct directory_entry): Upgrade type of `starting_block' and
27510 `size' to `uint64_t'. Update all users.
27511 (struct deferred): Remove unused structure.
27512 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
27513 Update all users.
27514 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
27515 file is larger than `UINT32_MAX'.
27516 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
27517 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
27518 return value.
27519 (struct deferred_write): Upgrade type of `extent' and `size' to
27520 `uint64_t'. Update all users.
27521 (last_extent_written): Upgrade type to `uint64_t'. Update all
27522 users.
27523 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
27524 Update all users. Upgrade type of `remain' to `int64_t' and
27525 `use' to `size_t'. Use error() to handle fread() errors.
27526 (write_files): Rely on write_one_file() rather than calling
27527 xfwrite() directly.
27528
27529 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
27530
27531 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
27532
27533 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27534
27535 * util/mkisofs/fnmatch.c: Remove.
27536 * util/mkisofs/getopt1.c: Likewise.
27537 * util/mkisofs/getopt.c: Likewise.
27538 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
27539 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
27540 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
27541 `gnulib/getopt1.c' and `gnulib/getopt.c'.
27542 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
27543
27544 * configure.ac: Detect `mingw32msvc' host_os.
27545 Check for lstat(), getuid() and getgid().
27546
27547 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
27548 instances of `u_char' with `uint8_t'.
27549
27550 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
27551 [!HAVE_GETUID] (getuid): New function (stub).
27552 [!HAVE_GETGID] (getgid): Likewise.
27553 [!HAVE_LSTAT] (lstat): Likewise.
27554 [!S_IROTH] (S_IROTH): New macro (dummy).
27555 [!S_IRGRP] (S_IRGRP): Likewise.
27556
27557 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27558
27559 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
27560 conditional expression).
27561
27562 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27563
27564 Import from Gnulib.
27565
27566 * gnulib/fnmatch.c: New file.
27567 * gnulib/fnmatch.h: Likewise.
27568 * gnulib/fnmatch_loop.c: Likewise.
27569 * gnulib/getopt.c: Likewise.
27570 * gnulib/getopt.h: Likewise.
27571 * gnulib/getopt1.c: Likewise.
27572 * gnulib/getopt_int.h: Likewise.
27573 * gnulib/gettext.h: Likewise.
27574
27575 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27576
27577 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
27578 * normal/handler.c (read_handler_list): Likewise.
27579
27580 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27581
27582 Misc cleanup.
27583
27584 * kern/command.c (grub_register_command_prio): Use
27585 grub_zalloc() instead of explicitly zeroing data.
27586 * kern/list.c: Include `<grub/mm.h>'.
27587 (grub_named_list_find): Replace `0' with `NULL'.
27588 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
27589 (fs_module_list): Change type to `grub_named_list_t'. Update all
27590 users.
27591 * normal/dyncmd.c (read_command_list): Add space between function
27592 call and parenthesis.
27593 * normal/handler.c (read_handler_list): Likewise.
27594
27595 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27596
27597 * normal/auth.c (punishment_delay): Moved from here ...
27598 (grub_auth_strcmp): ... to here (inside function).
27599
27600 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27601
27602 * include/grub/list.h (struct grub_named_list): Remove `const'
27603 qualifier from `name'.
27604 (struct grub_prio_list): Likewise.
27605
27606 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27607
27608 * normal/auth.c: Include `<grub/time.h>'.
27609 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
27610
27611 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27612
27613 * normal/auth.c (punishment_delay): New variable.
27614 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
27615 (grub_auth_check_authentication): Punish failed login attempts with
27616 an incremental (2^N) delay.
27617
27618 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27619
27620 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
27621 path with $(srcdir).
27622
27623 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27624
27625 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
27626
27627 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27628
27629 * util/i386/coreboot/grub-mkrescue.in: New file.
27630 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
27631 variables.
27632
27633 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
27634 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
27635 * configure.ac: Add header and function checks to satisfy grub-mkisofs
27636 requirements.
27637 * util/mkisofs/defaults.h: New file.
27638 * util/mkisofs/eltorito.c: Likewise.
27639 * util/mkisofs/exclude.h: Likewise.
27640 * util/mkisofs/fnmatch.c: Likewise.
27641 * util/mkisofs/getopt.c: Likewise.
27642 * util/mkisofs/getopt1.c: Likewise.
27643 * util/mkisofs/hash.c: Likewise.
27644 * util/mkisofs/include/fctldefs.h: Likewise.
27645 * util/mkisofs/include/mconfig.h: Likewise.
27646 * util/mkisofs/include/prototyp.h: Likewise.
27647 * util/mkisofs/include/statdefs.h: Likewise.
27648 * util/mkisofs/iso9660.h: Likewise.
27649 * util/mkisofs/joliet.c: Likewise.
27650 * util/mkisofs/match.c: Likewise.
27651 * util/mkisofs/match.h: Likewise.
27652 * util/mkisofs/mkisofs.c: Likewise.
27653 * util/mkisofs/mkisofs.h: Likewise.
27654 * util/mkisofs/multi.c: Likewise.
27655 * util/mkisofs/name.c: Likewise.
27656 * util/mkisofs/rock.c: Likewise.
27657 * util/mkisofs/tree.c: Likewise.
27658 * util/mkisofs/write.c: Likewise.
27659
27660 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27661
27662 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
27663 being insecure.
27664
27665 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27666
27667 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
27668 `grub-mkimage' (and use $0 when possible).
27669
27670 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27671
27672 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
27673 error message for excessively large memory map.
27674
27675 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27676
27677 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
27678 executable bit.
27679
27680 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27681
27682 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
27683 message for coreboot users.
27684
27685 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
27686
27687 Fix build with GNU gold.
27688
27689 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
27690 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
27691 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
27692 link addresses.
27693 * aclocal.m4: Likewise.
27694
27695 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
27696
27697 * configure.ac (AC_PREREQ): Bump to 2.59d.
27698 * INSTALL: Make it more clear when Autoconf and Ruby are
27699 needed and when to run `./autogen.sh'.
27700
27701 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27702
27703 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
27704 OSes.
27705
27706 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27707
27708 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
27709
27710 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27711
27712 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
27713 giving it to GNU Mach.
27714
27715 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27716
27717 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
27718 GNU partition number to get internal GRUB partition number.
27719
27720 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27721
27722 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
27723 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
27724
27725 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
27726
27727 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
27728 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
27729 case.
27730
27731 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
27732
27733 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
27734
27735 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27736
27737 Fix build problem.
27738
27739 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
27740 `-isystem=$(srcdir)/include'.
27741
27742 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27743
27744 * util/i386/pc/grub-install.in: Remove hint that device.map should be
27745 checked (grub-install doesn't currently rely on it).
27746
27747 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
27748
27749 Revert SVN r2660.
27750
27751 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
27752 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27753 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
27754 * conf/i386-ieee1275.rmk: Likewise.
27755 * conf/i386-pc.rmk: Likewise.
27756 * conf/powerpc-ieee1275.rmk: Likewise.
27757 * conf/sparc64-ieee1275.rmk: Likewise.
27758 * conf/x86_64-efi.rmk: Likewise.
27759
27760 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27761
27762 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
27763
27764 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27765
27766 * include/grub/misc.h: Stop checking for APPLE_CC.
27767
27768 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27769
27770 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
27771 doesn't cause an infinite call loop.
27772
27773 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
27774
27775 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
27776 strings.
27777
27778 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27779
27780 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
27781 variable.
27782 * Makefile.in: Likewise.
27783
27784 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27785
27786 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
27787
27788 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27789
27790 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
27791
27792 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27793
27794 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
27795
27796 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27797
27798 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
27799 from here ...
27800 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
27801
27802 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27803
27804 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
27805 in $(MAKEINFO) invocation. This makes it clear in output that
27806 errors are being ignored.
27807
27808 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27809
27810 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
27811 from here ...
27812 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27813 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
27814 * conf/i386-ieee1275.rmk: Likewise.
27815 * conf/i386-pc.rmk: Likewise.
27816 * conf/powerpc-ieee1275.rmk: Likewise.
27817 * conf/sparc64-ieee1275.rmk: Likewise.
27818 * conf/x86_64-efi.rmk: Likewise.
27819
27820 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27821
27822 * util/grub-editenv.c (main): If only a command is given, use
27823 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
27824 (usage): FILENAME is now optional and has a default.
27825
27826 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27827
27828 Improve grub-mkconfig performance when there are several menu
27829 entries on a single filesystem.
27830
27831 * util/grub.d/10_linux.in (linux_entry): Cache the output of
27832 prepare_grub_to_access_device.
27833 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27834 * util/grub.d/30_os-prober.in: Likewise.
27835
27836 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27837
27838 * util/grub.d/10_freebsd.in: Remove.
27839 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
27840 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
27841
27842 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27843
27844 * docs/grub.cfg: Fix example usage of *BSD loaders.
27845
27846 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27847
27848 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
27849 grub_util_error() call.
27850
27851 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27852
27853 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
27854 `reserved_first_sector' member.
27855 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
27856 `reserved_first_sector' to 1.
27857 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
27858 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
27859 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
27860 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
27861 filesystems which begin at first sector.
27862 (options): New option --skip-fs-probe.
27863 (main): Handle --skip-fs-probe and pass it to setup().
27864
27865 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27866
27867 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
27868 (memset): Fix function prototype.
27869
27870 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27871 2009-10-25 Vasily Averin <vvs@parallels.com>
27872
27873 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
27874 `dirent.direntlen == 0'.
27875
27876 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27877
27878 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
27879 `cpio'.
27880 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
27881
27882 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27883
27884 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
27885 `__trampoline_setup' and `__ucmpdi2'.
27886 * include/grub/powerpc/libgcc.h: Only export symbols for functions
27887 that libgcc provides.
27888
27889 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27890
27891 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
27892 * include/grub/sparc64/libgcc.h (memset): Likewise.
27893 * include/grub/misc.h (memset, memcmp): New function prototypes.
27894
27895 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27896
27897 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
27898 `cpio'.
27899 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
27900
27901 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27902
27903 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
27904 * docs/grub.cfg: Compensate for recent change in multiboot
27905 loader (since 2009-08-14 it won't pass filename to payload).
27906 * util/grub.d/10_hurd.in: Likewise.
27907
27908 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
27909
27910 * config.guess: Update to latest version from config git
27911 repository.
27912 * config.sub: Likewise.
27913
27914 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
27915
27916 Fix build on sparc64.
27917
27918 * configure.ac: Perform checks for libgcc symbols before
27919 adding `-nostdlib' to LDFLAGS.
27920
27921 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27922
27923 Let user specify OpenBSD root device.
27924
27925 * loader/i386/bsd.c (openbsd_root): New variable.
27926 (openbsd_opts): New option 'root'.
27927 (OPENBSD_ROOT_ARG): New macro.
27928 (grub_openbsd_boot): Use 'openbsd_root'.
27929 (grub_cmd_openbsd): Fill 'openbsd_root'.
27930
27931 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
27932
27933 * NEWS: Misc adjustments.
27934
27935 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27936
27937 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
27938
27939 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
27940
27941 * configure.ac: Bump version to 1.97.
27942
27943 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
27944
27945 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
27946 -mno-3dnow on x86 architectures. Some toolchains enable these
27947 features by default, but they rely on registers that aren't enabled
27948 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
27949
27950 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
27951
27952 Make entry text a bit more readable.
27953
27954 * util/grub.d/10_linux.in: Add `with' before `Linux'.
27955
27956 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27957
27958 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
27959
27960 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27961
27962 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
27963 operations.
27964
27965 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27966
27967 * configure.ac: Add missing dollar.
27968
27969 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27970
27971 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
27972
27973 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
27974 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
27975 exports.
27976 * include/grub/sparc64/libgcc.h: Likewise. Use
27977 preprocessor conditionals.
27978
27979 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
27980
27981 * conf/common.rmk (grub-dumpbios): Remove rule.
27982 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
27983 * util/grub-dumpbios.in: Remove file.
27984
27985 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
27986
27987 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
27988 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
27989
27990 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
27991 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
27992 users.
27993
27994 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
27995 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
27996 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
27997 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
27998 users.
27999
28000 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
28001
28002 * term/tparm.c: Switch to GPLv3.
28003
28004 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28005
28006 * include/grub/i386/cpuid.h: Add header protection.
28007
28008 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28009
28010 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
28011
28012 * include/grub/i386/cpuid.h: New file.
28013 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
28014 (has_longmode): Rename to ...
28015 (grub_cpuid_has_longmode): ... this. Update all users. Remove
28016 `static' attribute.
28017 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
28018 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
28019 on a CPU that doesn't implement AMD64 instruction set.
28020
28021 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
28022
28023 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
28024 that version.texi is rebuilt on version number changes.
28025
28026 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
28027
28028 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
28029 Fixes bug #27602.
28030
28031 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
28032
28033 * util/i386/pc/grub-install.in: Source
28034 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
28035 that the --grub-probe option will work.
28036 * util/sparc64/ieee1275/grub-install.in: Likewise.
28037
28038 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
28039
28040 * configure.ac: Bump version to 1.97~beta4.
28041
28042 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
28043
28044 Resync grub-mkdevicemap in x86_64-efi.
28045
28046 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
28047 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
28048 `util/devicemap.c'.
28049
28050 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
28051
28052 * util/grub-editenv.c (create_envblk_file): Write new block with a
28053 .new suffix and then rename it into place, to ensure atomic
28054 creation.
28055
28056 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
28057
28058 Do not automatically install headers.
28059
28060 * Makefile.in (include_DATA): Remove. Update all users.
28061
28062 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
28063
28064 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
28065 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
28066
28067 * util/osdetect.lua: Remove.
28068 * script/lua/lauxlib.c: Likewise.
28069 * script/lua/ldebug.c: Likewise.
28070 * script/lua/grub_main.c: Likewise.
28071 * script/lua/lauxlib.h: Likewise.
28072 * script/lua/ldebug.h: Likewise.
28073 * script/lua/ltablib.c: Likewise.
28074 * script/lua/liolib.c: Likewise.
28075 * script/lua/lstrlib.c: Likewise.
28076 * script/lua/lualib.h: Likewise.
28077 * script/lua/ldo.c: Likewise.
28078 * script/lua/ldump.c: Likewise.
28079 * script/lua/ldo.h: Likewise.
28080 * script/lua/loslib.c: Likewise.
28081 * script/lua/lundump.c: Likewise.
28082 * script/lua/grub_lib.c: Likewise.
28083 * script/lua/ldblib.c: Likewise.
28084 * script/lua/lundump.h: Likewise.
28085 * script/lua/lmem.c: Likewise.
28086 * script/lua/grub_lib.h: Likewise.
28087 * script/lua/lmathlib.c: Likewise.
28088 * script/lua/lstate.c: Likewise.
28089 * script/lua/ltm.c: Likewise.
28090 * script/lua/lvm.c: Likewise.
28091 * script/lua/lmem.h: Likewise.
28092 * script/lua/lstate.h: Likewise.
28093 * script/lua/ltm.h: Likewise.
28094 * script/lua/ltable.c: Likewise.
28095 * script/lua/lvm.h: Likewise.
28096 * script/lua/llex.c: Likewise.
28097 * script/lua/lgc.c: Likewise.
28098 * script/lua/grub_lua.h: Likewise.
28099 * script/lua/loadlib.c: Likewise.
28100 * script/lua/lfunc.c: Likewise.
28101 * script/lua/lopcodes.c: Likewise.
28102 * script/lua/lparser.c: Likewise.
28103 * script/lua/ltable.h: Likewise.
28104 * script/lua/llex.h: Likewise.
28105 * script/lua/lgc.h: Likewise.
28106 * script/lua/lfunc.h: Likewise.
28107 * script/lua/lbaselib.c: Likewise.
28108 * script/lua/lopcodes.h: Likewise.
28109 * script/lua/lparser.h: Likewise.
28110 * script/lua/lzio.c: Likewise.
28111 * script/lua/linit.c: Likewise.
28112 * script/lua/lobject.c: Likewise.
28113 * script/lua/llimits.h: Likewise.
28114 * script/lua/lstring.c: Likewise.
28115 * script/lua/lzio.h: Likewise.
28116 * script/lua/lapi.c: Likewise.
28117 * script/lua/lcode.c: Likewise.
28118 * script/lua/lua.h: Likewise.
28119 * script/lua/lobject.h: Likewise.
28120 * script/lua/lstring.h: Likewise.
28121 * script/lua/lapi.h: Likewise.
28122 * script/lua/lcode.h: Likewise.
28123 * script/lua/luaconf.h: Likewise.
28124
28125 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
28126
28127 * docs/grub.texi (Command-line and menu entry commands): Document
28128 date and echo commands.
28129
28130 2009-09-24 Pavel Roskin <proski@gnu.org>
28131
28132 * include/grub/kernel.h (struct grub_module_header): Remove
28133 `grub_module_header_types'. Make `type' unsigned. Make `size'
28134 32-bit on all platforms.
28135 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
28136 8-bit field. Use grub_host_to_target32() for `size'.
28137 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
28138 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
28139 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
28140
28141 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28142
28143 Fix "lost keypress" bug in at_keyboard.
28144
28145 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
28146 Checks for readyness of input buffer (without flushing it).
28147 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
28148 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
28149
28150 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28151
28152 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
28153 size check within GRUB_MACHINE_PCBIOS section.
28154
28155 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28156
28157 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
28158 return value.
28159 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
28160 KEYBOARD_ISREADY check.
28161 (grub_at_keyboard_checkkey): Rename to ...
28162 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
28163 Remove gratuitous cast.
28164
28165 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
28166
28167 * configure.ac: Call AC_PROG_MKDIR_P.
28168 * Makefile.in (docs/stamp-vti): Create docs directory. Create
28169 version.texi in $(builddir) rather than $(srcdir).
28170 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
28171 to makeinfo's @include search path.
28172
28173 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
28174
28175 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
28176
28177 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
28178
28179 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
28180 for `*.dpkg-new'.
28181
28182 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
28183
28184 Build info documentation. Some code borrowed from Automake.
28185
28186 * configure.ac: Check for makeinfo.
28187 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
28188 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
28189 docs/version.texi.
28190 (MOSTLYCLEANFILES): Add vti.tmp.
28191 (docs/version.texi, docs/stamp-vti): Update automatically.
28192 (docs/grub.info): Build info documentation. Use --force and ignore
28193 errors for now.
28194 (all-local): Add $(INFOS).
28195 (install-local): Install info files.
28196 (uninstall): Uninstall info files.
28197 * docs/version.texi: Remove from revision control. This file is
28198 automatically generated on build now.
28199 * gendistlist.sh: Add `*.info'.
28200
28201 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
28202
28203 * kern/term.c: Fix indentation.
28204
28205 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
28206
28207 * util/hostdisk.c: Fix a comment.
28208
28209 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
28210
28211 Fix regression introduced in r2539.
28212
28213 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
28214 to 0xA1.
28215
28216 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
28217
28218 * util/grub.d/30_os-prober.in: Don't throw away stderr from
28219 os-prober. Under normal operation, it does not print anything to
28220 stderr; if it does, we need to debug it, and throwing away stderr
28221 makes that excessively difficult.
28222
28223 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
28224
28225 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
28226
28227 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28228
28229 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
28230 AC_LANG_PROGRAM from autoconf.
28231 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
28232 prototypes (fixes warning).
28233
28234 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
28235 `--disable-werror' was used.
28236
28237 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28238
28239 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
28240 uninitialized `lastaddr'.
28241
28242 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
28243
28244 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
28245
28246 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
28247
28248 * commands/test.c (get_fileinfo): Return immediately if
28249 grub_fs_probe fails.
28250
28251 2009-09-14 José Martínez <xosemp@gmail.com>
28252
28253 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
28254
28255 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
28256
28257 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
28258 output.
28259
28260 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
28261
28262 * configure.ac: Remove --enable-grub-pe2elf. Only build
28263 grub-pe2elf when needed by the build system itself.
28264 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
28265
28266 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28267
28268 * configure.ac: Bump version to 1.97~beta3.
28269 * docs/version.texi: Likewise.
28270
28271 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28272
28273 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
28274 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
28275 from here ...
28276 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
28277 (grub_linux_setup_video): ... to here (with some adjustments).
28278
28279 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28280
28281 Fix memory corruption issue (spotted by Colin Watson).
28282
28283 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
28284 causing returned size to be stored in an incorrect memory location.
28285 Fix use of uninitialized value when storing the returned size.
28286
28287 2009-09-12 Yves Blusseau <blusseau@zetam.org>
28288
28289 Change clean rules to properly remove files
28290
28291 * genmk.rb: add new clean rules
28292 * Makefile.in (clean): add the new targets
28293 (mostlyclean): likewise
28294
28295 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
28296
28297 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
28298 to grub_uint64_t.
28299 * fs/ntfs.c (init_file): Understand 64-bit sizes for
28300 non-resident files.
28301
28302 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
28303
28304 * configure.ac: Don't look for help2man when cross-compiling. Fixes
28305 part of bug #27349.
28306
28307 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
28308
28309 * util/grub-mkconfig.in: Make the created config mode 400 and
28310 print a warning if it fails.
28311
28312 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
28313
28314 * util/grub.d/40_custom.in: Ask user to type custom entries below
28315 comment, rather than below 'exec tail' line.
28316
28317 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
28318
28319 * util/grub.d/40_custom.in: Make sure that the explanatory text is
28320 visible in grub.cfg.
28321
28322 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
28323
28324 * util/grub.d/40_custom.in: Make it a little clearer how to use this
28325 file.
28326
28327 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
28328
28329 * docs/grub.cfg: Add an example menu entry for memtest86+.
28330
28331 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
28332
28333 * config.guess: Update to latest version from config git.
28334 * config.sub: Likewise.
28335
28336 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
28337
28338 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
28339 unknown-command case. Fixes bug #27320.
28340
28341 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
28342
28343 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
28344 `help' if the command exists.
28345
28346 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
28347
28348 * INSTALL: Require GCC 4.1.3 or later.
28349
28350 2009-09-06 Yves Blusseau <blusseau@zetam.org>
28351
28352 * Makefile.in (RMKFILES): add i386-qemu.rmk
28353 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
28354 $(srcdir)/stamp-h.in
28355
28356 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
28357
28358 * util/grub-probe.c (probe): Comment out buggy codepath, which
28359 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
28360 should be re-enabled after 1.97.
28361
28362 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
28363
28364 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
28365 find searches for.
28366
28367 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
28368
28369 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
28370 unnecessary calls to grub_error.
28371
28372 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
28373
28374 * NEWS: Mention `keystatus' and Unicode fonts.
28375
28376 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
28377
28378 * configure.ac: Bump version to 1.97~beta2.
28379 * docs/version.texi: Likewise.
28380
28381 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28382
28383 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
28384 containing unwind information in some cases where it previously did
28385 not. Use -fno-dwarf2-cfi-asm if available to restore the old
28386 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
28387 discussion.
28388
28389 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
28390
28391 Embedding loadenv module into grub-emu
28392
28393 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
28394 commands/loadenv.c
28395 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
28396 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
28397 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
28398 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
28399 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
28400 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
28401
28402 2009-09-03 Magnus Granberg <zorry@ume.nu>
28403
28404 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
28405 include -fPIE in the default specs.
28406 * configure.ac: Check if pie_possible is yes and add -fno-PIE
28407 to TARGET_CFLAGS.
28408
28409 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
28410
28411 * INSTALL: Note that GNU Bison 2.3 or later is required.
28412
28413 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28414
28415 * kern/i386/pc/startup.S: Fix typo.
28416
28417 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
28418
28419 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
28420 according to GCS.
28421
28422 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28423
28424 * docs/grub.texi (Naming convention): Describe one-based partition
28425 numbering.
28426 (Device syntax): Likewise.
28427 (File name syntax): Likewise.
28428 (Block list syntax): Likewise.
28429 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
28430 menu.lst.
28431 (File name syntax): Likewise.
28432 (Command-line and menu entry commands): Document acpi, blocklist,
28433 crc, export, insmod, keystatus, ls, set, and unset commands.
28434
28435 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28436
28437 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
28438 to avoid implying that only one of --shift, --ctrl, or --alt may be
28439 used.
28440
28441 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28442
28443 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
28444 rather than comparing against S_IFREG, which will almost never work.
28445
28446 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
28447
28448 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
28449 (write_blocklists): Likewise.
28450
28451 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
28452
28453 * script/lua/grub_lua.h (fputs): Supply a format string as the first
28454 argument to grub_printf.
28455
28456 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
28457
28458 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
28459 non GNU test.
28460
28461 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28462
28463 * kern/file.c (grub_file_read): Spelling fix
28464
28465 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28466
28467 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
28468 loading of headers in some cases.
28469
28470 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
28471
28472 * configure.ac: Bump version to 1.97~beta1.
28473 * docs/version.texi: Likewise.
28474
28475 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
28476
28477 * include/grub/i386/xnu.h: Add license header.
28478 include grub/err.h explicitly.
28479
28480 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28481
28482 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
28483 to `ufs' in the vfs.root.mountfrom kernel parameter.
28484
28485 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28486
28487 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
28488
28489 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
28490 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
28491
28492 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
28493 `ARRAY_SIZE' macro.
28494
28495 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28496
28497 * kern/file.c (grub_file_read): Check offset.
28498 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
28499 * fs/jfs.c (grub_jfs_read_file): Likewise.
28500 * fs/ntfs.c (grub_ntfs_read): Likewise.
28501 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
28502 * fs/minix.c (grub_minix_read_file): Correct offset check.
28503 * fs/ufs.c (grub_ufs_read_file): Likewise.
28504
28505 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28506
28507 * term/i386/pc/console.c (bios_data_area): Cast
28508 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
28509
28510 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28511
28512 1-bit optimised blitters.
28513
28514 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
28515 prototype.
28516 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28517 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28518 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28519 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28520 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28521 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28522 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
28523 function.
28524 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28525 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28526 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28527 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28528 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28529 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28530 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
28531 when possible.
28532 * video/video.c (grub_video_get_blit_format): Return
28533 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
28534
28535 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28536
28537 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
28538 the first argument to grub_printf.
28539
28540 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28541 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
28542
28543 Add `getkeystatus' terminal method. Add a new `keystatus' command
28544 to query it.
28545
28546 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
28547 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
28548 modifier key bitmasks.
28549 (struct grub_term_input): Add `getkeystatus' member.
28550 (grub_getkeystatus): Add prototype.
28551 * kern/term.c (grub_getkeystatus): New function.
28552
28553 * include/grub/i386/pc/memory.h
28554 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
28555 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
28556 Data Area layout.
28557 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
28558 (grub_console_term_input): Set `getkeystatus' member.
28559 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
28560 constants.
28561 (grub_usb_keyboard_getreport): Likewise.
28562 (grub_usb_keyboard_checkkey): Likewise.
28563 (grub_usb_keyboard_getkeystatus): New function.
28564 (grub_usb_keyboard_term): Set `getkeystatus' member.
28565
28566 * commands/keystatus.c: New file.
28567 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
28568 (keystatus_mod_SOURCES): New variable.
28569 (keystatus_mod_CFLAGS): Likewise.
28570 (keystatus_mod_LDFLAGS): Likewise.
28571 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
28572 commands/keystatus.c.
28573 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28574 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28575 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28576 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28577 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28578 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28579
28580 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28581
28582 Split befs.mod and afs.mod into *_be.mod and *.mod
28583
28584 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
28585 (grub_fstest_SOURCES): Likewise.
28586 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
28587 (afs_be_mod_SOURCES): New variable.
28588 (afs_be_mod_CFLAGS): Likewise.
28589 (afs_be_mod_LDFLAGS): Likewise.
28590 (befs_be_mod_SOURCES): Likewise.
28591 (befs_be_mod_CFLAGS): Likewise.
28592 (befs_be_mod_LDFLAGS): Likewise.
28593 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
28594 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28595 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28596 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28597 (grub_emu_SOURCES): Likewise.
28598 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28599 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28600 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28601 * fs/afs_be.c: New file.
28602 * fs/befs_be.c: New file.
28603 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
28604 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
28605 (U16): Replaced with ...
28606 (grub_afs_to_cpu16): ...this. All users updated.
28607 (U32): Replaced with ...
28608 (grub_afs_to_cpu32): ...this. All users updated.
28609 (U64): Replaced with ...
28610 (grub_afs_to_cpu64): ...this. All users updated.
28611 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
28612 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
28613 (grub_afs_validate_sblock): Check only one endianness.
28614 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28615 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28616 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28617 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28618 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28619 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28620 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28621 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28622
28623 2009-08-26 Bean <bean123ch@gmail.com>
28624
28625 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
28626 64-bit number.
28627 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
28628 (grub_xfs_inode_block): Change return type to grub_uint64_t.
28629 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
28630
28631 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28632
28633 NetBSD memory map support.
28634
28635 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
28636 (grub_netbsd_btinfo_mmap_header): New structure.
28637 (grub_netbsd_btinfo_mmap_entry): Likewise.
28638 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
28639
28640 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28641
28642 Enable bsd.mod on coreboot.
28643
28644 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
28645 (bsd_mod_SOURCES): New variable.
28646 (bsd_mod_CFLAGS): Likewise.
28647 (bsd_mod_LDFLAGS): Likewise.
28648 (bsd_mod_ASFLAGS): Likewise.
28649 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
28650 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
28651
28652 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28653
28654 Cleanup NetBSD root support.
28655
28656 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
28657 grub_bsd_get_device.
28658 Fix typo.
28659
28660 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
28661
28662 * util/grub.d/00_header.in: Move check for the video backend of
28663 gfxterm from here ...
28664 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
28665 a suitable video backend.
28666
28667 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28668
28669 Fix breakage in grub-setup.
28670
28671 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
28672 "msdos_partition_map".
28673
28674 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28675
28676 Fix breakage in normal/auth.c.
28677
28678 * normal/auth.c (grub_iswordseparator): New function.
28679
28680 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28681
28682 Authentication support.
28683
28684 * commands/password.c: New file.
28685 * conf/common.rmk (pkglib_MODULES): Add password.mod.
28686 (password_mod_SOURCES): New variable.
28687 (password_mod_CFLAGS): Likewise.
28688 (password_mod_LDFLAGS): Likewise.
28689 (normal_mod_SOURCES): Add normal/auth.c.
28690 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
28691 normal/auth.c.
28692 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28693 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28694 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28695 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28696 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28697 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28698 * include/grub/auth.h: New file.
28699 * include/grub/err.h (grub_err_t): New enum value
28700 GRUB_ERR_ACCESS_DENIED.
28701 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
28702 'users'.
28703 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
28704 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
28705 users updated.
28706 * normal/auth.c: New file.
28707 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
28708 (grub_cmdline_run): Don't allow to go to command line without
28709 authentication.
28710 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
28711 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
28712 menuentry without superuser rights.
28713 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
28714 user isn't a superuser.
28715
28716 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28717
28718 Save space by inlining misc.c functions.
28719
28720 * kern/misc.c (grub_iswordseparator): Made static.
28721 * kern/misc.c (grub_strcat): Moved from here ...
28722 * include/grub/misc.h (grub_strcat): ... here. Inlined.
28723 * kern/misc.c (grub_strncat): Moved from here ...
28724 * include/grub/misc.h (grub_strncat): ... here. Inlined.
28725 * kern/misc.c (grub_strcasecmp): Moved from here ...
28726 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
28727 * kern/misc.c (grub_strncasecmp): Moved from here ...
28728 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
28729 * kern/misc.c (grub_isalpha): Moved from here ...
28730 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
28731 * kern/misc.c (grub_isdigit): Moved from here ...
28732 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
28733 * kern/misc.c (grub_isgraph): Moved from here ...
28734 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
28735 * kern/misc.c (grub_tolower): Moved from here ...
28736 * include/grub/misc.h (grub_tolower): ... here. Inlined.
28737
28738 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28739
28740 * script/sh/function.c (grub_script_function_find): Cut error message
28741 not to flood terminal.
28742 * script/sh/lexer.c (grub_script_yylex): Remove command line length
28743 limit.
28744 * script/sh/script.c (grub_script_arg_add): Duplicate string.
28745
28746 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
28747
28748 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
28749 `report' grub_uint8_t *.
28750 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
28751 Use a 50-millisecond timeout rather than just repeating
28752 grub_usb_keyboard_getreport 50 times.
28753 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
28754
28755 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28756
28757 Rename *_partition_map to part_*
28758
28759 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
28760 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
28761 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
28762 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
28763 All users updated.
28764 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
28765 All users updated.
28766 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
28767 * util/grub-probe.c (probe_partmap): Don't transform partition name
28768 to get module name.
28769
28770 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28771
28772 Fix OpenBSD and NetBSD support.
28773
28774 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
28775 memory address conflict.
28776 (OPENBSD_MMAP_ACPI): New definition.
28777 (OPENBSD_MMAP_NVS): Likewise.
28778 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
28779 and OPENBSD_MMAP_NVS.
28780 Add memory map terminator
28781 Explicit cast when calling grub_unix_real_boot.
28782 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
28783
28784 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28785
28786 Let user specify NetBSD root device.
28787
28788 * loader/i386/bsd.c (netbsd_root): New variable.
28789 (netbsd_opts): New option 'root'.
28790 (NETBSD_ROOT_ARG): New macro.
28791 (grub_netbsd_boot): Use 'netbsd_root'.
28792 (grub_bsd_unload): Free 'netbsd_root'.
28793 (grub_cmd_netbsd): Fill 'netbsd_root'.
28794
28795 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28796
28797 Support for 64-bit NetBSD.
28798
28799 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
28800 point when booting non-FreeBSD.
28801
28802 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28803
28804 Support --no-smp and --no-acpi for NetBSD.
28805
28806 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
28807 (NETBSD_AB_NOACPI): Likewise.
28808 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
28809 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
28810
28811 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28812
28813 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
28814 errors.
28815 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
28816 errors. Call grub_error when needed.
28817
28818 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28819
28820 * commands/search.c (search_fs): Try searching without autoload first.
28821 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
28822 filesystem module explicitly for faster booting.
28823
28824 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28825
28826 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
28827
28828 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28829
28830 * util/grub.d/30_os-prober.in: Disable os-prober if
28831 `GRUB_DISABLE_OS_PROBER' was set to true.
28832
28833 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
28834
28835 * partmap/pc.c: Rename to ...
28836 * partmap/msdos.c: ... this. Update all users.
28837 (grub_pc_partition_map): Rename to ...
28838 (grub_msdos_partition_map): ... this. Update all users.
28839
28840 * parttool/pcpart.c: Rename to ...
28841 * parttool/msdospart.c: ... this. Update all users.
28842
28843 * include/grub/pc_partition.h: Rename to ...
28844 * include/grub/msdos_partition.h: ... this. Update all users.
28845 (grub_pc_partition_bsd_entry): Rename to ...
28846 (grub_msdos_partition_bsd_entry): ... this. Update all users.
28847 (grub_pc_partition_disk_label): Rename to ...
28848 (grub_msdos_partition_disk_label): ... this. Update all users.
28849 (grub_pc_partition_entry): Rename to ...
28850 (grub_msdos_partition_entry): ... this. Update all users.
28851 (grub_pc_partition_mbr): Rename to ...
28852 (grub_msdos_partition_mbr): ... this. Update all users.
28853 (grub_pc_partition): Rename to ...
28854 (grub_msdos_partition): ... this. Update all users.
28855 (grub_pc_partition_is_empty): Rename to ...
28856 (grub_msdos_partition_is_empty): ... this. Update all users.
28857 (grub_pc_partition_is_extended): Rename to ...
28858 (grub_msdos_partition_is_extended): ... this. Update all users.
28859 (grub_pc_partition_is_bsd): Rename to ...
28860 (grub_msdos_partition_is_bsd): ... this. Update all users.
28861
28862 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
28863 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
28864 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
28865 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
28866 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
28867 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
28868 (gpt_mod_LDFLAGS): Rename to ...
28869 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
28870 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
28871 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
28872 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
28873 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
28874 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
28875 (part_gpt_mod_LDFLAGS): ... this.
28876 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
28877 `pcpart.mod' to `msdospart.mod'.
28878 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
28879 to ...
28880 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
28881 (msdospart_mod_LDFLAGS): ... this.
28882
28883 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28884
28885 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
28886 (openbsd_opts): Likewise.
28887 (netbsd_opts): Likewise.
28888 (freebsd_flags): Added 0 terminator.
28889 (openbsd_flags): Likewise.
28890 (netbsd_flags): Likewise.
28891 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
28892 (grub_cmd_freebsd): Transformed into extended command.
28893 (grub_cmd_openbsd): Likewise.
28894 (grub_cmd_netbsd): Likewise.
28895 (cmd_freebsd): Changed type to grub_extcmd_t.
28896 (cmd_openbsd): Likewise.
28897 (cmd_netbsd): Likewise.
28898 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
28899 grub_cmd_openbsd as extended commands.
28900 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
28901 cmd_netbsd and cmd_openbsd
28902
28903 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
28904
28905 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
28906
28907 2009-08-21 Pavel Roskin <proski@gnu.org>
28908
28909 * Makefile.in (install-local): When checking if a file is in the
28910 build directory, use "test -e" to detect symlinks.
28911
28912 * Makefile.in (install-local): Remove all files in
28913 $(DESTDIR)$(pkglibdir) before installing new files there.
28914
28915 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
28916
28917 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
28918 grub-mkelfimage.
28919
28920 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
28921
28922 * util/grub-mkconfig.in: Don't use gfxterm by default if not
28923 explicitly specified by the user.
28924
28925 2009-08-18 Pavel Roskin <proski@gnu.org>
28926
28927 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
28928 grub_uint8_t pointer for data.
28929 * include/grub/fbutil.h (struct grub_video_fbblit_info):
28930 Likewise.
28931 * video/fb/fbutil.c: Remove unnecessary casts.
28932
28933 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28934
28935 VBE cleanup.
28936
28937 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
28938 (grub_vbe_set_video_mode): Save active mode info
28939 only after setting the mode.
28940 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
28941 second argument.
28942
28943 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28944
28945 Rename variables for clarity.
28946
28947 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
28948 (active_vbe_mode_info): ... this. All users updated.
28949 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
28950 All users updated.
28951 (initial_mode): Rename to ...
28952 (initial_vbe_mode): ... this. All users updated.
28953 (mode_in_use): Rename to ..
28954 (vbe_mode_in_use): ... this. All users updated.
28955 (mode_list): Rename to ..
28956 (vbe_mode_list): ... this. All users updated.
28957 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
28958 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
28959 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
28960 'mode_list_size' to 'vbe_mode_list_size'.
28961 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
28962 'best_mode_info' to 'best_vbe_mode_info' and
28963 'best_mode' to 'best_vbe_mode'
28964
28965 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28966
28967 Remove duplicate grub_video_fb_get_video_ptr.
28968
28969 * include/grub/fbutil.h (get_data_ptr): Rename to ...
28970 (grub_video_fb_get_video_ptr): ... this.
28971 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
28972 * video/fb/fbutil.c: Add comment about addressing.
28973 (get_data_ptr): Rename to ...
28974 (grub_video_fb_get_video_ptr): ... this. All users updated.
28975 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
28976
28977 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
28978
28979 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
28980 grub_dprintf() that was just added.
28981
28982 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
28983
28984 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
28985 (DEFAULT_VIDEO_MODE): Remove macros.
28986 (grub_linux_boot): Remove assumption that Linux has FB support,
28987 and use "text" as default video mode.
28988
28989 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
28990
28991 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
28992 grub_dprintf.
28993 * fs/fat.c (grub_fat_read_data): Likewise.
28994
28995 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28996
28997 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
28998 payload.
28999 (grub_module): Likewise.
29000
29001 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29002
29003 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
29004 mbi->cmdline but free playground.
29005
29006 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29007
29008 Handle group offset on UFS1.
29009
29010 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
29011 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
29012
29013 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29014
29015 Split ufs.mod into ufs1.mod and ufs2.mod.
29016
29017 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
29018 (grub_fstest_SOURCES): Likewise.
29019 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
29020 (ufs_mod_SOURCES): Remove.
29021 (ufs_mod_CFLAGS): Likewise.
29022 (ufs_mod_LDFLAGS): Likewise.
29023 (ufs1_mod_SOURCES): New variable.
29024 (ufs1_mod_CFLAGS): Likewise.
29025 (ufs1_mod_LDFLAGS): Likewise.
29026 (ufs2_mod_SOURCES): New variable.
29027 (ufs2_mod_CFLAGS): Likewise.
29028 (ufs2_mod_LDFLAGS): Likewise.
29029 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
29030 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29031 Likewise.
29032 (grub_emu_SOURCES): Likewise.
29033 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29034 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29035 (grub_setup_SOURCES): Likewise.
29036 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29037 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
29038 (grub_setup_SOURCES): Likewise.
29039 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29040 Likewise.
29041 * fs/ufs2.c: New file.
29042 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
29043
29044 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29045
29046 Framebuffer split.
29047
29048 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
29049 subsystem at the end.
29050 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
29051 (video_fb_mod_SOURCES): New variable.
29052 (video_fb_mod_CFLAGS): Likewise.
29053 (video_fb_mod_LDFLAGS): Likewise.
29054 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
29055 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
29056 * video/i386/pc/vbeblit.c: Moved from here ...
29057 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
29058 * video/i386/pc/vbefill.c: Moved from here ...
29059 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
29060 * video/i386/pc/vbeutil.c: Moved from here ...
29061 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
29062 * include/grub/i386/pc/vbeblit.h: Moved from here ...
29063 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
29064 * include/grub/i386/pc/vbefill.h: Moved from here ...
29065 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
29066 * include/grub/i386/pc/vbeutil.h: Moved from here ...
29067 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
29068 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
29069 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
29070 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
29071 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
29072 (grub_video_adapter): Added 'get_info_and_fini'.
29073 (grub_video_get_info_and_fini): New prototype.
29074 (grub_video_set_mode): make modestring const char *.
29075 * loader/i386/linux.c (grub_linux_setup_video): Use
29076 grub_video_get_info_and_fini.
29077 (grub_linux_boot): Move modesetting just before booting.
29078 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
29079 grub_video_get_info_and_fini.
29080 * video/i386/pc/vbe.c: Moved framebuffer part ...
29081 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
29082 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
29083 grub_video_fbstd_colors and grub_video_fb_set_palette.
29084 (grub_video_vbe_init): Clear 'framebuffer' variable and use
29085 grub_video_fb_init.
29086 (grub_video_vbe_fini): Use grub_video_fb_fini.
29087 (grub_video_vbe_setup): Use framebuffer.render_target instead of
29088 render_target and use grub_video_fb_set_active_render_target and
29089 grub_video_fb_set_palette.
29090 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
29091 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
29092 (grub_video_vbe_adapter): Use framebuffer.
29093 * video/video.c (grub_video_get_info_and_fini): New function.
29094 (grub_video_set_mode): Make modestring const char *.
29095 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
29096 values are already initialised.
29097
29098 2009-08-14 Pavel Roskin <proski@gnu.org>
29099
29100 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
29101 ABS and APPLE_CC.
29102 * boot/i386/pc/diskboot.S: Likewise.
29103 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
29104 sectors allow compilation on MacOSX.
29105 * conf/i386-pc.rmk: Enable unconditional compilation of
29106 lnxboot.img.
29107
29108 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
29109
29110 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
29111 * util/grub.d/00_header.in: Enter interruptible sleep if
29112 GRUB_HIDDEN_TIMEOUT is set.
29113
29114 2009-08-13 Yves Blusseau <blusseau@zetam.org>
29115
29116 * include/grub/symbol.h: Add the LOCAL macro.
29117 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
29118 starting with "L_".
29119
29120 2009-08-13 Pavel Roskin <proski@gnu.org>
29121
29122 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
29123 any modern compilers we support.
29124
29125 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
29126 Use local labels starting with "L_" so that Apple assembler
29127 knows they are local.
29128
29129 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
29130
29131 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
29132 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
29133 (bsd_kernel_types): ... this enum.
29134
29135 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
29136 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
29137 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
29138
29139 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
29140 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
29141 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
29142 messages.
29143
29144 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29145
29146 * util/grub-dumpdevtree: Moved from here ...
29147 * util/i386/efi/grub-dumpdevtree: ... to here.
29148 (hexify): New function. Converts a string to its hex version.
29149 Generate hex versions of "efi" and "device-properties" by calling
29150 hexify() on the ASCII strings rather than by hardcoding numbers.
29151
29152 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29153
29154 * fs/jfs.c: Update copyright year.
29155
29156 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
29157
29158 * util/grub.d/00_header.in: Fix a comment.
29159 * util/grub.d/10_linux.in: Likewise.
29160 * util/grub.d/10_windows.in: Likewise.
29161 * util/grub.d/10_hurd.in: Likewise.
29162
29163 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
29164
29165 * util/grub-mkconfig.in: Allow the user to specify the used font
29166 with GRUB_FONT.
29167
29168 2009-08-08 Pavel Roskin <proski@gnu.org>
29169
29170 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
29171 available, xfs.mod needs it now.
29172
29173 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
29174 the "g" modifier in sed when the intention is to strip something
29175 once. This fixes comparison of kernels with multiple dashes.
29176
29177 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
29178 on it. Add missing space before closing bracket. Fix
29179 misleading formatting.
29180
29181 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29182
29183 * docs/grub.texi: Major overhaul. Remove all sections that are
29184 specific to GRUB Legacy, or mostly composed of Legacy-specific
29185 information.
29186
29187 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29188
29189 * docs/version.texi: New file. Provides version information for
29190 grub.texi.
29191
29192 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29193
29194 * docs/grub.texi: Update CVS information to SVN.
29195 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
29196
29197 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29198
29199 * util/grub-mkconfig.in: Remove a wrong `fi'.
29200
29201 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29202
29203 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
29204 (grub_jfs_uuid): New function.
29205 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
29206
29207 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29208
29209 * util/grub-mkconfig_lib.in (font_path): Move the functionality
29210 of it to ...
29211 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
29212 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
29213
29214 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29215
29216 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
29217 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
29218 Update all users.
29219
29220 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
29221 not just "vmlinu[zx]".
29222 Moved from here ...
29223 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
29224 all users.
29225
29226 * util/grub.d/10_linux.in (find_latest): Moved from here ...
29227 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
29228 all users.
29229
29230 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29231
29232 * util/grub.d/10_freebsd.in: Use an absolute device path for
29233 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
29234
29235 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
29236
29237 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
29238 handling of multiple abstraction modules.
29239
29240 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
29241
29242 Fix a bug resulting in black screen when loading Linux using a
29243 packed video mode.
29244
29245 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
29246 function.
29247
29248 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
29249 (grub_vbe_bios_getset_dac_palette_width): New function.
29250 (grub_vbe_bios_get_dac_palette_width)
29251 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
29252 grub_vbe_bios_getset_dac_palette_width()).
29253
29254 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
29255 check for return status.
29256 (grub_vbe_get_video_mode_info): When getting information for a packed
29257 mode (<= 8 bpp), obtain DAC palette width using
29258 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
29259 {red,green,blue}_mark_size.
29260
29261 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
29262
29263 * commands/search.c (options): Fix help output to match actual code.
29264
29265 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
29266
29267 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
29268 of homegrown code.
29269
29270 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29271
29272 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
29273 on XFS or ReiserFS.
29274
29275 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29276
29277 Support Apple partition map with sector size different from 512 bytes.
29278
29279 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
29280 (apple_partition_map_iterate): Respect 'aheader.blocksize'
29281 and 'apart.partmap_size'.
29282
29283 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29284 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
29285
29286 Fix cpuid command.
29287
29288 * commands/i386/cpuid.c (options): New variable.
29289 (grub_cmd_cpuid): Return real error.
29290 (GRUB_MOD_INIT(cpuid)): Declare options.
29291
29292 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
29293
29294 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
29295 valid.
29296
29297 2009-07-31 Bean <bean123ch@gmail.com>
29298
29299 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
29300 log2_inode.
29301 (grub_fshelp_node): Move inode field to the end.
29302 (grub_xfs_data): Remove inode field.
29303 (grub_xfs_inode_block): Calculate inode size using sblock.
29304 (grub_xfs_inode_offset): Likewise.
29305 (grub_xfs_read_inode): Calculate inode size using sblock.
29306 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
29307 (grub_xfs_iterate_dir): Calculate inode size using sblock.
29308 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
29309 to match inode size.
29310 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
29311 not accessible when data is null.
29312 (grub_xfs_open): Likewise.
29313
29314 2009-07-31 Bean <bean123ch@gmail.com>
29315
29316 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
29317 Don't change pv->disk if it's already set.
29318
29319 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
29320 (grub_raid_register): ... here.
29321 (grub_raid_rescan): Removed.
29322
29323 * include/grub/raid.h (grub_raid_rescan): Removed.
29324
29325 * util/grub-fstest.c: Remove include file <grub/raid.h>.
29326 (fstest): Replace grub_raid_rescan with module fini function followed
29327 by init function.
29328
29329 * util/grub-probe.c: Add include file <grub/raid.h>.
29330 (probe_raid_level): New function.
29331 (probe): Detect abstraction by walking the disk device, support two
29332 level of abstraction (LVM on RAID) when detecting partition map.
29333
29334 2009-07-31 Pavel Roskin <proski@gnu.org>
29335
29336 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
29337 to grub_zalloc(), it was erroneous.
29338 Reported by Bean <bean123ch@gmail.com>
29339
29340 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
29341
29342 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
29343 embedding zone, not only the first one.
29344
29345 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
29346
29347 * term/gfxterm.c (clear_char): New function.
29348 (grub_virtual_screen_setup): Use clear_char.
29349 (scroll_up): Likewise.
29350 (grub_virtual_screen_cls): Likewise.
29351
29352 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
29353
29354 * util/deviceiter.c (get_acceleraid_disk_name): New static
29355 function.
29356 (grub_util_iterate_devices): Handle Accelraid devices.
29357 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
29358
29359 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
29360
29361 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
29362 separator for the suggested gfxpayload string (';' collides with the
29363 parser and needs escaping).
29364
29365 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
29366
29367 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
29368 Clear direction flag before jumping to OS.
29369 (grub_multiboot2_real_boot): Likewise.
29370
29371 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29372
29373 * util/i386/pc/grub-install: Fix parsing of --disk-module
29374 option.
29375
29376 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29377
29378 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
29379 when embedding.
29380
29381 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
29382
29383 * util/grub-mkconfig.in (package_version): New variable.
29384 Use it do display the version.
29385
29386 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29387
29388 * kern/file.c (grub_file_open): Revert to previous check with
29389 grub_errno.
29390
29391 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29392
29393 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
29394 from help line. It's out of sync with code.
29395
29396 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29397
29398 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
29399 entries on failed boot.
29400
29401 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29402
29403 * kern/file.c (grub_file_open): Fix an error check.
29404
29405 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
29406
29407 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
29408 partition map couldn't be identified.
29409
29410 2009-07-23 Pavel Roskin <proski@gnu.org>
29411
29412 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
29413 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
29414 case of little endian words becomes just an optimization.
29415 Respect const modifier.
29416 (md5_final): Use code that doesn't depend on endianness.
29417
29418 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
29419 to avoid loss of upper bits if align is unsigned and shorter
29420 than addr.
29421
29422 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29423
29424 UUID support for UFS
29425
29426 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
29427 (grub_ufs_uuid): New function.
29428 (grub_ufs_fs): add .uuid
29429
29430 2009-07-21 Pavel Roskin <proski@gnu.org>
29431
29432 * kern/dl.c (grub_dl_check_header): Make static.
29433
29434 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
29435
29436 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
29437 add drivemap for Vista. It breaks Windows 7.
29438
29439 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29440
29441 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
29442 128 bytes
29443
29444 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29445
29446 Add BFS support
29447
29448 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
29449 (grub_fstest_SOURCES): Likewise.
29450 (pkglib_MODULES): Add befs.mod.
29451 (befs_mod_SOURCES): New variable.
29452 (befs_mod_CFLAGS): Likewise.
29453 (befs_mod_LDFLAGS): Likewise.
29454 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29455 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29456 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29457 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29458 (grub_setup_SOURCES): Likewise.
29459 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29460 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29461 (grub_setup_SOURCES): Likewise.
29462 * fs/befs.c: New file.
29463 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
29464 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
29465 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
29466 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
29467 (B_KEY_INDEX_ALIGN): New declaration.
29468 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
29469 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
29470 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
29471 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
29472 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
29473 (grub_afs_mount) [MODE_BFS]: Likewise.
29474 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
29475 (grub_afs_fs): Use GRUB_AFS_FSNAME
29476 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
29477 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
29478 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
29479 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
29480
29481 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
29482
29483 * util/getroot.c (find_root_device): Add support for MacOSX.
29484 * util/hostdisk.c: Likewise.
29485
29486 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29487
29488 * font/font.c (find_glyph): Check whether a font is present to avoid
29489 segmentation fault.
29490
29491 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
29492
29493 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
29494
29495 2009-07-20 Pavel Roskin <proski@gnu.org>
29496
29497 * configure.ac: Trim excessively wordy excuses.
29498
29499 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29500
29501 Add symlink, mtime and label support to AtheFS.
29502
29503 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
29504 (grub_afs_iterate_dir): Handle symlinks.
29505 (grub_afs_open): Use grub_afs_read_symlink.
29506 (grub_afs_dir): Likewise.
29507 Pass mtime.
29508 (grub_afs_label): New function.
29509 (grub_afs_fs): Add grub_afs_label.
29510 (grub_afs_read_symlink): New function.
29511
29512 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29513
29514 Fix AtheFS support.
29515
29516 * fs/afs.c: Fix comments style.
29517 (grub_afs_blockrun): Declare as packed.
29518 (grub_afs_datastream): Likewise.
29519 (grub_afs_bnode): Likewise.
29520 (grub_afs_btree): Likewise.
29521 (grub_afs_sblock): Likewise.
29522 Declare `name' as char.
29523 (grub_afs_inode): Declare as packed.
29524 Change void *vnode to grub_uint32_t unused.
29525 (grub_afs_iterate_dir): Check that key_size is positive.
29526 (grub_afs_mount): Don't read superblock twice.
29527 (grub_afs_dir): Don't free node in case of error,
29528 grub_fshelp_find_file already handles this.
29529 (grub_afs_open): Likewise.
29530
29531 2009-07-19 Pavel Roskin <proski@gnu.org>
29532
29533 * Makefile.in: Remove LIBLZO and enable_lzo.
29534 * conf/i386-pc.rmk: Remove lzo support.
29535 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
29536 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
29537 support.
29538 * kern/i386/pc/lzo1x.S: Remove.
29539 * kern/i386/pc/startup.S: Remove lzo support.
29540 * util/i386/pc/grub-mkimage.c: Likewise.
29541
29542 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
29543
29544 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
29545 * fs/xfs.c (grub_xfs_dir): Likewise.
29546 * fs/afs.c (grub_afs_dir): Likewise.
29547 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
29548 (grub_iso9660_open): Likewise.
29549 * fs/jfs.c (grub_jfs_open): Likewise.
29550 * fs/ext2.c (grub_ext2_dir): Likewise.
29551 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
29552 * script/sh/lexer.c (grub_script_yylex): Likewise.
29553
29554 2009-07-16 Pavel Roskin <proski@gnu.org>
29555
29556 * configure.ac: Never add "-c" to CFLAGS.
29557
29558 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
29559
29560 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
29561 grub_cv_cc_efiemu should be used.
29562
29563 * configure.ac: Typo fixes.
29564
29565 * kern/mm.c (grub_zalloc): New function.
29566 (grub_debug_zalloc): Likewise.
29567 * include/grub/mm.h: Declare grub_zalloc() and
29568 grub_debug_zalloc().
29569 * util/misc.c (grub_zalloc): New function.
29570 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
29571 instead of grub_malloc(), remove unneeded initializations.
29572 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
29573 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
29574 * commands/parttool.c (grub_cmd_parttool): Likewise.
29575 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
29576 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
29577 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
29578 * disk/usbms.c (grub_usbms_finddevs): Likewise.
29579 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
29580 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
29581 (grub_cmd_efiemu_pnvram): Likewise.
29582 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
29583 * fs/iso9660.c (grub_iso9660_mount): Likewise.
29584 (grub_iso9660_iterate_dir): Likewise.
29585 * fs/jfs.c (grub_jfs_opendir): Likewise.
29586 * fs/ntfs.c (list_file): Likewise.
29587 (grub_ntfs_mount): Likewise.
29588 * kern/disk.c (grub_disk_open): Likewise.
29589 * kern/dl.c (grub_dl_load_core): Likewise.
29590 * kern/elf.c (grub_elf_file): Likewise.
29591 * kern/env.c (grub_env_context_open): Likewise.
29592 (grub_env_set): Likewise.
29593 (grub_env_set_data_slot): Likewise.
29594 * kern/file.c (grub_file_open): Likewise.
29595 * kern/fs.c (grub_fs_blocklist_open): Likewise.
29596 * loader/i386/multiboot.c (grub_module): Likewise.
29597 * loader/xnu.c (grub_xnu_create_key): Likewise.
29598 (grub_xnu_create_value): Likewise.
29599 * normal/main.c (grub_normal_add_menu_entry): Likewise.
29600 (read_config_file): Likewise.
29601 * normal/menu_entry.c (make_screen): Likewise.
29602 * partmap/sun.c (sun_partition_map_iterate): Likewise.
29603 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
29604 * script/sh/script.c (grub_script_parse): Likewise.
29605 * video/bitmap.c (grub_video_bitmap_create): Likewise.
29606 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
29607 * video/readers/png.c (grub_png_output_byte): Likewise.
29608 (grub_video_reader_png): Likewise.
29609
29610 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29611
29612 Enable all targets that can be built by default
29613
29614 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
29615 grub-mkfont and grub-fstest if they can be built
29616
29617 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29618
29619 Fix hang and segmentation fault in grub-emu-usb
29620
29621 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
29622 * util/usb.c (grub_libusb_devices): likewise
29623 (grub_libusb_init): rename to ...
29624 (GRUB_MOD_INIT (libusb)):...this
29625 (grub_libusb_fini): rename to ..
29626 (GRUB_MOD_FINI (libusb)):...this
29627 * disk/usbms.c (grub_usbms_transfer): fix retry logic
29628 * include/grub/disk.h (grub_raid_init): removed, it's useless
29629 (grub_raid_fini): likewise
29630 (grub_lvm_init): likewise
29631 (grub_lvm_fini): likewise
29632 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
29633 by grub_init_all
29634
29635 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29636
29637 Fix libusb
29638
29639 * Makefile.in (LIBUSB): new macro
29640 * genmk.rb (Utility/print_tail): new method
29641 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
29642 (top level): call util.print_tail at the end.
29643
29644 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29645
29646 Make FreeBSD accept zpool.cache
29647
29648 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
29649 type is /boot/zfs/zpool.cache
29650
29651 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29652
29653 Fix 64-bit efiemu
29654
29655 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
29656 correct wrong typedef
29657 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
29658
29659 2009-07-15 Pavel Roskin <proski@gnu.org>
29660
29661 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
29662 * kern/disk.c (struct grub_disk_cache): Likewise.
29663
29664 * commands/probe.c (options): Typo fix.
29665
29666 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
29667 Increase to 0x5a to accommodate FAT32. Adjust other offsets
29668 accordingly.
29669 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
29670
29671 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
29672 the end of "Error" to make the message more readable.
29673
29674 * boot/i386/pc/boot.S (kernel_segment): Remove.
29675 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
29676 for destination.
29677
29678 * boot/i386/pc/boot.S (boot_version): Remove.
29679 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
29680 Remove.
29681
29682 * include/grub/i386/pc/boot.h: Sort all offsets.
29683 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
29684 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
29685 * boot/i386/pc/boot.S: Assert location of every offset listed in
29686 include/grub/i386/pc/boot.h.
29687
29688 2009-07-13 Pavel Roskin <proski@gnu.org>
29689
29690 * include/grub/i386/coreboot/machine.h: Rename
29691 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
29692 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
29693 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
29694
29695 * kern/dl.c: Force native word size to suppress warnings when
29696 compiling grub-emu.
29697
29698 * kern/device.c (grub_device_iterate): Change struct part_ent to
29699 hold the name, not a pointer to it. Use one grub_malloc() per
29700 partition, not two. Free partition_name if grub_malloc() fails.
29701 Set ents to NULL only before grub_partition_iterate() is called.
29702
29703 2009-07-11 Bean <bean123ch@gmail.com>
29704
29705 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
29706 childname.
29707
29708 2009-07-10 Bean <bean123ch@gmail.com>
29709 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
29710
29711 * kern/ieee1275/openfw.c (grub_children_iterate)
29712 (grub_devalias_iterate): Fix size evaluation for property or path
29713 strings, which was broken since r2132.
29714
29715 2009-07-07 Pavel Roskin <proski@gnu.org>
29716
29717 * commands/search.c (search_file): Merge into ...
29718 (search_fs): ... this. Accept search type as argument.
29719 (grub_cmd_search): Pass search type to search_fs().
29720
29721 * include/grub/util/console.h: New file.
29722 * util/console.c: Use it instead of grub/machine/console.h.
29723 * util/grub-emu.c: Likewise.
29724
29725 * lib/arg.c (find_long_option): Remove.
29726 (find_long): Add `len' argument, make `s' const char *.
29727 (grub_arg_parse): Parse long options in place, not in a
29728 temporary buffer.
29729
29730 2009-07-06 Pavel Roskin <proski@gnu.org>
29731
29732 * commands/search.c (search_fs): Fix potential NULL pointer
29733 dereference.
29734
29735 * commands/search.c (search_fs): Replace QUID macro with quid_fn
29736 function pointer.
29737
29738 2009-07-06 Daniel Mierswa <impulze@impulze.org>
29739
29740 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
29741 comparison.
29742
29743 2009-07-05 Pavel Roskin <proski@gnu.org>
29744
29745 * include/grub/i386/linux.h (struct linux_kernel_params):
29746 Restore padding3, it's still needed.
29747
29748 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
29749 FreeBSD.
29750 * util/osdetect.lua: Likewise.
29751
29752 2009-07-05 Bean <bean123ch@gmail.com>
29753
29754 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
29755
29756 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
29757 (grub_lua_getenv): Likewise.
29758 (grub_lua_setenv): Likewise.
29759 (save_errno): New function.
29760 (push_result): Likewise.
29761 (grub_lua_enum_device): Likewise.
29762 (grub_lua_enum_file): Likewise.
29763 (grub_lua_file_open): Likewise.
29764 (grub_lua_file_close): Likewise.
29765 (grub_lua_file_seek): Likewise.
29766 (grub_lua_file_read): Likewise.
29767 (grub_lua_file_getline): Likewise.
29768 (grub_lua_file_getsize): Likewise.
29769 (grub_lua_file_getpos): Likewise.
29770 (grub_lua_file_eof): Likewise.
29771 (grub_lua_file_exist): Likewise.
29772 (grub_lua_add_menu): Likewise.
29773
29774 * script/lua/grub_lua.h (isupper): New inline function.
29775 (islower): Likewise.
29776 (ispunct): Likewise.
29777 (isxdigit): Likewise.
29778 (strcspn): Change to normal function.
29779 (strpbkr): New function declaration.
29780 (memchr): Likewise.
29781
29782 * script/lua/grub_main.c (scan_str): New function.
29783 (strcspn): Likewise.
29784 (strpbrk): Likewise.
29785 (memchr): Likewise.
29786
29787 * script/lua/linit.c (lualibs): Enable the string library.
29788
29789 * util/osdetect.lua: New file.
29790
29791 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
29792
29793 * include/grub/i386/linux.h (struct linux_kernel_params): Add
29794 `capabilities' member.
29795
29796 2009-07-02 Pavel Roskin <proski@gnu.org>
29797
29798 * genparttoollist.sh: Add missing newline at the end.
29799
29800 2009-07-01 Pavel Roskin <proski@gnu.org>
29801
29802 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
29803
29804 * util/hostdisk.c (open_device): Remove `const' from
29805 `sysctl_size', as sysctlbyname() can change it (in this case it
29806 doesn't actually happen).
29807
29808 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
29809 using signed long int constants.
29810
29811 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
29812 constant to avoid a warning on FreeBSD.
29813
29814 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
29815 where it's needed.
29816
29817 * Makefile.in: Install include/grub/machine symlink.
29818
29819 * Makefile.in: When installing symlinks, use "cp -fR", which
29820 works on FreeBSD and MacOSX.
29821 From Yves Blusseau <cl7m42e02@sneakemail.com>
29822
29823 * kern/dl.c (grub_dl_resolve_symbol): Make static.
29824 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
29825
29826 * util/misc.c: Move grub_reboot() and grub_halt() ...
29827 * util/grub-emu.c: ... here. Make main_env static.
29828 * include/grub/util/misc.h: Remove main_env.
29829
29830 * kern/mm.c: Use correct format to print size_t.
29831
29832 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
29833 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
29834 * kern/powerpc/dl.c: Likewise.
29835 * kern/sparc64/dl.c: Likewise.
29836 * kern/x86_64/dl.c: Likewise.
29837
29838 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29839
29840 Fix grub-emu build on sparc64-ieee1275.
29841
29842 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
29843 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
29844
29845 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29846
29847 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
29848 (grub_reboot, grub_halt): New functions.
29849
29850 * util/i386/pc/misc.c: Delete. Update all users.
29851 * util/sparc64/ieee1275/misc.c: Likewise.
29852 * util/powerpc/ieee1275/misc.c: Likewise.
29853
29854 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29855
29856 * conf/i386.rmk (setjmp_mod_SOURCES)
29857 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
29858 * conf/common.rmk (setjmp_mod_SOURCES)
29859 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
29860 to use $(target_cpu).
29861 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
29862 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
29863 * conf/powerpc-ieee1275.rmk: Likewise.
29864 * conf/sparc64-ieee1275.rmk: Likewise.
29865
29866 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
29867 $(target_cpu) for kern/$(target_cpu)/dl.c.
29868 * conf/i386-efi.rmk: Likewise.
29869 * conf/i386-ieee1275.rmk: Likewise.
29870 * conf/x86_64-efi.rmk: Likewise.
29871 * conf/i386-coreboot.rmk: Likewise.
29872 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
29873 $(target_cpu) for kern/$(target_cpu)/dl.c and for
29874 kern/$(target_cpu)/cache.S.
29875 * conf/sparc64-ieee1275.rmk: Likewise.
29876
29877 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29878
29879 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
29880 type to `grub_uint8_t', and adjust `padding9' accordingly.
29881
29882 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29883
29884 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
29885
29886 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
29887 assembly in final jump, using register constraints.
29888
29889 (grub_linux_boot): For text mode, initialize `have_vga' using
29890 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
29891
29892 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
29893 right before the final jump.
29894
29895 Set `video_mode' to 0x3.
29896
29897 Document initialization of `video_page', `video_mode' and
29898 `video_ega_bx'.
29899
29900 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29901
29902 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
29903 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
29904 and set GRUB_LINUX_FLAG_QUIET appropriately.
29905
29906 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29907
29908 Fix build on Debian / sparc.
29909
29910 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
29911
29912 2009-06-28 Pavel Roskin <proski@gnu.org>
29913
29914 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
29915 fix a warning.
29916
29917 * util/grub.d/10_linux.in: Match SUSE style initrd names.
29918
29919 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29920
29921 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
29922 `err'.
29923
29924 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29925
29926 Revert r2338.
29927
29928 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
29929 file can't be opened. grub_file_open() is already supposed to set
29930 grub_errno / grub_errmsg appropriately.
29931 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
29932
29933 2009-06-27 Pavel Roskin <proski@gnu.org>
29934 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29935
29936 * include/grub/dl.h: Include grub/elf.h.
29937 (struct grub_dl): Add symtab field.
29938 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
29939 GRUB_MODULES_MACHINE_READONLY.
29940 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
29941 of the header for read-only modules.
29942 (grub_dl_unload): Free mod->symtab for read-only modules.
29943 * kern/i386/dl.c: Use mod->symtab.
29944 * kern/powerpc/dl.c: Likewise.
29945 * kern/sparc64/dl.c: Likewise.
29946 * kern/x86_64/dl.c: Likewise.
29947
29948 * conf/i386-qemu.rmk: New file.
29949 * kern/i386/qemu/startup.S: Likewise.
29950 * kern/i386/qemu/mmap.c: Likewise.
29951 * boot/i386/qemu/boot.S: Likewise.
29952 * include/grub/i386/qemu/time.h: Likewise.
29953 * include/grub/i386/qemu/serial.h: Likewise.
29954 * include/grub/i386/qemu/kernel.h: Likewise.
29955 * include/grub/i386/qemu/console.h: Likewise.
29956 * include/grub/i386/qemu/boot.h: Likewise.
29957 * include/grub/i386/qemu/init.h: Likewise.
29958 * include/grub/i386/qemu/machine.h: Likewise.
29959 * include/grub/i386/qemu/loader.h: Likewise.
29960 * include/grub/i386/qemu/memory.h: Likewise.
29961
29962 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
29963 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
29964 [qemu] (pkglib_IMAGES): Add `boot.img'.
29965 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
29966 [qemu] (boot_img_FORMAT): New variables.
29967 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
29968 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
29969 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
29970 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
29971 [qemu] (kernel_img_FORMAT): New variables.
29972
29973 * configure.ac: Recognise `i386-qemu'.
29974
29975 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
29976 (for no compression).
29977 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
29978 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
29979 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
29980 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
29981 ifdefs).
29982
29983 2009-06-27 Pavel Roskin <proski@gnu.org>
29984
29985 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
29986 read.
29987 * efiemu/prepare32.c: Likewise.
29988 * efiemu/prepare64.c: Likewise.
29989
29990 2009-06-26 Pavel Roskin <proski@gnu.org>
29991
29992 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
29993 * include/grub/elf.h: Define symbols without "32" or "64" based
29994 on GRUB_TARGET_WORDSIZE.
29995 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
29996 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
29997 ELF definitions.
29998 * efiemu/loadcore64.c: Likewise.
29999 * loader/i386/bsd32.c: Likewise.
30000 * loader/i386/bsd64.c: Likewise.
30001 * kern/dl.c: Remove own ELF definitions.
30002 * util/i386/efi/grub-mkimage.c: Likewise.
30003
30004 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
30005
30006 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
30007 segment 0x0 unconditionally, because the reference generated by
30008 GAS is an absolute address.
30009
30010 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30011
30012 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
30013 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
30014
30015 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30016
30017 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
30018 indexes. Check for -f explicitly.
30019 (search_file): Improve error message.
30020 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
30021
30022 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30023
30024 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
30025 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
30026
30027 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30028
30029 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
30030 * conf/i386-ieee1275.rmk: Likewise.
30031 * conf/i386-coreboot.rmk: Likewise.
30032
30033 * kern/i386/pc/startup.S (grub_stop): Remove function.
30034 * kern/i386/ieee1275/startup.S: Likewise.
30035 * kern/i386/coreboot/startup.S: Likewise.
30036 * kern/i386/misc.S (grub_stop): New function.
30037
30038 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30039
30040 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
30041 * kern/i386/realmode.S (real_to_prot): ... to here.
30042
30043 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30044
30045 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
30046 with `kernel.img'.
30047 (kernel_elf_SOURCES): Rename to ...
30048 (kernel_img_SOURCES): ... this.
30049 (kernel_elf_HEADERS): Rename to ...
30050 (kernel_img_HEADERS): ... this. Update all users.
30051 (kernel_elf_ASFLAGS): Rename to ...
30052 (kernel_img_ASFLAGS): ... this.
30053 (kernel_elf_CFLAGS): Rename to ...
30054 (kernel_img_CFLAGS): ... this.
30055 (kernel_elf_LDFLAGS): Rename to ...
30056 (kernel_img_LDFLAGS): ... this.
30057 * conf/i386-coreboot.rmk: Likewise.
30058 * conf/powerpc-ieee1275.rmk: Likewise.
30059
30060 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
30061 with "kernel.img".
30062
30063 2009-06-21 Pavel Roskin <proski@gnu.org>
30064
30065 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
30066 to match nested functions.
30067 * loader/sparc64/ieee1275/linux.c: Likewise.
30068
30069 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
30070
30071 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30072
30073 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
30074 all i386 platforms.
30075
30076 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30077
30078 Fix asm file handling on ELF, and remove workarounds.
30079
30080 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
30081 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
30082 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
30083 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
30084
30085 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
30086
30087 Load BSD ELF modules
30088
30089 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
30090 and loader/i386/bsd64.c
30091 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
30092 (FREEBSD_MODTYPE_ELF_MODULE): New definition
30093 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
30094 (grub_freebsd_load_elfmodule32): New declaration
30095 (grub_freebsd_load_elfmoduleobj64): Likewise
30096 (grub_freebsd_load_elf_meta32): Likewise
30097 (grub_freebsd_load_elf_meta64): Likewise
30098 (grub_freebsd_add_meta): Likewise
30099 (grub_freebsd_add_meta_module): Likewise
30100 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
30101 (grub_freebsd_add_meta_module): Likewise and move module-specific
30102 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
30103 (grub_cmd_freebsd): Add elf-kernel specific parts
30104 based on grub_freebsd_add_meta_module
30105 (grub_cmd_freebsd_module): Add type parsing moved from
30106 grub_freebsd_add_meta_module
30107 (grub_cmd_freebsd_module_elf): New function
30108 (cmd_freebsd_module_elf): New variable
30109 (GRUB_MOD_INIT): Register freebsd_module_elf
30110 * loader/i386/bsd32.c: New file
30111 * loader/i386/bsd64.c: Likewise
30112 * loader/i386/bsdXX.c: Likewise
30113 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
30114 (grub_elf64_load): Likewise
30115 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
30116 All users updated
30117 (grub_elf64_load_hook_t): Likewise
30118
30119 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
30120
30121 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
30122 variable.
30123 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
30124 don't write a menu entry for recovery mode.
30125
30126 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30127
30128 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
30129 after it's no longer needed.
30130
30131 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30132
30133 * include/grub/i386/loader.h (grub_linux_prot_size)
30134 (grub_linux_tmp_addr, grub_linux_real_addr)
30135 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
30136 GRUB_MACHINE_PCBIOS.
30137 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
30138 common grub_util_info() call to ...
30139 (generate_image): ... here.
30140 Fix use of uninitialized memory, comparison of signed with
30141 unsigned integers and memory leak.
30142 Remove bogus module address message.
30143
30144 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
30145
30146 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
30147 grub_raid_register
30148 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
30149
30150 2009-06-19 Pavel Roskin <proski@gnu.org>
30151
30152 * configure.ac: Remove stray AC_MSG_CHECKING.
30153
30154 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
30155
30156 * disk/scsi.c (grub_scsi_open): use continue instead of big if
30157
30158 2009-06-18 Pavel Roskin <proski@gnu.org>
30159
30160 * conf/common.rmk: Add fs_file.mod.
30161 * disk/fs_file.c: New file.
30162 * include/grub/disk.h (enum grub_disk_dev_id): Add
30163 GRUB_DISK_DEVICE_FILE_ID.
30164
30165 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30166
30167 Fix build with Apple's toolchain. Part 2
30168
30169 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
30170 a fake start
30171
30172 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30173
30174 Fix build with Apple's toolchain. Part 1
30175
30176 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
30177 for long calls
30178 * configure.ac: remove a leftover AC_MSG_RESULT
30179 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
30180 Apple's toolchain
30181
30182 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30183
30184 Fix warnings
30185
30186 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
30187 (decomp_block): initialize ch
30188 use grub_memcpy instead of memcpy
30189
30190 2009-06-17 Pavel Roskin <proski@gnu.org>
30191
30192 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
30193 version, use declarations needed to use vga_text as the startup
30194 console.
30195
30196 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
30197 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
30198 the kernel.
30199 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
30200 and grub_at_keyboard_fini(), it's done on module load and
30201 unload.
30202
30203 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
30204
30205 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
30206 file can't be found.
30207 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30208
30209 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30210
30211 Fix newline handling
30212
30213 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
30214 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
30215 (grub_script_yylex): don't segfault on unterminated script
30216 newline terminates command and variable
30217
30218 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30219
30220 avoid double grub_adjust_range call. Bug reported by David Simner
30221
30222 * kern/disk.c (grub_disk_write): change to raw disk access before
30223 calling disk_read
30224
30225 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
30226
30227 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
30228 spaces, for the benefit of help2man.
30229 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30230
30231 2009-06-16 Pavel Roskin <proski@gnu.org>
30232
30233 * kern/i386/halt.c: Include grub/machine/init.h.
30234 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
30235
30236 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
30237
30238 * util/grub.d/30_os-prober.in: Use ${root} in the generated
30239 drivemap menuentry.
30240
30241 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
30242
30243 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
30244 `echo' command.
30245
30246 2009-06-16 Pavel Roskin <proski@gnu.org>
30247
30248 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
30249 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
30250 save %dx, we only need %dl and we never change it.
30251 * boot/i386/pc/cdboot.S: Don't set the root drive.
30252 * boot/i386/pc/pxeboot.S: Likewise.
30253 * include/grub/i386/pc/boot.h: Remove
30254 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
30255 GRUB_BOOT_MACHINE_DRIVE_CHECK.
30256 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
30257 * kern/i386/pc/init.c (make_install_device): Remove references
30258 to grub_root_drive.
30259 * kern/i386/pc/startup.S: Likewise.
30260 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
30261
30262 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30263
30264 xnu_uuid command
30265
30266 * commands/xnu_uuid.c: new file
30267 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
30268 (xnu_uuid_mod_SOURCES): new variable
30269 (xnu_uuid_mod_CFLAGS): likewise
30270 (xnu_uuid_mod_LDFLAGS): likewise
30271 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30272 * conf/i386-ieee1275.rmk: likewise
30273 * conf/i386-pc.rmk: likewise
30274 * conf/powerpc-ieee1275.rmk: likewise
30275 * conf/sparc64-ieee1275.rmk: likewise
30276 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
30277
30278 2009-06-16 Pavel Roskin <proski@gnu.org>
30279
30280 * configure.ac: Avoid '==' in test command, it's not portable.
30281
30282 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30283
30284 Probe command
30285
30286 * commands/probe.c: new file
30287 * conf/common.rmk (pkglib_MODULES): add probe.mod
30288 (probe_mod_SOURCES): new variable
30289 (probe_mod_CFLAGS): likewise
30290 (probe_mod_LDFLAGS): likewise
30291 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30292 * conf/i386-ieee1275.rmk: likewise
30293 * conf/i386-pc.rmk: likewise
30294 * conf/powerpc-ieee1275.rmk: likewise
30295 * conf/sparc64-ieee1275.rmk: likewise
30296
30297 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
30298
30299 Fix handling of string like \"hello\" and "a
30300 b"
30301
30302 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
30303 (grub_script_yylex): fix parsing of quoting, escaping and newline
30304
30305 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
30306
30307 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
30308 handling
30309
30310 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
30311
30312 * util/grub-mkconfig.in: Fix parsing of --output option.
30313
30314 2009-06-12 Pavel Roskin <proski@gnu.org>
30315
30316 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
30317 genmk.rb don't need to be generated or installed.
30318
30319 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
30320
30321 * commands/i386/pc/drivemap_int13h.S: add more comments
30322
30323 2009-06-11 Pavel Roskin <proski@gnu.org>
30324
30325 * Makefile.in (uninstall): Uninstall manuals.
30326
30327 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
30328 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
30329 and update-grub_lib in two places.
30330 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
30331
30332 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
30333 a compiler warning.
30334
30335 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
30336 `entry_lo' to fix variable shadowing.
30337
30338 2009-06-11 Christian Franke <franke@computer.org>
30339
30340 * kern/misc.c (__enable_execute_stack): Add missing return type
30341 to prevent gcc warning.
30342
30343 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30344
30345 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
30346
30347 2009-06-11 Pavel Roskin <proski@gnu.org>
30348
30349 * Makefile.in: Don't rely on any scripts being executable.
30350 Always use $(SHELL) to run shell scripts.
30351
30352 * configure.ac: Always define ___main if using -nostdlib. This
30353 fixes tests on Cygwin.
30354
30355 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
30356
30357 UDF fix
30358
30359 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
30360 is in bytes and not in blocks
30361
30362 2009-06-11 Pavel Roskin <proski@gnu.org>
30363
30364 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
30365 warning.
30366
30367 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30368
30369 * util/grub.d/30_os-prober.in: Fix a comment. Source
30370 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
30371 to set the root device. Place drivemap command in the generated
30372 chain entry.
30373
30374 2009-06-11 Pavel Roskin <proski@gnu.org>
30375
30376 * configure.ac: Remove host_m32. Issues with 64-bit utilities
30377 have long been resolved.
30378
30379 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
30380
30381 * util/grub.d/10_linux.in: Capitalise "Linux".
30382
30383 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
30384
30385 2009-06-11 Pavel Roskin <proski@gnu.org>
30386
30387 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
30388 fix a gcc warning and ensure that the function won't ever exit.
30389
30390 * kern/i386/ieee1275/init.c: Add missing prototype for
30391 grub_stop_floppy().
30392
30393 * loader/ieee1275/multiboot2.c [__i386__]: Include
30394 grub/cpu/multiboot.h.
30395
30396 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
30397 casts to short - they are not portable and cause warnings. Fix
30398 use of uninitialized values in input_buf. Use ARRAY_SIZE.
30399
30400 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
30401
30402 Drivemap fixes
30403
30404 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
30405 new function
30406 (grub_get_root_biosnumber_saved): new variable
30407 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
30408 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
30409 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
30410 %dx after the call if necessary
30411 * conf/common.rmk (pkglib_MODULES): remove boot.mod
30412 (boot_mod_SOURCES): remove
30413 (boot_mod_CFLAGS): remove
30414 (boot_mod_LDFLAGS): remove
30415 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
30416 (boot_mod_SOURCES): new variable
30417 (boot_mod_CFLAGS): likewise
30418 (boot_mod_LDFLAGS): likewise
30419 * conf/i386-efi.rmk: likewise
30420 * conf/i386-ieee1275.rmk: likewise
30421 * conf/i386-pc.rmk: likewise
30422 * conf/powerpc-ieee1275.rmk: likewise
30423 * conf/sparc64-ieee1275.rmk: likewise
30424 * conf/x86_64-efi.rmk: likewise
30425 * include/grub/i386/pc/biosnum.h: new file
30426 * lib/i386/pc/biosnum.c: likewise
30427 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
30428 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
30429 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
30430
30431 2009-06-10 Pavel Roskin <proski@gnu.org>
30432
30433 * io/gzio.c (test_header): Don't reuse one buffer for all data.
30434 Use separate variables. Read only the file size at the end, but
30435 not the checksum that we don't use.
30436
30437 * kern/file.c (grub_file_read): Use void pointer for the buffer.
30438 Adjust all callers.
30439
30440 * kern/ieee1275/openfw.c: Remove libc includes.
30441 * kern/ieee1275/cmain.c: Likewise.
30442 * include/grub/ieee1275/ieee1275.h: Likewise.
30443
30444 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
30445 compiler warnings.
30446
30447 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30448
30449 * Makefile.in: Remove all trailing whitespace.
30450 * conf/i386-pc.rmk: Likewise.
30451 * conf/powerpc-ieee1275.rmk: Likewise.
30452 * conf/sparc64-ieee1275.rmk: Likewise.
30453 * docs/grub.texi: Likewise.
30454 * docs/texinfo.tex: Likewise.
30455 * disk/fs_uuid.c: Likewise.
30456 * disk/lvm.c: Likewise.
30457 * disk/scsi.c: Likewise.
30458 * disk/ata.c: Likewise.
30459 * disk/ieee1275/ofdisk.c: Likewise.
30460 * disk/i386/pc/biosdisk.c: Likewise.
30461 * disk/host.c: Likewise.
30462 * disk/raid.c: Likewise.
30463 * disk/efi/efidisk.c: Likewise.
30464 * disk/usbms.c: Likewise.
30465 * disk/memdisk.c: Likewise.
30466 * disk/loopback.c: Likewise.
30467 * kern/powerpc/dl.c: Likewise.
30468 * kern/device.c: Likewise.
30469 * kern/dl.c: Likewise.
30470 * kern/sparc64/dl.c: Likewise.
30471 * kern/ieee1275/ieee1275.c: Likewise.
30472 * kern/term.c: Likewise.
30473 * kern/fs.c: Likewise.
30474 * kern/i386/dl.c: Likewise.
30475 * kern/i386/pc/startup.S: Likewise.
30476 * kern/i386/pc/init.c: Likewise.
30477 * kern/i386/pc/mmap.c: Likewise.
30478 * kern/i386/pc/lzo1x.S: Likewise.
30479 * kern/i386/ieee1275/init.c: Likewise.
30480 * kern/i386/realmode.S: Likewise.
30481 * kern/i386/tsc.c: Likewise.
30482 * kern/partition.c: Likewise.
30483 * kern/corecmd.c: Likewise.
30484 * kern/file.c: Likewise.
30485 * kern/efi/efi.c: Likewise.
30486 * kern/efi/init.c: Likewise.
30487 * kern/efi/mm.c: Likewise.
30488 * kern/main.c: Likewise.
30489 * kern/err.c: Likewise.
30490 * kern/env.c: Likewise.
30491 * kern/disk.c: Likewise.
30492 * kern/generic/millisleep.c: Likewise.
30493 * kern/generic/rtc_get_time_ms.c: Likewise.
30494 * kern/misc.c: Likewise.
30495 * kern/parser.c: Likewise.
30496 * genmk.rb: Likewise.
30497 * configure.ac: Likewise.
30498 * boot/i386/pc/diskboot.S: Likewise.
30499 * boot/i386/pc/pxeboot.S: Likewise.
30500 * boot/i386/pc/boot.S: Likewise.
30501 * boot/i386/pc/lnxboot.S: Likewise.
30502 * boot/i386/pc/cdboot.S: Likewise.
30503 * parttool/pcpart.c: Likewise.
30504 * video/readers/tga.c: Likewise.
30505 * video/video.c: Likewise.
30506 * video/bitmap.c: Likewise.
30507 * lib/envblk.c: Likewise.
30508 * lib/i386/setjmp.S: Likewise.
30509 * fs/xfs.c: Likewise.
30510 * fs/afs.c: Likewise.
30511 * fs/fat.c: Likewise.
30512 * fs/ntfs.c: Likewise.
30513 * fs/udf.c: Likewise.
30514 * fs/affs.c: Likewise.
30515 * fs/iso9660.c: Likewise.
30516 * fs/hfs.c: Likewise.
30517 * fs/fshelp.c: Likewise.
30518 * fs/ext2.c: Likewise.
30519 * fs/jfs.c: Likewise.
30520 * fs/reiserfs.c: Likewise.
30521 * fs/hfsplus.c: Likewise.
30522 * fs/minix.c: Likewise.
30523 * fs/cpio.c: Likewise.
30524 * fs/sfs.c: Likewise.
30525 * fs/ufs.c: Likewise.
30526 * efiemu/prepare.c: Likewise.
30527 * efiemu/loadcore_common.c: Likewise.
30528 * efiemu/runtime/efiemu.sh: Likewise.
30529 * efiemu/runtime/efiemu.S: Likewise.
30530 * efiemu/runtime/efiemu.c: Likewise.
30531 * efiemu/pnvram.c: Likewise.
30532 * efiemu/main.c: Likewise.
30533 * efiemu/i386/pc/cfgtables.c: Likewise.
30534 * efiemu/i386/loadcore64.c: Likewise.
30535 * efiemu/i386/loadcore32.c: Likewise.
30536 * efiemu/loadcore.c: Likewise.
30537 * efiemu/symbols.c: Likewise.
30538 * efiemu/mm.c: Likewise.
30539 * include/grub/autoefi.h: Likewise.
30540 * include/grub/datetime.h: Likewise.
30541 * include/grub/term.h: Likewise.
30542 * include/grub/hfs.h: Likewise.
30543 * include/grub/lvm.h: Likewise.
30544 * include/grub/i386/tsc.h: Likewise.
30545 * include/grub/i386/linux.h: Likewise.
30546 * include/grub/i386/xnu.h: Likewise.
30547 * include/grub/i386/efiemu.h: Likewise.
30548 * include/grub/i386/pc/biosdisk.h: Likewise.
30549 * include/grub/i386/pc/memory.h: Likewise.
30550 * include/grub/i386/pc/vbe.h: Likewise.
30551 * include/grub/parttool.h: Likewise.
30552 * include/grub/video.h: Likewise.
30553 * include/grub/memory.h: Likewise.
30554 * include/grub/fs.h: Likewise.
30555 * include/grub/partition.h: Likewise.
30556 * include/grub/xnu.h: Likewise.
30557 * include/grub/efi/api.h: Likewise.
30558 * include/grub/efi/pe32.h: Likewise.
30559 * include/grub/efi/memory.h: Likewise.
30560 * include/grub/multiboot.h: Likewise.
30561 * include/grub/usbdesc.h: Likewise.
30562 * include/grub/multiboot2.h: Likewise.
30563 * include/grub/acpi.h: Likewise.
30564 * include/grub/efiemu/efiemu.h: Likewise.
30565 * include/grub/disk.h: Likewise.
30566 * include/grub/ieee1275/ieee1275.h: Likewise.
30567 * include/grub/net.h: Likewise.
30568 * include/grub/machoload.h: Likewise.
30569 * include/grub/macho.h: Likewise.
30570 * include/multiboot.h: Likewise.
30571 * genmoddep.awk: Likewise.
30572 * normal/main.c: Likewise.
30573 * normal/menu_entry.c: Likewise.
30574 * normal/menu_viewer.c: Likewise.
30575 * normal/completion.c: Likewise.
30576 * normal/cmdline.c: Likewise.
30577 * normal/misc.c: Likewise.
30578 * normal/datetime.c: Likewise.
30579 * bus/usb/usbtrans.c: Likewise.
30580 * bus/usb/ohci.c: Likewise.
30581 * bus/usb/uhci.c: Likewise.
30582 * bus/usb/usb.c: Likewise.
30583 * mmap/efi/mmap.c: Likewise.
30584 * mmap/i386/pc/mmap_helper.S: Likewise.
30585 * mmap/i386/pc/mmap.c: Likewise.
30586 * mmap/i386/mmap.c: Likewise.
30587 * mmap/i386/uppermem.c: Likewise.
30588 * mmap/mmap.c: Likewise.
30589 * commands/acpi.c: Likewise.
30590 * commands/echo.c: Likewise.
30591 * commands/blocklist.c: Likewise.
30592 * commands/loadenv.c: Likewise.
30593 * commands/usbtest.c: Likewise.
30594 * commands/boot.c: Likewise.
30595 * commands/parttool.c: Likewise.
30596 * commands/search.c: Likewise.
30597 * commands/cat.c: Likewise.
30598 * commands/i386/pc/play.c: Likewise.
30599 * commands/i386/pc/drivemap.c: Likewise.
30600 * commands/i386/pc/vbeinfo.c: Likewise.
30601 * commands/i386/pc/acpi.c: Likewise.
30602 * commands/i386/pc/vbetest.c: Likewise.
30603 * commands/ls.c: Likewise.
30604 * commands/cmp.c: Likewise.
30605 * commands/test.c: Likewise.
30606 * commands/efi/acpi.c: Likewise.
30607 * commands/gptsync.c: Likewise.
30608 * commands/help.c: Likewise.
30609 * partmap/amiga.c: Likewise.
30610 * partmap/apple.c: Likewise.
30611 * partmap/acorn.c: Likewise.
30612 * partmap/pc.c: Likewise.
30613 * partmap/sun.c: Likewise.
30614 * partmap/gpt.c: Likewise.
30615 * script/sh/lexer.c: Likewise.
30616 * script/sh/function.c: Likewise.
30617 * font/font.c: Likewise.
30618 * font/font_cmd.c: Likewise.
30619 * loader/powerpc/ieee1275/linux.c: Likewise.
30620 * loader/efi/chainloader.c: Likewise.
30621 * loader/multiboot_loader.c: Likewise.
30622 * loader/macho.c: Likewise.
30623 * loader/i386/multiboot.c: Likewise.
30624 * loader/i386/linux.c: Likewise.
30625 * loader/i386/pc/linux.c: Likewise.
30626 * loader/i386/pc/multiboot2.c: Likewise.
30627 * loader/i386/pc/chainloader.c: Likewise.
30628 * loader/i386/pc/xnu.c: Likewise.
30629 * loader/i386/bsd_trampoline.S: Likewise.
30630 * loader/i386/efi/linux.c: Likewise.
30631 * loader/i386/multiboot_elfxx.c: Likewise.
30632 * loader/i386/bsd_helper.S: Likewise.
30633 * loader/i386/bsd.c: Likewise.
30634 * loader/i386/linux_trampoline.S: Likewise.
30635 * loader/i386/xnu_helper.S: Likewise.
30636 * loader/i386/xnu.c: Likewise.
30637 * loader/i386/bsd_pagetable.c: Likewise.
30638 * loader/i386/multiboot_helper.S: Likewise.
30639 * loader/xnu.c: Likewise.
30640 * loader/xnu_resume.c: Likewise.
30641 * io/gzio.c: Likewise.
30642 * term/efi/console.c: Likewise.
30643 * term/terminfo.c: Likewise.
30644 * term/ieee1275/ofconsole.c: Likewise.
30645 * term/i386/pc/serial.c: Likewise.
30646 * term/i386/pc/vesafb.c: Likewise.
30647 * term/i386/pc/vga.c: Likewise.
30648 * term/usb_keyboard.c: Likewise.
30649 * term/gfxterm.c: Likewise.
30650 * aclocal.m4: Likewise.
30651 * util/lvm.c: Likewise.
30652 * util/grub.d/30_os-prober.in: Likewise.
30653 * util/grub.d/10_hurd.in: Likewise.
30654 * util/console.c: Likewise.
30655 * util/grub-macho2img.c: Likewise.
30656 * util/grub-probe.c: Likewise.
30657 * util/hostfs.c: Likewise.
30658 * util/i386/pc/grub-mkimage.c: Likewise.
30659 * util/i386/pc/grub-setup.c: Likewise.
30660 * util/i386/efi/grub-mkimage.c: Likewise.
30661 * util/grub-mkconfig.in: Likewise.
30662 * util/raid.c: Likewise.
30663 * util/resolve.c: Likewise.
30664 * util/grub-mkdevicemap.c: Likewise.
30665 * util/grub-emu.c: Likewise.
30666 * util/getroot.c: Likewise.
30667 * util/hostdisk.c: Likewise.
30668 * util/usb.c: Likewise.
30669 * util/grub-editenv.c: Likewise.
30670 * util/misc.c: Likewise.
30671
30672 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30673
30674 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
30675 `genparttoollist.sh'.
30676 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
30677 Add `*.sh' to the list find searches for and change `mdate.sh'
30678 to `mdate-sh'.
30679
30680 2009-06-10 Pavel Roskin <proski@gnu.org>
30681
30682 * include/grub/multiboot2.h: Provide compatibility defines for
30683 multiboot2.h.
30684 * include/multiboot2.h: Include stdint.h only if needed, using
30685 angle brackets.
30686 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
30687 grub/multiboot2.h.
30688 * loader/ieee1275/multiboot2.c: Likewise.
30689 * loader/multiboot2.c: Likewise.
30690 * loader/multiboot_loader.c: Likewise.
30691
30692 * configure.ac: Use -nostdlib when probing for the target. It
30693 should not be required to have libc for the target.
30694
30695 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
30696 they fail without libc headers for the target.
30697 * include/grub/powerpc/libgcc.h: Use weak attribute for all
30698 exports.
30699 * include/grub/sparc64/libgcc.h: Likewise. Don't use
30700 preprocessor conditionals.
30701
30702 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
30703 build system doesn't need to be aware of the tar.c internals.
30704
30705 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
30706
30707 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
30708
30709 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
30710
30711 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
30712 disk limit to 26 for IDE, Virtio, Xen and SCSI.
30713
30714 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
30715
30716 * util/i386/pc/grub-install.in: Change the error message if UUIDs
30717 aren't available if ata.mod gets used.
30718
30719 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
30720
30721 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
30722 initialising controller.
30723 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30724
30725 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30726
30727 * util/i386/pc/grub-install.in: Add a parameter --disk-module
30728 to choose between ata and biosdisk module on i386-pc.
30729
30730 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
30731
30732 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
30733 Subclass and Programming Interface fields in terms of the 3 byte
30734 Class Code register.
30735 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30736
30737 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
30738 interface is OHCI. Add grub_dprintf for symmetry with
30739 bus/usb/uhci.c.
30740 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
30741 interface is UHCI. Add interf variable for programming
30742 interface. Print interface with class/subclass.
30743
30744 * bus/usb/ohci.c: Set interf with correct field.
30745
30746 * bus/usb/uhci.c: Remove unneeded doubled lines.
30747 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
30748 Remove whitespace inside comment.
30749
30750 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
30751
30752 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
30753 as fallback an equivalent option without depth.
30754
30755 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30756
30757 Not fail if unable to retrieve C/H/S on LBA disks
30758
30759 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
30760 if unable to retrieve C/H/S on LBA disks
30761
30762 2009-06-08 Pavel Roskin <proski@gnu.org>
30763
30764 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
30765 about aliasing.
30766
30767 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30768
30769 * Makefile.in (uninstall): Remove all $lib_DATA files.
30770
30771 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30772
30773 Bugfix: install on partitionless device
30774
30775 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
30776 is a whole disk
30777
30778 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30779
30780 * Makefile.in (uninstall): Remove all $include_DATA files.
30781
30782 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30783
30784 * commands/true.c: New file. Implement the true and false commands.
30785 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
30786 (true_mod_SOURCES): New variable.
30787 (true_mod_CFLAGS): Likewise.
30788 (true_mod_LDFLAGS): Likewise.
30789
30790 2009-06-05 Colin D Bennett <colin@gibibit.com>
30791
30792 Optimized font character lookup using binary search instead of linear
30793 search. Fonts now are required to have the character index ordered by
30794 code point.
30795
30796 * font/font.c (load_font_index): Verify that fonts have ordered
30797 character indices.
30798 (find_glyph): Use binary search instead of linear search to find a
30799 character in a font.
30800
30801 2009-06-05 Michael Scherer <misc@mandriva.org>
30802
30803 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
30804 uses case sensitive btree.
30805 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
30806 only for case insensitive filesystems.
30807
30808 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
30809
30810 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
30811 * conf/common.rmk (search_mod_CFLAGS): likewise
30812
30813 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30814
30815 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
30816 compensate a compiler bug
30817
30818 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30819
30820 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
30821 instead of '\b'
30822
30823 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30824
30825 Definitions for creating asm symbols with Apple's CC
30826
30827 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
30828 [APPLE_CC] (VARIABLE): likewise
30829
30830 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30831
30832 Disable lnxboot.img when compiled
30833 with Apple's CC
30834
30835 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
30836 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
30837 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
30838 [! APPLE_CC] (CODE_LENG): skip
30839 [! APPLE_CC] (setup_sects): likewise
30840 [! APPLE_CC]: skip filling
30841
30842 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30843
30844 Address in trampolines based on 32-bit registers when compiled
30845 with Apple's CC
30846
30847 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
30848 for addresses
30849 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
30850
30851 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30852
30853 Avoid aliases when compiling with Apple's CC for PCBIOS machine
30854
30855 * kern/misc.c [APPLE_CC] (memcpy): new function
30856 [APPLE_CC] (memmove): likewise
30857 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
30858 (memcpy): define alias conditionally on !APPLE_CC
30859 (memset): likewise
30860 (abort): likewise
30861 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
30862 APPLE_CC are defined
30863 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
30864 (grub_assert_fail): make prototype conditional
30865
30866 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30867
30868 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
30869
30870 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
30871 grub-macho2img
30872 (CLEANFILES): add grub-macho2img
30873 (grub_macho2img_SOURCES): new variable
30874 * kern/i386/pc/startup.S (bss_start): new variable
30875 (bss_end): likewise
30876 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
30877 * util/grub-macho2img.c: new file
30878
30879 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30880
30881 Use objconv when compiling with Apple's CC
30882
30883 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
30884 (efiemu64.o): likewise
30885 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
30886 when compiling with Apple's CC
30887 (efiemu64_s.o): likewise
30888 * configure.ac: check for objconv when compiling with Apple's CC
30889 * genmk.rb: use objconv for modules when compiled with Apple's CC
30890
30891 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30892
30893 Define segment as well as section when compiling with
30894 Apple's CC
30895
30896 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
30897 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
30898 (efiemu_convert_pointer): likewise
30899 (efiemu_set_virtual_address_map): likewise
30900 (efiemu_convert_pointer): likewise
30901 (efiemu_getcrc32): likewise
30902 (init_crc32_table): likewise
30903 (reflect): likewise
30904 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
30905 (GRUB_MOD_DEP): likewise
30906
30907 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30908
30909 Allow a compilation without -mcmodel=large
30910
30911 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
30912 when compiled without -mcmodel=large
30913 (filter_memory_map): remove memory post 4 GiB when compiled
30914 without -mcmodel=large
30915 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
30916 TARGET_CFLAGS when -mcmodel=large isn't supported
30917
30918 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30919
30920 Remove nested functions in efiemu core
30921
30922 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
30923
30924 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30925
30926 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
30927
30928 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
30929 temporary storage
30930 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
30931 using Apple's CC
30932 (grub_cpu_is_tsc_supported): likewise
30933 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
30934
30935 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30936
30937 Absolute addressing through constant with Apple's cc
30938
30939 * kern/i386/pc/startup.S: Define necessary constants
30940 and address through it when using ABS with Apple's CC
30941 * boot/i386/pc/diskboot.S: likewise
30942 * boot/i386/pc/boot.S: likewise
30943 * boot/i386/pc/lnxboot.S: likewise
30944 * boot/i386/pc/cdboot.S: likewise
30945 * mmap/i386/pc/mmap_helper.S: likewise
30946 * commands/i386/pc/drivemap_int13h.S: likewise
30947
30948 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30949
30950 Check if compiler is apple cc
30951
30952 * Makefile.in (ASFLAGS): new variable
30953 (TARGET_ASFLAGS): likewise
30954 (TARGET_MODULE_FORMAT): likewise
30955 (TARGET_APPLE_CC): likewise
30956 (OBJCONV): likewise
30957 (TARGET_IMG_CFLAGS): likewise
30958 (TARGET_CPPFLAGS): add includedir
30959 * configure.ac: call grub_apple_cc and grub_apple_target_cc
30960 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
30961 Check for linker script only if compiler isn't Apple's CC
30962 (TARGET_MODULE_FORMAT): set
30963 (TARGET_APPLE_CC): likewise
30964 (TARGET_ASFLAGS): likewise
30965 (ASFLAGS): likewise
30966 Check for objcopy only if compiler isn't Apple's CC
30967 Check for BSS symbol only if compiler isn't Apple's CC
30968 * genmk.rb: adapt nm options if we use Apple's utils
30969 * aclocal.m4 (grub_apple_cc): new test
30970 (grub_apple_target_cc): likewise
30971
30972 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30973
30974 Simplify sed expressions and improve awk
30975
30976 * Makefile.in (install-local): simplify sed expression
30977 * gencmdlist.sh: likewise
30978 * genmoddep.awk: avoid adding module as a dependency of itself
30979
30980 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30981
30982 Add missing start symbols
30983
30984 * boot/i386/pc/boot.S: add start
30985 * boot/i386/pc/pxeboot.S: likewise
30986
30987 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30988
30989 Fix wrong assumptions with grub-mkimage on EFI
30990
30991 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
30992 (relocate_addresses): consider both r_addend and value at offset
30993 (make_mods_section): zerofill modinfo and header
30994 (convert_elf): write prefix here
30995
30996 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30997
30998 Use .asciz instead of .string
30999
31000 * i386/pc/diskboot.S: use .asciz instead of .string
31001 * i386/pc/boot.S: likewise
31002 * include/grub/dl.h (GRUB_MOD_DEP): likewise
31003 (GRUB_MOD_NAME): likewise
31004
31005 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31006
31007 gfxpayload support
31008
31009 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
31010 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
31011 (grub_video_setup): remove
31012 (grub_video_set_mode): new prototype
31013 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
31014 (vid_mode): remove
31015 (linux_vesafb_res): compile only on PCBIOS
31016 (grub_linux_boot): support gfxpayload
31017 * loader/i386/pc/xnu.c (video_hook): new function
31018 (grub_xnu_set_video): support gfxpayload
31019 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
31020 (DEFAULT_VIDEO_HEIGHT): likewise
31021 (DEFAULT_VIDEO_FLAGS): likewise
31022 (DEFAULT_VIDEO_MODE): new definition
31023 (video_hook): new function
31024 (grub_gfxterm_init): use grub_video_set_mode
31025 * util/grub.d/30_os-prober.in: remove explicit modesetting before
31026 loading xnu
31027 * video/video.c (grub_video_setup): removed
31028 (grub_video_set_mode): new function based on grub_gfxterm_init and
31029 grub_video_setup
31030
31031 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31032
31033 Avoid calling biosdisk in drivemap
31034
31035 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
31036 (revparse_biosdisk): likewise
31037 (list_mappings): derive name from id directly
31038 (grub_cmd_drivemap): use tryparse_diskstring
31039
31040 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31041
31042 Script fixes
31043
31044 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
31045 (grub_lexer_param): add tokenonhold
31046 (grub_script_create_cmdline): remove cmdline. All callers updated
31047 (grub_script_function_create): make functionname
31048 grub_script_arg. All callers updated
31049 (grub_script_execute_argument_to_string): new prototype
31050 * kern/parser.c (state_transitions): reorder
31051 (grub_parser_cmdline_state): fix a bug and make more compact
31052 * script/sh/execute.c (grub_script_execute_argument_to_string):
31053 make global
31054 (grub_script_execute_cmdline): use new format
31055 * script/sh/function.c (grub_script_function_create): make functionname
31056 grub_script_arg. All callers updated
31057 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
31058 (grub_script_yylex): remove
31059 (grub_script_yylex2): renamed to ...
31060 (grub_script_yylex): ...renamed
31061 parse the expressions like a${b}c
31062 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
31063 (GRUB_PARSER_TOKEN_VAR): remove
31064 (GRUB_PARSER_TOKEN_NAME): likewise
31065 ("if"): declare as typeless
31066 ("while"): likewise
31067 ("function"): likewise
31068 ("else"): likewise
31069 ("then"): likewise
31070 ("fi"): likewise
31071 (text): remove
31072 (argument): likewise
31073 (script): accept empty scripts and make exit on error
31074 (arguments): use GRUB_PARSER_TOKEN_ARG
31075 (function): likewise
31076 (command): move error handling to script
31077 (menuentry): move grub_script_lexer_ref before
31078 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
31079 argument. All callers updated
31080
31081 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31082
31083 Prevent GRUB from probing floppies during boot.
31084
31085 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
31086 * commands/search.c (options): Add --no-floppy.
31087 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
31088 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
31089 --no-floppy when searching for UUIDs.
31090
31091 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31092
31093 Simplify the code duplication in commands/search.c.
31094
31095 * commands/search.c (search_label, search_fs_uuid): Merge into ...
31096 (search_fs): ... this. Update all users.
31097
31098 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
31099
31100 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
31101
31102 2009-05-28 Pavel Roskin <proski@gnu.org>
31103
31104 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
31105 Remove the original symlink explicitly.
31106
31107 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
31108 just one slash. That's how grub_fshelp_find_file() does it.
31109
31110 2009-05-26 Pavel Roskin <proski@gnu.org>
31111
31112 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
31113 to `str'.
31114
31115 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
31116 possibly unused.
31117
31118 2009-05-25 Christian Franke <franke@computer.org>
31119
31120 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
31121 register.
31122 (grub_atapi_identify): Add wait after drive select.
31123 (grub_ata_identify): Do more strict status register check before
31124 calling grub_atapi_identify (). Suppress error message if status
31125 register is 0x00 after command failure. Add status register
31126 check after PIO read to avoid bogus identify due to stuck DRQ.
31127 Thanks to Pavel Roskin for testing.
31128 (grub_device_initialize): Remove unsafe status register check.
31129 Thanks to 'phcoder' for problem report and patch.
31130 Prevent sign extension in debug message.
31131
31132 2009-05-23 Colin D Bennett <colin@gibibit.com>
31133
31134 Cleaned up `include/grub/normal.h'. Grouped prototypes by
31135 definition file, and functions defined in `normal/menu.c' have had
31136 their prototypes moved to `include/grub/menu.h' for consistency.
31137
31138 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
31139 from normal.h.
31140 (grub_menu_get_entry): Likewise.
31141 (grub_menu_get_timeout): Likewise.
31142 (grub_menu_set_timeout): Likewise.
31143 (grub_menu_execute_entry): Likewise.
31144 (grub_menu_execute_with_fallback): Likewise.
31145 (grub_menu_entry_run): Likewise.
31146
31147 * include/grub/normal.h: Re-ordered and grouped function
31148 prototypes by file that the function is defined in.
31149 (grub_menu_execute_callback): Removed; moved to menu.h.
31150 (grub_menu_get_entry): Likewise.
31151 (grub_menu_get_timeout): Likewise.
31152 (grub_menu_set_timeout): Likewise.
31153 (grub_menu_execute_entry): Likewise.
31154 (grub_menu_execute_with_fallback): Likewise.
31155 (grub_menu_entry_run): Likewise.
31156 (grub_menu_addentry): Renamed from this ...
31157 (grub_normal_add_menu_entry): ... to this.
31158
31159 * normal/main.c (grub_menu_addentry): Renamed from this ...
31160 (grub_normal_add_menu_entry): ... to this.
31161
31162 * script/sh/execute.c (grub_script_execute_menuentry): Update
31163 reference to renamed grub_menu_addentry function.
31164
31165 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
31166
31167 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
31168
31169 2009-05-22 Pavel Roskin <proski@gnu.org>
31170
31171 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
31172 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
31173 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
31174 compiling for the i386 targets, but not for the utilities.
31175
31176 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
31177 to grub_uint8_t.
31178 (grub_root_drive): Likewise.
31179 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
31180 remove alignment.
31181 (grub_root_drive): Change size to byte.
31182 (grub_start_addr): Remove.
31183 (grub_end_addr): Likewise.
31184 (grub_apm_bios_info): Likewise.
31185
31186 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
31187
31188 * normal/i386: Remove.
31189 * normal/powerpc: Likewise.
31190 * normal/sparc64: Likewise.
31191 * normal/x86_64: Likewise.
31192
31193 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
31194
31195 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
31196 * loader/i386/linux_trampoline.S: Fix indentation
31197 * loader/i386/xnu_helper.S: Likewise
31198
31199 2009-05-18 Colin D Bennett <colin@gibibit.com>
31200
31201 Display error messages when parsing a Lua statement fails.
31202 Previously, executing a syntactically invalid statement like
31203 ")foo" or "bar;" would silently fail.
31204
31205 * script/lua/grub_main.c (handle_lua_error): New function.
31206 (grub_lua_parse_line): Improved reporting of Lua parser and
31207 execution errors.
31208
31209 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31210
31211 Remove -Werror which causes build to fail on some systems
31212
31213 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
31214 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
31215 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
31216
31217 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31218
31219 trampoline for linux on 64-bit platform
31220
31221 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
31222 loader/i386/efi/linux_trampoline.S
31223 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
31224 declaration
31225 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
31226 here
31227 * loader/i386/linux_trampoline.S: moved here
31228 * loader/i386/efi/linux.c (allocate_pages): reserve space for
31229 trampoline
31230 (jumpvector): removed
31231 (grub_linux_trampoline_start): new declaration
31232 (grub_linux_trampoline_end): likewise
31233 (grub_linux_boot): use trampoline when on 64-bit platform
31234 * loader/i386/linux.c: likewise
31235
31236 2009-05-16 Pavel Roskin <proski@gnu.org>
31237
31238 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
31239 const to avoid a warning.
31240 (grub_lua_setenv): Likewise.
31241 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
31242 lmsg to fix a warning.
31243
31244 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
31245
31246 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
31247 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31248 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
31249 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31250 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31251 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31252 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31253 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31254
31255 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
31256
31257 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
31258
31259 2009-05-16 Bean <bean123ch@gmail.com>
31260
31261 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
31262 (lua_mod_SOURCES): New variable.
31263 (lua_mod_CFLAGS): Likewise.
31264 (lua_mod_LDFLAGS): Likewise.
31265
31266 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
31267 (setjmp_mod_SOURCES): New variable.
31268 (setjmp_mod_CFLAGS): Likewise.
31269 (setjmp_LDFLAGS): Likewise.
31270
31271 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
31272 (setjmp_mod_SOURCES): New variable.
31273 (setjmp_mod_CFLAGS): Likewise.
31274 (setjmp_LDFLAGS): Likewise.
31275
31276 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31277 (setjmp_mod_SOURCES): New variable.
31278 (setjmp_mod_CFLAGS): Likewise.
31279 (setjmp_LDFLAGS): Likewise.
31280
31281 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31282 (setjmp_mod_SOURCES): New variable.
31283 (setjmp_mod_CFLAGS): Likewise.
31284 (setjmp_LDFLAGS): Likewise.
31285
31286 * normal/i386/setjmp.S: Moved from here ...
31287 * lib/i386/setjmp.S: ... Moved here
31288 * normal/x86_64/setjmp.S: Moved from here ...
31289 * lib/x86_64/setjmp.S: ... Moved here
31290 * normal/powerpc/setjmp.S: Moved from here ...
31291 * lib/powerpc/setjmp.S: ... Moved here
31292 * normal/sparc64/setjmp.S: Moved from here ...
31293 * lib/sparc64/setjmp.S: ... Moved here
31294
31295 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
31296 returns_twice in mingw.
31297
31298 * script/lua/grub_lib.c: New file.
31299 * script/lua/grub_lib.h: Likewise.
31300 * script/lua/grub_lua.h: Likewise.
31301 * script/lua/grub_main.c: Likewise.
31302 * script/lua/lapi.c: Likewise.
31303 * script/lua/lapi.h: Likewise.
31304 * script/lua/lauxlib.c: Likewise.
31305 * script/lua/lauxlib.h: Likewise.
31306 * script/lua/lbaselib.c: Likewise.
31307 * script/lua/lcode.c: Likewise.
31308 * script/lua/lcode.h: Likewise.
31309 * script/lua/ldblib.c: Likewise.
31310 * script/lua/ldebug.c: Likewise.
31311 * script/lua/ldebug.h: Likewise.
31312 * script/lua/ldo.c: Likewise.
31313 * script/lua/ldo.h: Likewise.
31314 * script/lua/ldump.c: Likewise.
31315 * script/lua/lfunc.c: Likewise.
31316 * script/lua/lfunc.h: Likewise.
31317 * script/lua/lgc.c: Likewise.
31318 * script/lua/lgc.h: Likewise.
31319 * script/lua/linit.c: Likewise.
31320 * script/lua/liolib.c: Likewise.
31321 * script/lua/llex.c: Likewise.
31322 * script/lua/llex.h: Likewise.
31323 * script/lua/llimits.h: Likewise.
31324 * script/lua/lmathlib.c: Likewise.
31325 * script/lua/lmem.c: Likewise.
31326 * script/lua/lmem.h: Likewise.
31327 * script/lua/loadlib.c: Likewise.
31328 * script/lua/lobject.c: Likewise.
31329 * script/lua/lobject.h: Likewise.
31330 * script/lua/lopcodes.c: Likewise.
31331 * script/lua/lopcodes.h: Likewise.
31332 * script/lua/loslib.c: Likewise.
31333 * script/lua/lparser.c: Likewise.
31334 * script/lua/lparser.h: Likewise.
31335 * script/lua/lstate.c: Likewise.
31336 * script/lua/lstate.h: Likewise.
31337 * script/lua/lstring.c: Likewise.
31338 * script/lua/lstring.h: Likewise.
31339 * script/lua/lstrlib.c: Likewise.
31340 * script/lua/ltable.c: Likewise.
31341 * script/lua/ltable.h: Likewise.
31342 * script/lua/ltablib.c: Likewise.
31343 * script/lua/ltm.c: Likewise.
31344 * script/lua/ltm.h: Likewise.
31345 * script/lua/lua.h: Likewise.
31346 * script/lua/luaconf.h: Likewise.
31347 * script/lua/lualib.h: Likewise.
31348 * script/lua/lundump.c: Likewise.
31349 * script/lua/lundump.h: Likewise.
31350 * script/lua/lvm.c: Likewise.
31351 * script/lua/lvm.h: Likewise.
31352 * script/lua/lzio.c: Likewise.
31353 * script/lua/lzio.h: Likewise.
31354
31355 2009-05-16 Bean <bean123ch@gmail.com>
31356
31357 * include/grub/kernel.h (grub_module_header_types): Add type
31358 OBJ_TYPE_CONFIG.
31359
31360 * kern/main.c (grub_load_config): New function.
31361 (grub_main): Call grub_load_config to read boot config.
31362
31363 * grub-mkimage (generate_image): New parameter config_path.
31364 (options): New option --config.
31365 (main): Parse --config option, and pass it to generate_image.
31366
31367 2009-05-14 Christian Franke <franke@computer.org>
31368
31369 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
31370 This fixes build on Cygwin.
31371
31372 2009-05-14 Pavel Roskin <proski@gnu.org>
31373
31374 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
31375 jump. This saves two bytes, so the typical case of 2 swapped
31376 drives would fit 32 bytes.
31377
31378 2009-05-13 Pavel Roskin <proski@gnu.org>
31379
31380 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
31381 grub_uint32_t to avoid a warning.
31382
31383 * loader/i386/linux.c (allocate_pages): When assigning
31384 real_mode_mem, cast through grub_size_t to fix a warning. The
31385 code already makes sure that the value would fit a pointer.
31386 (grub_linux_setup_video): Cast render_target->data to
31387 grub_size_t to fix a warning.
31388
31389 2009-05-13 Javier Martín <lordhabbit@gmail.com>
31390
31391 * commands/i386/pc/drivemap.c: New file - implement drivemap
31392 command.
31393 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
31394 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
31395
31396 2009-05-13 Pavel Roskin <proski@gnu.org>
31397
31398 * util/i386/pc/grub-setup.c (setup): Remove unused variable
31399 embedding_area_exists.
31400
31401 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
31402
31403 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
31404 it easier to understand / work with.
31405 Improve warning messages for cases where there's no embedding area,
31406 or when it is too small (or core.img too large).
31407
31408 2009-05-13 Pavel Roskin <proski@gnu.org>
31409
31410 * loader/i386/pc/multiboot2.c: Add necessary includes for
31411 grub_multiboot2_real_boot().
31412
31413 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
31414 PX record is always little-endian. We only need the lower 2
31415 bytes of the mode.
31416
31417 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
31418 facilitate code reuse.
31419 (grub_cpio_mount): Use "struct head", not a char buffer. This
31420 fixes a warning reported by gcc 4.4.
31421
31422 * kernel/disk.c (grub_disk_read): Use void pointer for the
31423 buffer.
31424 (grub_disk_write): Use const void pointer for the buffer.
31425 Adjust all callers. Remove unnecessary casts.
31426
31427 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
31428
31429 * util/i386/pc/grub-install.in: Update copyright year.
31430
31431 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31432
31433 gptsync
31434
31435 * commands/gptsync.c: new file
31436 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
31437 (gptsync_mod_SOURCES): new variable
31438 (gptsync_mod_CFLAGS): likewise
31439 (gptsync_mod_LDFLAGS): likewise
31440 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
31441 new definition
31442 (GRUB_PC_PARTITION_TYPE_HFS): likewise
31443 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
31444 * conf/i386-ieee1275.rmk: likewise
31445 * conf/i386-pc.rmk: likewise
31446 * conf/powerpc-ieee1275.rmk: likewise
31447
31448 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31449
31450 Fixed grub-emu
31451
31452 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
31453 (grub_dl_ref): likewise
31454
31455 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
31456
31457 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
31458 split in two functions (one for msdos and one for gpt).
31459
31460 2009-05-08 Pavel Roskin <proski@gnu.org>
31461
31462 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
31463 not modified.
31464
31465 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
31466 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
31467 Initialize them with -1. Add sanity check for bad1. Eliminate
31468 nerr variable.
31469
31470 2009-05-08 David S. Miller <davem@davemloft.net>
31471
31472 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
31473
31474 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
31475
31476 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
31477 existence.
31478
31479 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
31480
31481 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31482 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
31483
31484 2009-05-05 David S. Miller <davem@davemloft.net>
31485
31486 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
31487
31488 2009-05-05 Pavel Roskin <proski@gnu.org>
31489
31490 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
31491 of grub_dl_ref() and grub_dl_unref().
31492 * commands/parttool.c: Remove preprocessor conditionals around
31493 grub_dl_ref() and grub_dl_unref().
31494 * fs/affs.c: Likewise.
31495 * fs/afs.c: Likewise.
31496 * fs/cpio.c: Likewise.
31497 * fs/ext2.c: Likewise.
31498 * fs/fat.c: Likewise.
31499 * fs/hfs.c: Likewise.
31500 * fs/hfsplus.c: Likewise.
31501 * fs/iso9660.c: Likewise.
31502 * fs/jfs.c: Likewise.
31503 * fs/minix.c: Likewise.
31504 * fs/ntfs.c: Likewise.
31505 * fs/reiserfs.c: Likewise.
31506 * fs/sfs.c: Likewise.
31507 * fs/udf.c: Likewise.
31508 * fs/ufs.c: Likewise.
31509 * fs/xfs.c: Likewise.
31510 * include/grub/dl.h: Likewise.
31511 * loader/xnu.c: Likewise.
31512
31513 2009-05-04 Pavel Roskin <proski@gnu.org>
31514
31515 * commands/acpi.c: Remove unused variable my_mod.
31516 * partmap/amiga.c: Likewise.
31517 * partmap/apple.c: Likewise.
31518 * partmap/gpt.c: Likewise.
31519 * partmap/pc.c: Likewise.
31520 * partmap/sun.c: Likewise.
31521 * term/gfxterm.c: Likewise.
31522 * term/i386/pc/vesafb.c: Likewise.
31523 * term/i386/pc/vga.c: Likewise.
31524
31525 2009-05-04 David S. Miller <davem@davemloft.net>
31526
31527 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
31528 pointer args to grub_ieee1275_get_property().
31529
31530 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
31531
31532 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
31533 devices, and do not traverse down under controller nodes.
31534
31535 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
31536 (grub_ofdisk_open): Use it to un-escape "," characters.
31537 * kern/disk.c (find_part_sep): New.
31538 (grub_disk_open): Use it to find the first non-escaped ','
31539 character in the disk name.
31540 * util/ieee1275/devicemap.c (escape_of_path): New.
31541 (grub_util_emit_devicemap_entry): Use it.
31542 * util/sparc64/ieee1275/grub-install.in: Update script to
31543 strip partition specifiers properly by not triggering on
31544 '\' escaped ',' characters.
31545
31546 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31547
31548 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
31549 to 0x300.
31550 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
31551 resolutions.
31552 (linux_vesafb_modes): Add a lot of additional modes to the list (based
31553 on documentation from Wikipedia).
31554
31555 2009-05-04 Pavel Roskin <proski@gnu.org>
31556
31557 * disk/ata.c: Spelling fixes.
31558 * disk/raid.c: Likewise.
31559 * disk/usbms.c: Likewise.
31560 * disk/dmraid_nvidia.c: Likewise.
31561 * kern/ieee1275/openfw.c: Likewise.
31562 * kern/ieee1275/init.c: Likewise.
31563 * kern/ieee1275/cmain.c: Likewise.
31564 * boot/i386/pc/cdboot.S: Likewise.
31565 * video/readers/png.c: Likewise.
31566 * video/i386/pc/vbe.c: Likewise.
31567 * fs/udf.c: Likewise.
31568 * fs/hfs.c: Likewise.
31569 * fs/reiserfs.c: Likewise.
31570 * efiemu/runtime/efiemu.c: Likewise.
31571 * efiemu/main.c: Likewise.
31572 * efiemu/mm.c: Likewise.
31573 * include/grub/elf.h: Likewise.
31574 * include/grub/xnu.h: Likewise.
31575 * include/grub/usbdesc.h: Likewise.
31576 * include/grub/usb.h: Likewise.
31577 * include/grub/script_sh.h: Likewise.
31578 * include/grub/lib/LzmaEnc.h: Likewise.
31579 * include/grub/efiemu/efiemu.h: Likewise.
31580 * include/grub/command.h: Likewise.
31581 * normal/menu.c: Likewise.
31582 * normal/main.c: Likewise.
31583 * normal/datetime.c: Likewise.
31584 * bus/usb/uhci.c: Likewise.
31585 * mmap/i386/uppermem.c: Likewise.
31586 * mmap/mmap.c: Likewise.
31587 * commands/acpi.c: Likewise.
31588 * commands/test.c: Likewise.
31589 * partmap/apple.c: Likewise.
31590 * font/font.c: Likewise.
31591 * loader/sparc64/ieee1275/linux.c: Likewise.
31592 * loader/macho.c: Likewise.
31593 * loader/i386/bsd_trampoline.S: Likewise.
31594 * loader/i386/bsd.c: Likewise.
31595 * loader/xnu.c: Likewise.
31596 * term/i386/pc/vesafb.c: Likewise.
31597 * term/usb_keyboard.c: Likewise.
31598 * util/resolve.c: Likewise.
31599 * util/getroot.c: Likewise.
31600
31601 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31602
31603 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
31604
31605 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31606
31607 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
31608 build error.
31609
31610 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31611
31612 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
31613 parameter only available on BIOS.
31614
31615 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31616
31617 Removed wrong semicolon in declaration
31618
31619 * grub/misc.h (grub_dprintf): remove semicolon
31620
31621 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31622
31623 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
31624 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
31625 is done by grub_cmd_linux() now).
31626 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
31627 restore video to text mode.
31628 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
31629 indicates lack of "vga=" parameter. "vga=0" is mapped to
31630 `GRUB_LINUX_VID_MODE_NORMAL'.
31631
31632 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31633
31634 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
31635 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
31636 and `normal/script.c'. Add `kern/rescue_reader.c',
31637 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
31638 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
31639 `grub_script.tab.c'.
31640
31641 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31642 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31643 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31644 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31645 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31646
31647 * Makefile.in: Remove duplicated 2008 in Copyright line.
31648
31649 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31650
31651 * util/misc.c (grub_util_warn): New function. Emits a warning
31652 unconditionally.
31653 * include/grub/util/misc.h (grub_util_warn): New declaration.
31654
31655 * util/i386/pc/grub-install.in: Understand --force and pass it down
31656 to grub-setup.
31657
31658 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
31659 down to setup().
31660 (setup): Improve error messages and add warnings when requested to
31661 install in odd layouts. Refuse to install using blocklists unless
31662 --force was set.
31663
31664 2009-05-04 martin f. krafft <madduck@madduck.net>
31665
31666 * disk/raid.c (grub_raid_scan_device): Improve debug message.
31667
31668 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31669
31670 Updated copyright year
31671
31672 * fs/hfsplus.c: updated copyright year
31673
31674 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31675
31676 HFS+ UUID
31677
31678 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
31679 in the space previously used by unused3
31680 (grub_hfsplus_uuid): new function
31681 (grub_hfsplus_fs): added uuid field
31682
31683 2009-05-03 Pavel Roskin <proski@gnu.org>
31684
31685 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
31686 suppress warnings. It's no longer needed.
31687 * disk/host.c: Likewise.
31688 * disk/ata_pthru.c: Likewise.
31689 * disk/loopback.c: Likewise.
31690 * hook/datehook.c: Likewise.
31691 * parttool/pcpart.c: Likewise.
31692 * fs/i386/pc/pxe.c: Likewise.
31693 * fs/ntfscomp.c: Likewise.
31694 * efiemu/main.c: Likewise.
31695 * mmap/mmap.c: Likewise.
31696 * commands/crc.c: Likewise.
31697 * commands/hexdump.c: Likewise.
31698 * commands/hdparm.c: Likewise.
31699 * commands/acpi.c: Likewise.
31700 * commands/echo.c: Likewise.
31701 * commands/minicmd.c: Likewise.
31702 * commands/blocklist.c: Likewise.
31703 * commands/memrw.c: Likewise.
31704 * commands/loadenv.c: Likewise.
31705 * commands/usbtest.c: Likewise.
31706 * commands/lsmmap.c: Likewise.
31707 * commands/boot.c: Likewise.
31708 * commands/parttool.c: Likewise.
31709 * commands/configfile.c: Likewise.
31710 * commands/search.c: Likewise.
31711 * commands/ieee1275/suspend.c: Likewise.
31712 * commands/cat.c: Likewise.
31713 * commands/i386/pc/pxecmd.c: Likewise.
31714 * commands/i386/pc/play.c: Likewise.
31715 * commands/i386/pc/halt.c: Likewise.
31716 * commands/i386/pc/vbeinfo.c: Likewise.
31717 * commands/i386/pc/vbetest.c: Likewise.
31718 * commands/lspci.c: Likewise.
31719 * commands/date.c: Likewise.
31720 * commands/handler.c: Likewise.
31721 * commands/ls.c: Likewise.
31722 * commands/test.c: Likewise.
31723 * commands/cmp.c: Likewise.
31724 * commands/efi/loadbios.c: Likewise.
31725 * commands/efi/fixvideo.c: Likewise.
31726 * commands/halt.c: Likewise.
31727 * commands/help.c: Likewise.
31728 * commands/reboot.c: Likewise.
31729 * hello/hello.c: Likewise.
31730 * script/sh/main.c: Likewise.
31731 * loader/xnu.c: Likewise.
31732 * term/terminfo.c: Likewise.
31733 * term/i386/pc/serial.c: Likewise.
31734 * term/usb_keyboard.c: Likewise.
31735
31736 2009-05-03 David S. Miller <davem@davemloft.net>
31737
31738 * normal/menu.c: Include grub/parser.h
31739
31740 2009-05-03 Pavel Roskin <proski@gnu.org>
31741
31742 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
31743 not char*.
31744 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
31745 Suggested by Javier Martín <lordhabbit@gmail.com>
31746
31747 * util/i386/pc/grub-mkrescue.in: Allow for the case when
31748 efiemu??.o doesn't exist.
31749 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
31750 copying.
31751
31752 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
31753
31754 FreeBSD 64-bit support
31755
31756 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
31757 and loader/i386/bsd_trampoline.S
31758 (bsd_mod_ASFLAGS): new variable
31759 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
31760 (FREEBSD_MODTYPE_KERNEL64): likewise
31761 (grub_bsd64_trampoline_start): likewise
31762 (grub_bsd64_trampoline_end): likewise
31763 (grub_bsd64_trampoline_selfjump): likewise
31764 (grub_bsd64_trampoline_gdt): likewise
31765 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
31766 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
31767 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
31768 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
31769 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
31770 of "attrib" member
31771 * loader/i386/bsd_pagetable.c: new file
31772 * loader/i386/bsd_trampoline.S: likewise
31773 * loader/i386/bsd.c (ALIGN_QWORD): new macro
31774 (ALIGN_VAR): likewise
31775 (entry_hi): new variable
31776 (kern_end_mdofs): likewise
31777 (is_64bit): likewise
31778 (grub_freebsd_add_meta): use ALIGN_VAR
31779 (grub_e820_mmap): new declaration
31780 (grub_freebsd_add_mmap): new function
31781 (grub_freebsd_add_meta_module): support 64 bit kernels
31782 (grub_freebsd_list_modules): use ALIGN_VAR
31783 (gdt_descriptor): new declaration
31784 (grub_freebsd_boot): support 64 bit kernels
31785 (grub_bsd_elf64_hook): new function
31786 (grub_bsd_load_elf): support elf64
31787
31788 2009-05-03 Bean <bean123ch@gmail.com>
31789
31790 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
31791 after we get the result of if statement.
31792
31793 2009-05-03 Bean <bean123ch@gmail.com>
31794
31795 * Makefile.in (enable_efiemu): New variable.
31796
31797 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
31798 set.
31799 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
31800 path.
31801 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
31802 path, add -mno-red-zone option.
31803 (efiemu64_s.o): Likewise.
31804 (efiemu64.o): Use macro $^ for source file.
31805
31806 * configure.ac (--enable-efiemu): New option.
31807
31808 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
31809
31810 xnu support
31811
31812 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
31813 (pkglib_MODULES): add xnu.mod
31814 (xnu_mod_SOURCES): new variable
31815 (xnu_mod_CFLAGS): likewise
31816 (xnu_mod_LDFLAGS): likewise
31817 (xnu_mod_ASFLAGS): likewise
31818 * conf/i386-pc.rmk: likewise
31819 * conf/x86_64-efi.rmk: likewise
31820 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
31821 new declaration
31822 * include/grub/i386/macho.h: new file
31823 * include/grub/i386/xnu.h: likewise
31824 * include/grub/macho.h: likewise
31825 * include/grub/machoload.h: likewise
31826 * include/grub/x86_64/macho.h: likewise
31827 * include/grub/x86_64/xnu.h: likewise
31828 * include/grub/xnu.h: likewise
31829 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
31830 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
31831 * loader/i386/efi/xnu.c: new file
31832 * loader/i386/pc/xnu.c: likewise
31833 * loader/i386/xnu.c: likewise
31834 * loader/i386/xnu_helper.S: likewise
31835 * loader/macho.c: likewise
31836 * loader/xnu.c: likewise
31837 * loader/xnu_resume.c: likewise
31838 * util/grub-dumpdevtree: likewise
31839 * include/grub/i386/pit.h: include grub/err.h
31840 (grub_pit_wait): export
31841 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
31842
31843 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31844
31845 Efiemu
31846
31847 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
31848 _linux_efi, linux_efi.
31849 new files in grub-emu
31850 new targets efiemu32.o and efiemu64.o
31851 * loader/linux_normal_efiemu.c: likewise
31852 * loader/i386/efi/linux.c: added preliminary efiemu support
31853 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
31854 files to copy
31855 * include/grub/autoefi.h: new file
31856 * include/grub/i386/efiemu.h: likewise
31857 * include/grub/i386/pc/efiemu.h: likewise
31858 * include/grub/efi/api.h: add LL suffix when necessary
31859 new definitions relating to tables
31860 * include/grub/efiemu/efiemu.h: new file
31861 * include/grub/efiemu/runtime.h: likewise
31862 * efiemu/prepare.c: likewise
31863 * efiemu/loadcore_common.c: likewise
31864 * efiemu/loadcore64.c: likewise
31865 * efiemu/runtime/efiemu.sh: likewise
31866 * efiemu/runtime/efiemu.S: likewise
31867 * efiemu/runtime/efiemu.c: likewise
31868 * efiemu/runtime/config.h: likewise
31869 * efiemu/prepare32.c: likewise
31870 * efiemu/main.c: likewise
31871 * efiemu/modules/pnvram.c: likewise
31872 * efiemu/modules/i386: likewise
31873 * efiemu/modules/i386/pc: likewise
31874 * efiemu/modules/acpi.c: likewise
31875 * efiemu/i386/pc/cfgtables.c: likewise
31876 * efiemu/i386/loadcore64.c: likewise
31877 * efiemu/i386/loadcore32.c: likewise
31878 * efiemu/prepare64.c: likewise
31879 * efiemu/loadcore.c: likewise
31880 * efiemu/symbols.c: likewise
31881 * efiemu/mm.c: likewise
31882 * efiemu/loadcore32.c: likewise
31883
31884 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31885
31886 ACPI spoofing
31887
31888 * commands/acpi.c: new file
31889 * commands/i386/pc/acpi.c: likewise
31890 * commands/efi/acpi.c: likewise
31891 * include/grub/acpi.h: likewise
31892 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
31893 (acpi_mod_SOURCES): new variable
31894 (acpi_mod_CFLAGS): likewise
31895 (acpi_mod_LDFLAGS): likewise
31896 * conf/i386-efi.rmk: likewise
31897 * conf/x86_64-efi.rmk: likewise
31898
31899 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31900
31901 Missing part from mmap patch
31902
31903 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
31904 (grub_mmap_unregister)
31905 (grub_mmap_free_and_unregister): use grub_mmap_register
31906
31907 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31908
31909 Mmap services
31910
31911 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
31912 * loader/i386/linux.c (find_mmap_size): likewise
31913 (allocate_pages): likewise
31914 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
31915 (grub_fill_multiboot_mmap): likewise
31916 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
31917 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
31918 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
31919 (OPENBSD_MMAP_RESERVED): likewise
31920 * include/grub/i386/pc/memory.h: include grub/memory.h
31921 (grub_lower_mem): removed
31922 (grub_upper_mem): likewise
31923 (GRUB_MACHINE_MEMORY_ACPI): new definition
31924 (GRUB_MACHINE_MEMORY_NVS): likewise
31925 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
31926 (GRUB_MACHINE_MEMORY_HOLE): likewise
31927 (grub_machine_mmap_register): likewise
31928 (grub_machine_mmap_unregister): likewise
31929 (grub_machine_get_upper): likewise
31930 (grub_machine_get_lower): likewise
31931 (grub_machine_get_post64): likewise
31932 * include/grub/i386/efi/memory.h: new file
31933 * include/grub/x86_64/efi/memory.h: likewise
31934 * include/grub/efi/memory.h: likewise
31935 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
31936 (mmap_mod_SOURCES): new variable
31937 (mmap_mod_LDFLAGS): likewise
31938 (mmap_mod_ASFLAGS): likewise
31939 * conf/i386-coreboot.rmk: likewise
31940 * conf/i386-ieee1275.rmk: likewise
31941 * conf/i386-efi.rmk: likewise
31942 * conf/x86_64-efi.rmk: likewise
31943 * include/grub/types.h (UINT_TO_PTR): new macro
31944 (PTR_TO_UINT32): likewise
31945 (PTR_TO_UINT64): likewise
31946 * include/grub/memory.h: new file
31947 * mmap/i386/pc/mmap.c: likewise
31948 * mmap/i386/pc/mmap_helper.S: likewise
31949 * mmap/i386/uppermem.c: likewise
31950 * mmap/mmap.c: likewise
31951 * mmap/efi/mmap.c: likewise
31952 * kern/i386/coreboot/init.c (grub_machine_init): don't use
31953 grub_upper_mem
31954 * kern/i386/pc/init.c (grub_lower_mem): removed variable
31955 (grub_upper_mem): likewise
31956 (grub_machine_init): don't use grub_upper_mem,
31957 make grub_lower_mem local
31958 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
31959 grub_mmap_iterate and grub_mmap_get_upper
31960 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
31961
31962 2009-05-02 Bean <bean123ch@gmail.com>
31963
31964 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
31965 script/sh/parser.y.
31966 (pkglib_MODULES): Add normal.mod and sh.mod.
31967 (normal_SOURCES): New variable.
31968 (normal_mod_CFLAGS): Likewise.
31969 (normal_mod_LDFLAGS): Likewise.
31970 (sh_mod_SOURCES): Likewise.
31971 (sh_mod_CFLAGS): Likewise.
31972 (sh_mod_LDFLAGS): Likewise.
31973
31974 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
31975 script/sh/lexer.c_DEPENDENCIES.
31976 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
31977 kern/rescue_reader.c and kern/rescue_parser.c.
31978 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
31979 (grub_emu_SOURCES): Change source files.
31980 (pkglib_MODULES): Remove normal.mod.
31981 (normal_SOURCES): Removed.
31982 (normal_mod_CFLAGS): Likewise.
31983 (normal_mod_LDFLAGS): Likewise.
31984 * conf/i386-coreboot.rmk: Likewise.
31985 * conf/i386-efi.rmk: Likewise.
31986 * conf/i386-ieee1276.rmk: Likewise.
31987 * conf/powerpc-ieee1275.rmk: Likewise.
31988 * conf/sparc64-ieee1275.rmk: Likewise.
31989 * conf/x86_64-efi.rmk: Likewise.
31990
31991 * include/grub/command.h (grub_command_execute): New inline function.
31992
31993 * include/grub/menu.h (grub_menu_entry): Removed commands field.
31994
31995 * include/grub/normal.h: Remove <grub/setjmp.h>.
31996 (grub_fs_module_list): Moved to normal/autofs.c.
31997 (grub_exit_env): Removed.
31998 (grub_command_execute): Likewise.
31999 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
32000 parameter script.
32001 (read_command_list): New function declaration.
32002 (read_fs_list): Likewise.
32003
32004 * include/parser.h: Include <grub/reader.h>.
32005 (grub_parser_split_cmdline): Change type of getline parameter.
32006 (grub_parser): New structure.
32007 (grub_parser_class): New variable.
32008 (grub_parser_execute): New function declaration.
32009 (grub_register_rescue_parser): Likewise.
32010 (grub_parser_register): New inline function.
32011 (grub_parser_unregister): Likewise.
32012 (grub_parser_get_current): Likewise.
32013 (grub_parser_set_current): Likewise.
32014
32015 * include/grub/reader.h: New file.
32016 * kern/reader.c: Likewise.
32017 * kern/rescue_parser.c: Likewise.
32018 * kern/rescue_reader.c: Likewise.
32019 * normal/autofs.c: Likewise.
32020 * normal/dyncmd.c: Likewise.
32021
32022 * include/grub/rescue.h: Removed.
32023 * normal/command.h: Likewise.
32024
32025 * include/grub/script.h: Moved to ...
32026 * include/grub/script_sh.h: ... Moved here.
32027 * normal/execute.c: Moved to ...
32028 * script/sh/execute.c: ... Moved here.
32029 * normal/function.c: Moved to ...
32030 * script/sh/function.c: ... Moved here.
32031 * normal/lexer.c: Moved to ...
32032 * script/sh/lexer.c: ... Moved here.
32033 * normal/parser.y: Moved to ...
32034 * script/sh/parser.y: ... Moved here.
32035 * normal/script.c: Moved to ...
32036 * script/sh/script.c: ... Moved here.
32037
32038 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
32039 <grub/reader.h>.
32040 (grub_exit_env): Removed.
32041 (fs_module_list): Moved to normal/autofs.c.
32042 (grub_file_getline): Don't handle comment here.
32043 (free_menu): Skip removed field entry->commands.
32044 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
32045 script parameter.
32046 (read_config_file): Removed nested parameter, change getline function.
32047 (grub_enter_normal_mode): Removed.
32048 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
32049 (read_command_list): Likewise.
32050 (autoload_fs_module): Moved to normal/autofs.c.
32051 (read_fs_list): Likewise.
32052 (reader_nested): New variable.
32053 (grub_normal_execute): Run parser.sh to switch to sh parser.
32054 (grub_cmd_rescue): Removed.
32055 (cmd_normal): Removed.
32056 (grub_cmd_normal): Unregister itself at the beginning. Don't register
32057 rescue command.
32058 (grub_cmdline_run): New function.
32059 (grub_normal_reader_init): Likewise.
32060 (grub_normal_read_line): Likewise.
32061 (grub_env_write_pager): Likewise.
32062 (cmdline): New variable.
32063 (grub_normal_reader): Likewise.
32064 (GRUB_MOD_INIT): Register normal reader and set as current, register
32065 pager hook, register normal command with grub_register_command_prio,
32066 so that it won't show up in command.lst.
32067 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
32068 grub_fs_autoload_hook.
32069
32070 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
32071 (grub_menu_execute_entry): Replace grub_script_execute with
32072 grub_parser_execute, change parameter to grub_command_execute.
32073
32074 * normal/menu_text.c: Remove <grub/script.h>.
32075
32076 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
32077 and <grub/parser.h>.
32078 (run): Change editor_getline to use new parser interface. Change
32079 parameter to grub_command_execute.
32080
32081 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
32082 <grub/reader.h> and <grub/parser.h>.
32083 (grub_load_normal_mode): Execute normal command.
32084 (grub_main): Call grub_register_core_commands,
32085 grub_register_rescue_parser and grub_register_rescue_reader, use
32086 grub_reader_loop to enter input loop.
32087
32088 * kern/parser.c (grub_parser_split_cmdline): Change type of
32089 getline parameter.
32090 (grub_parser_class): New variable.
32091 (grub_parser_execute): New function.
32092
32093 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
32094 * loader/multiboot2.c: Likewise.
32095 * loader/sparc64/ieee1275/linux.c: Likewise.
32096
32097 * util/grub-emu.c (read_command_list): New dummy function.
32098
32099 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32100
32101 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
32102 count to 16 for CCISS and IDA.
32103
32104 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32105
32106 * normal/menu_text.c (grub_wait_after_message): Print a newline
32107 after waiting for user input.
32108
32109 * loader/i386/linux.c: Include `<grub/normal.h>'.
32110 (grub_cmd_linux): Improve the error message about `ask' mode, by
32111 waiting for user input so it's not missed (we can do this, since
32112 user requested interaction).
32113
32114 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32115
32116 Added missing lst to grub-mkrescue
32117
32118 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
32119 and ${input_dir}/parttool.lst
32120
32121 2009-04-30 David S. Miller <davem@davemloft.net>
32122
32123 * util/hostdisk.c (device_is_wholedisk): New function.
32124 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
32125 zero only if device_is_wholedisk() returns true.
32126
32127 * util/hostdisk.c (convert_system_partition_to_system_disk):
32128 Handle virtual disk devices named /dev/vdiskX as found on sparc
32129 and powerpc.
32130
32131 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
32132 lettered partition specifier is found, convert to numbered.
32133
32134 2009-04-29 David S. Miller <davem@davemloft.net>
32135
32136 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
32137 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32138
32139 * normal/command.c: Add missing newline at end of file.
32140
32141 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
32142 warnings.
32143 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
32144 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
32145 grub_ofdisk_read): Likewise, and deal similarly with the fact that
32146 ihandles have a 32-bit type but need to be stored in a "void *".
32147
32148 2009-04-28 Pavel Roskin <proski@gnu.org>
32149
32150 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
32151 not disk. Adjust all dependencies.
32152 (grub_fs_uuid_close): Use grub_device_close(), not
32153 grub_disk_close().
32154
32155 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
32156 parent's partition, don't copy it by reference, as it gets freed
32157 on close.
32158
32159 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32160
32161 Preboot hooks support
32162
32163 * commands/boot.c (struct grub_preboot_t): new declaration
32164 (preboots_head): new variable
32165 (preboots_tail): likewise
32166 (grub_loader_register_preboot_hook): new function
32167 (grub_loader_unregister_preboot_hook): likewise
32168 (grub_loader_set): launch preboot hooks
32169 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
32170 (grub_loader_register_preboot_hook): new declaration
32171 (grub_loader_unregister_preboot_hook): likewise
32172
32173 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32174
32175 Warning fix
32176
32177 * disk/scsi.c (grub_scsi_open): added missing cast when
32178 calling grub_dprintf
32179
32180 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
32181
32182 Bug and warning fixes
32183
32184 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
32185 declaration
32186 * commands/test.c (test_parse): fixed bug with file tests and corrected
32187 declaration of find_file
32188
32189 2009-04-26 Pavel Roskin <proski@gnu.org>
32190
32191 * Makefile.in: Don't install empty manual pages if help2man is
32192 missing. Use help2man option for output, not shell redirection.
32193
32194 2009-04-26 David S. Miller <davem@davemloft.net>
32195
32196 * util/grub-mkdevicemap.c (make_device_map): Add missing
32197 NESTED_FUNC_ATTR to process_device().
32198
32199 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32200
32201 Test command
32202
32203 * commands/test.c: rewritten to use bash-like test
32204
32205 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32206
32207 Parttool autoloading and improvements
32208
32209 * Makefile.in (pkglib_DATA): add parttool.lst
32210 (parttool.lst): new target
32211 * genmk.rb: generate parttool-*
32212 (CLEANFILES): add #{parttool}
32213 (PARTTOOLFILES): new variable
32214 * genparttoollist.sh: new file
32215 * parttool/pcpart.c (grub_pcpart_boot): more feedback
32216 (grub_pcpart_type): likewise
32217 * commands/parttool.c (helpmsg): new variable
32218 (grub_cmd_parttool): output help if not enough arguments are supplied
32219 autoload modules
32220 (GRUB_MOD_INIT(parttool)): use helpmsg
32221
32222 2009-04-24 David S. Miller <davem@davemloft.net>
32223
32224 Avoiding opening same device multiple times in device iterator.
32225
32226 * kern/device.c: (grub_device_iterate): Define struct part_ent,
32227 and use it to build a list of partitions in iterate_disk() and
32228 iterate_partition().
32229
32230 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
32231 on disk->data.
32232
32233 * disk/ieee1275/nand.c (grub_nand_iterate): Return
32234 grub_devalias_iterate() result instead of unconditional 0.
32235 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
32236 Also, capture hook return value, either directly or via
32237 grub_children_iterate(), and propagate to caller.
32238 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
32239 grub_children_iterate): Return value is now 'int' instead of
32240 'grub_err_t'.
32241 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
32242 like a proper iterator, stopping when hooks return non-zero.
32243 (grub_devalias_iterate): Likewise.
32244
32245 2009-04-23 David S. Miller <davem@davemloft.net>
32246
32247 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
32248
32249 2009-04-22 David S. Miller <davem@davemloft.net>
32250
32251 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
32252 is larger than address_cells, use that value for address_cells too.
32253
32254 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
32255 IEEE1275_MAX_PATH_LEN): Define.
32256 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
32257 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
32258 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
32259 'devtype'. Explicitly NULL terminate devalias expansion.
32260
32261 * util/sparc64/ieee1275/misc.c: New file.
32262 * util/sparc64/ieee1275/grub-setup.c: New file.
32263 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
32264 * util/sparc64/ieee1275/grub-mkimage.c: New file.
32265 * util/sparc64/ieee1275/grub-install.in: New file.
32266 * util/ieee1275/ofpath.c: New file.
32267 * util/ieee1275/devicemap.c: New file.
32268 * util/devicemap.c: New file.
32269 * util/deviceiter.c: New file.
32270 * kern/sparc64/ieee1275/init.c: New file.
32271 * include/grub/util/ofpath.h: New file.
32272 * include/grub/util/deviceiter.h: New file.
32273 * util/grub-mkdevicemap.c: Include deviceiter.h.
32274 Implement using grub_util_emit_devicemap_entry and
32275 grub_util_iterate_devices.
32276 * conf/i386-corebook.rmk: Build util/deviceiter.c and
32277 util/devicemap.c into grub-mkdevicemap
32278 * conf/i386-efi.rmk: Likewise.
32279 * conf/i386-ieee1275.rmk: Likewise.
32280 * conf/i386-pc.rmk: Likewise.
32281 * conf/powerpc-ieee1275.rmk: Likewise.
32282 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
32283 images and installation utilities. Build kernel as image
32284 instead of as elf binary. Use common rules as much as possible.
32285
32286 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
32287
32288 Correct GPT definition
32289
32290 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
32291 of "attrib" member
32292
32293 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
32294
32295 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
32296
32297 2009-04-19 David S. Miller <davem@davemloft.net>
32298
32299 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
32300 (grub_rescue_cmd_linux): Rename to...
32301 (grub_cmd_linux): and fix prototype.
32302 (grub_rescue_cmd_initrd): Rename to...
32303 (grub_cmd_initrd): and fix prototype.
32304 (cmd_linux, cmd_initrd): New.
32305 (GRUB_MOD_INIT(linux)): Use grub_register_command().
32306 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
32307
32308 2009-04-17 Pavel Roskin <proski@gnu.org>
32309
32310 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
32311 format.
32312 (grub_ohci_transfer): Likewise.
32313
32314 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
32315
32316 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
32317 return without a value. Fix inconsistent indentation.
32318
32319 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
32320 match struct grub_fs.
32321
32322 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
32323 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
32324 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32325 * commands/lspci.c (grub_lspci_iter): Likewise.
32326
32327 2009-04-16 Bean <bean123ch@gmail.com>
32328
32329 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
32330 value.
32331
32332 2009-04-15 Pavel Roskin <proski@gnu.org>
32333
32334 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
32335 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
32336 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
32337 definitions.
32338
32339 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32340
32341 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
32342 that no multiple data or metadata areas are supported and `Unknown
32343 metadata header'.
32344
32345 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32346
32347 Move loader out of the kernel
32348
32349 * kern/loader.c: moved to ...
32350 * commands/boot.c: ... moved here
32351 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
32352 * commands/boot.c (grub_cmd_boot): moved here. All users updated
32353 * include/grub/kernel.h (grub_machine_fini): export
32354 * include/grub/loader.h (grub_loader_is_loaded): update declaration
32355 (grub_loader_set): likewise
32356 (grub_loader_unset): likewise
32357 (grub_loader_boot): likewise
32358 * conf/common.rmk: new module boot.mod
32359 (pkglib_MODULES): add boot.mod
32360 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
32361 (grub_emu_SOURCES): likewise
32362 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
32363 (grub_emu_SOURCES): likewise
32364 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
32365 (grub_emu_SOURCES): likewise
32366 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
32367 (grub_emu_SOURCES): likewise
32368 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
32369 (grub_emu_SOURCES): likewise
32370 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
32371 (grub_emu_SOURCES): likewise
32372 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
32373 (grub_emu_SOURCES): likewise
32374
32375 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32376
32377 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
32378
32379 * kern/misc.c (grub_itoa): Removed function
32380 (grub_ltoa): likewise
32381 (grub_vsprintf): use grub_lltoa
32382
32383 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32384
32385 Restore grub-emu
32386
32387 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
32388 * conf/i386-coreboot.rmk: likewise
32389 * conf/i386-ieee1275.rmk: likewise
32390 * conf/powerpc-ieee1275.rmk: likewise
32391
32392 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32393
32394 * INSTALL: Add that `./autogen.sh' needs to be run before
32395 `./configure.'.
32396
32397 2009-04-14 Bean <bean123ch@gmail.com>
32398
32399 * Makefile.in (pkglib_DATA): Add handler.lst.
32400 (handler.lst): New rule.
32401
32402 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
32403 * conf/i386-coreboot.rmk: Likewise.
32404 * conf/i386-ieee1275.rmk: Likewise.
32405 * conf/i386-efi.rmk: Likewise.
32406 * conf/x86_64-efi.rmk: Likewise.
32407 * conf/powerpc-ieee1275.rmk: Likewise.
32408 * conf/sparc64-ieee1275.rmk: Likewise.
32409
32410 * genhandlerlist.sh: New file.
32411
32412 * genmk.rb: Add rules to generate handler.lst.
32413
32414 * include/grub/normal.h (grub_file_getline): New function definition.
32415 (read_handler_list): Likewise.
32416 (free_handler_list): Likewise.
32417
32418 * include/grub/term.h (grub_term_register_input): Add name parameter
32419 for auto generation of handler.lst.
32420 (grub_term_register_output): Likewise.
32421
32422 * normal/handler.c: New file.
32423
32424 * normal/main.c (get_line): Renamed to grub_file_getline.
32425 (read_config_file): Use the newly renamed grub_file_getline.
32426 (read_command_list): Likewise.
32427 (read_fs_list): Likewise.
32428 (grub_normal_execute): Call read_handler_list to parse handler.lst.
32429 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
32430
32431 * term/efi/console.c (grub_console_init): Add name parameter for auto
32432 generation of handler.lst.
32433 * term/gfxterm.c: Likewise.
32434 * term/i386/pc/at_keyboard.c: Likewise.
32435 * term/i386/pc/console.c: Likewise.
32436 * term/i386/pc/serial.c: Likewise.
32437 * term/i386/pc/vesafb.c: Likewise.
32438 * term/i386/pc/vga.c: Likewise.
32439 * term/i386/pc/vga_text.c: Likewise.
32440 * term/ieee1275/ofconsole.c: Likewise.
32441 * term/usb_keyboard.c: Likewise.
32442
32443 2009-04-14 Bean <bean123ch@gmail.com>
32444
32445 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
32446 properly with null character.
32447
32448 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32449
32450 * configure: Remove.
32451 * config.h.in: Likewise.
32452 * stamp-h.in: Likewise.
32453 * DISTLIST: Likewise.
32454 * conf/common.mk: Likewise.
32455 * conf/i386-coreboot.mk: Likewise.
32456 * conf/i386-efi.mk: Likewise.
32457 * conf/i386-ieee1275.mk: Likewise.
32458 * conf/i386.mk: Likewise.
32459 * conf/i386-pc.mk: Likewise.
32460 * conf/powerpc-ieee1275.mk: Likewise.
32461 * conf/sparc64-ieee1275.mk: Likewise.
32462 * conf/x86_64-efi.mk: Likewise.
32463
32464 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
32465 develop on GRUB.
32466
32467 2009-04-14 John Stanley <jpsinthemix@verizon.net>
32468 David S. Miller <davem@davemloft.net>
32469
32470 * util/hostdisk.c (make_device_name): Fix buffer length
32471 calculations.
32472
32473 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32474
32475 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
32476 <sys/param.h> and <sys/sysctl.h>.
32477 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
32478 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
32479 opening the device and reset them afterwards.
32480
32481 2009-04-13 Pavel Roskin <proski@gnu.org>
32482
32483 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
32484 Reported by John Stanley <jpsinthemix@verizon.net>
32485
32486 2009-04-13 Robert Millan <rmh@aybabtu.com>
32487
32488 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
32489 that name for menuentries when appropriate.
32490
32491 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32492
32493 * util/grub.d/10_freebsd.in: Add a missing `fi'.
32494
32495 2009-04-13 Robert Millan <rmh@aybabtu.com>
32496
32497 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
32498 to Linux, simply abort telling the user it's no longer supported.
32499
32500 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32501
32502 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
32503 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
32504 `freebsd_loadenv' only when devices.hints exist.
32505
32506 2009-04-13 Pavel Roskin <proski@gnu.org>
32507
32508 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
32509
32510 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32511
32512 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
32513 partition number.
32514 (grub_drive): Likewise.
32515
32516 2009-04-13 David S. Miller <davem@davemloft.net>
32517
32518 * kern/sparc64/ieee1275/ieee1275.c: New file.
32519 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
32520 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
32521 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
32522 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
32523 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
32524 grub_ieee1275_alloc_physmem): Declare new exported functions.
32525
32526 * include/grub/sparc64/ieee1275/loader.h: New file.
32527 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32528 * include/grub/sparc64/kernel.h: Likewise.
32529 * loader/sparc64/ieee1275/linux.c: Likewise.
32530
32531 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
32532 (grub_fstest_SOURCES): Likewise.
32533
32534 * util/hostdisk.c (make_device_name): Do not make any assumptions
32535 about the length of drive names.
32536
32537 * kern/dl.c (grub_dl_load_file): Close file immediately when
32538 we are done using it.
32539
32540 2009-04-12 David S. Miller <davem@davemloft.net>
32541
32542 * kern/misc.c (grub_ltoa): Fix cast when handling negative
32543 values. Noticed by Pavel Roskin.
32544
32545 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
32546 target compiler.
32547
32548 * genmk.rb: Add more flexible image type specification, also
32549 pass --strip-unneeded to objcopy.
32550 * conf/i386-pc.rmk: Use *_FORMAT.
32551 * conf/i386-pc.mk: Rebuilt.
32552
32553 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
32554 (OFDISK_HASH_SZ): Define.
32555 (ofdisk_hash): New hash table.
32556 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
32557 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
32558 instead of device phandle which is not unique.
32559
32560 * kern/sparc64/ieee1275/init.c: Delete, replace with...
32561 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
32562 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
32563 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
32564 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
32565 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
32566 GRUB_KERNEL_MACHINE_DATA_END): Define.
32567 (grub_kernel_image_size, grub_total_module_size): Declare.
32568
32569 2009-04-12 Pavel Roskin <proski@gnu.org>
32570
32571 * configure.ac: Change the logic when we check for target tools.
32572 Do it when the target is specified and it's different from the
32573 specified value of the host.
32574
32575 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
32576
32577 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
32578 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
32579 GNU/kFreeBSD. Check if a device is a character device. Use
32580 DIOCGMEDIASIZE to get the size.
32581 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
32582 support for GNU/kFreeBSD.
32583 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
32584 is a character device instead of a block device. Add support for
32585 FreeBSD device names.
32586
32587 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
32588 is a character device instead of a block device.
32589
32590 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
32591 is a character device instead of a block device.
32592
32593 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
32594
32595 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
32596 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
32597 FreeBSD. Check if a device is a character device. Use
32598 DIOCGMEDIASIZE to get the size.
32599 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
32600 support for FreeBSD.
32601 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
32602 is a character device instead of a block device. Add support for
32603 FreeBSD device names.
32604
32605 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
32606 a character device instead of a block device.
32607 (grub_util_check_char_device): New function.
32608
32609 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
32610 a character device instead of a block device.
32611
32612 * include/grub/util/getroot.h (grub_util_check_char_device): New
32613 prototype.
32614
32615 2009-04-11 David S. Miller <davem@davemloft.net>
32616
32617 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
32618 static libgcc.
32619 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
32620 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
32621 function, if present.
32622 (__bswapdi2): Likewise.
32623
32624 * include/grub/sparc64/ieee1275/boot.h: New file.
32625 * boot/sparc64/ieee1275/boot.S: Likewise.
32626 * boot/sparc64/ieee1275/diskboot.S: Likewise.
32627
32628 * kern/misc.c (grub_ltoa): New function.
32629 (grub_vsprintf): Use it to format 'long' integers.
32630
32631 2009-04-10 David S. Miller <davem@davemloft.net>
32632
32633 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
32634 slots are of type grub_ieee1275_cell_t.
32635 (grub_nand_read): Likewise.
32636 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
32637 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
32638 macros are used to compare values in arg/ret block of the call.
32639 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
32640 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
32641 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
32642 grub_ieee1275_instance_to_path, grub_ieee1275_write,
32643 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
32644 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
32645 grub_ieee1275_close, grub_ieee1275_set_property,
32646 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
32647 grub_ieee1275_cell_t.
32648 * kern/ieee1275/openfw.c (grub_map): Likewise.
32649 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
32650 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
32651
32652 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
32653 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
32654 (grub_devalias_iterate): Likewise.
32655
32656 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
32657
32658 UFS improvements
32659
32660 * fs/ufs.c (INODE_NBLOCKS): new definition
32661 (struct grub_ufs_dirent): added fields for non-BSD dirents
32662 (grub_ufs_get_file_block): fixed double indirect handling
32663 (grub_ufs_lookup_symlink): use more robust way to determine whether
32664 symlink is inline
32665 (grub_ufs_find_file): support for non-BSD dirents
32666 (grub_ufs_dir): support for non-BSD dirents
32667
32668 2009-04-10 Bean <bean123ch@gnail.com>
32669
32670 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
32671 attribute, otherwise the size would be wrong for i386 platform.
32672
32673 * include/grub/pci.h (grub_pci_read_word): New inline function.
32674 (grub_pci_read_byte): Likewise.
32675 (grub_pci_write): Likewise.
32676 (grub_pci_write_word): Likewise.
32677 (grub_pci_write_byte): Likewise.
32678
32679 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
32680
32681 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
32682 (find_framebuf): Scan pci to locate the frame buffer address.
32683
32684 * commands/efi/fixvideo.c: New file.
32685
32686 * commands/efi/loadbios.c: Likewise.
32687
32688 * commands/memrw.c: Likewise.
32689
32690 * util/grub-dumpbios.in: Likewise.
32691
32692 * conf/common.rmk (grub-dumpbios): New utility.
32693 (pkglib_MODULES): New module memrw.mod.
32694 (memrw_mod_SOURCE): New macro.
32695 (memrw_mod_CFLAGS): Likewise.
32696 (memrw_mod_LDFLAGS): Likewise.
32697
32698 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
32699 fixvideo.mod.
32700 (loadbios_mod_SOURCE): New macro.
32701 (loadbios_mod_CFLAGS): Likewise.
32702 (loadbios_mod_LDFLAGS): Likewise.
32703 (fixvideo_mod_SOURCE): Likewise.
32704 (fixvideo_mod_CFLAGS): Likewise.
32705 (fixvideo_mod_LDFLAGS): Likewise.
32706
32707 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
32708 fixvideo.mod.
32709 (loadbios_mod_SOURCE): New macro.
32710 (loadbios_mod_CFLAGS): Likewise.
32711 (loadbios_mod_LDFLAGS): Likewise.
32712 (fixvideo_mod_SOURCE): Likewise.
32713 (fixvideo_mod_CFLAGS): Likewise.
32714 (fixvideo_mod_LDFLAGS): Likewise.
32715
32716 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
32717
32718 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
32719
32720 2009-04-07 David S. Miller <davem@davemloft.net>
32721
32722 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
32723 support for R_SPARC_OLO10 relocations. Fix compile warning for
32724 R_SPARC_WDISP30 case.
32725 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
32726
32727 2009-04-06 Pavel Roskin <proski@gnu.org>
32728
32729 * include/grub/misc.h (ARRAY_SIZE): New macro.
32730 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
32731 New macro.
32732 * loader/i386/linux.c (allocate_pages): Use free_pages().
32733 (grub_linux_unload): Don't use free_pages().
32734 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
32735 wrong index. Treat all other modes as text modes.
32736 (grub_cmd_linux): Initialize vid_mode unconditionally to
32737 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
32738
32739 * commands/help.c (print_command_help): Use cmd->prio, not
32740 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
32741
32742 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
32743
32744 Parttool
32745
32746 * parttool/pcpart.c: new file
32747 * commands/parttool.c: likewise
32748 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
32749 (parttool_mod_SOURCES): new variable
32750 (parttool_mod_CFLAGS): likewise
32751 (parttool_mod_LDFLAGS): likewise
32752 (pcpart_mod_SOURCES): likewise
32753 (pcpart_mod_CFLAGS): likewise
32754 (pcpart_mod_LDFLAGS): likewise
32755 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
32756 and parttool/pcpart.c
32757 * conf/i386-efi.rmk: likewise
32758 * conf/i386-ieee1275.rmk: likewise
32759 * conf/i386-pc.rmk: likewise
32760 * conf/powerpc-ieee1275.rmk: likewise
32761 * conf/sparc64-ieee1275.rmk: likewise
32762 * conf/x86_64-ieee1275.rmk: likewise
32763
32764 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32765
32766 Support for mtime and further expandability of dir command
32767
32768 * include/grub/lib/datetime.h: moved to ...
32769 * include/grub/datetime.h: ... moved here and added
32770 declaration of grub_unixtime2datetime. All users updated
32771 * include/grub/fs.h: new syntax for dir and mtime functions in
32772 struct grub_fs
32773 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
32774 and GRUB_FSHELP_FLAGS_MASK
32775 * commands/ls.c (grub_ls_list_files): Write mtime in long format
32776 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
32777 (grub_ext2_mtime): new function
32778 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
32779 (grub_hfsplus_mtime): new function
32780 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
32781 (GRUB_UFS_ATTR_FILE): likewise
32782 (GRUB_UFS_ATTR_LNK): likewise
32783 (struct grub_ufs_sblock): new fields mtime
32784 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
32785 all users updated
32786 (grub_ufs_dir): mtime support
32787 (grub_ufs_mtime): new function
32788 * fs/affs.c (grub_affs_dir): use new dir syntax
32789 * fs/afs.c (grub_afs_dir): likewise
32790 * fs/cpio.c (grub_cpio_dir): likewise
32791 * fs/fat.c (grub_fat_find_dir): likewise
32792 * fs/hfs.c (grub_hfs_dir): likewise
32793 * fs/iso9660.c (grub_iso9660_dir): likewise
32794 * fs/jfs.c (grub_jfs_dir): likewise
32795 * fs/minix.c (grub_minix_dir): likewise
32796 * fs/ntfs.c (grub_ntfs_dir): likewise
32797 * fs/reiserfs.c (grub_reiserfs_dir): likewise
32798 * fs/sfs.c (grub_sfs_dir): likewise
32799 * fs/xfs.c (grub_xfs_dir): likewise
32800 * util/hostfs.c (grub_hostfs_dir): likewise
32801 * lib/datetime.c: moved to ...
32802 * normal/datetime.c: ... moved here
32803 (grub_unixtime2datetime): new function
32804 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
32805 * normal/completion.c (iterate_dir): use new dir syntax
32806 * normal/misc.c (grub_normal_print_device_info): tell the
32807 last modification time of a volume
32808 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
32809 * conf/common.rmk: added lib/datetime.c to ls.mod
32810 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
32811 (normal_mod_SOURCES): likewise
32812 (datetime_mod_SOURCES): Removed lib/datetime.c
32813 * conf/i386-efi.rmk: likewise
32814 * conf/i386-ieee1275.rmk: likewise
32815 * conf/i386-pc.rmk: likewise
32816 * conf/powerpc-ieee1275.rmk: likewise
32817 * conf/sparc64-ieee1275.rmk: likewise
32818 * conf/x86_64-efi.rmk: likewise
32819
32820 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32821
32822 Trim trailing spaces in FAT label and support mtools-like labels
32823
32824 * fs/fat.c (grub_fat_iterate_dir): New function based
32825 on grub_fat_find_dir
32826 (grub_fat_find_dir): use grub_fat_iterate_dir
32827 (grub_fat_label): likewise
32828
32829 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
32830
32831 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
32832 and command.h
32833 remove extraneous kernel_elf_HEADERS
32834
32835 2009-04-04 Bean <bean123ch@gnail.com>
32836
32837 * include/grub/util/misc.h: Add dummy function fsync for mingw.
32838
32839 * util/misc.c: Likewise.
32840
32841 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
32842
32843 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
32844 instead of grub_printf.
32845
32846 2009-04-03 Robert Millan <rmh@aybabtu.com>
32847
32848 * loader/i386/linux.c (grub_linux_setup_video): Fill
32849 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
32850 values from `mode info' structure instead of hardcoded
32851 values.
32852
32853 2009-04-01 Pavel Roskin <proski@gnu.org>
32854
32855 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
32856 unused now.
32857 * genmk.rb: Likewise.
32858 * configure.ac: Likewise.
32859
32860 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
32861
32862 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
32863 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
32864
32865 2009-04-01 David S. Miller <davem@davemloft.net>
32866
32867 * normal/sparc64/setjmp.S: Fix setjmp implementation.
32868 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
32869 (grub_setjmp): Mark with 'returns_twice' attribute.
32870 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
32871 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
32872 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
32873
32874 2009-04-01 Robert Millan <rmh@aybabtu.com>
32875
32876 Reapply fix from 2008-07-28 which was accidentally reverted; also
32877 perform the same fix to a similar check in same function.
32878
32879 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
32880 with the same number are found, just use issue a warning with
32881 grub_dprintf(), as this error has been reported to be non-fatal.
32882
32883 2009-03-31 Pavel Roskin <proski@gnu.org>
32884
32885 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
32886 for cross-compilation.
32887
32888 2009-03-30 Robert Millan <rmh@aybabtu.com>
32889
32890 Fix i386-ieee1275 build.
32891
32892 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
32893 Remove declaration.
32894
32895 2009-03-30 Pavel Roskin <proski@gnu.org>
32896
32897 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
32898 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
32899 zero-terminated, rely only on the strlen value. Fix comparison
32900 of strings differing in length.
32901
32902 2009-03-30 Robert Millan <rmh@aybabtu.com>
32903
32904 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
32905 checking for abi version. Improve error messages on BIOS to notify
32906 user about `linux16' command.
32907
32908 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
32909
32910 Leak fixes
32911
32912 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
32913 in case of collision
32914 * disk/scsi.c (grub_scsi_open): free scsi in case of error
32915
32916 2009-03-29 Robert Millan <rmh@aybabtu.com>
32917
32918 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
32919 set `vid_mode' accordingly.
32920 (grub_linux_boot): Process `vid_mode' and set video mode.
32921
32922 2009-03-29 Robert Millan <rmh@aybabtu.com>
32923
32924 * util/grub.d/10_linux.in (linux_entry): New function.
32925 Factorize generation of Linux boot entries.
32926
32927 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
32928
32929 Make the format of Environment Block plain text. The boot loader
32930 part is not tested well yet.
32931
32932 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
32933 (buffer): Removed.
32934 (envblk): Likewise.
32935 (usage): Remove "info" and "clear". Add "unset". Update the
32936 description of "set", as this does not delete variables any
32937 longer.
32938 (create_envblk_file): Complete rewrite.
32939 (open_envblk_file): Likewise.
32940 (cmd_info): Removed.
32941 (cmd_list): Likewise.
32942 (cmd_set): Likewise.
32943 (cmd_clear): Likewise.
32944 (list_variables): New function.
32945 (write_envblk): Likewise.
32946 (set_variables): Likewise.
32947 (unset_variables): Likewise.
32948 (main): Complete rewrite.
32949
32950 * commands/loadenv.c (buffer): Removed.
32951 (envblk): Likewise.
32952 (open_envblk_file): New function.
32953 (read_envblk_file): Complete rewrite.
32954 (grub_cmd_load_env): Likewise.
32955 (grub_cmd_list_env): Likewise.
32956 (struct blocklist): New struct.
32957 (free_blocklists): New function.
32958 (check_blocklists): Likewise.
32959 (write_blocklists): Likewise.
32960 (grub_cmd_save_env): Complete rewrite.
32961
32962 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
32963 a plain text signature.
32964 (GRUB_ENVBLK_MAXLEN): Removed.
32965 (struct grub_envblk): Complete rewrite.
32966 (grub_envblk_find): Removed.
32967 (grub_envblk_insert): Likewise.
32968 (grub_envblk_open): New prototype.
32969 (grub_envblk_set): Likewise.
32970 (grub_envblk_delete): Put const to VALUE.
32971 (grub_envblk_iterate): Put const to NAME and VALUE.
32972 (grub_envblk_close): New prototype.
32973 (grub_envblk_buffer): New inline function.
32974 (grub_envblk_size): Likewise.
32975
32976 * lib/envblk.c: Include grub/mm.h.
32977 (grub_env_find): Removed.
32978 (grub_envblk_open): New function.
32979 (grub_envblk_close): Likewise.
32980 (escaped_value_len): Likewise.
32981 (find_next_line): Likewise.
32982 (grub_envblk_insert): Removed.
32983 (grub_envblk_set): New function.
32984 (grub_envblk_delete): Complete rewrite.
32985 (grub_envblk_iterate): Likewise.
32986
32987 2009-03-28 Robert Millan <rmh@aybabtu.com>
32988
32989 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
32990 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
32991 variables. Use 16-bit loader.
32992 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
32993 loader.
32994 * kern/i386/loader.S (grub_linux_boot): Rename to ...
32995 (grub_linux16_boot): ... this. Update all users.
32996 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
32997 (grub_linux_boot): ... this. Update all users.
32998
32999 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
33000 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
33001 commands to `linux16' and `initrd16'.
33002 (GRUB_MOD_FINI(linux)): Rename to ...
33003 (GRUB_MOD_FINI(linux16)): ... this.
33004
33005 2009-03-24 Pavel Roskin <proski@gnu.org>
33006
33007 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
33008 not just for compilation.
33009
33010 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
33011
33012 Move multiboot helper out of kernel
33013
33014 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
33015 `loader/i386/multiboot_helper.S'.
33016 * conf/i386-coreboot.rmk: Likewise
33017 * conf/i386-ieee1275.rmk: Likewise
33018
33019 * kern/i386/loader.S: Move multiboot helpers from here...
33020 * loader/i386/multiboot_helper.S: ...moved here
33021 * include/grub/i386/loader.h: Move declarations of multiboot
33022 helpers from here...
33023 * include/grub/i386/multiboot.h: ...moved here
33024 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
33025
33026 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33027
33028 * kern/env.c (grub_env_context_open): Added an argument to specify
33029 whether a new context inherits exported variables from current
33030 one. This is useful when making a sandbox to interpret a config
33031 file.
33032 All callers updated.
33033
33034 * include/grub/env.h (grub_env_context_open): Updated the prototype.
33035
33036 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33037
33038 * kern/env.c (grub_env_context_close): Fix memory leaks.
33039
33040 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33041
33042 * normal/main.c (grub_normal_execute): Added an argument
33043 BATCH to specify if an interactive interface should be provided
33044 after reading a config file.
33045 All callers updated.
33046 (read_command_list): Prevent being executed twice.
33047 (read_fs_list): Likewise.
33048
33049 * include/grub/normal.h (grub_normal_execute): Updated the
33050 prototype.
33051
33052 2009-03-22 Pavel Roskin <proski@gno.org>
33053
33054 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
33055 _start.
33056 * kern/i386/pc/startup.S: Likewise.
33057 * kern/i386/efi/startup.S: Likewise.
33058 * kern/i386/ieee1275/startup.S: Likewise.
33059 * kern/i386/coreboot/startup.S: Likewise.
33060 * kern/x86_64/efi/startup.S: Likewise.
33061
33062 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
33063 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
33064 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
33065
33066 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
33067
33068 Bugfixes in multiboot for bugs uncovered by solaris kernel.
33069
33070 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
33071 limit detection.
33072 Use vaddr of correct segment for entry_point.
33073
33074 2009-03-21 Bean <bean123ch@gmail.com>
33075
33076 * commands/blocklist.c: Add include file <grub/command.h>, remove
33077 <grub/normal.h> and <grub/arg.h>.
33078 (grub_cmd_blocklist): Use the new command interface.
33079 (GRUB_MOD_INIT): Likewise.
33080 (GRUB_MOD_FINI): Likewise.
33081 * commands/boot.c: Likewise.
33082 * commands/cat.c: Likewise.
33083 * commands/cmp.c: Likewise.
33084 * commands/configfile.c: Likewise.
33085 * commands/crc.c: Likewise.
33086 * commands/echo.c: Likewise.
33087 * commands/halt.c: Likewise.
33088 * commands/handler.c: Likewise.
33089 * commands/hdparm.c: Likewise.
33090 * commands/help.c: Likewise.
33091 * commands/hexdump.c: Likewise.
33092 * commands/loadenv.c: Likewise.
33093 * commands/ls.c: Likewise.
33094 * commands/lsmmap.c: Likewise.
33095 * commands/lspci.c: Likewise.
33096 * commands/loadenv.c: Likewise.
33097 * commands/read.c: Likewise.
33098 * commands/reboot.c: Likewise.
33099 * commands/search.c: Likewise.
33100 * commands/sleep.c: Likewise.
33101 * commands/test.c: Likewise.
33102 * commands/usbtest.c: Likewise.
33103 * commands/videotest.c: Likewise.
33104 * commands/i386/cpuid.c: Likewise.
33105 * commands/i386/pc/halt.c: Likewise.
33106 * commands/i386/pc/play.c: Likewise.
33107 * commands/i386/pc/pxecmd.c: Likewise.
33108 * commands/i386/pc/vbeinfo.c: Likewise.
33109 * commands/i386/pc/vbetest.c: Likewise.
33110 * commands/ieee1275/suspend.c: Likewise.
33111 * disk/loopback.c: Likewise.
33112 * font/font_cmd.c: Likewise.
33113 * hello/hello.c: Likewise.
33114 * loader/efi/appleloader.c: Likewise.
33115 * loader/efi/chainloader.c: Likewise.
33116 * loader/i386/bsd.c: Likewise.
33117 * loader/i386/efi/linux.c: Likewise.
33118 * loader/i386/ieee1275/linux.c: Likewise.
33119 * loader/i386/linux.c: Likewise.
33120 * loader/i386/pc/chainloader.c: Likewise.
33121 * loader/i386/pc/linux.c: Likewise.
33122 * loader/powerpc/ieee1275/linux.c: Likewise.
33123 * loader/multiboot_loader.c: Likewise.
33124 * term/gfxterm.c: Likewise.
33125 * term/i386/pc/serial.c: Likewise.
33126 * term/terminfo.c: Likewise.
33127
33128 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
33129 * term/i386/pc/vga.c: Likewise.
33130 * video/readers/jpeg.c: Likewise.
33131 * video/readers/png.c: Likewise.
33132 * video/readers/tga.c: Likewise.
33133
33134 * util/grub-fstest (cmd_loopback): Removed.
33135 (cmd_blocklist): Likewise.
33136 (cmd_ls): Likewise.
33137 (grub_register_command): Likewise.
33138 (grub_unregister_command): Likewise.
33139 (execute_command): Use grub_command_find to locate command and execute
33140 it.
33141
33142 * include/grub/efi/chainloader.h: Removed.
33143 * loader/efi/chainloader_normal.c: Likewise.
33144 * loader/i386/bsd_normal.c: Likewise.
33145 * loader/i386/pc/chainloader_normal.c: Likewise.
33146 * loader/i386/pc/multiboot_normal.c: Likewise.
33147 * loader/linux_normal.c: Likewise.
33148 * loader/multiboot_loader_normal.c: Likewise.
33149 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
33150
33151 * gencmdlist.sh: Scan new registration command grub_register_extcmd
33152 and grub_register_command_p1.
33153
33154 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
33155 kern/command.c, lib/arg.c and commands/extcmd.c.
33156 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
33157 (minicmd_mod_SOURCES): New variable.
33158 (minicmd_mod_CFLAGS): Likewise.
33159 (minicmd_mod_LDFLAGS): Likewise.
33160 (extcmd_mod_SOURCES): Likewise.
33161 (extcmd_mod_CFLAGS): Likewise.
33162 (extcmd_mod_LDFLAGS): Likewise.
33163 (boot_mod_SOURCES): Removed.
33164 (boot_mod_CFLAGS): Likewise.
33165 (boot_mod_LDFLAGS): Likewise.
33166
33167 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
33168 kern/corecmd.c.
33169 (kernel_img_HEADERS): Add command.h.
33170 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
33171 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
33172 and lib/arg.c.
33173 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
33174 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
33175 remove the corresponding normal mode command.
33176 (normal_mod_SOURCES): Remove normal/arg.c.
33177 * conf/i386-coreboot.rmk: Likewise.
33178 * conf/i386-efi.rmk: Likewise.
33179 * conf/i386-ieee1275.rmk: Likewise.
33180 * conf/powerpc-ieee1275.rmk: Likewise.
33181 * conf/x86_64-efi.rmk: Likewise.
33182
33183 * include/grub/arg.h: Move from here ...
33184 * include/grub/lib/arg.h: ... to here.
33185
33186 * normal/arg.c: Move from here ...
33187 * lib/arg.c: ... to here.
33188
33189 * commands/extcmd.c: New file.
33190 * commands/minicmd.c: Likewise.
33191 * include/grub/command.h: Likewise.
33192 * include/grub/extcmd.h: Likewise.
33193 * kern/command.c: Likewise.
33194 * kern/corecmd.c: Likewise.
33195
33196 * kern/list.c (grub_list_iterate): Return int instead of void.
33197 (grub_list_insert): New function.
33198 (grub_prio_list_insert): Likewise.
33199
33200 * kern/rescue.c (grub_rescue_command): Removed.
33201 (grub_rescue_command_list): Likewise.
33202 (grub_rescue_register_command): Likewise.
33203 (grub_rescue_unregister_command): Likewise.
33204 (grub_rescue_cmd_boot): Move to minicmd.c
33205 (grub_rescue_cmd_help): Likewise.
33206 (grub_rescue_cmd_info): Likewise.
33207 (grub_rescue_cmd_boot): Likewise.
33208 (grub_rescue_cmd_testload): Likewise.
33209 (grub_rescue_cmd_dump): Likewise.
33210 (grub_rescue_cmd_rmmod): Likewise.
33211 (grub_rescue_cmd_lsmod): Likewise.
33212 (grub_rescue_cmd_exit): Likewise.
33213 (grub_rescue_print_devices): Moved to corecmd.c.
33214 (grub_rescue_print_files): Likewise.
33215 (grub_rescue_cmd_ls): Likewise.
33216 (grub_rescue_cmd_insmod): Likewise.
33217 (grub_rescue_cmd_set): Likewise.
33218 (grub_rescue_cmd_unset): Likewise.
33219 (attempt_normal_mode): Use grub_command_find to get normal module.
33220 (grub_enter_rescue_mode): Use grub_register_core_commands to register
33221 commands, remove grub_rescue_register_command calls.
33222
33223 * normal/command.c (grub_register_command): Removed.
33224 (grub_unregister_command): Likewise.
33225 (grub_command_find): Likewise.
33226 (grub_iterate_commands): Likewise.
33227 (rescue_command): Likewise.
33228 (export_command): Moved to corecmd.c.
33229 (set_command): Removed.
33230 (unset_command): Likewise.
33231 (insmod_command): Likewise.
33232 (rmmod_command): Likewise.
33233 (lsmod_command): Likewise.
33234 (grub_command_init): Likewise.
33235
33236 * normal/completion.c (iterate_command): Use cmd->prio to check for
33237 active command.
33238 (complete_arguments): Use grub_extcmd_t structure to find options.
33239 (grub_normal_do_completion): Change function grub_iterate_commands to
33240 grub_command_iterate.
33241
33242 * normal/execute.c (grub_script_execute_cmd): No need to parse
33243 argument here.
33244
33245 * normal/main.c (grub_dyncmd_dispatcher): New function.
33246 (read_command_list): Register unload commands as dyncmd.
33247 (grub_cmd_normal): Use new command interface, register rescue,
33248 unregister normal at entry, register normal, unregister rescue at exit.
33249
33250 * include/grub/list.h (grub_list_test_t): New type.
33251 (grub_list_iterate): Return int instead of void.
33252 (grub_list_insert): New function.
33253 (GRUB_AS_NAMED_LIST_P): New macro.
33254 (GRUB_AS_PRIO_LIST): Likewise.
33255 (GRUB_AS_PRIO_LIST_P): Likewise.
33256 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
33257 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
33258 (grub_prio_list): New structure.
33259 (grub_prio_list_insert): New function.
33260 (grub_prio_list_remove): New inline function.
33261
33262 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
33263 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
33264 (GRUB_COMMAND_FLAG_MENU): Likewise.
33265 (GRUB_COMMAND_FLAG_BOTH): Likewise.
33266 (GRUB_COMMAND_FLAG_TITLE): Likewise.
33267 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
33268 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
33269 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
33270 (grub_command): Likewise.
33271 (grub_register_command): Likewise.
33272 (grub_command_find): Likewise.
33273 (grub_iterate_commands): Likewise.
33274 (grub_command_init): Likewise.
33275 (grub_arg_parse): Likewise.
33276 (grub_arg_show_help): Likewise.
33277
33278 * include/grub/rescue.h (grub_rescue_register_command): Removed.
33279 (grub_rescue_unregister_command): Likewise.
33280
33281 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
33282 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
33283 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
33284
33285 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
33286 grub_rescue_cmd_initrd.
33287 * include/grub/i386/loader.h: Likewise.
33288 * include/grub/x86_64/loader.h: Likewise.
33289
33290 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
33291
33292 2009-03-21 Bean <bean123ch@gmail.com>
33293
33294 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
33295 instead of stat in mingw environment.
33296
33297 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
33298
33299 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
33300
33301 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
33302 AC_CONFIG_LINKS.
33303
33304 2009-03-21 Bean <bean123ch@gmail.com>
33305
33306 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
33307 out of range error.
33308
33309 2009-03-18 Michel Dänzer <michel@daenzer.net>
33310
33311 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
33312 checking inode flags for EXT4_EXTENTS_FLAG.
33313
33314 2009-03-18 Robert Millan <rmh@aybabtu.com>
33315
33316 * loader/i386/linux.c: Include `<grub/video.h>' and
33317 `<grub/i386/pc/vbe.h>'..
33318 (grub_linux_setup_video): New function. Loosely based on the EFI one.
33319 (grub_linux32_boot): Attempt to configure video settings with
33320 grub_linux_setup_video().
33321 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
33322 to avoid grub_console_fini() which would step out of graphical mode
33323 unconditionally.
33324
33325 2009-03-14 Robert Millan <rmh@aybabtu.com>
33326
33327 Fix build on powerpc.
33328 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
33329
33330 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
33331
33332 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
33333 background image command.
33334
33335 2009-03-12 Colin D Bennett <colin@gibibit.com>
33336
33337 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
33338 (grub_gfxterm_putchar): Extract pairs of identical calls to
33339 draw_cursor out of conditional blocks.
33340
33341 2009-03-11 Pavel Roskin <proski@gnu.org>
33342
33343 * fs/hfs.c (grub_hfs_strncasecmp): New function.
33344 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
33345
33346 2009-03-11 Robert Millan <rmh@aybabtu.com>
33347
33348 * loader/i386/multiboot_elfxx.c
33349 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
33350
33351 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
33352
33353 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
33354 `kern/handler.c'.
33355
33356 2009-03-11 Robert Millan <rmh@aybabtu.com>
33357
33358 * loader/i386/multiboot.c (code_size): New variable.
33359 (grub_multiboot): Define offsets by adding to `code_size' rather
33360 than subtracting from `grub_multiboot_payload_size'. Provide
33361 4-byte alignment to MBI and others by increasing
33362 `boot_loader_name_length' appropriately.
33363
33364 * loader/i386/multiboot_elfxx.c
33365 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
33366
33367 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
33368
33369 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
33370 `fs/ext2.c'.
33371
33372 2009-03-08 Robert Millan <rmh@aybabtu.com>
33373
33374 Make loader/i386/linux.c usable on i386-pc again.
33375
33376 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
33377 memory to heap.
33378 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
33379 `#error' stanza.
33380
33381 2009-03-07 Bean <bean123ch@gmail.com>
33382
33383 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
33384 allocation.
33385
33386 2009-03-06 Robert Millan <rmh@aybabtu.com>
33387
33388 Fix display issue on terminals with screen size other than 80x25
33389 (e.g. gfxterm with resolution higher than 640x480).
33390
33391 * normal/main.c (grub_normal_init_page): Display title text in a
33392 position relative to the center of the terminal instead of relying
33393 on a hardcoded offset.
33394
33395 2009-03-04 Robert Millan <rmh@aybabtu.com>
33396
33397 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
33398 installed.
33399
33400 * Makefile.in (host_kernel): New variable.
33401 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
33402 scripts instead of just the windows one.
33403 * configure.ac: Initialize and AC_SUBST `host_kernel'.
33404
33405 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33406
33407 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
33408 `kern/handler.c'.
33409 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33410 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33411 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33412 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33413 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33414 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33415
33416 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33417
33418 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
33419 or if there's no space for the disk label and print the partition number on a
33420 invalid magic.
33421
33422 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33423
33424 * util/misc.c: Include <time.h>.
33425 (grub_millisleep): New function.
33426
33427 2009-03-04 Bean <bean123ch@gmail.com>
33428
33429 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
33430 another option -mno-red-zone.
33431
33432 * commands/handler.c: Change module description.
33433
33434 * kern/handler.c: Add missing space at the end of description line.
33435
33436 * kern/list.c: Likewise.
33437
33438 2009-03-03 Robert Millan <rmh@aybabtu.com>
33439
33440 Move more components to the relocation area, and fix mbi pointer
33441 handling to use the destination rather than the origin (thanks to
33442 Vladimir Serbinenko for spotting).
33443
33444 * loader/i386/multiboot.c (mbi_dest): New variable.
33445 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
33446 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
33447 relocation area.
33448
33449 2009-03-01 Bean <bean123ch@gmail.com>
33450
33451 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
33452 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
33453 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
33454 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
33455
33456 * loader/i386/efi/linux.c (acpi_guid): New variable.
33457 (acpi_guid): Likewise.
33458 (EBDA_SEG_ADDR): New constant.
33459 (LOW_MEM_ADDR): Likewise.
33460 (FAKE_EBDA_SEG): Likewise.
33461 (fake_bios_data): New function.
33462 (grub_linux_boot): Call fake_bios_data.
33463
33464 2009-03-01 Bean <bean123ch@gmail.com>
33465
33466 * commands/terminal.c: Removed.
33467
33468 * commands/handler.c: New file.
33469
33470 * include/grub/list.h: Likewise.
33471
33472 * include/grub/handler.h: Likewise.
33473
33474 * kern/list.c: Likewise.
33475
33476 * kern/handler.c: Likewise.
33477
33478 * kern/term.h: Include header file <grub/handler.h>.
33479 (grub_term_input): Move next field to the beginning.
33480 (grub_term_output): Likewise.
33481 (grub_term_input_class): New variable.
33482 (grub_term_output_class): Likewise.
33483 (grub_term_register_input): Changed to inline function.
33484 (grub_term_register_output): Likewise.
33485 (grub_term_unregister_input): Likewise.
33486 (grub_term_unregister_output): Likewise.
33487 (grub_term_set_current_input): Likewise.
33488 (grub_term_set_current_output): Likewise.
33489 (grub_term_get_current_input): Likewise.
33490 (grub_term_get_current_output): Likewise.
33491 (grub_term_iterate_input): Removed.
33492 (grub_term_iterate_output): Likewise.
33493
33494 * kern/term.c (grub_term_list_input): Removed.
33495 (grub_term_list_output): Likewise.
33496 (grub_term_input_class): New variable.
33497 (grub_term_output_class): Likewise.
33498 (grub_cur_term_input): Change variable as macro.
33499 (grub_cur_term_output): Likewise.
33500 (grub_term_register_input): Removed.
33501 (grub_term_register_output): Likewise.
33502 (grub_term_unregister_input): Likewise.
33503 (grub_term_unregister_output): Likewise.
33504 (grub_term_set_current_input): Likewise.
33505 (grub_term_set_current_output): Likewise.
33506 (grub_term_iterate_input): Likewise.
33507 (grub_term_iterate_output): Likewise.
33508 (grub_term_get_current_input): Likewise.
33509 (grub_term_get_current_output): Likewise.
33510
33511 * util/grub-editenv.c: Include header file <grub/handler.h>.
33512 (grub_term_get_current_input): Removed.
33513 (grub_term_get_current_output): Likewise.
33514 (grub_term_input_class): New variable.
33515 (grub_term_output_class): Likewise.
33516
33517 * util/grub-fstest.c (grub_term_get_current_input): Removed.
33518 (grub_term_get_current_output): Likewise.
33519 (grub_term_input_class): New variable.
33520 (grub_term_output_class): Likewise.
33521
33522 * util/grub-probe.c (grub_term_get_current_input): Removed.
33523 (grub_term_get_current_output): Likewise.
33524 (grub_term_input_class): New variable.
33525 (grub_term_output_class): Likewise.
33526
33527 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
33528 (grub_term_get_current_output): Likewise.
33529 (grub_term_input_class): New variable.
33530 (grub_term_output_class): Likewise.
33531
33532 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
33533 (terminal_mod_SOURCES): Likewise.
33534 (terminal_mod_CFLAGS): Likewise.
33535 (terminal_mod_LDFLAGS): Likewise.
33536
33537 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
33538 handler.c.
33539 (kernel_img_SOURCES): Add list.c and handler.c.
33540 (kernel_img_HEADERS): Add list.h and handler.h.
33541
33542 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33543 handler.c.
33544 (kernel_mod_SOURCES): Add list.c and handler.c.
33545 (kernel_mod_HEADERS): Add list.h and handler.h.
33546
33547 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
33548 handler.c.
33549 (kernel_elf_SOURCES): Add list.c and handler.c.
33550 (kernel_elf_HEADERS): Add list.h and handler.h.
33551
33552 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33553 handler.c.
33554 (kernel_elf_SOURCES): Add list.c and handler.c.
33555 (kernel_elf_HEADERS): Add list.h and handler.h.
33556
33557 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33558 handler.c.
33559 (kernel_mod_SOURCES): Add list.c and handler.c.
33560 (kernel_mod_HEADERS): Add list.h and handler.h.
33561
33562 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33563 handler.c.
33564 (kernel_elf_SOURCES): Add list.c and handler.c.
33565 (kernel_elf_HEADERS): Add list.h and handler.h.
33566
33567 2009-02-27 Robert Millan <rmh@aybabtu.com>
33568
33569 Factorize elf32 / elf64 code in Multiboot loader. This will
33570 prevent it from getting out of sync again.
33571
33572 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
33573 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
33574 grub_multiboot_load_elf64): Move from here ...
33575 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
33576 grub_multiboot_load_elf): ... to here (new file).
33577
33578 2009-02-27 Robert Millan <rmh@aybabtu.com>
33579
33580 * util/grub.d/10_linux.in: Rename "single-user mode" to
33581 "recovery mode".
33582
33583 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
33584
33585 Don't leak in SCSI code.
33586 * disk/scsi.c (grub_scsi_close): free `scsi'.
33587
33588 2009-02-27 Robert Millan <rmh@aybabtu.com>
33589
33590 * loader/i386/pc/multiboot.c: Move from here ...
33591 * loader/i386/multiboot.c: ... to here. Update all users.
33592
33593 2009-02-27 Robert Millan <rmh@aybabtu.com>
33594
33595 Patch from Alexandre Bique <bique.alexandre@gmail.com>
33596 * util/i386/pc/grub-setup.c (setup): Fix directory path.
33597
33598 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
33599
33600 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
33601 b-tree.
33602
33603 2009-02-27 Robert Millan <rmh@aybabtu.com>
33604
33605 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
33606 `0x' qualifier as 0 when base is specified as parameter).
33607
33608 2009-02-24 Bean <bean123ch@gmail.com>
33609
33610 * configure.ac: Check for -mcmodel=large in x86_64 target.
33611
33612 * include/grub/efi/api.h (efi_call_10): New macro.
33613 (efi_wrap_10): New function.
33614
33615 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
33616 (GRUB_PE32_REL_BASED_HIGH): Likewise.
33617 (GRUB_PE32_REL_BASED_LOW): Likewise.
33618 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
33619 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
33620 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
33621 (GRUB_PE32_REL_BASED_SECTION): Likewise.
33622 (GRUB_PE32_REL_BASED_REL): Likewise.
33623 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
33624 (GRUB_PE32_REL_BASED_DIR64): Likewise.
33625 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
33626
33627 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
33628 issue.
33629
33630 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
33631 (efi_wrap_10): New function.
33632
33633 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
33634
33635 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
33636 MB/MBP model (NV chipset).
33637 (devdata_devs): Add devpath_5 to the list.
33638
33639 * load/i386/efi/linux.c (video_base): Remove variable.
33640 (RGB_MASK): New macro.
33641 (RGB_MAGIC): Likewise.
33642 (LINE_MIN): Likewise.
33643 (LINE_MAX): Likewise.
33644 (FBTEST_STEP): Likewise.
33645 (FBTEST_COUNT): Likewise.
33646 (fb_list): New variable.
33647 (grub_find_video_card): Remove function.
33648 (find_framebuf): New function.
33649 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
33650 line length.
33651
33652 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
33653 problem for x86_64.
33654
33655 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
33656
33657 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
33658
33659 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
33660 coding tool name.
33661
33662 2009-02-22 Robert Millan <rmh@aybabtu.com>
33663
33664 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
33665 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
33666 in our relocation, instead of using it directly from heap. Also
33667 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
33668
33669 2009-02-21 Robert Millan <rmh@aybabtu.com>
33670
33671 Implement USB keyboard support (based on patch by Marco Gerards)
33672
33673 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
33674 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
33675 (usb_keyboard_mod_LDFLAGS): New variables.
33676
33677 * term/usb_keyboard.c: New file.
33678
33679 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
33680
33681 Corrected wrong declaration
33682
33683 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
33684
33685 2009-02-14 Christian Franke <franke@computer.org>
33686
33687 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
33688 (grub_lspci_iter): Print class code and programming interface byte.
33689
33690 2009-02-14 Christian Franke <franke@computer.org>
33691
33692 * gendistlist.sh: Ignore `.svn' directories.
33693
33694 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
33695
33696 * fs/fat.c: Add 2009 to Copyright line.
33697
33698 2009-02-14 Christian Franke <franke@computer.org>
33699
33700 * commands/hdparm.c: New file. Provides `hdparm' command
33701 which sends ATA commands via grub_disk_ata_pass_through ().
33702
33703 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
33704
33705 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
33706 and <grub/cpu/io.h> to include/grub/ata.h.
33707 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
33708 (GRUB_CDROM_SECTOR_SIZE): Remove.
33709 (GRUB_ATA_*): Move to include/grub/ata.h.
33710 (GRUB_ATAPI_*): Likewise.
33711 (enum grub_ata_commands): Likewise.
33712 (enum grub_ata_timeout_milliseconds): Likewise.
33713 (struct grub_ata_device): Likewise.
33714 (grub_ata_regset): Likewise.
33715 (grub_ata_regget): Likewise.
33716 (grub_ata_regset2): Likewise.
33717 (grub_ata_regget2): Likewise.
33718 (grub_ata_check_ready): Likewise.
33719 (grub_ata_wait_not_busy): Remove static, exported in
33720 include/grub/ata.h.
33721 (grub_ata_wait_drq): Likewise.
33722 (grub_ata_pio_read): Likewise.
33723
33724 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
33725 function for hdparm.mod.
33726
33727 * include/grub/ata.h: New file, contains declarations from
33728 disk/ata.c.
33729 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
33730
33731 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
33732 (grub_disk_ata_pass_through): New exported variable.
33733
33734 * kern/disk.c (grub_disk_ata_pass_through): New variable.
33735
33736 2009-02-13 Colin D Bennett <colin@gibibit.com>
33737
33738 Support multiple fallback entries, and provide an API to support
33739 executing default+fallback menu entries. Renamed the `terminal' menu
33740 viewer to `text'.
33741
33742 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
33743 variable declaration.
33744 (grub_menu_execute_callback): New structure declaration.
33745 (grub_menu_execute_callback_t): New typedef.
33746 (grub_menu_execute_with_fallback): New function declaration.
33747 (grub_menu_get_entry): Likewise.
33748 (grub_menu_get_timeout): Likewise.
33749 (grub_menu_set_timeout): Likewise.
33750
33751 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
33752
33753 * normal/menu.c (grub_wait_after_message): Moved to
33754 `normal/menu_text.c'.
33755 (draw_border): Likewise.
33756 (print_message): Likewise.
33757 (print_entry): Likewise.
33758 (print_entries): Likewise.
33759 (grub_menu_init_page): Likewise.
33760 (get_entry_number): Likewise.
33761 (print_timeout): Likewise.
33762 (run_menu): Likewise.
33763 (grub_menu_execute_entry): Likewise.
33764 (show_text_menu): Likewise.
33765 (get_and_remove_first_entry_number): New function.
33766 (grub_menu_execute_with_fallback): Likewise.
33767 (get_entry): Renamed to ...
33768 (grub_menu_get_entry): .. this and made it global.
33769 (get_timeout): Renamed to ...
33770 (grub_menu_get_timeout): ... this and made it global.
33771 (set_timeout): Renamed to ...
33772 (grub_menu_set_timeout): ... this and made it global.
33773 (grub_normal_terminal_menu_viewer): Renamed to ...
33774 (grub_normal_text_menu_viewer): ... this.
33775
33776 * normal/menu_text.c: New file. Extracted text-menu-specific code
33777 from normal/menu.c.
33778
33779 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
33780 (normal_mod_SOURCES): Likewise.
33781
33782 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33783 (normal_mod_SOURCES): Likewise.
33784
33785 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33786 (normal_mod_SOURCES): Likewise.
33787
33788 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
33789 (normal_mod_SOURCES): Likewise.
33790
33791 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33792 (normal_mod_SOURCES): Likewise.
33793
33794 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33795 (normal_mod_SOURCES): Likewise.
33796
33797 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33798 (normal_mod_SOURCES): Likewise.
33799
33800 2009-02-11 Robert Millan <rmh@aybabtu.com>
33801
33802 * util/grub.d/00_header.in: Update old reference to `font' command.
33803
33804 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
33805
33806 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
33807
33808 Based on patch from Javier Martín.
33809
33810 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33811
33812 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
33813 to avoid false positives with FAT.
33814 (grub_fstest_SOURCES): Likewise.
33815 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33816 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33817 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33818 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33819 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33820 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33821
33822 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33823
33824 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
33825 bpb.version_specific.fat12_or_fat16.fstype and
33826 bpb.version_specific.fat32.fstype.
33827
33828 2009-02-08 Robert Millan <rmh@aybabtu.com>
33829
33830 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
33831
33832 2009-02-08 Robert Millan <rmh@aybabtu.com>
33833
33834 * Makefile.in (host_os, host_cpu): New variables.
33835 (target_os): Remove. Update all users.
33836
33837 2009-02-08 Marco Gerards <marco@gnu.org>
33838
33839 * Makefile.in (enable_grub_emu_usb): New variable.
33840 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
33841 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
33842 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
33843 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
33844 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
33845 `usbtest.mod' and `usbms.mod'.
33846 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
33847 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
33848 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
33849 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
33850 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
33851 variables.
33852
33853 * disk/usbms.c: New file.
33854
33855 * include/grub/usb.h: Likewise.
33856
33857 * include/grub/usbtrans.h: Likewise.
33858
33859 * include/grub/usbdesc.h: Likewise.
33860
33861 * bus/usb/usbtrans.c: Likewise.
33862
33863 * bus/usb/ohci.c: Likewise.
33864
33865 * bus/usb/uhci.c: Likewise.
33866
33867 * bus/usb/usbhub.c: Likewise.
33868
33869 * bus/usb/usb.c: Likewise.
33870
33871 * commands/usbtest.c: Likewise.
33872
33873 * util/usb.c: Likewise.
33874
33875 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
33876
33877 * configure.ac: Test for libusb presence.
33878
33879 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
33880
33881 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
33882
33883 * kern/mm.c: Add more comments.
33884
33885 2009-02-08 Robert Millan <rmh@aybabtu.com>
33886
33887 Patch from Javier Martín.
33888 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
33889 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
33890
33891 2009-02-08 Robert Millan <rmh@aybabtu.com>
33892
33893 * fs/cpio.c: Split tar functionality to ...
33894 * fs/tar.c: ... here (new file). Update all users.
33895
33896 2009-02-07 Robert Millan <rmh@aybabtu.com>
33897
33898 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
33899 backward-incompatible features.
33900
33901 Based on patch from Javier Martín, with some adjustments.
33902
33903 2009-02-07 Michael Scherer <misc@mandriva.org>
33904
33905 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
33906
33907 2009-02-07 Robert Millan <rmh@aybabtu.com>
33908
33909 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
33910 position of `disk/lvm.c' to ensure grub_init_all() always picks it
33911 after the RAID stuff.
33912
33913 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
33914
33915 Fixes problem when running vbetest command as reported by
33916 Vladimir Serbinenko <phcoder@gmail.com>.
33917
33918 * (grub_vbe_set_video_mode): Fixed problem with text modes.
33919
33920 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
33921
33922 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
33923 /dev/md/NpN style mdraid devices.
33924
33925 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33926
33927 * util/unifont2pff.rb: Remove.
33928
33929 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33930
33931 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
33932 `#'.
33933
33934 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33935
33936 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
33937 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33938 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33939 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33940 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33941 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33942 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33943
33944 2009-02-02 Christian Franke <franke@computer.org>
33945
33946 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
33947
33948 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
33949
33950 * INSTALL: Note that we now require at least autoconf 2.59 and
33951 that LZO is optional.
33952
33953 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
33954
33955 Base on patch on bug #24154 created by Tomas Tintera
33956 <trosos@seznam.cz>.
33957
33958 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
33959
33960 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
33961
33962 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
33963 <bero@arklinux.org>.
33964
33965 * normal/parser.y (script_init): Add missing semicolon.
33966
33967 2009-01-31 Colin D Bennett <colin@gibibit.com>
33968
33969 * normal/main.c: Add include to grub/menu_viewer.h.
33970 (free_menu_entry_classes): Added.
33971 (grub_normal_menu_addentry): Added class property handling.
33972 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
33973 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
33974
33975 * normal/menu_viewer.c: New file.
33976
33977 * normal/menu.c (run_menu_entry): Renamed to ...
33978 (grub_menu_execute_entry): ... this and made it as global.
33979 (grub_menu_run): Renamed to ...
33980 (show_text_menu): ... this and made it local.
33981 (show_text_menu): Adapt to new function names.
33982 (grub_normal_terminal_menu_viewer): New global variable.
33983
33984 * include/grub/menu.h: New file.
33985
33986 * include/grub/menu_viewer.h: New file.
33987
33988 * include/grub/normal.h: Added include to grub/menu.h.
33989 (grub_menu_entry): Moved to include/grub/menu.h.
33990 (grub_menu_entry_t): Likewise.
33991 (grub_menu): Likewise.
33992 (grub_menu_t): Likewise.
33993 (grub_normal_terminal_menu_viewer): Added.
33994 (grub_menu_execute_entry): Likewise.
33995 (grub_menu_run): Removed.
33996
33997 * DISTLIST: Added include/grub/menu.h.
33998 Added include/grub/menu_viewer.h.
33999 Added normal/menu_viewer.c.
34000
34001 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
34002
34003 * normal/execute.c (grub_script_execute_menuentry): Changed to use
34004 arglist for menutitle arguments.
34005
34006 * normal/main.c (grub_normal_menu_addentry): Likewise.
34007
34008 * normal/parser.y (menuentry): Likewise.
34009
34010 * normal/script.c (grub_script_create_cmdmenu): Likewise.
34011
34012 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
34013 (grub_script_create_cmdmenu): Likewise.
34014
34015 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
34016
34017 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
34018 changes.
34019
34020 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
34021
34022 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
34023
34024 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
34025
34026 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34027
34028 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34029
34030 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34031
34032 2009-01-30 Christian Franke <franke@computer.org>
34033
34034 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
34035 in option help text.
34036
34037 2009-01-27 Pavel Roskin <proski@gnu.org>
34038
34039 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
34040
34041 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34042
34043 * commands/lsmmap.c: Add include to grub/machine/memory.h.
34044
34045 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
34046
34047 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
34048 unregister function.
34049
34050 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34051
34052 * disk/scsi.c (grub_scsi_read): Fix sign problem.
34053
34054 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
34055
34056 * util/grub-mkfont.c (usage): Fix typo.
34057
34058 * util/elf/grub-mkimage.c (load_modules): Fix warning.
34059
34060 2009-01-26 Daniel Mierswa <impulze@impulze.org>
34061
34062 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
34063
34064 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
34065
34066 * kern/misc.c (grub_strcasecmp): New function.
34067 (grub_strcasecmp): Use grub_size_t instead of int for length.
34068 Fix return value.
34069 * include/grub/misc.h: Update function prototypes.
34070
34071 2009-01-26 Robert Millan <rmh@aybabtu.com>
34072
34073 * configure.ac: Fix cross-compilation check.
34074
34075 2009-01-22 Christian Franke <franke@computer.org>
34076
34077 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
34078 (precision) digit string. Allow `.format2' without `format1' (width).
34079 Limit input chars for `%s' output to `format2' if specified. This is
34080 compatible with standard printf ().
34081
34082 2009-01-22 Christian Franke <franke@computer.org>
34083
34084 * disk/ata.c (grub_ata_wait_status): Replace by ...
34085 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
34086 other status bits may be invalid while BSY is asserted.
34087 (grub_ata_check_ready): New function.
34088 (grub_ata_cmd): Removed.
34089 (grub_ata_wait_drq): New function.
34090 (grub_ata_strncpy): Remove inline.
34091 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
34092 and error check now done by grub_ata_wait_drq ().
34093 (grub_ata_pio_write): Likewise.
34094 (grub_atapi_identify): Set DEV before check for !BSY. Use
34095 grub_ata_wait_drq () to wait for data.
34096 (grub_ata_device_initialize): Add status register check to
34097 detect missing SATA slave devices. Add debug messages.
34098 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
34099 (grub_atapi_packet): Set DEV before check for !BSY. Replace
34100 transfer loop by grub_ata_pio_write ().
34101 (grub_ata_identify): Set DEV before check for !BSY. Use
34102 grub_ata_wait_drq () to wait for data.
34103 (grub_ata_setaddress): Set DEV before check for !BSY.
34104 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
34105 read/write in one loop. Fix invalid command on write. Fix incomplete
34106 command on (size % batch) == 0. Add missing error check after write of
34107 last block. Add debug messages.
34108 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
34109
34110 2009-01-19 Christian Franke <franke@computer.org>
34111
34112 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
34113 (GRUB_ATAPI_IREASON_*): Likewise.
34114 (grub_ata_pio_write): Fix timeout error return.
34115 (grub_atapi_identify): Add grub_ata_wait () after cmd.
34116 (grub_atapi_wait_drq): New function.
34117 (grub_atapi_packet): New parameter `size'.
34118 Use grub_atapi_wait_drq () and direct write instead of
34119 grub_ata_pio_write ().
34120 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
34121 reads the number of bytes requested by the device for each DRQ
34122 assertion.
34123 (grub_atapi_write): Remove old implementation, return not
34124 implemented instead.
34125
34126 2009-01-19 Christian Franke <franke@computer.org>
34127
34128 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
34129 of 512 to calculate data size.
34130 (grub_scsi_read12): Likewise.
34131 (grub_scsi_write10): Likewise.
34132 (grub_scsi_write12): Likewise.
34133 (grub_scsi_read): Adjust size according to blocksize.
34134 Add checks for invalid blocksize and unaligned transfer.
34135
34136 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
34137
34138 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
34139
34140 * term/gfxterm.c (write_char): Fix background rendering for wide
34141 width glyphs.
34142
34143 2009-01-19 Robert Millan <rmh@aybabtu.com>
34144
34145 * config.guess: Update to latest version from config git.
34146 * config.sub: Likewise.
34147
34148 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
34149
34150 * Makefile.in: Change font compilation to use new grub-mkfont instead
34151 of java version.
34152
34153 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
34154 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34155 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34156 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34157 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34158 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34159 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34160 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34161 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34162
34163 2009-01-16 Christian Franke <franke@computer.org>
34164
34165 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
34166 (enum grub_ata_timeout_milliseconds): New enum.
34167 (grub_ata_wait_status): Add parameter milliseconds.
34168 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
34169 recovery from timed-out commands.
34170 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
34171 return grub_errno instead of REG_ERROR.
34172 (grub_ata_pio_write): Add parameter milliseconds.
34173 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
34174 Pass milliseconds to grub_ata_wait_status () and
34175 grub_ata_pio_read ().
34176 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
34177 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
34178 grub_ata_wait_status (). Fix IDENTIFY timeout check.
34179 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
34180 It is not suitable for device detection, because DEV bit is ignored,
34181 the command may run too long, and not all devices set the signature
34182 properly.
34183 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
34184 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
34185 Fix device selection, DEV bit must be set first to address the registers
34186 of the correct device.
34187 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
34188 grub_ata_pio_read/write ().
34189 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
34190 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
34191
34192 2009-01-13 Carles Pina i Estany <carles@pina.cat>
34193
34194 * util/grub-editenv.c (main): Use fseeko(), not fseek().
34195
34196 2009-01-13 Bean <bean123ch@gmail.com>
34197
34198 * util/grub-mkfont.c (write_font): forget to remove some debug code.
34199
34200 2009-01-13 Bean <bean123ch@gmail.com>
34201
34202 * Makefile.in: (enable_grub_mkfont): New variable.
34203 (freetype_cflags): Likewise.
34204 (freetype_libs): Likewise.
34205
34206 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
34207 (grub_mkfont_SOURCES): New variable.
34208 (grub_mkfont_CFLAGS): Likewise.
34209 (grub_mkfont_LDFLAGS): Likewise.
34210
34211 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
34212 library if `--enable-grub-mkfont' is requested.
34213 (enable_grub_mkfont): New variable.
34214 (freetype_cflags): Likewise.
34215 (freetype_libs): Likewise.
34216
34217 * util/grub-mkfont.c: New file.
34218
34219 2009-01-12 Christian Franke <franke@computer.org>
34220
34221 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
34222 mode check. Fix setting of compat_use[].
34223
34224 2009-01-10 Robert Millan <rmh@aybabtu.com>
34225
34226 Update a few copyright years which we forgot to do in 2008 (only for
34227 files whose changes made in 2008 were copyright-significant)
34228
34229 * Makefile.in: Add 2008 to Copyright line.
34230 * disk/ieee1275/ofdisk.c: Likewise.
34231 * disk/efi/efidisk.c: Likewise.
34232 * kern/dl.c: Likewise.
34233 * kern/sparc64/ieee1275/init.c: Likewise.
34234 * kern/mm.c: Likewise.
34235 * kern/efi/mm.c: Likewise.
34236 * boot/i386/pc/boot.S: Likewise.
34237 * genfslist.sh: Likewise.
34238 * fs/iso9660.c: Likewise.
34239 * fs/hfs.c: Likewise.
34240 * fs/jfs.c: Likewise.
34241 * fs/minix.c: Likewise.
34242 * fs/ufs.c: Likewise.
34243 * gensymlist.sh.in: Likewise.
34244 * genkernsyms.sh.in: Likewise.
34245 * include/grub/misc.h: Likewise.
34246 * include/grub/types.h: Likewise.
34247 * include/grub/symbol.h: Likewise.
34248 * include/grub/elf.h: Likewise.
34249 * include/grub/kernel.h: Likewise.
34250 * include/grub/disk.h: Likewise.
34251 * include/grub/dl.h: Likewise.
34252 * include/grub/i386/linux.h: Likewise.
34253 * include/grub/i386/pc/biosdisk.h: Likewise.
34254 * include/grub/efi/api.h: Likewise.
34255 * include/grub/efi/pe32.h: Likewise.
34256 * include/grub/util/misc.h: Likewise.
34257 * normal/execute.c: Likewise.
34258 * normal/arg.c: Likewise.
34259 * normal/completion.c: Likewise.
34260 * normal/lexer.c: Likewise.
34261 * normal/parser.y: Likewise.
34262 * normal/misc.c: Likewise.
34263 * commands/i386/pc/vbeinfo.c: Likewise.
34264 * commands/hexdump.c: Likewise.
34265 * commands/terminal.c: Likewise.
34266 * commands/ls.c: Likewise.
34267 * commands/help.c: Likewise.
34268 * partmap/pc.c: Likewise.
34269 * loader/efi/chainloader.c: Likewise.
34270 * loader/multiboot_loader.c: Likewise.
34271 * loader/i386/pc/multiboot2.c: Likewise.
34272 * term/efi/console.c: Likewise.
34273 * term/i386/pc/serial.c: Likewise.
34274 * util/lvm.c: Likewise.
34275 * util/console.c: Likewise.
34276 * util/i386/efi/grub-mkimage.c: Likewise.
34277 * util/raid.c: Likewise.
34278
34279 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
34280
34281 * commands/videotest.c: Removed include to grub/machine/memory.h.
34282
34283 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
34284 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
34285 (video_mod_SOURCES): Removed.
34286 (video_mod_CFLAGS): Likewise.
34287 (video_mod_LDFLAGS): Likewise.
34288 (gfxterm_mod_SOURCES): Likewise.
34289 (gfxterm_mod_CFLAGS): Likewise.
34290 (gfxterm_mod_LDFLAGS): Likewise.
34291 (videotest_mod_SOURCES): Likewise.
34292 (videotest_mod_CFLAGS): Likewise.
34293 (videotest_mod_LDFLAGS): Likewise.
34294 (bitmap_mod_SOURCES): Likewise.
34295 (bitmap_mod_CFLAGS): Likewise.
34296 (bitmap_mod_LDFLAGS): Likewise.
34297 (tga_mod_SOURCES): Likewise.
34298 (tga_mod_CFLAGS): Likewise.
34299 (tga_mod_LDFLAGS): Likewise.
34300 (jpeg_mod_SOURCES): Likewise.
34301 (jpeg_mod_CFLAGS): Likewise.
34302 (jpeg_mod_LDFLAGS): Likewise.
34303 (png_mod_SOURCES): Likewise.
34304 (png_mod_CFLAGS): Likewise.
34305 (png_mod_LDFLAGS): Likewise.
34306
34307 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
34308 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
34309 (video_mod_SOURCES): Added.
34310 (video_mod_CFLAGS): Likewise.
34311 (video_mod_LDFLAGS): Likewise.
34312 (videotest_mod_SOURCES): Likewise.
34313 (videotest_mod_CFLAGS): Likewise.
34314 (videotest_mod_LDFLAGS): Likewise.
34315 (bitmap_mod_SOURCES): Likewise.
34316 (bitmap_mod_CFLAGS): Likewise.
34317 (bitmap_mod_LDFLAGS): Likewise.
34318 (tga_mod_SOURCES): Likewise.
34319 (tga_mod_CFLAGS): Likewise.
34320 (tga_mod_LDFLAGS): Likewise.
34321 (jpeg_mod_SOURCES): Likewise.
34322 (jpeg_mod_CFLAGS): Likewise.
34323 (jpeg_mod_LDFLAGS): Likewise.
34324 (png_mod_SOURCES): Likewise.
34325 (png_mod_CFLAGS): Likewise.
34326 (png_mod_LDFLAGS): Likewise.
34327 (gfxterm_mod_SOURCES): Likewise.
34328 (gfxterm_mod_CFLAGS): Likewise.
34329 (gfxterm_mod_LDFLAGS): Likewise.
34330
34331 * term/gfxterm.c: Removed include to grub/machine/memory.h,
34332 grub/machine/console.h.
34333
34334 2009-01-04 Jerone Young <jerone@gmail.com>
34335
34336 Make on screen instructions clearer
34337
34338 Based on patch created by Jidanni <jidanni@jidanni.org>
34339
34340 * normal/menu.c: print clearer instructions on the screen
34341
34342 2009-01-02 Colin D Bennett <colin@gibibit.com>
34343
34344 New font engine.
34345
34346 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
34347 build system and fixed gfxterm.c to work with different sized fonts.
34348
34349 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34350
34351 * configure: Re-generated.
34352
34353 * DISTLIST: Removed font/manager.c.
34354 Added font/font.c.
34355 Added font/font_cmd.c.
34356
34357 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
34358 compilation.
34359
34360 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34361
34362 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
34363
34364 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34365
34366 * normal/menu.c: Likewise.
34367
34368 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
34369 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34370
34371 * include/grub/font.h: Replaced with new file.
34372
34373 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
34374 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
34375 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
34376 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
34377 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34378 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
34379 fg_red, fg_green, fg_blue, fg_alpha.
34380 (grub_video_adapter): Removed blit_glyph.
34381 (grub_video_blit_glyph): Removed.
34382
34383 * font/manager.c: Removed file.
34384
34385 * font/font.c: New file.
34386
34387 * font/font_cmd.c: Likewise.
34388
34389 * video/video.c (grub_video_blit_glyph): Removed.
34390
34391 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
34392 (grub_video_vbe_map_rgba): Likewise.
34393 (grub_video_vbe_unmap_color_int): Likewise.
34394 (grub_video_vbe_blit_glyph): Removed.
34395 (grub_video_vbe_adapter): Removed blit_glyph.
34396
34397 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
34398 (get_pixel): Likewise.
34399 (set_pixel): Likewise.
34400
34401 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34402
34403 * term/gfxterm.c: Adapted to new font engine.
34404
34405 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34406
34407 * term/i386/pc/vga.c: Likewise.
34408
34409 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34410
34411 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34412
34413 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34414
34415 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34416
34417 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34418
34419 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34420
34421 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34422
34423 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34424
34425 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34426
34427 * util/grub.d/00_header.in: Changed to use new loadfont command.
34428
34429 * util/grub-mkconfig_lib.in: Changed font extension.
34430
34431 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
34432
34433 * util/getroot.c (grub_util_get_grub_dev): Add support for
34434 /dev/md/dNNpNN style partitionable mdraid devices.
34435
34436 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
34437
34438 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
34439 at a time limit of the PXE TFTP API correctly.
34440 (grub_pxefs_close): Likewise.
34441
34442 2008-11-29 Robert Millan <rmh@aybabtu.com>
34443
34444 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
34445 grub_ata_device_initialize() calls.
34446
34447 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
34448
34449 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
34450 iteration failed.
34451 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
34452
34453 2008-11-28 Robert Millan <rmh@aybabtu.com>
34454
34455 Fix build on powerpc-ieee1275. Based on patch created by
34456 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
34457 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34458 `kern/ieee1275/mmap.c'.
34459 * include/grub/powerpc/ieee1275/memory.h: New file.
34460
34461 Provide grub-install on coreboot.
34462 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
34463 (grub_install_SOURCES): New variable.
34464 * util/i386/pc/grub-install.in: Add a few condition checks to make it
34465 usable on coreboot.
34466
34467 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
34468
34469 * util/grub-fstest.c (grub_term_get_current_input): Change return type
34470 to `grub_term_input_t'.
34471 (grub_term_get_current_output): Change return type to
34472 `grub_term_output_t'.
34473
34474 2008-11-22 Robert Millan <rmh@aybabtu.com>
34475
34476 Fix breakage on coreboot due to declaration mismatch.
34477 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
34478 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
34479 grub_vga_text_cls().
34480
34481 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34482 comments. Avoid copying one more byte than necessary (just in case).
34483
34484 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
34485 to 0x200000 (avoids trouble with some OFW implementations, and matches
34486 with the one in Yaboot).
34487 Reported by Manoel Abranches
34488
34489 2008-11-20 Robert Millan <rmh@aybabtu.com>
34490
34491 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
34492 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
34493
34494 * util/grub-mkconfig_lib.in (grub_warn): New function.
34495 (convert_system_path_to_grub_path): Use grub_warn() when issuing
34496 warnings, to obtain consistent formatting.
34497 * util/grub.d/00_header.in: Likewise.
34498 * util/update-grub_lib.in: Likewise.
34499
34500 * loader/i386/linux.c (allocate_pages): Fix a warning.
34501 Move comment text to `#error' stanza.
34502
34503 Harmonize ieee1275's grub_available_iterate() with the generic
34504 grub_machine_mmap_iterate() interface (fixes a recently-introduced
34505 build problem on i386-ieee1275):
34506 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
34507 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
34508 parameter `type'. Update all users of this function.
34509 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
34510 `kern/ieee1275/mmap.c'.
34511 * kern/ieee1275/init.c
34512 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
34513 with ...
34514 (grub_machine_mmap_iterate): ... this.
34515 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
34516 return type to `grub_err_t'. Update all implementations of this
34517 function prototype.
34518 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
34519 Likewise.
34520
34521 Add `lsmmap' command (lists firmware-provided memory map):
34522 * commands/lsmmap.c: New file.
34523 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
34524 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
34525 variables.
34526 * conf/powerpc-ieee1275.rmk: Likewise.
34527 * conf/i386-coreboot.rmk: Likewise.
34528 * conf/i386-ieee1275.rmk: Likewise.
34529
34530 2008-11-19 Robert Millan <rmh@aybabtu.com>
34531
34532 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
34533 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
34534 constraints to initrd allocation (based on code from
34535 loader/i386/pc/linux.c). Without them, initrd was allocated too high
34536 for Linux to find it.
34537
34538 2008-11-14 Robert Millan <rmh@aybabtu.com>
34539
34540 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
34541 order to cope with duplicate slashes.
34542
34543 2008-11-14 Robert Millan <rmh@aybabtu.com>
34544
34545 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
34546 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
34547 don't want to mess with lower memory, because it is used in the Linux
34548 loader.
34549
34550 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34551 an appropriate place in lower memory, between 0x10000 and 0x90000,
34552 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
34553 is in our heap (probably as a result of it being corrupted during
34554 decompression). Add #error instance with comment to explain why this
34555 loader isn't currently usable on PC/BIOS.
34556
34557 2008-11-14 Robert Millan <rmh@aybabtu.com>
34558
34559 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34560 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
34561
34562 2008-11-12 Robert Millan <rmh@aybabtu.com>
34563
34564 Make loader/i386/linux.c buildable on i386-pc (although disabled).
34565
34566 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
34567 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
34568 from here ...
34569 * include/grub/i386/pc/memory.h: ... to here.
34570
34571 2008-11-12 Robert Millan <rmh@aybabtu.com>
34572
34573 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
34574 split).
34575
34576 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
34577 (grub_console_cur_color, grub_console_real_putchar)
34578 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34579 (grub_console_setcolorstate, grub_console_setcolor)
34580 (grub_console_getcolor): Move from here ...
34581 * include/grub/i386/vga_common.h: ... to here (new file).
34582
34583 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
34584 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
34585 `<grub/i386/io.h>'.
34586 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
34587 `<grub/i386/vga_common.h>'.
34588
34589 2008-11-12 Robert Millan <rmh@aybabtu.com>
34590
34591 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
34592 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
34593 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
34594 variables.
34595 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34596 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
34597
34598 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
34599 grub_console_init() with call to grub_vga_text_init().
34600 (grub_machine_fini): Replace call to
34601 grub_console_fini() with call to grub_vga_text_fini() and
34602 grub_at_keyboard_fini().
34603
34604 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
34605 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34606 (grub_console_setcolorstate, grub_console_setcolor)
34607 (grub_console_getcolor): New function prototypes.
34608
34609 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
34610 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
34611 (grub_vga_text_setcursor): Static-ize.
34612 (grub_vga_text_term): New structure.
34613 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
34614
34615 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
34616 (grub_console_cur_color, grub_console_standard_color)
34617 (grub_console_normal_color, grub_console_highlight_color)
34618 (map_char, grub_console_putchar, grub_console_getcharwidth)
34619 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
34620 (grub_console_getcolor): Move from here ...
34621 * term/i386/vga_common.c: ... to here (same function names).
34622
34623 2008-11-12 Robert Millan <rmh@aybabtu.com>
34624
34625 Use newly-added Multiboot support in coreboot.
34626
34627 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34628 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
34629
34630 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
34631 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
34632 (codestart): Store the MBI in `startup_multiboot_info' when we're
34633 being loaded using Multiboot.
34634
34635 * kern/i386/coreboot/init.c (grub_machine_init): Move
34636 grub_at_keyboard_init() call to beginning of function (useful for
34637 debugging). Call grub_machine_mmap_init() before attempting to use
34638 grub_machine_mmap_iterate().
34639 (grub_lower_mem, grub_upper_mem): Move from here ...
34640 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
34641 here (new file).
34642
34643 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
34644 function prototype.
34645
34646 2008-11-12 Robert Millan <rmh@aybabtu.com>
34647
34648 Fix a regression introduced by the at_keyboard.mod split. Because
34649 some terminals are default on some platforms and non-default on
34650 others, the first terminal being registered determines which is
34651 going to be default.
34652
34653 * kern/term.c (grub_term_register_input): If this is the first
34654 terminal being registered, set it as the current one.
34655 (grub_term_register_output): Likewise.
34656
34657 * term/efi/console.c (grub_console_init): Do not call
34658 grub_term_set_current_output() or grub_term_set_current_input().
34659 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
34660 * term/i386/pc/console.c (grub_console_init): Likewise.
34661 (grub_console_fini): Do not call grub_term_set_current_input()
34662 (but leave grub_term_set_current_output() to restore text mode).
34663
34664 2008-11-10 Robert Millan <rmh@aybabtu.com>
34665
34666 * util/grub.d/00_header.in: Add backward compatibility check for
34667 versions of terminal.mod that don't understand `terminal_input' or
34668 `terminal_output'.
34669
34670 2008-11-09 Robert Millan <rmh@aybabtu.com>
34671
34672 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
34673 `terminal_input' / `terminal_output', not `terminal'.
34674
34675 2008-11-08 Robert Millan <rmh@aybabtu.com>
34676
34677 * Makefile.in (include_DATA): Fix srcdir=. assumption.
34678 (DISTCLEANFILES): Add `build_env.mk'.
34679
34680 2008-11-08 Robert Millan <rmh@aybabtu.com>
34681
34682 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
34683 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34684 members. Update all users.
34685 * util/console.c (grub_ncurses_term): Split in ...
34686 (grub_ncurses_term_input): ... this, and ...
34687 (grub_ncurses_term_output): ... this. Update all users.
34688 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
34689
34690 2008-11-08 Robert Millan <rmh@aybabtu.com>
34691
34692 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
34693 (PKGDATA): Add $(pkgdata_SRCDIR).
34694 (pkglib_BUILDDIR): New variable.
34695 (pkgdata_SRCDIR): New variable.
34696 (build_env.mk): New target.
34697 (include_DATA): New variable.
34698 (install-local): Install $(include_DATA) files in $(includedir).
34699
34700 2008-11-07 Pavel Roskin <proski@gnu.org>
34701
34702 * gendistlist.sh: Use C locale for sorting to ensure consistent
34703 output on all systems.
34704
34705 * util/grub.d/00_header.in: Remove incorrect space before
34706 "serial".
34707
34708 2008-11-07 Robert Millan <rmh@aybabtu.com>
34709
34710 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
34711 per specification.
34712 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
34713 * loader/multiboot_loader.c (find_multi_boot2_header): New function
34714 (based on find_multi_boot1_header).
34715 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
34716 using find_multi_boot2_header(), and abort if neither Multiboot or
34717 Multiboot headers were found.
34718
34719 2008-11-07 Robert Millan <rmh@aybabtu.com>
34720
34721 Modularize at_keyboard.mod:
34722
34723 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
34724 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
34725 (at_keyboard_mod_LDFLAGS): New variables.
34726
34727 Actual terminal split:
34728
34729 * include/grub/term.h (struct grub_term): Split in ...
34730 (struct grub_term_input): ... this, and ...
34731 (struct grub_term_output): ... this. Update all users.
34732 (grub_term_set_current): Split in ...
34733 (grub_term_set_current_input): ... this, and ...
34734 (grub_term_set_current_output): ... this.
34735 (grub_term_get_current): Split in ...
34736 (grub_term_get_current_input): ... this, and ...
34737 (grub_term_get_current_output): ... this.
34738 (grub_term_register): Split in ...
34739 (grub_term_register_input): ... this, and ...
34740 (grub_term_register_output): ... this.
34741 (grub_term_unregister): Split in ...
34742 (grub_term_unregister_input): ... this, and ...
34743 (grub_term_unregister_output): ... this.
34744 (grub_term_iterate): Split in ...
34745 (grub_term_iterate_input): ... this, and ...
34746 (grub_term_iterate_output): ... this.
34747
34748 * kern/term.c (grub_term_list): Split in ...
34749 (grub_term_list_input): ... this, and ...
34750 (grub_term_list_output): ... this. Update all users.
34751 (grub_cur_term): Split in ...
34752 (grub_cur_term_input): ... this, and ...
34753 (grub_cur_term_output): ... this. Update all users.
34754 (grub_term_set_current): Split in ...
34755 (grub_term_set_current_input): ... this, and ...
34756 (grub_term_set_current_output): ... this.
34757 (grub_term_get_current): Split in ...
34758 (grub_term_get_current_input): ... this, and ...
34759 (grub_term_get_current_output): ... this.
34760 (grub_term_register): Split in ...
34761 (grub_term_register_input): ... this, and ...
34762 (grub_term_register_output): ... this.
34763 (grub_term_unregister): Split in ...
34764 (grub_term_unregister_input): ... this, and ...
34765 (grub_term_unregister_output): ... this.
34766 (grub_term_iterate): Split in ...
34767 (grub_term_iterate_input): ... this, and ...
34768 (grub_term_iterate_output): ... this.
34769
34770 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
34771 a check for input and one for output (and only attempt to get keys
34772 from user when input works).
34773
34774 * util/grub-probe.c (grub_term_get_current): Split in ...
34775 (grub_term_get_current_input): ... this, and ...
34776 (grub_term_get_current_output): ... this.
34777 * util/grub-fstest.c: Likewise.
34778 * util/i386/pc/grub-setup.c: Likewise.
34779 * util/grub-editenv.c: Likewise.
34780
34781 Portability adjustments:
34782
34783 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
34784 `term/i386/pc/at_keyboard.c'.
34785 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
34786 grub_keyboard_controller_init() (now handled by terminal .init).
34787 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
34788 grub_at_keyboard_init().
34789 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
34790 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
34791 at_keyboard.mod via input terminal interface).
34792 * include/grub/i386/coreboot/console.h: Convert into a stub for
34793 `<grub/i386/pc/console.h>'.
34794
34795 Migrate full terminals to new API:
34796
34797 * term/efi/console.c (grub_console_term): Split into ...
34798 (grub_console_term_input): ... this, and ...
34799 (grub_console_term_output): ... this. Update all users.
34800 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
34801 (grub_ofconsole_init): Split into ...
34802 (grub_ofconsole_init_input): ... this, and ...
34803 (grub_ofconsole_init_output): ... this.
34804 (grub_ofconsole_term): Split into ...
34805 (grub_ofconsole_term_input): ... this, and ...
34806 (grub_ofconsole_term_output): ... this. Update all users.
34807 * term/i386/pc/serial.c (grub_serial_term): Split into ...
34808 (grub_serial_term_input): ... this, and ...
34809 (grub_serial_term_output): ... this. Update all users.
34810 * term/i386/pc/console.c (grub_console_term): Split into ...
34811 (grub_console_term_input): ... this, and ...
34812 (grub_console_term_output): ... this. Update all users.
34813 (grub_console_term_input): Only enable it on PC/BIOS platform.
34814 (grub_console_init): Remove grub_keyboard_controller_init() call.
34815
34816 Migrate input terminals to new API:
34817
34818 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
34819 `i386' and `i386/pc' to enable build on x86_64 (this driver is
34820 i386-specific anyway).
34821 (grub_console_checkkey): Rename to ...
34822 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
34823 users.
34824 (grub_keyboard_controller_orig): New variable.
34825 (grub_console_getkey): Rename to ...
34826 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
34827 users.
34828 (grub_keyboard_controller_init): Static-ize. Save original
34829 controller value so that it can be restored ...
34830 (grub_keyboard_controller_fini): ... here (new function).
34831 (grub_at_keyboard_term): New structure.
34832 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
34833 functions.
34834
34835 Migrate output terminals to new API:
34836
34837 * term/i386/pc/vga.c (grub_vga_term): Change type to
34838 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34839 members. Update all users.
34840 * term/gfxterm.c (grub_video_term): Change type to
34841 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34842 members. Update all users.
34843 * include/grub/i386/pc/console.h (grub_console_checkkey)
34844 (grub_console_getkey): Do not export (no longer needed by gfxterm,
34845 etc).
34846
34847 Migrate `terminal' command and userland tools to new API:
34848
34849 * commands/terminal.c (grub_cmd_terminal): Split into ...
34850 (grub_cmd_terminal_input): ... this, and ...
34851 (grub_cmd_terminal_output): ... this.
34852 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
34853 `terminal_input' and `terminal_output'.
34854 * util/grub.d/00_header.in: Adjust `terminal' calls to new
34855 `terminal_input' / `terminal_output' API.
34856 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
34857 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
34858 provided ${GRUB_TERMINAL}, convert it).
34859
34860 2008-11-04 Robert Millan <rmh@aybabtu.com>
34861
34862 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
34863 for FreeBSD.
34864 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
34865
34866 2008-11-03 Bean <bean123ch@gmail.com>
34867
34868 * kern/elf.c (grub_elf32_load): Revert to previous code.
34869 (grub_elf64_load): Likewise.
34870
34871 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
34872
34873 2008-11-01 Robert Millan <rmh@aybabtu.com>
34874
34875 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
34876 (TARGET_CPPFLAGS): Likewise.
34877 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
34878
34879 2008-11-01 Carles Pina i Estany <carles@pina.cat>
34880
34881 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
34882
34883 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34884
34885 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
34886 addition of objects until the code is not going to be able to fail.
34887
34888 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34889
34890 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
34891 (add a missing NULL check, and correct them by moving the pointer
34892 operations after the actual check).
34893
34894 2008-10-29 Robert Millan <rmh@aybabtu.com>
34895
34896 * util/i386/pc/grub-install.in: Handle empty string as output from
34897 make_system_path_relative_to_its_root().
34898
34899 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
34900
34901 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
34902 circular metadata worst case scenario. If the metadata is circular
34903 then copy the wrap in place.
34904 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
34905 project lib/format_text/layout.h
34906 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
34907
34908 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
34909
34910 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
34911
34912 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
34913
34914 * util/update-grub_lib.in: Mention filename in warning message.
34915
34916 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
34917
34918 * NEWS: Update for rename of update-grub to grub-mkconfig.
34919
34920 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
34921
34922 * util/update-grub_lib.in: Copy to ...
34923 * util/grub-mkconfig_lib.in: ... this. Update all users.
34924 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
34925 * util/update-grub.in: Rename to ...
34926 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
34927 option. Add `--output' option to allow users to specify the generated
34928 configuration file. Default to stdout.
34929 (update_grub_dir): Rename to ...
34930 (grub_mkconfig_dir): ... this.
34931 (grub_cfg): Default to an empty string.
34932 * conf/common.rmk (update-grub): Rename to ...
34933 (grub-mkconfig): ... this.
34934 (update-grub_lib): Copy to ...
34935 (grub-mkconfig_lib): ... this.
34936 (update-grub_SCRIPTS): Copy to ...
34937 (grub-mkconfig_SCRIPTS): ... this. Update all users.
34938 (update-grub_DATA): Rename to ...
34939 (grub-mkconfig_DATA): ... this.
34940
34941 2008-09-28 Robert Millan <rmh@aybabtu.com>
34942
34943 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
34944 to `modified'. Add the real `created' field.
34945 (grub_iso9660_uuid): Use `modified' rather than `created' for
34946 constructing the UUID.
34947
34948 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
34949
34950 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
34951 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
34952
34953 2008-09-28 Bean <bean123ch@gmail.com>
34954
34955 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
34956 Thanks to Christian Franke for finding this bug.
34957
34958 2008-09-25 Robert Millan <rmh@aybabtu.com>
34959
34960 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
34961 instances of grub_util_get_disk_name() (see previous commit).
34962
34963 2008-09-25 Robert Millan <rmh@aybabtu.com>
34964
34965 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
34966 `util/i386/get_disk_name.c'.
34967 * conf/i386-efi.rmk: Likewise.
34968 * conf/x86_64-efi.rmk: Likewise.
34969 * conf/i386-coreboot.rmk: Likewise.
34970 * conf/i386-ieee1275.rmk: Likewise.
34971 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
34972 `util/ieee1275/get_disk_name.c'.
34973 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
34974 * util/ieee1275/get_disk_name.c: Remove file.
34975 * util/i386/get_disk_name.c: Remove file.
34976 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
34977 "hd%d" for device.map entries, rather than using
34978 grub_util_get_disk_name().
34979
34980 2008-09-24 Carles Pina i Estany <carles@pina.cat>
34981
34982 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
34983 warning.
34984 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
34985
34986 2008-09-24 Carles Pina i Estany <carles@pina.cat>
34987
34988 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
34989 Changed to 0x5100.
34990 (GRUB_TERM_PPAGE): Changed to 0x4900.
34991
34992 2008-09-24 Robert Millan <rmh@aybabtu.com>
34993
34994 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
34995 macros (they were i386-pc specific).
34996 * include/grub/sparc64/ieee1275/console.h: Likewise.
34997 * include/grub/efi/console.h: Likewise.
34998
34999 2008-09-22 Bean <bean123ch@gmail.com>
35000
35001 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
35002 resident and in attribute list.
35003
35004 * include/grub/ntfs.h (BMP_LEN): Removed.
35005
35006 2008-09-22 Bean <bean123ch@gmail.com>
35007
35008 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
35009 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
35010
35011 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
35012 error occurs, as grub_disk_open will call grub_disk_close, which will
35013 call p->close (scsi).
35014
35015 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
35016
35017 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
35018 (AC_PREREQ): Bumped to 2.59.
35019 (AC_TRY_COMPILE): Replace obsolete macro with ...
35020 (AC_COMPILE_IFELSE): ... this.
35021 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
35022 (AC_LINK_IFELSE): ... this.
35023
35024 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
35025
35026 * autogen.sh: Add a call to `gendistlist.sh'.
35027
35028 2008-09-19 Christian Franke <franke@computer.org>
35029
35030 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
35031 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
35032 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
35033 Export __enable_execute_stack() to modules.
35034 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
35035 New function.
35036
35037 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
35038
35039 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
35040 Sort the list.
35041
35042 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
35043
35044 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
35045 #include <grub/util/hostdisk.h>.
35046
35047 2008-09-08 Robert Millan <rmh@aybabtu.com>
35048
35049 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
35050 segments when their filesz is zero (grub_file_read() interprets
35051 zero-size as "read until EOF", which results in memory corruption).
35052 Use `lowest_segment' rather than 0 for calculating the current
35053 segment load address.
35054
35055 2008-09-08 Robert Millan <rmh@aybabtu.com>
35056
35057 * util/hostdisk.c (open_device): Replace a grub_util_info() call
35058 with grub_dprintf("hostdisk", ...), as it was so verbose that it
35059 clobbered useful information.
35060
35061 2008-09-08 Robert Millan <rmh@aybabtu.com>
35062
35063 * include/grub/util/biosdisk.h: Move to ...
35064 * include/grub/util/hostdisk.h: ... here. Update all users.
35065 * util/biosdisk.c: Move to ...
35066 * util/hostdisk.c: ... here. Update all users.
35067
35068 2008-09-07 Robert Millan <rmh@aybabtu.com>
35069
35070 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
35071 variables.
35072 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
35073 and length can be stored directly in the `mbi->mmap_addr' and
35074 `mbi->mmap_length' struct fields.
35075
35076 2008-09-07 Robert Millan <rmh@aybabtu.com>
35077
35078 * conf/i386.rmk: New file. Provides declaration for building
35079 `cpuid.mod'.
35080 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
35081 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
35082 variables.
35083 Include `conf/i386.mk'.
35084 * conf/i386-efi.rmk: Likewise.
35085 * conf/x86_64-efi.rmk: Likewise.
35086 * conf/i386-coreboot.rmk: Likewise.
35087 * conf/i386-ieee1275.rmk: Likewise.
35088
35089 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
35090
35091 Based on patch created by Colin D Bennett <colin@gibibit.com>.
35092 Adds optimization support for BGR based modes.
35093
35094 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
35095 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35096 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35097 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35098 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35099 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35100 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35101 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35102 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35103 (grub_video_i386_vbeblit_index_index): Likewise.
35104 (grub_video_i386_vbeblit_replace_directN): Added.
35105 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35106 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35107 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35108 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35109 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35110 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
35111 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
35112 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35113 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35114 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35115 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35116 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35117 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
35118
35119 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
35120 (grub_video_i386_vbefill_R8G8B8): Likewise.
35121 (grub_video_i386_vbefill_index): Likewise.
35122 (grub_video_i386_vbefill_direct32): Added.
35123 (grub_video_i386_vbefill_direct24): Likewise.
35124 (grub_video_i386_vbefill_direct16): Likewise.
35125 (grub_video_i386_vbefill_direct8): Likewise.
35126
35127 * include/grub/video.h (grub_video_blit_format): Removed
35128 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
35129 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
35130 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
35131 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
35132 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
35133
35134 * video/video.c (grub_video_get_blit_format): Updated to use new
35135 blit formats. Added handling for 16 bit color modes.
35136
35137 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
35138 fillers.
35139 (common_blitter): Updated to use new blitters.
35140
35141 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
35142 Removed.
35143 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35144 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35145 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35146 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35147 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35148 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35149 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35150 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35151 (grub_video_i386_vbeblit_index_index): Likewise.
35152 (grub_video_i386_vbeblit_replace_directN): Added.
35153 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35154 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35155 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35156 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35157 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35158 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
35159 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
35160 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35161 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35162 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35163 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35164 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35165 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
35166
35167 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
35168 (grub_video_i386_vbefill_R8G8B8): Likewise.
35169 (grub_video_i386_vbefill_index): Likewise.
35170 (grub_video_i386_vbefill_direct32): Added.
35171 (grub_video_i386_vbefill_direct24): Likewise.
35172 (grub_video_i386_vbefill_direct16): Likewise.
35173 (grub_video_i386_vbefill_direct8): Likewise.
35174
35175 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
35176 types.
35177
35178 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
35179 types.
35180
35181 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
35182 blitter types.
35183
35184 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
35185 types.
35186
35187 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
35188
35189 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
35190 RAID level 1.
35191
35192 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
35193
35194 * fs/iso9660.c (grub_iso9660_date): New structure.
35195 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
35196 (grub_iso9660_uuid): New function.
35197
35198 2008-09-05 Bean <bean123ch@gmail.com>
35199
35200 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
35201
35202 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
35203 insensitive bit for names in Win32 and Win32 & DOS namespace.
35204
35205 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
35206
35207 * include/grub/types.h (LONG_MAX): Likewise.
35208
35209 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
35210
35211 * util/getroot.c: Include <config.h>.
35212 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
35213 add support for /dev/md/N devices and handle LVM double dash escaping.
35214
35215 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
35216
35217 * config.guess: Update to latest version from config git.
35218 * config.sub: Likewise.
35219
35220 2008-09-03 Robert Millan <rmh@aybabtu.com>
35221
35222 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
35223 `disk->total_sectors'.
35224
35225 2008-09-01 Colin D Bennett <colin@gibibit.com>
35226
35227 * include/grub/normal.h: Fixed incorrect comment for
35228 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
35229
35230 2008-09-01 Colin D Bennett <colin@gibibit.com>
35231
35232 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
35233 values with defines.
35234
35235 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
35236 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
35237 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
35238 (GRUB_VBE_MODEATTR_COLOR): Likewise.
35239 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
35240 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
35241 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
35242 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
35243 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
35244 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
35245 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
35246 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
35247 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
35248 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
35249 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
35250 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
35251 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
35252 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
35253 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
35254
35255 2008-08-31 Robert Millan <rmh@aybabtu.com>
35256
35257 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
35258 declaration.
35259 (grub_multiboot): Fix a few warnings.
35260
35261 2008-08-31 Robert Millan <rmh@aybabtu.com>
35262
35263 * loader/i386/pc/multiboot.c: Update comment not to say that
35264 boot_device support is unimplemented.
35265
35266 2008-08-31 Robert Millan <rmh@aybabtu.com>
35267
35268 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
35269 or memory map support are unimplemented.
35270
35271 2008-08-31 Colin D Bennett <colin@gibibit.com>
35272
35273 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
35274
35275 2008-08-31 Colin D Bennett <colin@gibibit.com>
35276
35277 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
35278 total video memory in 'vbeinfo' output; show color format details for
35279 each video mode.
35280
35281 2008-08-30 Pavel Roskin <proski@gnu.org>
35282
35283 * util/genmoddep.c: Remove for real this time.
35284 * DISTLIST: Remove util/genmoddep.c.
35285
35286 2008-08-30 Robert Millan <rmh@aybabtu.com>
35287
35288 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
35289 as required by Multiboot spec (it was already 4-byte aligned, but
35290 only by chance).
35291
35292 2008-08-29 Pavel Roskin <proski@gnu.org>
35293
35294 * kern/powerpc/ieee1275/crt0.S: Rename to ...
35295 * kern/powerpc/ieee1275/startup.S: ... this.
35296 * conf/powerpc-ieee1275.rmk: Adjust for the above.
35297 * DISTLIST: Likewise.
35298
35299 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
35300 grub/cpu/kernel.h. Add start label for consistency with other
35301 platforms. Add grub_prefix immediately after start. Add jump
35302 to the code after grub_prefix.
35303 * include/grub/powerpc/kernel.h: Provide valid values for
35304 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
35305
35306 2008-08-29 Bean <bean123ch@gmail.com>
35307
35308 * configure.ac: Change host_os to cygwin for mingw.
35309 (asprintf): New check for function.
35310
35311 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
35312 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
35313
35314 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
35315 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
35316 sync, sleep and grub_util_get_disk_size for mingw.
35317
35318 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
35319 to get size in mingw.
35320 (open_device): Use flag O_BINARY if it's defined.
35321 (find_root_device): Add dummy code for mingw.
35322
35323 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
35324 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
35325 (get_scsi_disk_name): Return 0 for mingw.
35326
35327 * util/hostfs.c: #include <grub/util/misc.h>.
35328 (grub_hostfs_open): Use "rb" flag to open file, use
35329 grub_util_get_disk_size to get disk size for mingw.
35330
35331 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
35332 (asprintf): New function if HAVE_ASPRINTF is not set.
35333 (sync): New function for mingw.
35334 (sleep): Likewise.
35335 (grub_util_get_disk_size): Likewise.
35336
35337 2008-08-28 Pavel Roskin <proski@gnu.org>
35338
35339 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35340 kern/time.c.
35341
35342 2008-08-28 Robert Millan <rmh@aybabtu.com>
35343
35344 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
35345
35346 2008-08-28 Robert Millan <rmh@aybabtu.com>
35347
35348 Change find_grub_drive() syntax so it doesn't prevent it from
35349 detecting NULL names as errors.
35350
35351 * util/biosdisk.c (find_grub_drive): Move free slot search code
35352 from here ...
35353 (find_free_slot): ... to here.
35354 (read_device_map): Use find_free_slot() to search for free slots.
35355
35356 2008-08-27 Marco Gerards <marco@gnu.org>
35357
35358 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
35359 (scsi_mod_SOURCES): New variable.
35360 (scsi_mod_CFLAGS): Likewise
35361 (scsi_mod_LDFLAGS): Likewise.
35362
35363 * disk/scsi.c: New file.
35364
35365 * include/grub/scsi.h: Likewise.
35366
35367 * include/grub/scsicmd.h: Likewise.
35368
35369 * disk/ata.c: Include <grub/scsi.h>.
35370 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
35371 instead.
35372 (grub_ata_iterate): Skip ATAPI devices.
35373 (grub_ata_open): Only handle ATAPI devices.
35374 (struct grub_atapi_read): Removed.
35375 (grub_atapi_readsector): Likewise.
35376 (grub_ata_read): No longer handle ATAPI devices.
35377 (grub_ata_write): Likewise.
35378 (grub_atapi_iterate): New function.
35379 (grub_atapi_read): Likewise.
35380 (grub_atapi_write): Likewise.
35381 (grub_atapi_open): Likewise.
35382 (grub_atapi_close): Likewise.
35383 (grub_atapi_dev): New variable.
35384 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
35385 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
35386
35387 * include/grub/disk.h (enum grub_disk_dev_id): Add
35388 `GRUB_DISK_DEVICE_SCSI_ID'.
35389
35390 2008-08-26 Robert Millan <rmh@aybabtu.com>
35391
35392 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
35393 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
35394 descriptive.
35395
35396 2008-08-23 Bean <bean123ch@gmail.com>
35397
35398 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
35399 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35400 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
35401 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
35402 dm_nv.mod.
35403 (raid5rec_mod_SOURCES): New macro.
35404 (raid5rec_mod_CFLAGS): Likewise.
35405 (raid5rec_mod_LDFLAGS): Likewise.
35406 (raid6rec_mod_SOURCES): Likewise.
35407 (raid6rec_mod_CFLAGS): Likewise.
35408 (raid6rec_mod_LDFLAGS): Likewise.
35409 (mdraid_mod_SOURCES): Likewise.
35410 (mdraid_mod_CFLAGS): Likewise.
35411 (mdraid_mod_LDFLAGS): Likewise.
35412 (dm_nv_mod_SOURCES): Likewise.
35413 (dm_nv_mod_CFLAGS): Likewise.
35414 (dm_nv_mod_LDFLAGS): Likewise.
35415
35416 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
35417 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35418 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35419
35420 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
35421 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35422
35423 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35424
35425 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35426
35427 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35428
35429 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35430
35431 * disk/raid5_recover.c: New file.
35432
35433 * disk/raid6_recover.c: Likewise.
35434
35435 * disk/mdraid_linux.c: Likewise.
35436
35437 * disk/dmraid_nvidia.c: Likewise.
35438
35439 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
35440 ULONG_MAX.
35441
35442 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
35443 calculate the size of raid device.
35444 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
35445 different layout of raid5.
35446 (grub_raid_scan_device): Remove code specific to mdraid.
35447 (grub_raid_list): New variable.
35448 (free_array): New function.
35449 (grub_raid_register): Likewise.
35450 (grub_raid_unregister): Likewise.
35451 (grub_raid_rescan): Likewise.
35452 (GRUB_MOD_INIT): Don't iterate device here.
35453 (GRUB_MOD_FINI): Use free_array to release resource.
35454
35455 * include/grub/raid.h: Remove macro and structure specific to mdraid.
35456 (grub_raid5_recover_func_t): New function variable type.
35457 (grub_raid6_recover_func_t): Likewise.
35458 (grub_raid5_recover_func): New variable.
35459 (grub_raid6_recover_func): Likewise.
35460 (grub_raid_register): New function.
35461 (grub_raid_unregister): Likewise.
35462 (grub_raid_rescan): Likewise.
35463 (grub_raid_block_xor): Likewise.
35464
35465 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
35466 (CMD_CRC): New macro.
35467 (part): Removed.
35468 (read_file): Handle device as well as file.
35469 (cmd_crc): New function.
35470 (fstest): Handle multiple disks.
35471 (options): Remove part, raw and long, add root and diskcount.
35472 (usage): Add crc, remove -p, -r, -l, add -r and -c.
35473 (main): Find the first non option entry and ignore subsequent options,
35474 add handling for the new options, support multiple disks.
35475
35476 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
35477
35478 2008-08-23 Bean <bean123ch@gmail.com>
35479
35480 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
35481
35482 * genfslist.sh: Ignore kernel.mod.
35483
35484 * genpartmaplist.sh: Likewise.
35485
35486 2008-08-23 Robert Millan <rmh@aybabtu.com>
35487
35488 * util/getroot.c (find_root_device): Skip anything that starts with
35489 a dot, not just directories. This avoids things like /dev/.tmp.md0.
35490
35491 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
35492
35493 * util/update-grub.in (GRUB_GFXMODE): Export variable.
35494 * util/grub.d/00_header.in: Allow the administrator to change default
35495 gfxmode via ${GRUB_GFXMODE}.
35496
35497 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
35498
35499 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
35500
35501 2008-08-21 Robert Millan <rmh@aybabtu.com>
35502
35503 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
35504 loader.
35505 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
35506 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
35507
35508 2008-08-20 Carles Pina i Estany <carles@pina.cat>
35509
35510 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
35511 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
35512
35513 2008-08-19 Robert Millan <rmh@aybabtu.com>
35514
35515 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
35516 (struct grub_virtual_screen): Remove `cursor_color'.
35517 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
35518 initialization.
35519 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
35520
35521 2008-08-18 Robert Millan <rmh@aybabtu.com>
35522
35523 Unify (identical) linux_normal.c files.
35524 * loader/i386/efi/linux_normal.c: Move from here ...
35525 * loader/linux_normal.c: ... to here. Update all users.
35526 * loader/i386/pc/linux_normal.c: Delete. Update all users.
35527 * loader/i386/ieee1275/linux_normal.c: Likewise.
35528
35529 2008-08-18 Robert Millan <rmh@aybabtu.com>
35530
35531 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
35532 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
35533 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
35534 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
35535 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
35536 New macros.
35537 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
35538 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
35539 (GRUB_LINUX_CL_END_OFFSET): ... to here.
35540 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
35541 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
35542 (GRUB_EFI_CL_END_OFFSET): Rename to ...
35543 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
35544 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
35545 Initialize `params->video_cursor_x' and `params->video_cursor_y'
35546 portably using grub_getxy().
35547 Replace `-EFI' with `-bzImage' in boot message.
35548
35549 2008-08-17 Robert Millan <rmh@aybabtu.com>
35550
35551 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
35552
35553 2008-08-17 Robert Millan <rmh@aybabtu.com>
35554
35555 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
35556
35557 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
35558 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
35559 (grub_machine_mmap_iterate): New function declaration.
35560 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
35561 structure.
35562 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
35563 macros.
35564
35565 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
35566 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
35567 Move e820 parsing from here ...
35568 * kern/i386/pc/mmap.c: New file.
35569 (grub_machine_mmap_iterate): ... to here.
35570
35571 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
35572 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
35573 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
35574 (grub_available_iterate): Redeclare to return `void', and redeclare
35575 its hook to use grub_uint64_t as addr and size parameters, and rename
35576 to ...
35577 (grub_machine_mmap_iterate): ... this. Update all users.
35578
35579 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
35580 to make it more readable. Rename to ...
35581 (grub_machine_mmap_iterate): ... this.
35582
35583 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
35584 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
35585 (grub_multiboot): Allocate an extra region after the payload, and fill
35586 it with a Multiboot memory map. Adjust a.out loader to calculate size
35587 with the extra space.
35588 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
35589 with the extra space.
35590
35591 2008-08-17 Carles Pina i Estany <carles@pina.cat>
35592
35593 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
35594
35595 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
35596
35597 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
35598 mdate-sh to the list `find' searches for.
35599 * DISTLIST: Regenerated.
35600
35601 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
35602
35603 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
35604 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
35605 genmoddep.awk, gensymlist.sh.in.
35606 (DISTDIRS): Add bus, docs, hook, lib.
35607 * DISTLIST: Regenerated.
35608 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
35609
35610 2008-08-16 Robert Millan <rmh@aybabtu.com>
35611
35612 * disk/raid.c (grub_raid_init): Handle/report errors set by
35613 grub_device_iterate().
35614 * disk/lvm.c (grub_lvm_init): Likewise.
35615
35616 2008-08-15 Bean <bean123ch@gmail.com>
35617
35618 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35619 and datehook.mod.
35620 (datetime_mod_SOURCES): New macro.
35621 (datetime_mod_CFLAGS): Likewise.
35622 (datetime_mod_LDFLAGS): Likewise.
35623 (date_mod_SOURCES): Likewise.
35624 (date_mod_CFLAGS): Likewise.
35625 (date_mod_LDFLAGS): Likewise.
35626 (datehook_mod_SOURCES): Likewise.
35627 (datehook_mod_CFLAGS): Likewise.
35628 (datehook_mod_LDFLAGS): Likewise.
35629
35630 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35631 and datehook.mod.
35632 (datetime_mod_SOURCES): New macro.
35633 (datetime_mod_CFLAGS): Likewise.
35634 (datetime_mod_LDFLAGS): Likewise.
35635 (date_mod_SOURCES): Likewise.
35636 (date_mod_CFLAGS): Likewise.
35637 (date_mod_LDFLAGS): Likewise.
35638 (datehook_mod_SOURCES): Likewise.
35639 (datehook_mod_CFLAGS): Likewise.
35640 (datehook_mod_LDFLAGS): Likewise.
35641
35642 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35643 and datehook.mod.
35644 (datetime_mod_SOURCES): New macro.
35645 (datetime_mod_CFLAGS): Likewise.
35646 (datetime_mod_LDFLAGS): Likewise.
35647 (date_mod_SOURCES): Likewise.
35648 (date_mod_CFLAGS): Likewise.
35649 (date_mod_LDFLAGS): Likewise.
35650 (datehook_mod_SOURCES): Likewise.
35651 (datehook_mod_CFLAGS): Likewise.
35652 (datehook_mod_LDFLAGS): Likewise.
35653
35654 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35655 and datehook.mod.
35656 (datetime_mod_SOURCES): New macro.
35657 (datetime_mod_CFLAGS): Likewise.
35658 (datetime_mod_LDFLAGS): Likewise.
35659 (date_mod_SOURCES): Likewise.
35660 (date_mod_CFLAGS): Likewise.
35661 (date_mod_LDFLAGS): Likewise.
35662 (datehook_mod_SOURCES): Likewise.
35663 (datehook_mod_CFLAGS): Likewise.
35664 (datehook_mod_LDFLAGS): Likewise.
35665
35666 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35667 and datehook.mod.
35668 (datetime_mod_SOURCES): New macro.
35669 (datetime_mod_CFLAGS): Likewise.
35670 (datetime_mod_LDFLAGS): Likewise.
35671 (date_mod_SOURCES): Likewise.
35672 (date_mod_CFLAGS): Likewise.
35673 (date_mod_LDFLAGS): Likewise.
35674 (datehook_mod_SOURCES): Likewise.
35675 (datehook_mod_CFLAGS): Likewise.
35676 (datehook_mod_LDFLAGS): Likewise.
35677
35678 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
35679
35680 * commands/date.c: New file.
35681
35682 * hook/datehook.c: Likewise.
35683
35684 * include/grub/lib/datetime.h: Likewise.
35685
35686 * include/grub/i386/cmos.h: Likewise.
35687
35688 * lib/datetime.c: Likewise.
35689
35690 * lib/i386/datetime.c: Likewise.
35691
35692 * lib/efi/datetime.c: Likewise.
35693
35694 2008-08-14 Robert Millan <rmh@aybabtu.com>
35695
35696 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
35697 (grub_mkelfimage_SOURCES): New variable.
35698 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
35699
35700 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
35701 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
35702 * conf/powerpc-ieee1275.rmk: Likewise.
35703 * conf/i386-ieee1275.rmk: Likewise.
35704
35705 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
35706 * kern/i386/coreboot/init.c: Likewise.
35707
35708 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
35709 with `<grub/cpu/kernel.h>'.
35710 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
35711 to ...
35712 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
35713 * kern/i386/coreboot/startup.S: Likewise.
35714
35715 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
35716 (GRUB_MOD_GAP): Remove.
35717 * include/grub/powerpc/kernel.h: New file.
35718 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
35719 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35720 * include/grub/i386/kernel.h: New file.
35721 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
35722 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
35723 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35724
35725 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
35726 `grub-mkelfimage'.
35727 Use --directory when invoking grub_mkimage.
35728
35729 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
35730 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
35731 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
35732 and GRUB_KERNEL_CPU_PREFIX.
35733
35734 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
35735
35736 * include/grub/err.h (grub_err_printf): New function prototype.
35737 * util/misc.c (grub_err_printf): New function.
35738 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
35739 grub_printf.
35740 * kern/err.c (grub_print_error): Use grub_err_printf.
35741
35742 2008-08-13 Robert Millan <rmh@aybabtu.com>
35743
35744 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
35745
35746 2008-08-13 Robert Millan <rmh@aybabtu.com>
35747
35748 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
35749 boot entry.
35750
35751 2008-08-12 Robert Millan <rmh@aybabtu.com>
35752
35753 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
35754 of the relocation code from here ...
35755 (grub_multiboot): ... to here.
35756 (forward_relocator, backward_relocator): Move from here ...
35757 * kern/i386/loader.S (grub_multiboot_forward_relocator)
35758 (grub_multiboot_backward_relocator): ... to here.
35759 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
35760 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
35761 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
35762 (grub_multiboot_forward_relocator_end)
35763 (grub_multiboot_backward_relocator)
35764 (grub_multiboot_backward_relocator_end): New variables.
35765
35766 2008-08-12 Bean <bean123ch@gmail.com>
35767
35768 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
35769
35770 2008-08-11 Robert Millan <rmh@aybabtu.com>
35771
35772 * kern/i386/linuxbios/startup.S: Move from here ...
35773 * kern/i386/coreboot/startup.S: ... to here.
35774
35775 * kern/i386/linuxbios/init.c: Move from here ...
35776 * kern/i386/coreboot/init.c: ... to here.
35777
35778 * kern/i386/linuxbios/table.c: Move from here ...
35779 * kern/i386/coreboot/mmap.c: ... to here.
35780
35781 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
35782
35783 2008-08-11 Robert Millan <rmh@aybabtu.com>
35784
35785 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
35786 errors. Leave it to the upper layer to handle them.
35787
35788 2008-08-09 Christian Franke <franke@computer.org>
35789
35790 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
35791 * conf/common.rmk: Install `grub-pe2elf' only if requested.
35792 Install `grub.d/10_windows' only on Cygwin.
35793 * configure.ac: Add subst of `target_os'.
35794 Check `target_os' also before setting TARGET_OBJ2ELF.
35795 Add `--enable-grub-pe2elf'.
35796
35797 2008-08-08 Robert Millan <rmh@aybabtu.com>
35798
35799 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35800 (grub_last_time): Change type to grub_uint64_t.
35801 (grub_disk_open): Migrate code from to using grub_get_time_ms().
35802 (grub_disk_close): Likewise.
35803
35804 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35805 (run_menu): Migrate code from to using grub_get_time_ms().
35806
35807 * util/misc.c (grub_get_time_ms): New function.
35808
35809 2008-08-08 Marco Gerards <marco@gnu.org>
35810
35811 * disk/ata.c (grub_ata_regget): Change return type to
35812 `grub_uint8_t'.
35813 (grub_ata_regget2): Likewise.
35814 (grub_ata_wait_status): New function.
35815 (grub_ata_wait_busy): Removed function, updated all users to use
35816 `grub_ata_wait_status'.
35817 (grub_ata_wait_drq): Likewise.
35818 (grub_ata_cmd): New function.
35819 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
35820 error handling.
35821 (grub_ata_pio_write): Add error handling.
35822 (grub_atapi_identify): Likewise.
35823 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
35824 handling.
35825 (grub_ata_identify): Use `grub_ata_cmd' and improve error
35826 handling. Actually use the detected registers. Reorder the
35827 detection logic such that it is easier to read.
35828 (grub_ata_pciinit): Do not assign the same ID to each controller.
35829 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
35830 handling.
35831 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
35832
35833 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
35834
35835 2008-08-08 Marco Gerards <marco@gnu.org>
35836
35837 * NEWS: Update.
35838
35839 2008-08-07 Bean <bean123ch@gmail.com>
35840
35841 * include/grub/x86_64/pci.h: New file.
35842
35843 2008-08-07 Christian Franke <franke@computer.org>
35844
35845 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
35846 (TIMER2_GATE): Likewise.
35847 (grub_pit_wait): Add enable/disable of the timer2 gate
35848 bit of port 0x61. This fixes a possible infinite loop.
35849
35850 2008-08-07 Bean <bean123ch@gmail.com>
35851
35852 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
35853 kern/i386/tsc.c and kern/i386/pit.c.
35854
35855 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
35856 x86_64 platform.
35857
35858 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
35859 <grub/i386/tsc.h>.
35860
35861 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
35862
35863 2008-08-07 Bean <bean123ch@gmail.com>
35864
35865 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
35866
35867 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
35868
35869 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
35870 multiple inclusion. Add #include <grub/types.h>.
35871
35872 2008-08-06 Christian Franke <franke@computer.org>
35873
35874 * conf/common.rmk: Build and install `10_windows'.
35875 * util/grub.d/10_windows.in: New script.
35876
35877 2008-08-06 Pavel Roskin <proski@gnu.org>
35878
35879 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
35880
35881 2008-08-06 Robert Millan <rmh@aybabtu.com>
35882
35883 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
35884 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
35885
35886 2008-08-06 Bean <bean123ch@gmail.com>
35887
35888 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
35889 (grub_pxefs_fs_int): Remove dummy definition.
35890 (grub_pxefs_open): Use data->block_size to store the current block
35891 size setting.
35892 (grub_pxefs_read): Use block size stored in data->block_size. As the
35893 value of grub_pxe_blksize can be changed after the file is opened.
35894
35895 2008-08-06 Bean <bean123ch@gmail.com>
35896
35897 * fs/i386/pc/pxe.c (curr_file): new variable.
35898 (grub_pxefs_open): Simply the handling of pxe file system. Don't
35899 require the dummy internal file system anymore.
35900 (grub_pxefs_read): Removed.
35901 (grub_pxefs_close): Likewise.
35902 (grub_pxefs_fs_int): Likewise.
35903 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
35904 connection when we switch file.
35905 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
35906
35907 2008-08-06 Robert Millan <rmh@aybabtu.com>
35908
35909 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
35910 `halt.mod'.
35911 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
35912 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
35913
35914 * kern/i386/halt.c: New file.
35915 * kern/i386/reboot.c: Likewise.
35916 * include/grub/i386/reboot.h: Likewise.
35917 * include/grub/i386/halt.h: Likewise.
35918
35919 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
35920 Include `<grub/cpu/halt.h>'.
35921 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
35922 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
35923
35924 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
35925 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
35926 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
35927 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
35928 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
35929 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
35930 from here ...
35931 * include/grub/i386/at_keyboard.h: ... to here.
35932
35933 2008-08-05 Robert Millan <rmh@aybabtu.com>
35934
35935 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
35936 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
35937 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
35938 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
35939 `kern/generic/millisleep.c'.
35940
35941 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
35942 instead of grub_get_rtc().
35943 (grub_tsc_init): Initialize `tsc_boot_time'.
35944
35945 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
35946 (grub_machine_init): Use grub_tsc_init() rather than
35947 installing an RTC-based handler via grub_install_get_time_ms().
35948
35949 * kern/i386/pit.c: New file.
35950 * include/grub/i386/pit.h: Likewise.
35951
35952 2008-08-05 Bean <bean123ch@gmail.com>
35953
35954 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
35955
35956 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
35957 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
35958 (pxe_mod_SOURCES): New macro.
35959 (pxe_mod_CFLAGS): Likewise.
35960 (pxe_mod_LDFLAGS): Likewise.
35961 (pxecmd_mod_SOURCES): Likewise.
35962 (pxecmd_mod_CFLAGS): Likewise.
35963 (pxecmd_mod_LDFLAGS): Likewise.
35964
35965 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
35966 (grub_pxe_call): Likewise.
35967
35968 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
35969
35970 * commands/i386/pc/pxecmd.c: New file.
35971
35972 * fs/i386/pc/pxe.c: Likewise.
35973
35974 * include/grub/i386/pc/pxe.h: Likewise.
35975
35976 2008-08-05 Bean <bean123ch@gmail.com>
35977
35978 * util/console.c (grub_console_cur_color): New variable.
35979 (grub_console_standard_color): Likewise.
35980 (grub_console_normal_color): Likewise.
35981 (grub_console_highlight_color): Likewise.
35982 (color_map): Likewise.
35983 (use_color): Likewise.
35984 (NUM_COLORS): New macro.
35985 (grub_ncurses_setcolorstate): Handle color properly.
35986 (grub_ncurses_setcolor): Don't change color here, just remember the
35987 settings, color will be set in grub_ncurses_setcolorstate.
35988 (grub_ncurses_getcolor): New function.
35989 (grub_ncurses_init): Initialize color pairs.
35990 (grub_ncurses_term): New member grub_ncurses_getcolor.
35991
35992 2008-08-05 Colin D Bennett <colin@gibibit.com>
35993
35994 High resolution timer support. Implemented for x86 CPUs using TSC.
35995 Extracted generic grub_millisleep() so it's linked in only as needed.
35996 This requires a Pentium compatible CPU; if the RDTSC instruction is
35997 not supported, then it falls back on the generic grub_get_time_ms()
35998 implementation that uses the machine's RTC.
35999
36000 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
36001 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36002 `kern/generic/millisleep.c'.
36003
36004 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
36005 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
36006
36007 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
36008 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
36009
36010 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36011
36012 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
36013 `kern/generic/millisleep.c'.
36014
36015 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36016
36017 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
36018
36019 * kern/generic/rtc_get_time_ms.c: New file.
36020
36021 * kern/generic/millisleep.c: New file.
36022
36023 * kern/misc.c: Don't include
36024 <kern/time.h> anymore.
36025 (grub_millisleep_generic): Removed.
36026
36027 * commands/sleep.c (grub_interruptible_millisleep): Uses
36028 grub_get_time_ms() instead of grub_get_rtc().
36029
36030 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
36031 function.
36032 (grub_cpu_is_cpuid_supported): New inline function.
36033 (grub_cpu_is_tsc_supported): New inline function.
36034 (grub_tsc_init): New function prototype.
36035 (grub_tsc_get_time_ms): New function prototype.
36036
36037 * kern/i386/tsc.c (grub_get_time_ms): New file.
36038
36039 * include/grub/time.h: Include <grub/types.h.
36040 (grub_millisleep_generic): Removed.
36041 (grub_get_time_ms): New prototype.
36042 (grub_install_get_time_ms): New prototype.
36043 (grub_rtc_get_time_ms): New prototype.
36044
36045 * kern/time.c (grub_get_time_ms): New function.
36046 (grub_install_get_time_ms): New function.
36047
36048 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
36049 <grub/time.h> anymore.
36050 (grub_millisleep): Removed.
36051 (grub_machine_init): Call grub_tsc_init.
36052
36053 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
36054 get_time_ms() implementation.
36055
36056 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
36057 (ieee1275_get_time_ms): New function.
36058 (grub_machine_init): Install get_time_ms() implementation.
36059
36060 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
36061 (grub_machine_init): Call grub_tsc_init().
36062 (grub_millisleep): Removed.
36063
36064 * kern/ieee1275/init.c (grub_millisleep): Removed.
36065 (grub_machine_init): Install ieee1275_get_time_ms()
36066 implementation.
36067 (ieee1275_get_time_ms): New function.
36068 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
36069 real work.
36070
36071 2008-08-05 Marco Gerards <marco@gnu.org>
36072
36073 * disk/ata.c: Include <grub/pci.h>.
36074 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
36075 (grub_ata_initialize): Rewritten.
36076 (grub_ata_device_initialize): New function.
36077
36078 2008-08-04 Pavel Roskin <proski@gnu.org>
36079
36080 * kern/main.c: Include grub/mm.h.
36081
36082 2008-08-04 Robert Millan <rmh@aybabtu.com>
36083
36084 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
36085 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
36086 corruption problem).
36087
36088 2008-08-04 Robert Millan <rmh@aybabtu.com>
36089
36090 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
36091 warnings introduced in my last commit.
36092
36093 2008-08-03 Robert Millan <rmh@aybabtu.com>
36094
36095 Make PCI available on all i386 architectures.
36096
36097 * include/grub/i386/pc/pci.h: Move from here ...
36098 * include/grub/i386/pci.h: ... to here.
36099
36100 * include/grub/i386/pc/pci.h: Remove.
36101 * include/grub/i386/efi/pci.h: Remove.
36102 * include/grub/x86_64/efi/pci.h: Remove.
36103
36104 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
36105 `<grub/cpu/pci.h>'.
36106
36107 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
36108 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
36109 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
36110
36111 * conf/i386-ieee1275.rmk: Likewise.
36112
36113 2008-08-03 Robert Millan <rmh@aybabtu.com>
36114
36115 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
36116 (grub_console_setcursor): Make it possible to set cursor off.
36117
36118 2008-08-03 Robert Millan <rmh@aybabtu.com>
36119
36120 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
36121 of modules instead of assuming which platform provides what.
36122 * util/update-grub.in: Likewise.
36123
36124 2008-08-03 Robert Millan <rmh@aybabtu.com>
36125
36126 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
36127 instead of `grub_install_dos_part' to determine whether a drive needs
36128 to be prepended to prefix (`grub_install_dos_part' is not reliable,
36129 because it can be overridden when loading GRUB via Multiboot).
36130
36131 2008-08-02 Robert Millan <rmh@aybabtu.com>
36132
36133 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
36134
36135 2008-08-02 Robert Millan <rmh@aybabtu.com>
36136
36137 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
36138 of informational grub_dprintf() calls.
36139
36140 2008-08-02 Robert Millan <rmh@aybabtu.com>
36141
36142 * disk/memdisk.c (memdisk_size): Don't initialize.
36143 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
36144
36145 * include/grub/i386/pc/kernel.h
36146 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
36147 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
36148 (grub_memdisk_image_size, grub_arch_memdisk_addr)
36149 (grub_arch_memdisk_size): Remove.
36150
36151 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
36152 field (was only used to transfer a constant). Add `type' field to
36153 support multiple module types.
36154 (grub_module_iterate): New function.
36155
36156 * kern/device.c (grub_device_open): Do not hide error messages
36157 when grub_disk_open() fails. Use grub_print_error() instead.
36158
36159 * kern/i386/pc/init.c (grub_arch_modules_addr)
36160 (grub_arch_memdisk_size): Remove functions.
36161 (grub_arch_modules_addr): Return the module address in high memory
36162 (now that it isn't copied anymore).
36163
36164 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
36165 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
36166 decompression routine (grub_total_module_size already includes that
36167 now). Don't copy modules back to low memory.
36168
36169 * kern/main.c: Include `<grub/mm.h>'.
36170 (grub_load_modules): Split out (and use) ...
36171 (grub_module_iterate): ... this function, which iterates through
36172 module objects and runs a hook.
36173 Comment out grub_mm_init_region() call, as it would cause non-ELF
36174 modules to be overwritten.
36175
36176 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
36177 the memdisk image in its own region, make it part of the module list.
36178 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
36179 (main): Parse --memdisk|-m option, and pass user-provided path as
36180 parameter to generate_image().
36181 (add_segments): Pass `memdisk_path' down to load_modules().
36182 (load_modules): Embed memdisk image in module section when requested.
36183 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
36184 `header.type' instead of `header.offset'.
36185
36186 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
36187 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
36188 (memdisk_mod_LDFLAGS): New variables.
36189 * conf/i386-coreboot.rmk: Likewise.
36190 * conf/i386-ieee1275.rmk: Likewise.
36191
36192 2008-08-02 Robert Millan <rmh@aybabtu.com>
36193
36194 * loader/i386/pc/multiboot.c (playground, forward_relocator)
36195 (backward_relocator): New variables. Used to allocate and relocate
36196 the payload, respectively.
36197 (grub_multiboot_load_elf32): Load into heap instead of requested
36198 address, install the appropriate relocator code in each bound of
36199 the payload, and set the entry point such that
36200 grub_multiboot_real_boot() will jump to one of them.
36201
36202 * kern/i386/loader.S (grub_multiboot_payload_size)
36203 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36204 (grub_multiboot_payload_entry_offset): New variables.
36205 (grub_multiboot_real_boot): Set cpu context to what the relocator
36206 expects, and jump to the relocator instead of the payload.
36207
36208 * include/grub/i386/loader.h (grub_multiboot_payload_size)
36209 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36210 (grub_multiboot_payload_entry_offset): Export.
36211
36212 2008-08-01 Bean <bean123ch@gmail.com>
36213
36214 * normal/menu_entry.c (editor_getline): Don't return the original
36215 string as result, as it will be released by lexer once it has done
36216 using it.
36217
36218 2008-08-01 Robert Millan <rmh@aybabtu.com>
36219
36220 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
36221 within menuentries, not before them.
36222 util/grub.d/10_hurd.in: Likewise.
36223
36224 2008-08-01 Bean <bean123ch@gmail.com>
36225
36226 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
36227 (bufio_mod_SOURCES): New macro.
36228 (bufio_mod_CFLAGS): Likewise.
36229 (bufio_mod_LDFLAGS): Likewise.
36230
36231 * include/grub/bufio.h: New file.
36232
36233 * io/bufio.c: Likewise.
36234
36235 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
36236 (grub_video_reader_png): Use grub_buffile_open to open file.
36237
36238 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
36239 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
36240
36241 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
36242 (grub_video_reader_tga): Use grub_buffile_open to open file.
36243
36244 * font/manager.c: Include <grub/bufio.h>.
36245 (add_font): Use grub_buffile_open to open file.
36246
36247 2008-07-31 Robert Millan <rmh@aybabtu.com>
36248
36249 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
36250 ELF segments, use a macro for arbitrarily accessing any of them instead
36251 of preparing a pointer that allows access to one at a time.
36252 (grub_multiboot_load_elf64): Likewise.
36253
36254 2008-07-31 Bean <bean123ch@gmail.com>
36255
36256 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
36257 GRUB_KERNEL_MACHINE_DATA_END.
36258
36259 2008-07-30 Robert Millan <rmh@aybabtu.com>
36260
36261 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
36262 Increase from 0x50 to 0x60.
36263 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
36264 use UUIDs to identify the root drive for them. If that's not
36265 possible, abort.
36266 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
36267 check, for cross-disk installs.
36268
36269 2008-07-30 Robert Millan <rmh@aybabtu.com>
36270
36271 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
36272 is non-empty, use it to set the `prefix' environment variable instead
36273 of the usual approach.
36274 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
36275 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
36276 environment variable instead of dummy make_install_device().
36277
36278 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
36279 (start): Insert a data section, with `grub_prefix' variable.
36280 * kern/i386/linuxbios/startup.S: Likewise.
36281
36282 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
36283 New variable reference.
36284 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
36285 New macro. Defines offset of `grub_prefix' within startup.S (relative
36286 to `start').
36287 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
36288 section within startup.S (relative to `start').
36289 * include/grub/i386/coreboot/kernel.h: Likewise.
36290
36291 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
36292 Overwrite grub_prefix with its contents, at the beginning of the
36293 first segment.
36294 (main): Understand -p|--prefix.
36295
36296 2008-07-30 Robert Millan <rmh@aybabtu.com>
36297
36298 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
36299
36300 2008-07-30 Robert Millan <rmh@aybabtu.com>
36301
36302 * term/i386/pc/vga_text.c (grub_console_cls): Use
36303 grub_console_gotoxy() to go back to beginning of the screen.
36304 Found by Patrick Georgi <patrick.georgi@coresystems.de>
36305
36306 2008-07-29 Christian Franke <franke@computer.org>
36307
36308 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
36309 Add conversion of emulated mount points on Cygwin.
36310
36311 2008-07-29 Christian Franke <franke@computer.org>
36312
36313 * util/update-grub.in: Add a check for admin
36314 group on Cygwin.
36315 Remove old `grub.cfg.new' before creation.
36316 Add `-f' to `mv' to handle the different filesystem
36317 semantics of Windows.
36318
36319 2008-07-29 Bean <bean123ch@gmail.com>
36320
36321 * normal/main.c (get_line): Fix buffer overflow bug.
36322
36323 2008-07-28 Robert Millan <rmh@aybabtu.com>
36324
36325 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
36326 (struct grub_apple_header): New struct. Describes the layout of
36327 the partmap header.
36328 (apple_partition_map_iterate): Check the header magic as well as the
36329 partition magic (which was already being checked).
36330
36331 2008-07-28 Pavel Roskin <proski@gnu.org>
36332
36333 * genmk.rb: Add a warning to the beginning of the output that
36334 it's a generated file and should not be edited.
36335
36336 2008-07-28 Robert Millan <rmh@aybabtu.com>
36337
36338 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36339 with the same number are found, just use issue a warning with
36340 grub_dprintf(), as this error has been reported to be non-fatal.
36341
36342 2008-07-27 Robert Millan <rmh@aybabtu.com>
36343
36344 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
36345 information.
36346
36347 2008-07-27 Bean <bean123ch@gmail.com>
36348
36349 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
36350 (grub_fat_find_dir): Ignore case when comparing filename.
36351
36352 2008-07-27 Bean <bean123ch@gmail.com>
36353
36354 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
36355 smallino, as it's more descriptive, and i8count can be confused with
36356 the other field count.
36357 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
36358 inode type.
36359
36360 2008-07-27 Bean <bean123ch@gmail.com>
36361
36362 * commands/crc.c: New file.
36363
36364 * lib/crc.c: Likewise.
36365
36366 * include/grub/lib/crc.h: Likewise.
36367
36368 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
36369
36370 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
36371 (hexdump): Move this function to ...
36372
36373 * lib/hexdump.c: ... here.
36374
36375 * include/grub/hexdump.h: Renamed to ...
36376
36377 * include/grub/lib/hexdump.h: ... this.
36378
36379 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
36380
36381 * util/grub-editenv.c: Likewise.
36382
36383 * include/envblk.h: Renamed to ...
36384
36385 * include/lib/envblk.h: ... this.
36386
36387 * util/envblk.c: Renamed to ...
36388
36389 * lib/envblk.c: ... this.
36390
36391 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
36392 lib/hexdump.c.
36393 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
36394 (pkglib_MODULES): Add crc.mod.
36395 (hexdump_mod_SOURCES): Add lib/hexdump.c.
36396 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
36397 (crc_mod_SOURCES): New macro.
36398 (crc_mod_CFLAGS): Likewise.
36399 (crc_mod_LDFLAGS): Likewise.
36400
36401 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
36402
36403 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36404
36405 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36406
36407 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36408
36409 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36410
36411 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
36412
36413 * commands/help.c: Include <grub/term.h>.
36414 (TERM_WIDTH): Removed. Updated all users.
36415
36416 2008-07-27 Pavel Roskin <proski@gnu.org>
36417
36418 * util/getroot.c (find_root_device): Rephrase a comment to avoid
36419 spurious warnings about a comment within a comment.
36420
36421 2008-07-25 Robert Millan <rmh@aybabtu.com>
36422
36423 * util/getroot.c (find_root_device): Skip devices that match
36424 /dev/dm-[0-9]. This lets the real device be found for any type of
36425 abstraction (LVM, EVMS, RAID..).
36426 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
36427 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
36428 device is found first, find_root_device() will now skip it.
36429
36430 2008-07-24 Pavel Roskin <proski@gnu.org>
36431
36432 * include/grub/types.h: Use __builtin_bswap32() and
36433 __builtin_bswap64() with gcc 4.3 and newer.
36434
36435 2008-07-24 Christian Franke <franke@computer.org>
36436
36437 * util/i386/pc/grub-install.in: If `--debug' is specified,
36438 pass `--verbose' to grub-setup.
36439 Abort script if make_system_path_relative_to_its_root() fails.
36440
36441 2008-07-24 Bean <bean123ch@gmail.com>
36442
36443 * configure.ac: Fixed a bug caused by the previous cygwin patch,
36444 variable `target_platform' should be `platform'.
36445
36446 2008-07-24 Bean <bean123ch@gmail.com>
36447
36448 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
36449 (grub_png_init_fixed_block): New function.
36450 (grub_png_decode_image_data): Handle fixed huffman code compression.
36451
36452 2008-07-24 Bean <bean123ch@gmail.com>
36453
36454 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
36455 (grub_pe2elf_SOURCES): New macro.
36456 (CLEANFILES): Add grub-pe2elf.
36457
36458 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
36459 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
36460 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
36461 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
36462 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
36463 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
36464 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
36465 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
36466 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
36467 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
36468 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
36469 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
36470 (GRUB_PE32_DT_FUNCTION): Likewise.
36471 (GRUB_PE32_REL_I386_DIR32): Likewise.
36472 (GRUB_PE32_REL_I386_REL32): Likewise.
36473 (grub_pe32_symbol): New structure.
36474 (grub_pe32_reloc): Likewise.
36475
36476 * util/grub-pe2elf.c: New file.
36477
36478 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
36479 start symbol in non pc platform.
36480
36481 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
36482
36483 The following patches are from Christian Franke.
36484
36485 * include/grub/dl.h: Remove .previous, gas supports this only
36486 for ELF format.
36487
36488 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
36489 Remove .type, gas supports this only for ELF format.
36490
36491 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
36492 nullbytes in symbol table. This fixes an infinite loop if table is
36493 zero filled.
36494
36495 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
36496 TARGET_IMG_LDFLAGS and EXEEXT.
36497
36498 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
36499 TARGET_IMG_LDFLAGS_AC.
36500 (grub_CHECK_STACK_ARG_PROBE): New function.
36501
36502 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
36503
36504 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
36505
36506 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
36507 to set TARGET_IMG_LD* accordingly.
36508 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
36509 Add call to grub_CHECK_STACK_ARG_PROBE.
36510 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
36511
36512 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
36513
36514 * genmk.rb: Add EXEEXT to CLEANFILES.
36515
36516 2008-07-23 Robert Millan <rmh@aybabtu.com>
36517
36518 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
36519 define the codes for arrows and lines used for the menu).
36520 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
36521 as well.
36522
36523 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
36524 fonts, because the latter are too slow.
36525
36526 2008-07-21 Bean <bean123ch@gmail.com>
36527
36528 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
36529 a20. Run keyboard test last, as it will cause macbook to halt.
36530
36531 2008-07-18 Pavel Roskin <proski@gnu.org>
36532
36533 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
36534 load foreign architecture modules correctly anyway. Keep
36535 support for loading host architecture modules, whether we
36536 compile them or not.
36537
36538 2008-07-17 Pavel Roskin <proski@gnu.org>
36539
36540 * configure.ac: Use -m32 or -m64 regardless of whether we had to
36541 change target_cpu. The compiler default can mismatch target_cpu
36542 in any case.
36543
36544 * disk/efi/efidisk.c: Fix format warnings on x86_64.
36545 * kern/efi/efi.c: Likewise.
36546
36547 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
36548 target compiler is functional.
36549 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
36550 are set up.
36551
36552 * configure.ac: Default to efi platform for x86_64-apple. Allow
36553 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
36554 adjustments from the rest, only do them if target is not
36555 explicitly given. Merge other adjustments with the final sanity
36556 check. Remove an extraneous check for supported CPU. Be
36557 specific which CPU and which platform is not supported.
36558
36559 * configure.ac: Default to pc platform for x86_64.
36560
36561 2008-07-17 Robert Millan <rmh@aybabtu.com>
36562
36563 Partial LinuxBIOS -> Coreboot rename.
36564
36565 * conf/i386-linuxbios.rmk: Renamed to ...
36566 * conf/i386-coreboot.rmk: ... this.
36567 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
36568 * configure.ac: Accept "coreboot" as input platform (but maintain
36569 compatibility with "linuxbios").
36570 * include/grub/i386/linuxbios: Renamed to ...
36571 * include/grub/i386/coreboot: ... this.
36572
36573 2008-07-17 Bean <bean123ch@gmail.com>
36574
36575 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
36576 (appleldr_mod_SOURCE): New variable.
36577 (appleldr_mod_CFLAGS): Likewise.
36578 (appleldr_mod_LDFLAGS): Likewise.
36579 (pci_mod_SOURCES): Likewise.
36580 (pci_mod_CFLAGS): Likewise.
36581 (pci_mod_LDFLAGS): Likewise.
36582 (lspci_mod_SOURCES): Likewise.
36583 (lspci_mod_CFLAGS): Likewise.
36584 (lspci_mod_LDFLAGS): Likewise.
36585
36586 * conf/x86_64-efi.rmk: New file.
36587
36588 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
36589 macro.
36590 (grub_efidisk_write): Likewise.
36591
36592 * include/efi/api.h (efi_call_0): New macro.
36593 (efi_call_1): Likewise.
36594 (efi_call_2): Likewise.
36595 (efi_call_3): Likewise.
36596 (efi_call_4): Likewise.
36597 (efi_call_5): Likewise.
36598 (efi_call_6): Likewise.
36599
36600 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
36601 grub_rescue_cmd_chainloader.
36602
36603 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
36604 (grub_pe32_optional_header): Change some fields based on i386 or
36605 x86_64 platform.
36606 (GRUB_PE32_PE32_MAGIC): Likewise.
36607
36608 * include/grub/efi/uga_draw.h: New file.
36609
36610 * include/grub/elf.h (STN_ABS): New constant.
36611 (R_X86_64_NONE): Relocation constant for x86_64.
36612 (R_X86_64_64): Likewise.
36613 (R_X86_64_PC32): Likewise.
36614 (R_X86_64_GOT32): Likewise.
36615 (R_X86_64_PLT32): Likewise.
36616 (R_X86_64_COPY): Likewise.
36617 (R_X86_64_GLOB_DAT): Likewise.
36618 (R_X86_64_JUMP_SLOT): Likewise.
36619 (R_X86_64_RELATIVE): Likewise.
36620 (R_X86_64_GOTPCREL): Likewise.
36621 (R_X86_64_32): Likewise.
36622 (R_X86_64_32S): Likewise.
36623 (R_X86_64_16): Likewise.
36624 (R_X86_64_PC16): Likewise.
36625 (R_X86_64_8): Likewise.
36626 (R_X86_64_PC8): Likewise.
36627
36628 * include/grub/i386/efi/pci.h: New file.
36629
36630 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
36631 Change it value based on platform.
36632 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
36633 (GRUB_E820_RAM): Likewise.
36634 (GRUB_E820_RESERVED): Likewise.
36635 (GRUB_E820_ACPI): Likewise.
36636 (GRUB_E820_NVS): Likewise.
36637 (GRUB_E820_EXEC_CODE): Likewise.
36638 (GRUB_E820_MAX_ENTRY): Likewise.
36639 (grub_e820_mmap): New structure.
36640 (linux_kernel_header): Change the efi field according to different
36641 kernel version, also field from linux_kernel_header.
36642
36643 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
36644
36645 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
36646 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
36647 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
36648 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
36649 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
36650 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
36651 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
36652 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
36653 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
36654 (GRUB_PCI_ADDR_IO_MASK): Likewise.
36655
36656 * include/grub/x86_64/efi/kernel.h: New file.
36657
36658 * include/grub/x86_64/efi/loader.h: Likewise.
36659
36660 * include/grub/x86_64/efi/machine.h: Likewise.
36661
36662 * include/grub/x86_64/efi/pci.h: Likewise.
36663
36664 * include/grub/x86_64/efi/time.h: Likewise.
36665
36666 * include/grub/x86_64/linux.h: Likewise.
36667
36668 * include/grub/x86_64/setjmp.h: Likewise.
36669
36670 * include/grub/x86_64/time.h: Likewise.
36671
36672 * include/grub/x86_64/types.h: Likewise.
36673
36674 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
36675 GRUB_TARGET_SIZEOF_VOID_P.
36676
36677 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
36678 (grub_efi_locate_handle): Likewise.
36679 (grub_efi_open_protocol): Likewise.
36680 (grub_efi_set_text_mode): Likewise.
36681 (grub_efi_stall): Likewise.
36682 (grub_exit): Likewise.
36683 (grub_reboot): Likewise.
36684 (grub_halt): Likewise.
36685 (grub_efi_exit_boot_services): Likewise.
36686 (grub_get_rtc): Likewise.
36687
36688 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
36689 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
36690 (grub_efi_allocate_pages): Wrap efi calls.
36691 (grub_efi_free_pages): Wrap efi calls.
36692 (grub_efi_get_memory_map): Wrap efi calls.
36693
36694 * kern/x86_64/dl.c: New file.
36695
36696 * kern/x86_64/efi/callwrap.S: Likewise.
36697
36698 * kern/x86_64/efi/startup.S: Likewise.
36699
36700 * loader/efi/appleloader.c: Likewise.
36701
36702 * loader/efi/chainloader.c (cmdline): New variable.
36703 (grub_chainloader_unload): Wrap efi calls.
36704 (grub_chainloader_boot): Likewise.
36705 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
36706 command line.
36707
36708 * loader/efi/chainloader_normal.c (chainloader_command):
36709 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
36710 command line.
36711
36712 * loader/i386/efi/linux.c (allocate_pages): Change allocation
36713 method.
36714 (grub_e820_add_region): New function.
36715 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
36716 booting.
36717 (grub_find_video_card): New function.
36718 (grub_linux_setup_video): New function.
36719 (grub_rescue_cmd_linux): Probe for video information.
36720
36721 * normal/x86_64/setjmp.S: New file.
36722
36723 * term/efi/console.c (map_char): New function.
36724 (grub_console_putchar): Map unicode char.
36725 (grub_console_checkkey): Wrap efi calls.
36726 (grub_console_getkey): Likewise.
36727 (grub_console_getwh): Likewise.
36728 (grub_console_gotoxy): Likewise.
36729 (grub_console_cls): Likewise.
36730 (grub_console_setcolorstate): Likewise.
36731 (grub_console_setcursor): Likewise.
36732
36733 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
36734
36735 2008-07-16 Pavel Roskin <proski@gnu.org>
36736
36737 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
36738 format strings.
36739
36740 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
36741 pointer, not an integer. This fixes a warning and prevents
36742 precision loss on 64-bit systems.
36743 (relocate_addresses): Remove unneeded cast.
36744
36745 2008-07-15 Pavel Roskin <proski@gnu.org>
36746
36747 * kern/i386/ieee1275/init.c: Include grub/cache.h.
36748
36749 * term/ieee1275/ofconsole.c: Disable code unused on i386.
36750
36751 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
36752 Fix comparison between signed and unsigned.
36753
36754 * include/grub/i386/ieee1275/console.h: Declare
36755 grub_console_init() and grub_console_fini().
36756
36757 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
36758 It's empty and unused.
36759
36760 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
36761 beginning to avoid warnings with some compilers.
36762
36763 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
36764 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
36765
36766 2008-07-14 Pavel Roskin <proski@gnu.org>
36767
36768 * kern/env.c (grub_register_variable_hook): Don't copy empty
36769 string, it leaks memory. Pass "" to grub_env_set(), it should
36770 handle constant strings.
36771
36772 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
36773 * commands/cmp.c (grub_cmd_cmp): Likewise.
36774 * kern/dl.c (grub_dl_flush_cache): Likewise.
36775 (grub_dl_load_core): Likewise.
36776 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
36777 (grub_elf64_load_phdrs): Likewise.
36778
36779 2008-07-13 Pavel Roskin <proski@gnu.org>
36780
36781 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
36782 between signed and unsigned.
36783 (LzmaEnc_Finish): Fix warning about an unused parameter.
36784
36785 2008-07-13 Bean <bean123ch@gmail.com>
36786
36787 * Makefile.in (enable_lzo): New rule.
36788
36789 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
36790
36791 * configure.ac (ENABLE_LZO): New option --enable-lzo.
36792
36793 * boot/i386/pc/lnxboot.S: #include <config.h>.
36794
36795 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
36796 its value according to the compression algorithm used, lzo or lzma.
36797
36798 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
36799 compression algorithm according to configure macro.
36800
36801 * kern/i386/pc/startup.S (codestart): Likewise.
36802
36803 * kern/i386/pc/lzma_decode.S: New file.
36804
36805 * include/grub/lib/LzFind.h: Likewise.
36806
36807 * include/grub/lib/LzHash.h: Likewise.
36808
36809 * include/grub/lib/LzmaDec.h: Likewise.
36810
36811 * include/grub/lib/LzmaEnc.h: Likewise.
36812
36813 * include/grub/lib/LzmaTypes.h: Likewise.
36814
36815 * lib/LzFind.c: Likewise.
36816
36817 * lib/LzmaDec.c: Likewise.
36818
36819 * lib/LzmaEnc.c: Likewise.
36820
36821 2008-07-13 Bean <bean123ch@gmail.com>
36822
36823 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
36824 (grub_ext4_extent_header): New structure.
36825 (grub_ext4_extent): Likewise.
36826 (grub_ext4_extent_idx): Likewise.
36827 (grub_ext4_find_leaf): New function.
36828 (grub_ext2_read_block): Handle extents.
36829
36830 2008-07-12 Robert Millan <rmh@aybabtu.com>
36831
36832 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
36833
36834 2008-07-11 Robert Millan <rmh@aybabtu.com>
36835
36836 * util/grub.d/40_custom.in: New file. Example on how to add custom
36837 entries to /etc/grub.d.
36838 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
36839 40_custom (implicitly, by merging all the grub.d rules).
36840
36841 2008-07-11 Pavel Roskin <proski@gnu.org>
36842
36843 * commands/read.c (grub_getline): Fix invalid memory access.
36844 Don't add newline to the variable value.
36845
36846 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
36847 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
36848 (serial_hw_get_port): Check validity of the port number.
36849 (grub_cmd_serial): Check return value of serial_hw_get_port().
36850
36851 2008-07-07 Pavel Roskin <proski@gnu.org>
36852
36853 * boot/i386/pc/diskboot.S (notification_string): Replace
36854 "Loading kernel" with just "loading". This is shorter, less
36855 confusing and saves a few bytes for possible future changes.
36856
36857 2008-07-05 Pavel Roskin <proski@gnu.org>
36858
36859 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
36860 size for ATAPI devices, they are undefined. Output sector
36861 number in decimal form.
36862
36863 * disk/ata.c: Use named constants for status bits.
36864
36865 2008-07-04 Pavel Roskin <proski@gnu.org>
36866
36867 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
36868 grub_addr_t before casting it to the void pointer to fix a
36869 warning. Non-addressable regions are discarded earlier.
36870 (grub_arch_modules_addr): Cast _end to grub_addr_t.
36871 * kern/i386/linuxbios/table.c: Include grub/misc.h.
36872 (check_signature): Don't shadow table_header.
36873 (grub_linuxbios_table_iterate): Cast numeric constants to
36874 grub_linuxbios_table_header_t.
36875 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
36876 grub_stop().
36877
36878 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
36879 prevent warnings.
36880
36881 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
36882 pointer, which can cause warnings. Support 64-bit addresses.
36883
36884 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
36885 of sizeof(long). This fixes PowerPC image generation on x86_64.
36886
36887 2008-07-04 Robert Millan <rmh@aybabtu.com>
36888
36889 This fixes a performance issue when pc & gpt partmap iterators
36890 didn't abort iteration even after our hook found what it was
36891 looking for (often causing expensive probes of non-existent drives).
36892
36893 Some callers relied on previous buggy behaviour, since they would
36894 raise an error when their own hooks caused early abortion of its
36895 iteration.
36896
36897 * kern/device.c (grub_device_open): Improve error message.
36898 * disk/lvm.c (grub_lvm_open): Likewise.
36899 * disk/raid.c (grub_raid_open): Likewise.
36900
36901 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
36902 when hook requests it, independently of grub_errno.
36903 (pc_partition_map_probe): Do not fail when find_func() caused
36904 early abortion of pc_partition_map_iterate().
36905
36906 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
36907 when hook requests it, independently of grub_errno.
36908 (gpt_partition_map_probe): Do not fail when find_func() caused
36909 early abortion of gpt_partition_map_iterate().
36910
36911 * kern/partition.c (grub_partition_iterate): Abort parent iteration
36912 when hook requests it, independently of grub_errno. Do not fail when
36913 part_map_iterate_hook() caused early abortion of p->iterate().
36914
36915 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
36916 when grub_partition_iterate() returned with non-zero.
36917
36918 2008-07-03 Pavel Roskin <proski@gnu.org>
36919
36920 * disk/ata.c (grub_ata_pio_write): Check status before writing,
36921 like we do in grub_ata_pio_read().
36922 (grub_ata_readwrite): Always write individual sectors. Fix the
36923 sector count for the remainder.
36924 (grub_ata_write): Enable writing to ATA devices. Correctly
36925 report error for ATAPI devices.
36926
36927 2008-07-02 Pavel Roskin <proski@gnu.org>
36928
36929 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
36930 warning.
36931
36932 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
36933 for every read sector, we already increment it for the whole
36934 batch. This fixes reading more than 256 sectors at once.
36935
36936 * util/grub-editenv.c (cmd_info): Cast argument to long
36937 explicitly. ptrdiff_t reduces to int on i386.
36938
36939 * util/grub-editenv.c (main): Be specific which parameter is
36940 missing.
36941
36942 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
36943 (memdisk): Make memdisk_orig_addr a pointer.
36944
36945 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
36946 for file offsets, use grub_off_t instead. Fix printf format
36947 warnings.
36948
36949 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
36950 there. Real unexpected warnings should not drown in the noise
36951 about known problems.
36952
36953 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
36954 grub_disk_addr_t for memory addresses.
36955
36956 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
36957 explicitly to fix a warning.
36958
36959 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
36960
36961 * Makefile.in (MODULE_LDFLAGS): New variable.
36962 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
36963 the linker accepts --build-id=none.
36964 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
36965 MODULE_LDFLAGS.
36966 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
36967
36968 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
36969 those in Linux XFS code. Provide a way to access 64-bit parent
36970 inode.
36971 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
36972 the end of struct grub_xfs_dir_header.
36973
36974 2008-07-02 Bean <bean123ch@gmail.com>
36975
36976 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
36977 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
36978 and GRUB_IEEE1275_FLAG_NO_ANSI.
36979
36980 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
36981 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
36982 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
36983
36984 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
36985 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
36986
36987 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
36988 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
36989
36990 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
36991 esc sequence on non ANSI terminal.
36992 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
36993
36994 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
36995 beginning of file.
36996
36997 2008-07-02 Bean <bean123ch@gmail.com>
36998
36999 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
37000 (grub_editenv_SOURCES): New variable.
37001 (pkglib_MODULES): Add loadenv.mod.
37002 (loadenv_mod_SOURCES): New variable.
37003 (loadenv_mod_CFLAGS): Likewise.
37004 (loadenv_mod_LDFLAGS): Likewise.
37005
37006 * include/grub/envblk.h: New file.
37007
37008 * util/envblk.c: New file.
37009
37010 * util/grub-editenv.c: New file.
37011
37012 * commands/loadenv.c: New file.
37013
37014 2008-07-01 Pavel Roskin <proski@gnu.org>
37015
37016 * include/multiboot2.h (struct multiboot_tag_module): Use char,
37017 not unsigned char. This fixes warnings and is consistent with
37018 other tags.
37019
37020 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
37021
37022 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
37023
37024 * term/tparm.c (analyze): Always set *popcount.
37025
37026 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
37027 cast to fix a warning.
37028
37029 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
37030 cast to suppress a warning.
37031
37032 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
37033 grub_fshelp_read_file() expects.
37034
37035 * fs/fat.c: Fix UUID calculation on big-endian systems. We
37036 write uuid as a 32-bit value in CPU byte order, so declare and
37037 use it as such.
37038
37039 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
37040 long if the format specifier expects it.
37041 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
37042 * partmap/pc.c (pc_partition_map_iterate): Likewise.
37043 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
37044 long to fix a warning.
37045 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
37046 grub_dprintf() arguments to fix warnings.
37047
37048 2008-06-30 Pavel Roskin <proski@gnu.org>
37049
37050 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
37051 install_bsd_part immediately before core.img is embedded or
37052 modified on disk. This fixes core.img verification if core.img
37053 cannot be embedded.
37054
37055 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
37056 core_path to calculate the blocklist.
37057 Patch from Javier Martín <lordhabbit@gmail.com>
37058
37059 2008-06-29 Robert Millan <rmh@aybabtu.com>
37060
37061 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
37062 block to disk block.
37063 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
37064 Patch from Niels Böhm <bitbucket@arcor.de>
37065
37066 2008-06-29 Robert Millan <rmh@aybabtu.com>
37067
37068 * util/update-grub_lib.in (font_path): Search for fonts in
37069 /boot/grub first, which is more likely to be readable (we aren't
37070 deciding where fonts live, just looking for them).
37071
37072 2008-06-26 Pavel Roskin <proski@gnu.org>
37073
37074 * util/biosdisk.c (read_device_map): Don't leave dead map
37075 entries for devices failing stat() check.
37076
37077 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
37078 core_path_dev for the core.img path on the target device.
37079
37080 2008-06-26 Robert Millan <rmh@aybabtu.com>
37081
37082 * disk/fs_uuid.c: New file.
37083 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
37084 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
37085 (fs_uuid_mod_LDFLAGS): New variables.
37086 * include/grub/disk.h (grub_disk_dev_id): Add
37087 `GRUB_DISK_DEVICE_UUID_ID'.
37088 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
37089 implement iterate().
37090
37091 2008-06-26 Robert Millan <rmh@aybabtu.com>
37092
37093 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
37094 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
37095 Linux image includes no initrd.
37096
37097 2008-06-21 Javier Martín <lordhabbit@gmail.com>
37098
37099 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
37100 call to resolve the core image location that effectively appended the
37101 name twice.
37102
37103 2008-06-21 Robert Millan <rmh@aybabtu.com>
37104
37105 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
37106 call from here ...
37107
37108 * util/grub.d/10_hurd.in: ... to here ...
37109 * util/grub.d/10_linux.in: ... and here.
37110
37111 2008-06-19 Robert Millan <rmh@aybabtu.com>
37112
37113 * kern/main.c (grub_main): Export `prefix' variable immediately
37114 after it has been set by grub_machine_set_prefix().
37115
37116 2008-06-19 Robert Millan <rmh@aybabtu.com>
37117
37118 * commands/search.c (search_label, search_fs_uuid, search_file): Print
37119 search result when not saving to variable, not the other way around.
37120 When saving to variable, abort iteration as soon as a match is found.
37121
37122 2008-06-19 Robert Millan <rmh@aybabtu.com>
37123
37124 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
37125 check for partition that provides /boot/grub. Its logic is flawed,
37126 as it prevents prepare_grub_to_access_device() from being called
37127 multiple times.
37128
37129 2008-06-19 Robert Millan <rmh@aybabtu.com>
37130
37131 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
37132 "insmod" command directly when abstraction modules are needed,
37133 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
37134 since it had already been processed).
37135
37136 2008-06-19 Pavel Roskin <proski@gnu.org>
37137
37138 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
37139 changed. This is needed in case GRUB_LIBDIR changes.
37140 * conf/i386-ieee1275.rmk: Likewise.
37141 * conf/i386-linuxbios.rmk: Likewise.
37142 * conf/i386-pc.rmk: Likewise.
37143 * conf/powerpc-ieee1275.rmk: Likewise.
37144
37145 2008-06-18 Pavel Roskin <proski@gnu.org>
37146
37147 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
37148 kernel_elf_symlist.c to symlist.c for consistency with other
37149 architectures. Update all users.
37150 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37151
37152 2008-06-18 Robert Millan <rmh@aybabtu.com>
37153
37154 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
37155 it in prefix.
37156
37157 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
37158 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
37159 a RAID device, run setup() for all members independently on whether
37160 LVM abstraction is being used.
37161 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
37162 If grub-mkimage has set `*install_dos_part == -2', don't override this
37163 value.
37164 Perform *install_dos_part adjustments independently on whether
37165 we're embedding or not.
37166 Clarify error message when image is too big for embedding.
37167 Remove duplicate *install_dos_part stanza.
37168
37169 2008-06-17 Robert Millan <rmh@aybabtu.com>
37170
37171 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
37172 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
37173 variables.
37174 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
37175 values in grub_ofconsole_normal_color and
37176 grub_ofconsole_highlight_color (they're not directly related to
37177 background and foreground).
37178 (grub_ofconsole_setcolorstate): Extract background and foreground
37179 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
37180
37181 2008-06-17 Robert Millan <rmh@aybabtu.com>
37182
37183 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
37184 /boot/grub for the check in last commit, not /boot (they could be
37185 different partitions).
37186
37187 2008-06-16 Robert Millan <rmh@aybabtu.com>
37188
37189 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
37190 asked to setup access for the same partition that provides /boot,
37191 don't bother using UUIDs since our root already has the value we
37192 want.
37193
37194 2008-06-16 Robert Millan <rmh@aybabtu.com>
37195
37196 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
37197 I2O devices.
37198 Patch from Sven Mueller <sven@debian.org>.
37199
37200 2008-06-16 Robert Millan <rmh@aybabtu.com>
37201
37202 * util/update-grub.in: Check for $EUID instead of $UID.
37203 Reported by Vincent Zweije.
37204
37205 2008-06-16 Bean <bean123ch@gmail.com>
37206
37207 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
37208 (grub_ext2_read_block): Likewise.
37209 (grub_ext2_read_inode): Likewise.
37210 (grub_ext2_mount): Likewise.
37211 (grub_ext2_close): Likewise.
37212 (grub_ext3_get_journal): Removed.
37213
37214 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
37215 (grub_reiserfs_read_symlink): Likewise.
37216 (grub_reiserfs_mount): Likewise.
37217 (grub_reiserfs_open): Likewise.
37218 (grub_reiserfs_read): Likewise.
37219 (grub_reiserfs_close): Likewise.
37220 (grub_reiserfs_get_journal): Removed.
37221
37222 * fs/fshelp.c (grub_fshelp_read): Removed.
37223 (grub_fshelp_map_block): Likewise.
37224
37225 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
37226 (grub_fshelp_journal): Likewise.
37227 (grub_fshelp_read): Likewise.
37228 (grub_fshelp_map_block): Likewise.
37229
37230 2008-06-16 Pavel Roskin <proski@gnu.org>
37231
37232 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
37233 floating point anymore.
37234 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
37235
37236 2008-06-15 Pavel Roskin <proski@gnu.org>
37237
37238 * commands/ls.c (grub_ls_list_files): Use integer calculations
37239 for human readable format, avoid floating point use.
37240 * kern/misc.c (grub_ftoa): Remove.
37241 (grub_vsprintf): Remove floating point support.
37242
37243 2008-06-15 Robert Millan <rmh@aybabtu.com>
37244
37245 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
37246 devices.
37247 Reported by Max Vozeler.
37248
37249 2008-06-15 Robert Millan <rmh@aybabtu.com>
37250
37251 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
37252 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
37253 skipped later.
37254 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
37255 the beginning of the prefix.
37256
37257 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
37258 It is assumed that if we have a memdisk, grub-mkimage has set
37259 grub_prefix to include the "(memdisk)" drive in it.
37260
37261 2008-06-15 Robert Millan <rmh@aybabtu.com>
37262
37263 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
37264 Initialize keyboard controller after registering the terminal, so that
37265 grub_printf() can be called from grub_keyboard_controller_init().
37266
37267 2008-06-15 Robert Millan <rmh@aybabtu.com>
37268
37269 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
37270 extent-btree which is written as big endian on disk.
37271 Reported by Alain Greppin <al@chilibi.org>.
37272
37273 2008-06-14 Robert Millan <rmh@aybabtu.com>
37274
37275 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
37276 * util/i386/pc/grub-install.in (modules): Likewise.
37277
37278 2008-06-13 Pavel Roskin <proski@gnu.org>
37279
37280 * commands/ls.c (grub_ls_list_files): Fix format warnings.
37281
37282 2008-06-13 Bean <bean123ch@gmail.com>
37283
37284 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
37285
37286 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
37287
37288 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
37289 to indicate sparse block.
37290
37291 2008-06-12 Pavel Roskin <proski@gnu.org>
37292
37293 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
37294 number, grub_fshelp_read() does it for us.
37295
37296 * fs/fshelp.c (grub_fshelp_read): New function. Implement
37297 linear disk read with journal translation.
37298 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
37299 * include/grub/fshelp.h: Declare grub_fshelp_read().
37300
37301 2008-06-09 Pavel Roskin <proski@gnu.org>
37302
37303 * fs/minix.c (grub_minix_mount): Handle error reading
37304 superblock.
37305
37306 2008-06-08 Robert Millan <rmh@aybabtu.com>
37307
37308 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
37309 don't append the RAID prefix afterwards.
37310 Reported by Clint Adams.
37311
37312 2008-06-08 Robert Millan <rmh@aybabtu.com>
37313
37314 Based on description from Pavel:
37315 * kern/disk.c (grub_disk_check_range): Rename to ...
37316 (grub_disk_adjust_range): ... this. Add a comment explaining the
37317 tasks performed by this function.
37318
37319 2008-06-08 Robert Millan <rmh@aybabtu.com>
37320
37321 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
37322 `num_serial' (for consistency with other variables).
37323 (struct grub_ntfs_data): Add `uuid' member.
37324 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
37325 (grub_ntfs_uuid): New function.
37326 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
37327
37328 2008-06-07 Pavel Roskin <proski@gnu.org>
37329
37330 * util/biosdisk.c (open_device): Revert last change to the
37331 function, it broke installation. The sector needs to be
37332 different dependent on which device is opened.
37333
37334 2008-06-06 Robert Millan <rmh@aybabtu.com>
37335
37336 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
37337 rest of GRUB, and breakage doesn't happen if its value were modified.
37338
37339 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37340 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
37341 a constant (same value).
37342 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
37343 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
37344
37345 2008-06-06 Robert Millan <rmh@aybabtu.com>
37346
37347 * util/biosdisk.c (open_device): Do not modify sector offset when
37348 accessing a partition. kern/disk.c already handles this for us.
37349
37350 2008-06-06 Robert Millan <rmh@aybabtu.com>
37351
37352 * util/grub-emu.c (grub_machine_init): Move code in this function from
37353 here ...
37354 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
37355 segfault in case grub_printf() is called).
37356
37357 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
37358 grub_probe. Update all users not to explicitly add it again.
37359 (grub_device): New variable; contains corresponding device for grubdir.
37360 (fs_module, partmap_module, devabstraction_module): Pass
37361 `--device ${grub_device}' to grub_probe to avoid traversing /dev
37362 every time.
37363
37364 2008-06-05 Robert Millan <rmh@aybabtu.com>
37365
37366 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
37367 is found, print it (same layout as with labels).
37368
37369 2008-06-04 Robert Millan <rmh@aybabtu.com>
37370
37371 * util/biosdisk.c (get_drive): Rename to ...
37372 (find_grub_drive): ... this. Update all users.
37373
37374 (get_os_disk): Rename to ...
37375 (convert_system_partition_to_system_disk): ... this. Update all users.
37376
37377 (find_drive): Rename to ...
37378 (find_system_device): ... this. Update all users.
37379
37380 2008-06-04 Robert Millan <rmh@aybabtu.com>
37381
37382 * util/biosdisk.c (get_os_disk): Handle IDA devices.
37383 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37384 (make_device_map): Likewise.
37385
37386 2008-06-01 Robert Millan <rmh@aybabtu.com>
37387
37388 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
37389 before dereferencing it.
37390
37391 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
37392 union with fat12/fat16-specific ones. Add some new fields, including
37393 `num_serial' for both versions.
37394 (struct grub_fat_data): Add `uuid' member.
37395 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
37396 names. Initialize `data->uuid' using `num_serial'.
37397 (grub_fat_uuid): New function.
37398 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
37399
37400 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
37401 (grub_reiserfs_uuid): New function.
37402 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
37403 member.
37404
37405 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
37406 (grub_xfs_uuid): New function.
37407 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
37408
37409 2008-06-01 Robert Millan <rmh@aybabtu.com>
37410
37411 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
37412 code that is backward compatible with pre-uuid search command.
37413
37414 2008-05-31 Robert Millan <rmh@aybabtu.com>
37415
37416 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
37417 floppies after everything else, to ensure floppy drive isn't accessed
37418 unnecessarily (patch from Bean).
37419
37420 2008-05-31 Robert Millan <rmh@aybabtu.com>
37421
37422 * commands/search.c (search_label, search_fs_uuid, search_file): Do
37423 not print device names when we were asked to set a variable.
37424
37425 2008-05-31 Robert Millan <rmh@aybabtu.com>
37426
37427 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
37428 using "cursor-on" and "cursor-off" commands (understood at least by
37429 the Open Firmware flavour on OLPC).
37430
37431 2008-05-31 Michael Gorven <michael@gorven.za.net>
37432
37433 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
37434 on and off sequences.
37435
37436 2008-05-31 Robert Millan <rmh@aybabtu.com>
37437
37438 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
37439 * util/update-grub.in: Likewise.
37440
37441 2008-05-30 Pavel Roskin <proski@gnu.org>
37442
37443 * util/biosdisk.c (linux_find_partition): Simplify logic and
37444 make the code more universal. Keep special processing for
37445 devfs, but use a simple rule for all other devices. If the
37446 device ends with a number, append 'p' and the partition number.
37447 Otherwise, append only the partition number.
37448
37449 2008-05-30 Robert Millan <rmh@aybabtu.com>
37450
37451 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
37452 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
37453 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
37454 the `root' parameter to Linux.
37455
37456 2008-05-30 Robert Millan <rmh@aybabtu.com>
37457
37458 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
37459 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
37460 --fs_uuid with --fs-uuid.
37461 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
37462 all filesystems support them).
37463
37464 2008-05-30 Robert Millan <rmh@aybabtu.com>
37465
37466 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
37467 grub_printf() flags, since we're printing in units of 2 bytes.
37468
37469 2008-05-30 Robert Millan <rmh@aybabtu.com>
37470
37471 * util/grub.d/00_header.in: Remove obsolete comment referencing
37472 convert_system_path_to_grub_path().
37473 * util/update-grub.in: Likewise.
37474 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
37475 (convert_system_path_to_grub_path): Add a warning message explaining
37476 that this function is deprecated. Rely on is_path_readable_by_grub()
37477 for the readability checks.
37478 (font_path): Use is_path_readable_by_grub() for the readability
37479 check rather than convert_system_path_to_grub_path().
37480
37481 2008-05-30 Robert Millan <rmh@aybabtu.com>
37482
37483 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
37484 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
37485 converting it first.
37486 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
37487 grub.cfg for access to font file, and afterwards call it again to set
37488 the root device.
37489
37490 2008-05-30 Robert Millan <rmh@aybabtu.com>
37491
37492 * commands/search.c (options): Add --fs_uuid option.
37493 (search_fs_uuid): New function.
37494 (grub_cmd_search): Fix --set argument passing.
37495 Use search_fs_uuid() when requested via --fs_uuid.
37496 (grub_search_init): Update help message.
37497 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
37498 and redeclare it as an array of 16-bit words.
37499 (grub_ext2_uuid): New function.
37500 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
37501 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
37502 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
37503 (GRUB_DEVICE_BOOT_UUID): New variables.
37504 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
37505 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
37506 whenever possible.
37507 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
37508 just assume `root' variable has the right value.
37509 * util/grub.d/10_linux.in: Likewise.
37510 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
37511 via PRINT_FS_UUID.
37512 (main): Recognise `-t fs_uuid' argument.
37513
37514 2008-05-30 Robert Millan <rmh@aybabtu.com>
37515
37516 * util/biosdisk.c (map): Redefine structure to hold information
37517 about GRUB drive name.
37518 (get_drive): Reimplement without assuming (and verifying) BIOS-like
37519 drive names.
37520 (call_hook): Remove.
37521 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
37522 member. Assume drive has partitions.
37523 (grub_util_biosdisk_open): Access device names via `.device' struct
37524 member.
37525 (open_device): Likewise.
37526 (find_drive): Likewise.
37527 (read_device_map): Adjust map[] usage to match the new struct
37528 definition. Don't check for duplicates (still possible, but not cheap
37529 anymore).
37530 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
37531 (make_device_name): Remove assumption of BIOS-like drive names.
37532
37533 2008-05-30 Pavel Roskin <proski@gnu.org>
37534
37535 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
37536 compiling execute.c doesn't need grub_script.tab.h anymore.
37537 (normal/command.c_DEPENDENCIES): Likewise.
37538 (normal/function.c_DEPENDENCIES): Likewise.
37539 * conf/i386-ieee1275.rmk: Likewise.
37540 * conf/i386-linuxbios.rmk: Likewise.
37541 * conf/i386-pc.rmk: Likewise.
37542 * conf/powerpc-ieee1275.rmk: Likewise.
37543 * conf/sparc64-ieee1275.rmk: Likewise.
37544
37545 2008-05-29 Pavel Roskin <proski@gnu.org>
37546
37547 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
37548 when scanning metadata for volume group name.
37549
37550 * include/grub/script.h: Don't include grub_script.tab.h. It's
37551 a generated file, which may only be included from the files with
37552 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
37553 use union YYSTYPE, as the later allows forward declaration.
37554 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
37555
37556 2008-05-29 Robert Millan <rmh@aybabtu.com>
37557
37558 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
37559 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
37560 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
37561 (grub_console_checkkey): Add grub_dprintf() call to report unknown
37562 scan codes.
37563
37564 2008-05-29 Robert Millan <rmh@aybabtu.com>
37565
37566 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
37567 control key combinations.
37568
37569 2008-05-29 Robert Millan <rmh@aybabtu.com>
37570
37571 * util/powerpc/ieee1275/grub-install.in: Move from here ...
37572 * util/ieee1275/grub-install.in: ... to here.
37573 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
37574 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
37575 (grub_install_SOURCES): Likewise.
37576
37577 2008-05-29 Robert Millan <rmh@aybabtu.com>
37578
37579 * fs/affs.c: Update copyright year.
37580 * fs/ext2.c: Likewise.
37581 * fs/fshelp.c: Likewise.
37582 * fs/hfsplus.c: Likewise.
37583 * fs/ntfs.c: Likewise.
37584 * fs/xfs.c: Likewise.
37585 * include/grub/fshelp.h: Likewise.
37586 * util/grub-mkdevicemap.c: Likewise.
37587
37588 2008-05-28 Robert Millan <rmh@aybabtu.com>
37589
37590 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
37591 might need to be fatfs to support some firmware implementations
37592 (e.g. OFW or EFI).
37593
37594 2008-05-28 Robert Millan <rmh@aybabtu.com>
37595
37596 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
37597 devices.
37598 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37599 (make_device_map): Likewise.
37600
37601 2008-05-20 Bean <bean123ch@gmail.com>
37602
37603 * fs/fshelp.c (grub_fshelp_map_block): New function.
37604 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
37605 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
37606
37607 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
37608 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
37609 (grub_fshelp_journal): New structure.
37610 (grub_fshelp_map_block): New function prototype.
37611 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
37612 (grub_fshelp_map_block): Likewise.
37613
37614 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
37615 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
37616 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
37617 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
37618 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
37619 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
37620 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
37621 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
37622 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
37623 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
37624 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
37625 (grub_ext2_sblock): New members for journal support.
37626 (grub_ext3_journal_header): New structure.
37627 (grub_ext3_journal_revoke_header): Likewise.
37628 (grub_ext3_journal_block_tag): Likewise.
37629 (grub_ext3_journal_sblock): Likewise.
37630 (grub_fshelp_node): New members logfile and journal.
37631 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
37632 grub_fshelp_map_block to get real block number.
37633 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
37634 number.
37635 (grub_ext2_read_inode): Likewise.
37636 (grub_ext3_get_journal): New function.
37637 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
37638 (grub_ext2_close): Release memory used by journal.
37639
37640 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
37641 (REISERFS_MAGIC_DESC_BLOCK): New macro.
37642 (grub_reiserfs_transaction_header): Renamed to
37643 grub_reiserfs_description_block, replace field data with real_blocks.
37644 (grub_reiserfs_commit_block): New structure.
37645 (grub_reiserfs_data): New member journal.
37646 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
37647 number.
37648 (grub_reiserfs_read_symlink): Likewise.
37649 (grub_reiserfs_iterate_dir): Likewise.
37650 (grub_reiserfs_open): Likewise.
37651 (grub_reiserfs_read): Likewise.
37652 (grub_reiserfs_get_journal): New function.
37653 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
37654 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
37655 using grub_reiserfs_get_journal.
37656 (grub_reiserfs_close): Release memory used by journal.
37657
37658 * fs/affs.c (grub_affs_read_block): Change block type to
37659 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
37660
37661 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
37662
37663 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
37664
37665 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
37666
37667 * fs/udf.c (grub_udf_read_block): Change block type to
37668 grub_disk_addr_t. Use type cast to avoid warning.
37669
37670 * fs/xfs.c (grub_xfs_read_block): Likewise.
37671
37672 2008-05-16 Christian Franke <franke@computer.org>
37673
37674 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
37675 to ensure that break with ESC will always work.
37676 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
37677 Remove ESC from keyboard queue.
37678
37679 2008-05-16 Christian Franke <franke@computer.org>
37680
37681 * util/biosdisk.c: [__CYGWIN__] Add includes.
37682 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
37683 (get_os_disk): Move variable declarations to OS specific
37684 parts to avoid warning.
37685 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
37686 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
37687 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
37688 Cygwin.
37689 * util/getroot.c: [__CYGWIN__] Add includes.
37690 (strip_extra_slashes): Fix "/" case.
37691 [__CYGWIN__] (get_win32_path): New function.
37692 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
37693 [__CYGWIN__] (find_root_device): Disable.
37694 [__CYGWIN__] (get_bootsec_serial): New function.
37695 [__CYGWIN__] (find_cygwin_root_device): Likewise.
37696 [__linux__] (grub_guess_root_device): Add early returns to simplify
37697 structure.
37698 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
37699 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
37700 check for Linux only.
37701
37702 2008-05-15 Bean <bean123ch@gmail.com>
37703
37704 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
37705 keyboard hang problem in apple's intel mac.
37706
37707 2008-05-09 Robert Millan <rmh@aybabtu.com>
37708
37709 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
37710 devices.
37711 * util/grub-mkdevicemap.c (get_virtio_disk_name)
37712 (make_device_map): Likewise.
37713 Reported by Aurelien Jarno <aurel32@debian.org>
37714
37715 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
37716
37717 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
37718 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
37719 (make_device_map): Output entries for xvd type disks.
37720
37721 2008-05-07 Robert Millan <rmh@aybabtu.com>
37722
37723 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
37724 devices.
37725 * util/grub-mkdevicemap.c (get_cciss_disk_name)
37726 (make_device_map): Likewise.
37727 Reported by Roland Dreier <rdreier@cisco.com>
37728
37729 2008-05-07 Robert Millan <rmh@aybabtu.com>
37730
37731 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
37732 grub_strstr() call. Correct a few mistakes in failure path handling.
37733
37734 2008-05-06 Robert Millan <rmh@aybabtu.com>
37735
37736 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
37737 Do not print a trailing slash (therefore, the root directory is an
37738 empty string).
37739 (convert_system_path_to_grub_path): Do not remove trailing slash
37740 from make_system_path_relative_to_its_root() output.
37741
37742 * util/i386/pc/grub-install.in: Add trailing slash to output from
37743 make_system_path_relative_to_its_root().
37744
37745 2008-05-06 Robert Millan <rmh@aybabtu.com>
37746
37747 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
37748 ensures that output lines aren't intermangled with those sent to
37749 stderr (via grub_util_info()).
37750 * util/grub-probe.c (grub_refresh): Likewise.
37751 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
37752
37753 2008-05-05 Christian Franke <franke@computer.org>
37754
37755 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
37756 Add Cygwin device names.
37757 (get_ide_disk_name) [__CYGWIN__]: Likewise.
37758 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
37759 (check_device): Return error instead of success on empty name.
37760 (make_device_map): Move label inside linux specific code to
37761 prevent compiler warning.
37762
37763 2008-04-30 Robert Millan <rmh@aybabtu.com>
37764
37765 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
37766 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
37767 first boot option.
37768 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
37769
37770 2008-04-29 Robert Millan <rmh@aybabtu.com>
37771
37772 * docs/grub.cfg: New file (example GRUB configuration).
37773
37774 2008-04-26 Robert Millan <rmh@aybabtu.com>
37775
37776 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
37777 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
37778 and `disk/ieee1275/nand.c'.
37779
37780 2008-04-25 Bean <bean123ch@gmail.com>
37781
37782 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
37783 i386-linuxbios.
37784
37785 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
37786 change the buffer size to 4096 for cdrom device.
37787
37788 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
37789 and nand.mod.
37790 (_linux_mod_SOURCES): New variable.
37791 (_linux_mod_CFLAGS): Likewise.
37792 (_linux_mod_LDFLAGS): Likewise.
37793 (linux_mod_SOURCES): Likewise.
37794 (linux_mod_CFLAGS): Likewise.
37795 (linux_mod_LDFLAGS): Likewise.
37796 (nand_mod_SOURCES): Likewise.
37797 (nand_mod_CFLAGS): Likewise.
37798 (nand_mod_LDFLAGS): Likewise.
37799
37800 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
37801 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
37802 type property. (nand device in olpc don't have this property)
37803
37804 * include/grub/disk.h (grub_disk_dev_id): New macro
37805 GRUB_DISK_DEVICE_NAND_ID.
37806
37807 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
37808 function prototype.
37809 (grub_rescue_cmd_initrd): Likewise.
37810
37811 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
37812 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
37813 ofw_cif_handler and ofw_idt, adjust padding number.
37814
37815 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
37816 GRUB_MACHINE_IEEE1275 is defined.
37817
37818 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
37819 Use NESTED_FUNC_ATTR attribute on the hook parameter.
37820
37821 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
37822 on nested function heap_init.
37823 (grub_upper_mem): New variable for i386-ieee1275.
37824 (grub_get_extended_memory): New function for i386-ieee1275.
37825 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
37826
37827 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
37828 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
37829 property.
37830
37831 * loader/i386/ieee1275/linux.c: New file.
37832
37833 * loader/i386/ieee1275/linux_normal.c: New file.
37834
37835 * disk/ieee1275/nand.c: New file.
37836
37837 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
37838
37839 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
37840 value.
37841 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
37842
37843 2008-04-18 Robert Millan <rmh@aybabtu.com>
37844
37845 Restructures early code path on ieee1275 to unify grub_main() as
37846 the first C function that is executed in every platform.
37847
37848 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
37849 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
37850 cmain().
37851 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
37852 * kern/ieee1275/cmain.c (cmain): Rename to ...
37853 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
37854 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
37855 at the beginning.
37856
37857 2008-04-18 Robert Millan <rmh@aybabtu.com>
37858
37859 * util/update-grub.in: Fix syntax error when setting
37860 `GRUB_PRELOAD_MODULES'.
37861 Reported by Stephane Chazelas <stephane@artesyncp.com>
37862
37863 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
37864
37865 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
37866 section into account, newer toolchains generate unique build ids
37867 * configure.ac: remove the test for --build-id=none acceptance,
37868 we want build ids to be preserved
37869 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
37870 far from other sections don't cause the raw binary images grow
37871 size
37872
37873 2008-04-15 Robert Millan <rmh@aybabtu.com>
37874
37875 * disk/lvm.c: Update copyright year.
37876 * kern/misc.c: Likewise.
37877
37878 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37879
37880 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
37881 there is no memory left for physical volume name.
37882
37883 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37884
37885 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
37886 volume name mapping to support bigger than 9 character names properly.
37887
37888 2008-04-13 Robert Millan <rmh@aybabtu.com>
37889
37890 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
37891 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
37892
37893 2008-04-13 Christian Franke <franke@computer.org>
37894
37895 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
37896 to create a floppy emulation boot CD when non emulation mode
37897 does not work.
37898 Enable Joliet CD filesystem extension.
37899
37900 2008-04-13 Robert Millan <rmh@aybabtu.com>
37901
37902 * kern/misc.c (grub_strncat): Fix off-by-one error.
37903 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
37904
37905 * kern/env.c (grub_env_context_close): Clear current context, not
37906 previous one.
37907 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
37908
37909 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
37910
37911 2008-04-13 Robert Millan <rmh@aybabtu.com>
37912
37913 Improve robustness when handling LVM.
37914
37915 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
37916 (and leave `*p' unmodified).
37917 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
37918 through it.
37919 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
37920 iterating through it.
37921 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
37922 through it.
37923 (grub_lvm_scan_device): Check the return value (and fail gracefully
37924 when due) on each grub_lvm_getvalue() or grub_strstr() call.
37925 Don't assume `vg->pvs != NULL' when iterating through it.
37926
37927 2008-04-13 Robert Millan <rmh@aybabtu.com>
37928
37929 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
37930 * genmk.rb (partmap): New variable.
37931 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
37932 (#{partmap}): New target rule.
37933 * genpartmaplist.sh: New file.
37934 * Makefile.in (pkglib_DATA): Add partmap.lst.
37935 (partmap.lst): New target rule.
37936 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
37937 modules (including all partition maps), instead of preloading them.
37938
37939 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
37940
37941 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
37942 `linux-boot-prober' (if installed) to detect other operating
37943 systems which are installed on the computer and add them to
37944 the boot menu.
37945 * conf/common.rmk: Build and install 30_os-prober.
37946
37947 2008-04-12 Robert Millan <rmh@aybabtu.com>
37948
37949 * kern/powerpc/ieee1275/init.c: Move from here ...
37950 * kern/ieee1275/init.c: ... to here. Update all users.
37951
37952 * kern/powerpc/ieee1275/cmain.c: Move from here ...
37953 * kern/ieee1275/cmain.c: ... to here. Update all users.
37954
37955 * kern/powerpc/ieee1275/openfw.c: Move from here ...
37956 * kern/ieee1275/openfw.c: ... to here. Update all users.
37957
37958 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
37959 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
37960
37961 2008-04-10 Pavel Roskin <proski@gnu.org>
37962
37963 * configure.ac: Always use "_cv_" in cache variables for
37964 compatibility with Autoconf 2.62.
37965
37966 2008-04-07 Robert Millan <rmh@aybabtu.com>
37967
37968 Revert grub/machine/init.h addition by Pavel (since it breaks on
37969 i386-ieee1275 and others):
37970 * util/i386/pc/misc.c: Remove grub/machine/init.h.
37971 * util/powerpc/ieee1275/misc.c: Likewise.
37972
37973 2008-04-07 Robert Millan <rmh@aybabtu.com>
37974
37975 * util/grub-probe.c (probe): Improve error message.
37976
37977 2008-04-07 Robert Millan <rmh@aybabtu.com>
37978
37979 * util/biosdisk.c (read_device_map): Skip devices that don't exist
37980 (this prevents the presence of a bogus entry from ruining the whole
37981 thing).
37982
37983 2008-04-06 Pavel Roskin <proski@gnu.org>
37984
37985 * util/biosdisk.c: Include grub/util/biosdisk.h.
37986 * util/grub-fstest.c (execute_command): Make static.
37987 * util/grub-mkdevicemap.c (check_device): Likewise.
37988 * util/i386/pc/misc.c: Include grub/machine/init.h.
37989 * util/powerpc/ieee1275/misc.c: Likewise.
37990 * util/lvm.c: Include grub/util/lvm.h.
37991 * util/misc.c: Include grub/kernel.h, grub/misc.h and
37992 grub/cache.h.
37993 * util/raid.c: Include grub/util/raid.h.
37994 (grub_util_getdiskname): Make static.
37995
37996 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
37997 grub_hostfs_fini(), as they are called from grub_init_all() and
37998 grub_fini_all() respectively. This fixes an infinite loop in
37999 grub-fstest due to double registration of hostfs.
38000 Reported by Christian Franke <Christian.Franke@t-online.de>
38001
38002 2008-04-05 Pavel Roskin <proski@gnu.org>
38003
38004 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
38005 all 8 functions. Otherwise, probe function 0 only.
38006
38007 2008-04-04 Pavel Roskin <proski@gnu.org>
38008
38009 * commands/lspci.c (grub_lspci_iter): Print the bus number
38010 correctly.
38011
38012 * commands/lspci.c (grub_pci_classes): Fix typos.
38013 (grub_lspci_iter): Don't print func twice. Print vendor ID
38014 before device ID, as it's normally done.
38015
38016 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
38017 Fix signedness warnings.
38018 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
38019 Likewise.
38020 * util/ieee1275/get_disk_name.c: Include config.h so that
38021 _GNU_SOURCE is defined and getline() is declared. Mark an
38022 unused argument as such. Fix a signedness warning.
38023
38024 2008-04-02 Pavel Roskin <proski@gnu.org>
38025
38026 * genkernsyms.sh.in: Use more robust assignments for CC and
38027 srcdir. Quote srcdir.
38028 * gensymlist.sh.in: Likewise. Assert at the compile time that
38029 the symbol table is not empty.
38030
38031 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
38032 * fs/cpio.c (grub_cpio_read): Likewise.
38033
38034 2008-04-01 Pavel Roskin <proski@gnu.org>
38035
38036 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
38037 * disk/host.c (grub_host_open): Likewise.
38038 * disk/loopback.c (grub_loopback_open): Likewise.
38039 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
38040 disk->id as in disk/host.c, not a multi-character constant.
38041
38042 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
38043 later is obsolete, potentially dangerous and sets a bad example.
38044 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
38045 * util/misc.c (grub_util_get_image_size): Likewise.
38046
38047 * disk/loopback.c (options): Improve help for "--partitions".
38048
38049 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
38050 options to align them with the short options, e.g. "echo -e".
38051
38052 2008-03-31 Bean <bean123ch@gmail.com>
38053
38054 * video/reader/png.c (grub_png_data): New member is_16bit and
38055 image_data.
38056 (grub_png_decode_image_header): Detect 16 bit png image.
38057 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
38058 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
38059 (grub_video_reader_png): Release memory occupied by image_data.
38060
38061 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
38062 4096 bytes.
38063 (grub_nfs_mount): Skip the test for sector per cluster.
38064
38065 * include/grub/ntfs.h (MAX_SPC): Removed.
38066
38067 2008-03-31 Bean <bean123ch@gmail.com>
38068
38069 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
38070 (grub_probe_SOURCES): Add fs/afs.c.
38071 (grub_fstest_SOURCES): Likewise.
38072 (afs_mod_SOURCES): New variable.
38073 (afs_mod_CFLAGS): Likewise.
38074 (afs_mod_LDFLAGS): Likewise.
38075
38076 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
38077 (grub_emu_SOURCES): Likewise.
38078
38079 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38080
38081 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38082
38083 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38084
38085 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38086
38087 * fs/afs.c: New file.
38088
38089 2008-03-30 Pavel Roskin <proski@gnu.org>
38090
38091 * disk/host.c: Include grub/misc.h to fix a warning.
38092 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
38093 warnings about implicit declarations.
38094
38095 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
38096 variable.
38097 * include/grub/i386/loader.h: Change declaration of
38098 grub_linux_boot() to match what grub_loader_set() expects.
38099 * util/getroot.c (grub_guess_root_device): Return const char* to
38100 fix a warning.
38101 * util/grub-probe.c (probe): Fix a warning about uninitialized
38102 abstraction_name variable.
38103 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
38104 second argument as unused to fix a warning.
38105
38106 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
38107 missing grub_error() call.
38108
38109 * util/update-grub_lib.in: Define datarootdir, since Autoconf
38110 2.60 and newer uses it to define datadir.
38111
38112 * commands/sleep.c: Fix warning about implicit declaration.
38113 * disk/memdisk.c: Likewise.
38114 * loader/aout.c: Likewise.
38115 * loader/i386/bsd_normal.c: Likewise.
38116 * util/grub-probe.c: Likewise.
38117
38118 * commands/i386/cpuid.c (has_longmode): Make static.
38119 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
38120 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
38121
38122 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
38123 GDT. This is more robust, as %ds can change.
38124 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
38125 calling real_to_prot().
38126 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
38127
38128 2008-03-28 Pavel Roskin <proski@gnu.org>
38129
38130 * kern/i386/pc/startup.S: Assert that uncompressed functions
38131 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
38132 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
38133 code, as they push parts of the code (error handlers) beyond
38134 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
38135 code as correctness and size.
38136
38137 2008-03-28 Pavel Roskin <proski@gnu.org>
38138
38139 * kern/i386/pc/startup.S
38140 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
38141 data block address to the real mode, keep offset minimal. This
38142 works around a bug in AWARD BIOS on old Athlon systems, which
38143 makes CD detection hang.
38144
38145 2008-03-26 Pavel Roskin <proski@gnu.org>
38146
38147 * normal/color.c (grub_parse_color_name_pair): Make `name' a
38148 const.
38149 * include/grub/normal.h: Add grub_parse_color_name_pair()
38150 declaration.
38151
38152 2008-03-24 Bean <bean123ch@gmail.com>
38153
38154 * disk/i386/pc/biosdisk.c (cd_start): Removed.
38155 (cd_count): Removed.
38156 (cd_drive): New variable.
38157 (grub_biosdisk_get_drive): Don't check for (cdN) device.
38158 (grub_biosdisk_call_hook): Likewise.
38159 (grub_biosdisk_iterate): Change cdrom detection method.
38160 (grub_biosdisk_open): Replace cd_start with cd_drive.
38161 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
38162 detect cdrom device.
38163
38164 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
38165 Removed.
38166 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
38167 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
38168 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
38169 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
38170 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
38171 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
38172 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
38173 (grub_biosdisk_cdrp): New structure.
38174 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
38175
38176 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
38177
38178 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
38179 device.
38180
38181 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
38182 New function.
38183
38184 2008-03-20 Robert Millan <rmh@aybabtu.com>
38185
38186 Remove 2 TiB limit in ata.mod.
38187 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
38188 (grub_ata_dumpinfo): Print sector count with 0x%llx.
38189 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
38190 grub_uint64_t instead of grub_uint32_t.
38191
38192 2008-03-05 Bean <bean123ch@gmail.com>
38193
38194 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
38195 (grub_multiboot): Set boot device.
38196
38197 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
38198
38199 2008-03-02 Bean <bean123ch@gmail.com>
38200
38201 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
38202 symlink_buffer.
38203
38204 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
38205
38206 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
38207 texinfo.tex.
38208
38209 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
38210 modified.
38211
38212 * docs/fdl.texi: New file.
38213
38214 * docs/mdate-sh: New file. Copied from gnulib.
38215 * docs/texinfo.tex: Likewise.
38216
38217 * config.guess: Updated from gnulib.
38218 * install-sh: Likewise.
38219
38220 2008-02-28 Robert Millan <rmh@aybabtu.com>
38221
38222 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
38223 (aout_mod_SOURCES): New variable.
38224 (aout_mod_CFLAGS): Likewise.
38225 (aout_mod_LDFLAGS): Likewise.
38226
38227 * conf/i386-ieee1275.rmk: Likewise.
38228
38229 2008-02-28 Robert Millan <rmh@aybabtu.com>
38230
38231 * util/update-grub.in: Reorganise terminal validity check. Accept
38232 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
38233 Based on suggestion by Franklin PIAT.
38234
38235 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
38236
38237 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
38238 function.
38239 * util/getroot.c (grub_util_check_block_device): New function that
38240 returns the given argument if it is a block device and returns NULL else.
38241 * util/grub-probe.c (argument_is_device): New variable.
38242 (probe): Promote device_name from a variable to an argument. Receive
38243 device_name from grub_util_check_block_device() if path is NULL and from
38244 grub_guess_root_device() else. Do not free() device_name anymore.
38245 (options): Introduce new parameter '-d, --device'.
38246 (main): Add description of the new parameter to the help screen.
38247 Rename path variable to argument. Set argument_is_device if the '-d'
38248 option is given. Pass argument to probe() depending on
38249 argument_is_device.
38250
38251 2008-02-24 Bean <bean123ch@gmail.com>
38252
38253 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
38254 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
38255 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
38256 (GRUB_ISO9660_VOLDESC_PART): Likewise.
38257 (GRUB_ISO9660_VOLDESC_END): Likewise.
38258 (grub_iso9660_primary_voldesc): New member escape.
38259 (grub_iso9660_data): New member joliet.
38260 (grub_iso9660_convert_string): New function.
38261 (grub_iso9660_mount): Detect joliet extension.
38262 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
38263 (grub_iso9660_iso9660_label): Likewise.
38264
38265 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
38266 (grub_setup_SOURCES): Add fs/udf.c.
38267 (grub_fstest_SOURCES): Likewise.
38268 (udf_mod_SOURCES): New variable.
38269 (udf_mod_CFLAGS): Likewise.
38270 (udf_mod_LDFLAGS): Likewise.
38271
38272 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
38273 (grub_emu_SOURCES): Likewise.
38274
38275 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38276
38277 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38278
38279 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38280
38281 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38282
38283 * fs/udf.c: New file.
38284
38285 2008-02-24 Robert Millan <rmh@aybabtu.com>
38286
38287 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
38288 (normal/lexer.c_DEPENDENCIES): New variables.
38289 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38290 (normal/lexer.c_DEPENDENCIES): Likewise.
38291 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
38292 (normal/lexer.c_DEPENDENCIES): Likewise.
38293 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
38294 (normal/lexer.c_DEPENDENCIES): Likewise.
38295 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38296 (normal/lexer.c_DEPENDENCIES): Likewise.
38297 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38298 (normal/lexer.c_DEPENDENCIES): Likewise.
38299
38300 2008-02-23 Robert Millan <rmh@aybabtu.com>
38301
38302 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
38303 since they were intended to be in hex. This didn't break previously
38304 because of a bug in gpt_partition_map_iterate() (see below).
38305
38306 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
38307 when checking the validity of GPT header.
38308 Remove `partno', since it always provides the same information as `i'.
38309
38310 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
38311
38312 * include/grub/efi/time.h: Fix a wrong comment.
38313
38314 2008-02-19 Pavel Roskin <proski@gnu.org>
38315
38316 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
38317 message.
38318
38319 2008-02-19 Bean <bean123ch@gmail.com>
38320
38321 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
38322 (aout_mod_SOURCES): New variable.
38323 (aout_mod_CFLAGS): Likewise.
38324 (aout_mod_LDFLAGS): Likewise.
38325 (_bsd_mod_SOURCES): New variable.
38326 (_bsd_mod_CFLAGS): Likewise.
38327 (_bsd_mod_LDFLAGS): Likewise.
38328 (bsd_mod_SOURCES): New variable.
38329 (bsd_mod_CFLAGS): Likewise.
38330 (bsd_mod_LDFLAGS): Likewise.
38331
38332 * include/grub/aout.h: New file.
38333
38334 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
38335
38336 * include/grub/i386/bsd.h: New file.
38337
38338 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
38339 to make it public.
38340
38341 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
38342 function is called, so that it's possible to change it inside the hook.
38343 (grub_elf64_load): Likewise.
38344 (grub_elf_file): Don't close the file if elf header is not found.
38345 (grub_elf_close): Close the file if grub_elf_file fails (The new
38346 grub_elf_file won't close it).
38347 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
38348 (grub_elf64_size): Likewise.
38349
38350 * kern/i386/loader.S (grub_unix_real_boot): New function.
38351
38352 * loader/aout.c: New file.
38353
38354 * loader/i386/bsd.c: New file.
38355
38356 * loader/i386/bsd_normal.c: New file.
38357
38358 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
38359
38360 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
38361 can test other formats.
38362
38363 2008-02-19 Robert Millan <rmh@aybabtu.com>
38364
38365 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
38366 (grub_gpt_partition_type_empty): Redefine with macro from
38367 `<grub/gpt_partition.h>'.
38368 (gpt_partition_map_iterate): Adjust partition type comparison.
38369
38370 Export `entry' as partmap-specific `part.data' struct.
38371 (grub_gpt_header, grub_gpt_partentry): Move from here ...
38372
38373 * include/grub/gpt_partition.h (grub_gpt_header)
38374 (grub_gpt_partentry): ... to here (new file).
38375
38376 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
38377
38378 (grub_gpt_partition_type_bios_boot): New const variable, defined
38379 with macro from `<grub/gpt_partition.h>'.
38380
38381 (setup): Replace `first_start' with `embed_region', which keeps
38382 track of the embed region (and is partmap-agnostic).
38383
38384 Replace find_first_partition_start() with find_usable_region(),
38385 which finds a usable region for embedding using partmap-specific
38386 knowledge (supports PC/MSDOS and GPT).
38387
38388 Fix all assumptions that the embed region start at sector 1, using
38389 `embed_region.start' from now on. Similarly, use `embed_region.end'
38390 rather than `first_start' to calculate available size.
38391
38392 In grub_util_info() message, replace "into after the MBR" with an
38393 indication of the specific sector our embed region starts at.
38394
38395 2008-02-19 Robert Millan <rmh@aybabtu.com>
38396
38397 * DISTLIST: Replace `commands/ieee1275/halt.c' and
38398 `commands/ieee1275/reboot.c' with `commands/halt.c' and
38399 `commands/reboot.c'.
38400 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38401 (halt_mod_SOURCES): Likewise.
38402 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38403 (halt_mod_SOURCES): Likewise.
38404
38405 2008-02-17 Christian Franke <franke@computer.org>
38406
38407 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
38408
38409 2008-02-17 Robert Millan <rmh@aybabtu.com>
38410
38411 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38412 set `first_start' to 0 for non-PC/MSDOS partition maps.
38413
38414 2008-02-16 Robert Millan <rmh@aybabtu.com>
38415
38416 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38417 do not assume partition map is PC/MSDOS before performing checks that
38418 are specific to that layout.
38419
38420 2008-02-13 Robert Millan <rmh@aybabtu.com>
38421
38422 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
38423 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
38424 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
38425
38426 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
38427
38428 * configure.ac: Only a cosmetic change on the handling of
38429 -fno-stack-protector.
38430
38431 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
38432
38433 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
38434 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
38435 reboot.c.
38436 (grub_install_SOURCES): Add halt.mod and reboot.mod.
38437 (halt_mod_SOURCES): New variable.
38438 (halt_mod_CFLAGS): Likewise.
38439 (halt_mod_LDFLAGS): Likewise.
38440 (reboot_mod_SOURCES): Likewise.
38441 (reboot_mod_CFLAGS): Likewise.
38442 (reboot_mod_LDFLAGS): Likewise.
38443
38444 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
38445 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
38446 reboot.c.
38447 (halt_mod_SOURCES): Likewise.
38448 (reboot_mod_SOURCES): Likewise.
38449
38450 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
38451 commands/i386/pc/reboot.c by commands/reboot.c.
38452 (reboot_mod_SOURCES): Likewise.
38453
38454 * commands/i386/pc/reboot.c: merge this file ...
38455
38456 * commands/ieee1275/reboot.c: ... and this file ...
38457
38458 * commands/reboot.c: ... to this file.
38459 Add some precompiler directive to include the correct header for
38460 each machine.
38461
38462 * commands/ieee1275/halt.c: move this file ...
38463
38464 * commands/halt.c: ... to here.
38465 Add some precompiler directive to include the correct header for
38466 each machine.
38467
38468 * include/grub/efi/efi.h (grub_reboot): New function declaration.
38469 (grub_halt): Likewise.
38470
38471 * kern/efi/efi.c (grub_reboot): New function.
38472 (grub_halt): Likewise.
38473
38474 2008-02-12 Robert Millan <rmh@aybabtu.com>
38475
38476 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
38477 /dev (like it is done for /dev/mapper). This doesn't provide support
38478 for EVMS, but at least it is now easy to identify the problem when it
38479 arises.
38480
38481 2008-02-11 Robert Millan <rmh@aybabtu.com>
38482
38483 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
38484 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
38485 comparing it with -1, not 0.
38486
38487 2008-02-10 Robert Millan <rmh@aybabtu.com>
38488
38489 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
38490 `disk/lvm.c'.
38491 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38492 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
38493
38494 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
38495 `disk/lvm.c' to the end of the list.
38496 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38497 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38498
38499 2008-02-10 Robert Millan <rmh@aybabtu.com>
38500
38501 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
38502 grub_print_error() instead. This will let user know why we're entering
38503 rescue mode.
38504 Based on suggestions from Sam Morris.
38505
38506 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
38507
38508 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
38509 on remaining N args, instead of "--" arg N times.
38510
38511 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
38512
38513 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
38514 (fill_with_default_glyph): Changed to use unknown_glyph for fill
38515 pattern for unknown glyphs.
38516
38517 2008-02-09 Robert Millan <rmh@aybabtu.com>
38518
38519 * configure.ac: Probe for `help2man'.
38520 * Makefile.in (builddir): New variable.
38521 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
38522 or otherwise add a few flags/options to it.
38523 (install-local): For every executable utility or script that is
38524 installed, invoke $(HELP2MAN) to install a manpage based on --help
38525 output.
38526
38527 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
38528 that it doesn't prevent --help from working in build tree.
38529
38530 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
38531 with `bug-grub@gnu.org'.
38532 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
38533 * util/update-grub.in (usage): New function.
38534 Implement proper argument check, with support for --help and --version
38535 (as well as existing -y).
38536
38537 2008-02-09 Christian Franke <franke@computer.org>
38538
38539 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
38540 avoid overwriting previous output.
38541 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
38542
38543 2008-02-09 Robert Millan <rmh@aybabtu.com>
38544
38545 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
38546 drawing the menu.
38547
38548 2008-02-09 Robert Millan <rmh@aybabtu.com>
38549
38550 * commands/sleep.c: New file.
38551 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
38552 (sleep_mod_SOURCES): New variable.
38553 (sleep_mod_CFLAGS): Likewise.
38554 (sleep_mod_LDFLAGS): Likewise.
38555
38556 2008-02-09 Robert Millan <rmh@aybabtu.com>
38557
38558 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
38559 situations in which we can deduce the RAID size and the superblock
38560 doesn't match it.
38561
38562 2008-02-09 Robert Millan <rmh@aybabtu.com>
38563
38564 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
38565 and return a grub_diskmemberlist_t composed of LVM physical volumes.
38566 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
38567
38568 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
38569 and return a grub_diskmemberlist_t composed of physical array members.
38570 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
38571
38572 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
38573 prototype.
38574 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
38575 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
38576 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
38577
38578 * util/grub-probe.c (probe): Move partmap probing code from here ...
38579 (probe_partmap): ... to here.
38580 (probe): Use probe_partmap() once for the disk we're probing, and
38581 additionally, when such disk contains a memberlist() struct member,
38582 once for each disk that is contained in the structure returned by
38583 memberlist().
38584
38585 2008-02-09 Robert Millan <rmh@aybabtu.com>
38586
38587 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
38588 environment variable to 'all' in order to obtain debug output from
38589 non-util/ code.
38590 * util/i386/pc/grub-setup.c (main): Likewise.
38591
38592 2008-02-08 Robert Millan <rmh@aybabtu.com>
38593
38594 * disk/raid.c (grub_raid_scan_device): Check for
38595 `array->device[sb.this_disk.number]' rather than for
38596 `array->device[sb.this_disk.number]->name', since the latter is not
38597 guaranteed to be accessible.
38598
38599 2008-02-08 Robert Millan <rmh@aybabtu.com>
38600
38601 * disk/raid.c: Update copyright.
38602 * fs/cpio.c: Likewise.
38603 * include/grub/raid.h: Likewise.
38604 * loader/i386/pc/multiboot.c: Likewise.
38605 * util/hostfs.c: Likewise.
38606
38607 2008-02-08 Robert Millan <rmh@aybabtu.com>
38608
38609 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
38610 to a grub_disk_t array.
38611 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
38612 `device[x]'.
38613 (grub_raid_scan_device): Replace `device[x].name' accesses with
38614 `device[x]->name'. Simplify initialization of `array->device[x]'.
38615
38616 2008-02-08 Robert Millan <rmh@aybabtu.com>
38617
38618 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
38619 grub_dprintf() calls.
38620 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
38621 error message.
38622
38623 2008-02-07 Christian Franke <franke@computer.org>
38624
38625 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
38626 instead of fseek and ftell to support large files.
38627 (grub_hostfs_read): Likewise.
38628
38629 2008-02-07 Robert Millan <rmh@aybabtu.com>
38630
38631 Patch from Jeroen Dekkers.
38632 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
38633 failure, since successfully reading all array members might not be
38634 required.
38635
38636 2008-02-06 Robert Millan <rmh@aybabtu.com>
38637
38638 * util/grub-probe.c (probe): Simplify partmap probing (with the
38639 assumption that the first word up to the underscore equals to
38640 the module name).
38641
38642 2008-02-06 Christian Franke <franke@computer.org>
38643
38644 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
38645 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
38646 last block of a cpio or tar stream.
38647 Check for "TRAILER!!!" instead of any empty data
38648 block to detect last block of a cpio stream.
38649 (grub_cpio_dir): Fix constness of variable np.
38650 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
38651 cpio or tar trailer is detected. This fixes a crash
38652 on open of a non existing file.
38653
38654 2008-02-05 Bean <bean123ch@gmail.com>
38655
38656 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
38657 address of entry.
38658 (grub_multiboot_load_elf64): Likewise.
38659 (grub_multiboot): Initialize mbi structure.
38660
38661 * util/grub-fstest.c: Don't include unused header file script.h.
38662
38663 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
38664 of file.
38665 (grub_fstest_SOURCES): Likewise.
38666
38667 2008-02-05 Robert Millan <rmh@aybabtu.com>
38668
38669 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
38670 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
38671 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
38672 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
38673
38674 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
38675 (translation_table): Replace hardcoded values with macros
38676 provided by `<grub/term.h>'.
38677
38678 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
38679 (keyboard_map): Correct/add a few values, with macros provided
38680 by `<grub/term.h>'.
38681 (keyboard_map_shift): Zero values that don't differ from their
38682 `keyboard_map' equivalents.
38683 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
38684 Discard the second scan code that is always sent by Caps lock.
38685 Only use `keyboard_map_shift' when it provides a non-zero value,
38686 otherwise fallback to `keyboard_map'.
38687
38688 2008-02-04 Bean <bean123ch@gmail.com>
38689
38690 * Makefile.in (enable_grub_fstest): New variable.
38691
38692 * conf/common.rmk (grub_fstest_init.lst): New rule.
38693 (grub_fstest_init.h): Likewise.
38694 (grub_fstest_init.c): Likewise.
38695 (util/grub-fstest.c_DEPENDENCIES): New variable.
38696 (grub_fstest_SOURCES): Likewise.
38697
38698 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
38699
38700 * util/grub-fstest.c: New file.
38701
38702 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38703
38704 Make grub-setup handle a separate root device.
38705
38706 * util/i386/pc/grub-setup.c (setup): Always open the root device,
38707 so that the root device can be compared with the destination
38708 device.
38709 When embedding the core image, if the root and destination devices
38710 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
38711 0xFF.
38712 When not embedding, set ROOT_DRIVE to 0xFF.
38713
38714 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38715
38716 Add support for having a grub directory in a different drive. This
38717 is still only the data handling part.
38718
38719 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
38720 (codestart): Save %dh in GRUB_ROOT_DRIVE.
38721 (grub_root_drive): New variable.
38722
38723 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
38724 instead of GRUB_BOOT_DRIVE to construct a device name. Set
38725 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
38726 as it was.
38727
38728 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
38729
38730 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
38731 macro.
38732 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
38733
38734 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
38735 is bogus, because PXE booting does not specify any drive
38736 correctly.
38737
38738 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
38739 am not sure if this is really correct.
38740
38741 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
38742 is always identical to the boot drive when booting from a CD.
38743
38744 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
38745 longer.
38746 (root_drive): New variable.
38747 (real_start): Unconditionally set %dh to ROOT_DRIVE.
38748 (setup_sectors): Push %dx right after popping it, because %dh will
38749 be modified later.
38750 (copy_buffer): Restore %dx.
38751
38752 2008-02-03 Robert Millan <rmh@aybabtu.com>
38753
38754 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
38755 use `cdboot.img' for cdrom images.
38756
38757 2008-02-03 Robert Millan <rmh@aybabtu.com>
38758
38759 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
38760 only setup gfxterm when `font' command has succeeded.
38761
38762 2008-02-03 Robert Millan <rmh@aybabtu.com>
38763
38764 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
38765 (grub_rescue_cmd_multiboot_loader)
38766 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
38767
38768 2008-02-03 Pavel Roskin <proski@gnu.org>
38769
38770 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
38771 %edx and %esi from stack only after grub_gate_a20() is called.
38772 grub_gate_a20() clobbers %edx.
38773
38774 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38775
38776 * configure.ac (AC_INIT): Bumped to 1.96.
38777
38778 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
38779 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
38780 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
38781 video/readers/png.c.
38782
38783 2008-02-03 Bean <bean123ch@gmail.com>
38784
38785 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
38786 (cdboot_img_SOURCES): New variable.
38787 (cdboot_img_ASFLAGS): New variable.
38788 (cdboot_img_LDFLAGS): New variable.
38789
38790 * boot/i386/pc/cdboot.S: New file.
38791
38792 * disk/i386/pc/biosdisk.c (cd_start): New variable.
38793 (cd_count): Likewise.
38794 (grub_biosdisk_get_drive): Add support for cd device.
38795 (grub_biosdisk_call_hook): Likewise.
38796 (grub_biosdisk_iterate): Likewise.
38797 (grub_biosdisk_open): Likewise.
38798 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
38799 (grub_biosdisk_rw): Support reading from cd device.
38800 (GRUB_MOD_INIT): Iterate cd devices.
38801
38802 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
38803 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
38804 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
38805
38806 * kern/i386/pc/init.c (make_install_device): Check for cd device.
38807
38808 2008-02-02 Robert Millan <rmh@aybabtu.com>
38809
38810 * commands/read.c: New file.
38811 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
38812 (read_mod_SOURCES): New variable.
38813 (read_mod_CFLAGS): Likewise.
38814 (read_mod_LDFLAGS): Likewise.
38815
38816 2008-02-02 Robert Millan <rmh@aybabtu.com>
38817
38818 * normal/main.c (grub_normal_execute): Check for `menu->size' when
38819 determining whether menu has to be displayed.
38820
38821 2008-02-02 Marco Gerards <marco@gnu.org>
38822
38823 * bus/pci.c: New file.
38824
38825 * include/grub/pci.h: Likewise.
38826
38827 * include/grub/i386/pc/pci.h: Likewise.
38828
38829 * commands/lspci.c: Likewise.
38830
38831 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
38832 `lspci.mod'.
38833 (pci_mod_SOURCES): New variable.
38834 (pci_mod_CFLAGS): Likewise.
38835 (pci_mod_LDFLAGS): Likewise.
38836 (lspci_mod_SOURCES): Likewise.
38837 (lspci_mod_CFLAGS): Likewise.
38838 (lspci_mod_LDFLAGS): Likewise.
38839
38840 2008-02-02 Bean <bean123ch@gmail.com>
38841
38842 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
38843 (grub_ufs_get_file_block): Fix indirect block calculation problem.
38844
38845 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
38846 (grub_xfs_btree_node): New structure.
38847 (grub_xfs_btree_root): New structure.
38848 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
38849 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
38850 (GRUB_XFS_EXTENT_BLOCK): Likewise.
38851 (GRUB_XFS_EXTENT_SIZE): Likewise.
38852 (grub_xfs_read_block): Support btree format type.
38853 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
38854 Use directory block as basic unit.
38855
38856 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
38857
38858 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
38859 __attribute__ ((__regparm__ (1))).
38860
38861 2008-02-01 Robert Millan <rmh@aybabtu.com>
38862
38863 Correct a mistake in previous commit.
38864
38865 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
38866 top.
38867 (normal/command.c_DEPENDENCIES): New variable.
38868
38869 2008-02-01 Robert Millan <rmh@aybabtu.com>
38870
38871 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
38872 top.
38873 (normal/command.c_DEPENDENCIES): New variable.
38874 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
38875 * conf/i386-ieee1275.rmk: Likewise.
38876 * conf/i386-linuxbios.rmk: Likewise.
38877 * conf/i386-pc.rmk: Likewise.
38878 * conf/sparc64-ieee1275.rmk: Likewise.
38879 * conf/powerpc-ieee1275.rmk: Likewise.
38880 (grub_emu_SOURCES): Add `fs/fshelp.c'.
38881
38882 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
38883
38884 2008-02-01 Robert Millan <rmh@aybabtu.com>
38885
38886 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
38887 call at beginning of function.
38888
38889 2008-01-31 Pavel Roskin <proski@gnu.org>
38890
38891 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
38892 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
38893 (grub_mkrescue_SOURCES): Likewise.
38894 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
38895
38896 2008-01-30 Robert Millan <rmh@aybabtu.com>
38897
38898 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
38899 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
38900 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
38901 (grub_probe_SOURCES): ... to here.
38902
38903 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
38904 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
38905 * conf/i386-ieee1275.rmk: Likewise.
38906 * conf/i386-linuxbios.rmk: Likewise.
38907 * conf/powerpc-ieee1275.rmk: Likewise.
38908
38909 2008-01-30 Tristan Gingold <gingold@free.fr>
38910
38911 * kern/rescue.c: Silently accept empty lines.
38912
38913 2008-01-29 Bean <bean123ch@gmail.com>
38914
38915 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
38916 (real_code_2): Code cleanup and change comment style.
38917 (move_memory): Avoid using 32-bit address mode.
38918
38919 2008-01-29 Bean <bean123ch@gmail.com>
38920
38921 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
38922 (png_mod_SOURCES): New variable.
38923 (png_mod_CFLAGS): Likewise.
38924 (png_mod_LDFLAGS): Likewise.
38925
38926 * video/readers/png.c: New file.
38927
38928 2008-01-28 Robert Millan <rmh@aybabtu.com>
38929
38930 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
38931 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
38932 `ifndef GRUB_MOD_GAP' hack.
38933 * util/elf/grub-mkimage.c (add_segments): Likewise.
38934
38935 2008-01-27 Robert Millan <rmh@aybabtu.com>
38936
38937 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
38938 `GRUB_MOD_GAP' for platforms in which it's not defined.
38939 * util/elf/grub-mkimage.c (add_segments): Likewise.
38940
38941 2008-01-27 Robert Millan <rmh@aybabtu.com>
38942
38943 Get grub-emu to build again (including parallel builds).
38944
38945 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
38946 Split into ...
38947 (util/grub-emu.c_DEPENDENCIES): ... this, ...
38948 (normal/execute.c_DEPENDENCIES): ... this, ...
38949 (grub-emu_DEPENDENCIES): ... and this.
38950
38951 * conf/i386-efi.rmk: Likewise.
38952 * conf/i386-linuxbios.rmk: Likewise.
38953 * conf/i386-ieee1275.rmk: Likewise.
38954 * conf/powerpc-ieee1275.rmk: Likewise.
38955 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
38956
38957 2008-01-27 Robert Millan <rmh@aybabtu.com>
38958
38959 * NEWS: Add a few items.
38960
38961 2008-01-27 Robert Millan <rmh@aybabtu.com>
38962
38963 Fix parallel builds with grub-emu. Based on earlier commit for
38964 grub-probe and grub-setup.
38965
38966 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38967 (util/grub-emu.c_DEPENDENCIES): ... this.
38968 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38969 (util/grub-emu.c_DEPENDENCIES): ... this.
38970 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38971 (util/grub-emu.c_DEPENDENCIES): ... this.
38972 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38973 (util/grub-emu.c_DEPENDENCIES): ... this.
38974 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38975 (util/grub-emu.c_DEPENDENCIES): ... this.
38976
38977 2008-01-27 Pavel Roskin <proski@gnu.org>
38978
38979 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
38980 to create a gap between _end and the modules added to the image
38981 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
38982 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
38983 * util/elf/grub-mkimage.c (add_segments): Likewise.
38984
38985 2008-01-26 Pavel Roskin <proski@gnu.org>
38986
38987 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
38988 just return an error.
38989
38990 2008-01-26 Bean <bean123ch@gmail.com>
38991
38992 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
38993 (grub_reiserfs_get_item): Save offset of the next item.
38994 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
38995
38996 2008-01-25 Robert Millan <rmh@aybabtu.com>
38997
38998 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
38999 make all filesystem sources appear together (possibly fixing omissions
39000 while at it).
39001 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39002 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39003 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39004 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39005
39006 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
39007 add `kern/file.c'.
39008 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
39009 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39010 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
39011 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39012
39013 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
39014 (probe): Add a sanity check to make sure of our ability to read
39015 requested files when probing for filesystem type.
39016
39017 * genmk.rb: Update copyright year (2007).
39018
39019 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
39020 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
39021 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
39022 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
39023 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
39024 : Remove function prototypes.
39025
39026 2008-01-25 Robert Millan <rmh@aybabtu.com>
39027
39028 Revert my previous commits (based on wrong assumption of how grub_errno
39029 works).
39030
39031 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
39032 * kern/file.c (grub_file_open): Likewise.
39033
39034 2008-01-24 Pavel Roskin <proski@gnu.org>
39035
39036 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
39037 that hang if GRUB tries to setup colors.
39038 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
39039 colors for firmwares that don't support it.
39040 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
39041 Recognize Open Hack'Ware, set flags to work around its
39042 limitations.
39043
39044 2008-01-24 Robert Millan <rmh@aybabtu.com>
39045
39046 * kern/file.c (grub_file_open): Do not account previous failures of
39047 unrelated functions when grub_errno is checked for.
39048 Reported by Oleg Strikov.
39049
39050 2008-01-24 Bean <bean123ch@gmail.com>
39051
39052 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
39053 (grub_ufs_sblock): New member volume name.
39054 (grub_ufs_find_file): Fix string copy bug.
39055 (grub_ufs_label): Implement this function properly.
39056
39057 * fs/hfs.c (grub_hfs_cnid_type): New enum.
39058 (grub_hfs_iterate_records): Use the correct file number for extents
39059 and catalog file. Fix problem in next index calculation.
39060 (grub_hfs_find_node): Replace recursive function call with loop.
39061 (grub_hfs_iterate_dir): Replace recursive function call with loop.
39062
39063 2008-01-23 Robert Millan <rmh@aybabtu.com>
39064
39065 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
39066 `<grub/symbol.h>' and `<grub/multiboot.h>'.
39067 (grub_multiboot2_real_boot): New function prototype.
39068
39069 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
39070 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
39071
39072 * kern/i386/ieee1275/init.c (grub_os_area_addr)
39073 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
39074
39075 2008-01-23 Robert Millan <rmh@aybabtu.com>
39076
39077 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
39078 #ifdef'ed out grub_printf().
39079
39080 2008-01-23 Robert Millan <rmh@aybabtu.com>
39081
39082 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
39083 grub_dprintf calls, since they make "debug=all" mode unusable.
39084 (grub_console_checkkey): Likewise.
39085
39086 2008-01-23 Robert Millan <rmh@aybabtu.com>
39087
39088 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
39089 `term/i386/pc/at_keyboard.c'.
39090 (pkglib_MODULES): Add `serial.mod'.
39091 (serial_mod_SOURCES): New variable.
39092 (serial_mod_CFLAGS): Likewise.
39093 (serial_mod_LDFLAGS): Likewise.
39094
39095 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
39096 `<grub/powerpc/ieee1275/console.h>'.
39097 (grub_keyboard_controller_init): New function prototype.
39098 (grub_console_checkkey): Likewise.
39099 (grub_console_getkey): Likewise.
39100
39101 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
39102 keyboard on i386.
39103
39104 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
39105 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
39106
39107 2008-01-23 Robert Millan <rmh@aybabtu.com>
39108
39109 * kern/i386/pc/init.c (make_install_device): When memdisk image is
39110 present, "(memdisk)/boot/grub" becomes the default prefix.
39111
39112 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
39113 a memdisk tarball with all the modules. Add --overlay=DIR option that
39114 allows users to overlay additional files into the image.
39115
39116 2008-01-23 Robert Millan <rmh@aybabtu.com>
39117
39118 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
39119 and `machine/memory.h'.
39120 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
39121 (_multiboot_mod_SOURCES): New variable.
39122 (_multiboot_mod_CFLAGS): Likewise.
39123 (_multiboot_mod_LDFLAGS): Likewise.
39124 (multiboot_mod_SOURCES): Likewise.
39125 (multiboot_mod_CFLAGS): Likewise.
39126 (multiboot_mod_LDFLAGS): Likewise.
39127
39128 * include/grub/i386/ieee1275/loader.h: New file.
39129
39130 * include/grub/i386/ieee1275/machine.h: Likewise.
39131
39132 * include/grub/i386/ieee1275/memory.h: Likewise.
39133
39134 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
39135 variable declaration.
39136 (grub_os_area_size): Likewise.
39137
39138 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
39139 (grub_lower_mem, grub_upper_mem): New variables.
39140 (grub_stop_floppy): New function (just to make
39141 grub_multiboot2_real_boot() happy).
39142
39143 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
39144 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
39145 (grub_stop): New function.
39146 Include `"../realmode.S"' and `"../loader.S"'.
39147
39148 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
39149 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
39150
39151 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
39152 rely on grub_multiboot2_real_boot() for final boot.
39153
39154 2008-01-22 Robert Millan <rmh@aybabtu.com>
39155
39156 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
39157 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
39158 device that doesn't look like an SD card.
39159 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
39160 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
39161 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
39162 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
39163 found.
39164
39165 2008-01-22 Robert Millan <rmh@aybabtu.com>
39166
39167 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
39168 avoid claiming over our own code.
39169
39170 2008-01-22 Bean <bean123ch@gmail.com>
39171
39172 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
39173 (jpeg_mod_SOURCES): New variable.
39174 (jpeg_mod_CFLAGS): Likewise.
39175 (jpeg_mod_LDFLAGS): Likewise.
39176
39177 * video/readers/jpeg.c : New file.
39178
39179 2008-01-22 Bean <bean123ch@gmail.com>
39180
39181 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
39182 there are no more items.
39183
39184 2008-01-21 Robert Millan <rmh@aybabtu.com>
39185
39186 * kern/mm.c (grub_mm_init_region): Improve debug message.
39187
39188 2008-01-21 Robert Millan <rmh@aybabtu.com>
39189
39190 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
39191 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
39192 address.
39193 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
39194 a C macro.
39195 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
39196 Indicates start of upper memory.
39197 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
39198 (generate_image): Abort when image size is big enough to corrupt
39199 upper memory.
39200
39201 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
39202 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
39203 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39204 instead of hardcoding 0xA0000.
39205 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
39206 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39207 instead of hardcoding 0xA0000.
39208
39209 2008-01-21 Robert Millan <rmh@aybabtu.com>
39210
39211 * disk/memdisk.c (memdisk_size): New variable.
39212 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
39213 `memdisk_size'.
39214 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
39215 image to dynamic memory.
39216 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
39217 `memdisk_size'. Free memdisk block.
39218
39219 2008-01-21 Robert Millan <rmh@aybabtu.com>
39220
39221 Fix detection of very small filesystems (like tar).
39222
39223 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
39224 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
39225 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
39226 a problem with this disk).
39227
39228 2008-01-21 Robert Millan <rmh@aybabtu.com>
39229
39230 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
39231 on grub_biosdisk_rw_standard() error.
39232
39233 2008-01-21 Robert Millan <rmh@aybabtu.com>
39234
39235 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
39236 recent changes.
39237 * kern/elf.c: Likewise.
39238 * kern/ieee1275/ieee1275.c: Likewise.
39239 * kern/powerpc/ieee1275/openfw.c: Likewise.
39240 * term/ieee1275/ofconsole.c: Likewise.
39241
39242 2008-01-21 Robert Millan <rmh@aybabtu.com>
39243
39244 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
39245
39246 * include/grub/kernel.h (grub_arch_memdisk_addr)
39247 (grub_arch_memdisk_size): Moved from here ...
39248
39249 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
39250 (grub_arch_memdisk_size): ... to here.
39251
39252 2008-01-21 Robert Millan <rmh@aybabtu.com>
39253
39254 Mostly based on bugfix from Bean.
39255
39256 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
39257 attribute with hook() parameter.
39258 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
39259 declaration.
39260 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
39261 attribute with hook() parameter.
39262 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
39263 declaration.
39264
39265 2008-01-21 Robert Millan <rmh@aybabtu.com>
39266
39267 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
39268 (pkglib_MODULES): Add `memdisk.mod'.
39269 (memdisk_mod_SOURCES): New variable.
39270 (memdisk_mod_CFLAGS): Likewise.
39271 (memdisk_mod_LDFLAGS): Likewise.
39272
39273 * disk/memdisk.c: New file.
39274
39275 * include/grub/disk.h (grub_disk_dev_id): Add
39276 `GRUB_DISK_DEVICE_MEMDISK_ID'.
39277
39278 * include/grub/i386/pc/kernel.h
39279 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
39280 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
39281 (grub_kernel_image_size): New variable declaration.
39282 (grub_total_module_size): Likewise.
39283 (grub_memdisk_image_size): Likewise.
39284
39285 * include/grub/i386/pc/memory.h
39286 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
39287
39288 * include/grub/kernel.h: Include `<grub/symbol.h>'.
39289 (grub_arch_memdisk_addr): New variable declaration.
39290 (grub_arch_memdisk_size): Likewise.
39291
39292 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
39293 (grub_arch_memdisk_size): Likewise.
39294
39295 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
39296 (codestart): Replace hardcoded `0x100000' with
39297 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
39298
39299 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
39300 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
39301 not NULL, append the contents of the file it refers to, at the end of
39302 the compressed kernel image. Initialize `grub_memdisk_image_size'
39303 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
39304 (options): Add "memdisk"|'m' option.
39305 (main): Parse --memdisk|-m option, and pass user-provided path as
39306 parameter to generate_image().
39307
39308 2008-01-20 Robert Millan <rmh@aybabtu.com>
39309
39310 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
39311 grub_dprintf() calls from here ...
39312 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
39313
39314 2008-01-20 Robert Millan <rmh@aybabtu.com>
39315
39316 Fix detection of "real mode" when /options/real-mode? doesn't exist.
39317
39318 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
39319 declaration.
39320 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
39321 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
39322 `GRUB_IEEE1275_FLAG_REAL_MODE'.
39323 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
39324 property).
39325 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
39326 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
39327
39328 2008-01-19 Robert Millan <rmh@aybabtu.com>
39329
39330 Get rid of confusing function (superseded by
39331 `grub_ieee1275_get_integer_property')
39332 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
39333 prototype.
39334 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
39335 function.
39336 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
39337 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
39338 in native endianness from grub_ieee1275_get_integer_property().
39339
39340 2008-01-19 Robert Millan <rmh@aybabtu.com>
39341
39342 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
39343 command after "shut-down", since implementations differ on which
39344 the command for halt is.
39345
39346 2008-01-19 Robert Millan <rmh@aybabtu.com>
39347
39348 * include/grub/i386/linuxbios/console.h: Add header protection.
39349 (grub_keyboard_controller_init): New function prototype.
39350 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
39351 (KEYBOARD_COMMAND_READ): Likewise.
39352 (KEYBOARD_COMMAND_WRITE): Likewise.
39353 (KEYBOARD_SCANCODE_SET1): Likewise.
39354 (grub_keyboard_controller_write): New function.
39355 (grub_keyboard_controller_read): Likewise.
39356 (grub_keyboard_controller_init): Likewise.
39357
39358 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
39359 (grub_console_init): On coreboot/LinuxBIOS, call
39360 grub_keyboard_controller_init().
39361
39362 2008-01-19 Robert Millan <rmh@aybabtu.com>
39363
39364 PowerPC changes provided by Pavel Roskin.
39365
39366 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
39367 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
39368 don't rely on cmain() doing it.
39369 * kern/i386/ieee1275/startup.S (_start): Store %eax in
39370 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
39371
39372 2008-01-16 Robert Millan <rmh@aybabtu.com>
39373
39374 * include/grub/i386/linuxbios/memory.h
39375 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
39376 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
39377 receive `table_header' as argument. Instead, probe for it in the
39378 known memory ranges where it can be present.
39379 (grub_available_iterate): Do not pass a fixed `table_header' address
39380 to grub_linuxbios_table_iterate().
39381
39382 2008-01-15 Robert Millan <rmh@aybabtu.com>
39383
39384 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
39385 * conf/i386-ieee1275.rmk: New file.
39386 * include/grub/i386/ieee1275/console.h: Likewise.
39387 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
39388 * include/grub/i386/ieee1275/kernel.h: Likewise.
39389 * include/grub/i386/ieee1275/time.h: Likewise.
39390 * kern/i386/ieee1275/init.c: Likewise.
39391 * kern/i386/ieee1275/startup.S: Likewise.
39392
39393 2008-01-15 Robert Millan <rmh@aybabtu.com>
39394
39395 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
39396 when pointers are 32-bit (but still do set it to one when they are
39397 64-bit).
39398
39399 2008-01-15 Robert Millan <rmh@aybabtu.com>
39400
39401 * include/grub/ieee1275/ieee1275.h
39402 (grub_ieee1275_get_integer_property): New function prototype.
39403
39404 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
39405 (grub_ieee1275_get_integer_property): New function. Wraps around
39406 grub_ieee1275_get_property() to handle endianness.
39407
39408 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
39409 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
39410 where appropriate.
39411 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
39412 (grub_map): Likewise.
39413 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
39414
39415 2008-01-15 Bean <bean123ch@gmail.com>
39416
39417 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
39418 (grub_script_execute_cmdline): Reset grub_errno.
39419
39420 * normal/main.c (read_config_file): Reset grub_errno.
39421
39422 * normal/parse.y (script_init): New.
39423 (script): Move function and menuentry here.
39424 (delimiter): New.
39425 (command): Add delimiter at the end of command.
39426 (commands): Adjust to match the new command.
39427 (commandblock): Remove grub_script_lexer_record_start.
39428 (menuentry): Add grub_script_lexer_record_start, use the new commands.
39429 (if): Use the new commands.
39430
39431 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
39432
39433 2008-01-15 Robert Millan <rmh@aybabtu.com>
39434
39435 * normal/menu.c (run_menu): Move timeout message from here ...
39436 (print_timeout): ... to here.
39437 (run_menu): Use print_timeout() once during initial draw to print
39438 the whole message, and again in every clock tick to update only
39439 the number of seconds.
39440
39441 2008-01-15 Robert Millan <rmh@aybabtu.com>
39442
39443 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
39444 actual size of `available' from grub_ieee1275_get_property(), and
39445 restrict parsing to that bound.
39446
39447 2008-01-15 Christian Franke <franke@computer.org>
39448
39449 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
39450 (argp_program_version): Remove variable.
39451 (argp_program_bug_address): Likewise.
39452 (options): Convert from struct argp_option to struct option.
39453 (struct arguments): Remove.
39454 (parse_opt): Remove.
39455 (usage): New function.
39456 (main): Replace struct args members by simple variables.
39457 Replace argp_parse() by getopt_long().
39458 Add switch to evaluate options.
39459 Add missing "(...)" around root_dev in prefix string.
39460
39461 2008-01-14 Robert Millan <rmh@aybabtu.com>
39462
39463 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
39464 for grub_ieee1275_exit(), in order to improve portability.
39465
39466 2008-01-14 Robert Millan <rmh@aybabtu.com>
39467
39468 * util/grub.d/10_linux.in (prefix): Define.
39469 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
39470
39471 2008-01-13 Pavel Roskin <proski@gnu.org>
39472
39473 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
39474 grub_errno if no errors have been detected.
39475
39476 2008-01-12 Robert Millan <rmh@aybabtu.com>
39477
39478 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
39479 (grub_util_get_dev_abstraction): New function prototype.
39480
39481 * util/getroot.c: Include `<grub/util/getroot.h>'
39482 (grub_util_get_grub_dev): Move detection of abstraction type to ...
39483 (grub_util_get_dev_abstraction): ... here (new function).
39484
39485 * util/grub-probe.c: Convert PRINT_* to an enum. Add
39486 `PRINT_ABSTRACTION'.
39487 (probe): Probe for abstraction type when requested.
39488 (main): Understand `--target=abstraction'.
39489
39490 * util/i386/efi/grub-install.in: Add abstraction module to core
39491 image when it is found to be necessary.
39492 * util/i386/pc/grub-install.in: Likewise.
39493 * util/powerpc/ieee1275/grub-install.in: Likewise.
39494
39495 * util/update-grub_lib.in (font_path): Return system path without
39496 converting to GRUB path.
39497 * util/update-grub.in: Convert system path returned by font_path()
39498 to a GRUB path. Use `grub-probe -t abstraction' to determine what
39499 abstraction module is needed for loading fonts (if any). Export
39500 that as `GRUB_PRELOAD_MODULES'.
39501 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
39502 insmod commands).
39503
39504 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
39505
39506 Remove some unused code from reiserfs.
39507
39508 * fs/reiserfs.c (struct grub_reiserfs_key)
39509 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
39510 (struct grub_reiserfs_node_body): Removed.
39511 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39512 Likewise.
39513 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39514 Likewise.
39515 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39516 Likewise.
39517 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39518 Likewise.
39519 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39520 Likewise.
39521 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
39522 Likewise.
39523 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39524 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39525 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39526
39527 2008-01-10 Robert Millan <rmh@aybabtu.com>
39528
39529 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
39530 Determines if a file is garbage left by packaging systems, etc.
39531 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
39532 for processing /etc/grub.d scripts.
39533 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
39534 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
39535 as a condition for processing Linux images.
39536
39537 2008-01-10 Pavel Roskin <proski@gnu.org>
39538
39539 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
39540 to compile reiserfs.c on PowerPC.
39541
39542 2008-01-10 Robert Millan <rmh@aybabtu.com>
39543
39544 * kern/device.c (grub_device_iterate): Do not abort device iteration
39545 when one of the devices cannot be opened.
39546 * kern/disk.c (grub_disk_open): Do not account previous failures of
39547 unrelated functions when grub_errno is checked for.
39548
39549 2008-01-08 Robert Millan <rmh@aybabtu.com>
39550
39551 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
39552 `! grub_linux_is_bzimage', change order of address comparison to make
39553 it more intuitive, and improve "too big zImage" error message.
39554
39555 2008-01-08 Robert Millan <rmh@aybabtu.com>
39556
39557 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
39558 `$(update-grub_DATA)'.
39559 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
39560 targets.
39561
39562 2008-01-07 Robert Millan <rmh@aybabtu.com>
39563
39564 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
39565 which instruction is modified by grub-setup during installation
39566 (since it wasn't obvious by only looking at this file).
39567
39568 2008-01-07 Robert Millan <rmh@aybabtu.com>
39569
39570 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
39571 listing actual TODO items.
39572
39573 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39574
39575 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
39576 correctly.
39577 (grub_reiserfs_get_key_offset): Likewise.
39578 (grub_reiserfs_set_key_offset): Likewise.
39579 (grub_reiserfs_set_key_type): Likewise.
39580 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
39581
39582 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
39583 better to remove the bitfield version completely.
39584
39585 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39586
39587 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
39588 allocated from the heap, due to the fshelp implementation.
39589 (grub_reiserfs_dir): Free NODE, due to the same reason.
39590
39591 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39592
39593 Mostly from Vincent Pelletier:
39594
39595 * fs/reiserfs.c: New file.
39596
39597 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
39598 (reiserfs_mod_SOURCES): New variable.
39599 (reiserfs_mod_CFLAGS): Likewise.
39600 (reiserfs_mod_LDFLAGS): Likewise.
39601
39602 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
39603 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
39604 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
39605 normal/color.c.
39606
39607 2008-01-06 Robert Millan <rmh@aybabtu.com>
39608
39609 * normal/color.c: Remove `<grub/env.h>'.
39610
39611 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
39612
39613 * include/grub/normal.h: Include <grub/env.h>.
39614
39615 2008-01-05 Robert Millan <rmh@aybabtu.com>
39616
39617 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
39618 usage example with `(hd0,1)'.
39619 Reported by Samuel Thibault.
39620
39621 2008-01-05 Robert Millan <rmh@aybabtu.com>
39622
39623 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
39624 (grub_linux_boot_zimage): Rename to ...
39625 (grub_linux_boot): ... this.
39626 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
39627 (grub_linux_boot_zimage): Conditionalize zImage copy.
39628
39629 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
39630 (grub_linux_boot_bzimage): Remove prototype.
39631 (grub_linux_boot_zimage): Rename to ...
39632 (grub_linux_boot): ... this.
39633
39634 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
39635 (grub_linux_boot): Remove function.
39636
39637 2008-01-05 Robert Millan <rmh@aybabtu.com>
39638
39639 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
39640 (grub_env_write_color_highlight): Likewise.
39641 (grub_wait_after_message): Likewise.
39642
39643 * normal/color.c: New file.
39644
39645 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39646 (normal_mod_DEPENDENCIES): Likewise.
39647
39648 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39649 (normal_mod_DEPENDENCIES): Likewise.
39650
39651 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39652 (normal_mod_DEPENDENCIES): Likewise.
39653
39654 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39655 (normal_mod_DEPENDENCIES): Likewise.
39656
39657 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
39658 for waiting after a message is printed.
39659 * normal/main.c (read_config_file): Likewise.
39660 (grub_normal_init): Register grub_env_write_color_normal() and
39661 grub_env_write_color_highlight() hooks. Mark `color_normal' and
39662 `color_highlight' variables as global.
39663
39664 * normal/menu.c (grub_wait_after_message): New function.
39665 (grub_color_menu_normal): New variable. Replaces ...
39666 (GRUB_COLOR_MENU_NORMAL): ... this macro.
39667 (grub_color_menu_highlight): New variable. Replaces ...
39668 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
39669 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
39670 `GRUB_TERM_COLOR_STANDARD'.
39671 (print_message): Use `grub_setcolorstate' to reload colors. Rename
39672 `normal_code' and `highlight_code' to `old_color_normal' and
39673 `old_color_highlight', respectively.
39674 (grub_menu_init_page): Update colors when drawing the menu, based on
39675 `menu_color_normal' and `menu_color_highlight' variables.
39676 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
39677 a message is printed.
39678
39679 2008-01-05 Robert Millan <rmh@aybabtu.com>
39680
39681 * kern/env.c (grub_env_context_open): Propagate hooks for global
39682 variables to new context.
39683
39684 * kern/main.c (grub_set_root_dev): Export `root' variable.
39685
39686 2008-01-05 Robert Millan <rmh@aybabtu.com>
39687
39688 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
39689 discs unconditionally, since udev and others have options to provide
39690 them.
39691
39692 2008-01-05 Robert Millan <rmh@aybabtu.com>
39693
39694 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
39695
39696 2008-01-04 Christian Franke <franke@computer.org>
39697
39698 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
39699 of eisa_mmap.
39700
39701 2008-01-03 Pavel Roskin <proski@gnu.org>
39702
39703 * kern/i386/linuxbios/init.c: Put "void" to all function
39704 declarations with no arguments.
39705 * kern/powerpc/ieee1275/init.c: Likewise.
39706 * term/i386/pc/at_keyboard.c: Likewise.
39707 * term/i386/pc/vga_text.c: Likewise.
39708 * util/grub-mkdevicemap.c: Likewise.
39709
39710 2008-01-02 Robert Millan <rmh@aybabtu.com>
39711
39712 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
39713 message when loaded image is out of bounds.
39714 (grub_multiboot_load_elf64): Likewise.
39715
39716 2008-01-02 Pavel Roskin <proski@gnu.org>
39717
39718 * util/grub.d/10_linux.in: Try version without ".old" when
39719 looking for initrd. It's better to use initrd from the newer
39720 kernel of the same version than no initrd at all.
39721
39722 2008-01-01 Robert Millan <rmh@aybabtu.com>
39723
39724 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
39725
39726 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
39727
39728 * include/grub/video.h: Added grub_video_unmap_color and
39729 grub_video_get_active_render_target.
39730 (grub_video_adapter): Added unmap_color and get_active_render_target.
39731
39732 * video/video.c: Added grub_video_unmap_color and
39733 grub_video_get_active_render_target.
39734 (grub_video_get_info): Changed method to accept NULL pointer as an
39735 argument to allow detection of active video adapter.
39736
39737 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
39738 grub_video_vbe_unmap_color_int.
39739 Added grub_video_vbe_unmap_color and
39740 grub_video_vbe_get_active_render_target.
39741 (grub_video_vbe_adapter): Added unmap_color and
39742 get_active_render_target.
39743
39744 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
39745 with grub_video_vbe_unmap_color_int.
39746
39747 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
39748 (DEFAULT_NORMAL_COLOR): Likewise.
39749 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
39750 (DEFAULT_FG_COLOR): Removed.
39751 (DEFAULT_BG_COLOR): Likewise.
39752 (DEFAULT_CURSOR_COLOR): Changed value.
39753 (grub_virtual_screen): Added standard_color_setting,
39754 normal_color_setting, highlight_color_setting and term_color.
39755 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
39756 (bitmap_width): Added.
39757 (bitmap_height): Likewise.
39758 (bitmap): Likewise.
39759 (set_term_color): Likewise.
39760 (grub_virtual_screen_setup): Changed to use new terminal coloring
39761 settings.
39762 (grub_gfxterm_init): Added init for bitmap.
39763 (grub_gfxterm_fini): Added destroy for bitmap.
39764 (redraw_screen_rect): Updated to use background bitmap and new
39765 terminal coloring.
39766 (scroll_up): Added optimization for case when there is no bitmap.
39767 (grub_gfxterm_cls): Fixed to use correct background color.
39768 (grub_virtual_screen_setcolorstate): Changed to use new terminal
39769 coloring.
39770 (grub_virtual_screen_setcolor): Likewise.
39771 (grub_virtual_screen_getcolor): Added.
39772 (grub_gfxterm_background_image_cmd): Likewise.
39773 (grub_video_term): Added setcolor and getcolor.
39774 (MOD_INIT): Added registration of background_image command.
39775 (MOD_TERM): Added unregistration for background_image command.
39776
39777 2007-12-30 Pavel Roskin <proski@gnu.org>
39778
39779 * loader/multiboot_loader.c: Fix multiboot command
39780 unregistration. Fix all typos in the word "multiboot".
39781
39782 2007-12-29 Pavel Roskin <proski@gnu.org>
39783
39784 * util/grub.d/10_linux.in: Refactor search for initrd. Add
39785 support for initrd names used in Fedora.
39786
39787 2007-12-26 Bean <bean123ch@gmail.com>
39788
39789 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
39790 (cpio_mod_SOURCES): New variable.
39791 (cpio_mod_CFLAGS): Likewise.
39792 (cpio_mod_LDFLAGS): Likewise.
39793
39794 * fs/cpio.c: New file.
39795
39796 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
39797
39798 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39799
39800 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39801
39802 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39803
39804 2007-12-25 Robert Millan <rmh@aybabtu.com>
39805
39806 * include/grub/term.h (struct grub_term): Add `getcolor' function.
39807 (grub_getcolor): New function.
39808
39809 * kern/term.c (grub_getcolor): New function.
39810 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
39811 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
39812 (print_entry): Set normal and highlight colors to
39813 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
39814 respectively, before printing and restore them to old
39815 values afterwards.
39816 (grub_menu_init_page): Likewise. Fill an additional colored space
39817 that would otherwise be left blank.
39818
39819 * term/efi/console.c (grub_console_getcolor): New function.
39820 (struct grub_console_term.getcolor): New variable.
39821 * term/i386/pc/console.c (grub_console_getcolor): New function.
39822 (struct grub_console_term.getcolor): New variable.
39823 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
39824 (struct grub_console_term.getcolor): New variable.
39825
39826 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
39827 (struct grub_console_term.setcolor): Remove variable.
39828 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
39829 (struct grub_console_term.setcolor): Remove variable.
39830 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
39831 (struct grub_console_term.setcolor): Remove variable.
39832 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
39833 (struct grub_console_term.setcolor): Remove variable.
39834
39835 2007-12-25 Robert Millan <rmh@aybabtu.com>
39836
39837 * configure.ac: Search for possible unifont.hex locations, and
39838 define UNIFONT_HEX if found.
39839
39840 * Makefile.in (UNIFONT_HEX): Define variable.
39841 (DATA): Rename to ...
39842 (PKGLIB): ... this. Update all users.
39843 (PKGDATA): New variable.
39844 (pkgdata_IMAGES): Rename to ...
39845 (pkglib_IMAGES): ... this. Update all users.
39846 (pkgdata_MODULES): Rename to ...
39847 (pkglib_MODULES): ... this. Update all users.
39848 (pkgdata_PROGRAMS): Rename to ...
39849 (pkglib_PROGRAMS): ... this. Update all users.
39850 (pkgdata_DATA): Rename to ...
39851 (pkglib_DATA): ... this. Update all users.
39852 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
39853 (unicode.pff, ascii.pff): New rules.
39854 (all-local): Add `$(PKGDATA)' dependency.
39855 (install-local): Process `$(PKGDATA)'.
39856
39857 * util/update-grub_lib.in (font_path): Search for *.pff files in
39858 a few more locations, including `${pkgdata}'.
39859
39860 2007-12-23 Robert Millan <rmh@aybabtu.com>
39861
39862 Patch from Bean <bean123ch@gmail.com>:
39863 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
39864 `size'.
39865
39866 2007-12-21 Bean <bean123ch@gmail.com>
39867
39868 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
39869 (ntfscomp_mod_SOURCES): New variable.
39870 (ntfscomp_mod_CFLAGS): Likewise.
39871 (ntfscomp_mod_LDFLAGS): Likewise.
39872
39873 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
39874 (grub_probe_SOURCES): Likewise.
39875 (grub_emu_SOURCES): Likewise.
39876
39877 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39878 (grub_emu_SOURCES): Likewise.
39879
39880 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39881 (grub_emu_SOURCES): Likewise.
39882
39883 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39884 (grub_emu_SOURCES): Likewise.
39885
39886 * fs/ntfs.c (grub_ntfscomp_func): New variable.
39887 (read_run_list): Renamed to grub_ntfs_read_run_list.
39888 (decomp_nextvcn): Moved to ntfscomp.c.
39889 (decomp_getch): Likewise.
39890 (decomp_get16): Likewise.
39891 (decomp_block): Likewise.
39892 (read_block): Likewise.
39893 (read_data): Partially moved to ntfscomp.c.
39894 (fixup): Change unsigned to grub_uint16_t.
39895 (read_mft): Change unsigned long to grub_uint32_t.
39896 (read_attr): Likewise.
39897 (read_data): Likewise.
39898 (read_run_data): Likewise.
39899 (read_run_list): Likewise.
39900 (read_mft): Likewise.
39901
39902 * fs/ntfscomp.c: New file.
39903
39904 * include/grub/ntfs.h: New file.
39905
39906 2007-12-16 Robert Millan <rmh@aybabtu.com>
39907
39908 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
39909 IDE disk check, since Linux is known to support 20 IDE disks.
39910 Reported by Colin Watson.
39911
39912 2007-12-15 Bean <bean123ch@gmail.com>
39913
39914 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
39915 (lnxboot_img_SOURCES): New variable.
39916 (lnxboot_img_ASFLAGS): Likewise.
39917 (lnxboot_img_LDFLAGS): Likewise.
39918
39919 * boot/i386/pc/lnxboot.S: New file.
39920
39921 2007-11-24 Pavel Roskin <proski@gnu.org>
39922
39923 * configure.ac: Test if '--build-id=none' is supported by the
39924 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
39925 objcopy to generate incorrect binary files (binutils
39926 2.17.50.0.18-1 as shipped by Fedora 8).
39927 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
39928 linking, so that build ID doesn't break the test.
39929
39930 2007-11-24 Pavel Roskin <proski@gnu.org>
39931
39932 * include/grub/i386/time.h: use "void" in the argument list
39933 of grub_cpu_idle().
39934 * include/grub/powerpc/time.h: Likewise.
39935 * include/grub/sparc64/time.h: Likewise.
39936
39937 2007-11-18 Christian Franke <franke@computer.org>
39938
39939 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
39940 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
39941 This fixes the problem that function keys did not work in grub-emu.
39942
39943 2007-11-18 Christian Franke <franke@computer.org>
39944
39945 * disk/host.c (grub_host_open): Remove attribute unused from
39946 name parameter. Add check for "host". This fixes the problem
39947 that grub-emu does not find partitions.
39948
39949 2007-11-18 Christian Franke <franke@computer.org>
39950
39951 * util/hostfs.c (is_dir): New function.
39952 (grub_hostfs_dir): Handle missing dirent.d_type case.
39953 (grub_hostfs_read): Add missing fseek().
39954 (grub_hostfs_label): Clear label pointer. This fixes a crash
39955 of grub-emu on "ls (host)".
39956
39957 2007-11-18 Christian Franke <franke@computer.org>
39958
39959 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
39960 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
39961 to 64 bit boundary by default.
39962
39963 2007-11-18 Bean <bean123ch@gmail.com>
39964
39965 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
39966 (hexdump_mod_SOURCES): New variable.
39967 (hexdump_mod_CFLAGS): Likewise.
39968 (hexdump_mod_LDFLAGS): Likewise.
39969
39970 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39971
39972 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39973
39974 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39975
39976 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39977
39978 * include/grub/hexdump.h: New file.
39979
39980 * commands/hexdump.c: New file.
39981
39982 2007-11-10 Robert Millan <rmh@aybabtu.com>
39983
39984 * commands/i386/pc/play.c (beep_off): Switch order of arguments
39985 in grub_outb() calls.
39986 (beep_on): Likewise.
39987
39988 2007-11-10 Christian Franke <franke@computer.org>
39989
39990 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
39991 (grub_menu_run): Likewise.
39992
39993 2007-11-10 Robert Millan <rmh@aybabtu.com>
39994
39995 * include/grub/i386/efi/machine.h: New file.
39996 * include/grub/i386/linuxbios/machine.h: Likewise.
39997 * include/grub/i386/pc/machine.h: Likewise.
39998 * include/grub/powerpc/ieee1275/machine.h: Likewise.
39999 * include/grub/sparc64/ieee1275/machine.h: Likewise.
40000
40001 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
40002 (serial_hw_io_addr): New variable.
40003 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
40004 instead of `(unsigned short *) 0x400'.
40005
40006 2007-11-10 Bean <bean123ch@gmail.com>
40007
40008 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
40009
40010 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40011
40012 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
40013 (vga_mod_SOURCES): Added.
40014 (vga_mod_CFLAGS): Likewise.
40015 (vga_mod_LDFLAGS): Likewise.
40016
40017 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
40018 grub_outb() calls.
40019 (set_map_mask): Likewise.
40020 (set_read_map): Likewise.
40021 (set_read_address): Likewise.
40022 (vga_font): Removed variable.
40023 (get_vga_glyph): Removed function.
40024 (invalidate_char): Likewise.
40025 (write_char): Changed to use grub_font_get_glyph() for font
40026 information.
40027 (grub_vga_putchar): Likewise.
40028 (grub_vga_getcharwidth): Likewise.
40029
40030 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40031
40032 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
40033 flags.
40034 (pxeboot_img_LDFLAGS): Likewise.
40035 (diskboot_img_LDFLAGS): Likewise.
40036 (kernel_img_LDFLAGS): Likewise.
40037
40038 2007-11-06 Robert Millan <rmh@aybabtu.com>
40039
40040 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
40041 in grub_outb() calls.
40042 (serial_hw_init): Likewise.
40043
40044 2007-11-05 Robert Millan <rmh@aybabtu.com>
40045
40046 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
40047 spaces. Skip non-regular files.
40048
40049 2007-11-05 Robert Millan <rmh@aybabtu.com>
40050
40051 * kern/disk.c (grub_disk_firmware_fini)
40052 (grub_disk_firmware_is_tainted): New variables.
40053
40054 * include/grub/disk.h (grub_disk_firmware_fini)
40055 (grub_disk_firmware_is_tainted): Likewise.
40056
40057 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
40058 (grub_disk_biosdisk_fini): ... to here.
40059 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
40060 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
40061 is set. Register grub_disk_biosdisk_fini() in
40062 `grub_disk_firmware_fini'.
40063
40064 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
40065 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
40066 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
40067 to finish existing firmware disk interface.
40068
40069 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
40070 (ata_mod_SOURCES): New variable.
40071 (ata_mod_CFLAGS): Likewise.
40072 (ata_mod_LDFLAGS): Likewise.
40073
40074 2007-11-05 Robert Millan <rmh@aybabtu.com>
40075
40076 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
40077 (grub_ata_wait): Reimplement using grub_millisleep().
40078
40079 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
40080 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
40081
40082 2007-11-03 Marco Gerards <marco@gnu.org>
40083
40084 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
40085 (CRTC_ADDR_PORT): New macro.
40086 (CRTC_DATA_PORT): Likewise.
40087 (CRTC_CURSOR): Likewise.
40088 (CRTC_CURSOR_ADDR_HIGH): Likewise.
40089 (CRTC_CURSOR_ADDR_LOW): Likewise.
40090 (update_cursor): New function.
40091 (grub_console_real_putchar): Call `update_cursor'.
40092 (grub_console_gotoxy): Likewise.
40093 (grub_console_cls): Set the default color when clearing the
40094 screen.
40095 (grub_console_setcursor): Implemented.
40096
40097 2007-11-03 Marco Gerards <marco@gnu.org>
40098
40099 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
40100 become activate.
40101 (grub_ata_pio_write): Likewise.
40102
40103 (grub_atapi_identify): Wait after issuing an ATA command.
40104 (grub_atapi_packet): Likewise.
40105 (grub_ata_identify): Likewise.
40106 (grub_ata_readwrite): Likewise.
40107
40108 2007-11-03 Marco Gerards <marco@gnu.org>
40109
40110 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
40111 (grub_ata_pio_write): Likewise.
40112 (grub_ata_readwrite): Use `grub_error', instead of
40113 returning `grub_errno'.
40114
40115 2007-11-03 Marco Gerards <marco@gnu.org>
40116
40117 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
40118 grub_ata_pio_write once for every single sector, instead of for
40119 multiple sectors.
40120
40121 2007-10-31 Robert Millan <rmh@aybabtu.com>
40122
40123 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
40124
40125 * conf/i386-linuxbios.rmk: New file.
40126
40127 * kern/i386/pc/hardware.c: Likewise.
40128 * term/i386/pc/at_keyboard.c: Likewise.
40129 * term/i386/pc/vga_text.c: Likewise.
40130
40131 * include/grub/i386/linuxbios/boot.h: Likewise.
40132 * include/grub/i386/linuxbios/console.h: Likewise.
40133 * include/grub/i386/linuxbios/init.h: Likewise.
40134 * include/grub/i386/linuxbios/kernel.h: Likewise.
40135 * include/grub/i386/linuxbios/loader.h: Likewise.
40136 * include/grub/i386/linuxbios/memory.h: Likewise.
40137 * include/grub/i386/linuxbios/serial.h: Likewise.
40138 * include/grub/i386/linuxbios/time.h: Likewise.
40139
40140 * kern/i386/linuxbios/init.c: Likewise.
40141 * kern/i386/linuxbios/startup.S: Likewise.
40142 * kern/i386/linuxbios/table.c: Likewise.
40143
40144 2007-10-31 Marco Gerards <marco@gnu.org>
40145
40146 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
40147 (ata_mod_SOURCES): New variable.
40148 (ata_mod_CFLAGS): Likewise.
40149 (ata_mod_LDFLAGS): Likewise.
40150
40151 * disk/ata.c: New file.
40152
40153 * include/grub/disk.h (grub_disk_dev_id): Add
40154 `GRUB_DISK_DEV_ATA_ID'.
40155
40156 2007-10-31 Robert Millan <rmh@aybabtu.com>
40157
40158 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
40159 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
40160
40161 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
40162 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
40163
40164 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
40165 `<grub/types.h>'.
40166
40167 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
40168
40169 2007-10-27 Robert Millan <rmh@aybabtu.com>
40170
40171 * include/grub/types.h (ULONG_MAX): Define macro.
40172
40173 2007-10-22 Robert Millan <rmh@aybabtu.com>
40174
40175 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
40176 `"../realmode.S"'.
40177 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
40178
40179 2007-10-22 Robert Millan <rmh@aybabtu.com>
40180
40181 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
40182 (pkgdata_MODULES): Add `biosdisk.mod'.
40183 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
40184 variables.
40185
40186 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
40187 (grub_biosdisk_init): Replace with ...
40188 (GRUB_MOD_INIT(biosdisk)): ... this.
40189 (grub_biosdisk_fini): Replace with ...
40190 (GRUB_MOD_FINI(biosdisk)): ... this.
40191
40192 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
40193 (grub_machine_init): Remove call to grub_biosdisk_init().
40194 (grub_machine_fini): Remove call to grub_machine_fini().
40195
40196 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
40197
40198 2007-10-22 Robert Millan <rmh@aybabtu.com>
40199
40200 * include/grub/time.h: New file.
40201 * include/grub/i386/time.h: Likewise.
40202 * include/grub/powerpc/time.h: Likewise.
40203 * include/grub/sparc64/time.h: Likewise.
40204
40205 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
40206 instances to ...
40207 (KERNEL_MACHINE_TIME_HEADER): ... this.
40208 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40209 instances to ...
40210 (KERNEL_MACHINE_TIME_HEADER): ... this.
40211 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40212 instances to ...
40213 (KERNEL_MACHINE_TIME_HEADER): ... this.
40214
40215 * kern/i386/efi/init.c: Include `<grub/time.h>'.
40216 (grub_millisleep): New function.
40217 * kern/i386/pc/init.c: Include `<grub/time.h>'.
40218 (grub_millisleep): New function.
40219 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
40220 Remove `grub/machine/time.h' include.
40221 (grub_millisleep): New function.
40222 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
40223 Remove `grub/machine/time.h' include.
40224 (grub_millisleep): New function.
40225
40226 * include/grub/misc.h (grub_div_roundup): New function.
40227
40228 * kern/misc.c: Include `<grub/time.h>'.
40229 (grub_millisleep_generic): New function.
40230
40231 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
40232 Add `time.h'.
40233 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
40234 Add `time.h'.
40235 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
40236 `machine/time.h'. Add `time.h'.
40237 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40238
40239 2007-10-21 Robert Millan <rmh@aybabtu.com>
40240
40241 * include/grub/misc.h (grub_max): New function.
40242
40243 2007-10-21 Robert Millan <rmh@aybabtu.com>
40244
40245 * util/misc.c (grub_util_info): Call fflush() before returning.
40246
40247 2007-10-20 Robert Millan <rmh@aybabtu.com>
40248
40249 * genmk.rb (Image): Copy `extra_flags' from here ...
40250 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
40251
40252 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
40253 to `argc' and `args' arguments.
40254
40255 2007-10-17 Robert Millan <rmh@aybabtu.com>
40256
40257 * kern/i386/loader.S: New file.
40258
40259 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
40260 * kern/i386/loader.S (grub_linux_prot_size)... to here.
40261 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
40262 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
40263 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
40264 * kern/i386/loader.S (grub_linux_real_addr)... to here.
40265 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
40266 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
40267 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
40268 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
40269 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
40270 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
40271 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
40272 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
40273
40274 * kern/i386/realmode.S: New file.
40275
40276 * kern/i386/pc/startup.S (protstack): Moved from here ...
40277 * kern/i386/realmode.S (protstack)... to here.
40278 * kern/i386/pc/startup.S (gdt): Moved from here ...
40279 * kern/i386/realmode.S (gdt)... to here.
40280 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
40281 * kern/i386/realmode.S (prot_to_real)... to here.
40282
40283 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
40284 `kern/i386/realmode.S'.
40285
40286 2007-10-17 Robert Millan <rmh@aybabtu.com>
40287
40288 * include/grub/i386/loader.h: New file.
40289
40290 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
40291 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40292 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40293 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40294 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
40295 * include/grub/i386/loader.h (grub_linux_prot_size)
40296 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40297 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40298 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40299 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
40300
40301 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
40302
40303 2007-10-15 Robert Millan <rmh@aybabtu.com>
40304
40305 * normal/misc.c (grub_normal_print_device_info): Do not probe for
40306 filesystem when dev->disk is unset.
40307 Do probe for filesystem even when dev->disk->has_partitions is set.
40308 In case a filesystem is found, always report it.
40309 In case it isn't, if dev->disk->has_partitions is set, report that
40310 a partition table was found instead of reporting that no filesystem
40311 could be identified.
40312
40313 2007-10-12 Robert Millan <rmh@aybabtu.com>
40314
40315 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
40316 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
40317
40318 * include/grub/types.h (grub_host_to_target16): New macro.
40319 (grub_host_to_target32): Likewise.
40320 (grub_host_to_target64): Likewise.
40321 (grub_target_to_host16): Likewise.
40322 (grub_target_to_host32): Likewise.
40323 (grub_target_to_host64): Likewise.
40324
40325 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
40326 Renamed from to ...
40327 (GRUB_MOD_ALIGN): ...this. Update all users.
40328
40329 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
40330 grub_host_to_target32.
40331 Replace grub_be_to_cpu32 with grub_target_to_host32.
40332 (load_modules): Likewise.
40333 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
40334 Replace grub_be_to_cpu32 with grub_target_to_host32.
40335 Replace grub_cpu_to_be16 with grub_host_to_target16.
40336 Replace grub_cpu_to_be32 grub_host_to_target32.
40337
40338 2007-10-12 Robert Millan <rmh@aybabtu.com>
40339
40340 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
40341 * util/elf/grub-mkimage.c: ... here.
40342
40343 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
40344 `util/powerpc/ieee1275/grub-mkimage.c'.
40345
40346 2007-10-07 Robert Millan <rmh@aybabtu.com>
40347
40348 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
40349 and make it easier to figure out.
40350 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
40351 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
40352 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
40353 leave us with less than HEAP_MIN_SIZE total heap.
40354 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
40355
40356 2007-10-03 Robert Millan <rmh@aybabtu.com>
40357
40358 * include/grub/i386/io.h: New file.
40359 * commands/i386/pc/play.c (inb): Removed.
40360 (outb): Removed.
40361 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40362 with grub_outb().
40363 * term/i386/pc/serial.c (inb): Removed.
40364 (outb): Removed.
40365 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40366 with grub_outb().
40367 * term/i386/pc/vga.c (inb): Removed.
40368 (outb): Removed.
40369 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40370 with grub_outb().
40371
40372 2007-10-02 Robert Millan <rmh@aybabtu.com>
40373
40374 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
40375 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40376 Reported by Marcin Kurek.
40377
40378 2007-09-07 Robert Millan <rmh@aybabtu.com>
40379
40380 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
40381 SmartFirmware version updates (as released by Sven Luther), and avoid
40382 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
40383 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
40384 known broken.
40385
40386 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40387
40388 From Hitoshi Ozeki:
40389 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
40390 when merging two regions.
40391
40392 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40393
40394 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
40395 * normal/completion.c (grub_normal_do_completion): Likewise.
40396 Reported by Hitoshi Ozeki.
40397
40398 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40399
40400 Do not use devices at boot in chainloading.
40401
40402 * loader/i386/pc/chainloader.c (boot_drive): New variable.
40403 (boot_part_addr): Likewise.
40404 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
40405 with BOOT_DRIVE and BOOT_PART_ADDR.
40406 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
40407 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
40408
40409 2007-08-29 Robert Millan <rmh@aybabtu.com>
40410
40411 Patch from Simon Peter <dn.tlp@gmx.net>:
40412 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
40413 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
40414 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
40415 util/i386/pc/grub-setup.c_DEPENDENCIES.
40416 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
40417 util/grub-probe.c_DEPENDENCIES.
40418 * conf/powerpc-ieee1275.rmk: Likewise.
40419
40420 2007-08-28 Robert Millan <rmh@aybabtu.com>
40421
40422 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
40423 to tell grub-mkdevicemap how to name devices.
40424 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
40425 feature).
40426
40427 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
40428 util/i386/get_disk_name.c.
40429 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
40430 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
40431 util/ieee1275/get_disk_name.c.
40432
40433 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
40434
40435 * DISTLIST: Add util/i386/get_disk_name.c and
40436 util/ieee1275/get_disk_name.c.
40437
40438 * util/grub-mkdevicemap.c: Replace device naming logic with
40439 grub_util_get_disk_name() calls.
40440
40441 2007-08-20 Robert Millan <rmh@aybabtu.com>
40442
40443 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
40444 (so that it works for both plural and singular quantities).
40445
40446 2007-08-05 Robert Millan <rmh@aybabtu.com>
40447
40448 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
40449 so that [xz] isn't taken into account when determining order.
40450
40451 2007-08-02 Marco Gerards <marco@gnu.org>
40452
40453 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
40454 `include/multiboot2.h', `include/grub/elfload.h',
40455 `include/multiboot.h', `include/grub/multiboot.h',
40456 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
40457 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
40458 `kern/elf.c', `loader/multiboot_loader.c',
40459 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
40460 `loader/i386/pc/multiboot2.c',
40461 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
40462 `util/i386/pc/grub-mkrescue.in'. Remove
40463 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
40464 `include/grub/i386/pc/util/biosdisk.h' and
40465 `include/grub/powerpc/ieee1275/multiboot.h'.
40466
40467 2007-08-02 Bean <bean123ch@gmail.com>
40468
40469 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
40470 (ntfs_mod_SOURCES): New variable.
40471 (ntfs_mod_CFLAGS): Likewise.
40472 (ntfs_mod_LDFLAGS): Likewise.
40473
40474 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
40475 (grub_probe_SOURCES): Likewise.
40476 (grub_emu_SOURCES): Likewise.
40477
40478 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40479 (grub_emu_SOURCES): Likewise.
40480
40481 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40482 (grub_emu_SOURCES): Likewise.
40483
40484 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
40485
40486 * fs/ntfs.c: New file.
40487
40488 2007-08-02 Bean <bean123ch@gmail.com>
40489
40490 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
40491
40492 * file.h (grub_file): Likewise.
40493
40494 * fshelp.h (grub_fshelp_read_file): Likewise.
40495
40496 * util/i386/pc/grub-setup.c (setup): Likewise.
40497 (save_first_sector): Likewise.
40498 (save_blocklists): Likewise.
40499
40500 * fs/affs.c (grub_affs_read_file): Likewise.
40501
40502 * fs/ext2.c (grub_ext2_read_file): Likewise.
40503
40504 * fs/fat.c (grub_fat_read_data): Likewise.
40505
40506 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
40507
40508 * fs/hfs.c (grub_hfs_read_file): Likewise.
40509
40510 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
40511
40512 * fs/jfs.c (grub_jfs_read_file): Likewise.
40513
40514 * fs/minix.c (grub_minix_read_file): Likewise.
40515
40516 * fs/sfs.c (grub_sfs_read_file): Likewise.
40517
40518 * fs/ufs.c (grub_ufs_read_file): Likewise.
40519
40520 * fs/xfs.c (grub_xfs_read_file): Likewise.
40521
40522 * command/blocklist.c (read_blocklist): Likewise.
40523 (print_blocklist): Likewise.
40524
40525 2007-08-02 Marco Gerards <marco@gnu.org>
40526
40527 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
40528 `util/hostfs.c'.
40529
40530 * disk/host.c: New file.
40531
40532 * util/hostfs.c: Likewise.
40533
40534 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
40535 return `GRUB_ERR_BAD_FS'.
40536 * fs/sfs.c (grub_sfs_mount): Likewise.
40537 * fs/xfs.c (grub_xfs_mount): Likewise.
40538
40539 * include/grub/disk.h (enum grub_disk_dev_id): Add
40540 `GRUB_DISK_DEVICE_HOST_ID'.
40541
40542 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
40543
40544 2007-07-24 Jerone Young <jerone@gmail.com>
40545
40546 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
40547 modules for compilation.
40548 * conf/powerpc-ieee1275.rmk: Likewise.
40549
40550 * include/multiboot.h: Move multiboot definitions to one file. Rename
40551 many definitions to not get grub specific.
40552 * include/multiboot2.h: Create header with multiboot 2 definitions.
40553 * include/grub/multiboot.h: Header for grub specific function
40554 prototypes and definitions.
40555 * include/grub/multiboot2.h: Likewise.
40556 * include/grub/multiboot_loader.h: Likewise.
40557 * include/grub/i386/pc/multiboot.h: Removed.
40558 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
40559
40560 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
40561 and 2 to allow for one multiboot and module commands.
40562 * loader/multiboot2.c: Add multiboot2 functionality.
40563 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
40564 and definition names.
40565 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
40566 2 functions.
40567 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
40568 ieee1275 specific multiboot2 code.
40569
40570 * kern/i386/pc/startup.S: Change headers and definition names for
40571 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
40572
40573 2007-07-22 Robert Millan <rmh@aybabtu.com>
40574
40575 * geninitheader.sh: Process file specified in first parameter rather
40576 than hardcoding grub_modules_init.lst.
40577 * geninit.sh: Likewise. Also, construct header name dynamically rather
40578 than hardcoding grub_modules_init.h.
40579
40580 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
40581 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
40582 grub_probe_init.[ch] and grub_setup_init.[ch].
40583
40584 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
40585 grub_modules_init.h with grub_emu_init.h.
40586 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
40587 grub_probe_init.[ch] files.
40588 * conf/i386-efi.rmk: Likewise.
40589 * conf/i386-pc.rmk: Likewise.
40590 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
40591 grub_setup_init.[ch] files.
40592
40593 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
40594 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
40595 to initialize modules rather than a list of hardcoded functions.
40596 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
40597 grub_init_all() to initialize modules rather than a list of hardcoded
40598 functions.
40599
40600 2007-07-22 Robert Millan <rmh@aybabtu.com>
40601
40602 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
40603 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
40604
40605 2007-07-22 Robert Millan <rmh@aybabtu.com>
40606
40607 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
40608 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
40609 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
40610 flag when running on SmartFirmware.
40611 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
40612 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
40613 was set.
40614
40615 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40616 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
40617 rather than decreasing it.
40618
40619 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
40620 there's not enough space to do it, fail in the same way as when it
40621 can't be done because there are no partitions.
40622
40623 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
40624 when nvsetenv failed.
40625
40626 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40627
40628 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
40629 because this rule is automatically generated.
40630 (grub-mkrescue): Removed for the same reason as above.
40631
40632 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40633
40634 Migrate to GNU General Public License Version 3.
40635
40636 * COPYING: Replaced with the plain text version of GPLv3.
40637
40638 * config.guess: Updated from gnulib.
40639 * config.sub: Likewise.
40640
40641 * geninit.sh: Output a GPLv3 copyright notice.
40642 * geninitheader.sh: Likewise.
40643 * genmodsrc.sh: Likewise.
40644 * gensymlist.sh.in: Likewise.
40645
40646 * boot/i386/pc/boot.S: Upgraded to GPLv3.
40647 * boot/i386/pc/diskboot.S: Likewise.
40648 * boot/i386/pc/pxeboot.S: Likewise.
40649 * commands/blocklist.c: Likewise.
40650 * commands/boot.c: Likewise.
40651 * commands/cat.c: Likewise.
40652 * commands/cmp.c: Likewise.
40653 * commands/configfile.c: Likewise.
40654 * commands/echo.c: Likewise.
40655 * commands/help.c: Likewise.
40656 * commands/ls.c: Likewise.
40657 * commands/search.c: Likewise.
40658 * commands/terminal.c: Likewise.
40659 * commands/test.c: Likewise.
40660 * commands/videotest.c: Likewise.
40661 * commands/i386/cpuid.c: Likewise.
40662 * commands/i386/pc/halt.c: Likewise.
40663 * commands/i386/pc/play.c: Likewise.
40664 * commands/i386/pc/reboot.c: Likewise.
40665 * commands/i386/pc/vbeinfo.c: Likewise.
40666 * commands/i386/pc/vbetest.c: Likewise.
40667 * commands/ieee1275/halt.c: Likewise.
40668 * commands/ieee1275/reboot.c: Likewise.
40669 * commands/ieee1275/suspend.c: Likewise.
40670 * disk/loopback.c: Likewise.
40671 * disk/lvm.c: Likewise.
40672 * disk/raid.c: Likewise.
40673 * disk/efi/efidisk.c: Likewise.
40674 * disk/i386/pc/biosdisk.c: Likewise.
40675 * disk/ieee1275/ofdisk.c: Likewise.
40676 * font/manager.c: Likewise.
40677 * fs/affs.c: Likewise.
40678 * fs/ext2.c: Likewise.
40679 * fs/fat.c: Likewise.
40680 * fs/fshelp.c: Likewise.
40681 * fs/hfs.c: Likewise.
40682 * fs/hfsplus.c: Likewise.
40683 * fs/iso9660.c: Likewise.
40684 * fs/jfs.c: Likewise.
40685 * fs/minix.c: Likewise.
40686 * fs/sfs.c: Likewise.
40687 * fs/ufs.c: Likewise.
40688 * fs/xfs.c: Likewise.
40689 * hello/hello.c: Likewise.
40690 * include/grub/acorn_filecore.h: Likewise.
40691 * include/grub/arg.h: Likewise.
40692 * include/grub/bitmap.h: Likewise.
40693 * include/grub/boot.h: Likewise.
40694 * include/grub/cache.h: Likewise.
40695 * include/grub/device.h: Likewise.
40696 * include/grub/disk.h: Likewise.
40697 * include/grub/dl.h: Likewise.
40698 * include/grub/elfload.h: Likewise.
40699 * include/grub/env.h: Likewise.
40700 * include/grub/err.h: Likewise.
40701 * include/grub/file.h: Likewise.
40702 * include/grub/font.h: Likewise.
40703 * include/grub/fs.h: Likewise.
40704 * include/grub/fshelp.h: Likewise.
40705 * include/grub/gzio.h: Likewise.
40706 * include/grub/hfs.h: Likewise.
40707 * include/grub/kernel.h: Likewise.
40708 * include/grub/loader.h: Likewise.
40709 * include/grub/lvm.h: Likewise.
40710 * include/grub/misc.h: Likewise.
40711 * include/grub/mm.h: Likewise.
40712 * include/grub/net.h: Likewise.
40713 * include/grub/normal.h: Likewise.
40714 * include/grub/parser.h: Likewise.
40715 * include/grub/partition.h: Likewise.
40716 * include/grub/pc_partition.h: Likewise.
40717 * include/grub/raid.h: Likewise.
40718 * include/grub/rescue.h: Likewise.
40719 * include/grub/script.h: Likewise.
40720 * include/grub/setjmp.h: Likewise.
40721 * include/grub/symbol.h: Likewise.
40722 * include/grub/term.h: Likewise.
40723 * include/grub/terminfo.h: Likewise.
40724 * include/grub/tparm.h: Likewise.
40725 * include/grub/types.h: Likewise.
40726 * include/grub/video.h: Likewise.
40727 * include/grub/efi/api.h: Likewise.
40728 * include/grub/efi/chainloader.h: Likewise.
40729 * include/grub/efi/console.h: Likewise.
40730 * include/grub/efi/console_control.h: Likewise.
40731 * include/grub/efi/disk.h: Likewise.
40732 * include/grub/efi/efi.h: Likewise.
40733 * include/grub/efi/pe32.h: Likewise.
40734 * include/grub/efi/time.h: Likewise.
40735 * include/grub/i386/linux.h: Likewise.
40736 * include/grub/i386/setjmp.h: Likewise.
40737 * include/grub/i386/types.h: Likewise.
40738 * include/grub/i386/efi/kernel.h: Likewise.
40739 * include/grub/i386/efi/loader.h: Likewise.
40740 * include/grub/i386/efi/time.h: Likewise.
40741 * include/grub/i386/pc/biosdisk.h: Likewise.
40742 * include/grub/i386/pc/boot.h: Likewise.
40743 * include/grub/i386/pc/chainloader.h: Likewise.
40744 * include/grub/i386/pc/console.h: Likewise.
40745 * include/grub/i386/pc/init.h: Likewise.
40746 * include/grub/i386/pc/kernel.h: Likewise.
40747 * include/grub/i386/pc/loader.h: Likewise.
40748 * include/grub/i386/pc/memory.h: Likewise.
40749 * include/grub/i386/pc/multiboot.h: Likewise.
40750 * include/grub/i386/pc/serial.h: Likewise.
40751 * include/grub/i386/pc/time.h: Likewise.
40752 * include/grub/i386/pc/vbe.h: Likewise.
40753 * include/grub/i386/pc/vbeblit.h: Likewise.
40754 * include/grub/i386/pc/vbefill.h: Likewise.
40755 * include/grub/i386/pc/vbeutil.h: Likewise.
40756 * include/grub/i386/pc/vga.h: Likewise.
40757 * include/grub/ieee1275/ieee1275.h: Likewise.
40758 * include/grub/ieee1275/ofdisk.h: Likewise.
40759 * include/grub/powerpc/libgcc.h: Likewise.
40760 * include/grub/powerpc/setjmp.h: Likewise.
40761 * include/grub/powerpc/types.h: Likewise.
40762 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
40763 * include/grub/powerpc/ieee1275/console.h: Likewise.
40764 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
40765 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
40766 * include/grub/powerpc/ieee1275/loader.h: Likewise.
40767 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
40768 * include/grub/powerpc/ieee1275/time.h: Likewise.
40769 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
40770 * include/grub/sparc64/libgcc.h: Likewise.
40771 * include/grub/sparc64/setjmp.h: Likewise.
40772 * include/grub/sparc64/types.h: Likewise.
40773 * include/grub/sparc64/ieee1275/console.h: Likewise.
40774 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
40775 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
40776 * include/grub/sparc64/ieee1275/time.h: Likewise.
40777 * include/grub/util/biosdisk.h: Likewise.
40778 * include/grub/util/getroot.h: Likewise.
40779 * include/grub/util/lvm.h: Likewise.
40780 * include/grub/util/misc.h: Likewise.
40781 * include/grub/util/raid.h: Likewise.
40782 * include/grub/util/resolve.h: Likewise.
40783 * io/gzio.c: Likewise.
40784 * kern/device.c: Likewise.
40785 * kern/disk.c: Likewise.
40786 * kern/dl.c: Likewise.
40787 * kern/elf.c: Likewise.
40788 * kern/env.c: Likewise.
40789 * kern/err.c: Likewise.
40790 * kern/file.c: Likewise.
40791 * kern/fs.c: Likewise.
40792 * kern/loader.c: Likewise.
40793 * kern/main.c: Likewise.
40794 * kern/misc.c: Likewise.
40795 * kern/mm.c: Likewise.
40796 * kern/parser.c: Likewise.
40797 * kern/partition.c: Likewise.
40798 * kern/rescue.c: Likewise.
40799 * kern/term.c: Likewise.
40800 * kern/efi/efi.c: Likewise.
40801 * kern/efi/init.c: Likewise.
40802 * kern/efi/mm.c: Likewise.
40803 * kern/i386/dl.c: Likewise.
40804 * kern/i386/efi/init.c: Likewise.
40805 * kern/i386/efi/startup.S: Likewise.
40806 * kern/i386/pc/init.c: Likewise.
40807 * kern/i386/pc/lzo1x.S: Likewise.
40808 * kern/i386/pc/startup.S: Likewise.
40809 * kern/ieee1275/ieee1275.c: Likewise.
40810 * kern/powerpc/cache.S: Likewise.
40811 * kern/powerpc/dl.c: Likewise.
40812 * kern/powerpc/ieee1275/cmain.c: Likewise.
40813 * kern/powerpc/ieee1275/crt0.S: Likewise.
40814 * kern/powerpc/ieee1275/init.c: Likewise.
40815 * kern/powerpc/ieee1275/openfw.c: Likewise.
40816 * kern/sparc64/cache.S: Likewise.
40817 * kern/sparc64/dl.c: Likewise.
40818 * kern/sparc64/ieee1275/init.c: Likewise.
40819 * kern/sparc64/ieee1275/openfw.c: Likewise.
40820 * loader/efi/chainloader.c: Likewise.
40821 * loader/efi/chainloader_normal.c: Likewise.
40822 * loader/i386/efi/linux.c: Likewise.
40823 * loader/i386/efi/linux_normal.c: Likewise.
40824 * loader/i386/pc/chainloader.c: Likewise.
40825 * loader/i386/pc/chainloader_normal.c: Likewise.
40826 * loader/i386/pc/linux.c: Likewise.
40827 * loader/i386/pc/linux_normal.c: Likewise.
40828 * loader/i386/pc/multiboot.c: Likewise.
40829 * loader/i386/pc/multiboot_normal.c: Likewise.
40830 * loader/powerpc/ieee1275/linux.c: Likewise.
40831 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40832 * normal/arg.c: Likewise.
40833 * normal/cmdline.c: Likewise.
40834 * normal/command.c: Likewise.
40835 * normal/completion.c: Likewise.
40836 * normal/execute.c: Likewise.
40837 * normal/function.c: Likewise.
40838 * normal/lexer.c: Likewise.
40839 * normal/main.c: Likewise.
40840 * normal/menu.c: Likewise.
40841 * normal/menu_entry.c: Likewise.
40842 * normal/misc.c: Likewise.
40843 * normal/parser.y: Likewise.
40844 * normal/script.c: Likewise.
40845 * normal/i386/setjmp.S: Likewise.
40846 * normal/powerpc/setjmp.S: Likewise.
40847 * normal/sparc64/setjmp.S: Likewise.
40848 * partmap/acorn.c: Likewise.
40849 * partmap/amiga.c: Likewise.
40850 * partmap/apple.c: Likewise.
40851 * partmap/gpt.c: Likewise.
40852 * partmap/pc.c: Likewise.
40853 * partmap/sun.c: Likewise.
40854 * term/gfxterm.c: Likewise.
40855 * term/terminfo.c: Likewise.
40856 * term/efi/console.c: Likewise.
40857 * term/i386/pc/console.c: Likewise.
40858 * term/i386/pc/serial.c: Likewise.
40859 * term/i386/pc/vesafb.c: Likewise.
40860 * term/i386/pc/vga.c: Likewise.
40861 * term/ieee1275/ofconsole.c: Likewise.
40862 * util/biosdisk.c: Likewise.
40863 * util/console.c: Likewise.
40864 * util/genmoddep.c: Likewise.
40865 * util/getroot.c: Likewise.
40866 * util/grub-emu.c: Likewise.
40867 * util/grub-mkdevicemap.c: Likewise.
40868 * util/grub-probe.c: Likewise.
40869 * util/lvm.c: Likewise.
40870 * util/misc.c: Likewise.
40871 * util/raid.c: Likewise.
40872 * util/resolve.c: Likewise.
40873 * util/update-grub.in: Likewise.
40874 * util/update-grub_lib.in: Likewise.
40875 * util/grub.d/00_header.in: Likewise.
40876 * util/grub.d/10_hurd.in: Likewise.
40877 * util/grub.d/10_linux.in: Likewise.
40878 * util/i386/efi/grub-install.in: Likewise.
40879 * util/i386/efi/grub-mkimage.c: Likewise.
40880 * util/i386/pc/grub-install.in: Likewise.
40881 * util/i386/pc/grub-mkimage.c: Likewise.
40882 * util/i386/pc/grub-mkrescue.in: Likewise.
40883 * util/i386/pc/grub-setup.c: Likewise.
40884 * util/i386/pc/misc.c: Likewise.
40885 * util/powerpc/ieee1275/grub-install.in: Likewise.
40886 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
40887 * util/powerpc/ieee1275/misc.c: Likewise.
40888 * video/bitmap.c: Likewise.
40889 * video/video.c: Likewise.
40890 * video/i386/pc/vbe.c: Likewise.
40891 * video/i386/pc/vbeblit.c: Likewise.
40892 * video/i386/pc/vbefill.c: Likewise.
40893 * video/i386/pc/vbeutil.c: Likewise.
40894 * video/readers/tga.c: Likewise.
40895
40896 2007-07-02 Robert Millan <rmh@aybabtu.com>
40897
40898 * conf/i386-efi.rmk: Replace obsolete reference to
40899 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
40900 with util/getroot.c.
40901 * conf/powerpc-ieee1275.rmk: Likewise.
40902 * conf/sparc64-ieee1275.rmk: Likewise.
40903
40904 * util/grub-emu.c (main): Fix unchecked pointer handling.
40905
40906 2007-07-02 Robert Millan <rmh@aybabtu.com>
40907
40908 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
40909 invocation to fail, in order to support partition-less media.
40910
40911 * util/i386/pc/grub-install.in: Likewise.
40912
40913 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
40914 which fs or partmap modules are needed (akin to its sister scripts).
40915
40916 Also use grub-probe to get rid of unportable /proc/mounts check.
40917
40918 Print the same informational message that the other scripts do, before
40919 exiting.
40920
40921 2007-06-23 Robert Millan <rmh@aybabtu.com>
40922
40923 * util/update-grub_lib.in (font_path): New function. Determine whether
40924 a font file can be found and, if so, echo the GRUB path to it.
40925
40926 * util/update-grub.in: Handle multiple terminals depending on user
40927 input, platform availability and font file presence. Propagate
40928 variables of our findings to /etc/grub.d/ children.
40929
40930 * util/grub.d/00_header.in: Handle multiple terminals, based on
40931 environment setup by update-grub.
40932
40933 2007-06-23 Robert Millan <rmh@aybabtu.com>
40934
40935 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
40936
40937 2007-06-21 Robert Millan <rmh@aybabtu.com>
40938
40939 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
40940 indicate end of data section in kernel image.
40941 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
40942 GRUB_KERNEL_MACHINE_DATA_END.
40943
40944 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
40945 space for it.
40946 * kern/i386/efi/startup.S: Likewise.
40947
40948 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
40949 during image generation. Implement --prefix option to override this
40950 patch.
40951 * util/i386/efi/grub-mkimage.c: Likewise.
40952
40953 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
40954 code to make path relative to its root into a separate function.
40955
40956 * util/i386/pc/grub-install.in: Use newly provided
40957 make_system_path_relative_to_its_root() to convert ${grubdir}, then
40958 pass the result to grub-install --prefix.
40959
40960 2007-06-13 Robert Millan <rmh@aybabtu.com>
40961
40962 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
40963 DEFAULT_DEVICE_MAP.
40964 * util/grub-emu.c: Use above definitions from misc.h instead of
40965 defining them.
40966 * util/grub-mkdevicemap.c: Likewise.
40967 * util/i386/pc/grub-setup.c: Likewise.
40968 * util/grub-probe.c: Likewise.
40969 (probe): Abort with grub_util_error() when either
40970 grub_guess_root_device or grub_util_get_grub_dev fails.
40971
40972 2007-06-12 Robert Millan <rmh@aybabtu.com>
40973
40974 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
40975 "pager" assignment.
40976 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
40977 "pcdata".
40978 * util/grub-probe.c (probe): Likewise for "drive_name".
40979
40980 2007-06-11 Robert Millan <rmh@aybabtu.com>
40981
40982 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
40983 not just the cdrom one.
40984
40985 2007-06-11 Robert Millan <rmh@aybabtu.com>
40986
40987 * util/i386/pc/grub-mkrescue.in: Add "set -e".
40988 Add --pkglibdir=DIR option to override pkglibdir.
40989 Mention --image-type=TYPE in help output.
40990 Fix --grub-mkimage (it was a no-op).
40991 Abort gracefully when no parameter is given.
40992
40993 2007-06-11 Robert Millan <rmh@aybabtu.com>
40994
40995 * util/i386/pc/grub-mkrescue.in: New file.
40996 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
40997 * Makefile.in: Handle bin_SCRIPTS.
40998
40999 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
41000
41001 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
41002 list of video modes.
41003
41004 2007-06-06 Robert Millan <rmh@aybabtu.com>
41005
41006 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
41007 file doesn't exist, or if it is in a filesystem grub can't read.
41008
41009 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
41010 not abort if GRUB_DRIVE could not be defined. Rearrange generated
41011 header comment to fit in 80 columns when the variables are resolved.
41012
41013 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
41014 could be identified by update-grub. Remove redundant check for
41015 unifont.pff existence (since convert_system_path_to_grub_path now
41016 handles that).
41017
41018 2007-06-04 Robert Millan <rmh@aybabtu.com>
41019
41020 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
41021
41022 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
41023
41024 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
41025
41026 2007-06-04 Robert Millan <rmh@aybabtu.com>
41027
41028 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
41029
41030 * include/grub/partition.h: Declare grub_apple_partition_map_init and
41031 grub_apple_partition_map_fini.
41032
41033 * util/biosdisk.c
41034 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
41035 to access >2 TiB disks).
41036
41037 Print disk->total_sectors with %llu instead of %lu, since this
41038 variable is always 64-bit (prevents wrong disk size from being displayed
41039 on either >2 TiB disk or big-endian CPU).
41040
41041 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
41042 into a generic case that supports all (sane) partition maps.
41043
41044 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
41045 breaks big-endian.
41046
41047 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
41048 and grub_apple_partition_map_fini() after that.
41049
41050 2007-06-01 Robert Millan <rmh@aybabtu.com>
41051
41052 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
41053
41054 * util/grub.d/00_header.in: Only enable gfxterm when
41055 convert_system_path_to_grub_path() succeeds.
41056
41057 2007-05-20 Robert Millan <rmh@aybabtu.com>
41058
41059 * util/update-grub_lib.in: New file.
41060 * DISTLIST: Add update-grub_lib.in.
41061 * conf/common.rmk: Generate update-grub_lib and install it in
41062 $(lib_DATA).
41063 * Makefile.in: Add install routine for $(lib_DATA).
41064
41065 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
41066 function provided by update-grub_lib to support arbitrary paths of
41067 unifont.pff.
41068 * util/update-grub.in: Use convert_system_path_to_grub_path() to
41069 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
41070
41071 2007-05-19 Robert Millan <rmh@aybabtu.com>
41072
41073 * commands/i386/cpuid.c: New module.
41074 * DISTLIST: Add it.
41075 * conf/i386-efi.rmk: Enable cpuid.mod.
41076 * conf/i386-pc.rmk: Likewise.
41077
41078 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41079
41080 * kern/disk.c (grub_disk_read): Check return value of
41081 grub_realloc().
41082
41083 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41084
41085 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
41086 arrays.
41087 * disk/raid.c (grub_raid_open): Likewise.
41088
41089 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41090
41091 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
41092 stack instead of on the heap.
41093
41094 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
41095 before doing a read on it.
41096
41097 * configure.ac: Only use -fno-stack-protector for the target
41098 environment.
41099
41100 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41101
41102 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
41103 __attribute_ ((unused)) to mode_type argument.
41104
41105 * util/getroot.c (grub_guess_root_device): Fix #endif.
41106
41107 * kern/misc.c (memcmp): Fix prototype.
41108
41109 * include/grub/partition.h [GRUB_UTIL]
41110 (grub_gpt_partition_map_init): Add prototype.
41111 (grub_gpt_partition_map_fini): Likewise.
41112
41113 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
41114 at the right place.
41115
41116 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
41117 (grub_fat_read_data): Likewise.
41118 (grub_fat_find_dir): Likewise.
41119
41120 * font/manager.c (find_glyph): Make table a const.
41121 (grub_font_get_glyph): Remove bitmap from if statement.
41122
41123 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
41124
41125 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
41126 code, first search for device in /dev/mapper, then in /dev.
41127 (grub_util_get_grub_dev): New function.
41128 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
41129 prototype.
41130 * util/grub-probe.c (probe): Remove check for RAID, call
41131 grub_util_get_grub_dev() instead of
41132 grub_util_biosdisk_get_grub_dev().
41133 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
41134 grub_util_biosdisk_get_grub_dev().
41135 * util/i386/pc/grub-setup.c (main): Likewise.
41136
41137 2007-05-16 Robert Millan <rmh@aybabtu.com>
41138
41139 * DISTLIST: Update for the latest changes.
41140 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
41141 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
41142 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
41143 grub/util/biosdisk.h.
41144 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
41145 grub/util/biosdisk.h.
41146
41147 2007-05-16 Robert Millan <rmh@aybabtu.com>
41148
41149 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
41150
41151 2007-05-16 Robert Millan <rmh@aybabtu.com>
41152
41153 * util/i386/efi/grub-install.in: New.
41154 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
41155 newly added grub-install.
41156 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
41157 include.
41158 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
41159 grub/util/biosdisk.h.
41160 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
41161 grub/util/biosdisk.h.
41162
41163 2007-05-16 Robert Millan <rmh@aybabtu.com>
41164
41165 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
41166 * include/grub/util/biosdisk.h: ... here.
41167 * util/i386/pc/biosdisk.c: Moved to ...
41168 * util/biosdisk.c: ... here.
41169 * util/i386/pc/getroot.c: Moved to ...
41170 * util/getroot.c: ... here.
41171 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
41172 * util/grub-mkdevicemap.c: ... here.
41173 * util/i386/pc/grub-probe.c: Moved to ...
41174 * util/grub-probe.c: ... here.
41175
41176 2007-05-15 Robert Millan <rmh@aybabtu.com>
41177
41178 * util/update-grub.in: Remove duplicated line in grub.cfg header
41179 message.
41180
41181 2007-05-13 Robert Millan <rmh@aybabtu.com>
41182
41183 * util/update-grub.in: Fix a few assumptions about the devices holding
41184 /, /boot and /boot/grub being the same.
41185 * util/grub.d/00_header.in: Likewise.
41186 * util/grub.d/10_hurd.in: Likewise.
41187 * util/grub.d/10_linux.in: Likewise.
41188
41189 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
41190 patterns. Use that to define the `.old' suffix as older than `'.
41191
41192 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
41193
41194 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
41195 the grub.cfg header message.
41196
41197 2007-05-11 Robert Millan <rmh@aybabtu.com>
41198
41199 * util/update-grub.in: Create device.map if it doesn't already exist,
41200 before attempting to run grub-probe.
41201 Check for grub-probe and grub-mkdevicemap with the same code
41202 grub-install is using.
41203 Remove test mode.
41204
41205 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
41206
41207 * Makefile.in: Add the datarootdir autoconf variable.
41208
41209 2007-05-09 Robert Millan <rmh@aybabtu.com>
41210
41211 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
41212 fail gracefully if dev->disk->partition == NULL.
41213
41214 2007-05-07 Robert Millan <rmh@aybabtu.com>
41215
41216 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
41217 determine partition map module.
41218 * util/i386/pc/grub-install.in: Use this feature to decide which
41219 partition module to load, instead of hardcoding pc and gpt.
41220
41221 2007-05-07 Robert Millan <rmh@aybabtu.com>
41222
41223 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
41224 source directory differs from build directory.
41225
41226 2007-05-05 Robert Millan <rmh@aybabtu.com>
41227
41228 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
41229 initialisation.
41230
41231 2007-05-05 Robert Millan <rmh@aybabtu.com>
41232
41233 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
41234
41235 2007-05-05 Robert Millan <rmh@aybabtu.com>
41236
41237 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
41238 command-line arguments via ${GRUB_CMDLINE_LINUX}.
41239
41240 2007-05-05 Robert Millan <rmh@aybabtu.com>
41241
41242 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
41243 (grub_probe_SOURCES): Likewise.
41244 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
41245 GPT and initialize dos_part and bsd_part accordingly.
41246 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
41247 install_bsd_part.
41248 (main): Activate gpt module for use during partition identification,
41249 and deactivate it afterwards.
41250 * util/i386/pc/grub-install.in: Add gpt module to core.img.
41251 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
41252 partition identification, and deactivate it afterwards.
41253
41254 2007-05-05 Robert Millan <rmh@aybabtu.com>
41255
41256 * term/i386/pc/console.c (grub_console_fini): Call
41257 grub_term_set_current() before grub_term_unregister().
41258
41259 2007-05-04 Robert Millan <rmh@aybabtu.com>
41260
41261 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
41262 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
41263 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
41264 and update-grub_DATA.
41265 * conf/common.rmk: Build and install update-grub components.
41266 * conf/common.mk: Regenerate.
41267 * util/update-grub.in: New. Core of update-grub.
41268 * util/grub.d/00_header.in: New. Generates grub.cfg header.
41269 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
41270 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
41271 * util/grub.d/README: New. Document grub.d directory layout.
41272
41273 2007-05-01 Robert Millan <rmh@aybabtu.com>
41274
41275 * util/grub-emu.c: Move initialization functions
41276 grub_util_biosdisk_init() and grub_init_all() before
41277 grub_util_biosdisk_get_grub_dev(), which relies on them.
41278
41279 2007-04-19 Robert Millan <rmh@aybabtu.com>
41280
41281 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
41282 it is used later.
41283
41284 2007-04-18 Jerone Young <jerone@gmail.com>
41285
41286 * kernel/elf.c: Add missing parenthesis for conditional statement
41287 stanza.
41288
41289 2007-04-10 Jerone Young <jerone@gmail.com>
41290
41291 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
41292 continue on and look for device node with real device name.
41293
41294 2007-04-10 Jerone Young <jerone@gmail.com>
41295
41296 * configure.ac: Add argument for autoconf to use transformation
41297 ability.
41298 * Makefile.in: Add autoconf package transformation code.
41299 * util/i386/pc/grub-install.in: Likewise.
41300 * util/powerpc/ieee1275/grub-install.in: Likewise.
41301
41302 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
41303
41304 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
41305 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
41306 (EXT2_REVISION): Likewise.
41307 (EXT2_INODE_SIZE): Likewise.
41308 (struct grub_ext2_block_group): Added a missing member
41309 "used_dirs".
41310 (grub_ext2_read_inode): Divide by the inode size in a superblock
41311 instead of 128 to obtain INODES_PER_BLOCK.
41312 Use the macro EXT2_INODE_SIZE instead of directly using
41313 SBLOCK->INODE_SIZE.
41314
41315 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
41316
41317 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
41318 superblock instead of the structure size to compute an
41319 offset. This fixes the problem that GRUB could not read a
41320 filesystem when inode size is different from 128-byte.
41321
41322 2007-03-05 Marco Gerards <marco@gnu.org>
41323
41324 * normal/main.c (read_config_file): When "menu" is not set, create
41325 an initial context.
41326
41327 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41328
41329 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
41330 (HEAP_LIMIT): New macro.
41331 (grub_claim_heap): Claim memory up to `heaplimit'.
41332
41333 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41334
41335 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
41336 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
41337 (_start): Likewise.
41338 (grub_arch_modules_addr): Return address after `_end'.
41339 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
41340 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
41341 (add_segments): Calculate `_end' from phdr size and location.
41342 (ALIGN_UP): Moved to ...
41343 * include/grub/misc.h: here.
41344 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
41345 New macro.
41346 (GRUB_IEEE1275_MODULE_BASE): Removed.
41347
41348 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41349
41350 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
41351 loop boundary.
41352
41353 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41354
41355 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
41356 All users updated.
41357 (grub_elf64_load_hook_t): Likewise.
41358 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
41359 debug output.
41360
41361 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41362
41363 * kern/mm.c: Update copyright.
41364 (grub_mm_debug): Correct syntax error.
41365 (grub_mm_dump_free): New function.
41366 (grub_debug_free): Call `grub_free'.
41367 * include/grub/mm.h: Update copyright.
41368 (grub_mm_dump_free): Add declaration.
41369
41370 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41371
41372 * include/grub/ieee1275/ieee1275.h: Update copyright.
41373 * kern/powerpc/ieee1275/init.c: Likewise.
41374 * kern/powerpc/ieee1275/openfw.c: Likewise.
41375
41376 * loader/powerpc/ieee1275/linux.c: Likewise.
41377 * include/grub/elfload.h: Likewise.
41378 * kern/elf.c: Likewise.
41379 (grub_elf32_load): Pass `base' and `size' parameters. Update all
41380 callers.
41381 (grub_elf64_load): Likewise.
41382 (grub_elf32_load_segment): Move to a nested function.
41383 (grub_elf64_load_segment): Likewise.
41384
41385 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41386
41387 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
41388 prototype.
41389 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
41390 (grub_heap_len): Likewise.
41391 (HEAP_SIZE): New macro.
41392 (grub_claim_heap): New function.
41393 (grub_machine_init): Don't claim heap directly. Call
41394 `grub_claim_heap'.
41395 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
41396 (grub_available_iterate): New function.
41397
41398 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
41399
41400 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
41401 * configure.ac: Use it for testing the HOST and TARGET compilers.
41402
41403 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
41404
41405 * Makefile.in (enable_grub_emu): New variable.
41406 * configure.ac (--enable-grub-emu): New option.
41407 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
41408 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
41409 * conf/i386-pc.rmk: Likewise.
41410 * conf/powerpc-ieee1275.rmk: Likewise.
41411 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
41412
41413 2006-12-12 Marco Gerards <marco@gnu.org>
41414
41415 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
41416
41417 * kern/env.c (grub_env_unset): Don't free the member `value' when
41418 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
41419 pointer.
41420
41421 * normal/main.c (current_menu): Removed.
41422 (free_menu): Unset the `menu' environment variable.
41423 (grub_normal_menu_addentry): Make use of the environment variable
41424 `menu', instead of using the global `current_menu'. Allocate
41425 memory for the sourcecode of this entry.
41426 (read_config_file): New argument `nested', changed all callers.
41427 Only in the case of a new context, initialize a new menu. Set the
41428 `menu' environment variable.
41429 (grub_normal_execute): Don't set and unset the environment
41430 variable `menu' here anymore. Only free the menu when leaving the
41431 context.
41432
41433 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
41434 leak.
41435
41436 2006-12-11 Marco Gerards <marco@gnu.org>
41437
41438 * normal/menu_entry.c (run): Fix off by one bug so the last line
41439 is executed. Move the loader check to outside the loop.
41440
41441 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
41442
41443 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
41444
41445 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
41446
41447 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
41448 the number of sectors. Reported by Andrey Shuvikov
41449 <mr_hyro@yahoo.com>.
41450
41451 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
41452
41453 * kern/disk.c (grub_disk_read): When there is a read error, always
41454 try to read only the necessary data.
41455
41456 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
41457 disk/raid.c.
41458 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
41459 prototype.
41460 [GRUB_UTIL] (grub_raid_fini): Likewise.
41461 [GRUB_UTIL] (grub_lvm_init): Likewise.
41462 [GRUB_UTIL] (grub_lvm_fini): Likewise.
41463 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
41464 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
41465 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
41466 and grub_raid_fini().
41467
41468 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
41469
41470 * include/grub/types.h (__unused): Rename to UNUSED.
41471 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
41472 (grub_elf64_size): Likewise.
41473
41474 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41475
41476 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
41477 grub_error_push and grub_error_pop in the error-handling path.
41478 (grub_elf32_load_segment): Only call grub_file_read with non-zero
41479 length.
41480
41481 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41482
41483 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
41484 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41485 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41486 (kernel_elf_SOURCES): Likewise.
41487 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
41488 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
41489 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41490 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41491 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
41492 (elf_mod_SOURCES): New variable.
41493 (elf_mod_CFLAGS): Likewise.
41494 (elf_mod_LDFLAGS): Likewise.
41495 * include/grub/types.h (__unused): New macro.
41496 * include/grub/elfload.h: New file.
41497 * kern/elf.c: Likewise.
41498 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
41499 (ELF32_LOADMASK): New macro.
41500 (ELF64_LOADMASK): Likewise.
41501 (vmlinux): Removed.
41502 (grub_linux_load32): New function.
41503 (grub_linux_load64): Likewise.
41504 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
41505 Use grub_elf_t instead of grub_file_t.
41506
41507 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
41508
41509 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
41510 `catch_result' to struct set_color_args.
41511
41512 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
41513
41514 * normal/menu.c: Include grub/script.h.
41515 * normal/menu_entry.c: Likewise.
41516 * include/grub/normal.h: Do not include grub/script.h.
41517
41518 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41519
41520 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
41521
41522 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41523
41524 * kern/disk.c (grub_disk_open): Print debug messages when opening a
41525 disk.
41526 (grub_disk_close): Print debug messages when closing a disk.
41527 (grub_disk_read): Print debug messages when disk read fails.
41528 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
41529 filesystem type.
41530 * kern/partition.c: Include misc.h.
41531 (grub_partition_iterate): Print debug messages when detecting
41532 partition type.
41533
41534 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41535
41536 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
41537 is negative.
41538 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
41539
41540 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
41541
41542 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41543 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
41544
41545 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
41546
41547 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
41548 instead of sizeof(lv). Patch by Michael Guntsche.
41549
41550 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
41551
41552 * disk/lvm.c: Rename VGS to VG_LIST.
41553 (grub_lvm_iterate): Change VGS->LV to VG-LV.
41554 (grub_lvm_open): Likewise.
41555 Thanks to Michael Guntsche for finding this bug.
41556
41557 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
41558
41559 * configure.ac (AC_INIT): Bumped to 1.95.
41560
41561 2006-10-14 Robert Millan <rmh@aybabtu.com>
41562
41563 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
41564 with "/dev/.static/dev/md".
41565
41566 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41567
41568 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
41569 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
41570 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
41571 DRIVE_NAME are always freed.
41572
41573 * util/i386/pc/biosdisk.c (make_device_name): Add one into
41574 DOS_PART, as a DOS partition is counted from one instead of zero
41575 now. Reported by Robert Millan.
41576
41577 2006-10-14 Robert Millan <rmh@aybabtu.com>
41578
41579 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
41580 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
41581 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
41582 string returned by grub_guess_root_device.
41583 * util/i386/pc/grub-setup.c: Likewise.
41584 * util/i386/pc/grub-probefs.c: Likewise.
41585
41586 * util/i386/pc/grub-probefs.c: Rename to ...
41587 * util/i386/pc/grub-probe.c: ... this.
41588 * DISTLIST: Remove grub-probefs, add grub-probe.
41589 * conf/i386-efi.rmk: Likewise.
41590 * conf/i386-pc.rmk: Likewise.
41591 * util/i386/pc/grub-install.in: Likewise.
41592
41593 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
41594 choose which information we want to print.
41595
41596 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41597
41598 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
41599 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
41600 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
41601 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
41602 video/readers/tga.c and video/i386/pc/vbeutil.c.
41603
41604 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
41605
41606 Added support for RAID and LVM.
41607
41608 * disk/lvm.c: New file.
41609 * disk/raid.c: Likewise.
41610 * include/grub/lvm.h: Likewise.
41611 * include/grub/raid.h: Likewise.
41612 * include/grub/util/lvm.h: Likewise.
41613 * include/grub/util/raid.h: Likewise.
41614 * util/lvm.c: Likewise.
41615 * util/raid.c: Likewise.
41616
41617 * include/grub/disk.h (grub_disk_dev_id): Add
41618 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
41619 (grub_disk_get_size): New prototype.
41620 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
41621 returns a partition.
41622 (grub_disk_get_size): New function.
41623
41624 * kern/i386/pc/init.c (make_install_device): Copy the prefix
41625 verbatim if grub_install_dos_part is -2.
41626
41627 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
41628 and LVM devices.
41629
41630 * util/i386/pc/grub-setup.c (setup): New argument
41631 MUST_EMBED. Force embedding of GRUB when the argument is
41632 true. Close FILE before returning.
41633 (main): Add support for RAID and LVM.
41634
41635 * conf/common.rmk: Add RAID and LVM modules.
41636 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
41637 util/lvm.c.
41638 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
41639
41640 * kern/misc.c (grub_strstr): New function.
41641 * include/grub/misc.h (grub_strstr): New prototype.
41642
41643 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
41644
41645 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
41646
41647 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
41648
41649 * kern/misc.c (grub_strtoull): Guess the base only if not
41650 specified.
41651
41652 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41653
41654 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
41655 PowerMac support.
41656
41657 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41658
41659 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
41660
41661 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
41662 Remove `flags' argument. All callers changed.
41663 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
41664 (IEEE1275_IHANDLE_INVALID): New variable.
41665 (IEEE1275_CELL_INVALID): New variable.
41666 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
41667 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
41668 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
41669 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
41670 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
41671 codes from Open Firmware. All callers updated.
41672 (grub_ieee1275_next_property): Directly return Open Firmware return
41673 code.
41674 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41675 Standardize error checking from `grub_ieee1275_get_property'.
41676 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
41677 `devalias' to `aliases'. Correct comments. Consolidate error paths.
41678
41679 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41680
41681 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
41682 `instance_to_package_args' to `instance_to_path_args'.
41683
41684 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
41685 `grub_ieee1275_chosen'.
41686
41687 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
41688 `grub_ieee1275_interpret'.
41689
41690 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41691
41692 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
41693
41694 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41695
41696 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
41697 (__cmpdi): Likewise.
41698
41699 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
41700 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
41701 `grub_ssize_t'.
41702
41703 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
41704
41705 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
41706 to type `grub_ssize_t'.
41707 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
41708
41709 2006-09-22 Marco Gerards <marco@gnu.org>
41710
41711 * normal/script.c (grub_script_create_cmdmenu): Skip leading
41712 newlines.
41713
41714 2006-09-22 Marco Gerards <marco@gnu.org>
41715
41716 * commands/echo.c: New file.
41717
41718 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
41719
41720 * conf/common.rmk (echo_mod_SOURCES): New variable.
41721 (echo_mod_CFLAGS): Likewise.
41722 (echo_mod_LDFLAGS): Likewise.
41723
41724 2006-09-22 Marco Gerards <marco@gnu.org>
41725
41726 * normal/main.c (get_line): Malloc memory instead of using
41727 preallocated memory. Removed the arguments `cmdline' and
41728 `max_len'. Updated all callers.
41729
41730 2006-09-22 Marco Gerards <marco@gnu.org>
41731
41732 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
41733 (normal_mod_DEPENDENCIES): Likewise.
41734
41735 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
41736 (normal_mod_DEPENDENCIES): Likewise.
41737
41738 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
41739
41740 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
41741
41742 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
41743 programs.
41744 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
41745 (normal_mod_DEPENDENCIES): Likewise.
41746 * conf/i386-pc.mk: Regenerate.
41747 * conf/i386-efi.mk: Likewise
41748 * conf/common.mk: Likewise.
41749 * conf/powerpc-ieee1275.mk: Likewise.
41750 * conf/sparc64-ieee1275.mk: Likewise.
41751
41752 2006-09-22 Robert Millan <rmh@aybabtu.com>
41753
41754 Sync with i386 version.
41755 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
41756 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
41757
41758 2006-09-21 Robert Millan <rmh@aybabtu.com>
41759
41760 Import from GRUB Legacy (lib/device.c):
41761 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
41762 (init_device_map) [__linux__]: Add support for I2O devices.
41763
41764 2006-09-14 Marco Gerards <marco@gnu.org>
41765
41766 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
41767 `-melf_i386'.
41768
41769 2006-09-14 Robert Millan <rmh@aybabtu.com>
41770
41771 * util/i386/pc/grub-install.in: Skip menu.lst when removing
41772 /boot/grub/*.lst.
41773
41774 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
41775
41776 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
41777 before adding it to device.map.
41778
41779 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
41780
41781 * genmk.rb: Let GCC generate dependencies the first time it
41782 compiles a file; using the -MD option.
41783 * conf/common.mk: Regenerate.
41784 * conf/i386-pc.mk: Likewise.
41785 * conf/i386-efi.mk: Likewise.
41786 * conf/powerpc-ieee1275.mk: Likewise.
41787 * conf/sparc64-ieee1275.mk: Likewise.
41788
41789 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
41790
41791 Move the prototypes of grub_setjmp and grub_longjmp to
41792 cpu/setjmp.h, so that each architecture may specify different
41793 attributes.
41794
41795 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
41796 (grub_longjmp): Likewise.
41797 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
41798 (grub_longjmp): Likewise.
41799 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
41800 (grub_longjmp): Likewise.
41801
41802 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
41803 [!GRUB_UTIL] (grub_longjmp): Removed.
41804
41805 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
41806
41807 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
41808 "color!" method does not return any value.
41809
41810 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41811
41812 * include/grub/bitmap.h: New file.
41813
41814 * include/grub/i386/pc/vbeutil.h: Likewise.
41815
41816 * video/bitmap.c: Likewise.
41817
41818 * video/readers/tga.c: Likewise.
41819
41820 * video/i386/pc/vbeutil.c: Likewise.
41821
41822 * commands/videotest.c: Code cleanup and updated to reflect to new
41823 video API.
41824
41825 * term/gfxterm.c: Likewise.
41826
41827 * video/video.c: Likewise.
41828
41829 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
41830 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
41831 (bitmap_mod_SOURCES): New entry.
41832 (bitmap_mod_CFLAGS): Likewise.
41833 (bitmap_mod_LDFLAGS): Likewise.
41834 (tga_mod_SOURCES): Likewise.
41835 (tga_mod_CFLAGS): Likewise.
41836 (tga_mod_LDFLAGS): Likewise.
41837
41838 * include/grub/video.h (grub_video_blit_operators): New enum type.
41839 (grub_video_render_target): Changed as forward declaration and moved
41840 actual definition to be video driver specific.
41841 (grub_video_adapter.blit_bitmap): Added blitting operator.
41842 (grub_video_adapter.blit_render_target): Likewise.
41843 (grub_video_blit_bitmap): Likewise.
41844 (grub_video_blit_render_target): Likewise.
41845
41846 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
41847 driver specific render target definition.
41848 (grub_video_vbe_map_rgba): Added driver internal helper.
41849 (grub_video_vbe_unmap_color): Updated to use
41850 grub_video_i386_vbeblit_info.
41851 (grub_video_vbe_get_video_ptr): Likewise.
41852
41853 * include/grub/i386/pc/vbeblit.h
41854 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
41855 grub_video_i386_vbeblit_info.
41856 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41857 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41858 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41859 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41860 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41861 (grub_video_i386_vbeblit_index_index): Likewise.
41862 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
41863 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41864 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41865 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
41866 operator.
41867 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
41868 operator.
41869
41870 * video/i386/pc/vbeblit.c: Updated to reflect changes on
41871 include/grub/i386/pc/vbeblit.h.
41872
41873 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
41874 Updated to use grub_video_i386_vbeblit_info.
41875 (grub_video_i386_vbefill_R8G8B8): Likewise.
41876 (grub_video_i386_vbefill_index): Likewise.
41877 (grub_video_i386_vbefill): Added generic filler.
41878
41879 * video/i386/pc/vbefill.c: Updated to reflect changes on
41880 include/grub/i386/pc/vbefill.h.
41881
41882 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
41883 grub_video_i386_vbeblit_info.
41884 (grub_video_vbe_unmap_color): Likewise.
41885 (grub_video_vbe_blit_glyph): Likewise.
41886 (grub_video_vbe_scroll): Likewise.
41887 (grub_video_vbe_draw_pixel): Removed function.
41888 (grub_video_vbe_get_pixel): Likewise.
41889 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
41890 updated code to use it.
41891 (common_blitter): Added common blitter for render target and bitmap.
41892 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
41893 (grub_video_vbe_blit_render_target): Likewise.
41894
41895 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
41896
41897 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
41898 is in text mode if there is no console control protocol instance
41899 available.
41900
41901 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41902
41903 * include/grub/video.h: Code cleanup.
41904
41905 * include/grub/i386/pc/vbe.h: Likewise.
41906
41907 * video/i386/pc/vbe.c: Likewise.
41908
41909 * video/i386/pc/vbeblit.c: Likewise.
41910
41911 * video/i386/pc/vbefill.c: Likewise.
41912
41913 * video/video.c: Likewise. Also added more comments.
41914
41915 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41916
41917 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
41918 (struct grub_biosdisk_dap): Likewise.
41919
41920 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
41921 linkage settings for all functions.
41922
41923 2006-07-12 Marco Gerards <marco@gnu.org>
41924
41925 * configure.ac (--enable-mm-debug): Fix typo.
41926
41927 * genkernsyms.sh.in: Use proper quoting for `CC'.
41928
41929 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
41930
41931 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
41932 (normal_mod_ASFLAGS): Remove "-m32".
41933
41934 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
41935
41936 * util/misc.c: Include config.h.
41937 [!HAVE_MEMALIGN]: Do not include malloc.h.
41938 (grub_memalign): Use posix_memalign, if present. Then, use
41939 memalign, if present. Otherwise, emit an error.
41940
41941 * util/grub-emu.c: Do not include malloc.h.
41942
41943 * include/grub/util/misc.h: Include unistd.h. This is required for
41944 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
41945 D. Eades III <hde@foobar-qux.org>.
41946
41947 * configure.ac (AC_GNU_SOURCE): Added.
41948 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
41949 type.
41950
41951 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
41952
41953 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
41954 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
41955
41956 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
41957
41958 * include/grub/types.h (grub_host_addr_t): Rename to
41959 grub_target_addr_t.
41960 (grub_host_off_t): Rename to grub_target_off_t.
41961 (grub_host_size_t): Rename to grub_target_size_t.
41962 (grub_host_ssize_t): Rename to grub_target_ssize_t.
41963 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
41964
41965 * include/grub/kernel.h (struct grub_module_header): Change type
41966 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
41967 (grub_module_info): Likewise.
41968
41969 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
41970
41971 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
41972 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
41973 Velazquez <jesus.velazquez@gmail.com>.
41974
41975 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
41976
41977 Count partitions from 1 instead of 0 in the string representation
41978 of partitions. Still use 0-based internally.
41979
41980 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
41981 (sun_partition_map_iterate): Use grub_partition_t instead of
41982 struct grub_partition *. Cast DESC->START_CYLINDER to
41983 grub_uint64_t after converting the endian.
41984 (sun_partition_map_probe): Subtract 1 for PARTNUM.
41985 (sun_partition_map_get_name): Add 1 to P->INDEX.
41986
41987 * partmap/pc.c (grub_partition_parse): Subtract 1 for
41988 PCDATA->DOS_PART.
41989 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
41990
41991 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
41992 zero instead of one.
41993 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
41994 (gpt_partition_map_get_name): Add 1 into P->INDEX.
41995
41996 * partmap/apple.c (apple_partition_map_iterate): Change the type
41997 of POS to unsigned.
41998 (apple_partition_map_probe): Subtract 1 for PARTNUM.
41999 (apple_partition_map_get_name): Add 1 into P->INDEX.
42000
42001 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
42002 of POS to unsigned.
42003 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
42004 calculate the offset of a partition.
42005 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
42006 (amiga_partition_map_get_name): Add 1 into P->INDEX.
42007
42008 * partmap/acorn.c (acorn_partition_map_find): Change the type of
42009 SECTOR to grub_disk_addr_t.
42010 (acorn_partition_map_iterate): Likewise.
42011 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
42012 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
42013 top.
42014 (acorn_partition_map_get_name): Add 1 into P->INDEX.
42015
42016 * kern/i386/pc/init.c (make_install_device): Add 1 into
42017 GRUB_INSTALL_DOS_PART.
42018
42019 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
42020 conditional.
42021
42022 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42023
42024 Clean up the code to support 64-bit addressing in disks and
42025 files. This change is not enough for filesystems yet.
42026
42027 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
42028 type of "start" to grub_uint64_t.
42029 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
42030 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
42031 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
42032 convert addresses.
42033
42034 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
42035 to grub_disk_addr_t.
42036
42037 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
42038 string.
42039
42040 * partmap/pc.c (pc_partition_map_iterate): Likewise.
42041
42042 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
42043 to char *.
42044
42045 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
42046
42047 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
42048
42049 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
42050
42051 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
42052 to grub_off_t, to detect an error from grub_file_seek.
42053 (grub_multiboot_load_elf32): Likewise.
42054
42055 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
42056 maximum unsigned long value when an overflow is detected.
42057 (grub_strtoull): New function.
42058 (grub_divmod64): Likewise.
42059 (grub_lltoa): use grub_divmod64.
42060
42061 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
42062 grub_disk_addr_t.
42063 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
42064 the pointer to next character. Use grub_strtoull instead of
42065 grub_strtoul.
42066 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
42067 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
42068 respectively.
42069
42070 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
42071 return value is signed.
42072 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
42073 test if OFFSET is less than zero, as OFFSET is unsigned now.
42074
42075 * kern/disk.c (struct grub_disk_cache): Change the type of
42076 "sector" to grub_disk_addr_t.
42077 (grub_disk_cache_get_index): Change the type of SECTOR to
42078 grub_disk_addr_t. Calculate the hash with SECTOR casted to
42079 unsigned after shifting.
42080 (grub_disk_cache_invalidate): Change the type of SECTOR to
42081 grub_disk_addr_t.
42082 (grub_disk_cache_unlock): Likewise.
42083 (grub_disk_cache_store): Likewise.
42084 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
42085 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
42086 grub_disk_addr_t and grub_uint64_t, respectively.
42087 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
42088 body, as the value of OFFSET is tweaked by
42089 grub_disk_check_range. Change the types of START_SECTOR, LEN and
42090 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
42091 respectively.
42092 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
42093 body, as the value of OFFSET is tweaked by
42094 grub_disk_check_range. Change the types of LEN and N to
42095 grub_size_t.
42096
42097 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
42098 and "saved_offset" to grub_off_t.
42099 (test_header): Cast BUF to char *.
42100 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
42101 to char *.
42102 (grub_gzio_read): Change the types of OFFSET and SIZE to
42103 grub_off_t and grub_size_t, respectively.
42104
42105 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
42106 Removed.
42107 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
42108 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
42109 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
42110 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
42111 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
42112
42113 * include/grub/types.h (grub_off_t): Unconditionally set to
42114 grub_uint64_t.
42115 (grub_disk_addr_t): Changed to grub_uint64_t.
42116
42117 * include/grub/partition.h (struct grub_partition): Change the
42118 types of "start", "len" and "offset" to grub_disk_addr_t,
42119 grub_uint64_t and grub_disk_addr_t, respectively.
42120 (grub_partition_get_start): Return grub_disk_addr_t.
42121 (grub_partition_get_len): Return grub_uint64_t.
42122
42123 * include/grub/misc.h (grub_strtoull): New prototype.
42124 (grub_divmod64): Likewise.
42125
42126 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
42127 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
42128 grub_off_t, respectively.
42129 All callers and references changed.
42130
42131 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
42132 grub_size_t in "read".
42133 All callers and references changed.
42134
42135 * include/grub/file.h (struct grub_file): Change the types of
42136 "offset" and "size" to grub_off_t and grub_off_t,
42137 respectively. Change the type of SECTOR to grub_disk_addr_t in
42138 "read_hook".
42139 (grub_file_read): Change the type of LEN to grub_size_t.
42140 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
42141 grub_off_t.
42142 (grub_file_size): Return grub_off_t.
42143 (grub_file_tell): Likewise.
42144 All callers and references changed.
42145
42146 * include/grub/disk.h (struct grub_disk_dev): Change the types of
42147 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
42148 "write".
42149 (struct grub_disk): Change the type of "total_sectors" to
42150 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
42151 "read_hook".
42152 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
42153 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
42154 (grub_disk_write): Likewise.
42155 All callers and references changed.
42156
42157 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
42158 char * for grub_strncmp to silence gcc.
42159 (grub_iso9660_mount): Likewise.
42160 (grub_iso9660_mount): Likewise.
42161 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
42162 return statement.
42163 (grub_iso9660_iterate_dir): Likewise.
42164 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
42165
42166 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
42167 LEN to grub_disk_addr_t and grub_size_t, respectively.
42168
42169 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
42170
42171 * fs/jfs.c (grub_jfs_read_file): Likewise.
42172
42173 * fs/minix.c (grub_jfs_read_file): Likewise.
42174
42175 * fs/sfs.c (grub_jfs_read_file): Likewise.
42176
42177 * fs/ufs.c (grub_jfs_read_file): Likewise.
42178
42179 * fs/xfs.c (grub_jfs_read_file): Likewise.
42180
42181 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
42182 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
42183 respectively.
42184
42185 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
42186 BLKNR to -1 instead of returning GRUB_ERRNO.
42187 (grub_ext2_read_file): Change the types of SECTOR and
42188 LEN to grub_disk_addr_t and grub_size_t, respectively.
42189
42190 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
42191 LEN to grub_disk_addr_t and grub_size_t, respectively.
42192
42193 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
42194 grub_file_read.
42195
42196 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
42197 string. Do not cast SECTOR explicitly.
42198
42199 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
42200 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
42201 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
42202 grub_disk_addr_t and grub_size_t, respectively. If the sector is
42203 over 2TB and LBA mode is not supported, raise an error.
42204 (get_safe_sectors): New function.
42205 (grub_biosdisk_read): Use get_safe_sectors.
42206 (grub_biosdisk_write): Likewise.
42207
42208 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
42209 (grub_efidisk_write): Likewise.
42210
42211 * disk/loopback.c (delete_loopback): Cosmetic changes.
42212 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
42213 correctly.
42214 (grub_loopback_open): Likewise.
42215 (grub_loopback_read): Likewise. Also, change the type of POS to
42216 grub_off_t, and fix the usage of grub_memset.
42217
42218 * commands/i386/pc/play.c: Include grub/machine/time.h.
42219
42220 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
42221 print FILE->SIZE.
42222
42223 * commands/configfile.c: Include grub/env.h.
42224
42225 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
42226 GRUB_ERRNO directly instead. Change the type of POS to
42227 grub_off_t. Follow the coding standard.
42228
42229 * commands/blocklist.c: Include grub/partition.h.
42230 (grub_cmd_blocklist): Return an error if the underlying device is
42231 not a disk. Take the starting sector of a partition into account,
42232 if a partition is used.
42233
42234 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
42235 a length field.
42236 (lba_mode): Support 64-bit addresses.
42237 (chs_mode): Likewise.
42238 (copy_buffer): Adapted to the new offsets of a length field and a
42239 segment field.
42240 (blocklist_default_start): Allocate 64-bit space.
42241
42242 * boot/i386/pc/boot.S (force_lba): Removed.
42243 (boot_drive): Moved to under KERNEL_SECTOR.
42244 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
42245 space.
42246 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
42247 is useless.
42248 (lba_mode): Refactored to support a 64-bit address. More size
42249 optimization.
42250 (setup_sectors): Likewise.
42251
42252 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42253
42254 * DISTLIST: Added include/grub/i386/linux.h. Removed
42255 include/grub/i386/pc/linux.h
42256
42257 * configure.ac (AC_INIT): Bumped to 1.94.
42258
42259 * config.guess: Updated from gnulib.
42260 * config.sub: Likewise.
42261 * install-sh: Likewise.
42262 * mkinstalldirs: Likewise.
42263
42264 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42265
42266 * conf/common.rmk (grub_modules_init.lst): Depended on
42267 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
42268 MODSRCFILES.
42269
42270 * genmk.rb (PModule::rule): Reverted the previous change.
42271
42272 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42273
42274 * conf/common.rmk (grub_modules_init.lst): Depends on
42275 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
42276 that the target does not exist before producing.
42277 (grub_modules_init.h): Remove the target before generating.
42278 (grub_emu_init.c): Likewise.
42279
42280 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
42281
42282 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
42283
42284 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
42285 for the target-specific tests. Make sure that we also have the
42286 up-to-date target variables for those tests.
42287
42288 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42289
42290 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
42291 (PModule::rule): Likewise.
42292
42293 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42294
42295 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
42296 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
42297 target-specific flags should be prefixed.
42298 (PModule::rule): Likewise.
42299
42300 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
42301
42302 * configure.ac (CMP): Check if cmp is available explicitly.
42303
42304 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
42305
42306 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
42307 (target_cpu): New variable.
42308 (pkglibdir): Use target_cpu instead of host_cpu.
42309
42310 * util/i386/pc/grub-install.in (host_cpu): Removed.
42311 (target_cpu): New variable.
42312 (pkglibdir): Use target_cpu instead of host_cpu.
42313
42314 * util/genmoddep.c: Removed.
42315
42316 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
42317 instead of GRUB_HOST_SIZEOF_VOID_P.
42318 * kern/dl.c: Likewise.
42319
42320 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
42321 ...
42322 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42323 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42324 (GRUB_TARGET_SIZEOF_LONG): ... this.
42325 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42326 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42327 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42328 to ...
42329 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42330 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42331 (GRUB_TARGET_SIZEOF_LONG): ... this.
42332 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42333 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42334 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42335 to ...
42336 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42337 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42338 (GRUB_TARGET_SIZEOF_LONG): ... this.
42339 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42340 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42341
42342 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
42343 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
42344 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
42345 instead of GRUB_HOST_SIZEOF_LONG.
42346 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
42347 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
42348 GRUB_CPU_WORDS_BIGENDIAN.
42349 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
42350 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
42351 grub_host_ssize_t.
42352
42353 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
42354 (genmoddep_SOURCES): Likewise.
42355 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
42356 (genmoddep_SOURCES): Likewise.
42357 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
42358 (genmoddep_SOURCES): Likewise.
42359 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
42360 Likewise.
42361 (genmoddep_SOURCES): Likewise.
42362
42363 * genmoddep.awk: New file.
42364
42365 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
42366 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
42367 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
42368 (PModule::rule): Likewise.
42369 (Program::rule): Likewise.
42370 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
42371 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
42372 respectively.
42373
42374 * configure.ac: Rewritten intensively to use host and target
42375 instead of build and host, respectively.
42376
42377 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
42378 (host_cpu): Removed.
42379 (target_cpu): New variable.
42380 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
42381 (BUILD_CC): Removed.
42382 (BUILD_CFLAGS): Likewise.
42383 (BUILD_CPPFLAGS): Likewise.
42384 (TARGET_CC): New variable.
42385 (TARGET_CFLAGS): Likewise.
42386 (TARGET_CPPFLAGS): Likewise.
42387 (TARGET_LDFLAGS): Likewise.
42388 (AWK): Likewise.
42389 (include): Use target_cpu instead of host_cpu.
42390 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
42391
42392 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
42393
42394 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
42395
42396 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
42397 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
42398 field 'false' to 'exec_on_false'.
42399 (grub_script_create_cmdif): Renamed argument names to reflect above
42400 changes.
42401
42402 * normal/execute.c (grub_script_execute_cmdif): Likewise.
42403
42404 * normal/script.c (grub_script_create_cmdif): Likewise.
42405
42406 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
42407
42408 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
42409 top.
42410 (grub_hfsplus_btree_recptr): Likewise.
42411 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
42412 FILEBLOCK both to pass a block number and store next block
42413 number.
42414 (grub_hfsplus_read_block): Rewritten heavily to support an extent
42415 overflow file correctly. Specify errors appropriately, because
42416 fshelp expects that GRUB_ERRNO is set when fails. Reuse
42417 grub_hfsplus_btree_recptr to get the pointer to a found key.
42418 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
42419 is found.
42420
42421 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
42422 linux.mod.
42423 (_linux_mod_SOURCES): New variable.
42424 (_linux_mod_CFLAGS): Likewise.
42425 (_linux_mod_LDFLAGS): Likewise.
42426 (linux_mod_SOURCES): Likewise.
42427 (linux_mod_CFLAGS): Likewise.
42428 (linux_mod_LDFLAGS): Likewise.
42429
42430 * DISTLIST: Added loader/i386/efi/linux.c,
42431 loader/i386/efi/linux_normal.c and
42432 include/grub/i386/efi/loader.h.
42433
42434 * loader/i386/efi/linux.c: New file.
42435 * loader/i386/efi/linux_normal.c: Likewise.
42436 * include/grub/i386/efi/loader.h: Likewise.
42437
42438 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
42439
42440 * commands/blocklist.c: New file.
42441
42442 * DISTLIST: Added commands/blocklist.c.
42443
42444 * term/efi/console.c (grub_console_highlight_color): Use a lighter
42445 color for the background, and a darker color for the foreground.
42446 (grub_console_checkkey): Return READ_KEY.
42447 (grub_console_cls): Set the background to
42448 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
42449
42450 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
42451
42452 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
42453 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
42454
42455 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
42456 prototype.
42457
42458 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
42459 BG. The spec is wrong again.
42460
42461 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
42462 prototype.
42463 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
42464
42465 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
42466 commands/blocklist.c.
42467 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42468
42469 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
42470 (blocklist_mod_SOURCES): New variable.
42471 (blocklist_mod_CFLAGS): Likewise.
42472 (blocklist_mod_LDFLAGS): Likewise.
42473
42474 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
42475
42476 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
42477 duplication.
42478 (lba_mode): Use %eax more intensively to reduce the code size.
42479
42480 2006-05-20 Marco Gerards <marco@gnu.org>
42481
42482 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
42483
42484 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
42485 for `menuentry'.
42486 (script): Accept leading newlines.
42487 (newlines): New rule to describe 0 or more newlines.
42488 (commands): Accept `command' with trailing newline. Fixed the
42489 order in which arguments were passed to `grub_script_add_cmd'.
42490 Accept commands separated by newlines.
42491 (function): Changed to accept newlines.
42492 (menuentry) Rewritten.
42493
42494 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
42495 front of the list, instead of to the end.
42496
42497 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
42498
42499 * util/i386/pc/grub-install.in (bindir): New variable.
42500 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
42501 Shaver <lbgwjl@gmail.com>.
42502
42503 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
42504
42505 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
42506 grub/machine/linux.h
42507 * loader/i386/pc/linux.c: Likewise.
42508
42509 * include/grub/i386/pc/linux.h: Moved to ...
42510 * include/grub/i386/linux.h: ... here.
42511
42512 * include/grub/i386/linux.h (struct linux_kernel_params): New
42513 struct.
42514
42515 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
42516
42517 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
42518 checking.
42519 (grub_video_vbe_blit_glyph): Likewise.
42520 (grub_video_vbe_blit_bitmap): Likewise.
42521 (grub_video_vbe_blit_render_target): Likewise.
42522
42523 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
42524
42525 * configure.ac (--with-platform): Properly quote the square
42526 brackets.
42527
42528 2006-05-08 Marco Gerards <marco@gnu.org>
42529
42530 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
42531 this...
42532 (kernel_elf_HEADERS): ...to this. Updated all users.
42533 (grubof_symlist.c): Renamed from this...
42534 (kernel_elf_symlist.c): ...to this. Updated all users.
42535 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42536 (grubof_SOURCES): Renamed from this...
42537 (kernel_elf_SOURCES): ...to this.
42538 (grubof_HEADERS): Renamed from this...
42539 (kernel_elf_HEADERS): ...to this.
42540 (grubof_CFLAGS): Renamed from this...
42541 (kernel_elf_CFLAGS): ...to this.
42542 (grubof_ASFLAGS): Renamed from this...
42543 (kernel_elf_ASFLAGS): ...to this.
42544 (grubof_LDFLAGS): Renamed from this...
42545 (kernel_elf_LDFLAGS): ...to this.
42546
42547 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
42548 this...
42549 (kernel_elf_HEADERS): ...to this. Updated all users.
42550 (grubof_symlist.c): Renamed from this...
42551 (kernel_elf_symlist.c): ...to this. Updated all users.
42552 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42553 (grubof_SOURCES): Renamed from this...
42554 (kernel_elf_SOURCES): ...to this.
42555 (grubof_HEADERS): Renamed from this...
42556 (kernel_elf_HEADERS): ...to this.
42557 (grubof_CFLAGS): Renamed from this...
42558 (kernel_elf_CFLAGS): ...to this.
42559 (grubof_ASFLAGS): Renamed from this...
42560 (kernel_elf_ASFLAGS): ...to this.
42561 (grubof_LDFLAGS): Renamed from this...
42562 (kernel_elf_LDFLAGS): ...to this.
42563
42564 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
42565 `kernel.elf' instead of `grubof'.
42566
42567 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
42568
42569 Add --with-platform to configure. Use pkglibdir instead of
42570 pkgdatadir. This is reported by Roger Leigh.
42571
42572 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
42573 (host_vendor): Likewise.
42574 (host_os): Likewise.
42575 (pkgdatadir): Likewise.
42576 (platform): New variable.
42577 (pkglibdir): Likewise.
42578 Use PKGLIBDIR instead of PKGDATADIR.
42579
42580 * util/i386/pc/grub-install.in (datadir): Removed.
42581 (host_vendor): Likewise.
42582 (host_os): Likewise.
42583 (pkgdatadir): Likewise.
42584 (platform): New variable.
42585 (pkglibdir): Likewise.
42586 Use PKGLIBDIR instead of PKGDATADIR.
42587
42588 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
42589 instead of GRUB_DATADIR.
42590 (main): Likewise.
42591 * util/i386/pc/grub-mkimage.c (usage): Likewise.
42592 (main): Likewise.
42593 * util/i386/efi/grub-mkimage.c (usage): Likewise.
42594 (main): Likewise.
42595
42596 * configure.ac (--with-platform): New option.
42597 Use PLATFORM instead of HOST_VENDOR to specify a platform.
42598
42599 * Makefile.in: Include a makefile based on PLATFORM instead of
42600 HOST_VENDOR.
42601 (pkgdatadir): Not appended by the machine type.
42602 (pkglibdir): Appended by the machine type.
42603 (host_vendor): Removed.
42604 (platform): New variable.
42605 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
42606 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
42607 (uninstall): Likewise.
42608
42609 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
42610
42611 Use the environment context in the menu. Remove the commands
42612 "default" and "timeout", and use variables instead.
42613
42614 * normal/menu.c: Include grub/env.h.
42615 (print_entry): Cast TITLE to silence gcc.
42616 (get_timeout): New function.
42617 (set_timeout): Likewise.
42618 (get_entry_number): Likewise.
42619 (run_menu): Use a default entry, a fallback entry and a timeout
42620 in the environment variables "default", "fallback" and
42621 "timeout". Also, tweak the default entry if it is not within the
42622 current menu entries.
42623 (grub_menu_run): Use a fallback entry in the environment variable
42624 "fallback".
42625
42626 * normal/main.c (read_config_file): Do not initialize
42627 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
42628 NEWMENU->TIMEOUT.
42629 (grub_normal_execute): Use a data slot to store the menu.
42630
42631 * include/grub/normal.h (struct grub_menu): Removed default_entry,
42632 fallback_entry and timeout.
42633 (struct grub_menu_list): Removed.
42634 (grub_menu_list_t): Likewise.
42635 (struct grub_context): Likewise.
42636 (grub_context_t): Likewise.
42637 (grub_context_get): Likewise.
42638 (grub_context_get_current_menu): Likewise.
42639 (grub_context_push_menu): Likewise.
42640 (grub_context_pop_menu): Likewise.
42641 (grub_default_init): Likewise.
42642 (grub_default_fini): Likewise.
42643 (grub_timeout_init): Likewise.
42644 (grub_timeout_fini): Likewise.
42645
42646 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
42647 and timeout.mod.
42648 (normal_mod_SOURCES): Removed normal/context.c.
42649
42650 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
42651 commands/default.c, commands/timeout.c and normal/context.c.
42652 (normal_mod_SOURCES): Removed normal/context.c.
42653
42654 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
42655 commands/timeout.c and normal/context.c.
42656 (normal_mod_SOURCES): Removed normal/context.c.
42657
42658 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
42659 commands/default.c, commands/timeout.c and normal/context.c.
42660 (normal_mod_SOURCES): Removed normal/context.c.
42661
42662 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
42663 timeout.mod.
42664 (default_mod_SOURCES): Removed.
42665 (default_mod_CFLAGS): Likewise.
42666 (default_mod_LDFLAGS): Likewise.
42667 (timeout_mod_SOURCES): Removed.
42668 (timeout_mod_CFLAGS): Likewise.
42669 (timeout_mod_LDFLAGS): Likewise.
42670
42671 * DISTLIST: Removed commands/default.c, commands/timeout.c and
42672 normal/context.c.
42673
42674 * commands/default.c: Removed.
42675 * commands/timeout.c: Likewise.
42676 * normal/context.c: Likewise.
42677
42678 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
42679
42680 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
42681
42682 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
42683
42684 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
42685 "next" to "prev" for readability.
42686 (struct grub_env_sorted_var): New struct.
42687 (grub_env_context): Renamed to ...
42688 (initial_context): ... this.
42689 (grub_env_var_context): Renamed to ...
42690 (current_context): ... this.
42691 (grub_env_find): Look only at CURRENT_CONTEXT.
42692 (grub_env_context_open): Rewritten to copy exported variables from
42693 previous context.
42694 (grub_env_context_close): Rewritten according to the new
42695 scheme. Also, add an assertion to prevent the initial context from
42696 removed.
42697 (grub_env_insert): Removed the code for the sorted list.
42698 (grub_env_remove): Likewise.
42699 (grub_env_export): Simply mark the variable with
42700 GRUB_ENV_VAR_GLOBAL.
42701 (grub_env_set): A cosmetic change for naming consistency.
42702 (grub_env_get): Likewise.
42703 (grub_env_unset): Likewise.
42704 (grub_env_iterate): Rewritten to sort variables within this
42705 function.
42706 (grub_register_variable_hook): Fixed for naming consistency. Call
42707 grub_env_find again, only if NAME is not found at the first time.
42708 (mangle_data_slot_name): New function.
42709 (grub_env_set_data_slot): Likewise.
42710 (grub_env_get_data_slot): Likewise.
42711 (grub_env_unset_data_slot): Likewise.
42712
42713 * include/grub/env.h (grub_env_var_type): New enum.
42714 (GRUB_ENV_VAR_LOCAL): New constant.
42715 (GRUB_ENV_VAR_GLOBAL): Likewise.
42716 (GRUB_ENV_VAR_DATA): Likewise.
42717 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
42718 "type".
42719 (grub_env_set): Replace VAR with NAME for consistency.
42720 (grub_register_variable_hook): Likewise.
42721 (grub_env_export): Specify the name of the argument.
42722 (grub_env_set_data_slot): New prototype.
42723 (grub_env_get_data_slot): Likewise.
42724 (grub_env_unset_data_slot): Likewise.
42725
42726 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42727
42728 Extend the loader so that GRUB can accept a loader which comes
42729 back to GRUB when a loaded image exits. Also, this change adds
42730 support for a chainloader on EFI.
42731
42732 * term/efi/console.c: Include grub/misc.h.
42733 (grub_console_checkkey): Display a scan code on the top for
42734 debugging. This will be removed once the EFI port gets stable.
42735 Correct the scan code mapping.
42736
42737 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
42738 allocate memory from larger regions, in order to reduce the number
42739 of allocated regions. Otherwise, the MacOSX loader panics.
42740 (filter_memory_map): Avoid less than 1MB for compatibility with
42741 other loaders.
42742 (add_memory_regions): Allocate from the tail of a region, if
42743 possible, to avoid allocating a region near to 1MB, for the MacOSX
42744 loader.
42745
42746 * kern/efi/init.c (grub_efi_set_prefix): Specify
42747 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
42748
42749 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
42750 argument IMAGE_HANDLE and specify it to get a loaded image.
42751 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
42752 grub_efi_get_loaded_image.
42753 (grub_efi_get_filename): Divide the length by the size of
42754 grub_efi_char16_t.
42755 (grub_efi_get_device_path): New function.
42756 (grub_efi_print_device_path): Print End Device Path nodes. Divide
42757 the length by the size of grub_efi_char16_t for a file path device
42758 path node.
42759
42760 * kern/loader.c (grub_loader_noreturn): New variable.
42761 (grub_loader_set): Accept a new argument NORETURN. Set
42762 GRUB_LOADER_NORETURN to NORETURN.
42763 All callers changed.
42764 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
42765 grub_machine_fini.
42766
42767 * include/grub/efi/efi.h (grub_efi_get_device_path): New
42768 prototype.
42769 (grub_efi_get_loaded_image): Take an argument to specify an image
42770 handle.
42771
42772 * include/grub/loader.h (grub_loader_set): Added one more argument
42773 NORETURN.
42774
42775 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
42776 instead of grub_efi_open_protocol.
42777 (grub_efidisk_get_device_name): Likewise.
42778 (grub_efidisk_close): Print a newline.
42779 (grub_efidisk_get_device_handle): Fixed to use
42780 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
42781 GRUB_EFI_DEVICE_PATH_TYPE.
42782
42783 * disk/efi/efidisk.c (device_path_guid): Moved to ...
42784 * kern/efi/efi.c (device_path_guid): ... here.
42785
42786 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
42787 chain.mod.
42788 (kernel_mod_HEADERS): Added efi/disk.h.
42789 (_chain_mod_SOURCES): New variable.
42790 (_chain_mod_CFLAGS): Likewise.
42791 (_chain_mod_LDFLAGS): Likewise.
42792 (chain_mod_SOURCES): Likewise.
42793 (chain_mod_CFLAGS): Likewise.
42794 (chain_mod_LDFLAGS): Likewise.
42795
42796 * DISTLIST: Added include/grub/efi/chainloader.h,
42797 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
42798
42799 * include/grub/efi/chainloader.h: New file.
42800 * loader/efi/chainloader.c: Likewise.
42801 * loader/efi/chainloader_normal.c: Likewise.
42802
42803 2006-04-30 Marco Gerards <marco@gnu.org>
42804
42805 * commands/configfile.c (grub_cmd_source): New function.
42806 (GRUB_MOD_INIT): Register the commands `source' and `.'.
42807 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
42808
42809 2006-04-30 Marco Gerards <marco@gnu.org>
42810
42811 * normal/execute.c (grub_script_execute_cmd): Change the return
42812 type to `grub_err_t'. Correctly return the error.
42813 (grub_script_execute_cmdline): In case a command line is not a
42814 command or a function, try to interpret it as an assignment.
42815
42816 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42817
42818 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
42819 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
42820 skip a node whose name is obviously invalid as UTF-16,
42821 i.e. contains a NUL character. Stop the iteration when the last
42822 directory entry is found. Instead of using the return value of
42823 grub_hfsplus_btree_iterate_node, store the value in RET and use
42824 it, because the iterator can be stopped by the last directory
42825 entry.
42826
42827 2006-04-30 Marco Gerards <marco@gnu.org>
42828
42829 * include/grub/env.h (grub_env_export): New prototype. Reported
42830 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
42831
42832 2006-04-30 Marco Gerards <marco@gnu.org>
42833
42834 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
42835 size of the extents in a catalog file record.
42836
42837 2006-04-29 Marco Gerards <marco@gnu.org>
42838
42839 * commands/configfile.c (grub_cmd_configfile): Execute the
42840 configfile within its own context.
42841
42842 * include/grub/env.h (grub_env_context_open): New prototype.
42843 (grub_env_context_close): Likewise.
42844
42845 * kern/env.c (grub_env): Removed.
42846 (grub_env_sorted): Likewise.
42847 (grub_env_context): New variable.
42848 (grub_env_var_context): Likewise.
42849 (grub_env_find): Search both the active context and the global
42850 context.
42851 (grub_env_context_open): New function.
42852 (grub_env_context_close): Likewise.
42853 (grub_env_insert): Likewise.
42854 (grub_env_remove): Likewise.
42855 (grub_env_export): Likewise.
42856 (grub_env_set): Changed to use helper functions to avoid code
42857 duplication.
42858 (grub_env_iterate): Rewritten so both the current context and the
42859 global context are being used.
42860
42861 * normal/command.c (export_command): New function.
42862 (grub_command_init): Register the `export' function.
42863
42864 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
42865
42866 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
42867 explicitly to suppress gcc's warnings.
42868 * fs/fat.c (grub_fat_find_dir): Likewise.
42869 (grub_fat_label): Likewise.
42870 * fs/xfs.c (grub_xfs_read_inode): Likewise.
42871 (grub_xfs_mount): Likewise.
42872 (grub_xfs_label): Likewise.
42873 * fs/affs.c (grub_affs_mount): Likewise.
42874 (grub_affs_label): Likewise.
42875 (grub_affs_iterate_dir): Likewise.
42876 * fs/sfs.c (grub_sfs_mount): Likewise.
42877 (grub_sfs_iterate_dir): Likewise.
42878 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
42879 * fs/hfs.c (grub_hfs_mount): Likewise.
42880 (grub_hfs_cmp_catkeys): Likewise.
42881 (grub_hfs_find_dir): Likewise.
42882 (grub_hfs_dir): Likewise.
42883 (grub_hfs_label): Likewise.
42884 * fs/jfs.c (grub_jfs_mount): Likewise.
42885 (grub_jfs_opendir): Likewise.
42886 (grub_jfs_getent): Likewise.
42887 (grub_jfs_lookup_symlink): Likewise.
42888 (grub_jfs_label): Likewise.
42889 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
42890 (grub_hfsplus_iterate_dir): Likewise.
42891 (grub_hfsplus_btree_iterate_node): Made static.
42892
42893 * util/grub-emu.c (prefix): New variable.
42894 (grub_machine_set_prefix): New function.
42895 (main): Do not set the environment variable "prefix" here. Only
42896 set PREFIX, which is used later by grub_machine_set_prefix.
42897
42898 * include/grub/video.h: Do not include grub/symbol.h.
42899 (grub_video_register): Not exported. This symbol is not defined in
42900 the kernel.
42901 (grub_video_unregister): Likewise.
42902 (grub_video_iterate): Likewise.
42903 (grub_video_setup): Likewise.
42904 (grub_video_restore): Likewise.
42905 (grub_video_get_info): Likewise.
42906 (grub_video_get_blit_format): Likewise.
42907 (grub_video_set_palette): Likewise.
42908 (grub_video_get_palette): Likewise.
42909 (grub_video_set_viewport): Likewise.
42910 (grub_video_get_viewport): Likewise.
42911 (grub_video_map_color): Likewise.
42912 (grub_video_map_rgb): Likewise.
42913 (grub_video_map_rgba): Likewise.
42914 (grub_video_fill_rect): Likewise.
42915 (grub_video_blit_glyph): Likewise.
42916 (grub_video_blit_bitmap): Likewise.
42917 (grub_video_blit_render_target): Likewise.
42918 (grub_video_scroll): Likewise.
42919 (grub_video_swap_buffers): Likewise.
42920 (grub_video_create_render_target): Likewise.
42921 (grub_video_delete_render_target): Likewise.
42922 (grub_video_set_active_render_target): Likewise.
42923
42924 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
42925 Undefined.
42926 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
42927
42928 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
42929 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42930 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42931 instead of $(srcdir)/genkernsyms.sh.
42932
42933 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
42934 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42935 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42936 instead of $(srcdir)/genkernsyms.sh.
42937
42938 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
42939 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42940 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42941 instead of $(srcdir)/genkernsyms.sh.
42942
42943 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
42944 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42945 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42946 instead of $(srcdir)/genkernsyms.sh.
42947
42948 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
42949 genkernsyms.sh.
42950
42951 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
42952 genkernsyms.sh.
42953 (gensymlist.sh): New target.
42954 (genkernsyms.sh): Likewise.
42955
42956 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
42957 genkernsyms.sh.in and gensymlist.sh.in.
42958
42959 * genkernsyms.sh: Removed.
42960 * gensymlist.sh: Likewise.
42961
42962 * genkernsyms.sh.in: New file.
42963 * gensymlist.sh.in: Likewise.
42964
42965 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
42966
42967 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
42968 clobber "prefix", since we may have already set it manually.
42969
42970 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
42971
42972 * kern/misc.c (abort): New alias for grub_abort.
42973
42974 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
42975
42976 A new machine-specific function "grub_machine_set_prefix" is
42977 defined. This is called after loading modules, so that a prefix
42978 initialization can use modules. Also, this change adds an
42979 intensive debugging feature for the memory manager via the
42980 configure option "--enable-mm-debug".
42981
42982 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
42983 PART.LEN.
42984
42985 * kern/sparc64/ieee1275/init.c (abort): Removed.
42986 (grub_stop): Likewise.
42987 (grub_exit): New function.
42988 (grub_set_prefix): Renamed to ...
42989 (grub_machine_set_prefix): ... this.
42990 (grub_machine_init): Do not call grub_set_prefix.
42991
42992 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
42993 (grub_machine_set_prefix): ... this.
42994 (grub_machine_init): Do not call grub_set_prefix.
42995
42996 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
42997 (grub_machine_init): Do not set the prefix here.
42998
42999 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
43000
43001 * kern/efi/init.c: Include grub/mm.h.
43002 (grub_efi_set_prefix): New function.
43003
43004 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
43005 (grub_efi_get_filename): New function.
43006 (grub_print_device_path): Renamed to ...
43007 (grub_efi_print_device_path): ... this.
43008
43009 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
43010 [MM_DEBUG] (grub_realloc): Likewise.
43011 [MM_DEBUG] (grub_free): Likewise.
43012 [MM_DEBUG] (grub_memalign): Likewise.
43013 [MM_DEBUG] (grub_mm_debug): New variable.
43014 [MM_DEBUG] (grub_debug_malloc): New function.
43015 [MM_DEBUG] (grub_debug_free): New function.
43016 [MM_DEBUG] (grub_debug_realloc): New function.
43017 [MM_DEBUG] (grub_debug_memalign): New function.
43018
43019 * kern/misc.c (grub_abort): Print a newline to distinguish
43020 the message.
43021
43022 * kern/main.c (grub_main): Call grub_machine_set_prefix and
43023 grub_set_root_dev after loading modules. This is necessary when
43024 setting a prefix depends on modules.
43025
43026 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
43027 (grub_efi_print_device_path): ... this.
43028 (grub_efi_get_filename): New prototype.
43029 (grub_efi_set_prefix): Likewise.
43030
43031 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
43032 and grub/disk.h.
43033 (grub_efidisk_get_device_handle): New prototype.
43034 (grub_efidisk_get_device_name): Likewise.
43035
43036 * include/grub/mm.h: Include config.h.
43037 (MM_DEBUG): Removed.
43038 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
43039 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
43040 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
43041 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
43042 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
43043 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
43044 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
43045 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
43046 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
43047
43048 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
43049
43050 * disk/efi/efidisk.c: Include grub/partition.h.
43051 (iterate_child_devices): New function.
43052 (add_device): First, compare only last device path nodes, so that
43053 devices are sorted by the types.
43054 (grub_efidisk_get_device_handle): New function.
43055 (grub_efidisk_get_device_name): Likewise.
43056
43057 * configure.ac (--enable-mm-debug): New option to enable the
43058 memory manager debugging feature. This makes the binary much
43059 bigger, so is disabled by default.
43060
43061 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
43062
43063 Use grub_abort instead of grub_stop, and grub_exit must be
43064 define in each architecture now. Also, this change adds support
43065 for EFI disks.
43066
43067 * util/i386/pc/grub-probefs.c: Include grub/term.h.
43068 (grub_getkey): New function.
43069 (grub_term_get_current): Likewise.
43070
43071 * util/i386/pc/grub-setup.c: Include grub/term.h.
43072 (grub_getkey): New function.
43073 (grub_term_get_current): Likewise.
43074
43075 * util/misc.c (grub_stop): Renamed to ...
43076 (grub_exit): ... this.
43077
43078 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
43079 (grub_exit): ... this.
43080 (grub_machine_init): Use grub_abort instead of abort.
43081 (grub_stop): Removed.
43082
43083 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
43084 abort.
43085
43086 * kern/i386/pc/startup.S (grub_exit): New function.
43087 (cold_reboot): New label.
43088
43089 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
43090 (grub_efi_init): Call grub_efidisk_init.
43091 (grub_efi_fini): Call grub_efidisk_fini.
43092
43093 * kern/efi/efi.c: Include grub/mm.h.
43094 (grub_efi_console_control_guid): Renamed to ...
43095 (console_control_guid): ... this.
43096 (grub_efi_loaded_image_guid): Renamed to ...
43097 (loaded_image_guid): ... this.
43098 (grub_efi_locate_handle): New function.
43099 (grub_efi_open_protocol): Likewise.
43100 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
43101 GRUB_EFI_CONSOLE_CONTROL_GUID.
43102 (grub_efi_exit): Removed.
43103 (grub_stop): Likewise.
43104 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
43105 (grub_exit): New function.
43106 (grub_print_device_path): Likewise.
43107
43108 * kern/rescue.c (grub_rescue_cmd_exit): New function.
43109 (grub_enter_rescue_mode): Register "exit".
43110
43111 * kern/misc.c (grub_real_dprintf): A cosmetic change.
43112 (grub_abort): New function.
43113
43114 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
43115
43116 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
43117
43118 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
43119
43120 * include/grub/efi/efi.h (grub_efi_exit): Removed.
43121 (grub_print_device_path): New prototype.
43122 (grub_efi_locate_handle): Likewise.
43123 (grub_efi_open_protocol): Likewise.
43124
43125 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
43126 * disk/efi/efidisk.c: Likewise.
43127
43128 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
43129
43130 * include/grub/efi/console_control.h
43131 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
43132
43133 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
43134 last 8 bytes as an array.
43135 (GRUB_EFI_DISK_IO_GUID): New macro.
43136 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
43137 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
43138 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
43139 grub_uint8_t.
43140 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
43141 (struct grub_efi_device_path): Rename the member "sub_type" to
43142 "subtype".
43143 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
43144 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
43145 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
43146 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
43147 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
43148 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
43149 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
43150 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
43151 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
43152 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
43153 (struct grub_efi_pci_device_path): New structure.
43154 (grub_efi_pci_device_path_t): New type.
43155 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
43156 (struct grub_efi_pccard_device_path): New structure.
43157 (grub_efi_pccard_device_path_t): New type.
43158 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
43159 (struct grub_efi_memory_mapped_device_path): New structure.
43160 (grub_efi_memory_mapped_device_path_t): New type.
43161 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
43162 (struct grub_efi_vendor_device_path): New structure.
43163 (grub_efi_vendor_device_path_t): New type.
43164 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
43165 (struct grub_efi_controller_device_path): New structure.
43166 (grub_efi_controller_device_path_t): New type.
43167 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
43168 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
43169 (struct grub_efi_acpi_device_path): New structure.
43170 (grub_efi_acpi_device_path_t): New type.
43171 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
43172 (struct grub_efi_expanded_acpi_device_path): New structure.
43173 (grub_efi_expanded_acpi_device_path_t): New type.
43174 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
43175 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
43176 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
43177 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
43178 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
43179 (struct grub_efi_atapi_device_path): New structure.
43180 (grub_efi_atapi_device_path_t): New type.
43181 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
43182 (struct grub_efi_fibre_channel_device_path): New structure.
43183 (grub_efi_fibre_channel_device_path_t): New type.
43184 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
43185 (struct grub_efi_1394_device_path): New structure.
43186 (grub_efi_1394_device_path_t): New type.
43187 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
43188 (struct grub_efi_usb_device_path): New structure.
43189 (grub_efi_usb_device_path_t): New type.
43190 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
43191 (struct grub_efi_usb_class_device_path): New structure.
43192 (grub_efi_usb_class_device_path_t): New type.
43193 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
43194 (struct grub_efi_i2o_device_path): New structure.
43195 (grub_efi_i2o_device_path_t): New type.
43196 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
43197 (struct grub_efi_mac_address_device_path): New structure.
43198 (grub_efi_mac_address_device_path_t): New type.
43199 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
43200 (struct grub_efi_ipv4_device_path): New structure.
43201 (grub_efi_ipv4_device_path_t): New type.
43202 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
43203 (struct grub_efi_ipv6_device_path): New structure.
43204 (grub_efi_ipv6_device_path_t): New type.
43205 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
43206 (struct grub_efi_infiniband_device_path): New structure.
43207 (grub_efi_infiniband_device_path_t): New type.
43208 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
43209 (struct grub_efi_uart_device_path): New structure.
43210 (grub_efi_uart_device_path_t): New type.
43211 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
43212 (struct grub_efi_vendor_messaging_device_path): New structure.
43213 (grub_efi_vendor_messaging_device_path_t): New type.
43214 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
43215 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
43216 (struct grub_efi_hard_drive_device_path): New structure.
43217 (grub_efi_hard_drive_device_path_t): New type.
43218 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
43219 (struct grub_efi_cdrom_device_path): New structure.
43220 (grub_efi_cdrom_device_path_t): New type.
43221 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
43222 (struct grub_efi_vendor_media_device_path): New structure.
43223 (grub_efi_vendor_media_device_path_t): New type.
43224 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
43225 (struct grub_efi_file_path_device_path): New structure.
43226 (grub_efi_file_path_device_path_t): New type.
43227 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
43228 (struct grub_efi_protocol_device_path): New structure.
43229 (grub_efi_protocol_device_path_t): New type.
43230 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
43231 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
43232 (struct grub_efi_bios_device_path): New structure.
43233 (grub_efi_bios_device_path_t): New type.
43234 (struct grub_efi_disk_io): New structure.
43235 (grub_efi_disk_io_t): New type.
43236 (struct grub_efi_block_io_media): New structure.
43237 (grub_efi_block_io_media_t): New type.
43238 (struct grub_efi_block_io): New structure.
43239 (grub_efi_block_io_t): New type.
43240
43241 * include/grub/misc.h (grub_stop): Removed.
43242 (grub_exit): New prototype.
43243 (grub_abort): Likewise.
43244
43245 * include/grub/disk.h (enum grub_disk_dev_id): Added
43246 GRUB_DISK_DEVICE_EFIDISK_ID.
43247
43248 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
43249 disk/efi/efidisk.c.
43250 (kernel_syms.lst): Remove the target if an error occurs.
43251
43252 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
43253
43254 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
43255 as it was simply too buggy.
43256
43257 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
43258
43259 * kern/misc.c (grub_lltoa): New function.
43260 (grub_vsprintf): Added support for the long long suffix,
43261 i.e. "ll".
43262
43263 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
43264
43265 * Makefile.in (LDFLAGS): Add variable.
43266 (LD): Remove variable.
43267 * configure.ac: Add -m32 to LDFLAGS.
43268 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
43269 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
43270 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
43271 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
43272 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
43273 variables.
43274 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
43275 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
43276 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
43277
43278 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
43279
43280 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
43281 length for unknown glyph.
43282
43283 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43284
43285 Add support for pre-loaded modules into the EFI port.
43286
43287 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
43288 completely. Accept one more argument DIR. The caller has changed.
43289
43290 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
43291
43292 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
43293 (grub_efi_loaded_image_guid): New variable.
43294 (grub_efi_get_loaded_image): New function.
43295 (grub_arch_modules_addr): Likewise.
43296
43297 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
43298 prototype.
43299
43300 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
43301 (struct grub_efi_loaded_image): New structure.
43302 (grub_efi_loaded_image_t): New type.
43303
43304 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43305
43306 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
43307 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
43308 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
43309
43310 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
43311
43312 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
43313
43314 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
43315
43316 * DISTLIST: Added include/grub/efi/console.h,
43317 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
43318 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43319
43320 * include/grub/efi/console.h: New file.
43321 * include/grub/efi/time.h: Likewise.
43322 * include/grub/i386/efi/kernel.h: Likewise.
43323 * kern/efi/init.c: Likewise.
43324 * kern/efi/mm.c: Likewise.
43325 * term/efi/console.c: Likewise.
43326
43327 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
43328 (grub_stop): Removed.
43329 (grub_get_rtc): Likewise.
43330 (grub_machine_init): Simply call grub_efi_init.
43331 (grub_machine_fini): Call grub_efi_fini.
43332
43333 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
43334 (grub_efi_output_string): Removed.
43335 (grub_efi_stall): New function.
43336 (grub_stop): Likewise.
43337 (grub_get_rtc): Likewise.
43338
43339 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
43340 (grub_efi_stall): New prototype.
43341 (grub_efi_allocate_pages): Likewise.
43342 (grub_efi_free_pages): Likewise.
43343 (grub_efi_get_memory_map): Likewise.
43344 (grub_efi_mm_init): Likewise.
43345 (grub_efi_mm_fini): Likewise.
43346 (grub_efi_init): Likewise.
43347 (grub_efi_fini): Likewise.
43348
43349 * include/grub/i386/efi/time.h: Do not include
43350 grub/symbol.h. Include grub/efi/time.h.
43351 (GRUB_TICKS_PER_SECOND): Removed.
43352 (grub_get_rtc): Likewise.
43353
43354 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
43355 Added padding. The EFI spec is buggy.
43356 (GRUB_EFI_BLACK): New macro.
43357 (GRUB_EFI_BLUE): Likewise.
43358 (GRUB_EFI_GREEN): Likewise.
43359 (GRUB_EFI_CYAN): Likewise.
43360 (GRUB_EFI_RED): Likewise.
43361 (GRUB_EFI_MAGENTA): Likewise.
43362 (GRUB_EFI_BROWN): Likewise.
43363 (GRUB_EFI_LIGHTGRAY): Likewise.
43364 (GRUB_EFI_BRIGHT): Likewise.
43365 (GRUB_EFI_DARKGRAY): Likewise.
43366 (GRUB_EFI_LIGHTBLUE): Likewise.
43367 (GRUB_EFI_LIGHTGREEN): Likewise.
43368 (GRUB_EFI_LIGHTCYAN): Likewise.
43369 (GRUB_EFI_LIGHTRED): Likewise.
43370 (GRUB_EFI_LIGHTMAGENTA): Likewise.
43371 (GRUB_EFI_YELLOW): Likewise.
43372 (GRUB_EFI_WHITE): Likewise.
43373 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
43374 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
43375 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
43376 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
43377 (GRUB_EFI_BACKGROUND_RED): Likewise.
43378 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
43379 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
43380 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
43381 (GRUB_EFI_TEXT_ATTR): Likewise.
43382
43383 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
43384 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43385 (kernel_mod_HEADERS): Added efi/time.h.
43386
43387 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
43388
43389 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
43390 include/grub/efi/api.h, include/grub/efi/console_control.h,
43391 include/grub/efi/efi.h, include/grub/efi/pe32.h,
43392 include/grub/i386/efi/time.h, kern/efi/efi.c,
43393 kern/i386/efi/init.c, kern/i386/efi/startup.S,
43394 and util/i386/efi/grub-mkimage.c.
43395
43396 * Makefile.in (RMKFILES): Added i386-efi.rmk.
43397
43398 * genmk.rb (PModule#rule): Do not export symbols if
43399 #{prefix}_EXPORTS is set to "no".
43400
43401 * conf/i386-efi.mk: New file.
43402 * conf/i386-efi.rmk: Likewise.
43403 * include/grub/efi/api.h: Likewise.
43404 * include/grub/efi/console_control.h: Likewise.
43405 * include/grub/efi/efi.h: Likewise.
43406 * include/grub/efi/pe32.h: Likewise.
43407 * include/grub/i386/efi/time.h: Likewise.
43408 * kern/efi/efi.c: Likewise.
43409 * kern/i386/efi/init.c: Likewise.
43410 * kern/i386/efi/startup.S: Likewise.
43411 * util/i386/efi/grub-mkimage.c: Likewise.
43412
43413 2006-04-17 Marco Gerards <marco@gnu.org>
43414
43415 * include/grub/script.h: Include <grub/parser.h> and
43416 "grub_script.tab.h".
43417 (struct grub_lexer_param): New struct.
43418 (struct grub_parser_param): Likewise.
43419 (grub_script_create_arglist): Pass the state in an argument.
43420 (grub_script_add_arglist): Likewise.
43421 (grub_script_create_cmdline): Likewise.
43422 (grub_script_create_cmdblock): Likewise.
43423 (grub_script_create_cmdif): Likewise.
43424 (grub_script_create_cmdmenu): Likewise.
43425 (grub_script_add_cmd): Likewise.
43426 (grub_script_arg_add): Likewise.
43427 (grub_script_lexer_ref): Likewise.
43428 (grub_script_lexer_deref): Likewise.
43429 (grub_script_lexer_record_start): Likewise.
43430 (grub_script_lexer_record_stop): Likewise.
43431 (grub_script_mem_record): Likewise.
43432 (grub_script_mem_record_stop): Likewise.
43433 (grub_script_malloc): Likewise.
43434 (grub_script_yylex): Likewise.
43435 (grub_script_yyparse): Likewise.
43436 (grub_script_yyerror): Likewise.
43437 (grub_script_yylex): Likewise.
43438 (grub_script_lexer_init): Return the state.
43439
43440 * normal/lexer.c (grub_script_lexer_state): Removed variable.
43441 (grub_script_lexer_done): Likewise.
43442 (grub_script_lexer_getline): Likewise.
43443 (grub_script_lexer_refs): Likewise.
43444 (script): Likewise.
43445 (newscript): Likewise.
43446 (record): Likewise.
43447 (recording): Likewise.
43448 (recordpos): Likewise.
43449 (recordlen): Likewise.
43450 (grub_script_lexer_init): Return the state instead of setting
43451 global variables.
43452 (grub_script_lexer_ref): Use the newly added argument for state
43453 instead of globals.
43454 (grub_script_lexer_deref): Likewise.
43455 (grub_script_lexer_record_start): Likewise.
43456 (grub_script_lexer_record_stop): Likewise.
43457 (recordchar): Likewise.
43458 (nextchar): Likewise.
43459 (grub_script_yylex2): Likewise.
43460 (grub_script_yylex): Likewise.
43461 (grub_script_yyerror): Likewise.
43462
43463 * normal/parser.y (func_mem): Removed variable.
43464 (menu_entry): Likewise.
43465 (err): Likewise.
43466 (%lex-param): New parser option.
43467 (%parse-param): Likewise.
43468 (script): Always return the AST.
43469 (argument): Pass the state around.
43470 (arguments): Likewise.
43471 (grubcmd): Likewise.
43472 (commands): Likewise.
43473 (function): Likewise.
43474 (menuentry): Likewise.
43475 (if_statement): Likewise.
43476 (if): Likewise.
43477
43478 * normal/script.c (grub_script_memused): Removed variable.
43479 (grub_script_parsed): Likewise.
43480 (grub_script_malloc): Added a state argument. Use that instead of
43481 global variables.
43482 (grub_script_mem_record): Likewise.
43483 (grub_script_mem_record_stop): Likewise.
43484 (grub_script_arg_add): Likewise.
43485 (grub_script_add_arglist): Likewise.
43486 (grub_script_create_cmdline): Likewise.
43487 (grub_script_create_cmdif): Likewise.
43488 (grub_script_create_cmdmenu): Likewise.
43489 (grub_script_add_cmd): Likewise.
43490 (grub_script_parse): Setup the state before calling the parser.
43491
43492 2006-04-16 Marco Gerards <marco@gnu.org>
43493
43494 * normal/command.c (grub_command_init): Remove the title command.
43495
43496 * normal/lexer.c (grub_script_yylex): Renamed from this...
43497 (grub_script_yylex2): ... to this.
43498 (grub_script_yylex): New function. Temporary
43499 introduced to filter some tokens.
43500 (grub_script_yyerror): Print a newline.
43501
43502 * normal/main.c (read_config_file): Output information about the
43503 lines that contain errors. Wait for a key after all lines have
43504 been processed. Don't return an empty menu.
43505
43506 * normal/parser.y (func_mem): Don't initialize.
43507 (menu_entry): Likewise.
43508 (err): New variable.
43509 (script): Don't return anything when an error was encountered.
43510 (ws, returns): Removed rules.
43511 (argument): Disabled concatenated variable support.
43512 (arguments): Remove explicit separators.
43513 (grubcmd): Likewise.
43514 (function): Likewise.
43515 (menuentry): Likewise.
43516 (if): Likewise.
43517 (commands): Likewise. Add error handling.
43518
43519 * normal/script.c (grub_script_create_cmdline): If
43520 `grub_script_parsed' is 0, assume the parser encountered an error.
43521
43522 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
43523
43524 * configure.ac: Add support for EFI. Fix the typo
43525 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
43526
43527 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43528
43529 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
43530 foreign multibyte characters should be shown correctly.
43531
43532 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43533
43534 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
43535 calculation.
43536 (read_config_file): Made it to close file before returning.
43537
43538 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
43539
43540 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
43541 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
43542 video/i386/pc/vbefill.c.
43543
43544 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
43545 video/i386/pc/vbefill.c.
43546
43547 * include/grub/video.h (grub_video_blit_format): New enum.
43548 (grub_video_mode_info): Added new member blit_format.
43549 (grub_video_get_blit_format): New function prototype.
43550
43551 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
43552 function prototype.
43553 (grub_video_vbe_map_rgb): Likewise.
43554 (grub_video_vbe_unmap_color): Likewise.
43555
43556 * include/grub/i386/pc/vbeblit.h: New file.
43557
43558 * include/grub/i386/pc/vbefill.h: New file.
43559
43560 * video/video.c (grub_video_get_blit_format): New function.
43561 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
43562 (grub_video_vbe_map_rgb): Likewise.
43563 (grub_video_vbe_unmap_color): Likewise.
43564
43565 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
43566 optimized fills.
43567 (grub_video_vbe_blit_render_target): Changed to use more optimized
43568 blits.
43569 (grub_video_vbe_setup): Added detection for optimized settings.
43570 (grub_video_vbe_create_render_target): Likewise.
43571
43572 * video/i386/pc/vbeblit.c: New file.
43573
43574 * video/i386/pc/vbefill.c: New file.
43575
43576 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
43577
43578 * font/manager.c (grub_font_get_glyph): Removed font fixup from
43579 here...
43580
43581 * util/unifont2pff.rb: ... and moved it to here. Improved argument
43582 parsing to support both hex and dec ranges. If filename was missing
43583 show usage information.
43584
43585 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
43586
43587 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
43588 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
43589
43590 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
43591 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
43592 (video_mod_SOURCES): Added.
43593 (video_mod_CFLAGS): Likewise.
43594 (video_mod_LDFLAGS): Likewise.
43595 (gfxterm_mod_SOURCES): Likewise.
43596 (gfxterm_mod_CFLAGS): Likewise.
43597 (gfxterm_mod_LDFLAGS): Likewise.
43598 (videotest_mod_SOURCES): Likewise.
43599 (videotest_mod_CFLAGS): Likewise.
43600 (videotest_mod_LDFLAGS): Likewise.
43601 (vesafb_mod_SOURCES): Removed.
43602 (vesafb_mod_CFLAGS): Likewise.
43603 (vesafb_mod_LDFLAGS): Likewise.
43604 (vga_mod_SOURCES): Likewise.
43605 (vga_mod_CFLAGS): Likewise.
43606 (vga_mod_LDFLAGS): Likewise.
43607
43608 * commands/videotest.c: New file.
43609
43610 * font/manager.c (fill_with_default_glyph): Modified to use
43611 grub_font_glyph.
43612 (grub_font_get_glyph): Likewise.
43613 (fontmanager): Renamed from this...
43614 (font_manager): ... to this.
43615
43616 * include/grub/font.h (grub_font_glyph): Added new structure.
43617 (grub_font_get_glyph): Modified to use grub_font_glyph.
43618
43619 * include/grub/misc.h (grub_abs): Added as inline function.
43620
43621 * include/grub/video.h: New file.
43622
43623 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
43624 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
43625 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
43626 (grub_vbe_get_controller_info): Renamed from this...
43627 (grub_vbe_bios_get_controller_info): ... to this.
43628 (grub_vbe_get_mode_info): Renamed from this...
43629 (grub_vbe_bios_get_mode_info): ... to this.
43630 (grub_vbe_set_mode): Renamed from this...
43631 (grub_vbe_bios_set_mode): ... to this.
43632 (grub_vbe_get_mode): Renamed from this...
43633 (grub_vbe_bios_get_mode): ... to this.
43634 (grub_vbe_set_memory_window): Renamed from this...
43635 (grub_vbe_bios_set_memory_window): ... to this.
43636 (grub_vbe_get_memory_window): Renamed from this...
43637 (grub_vbe_bios_get_memory_window): ... to this.
43638 (grub_vbe_set_scanline_length): Renamed from this...
43639 (grub_vbe_set_scanline_length): ... to this.
43640 (grub_vbe_get_scanline_length): Renamed from this...
43641 (grub_vbe_bios_get_scanline_length): ... to this.
43642 (grub_vbe_set_display_start): Renamed from this...
43643 (grub_vbe_bios_set_display_start): ... to this.
43644 (grub_vbe_get_display_start): Renamed from this...
43645 (grub_vbe_bios_get_display_start): ... to this.
43646 (grub_vbe_set_palette_data): Renamed from this...
43647 (grub_vbe_bios_set_palette_data): ... to this.
43648 (grub_vbe_set_pixel_rgb): Removed.
43649 (grub_vbe_set_pixel_index): Likewise.
43650
43651 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
43652 from this...
43653 (grub_vbe_bios_get_controller_info): ... to this.
43654 (grub_vbe_get_mode_info): Renamed from this...
43655 (grub_vbe_bios_get_mode_info): ... to this.
43656 (grub_vbe_set_mode): Renamed from this...
43657 (grub_vbe_bios_set_mode): ... to this.
43658 (grub_vbe_get_mode): Renamed from this...
43659 (grub_vbe_bios_get_mode): ... to this.
43660 (grub_vbe_set_memory_window): Renamed from this...
43661 (grub_vbe_bios_set_memory_window): ... to this.
43662 (grub_vbe_get_memory_window): Renamed from this...
43663 (grub_vbe_bios_get_memory_window): ... to this.
43664 (grub_vbe_set_scanline_length): Renamed from this...
43665 (grub_vbe_set_scanline_length): ... to this.
43666 (grub_vbe_get_scanline_length): Renamed from this...
43667 (grub_vbe_bios_get_scanline_length): ... to this.
43668 (grub_vbe_set_display_start): Renamed from this...
43669 (grub_vbe_bios_set_display_start): ... to this.
43670 (grub_vbe_get_display_start): Renamed from this...
43671 (grub_vbe_bios_get_display_start): ... to this.
43672 (grub_vbe_set_palette_data): Renamed from this...
43673 (grub_vbe_bios_set_palette_data): ... to this.
43674 (grub_vbe_bios_get_controller_info): Fixed problem with registers
43675 getting corrupted after calling it. Added more pushes and pops.
43676 (grub_vbe_bios_set_mode): Likewise.
43677 (grub_vbe_bios_get_mode): Likewise.
43678 (grub_vbe_bios_get_memory_window): Likewise.
43679 (grub_vbe_bios_set_scanline_length): Likewise.
43680 (grub_vbe_bios_get_scanline_length): Likewise.
43681 (grub_vbe_bios_get_display_start): Likewise.
43682 (grub_vbe_bios_set_palette_data): Likewise.
43683
43684 * normal/cmdline.c (cl_set_pos): Refresh the screen.
43685 (cl_insert): Likewise.
43686 (cl_delete): Likewise.
43687
43688 * term/gfxterm.c: New file.
43689
43690 * term/i386/pc/vesafb.c: Removed file.
43691
43692 * video/video.c: New file.
43693
43694 * video/i386/pc/vbe.c (real2pm): Added new function.
43695 (grub_video_vbe_draw_pixel): Likewise.
43696 (grub_video_vbe_get_video_ptr): Likewise.
43697 (grub_video_vbe_get_pixel): Likewise
43698 (grub_video_vbe_init): Likewise.
43699 (grub_video_vbe_fini): Likewise.
43700 (grub_video_vbe_setup): Likewise.
43701 (grub_video_vbe_get_info): Likewise.
43702 (grub_video_vbe_set_palette): Likewise.
43703 (grub_video_vbe_get_palette): Likewise.
43704 (grub_video_vbe_set_viewport): Likewise.
43705 (grub_video_vbe_get_viewport): Likewise.
43706 (grub_video_vbe_map_color): Likewise.
43707 (grub_video_vbe_map_rgb): Likewise.
43708 (grub_video_vbe_map_rgba): Likewise.
43709 (grub_video_vbe_unmap_color): Likewise.
43710 (grub_video_vbe_fill_rect): Likewise.
43711 (grub_video_vbe_blit_glyph): Likewise.
43712 (grub_video_vbe_blit_bitmap): Likewise.
43713 (grub_video_vbe_blit_render_target): Likewise.
43714 (grub_video_vbe_scroll): Likewise.
43715 (grub_video_vbe_swap_buffers): Likewise.
43716 (grub_video_vbe_create_render_target): Likewise.
43717 (grub_video_vbe_delete_render_target): Likewise.
43718 (grub_video_vbe_set_active_render_target): Likewise.
43719 (grub_vbe_set_pixel_rgb): Remove function.
43720 (grub_vbe_set_pixel_index): Likewise.
43721 (index_color_mode): Remove static variable.
43722 (active_mode): Likewise.
43723 (framebuffer): Likewise.
43724 (bytes_per_scan_line): Likewise.
43725 (grub_video_vbe_adapter): Added new static variable.
43726 (framebuffer): Likewise.
43727 (render_target): Likewise.
43728 (initial_mode): Likewise.
43729 (mode_in_use): Likewise.
43730 (mode_list): Likewise.
43731
43732 2006-03-10 Marco Gerards <marco@gnu.org>
43733
43734 * configure.ac (AC_INIT): Bumped to 1.93.
43735
43736 * DISTLIST: Added `include/grub/hfs.h'.
43737
43738 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
43739
43740 * boot/i386/pc/boot.S (general_error): Before looping, try INT
43741 18H, which might help the BIOS falling back to next boot media.
43742
43743 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
43744
43745 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
43746 Poe Chen <poe.poechen@gmail.com>.
43747
43748 2006-01-17 Marco Gerards <marco@gnu.org>
43749
43750 * include/grub/normal.h: Include <grub/script.h>.
43751 (grub_command_list): Removed struct.
43752 (grub_command_list_t): Removed type.
43753 (grub_menu_entry): Remove members `num' and `command_list'. Add
43754 members `commands' and `sourcecode'.
43755 * include/grub/script.h: Add inclusion guards.
43756 (grub_script_cmd_menuentry): New struct.
43757 (grub_script_execute_menuentry): New prototype.
43758 (grub_script_lexer_record_start): Likewise.
43759 (grub_script_lexer_record_stop): Likewise.
43760 * normal/execute.c (grub_script_execute_menuentry): New function.
43761 * normal/lexer.c (record, recording, recordpos, recordlen): New
43762 variables.
43763 (grub_script_lexer_record_start): New function.
43764 (grub_script_lexer_record_stop): Likewise.
43765 (recordchar): Likewise.
43766 (nextchar): Likewise.
43767 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
43768 2048 as the buffer size. Add the tokens `menuentry' and `@'.
43769 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
43770 (current_menu): New variable.
43771 (free_menu): Mainly rewritten.
43772 (grub_normal_menu_addentry): New function.
43773 (read_config_file): Rewritten.
43774 * normal/menu.c (run_menu_entry): Mainly rewritten.
43775 * normal/menu_entry.c (make_screen): Rewritten the code to insert
43776 the menu entry.
43777 (run): Mainly rewritten.
43778 * normal/parser.y (menu_entry): New variable.
43779 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
43780 (menuentry): New rule.
43781 (command): Add `menuentry'.
43782 (if_statement): Allow additional returns before `fi'.
43783 * normal/script.c (grub_script_create_cmdmenu): New function.
43784
43785 2006-01-03 Marco Gerards <marco@gnu.org>
43786
43787 * INSTALL: GNU Bison is required.
43788 * configure.ac: Rewritten the test to detect Bison.
43789 * Makefile.in (YACC): New variable. Reported by Xun Sun
43790 <xun.sun.cn@gmail.com>.
43791
43792 2006-01-03 Marco Gerards <marco@gnu.org>
43793
43794 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
43795 the HFS+ filesystem to filesystem blocks.
43796 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
43797 GCC warning is silenced.
43798
43799 2006-01-03 Marco Gerards <marco@gnu.org>
43800
43801 * partmap/apple.c (apple_partition_map_iterate): Convert the data
43802 read from disk from big endian to host byte order.
43803
43804 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
43805
43806 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
43807 documentation.
43808 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
43809 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
43810 embedded HFS+ filesystem.
43811 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
43812 (grub_hfs_sblock): Move from here...
43813 * include/grub/hfs.h: To here... New file.
43814 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
43815 documentation.
43816 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
43817 New macros.
43818 (grub_hfsplus_volheader): Change type of member `magic' to
43819 `grub_uint16_t'.
43820 (grub_hfsplus_data): Add new member `embedded_offset'.
43821 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
43822 returned block.
43823 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
43824 Calculate the offset.
43825
43826 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43827
43828 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
43829 Removed.
43830 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
43831
43832 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43833
43834 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
43835 ENV->NAME is NULL after allocating ENV->VALUE.
43836
43837 2005-12-25 Marco Gerards <marco@gnu.org>
43838
43839 * kern/env.c (grub_env_set): Rewritten the error handling code.
43840
43841 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43842
43843 * geninit.sh: Made more robust, and more portable.
43844
43845 2005-12-25 Marco Gerards <marco@gnu.org>
43846
43847 Add support for Apple HFS+ filesystems.
43848
43849 * fs/hfsplus.c: New file.
43850
43851 * DISTLIST: Added `fs/hfsplus.c'.
43852
43853 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
43854 (hfsplus_mod_SOURCES): New variable.
43855 (hfsplus_mod_CFLAGS): Likewise.
43856 (hfsplus_mod_LDFLAGS): Likewise.
43857 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
43858 (grub_setup_SOURCES): Likewise.
43859 (grub_mkdevicemap_SOURCES): Likewise.
43860 (grub_emu_SOURCES): Likewise.
43861 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43862
43863 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
43864
43865 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
43866
43867 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43868
43869 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
43870 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
43871 include/grub/parser.h, include/grub/script.h, kern/parser.c,
43872 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
43873 normal/lexer.c, normal/parser.y, normal/script.c, and
43874 partmap/gpt.c.
43875 Removed kern/sparc64/cache.c.
43876
43877 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
43878 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
43879 grub_emu_init.c.
43880
43881 * configure.ac (AC_INIT): Bumped to 1.92.
43882
43883 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
43884
43885 * kern/err.c (grub_error_push): Added new function to support error
43886 stacks.
43887 (grub_error_pop): Likewise.
43888 (grub_error_stack_items): New local variable to support error stacks.
43889 (grub_error_stack_pos): Likewise.
43890 (grub_error_stack_assert): Likewise.
43891 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
43892 stack depth.
43893 (grub_print_error): Added support to print errors from error stack.
43894
43895 * include/grub/err.h (grub_error_push): Added function prototype.
43896 (grub_error_pop): Likewise.
43897
43898 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
43899
43900 * configure.ac: Accept `powerpc64' as host_cpu.
43901 (amd64): Rename to `biarch32'.
43902
43903 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
43904 non-cacheline-aligned addresses.
43905
43906 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
43907 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
43908 if `size' is non-zero.
43909
43910 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
43911
43912 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
43913 and `cd' to make sure the filename is not prefixed with a
43914 directory name.
43915 (pkgdata_MODULES): Add `gpt.mod'.
43916 (gpt_mod_SOURCES): New variable.
43917 (gpt_mod_CFLAGS): Likewise.
43918 (gpt_mod_LDFLAGS): Likewise.
43919
43920 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
43921
43922 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
43923 New macro.
43924
43925 * partmap/gpt.c: New file.
43926
43927 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
43928 GPT partition map is detected.
43929
43930 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
43931
43932 * commands/i386/pc/play.c: New file.
43933 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
43934 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
43935 macros.
43936
43937 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
43938
43939 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
43940 ((unused))' to silence gcc warning.
43941
43942 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
43943
43944 * configure.ac: Correct `AC_PROG_YACC' test.
43945
43946 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43947
43948 * util/powerpc/ieee1275/grub-install.in: Run the mount point
43949 check before installing files.
43950
43951 2005-11-22 Mike Small <smallm@panix.com>
43952
43953 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
43954 number regex so multidigit numbers are recognized correctly.
43955
43956 2005-11-22 Mike Small <smallm@panix.com>
43957
43958 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
43959 debugging message before attempting to claim memory.
43960 (grub_rescue_cmd_initrd): Add a claim debugging message and try
43961 multiple addresses in case of failure.
43962
43963 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43964
43965 * term/tparm.c (get_space): Remove empty `if' statement.
43966
43967 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
43968
43969 * kern/parser.c (check_varstate): Rename `state' to 's'.
43970
43971 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43972
43973 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
43974 variable definitions to the beginning of each function. Sort stack
43975 variables by size.
43976 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
43977 `buf' argument to `char *'.
43978
43979 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43980
43981 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
43982 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
43983 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
43984 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
43985 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
43986 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
43987 configfile.mod, search.mod, gzio.mod and test.mod.
43988 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
43989 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
43990 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
43991 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
43992 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
43993 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
43994 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
43995 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
43996 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
43997 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
43998 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43999 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44000 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44001 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44002 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44003 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44004 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44005 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44006 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44007 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44008 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44009 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44010 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
44011
44012 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
44013 `grep --include'.
44014 (pkgdata_MODULES): Add test.mod.
44015
44016 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44017
44018 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
44019 appending to variables with "+=".
44020 (PModule): Use full pathname to generate *.lst filenames.
44021
44022 * Makefile.in: Fixed list rules moved from genmk.rb.
44023 (.DELETE_ON_ERROR): New special target.
44024 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
44025
44026 * conf/i386-pc.rmk: Include conf/common.mk.
44027 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
44028 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
44029 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44030 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44031 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44032 configfile.mod, search.mod, gzio.mod and test.mod.
44033 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44034 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44035 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44036 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44037 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44038 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44039 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44040 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44041 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44042 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44043 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44044 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44045 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44046 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44047 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44048 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44049 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44050 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44051 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44052 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44053 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44054 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44055 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
44056 here...
44057 * conf/common.rmk: ... to here. New file.
44058
44059 * conf/common.mk: New file.
44060
44061 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
44062
44063 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
44064 (grub_script.tab.c): ... here.
44065
44066 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
44067 (grub_script.tab.c): ... here.
44068
44069 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
44070 (grub_script.tab.c): ... here.
44071
44072 * normal/command.c (grub_command_find): Fixed a memory leak of
44073 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
44074
44075 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44076
44077 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
44078 "@" which marks the start of a comment on ARM.
44079 (VARIABLE): Likewise.
44080
44081 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44082
44083 Add support for Linux/ADFS partition tables.
44084
44085 * partmap/acorn.c: New file.
44086
44087 * include/grub/acorn_filecore.h: Likewise.
44088
44089 * DISTLIST: Added `partmap/acorn.c' and
44090 `include/grub/acorn_filecore.h'.
44091
44092 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44093 `partmap/acorn.c'.
44094 (pkgdata_MODULES): Add `acorn.mod'.
44095 (acorn_mod_SOURCES): New variable.
44096 (acorn_mod_CFLAGS): Likewise.
44097
44098 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44099 `partmap/acorn.c'.
44100 (pkgdata_MODULES): Add `acorn.mod'.
44101 (acorn_mod_SOURCES): New variable.
44102 (acorn_mod_CFLAGS): Likewise.
44103
44104 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
44105 (pkgdata_MODULES): Add `acorn.mod'.
44106 (acorn_mod_SOURCES): New variable.
44107 (acorn_mod_CFLAGS): Likewise.
44108 (acorn_mod_LDFLAGS): Likewise.
44109
44110 * include/types.h (grub_disk_addr_t): New typedef.
44111
44112 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
44113
44114 * geninit.sh: New file.
44115
44116 * geninitheader.sh: Likewise.
44117
44118 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
44119 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
44120 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
44121 * commands/configfile.c (grub_configfile_init)
44122 (grub_configfile_fini): Likewise.
44123 * commands/default.c (grub_default_init, grub_default_fini):
44124 Likewise.
44125 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
44126 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
44127 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
44128 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
44129 Likewise.
44130 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
44131 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
44132 Likewise.
44133 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
44134 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
44135 Likewise.
44136 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
44137 Likewise.
44138 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
44139 Likewise.
44140 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
44141 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
44142 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
44143 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
44144 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
44145 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
44146 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
44147 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
44148 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
44149 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
44150 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
44151 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
44152 * partmap/amiga.c (grub_amiga_partition_map_init)
44153 (grub_amiga_partition_map_fini): Likewise.
44154 * partmap/apple.c (grub_apple_partition_map_init)
44155 (grub_apple_partition_map_fini): Likewise.
44156 * partmap/pc.c (grub_pc_partition_map_init)
44157 (grub_pc_partition_map_fini): Likewise.
44158 * partmap/sun.c (grub_sun_partition_map_init,
44159 grub_sun_partition_map_fini): Likewise.
44160 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
44161 Likewise.
44162
44163 * util/grub-emu.c: Include <grub_modules_init.h>.
44164 (main): Don't initialize and de-initialize any modules directly,
44165 use `grub_init_all' and `grub_fini_all' instead.
44166
44167 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
44168 `grub_vesafb_mod_init'.
44169 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
44170 all users.
44171 * term/i386/pc/vga.c (grub_vga_init): Renamed to
44172 `grub_vga_mod_init'. Updated all users.
44173 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
44174
44175 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
44176 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
44177 rules.
44178
44179 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
44180 Generate a function to initialize the module in utilities.
44181 Updated all callers.
44182 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
44183 initialize the module in utilities. Updated all callers.
44184
44185 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44186
44187 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
44188 escape sequence and a literal ^L to clear the screen.
44189
44190 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
44191 when returning from Open Firmware.
44192
44193 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44194
44195 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
44196 (grub_ofconsole_height): Likewise.
44197 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
44198 manually insert a '\n'.
44199 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
44200 `grub_ofconsole_height'. Return early if these are already set.
44201
44202 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
44203
44204 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44205 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
44206 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
44207 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
44208 and `normal/script.c'.
44209 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44210 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44211 (test_mod_SOURCES): New variable.
44212 (test_mod_CFLAGS): Likewise.
44213 (test_mod_LDFLAGS): Likewise.
44214 (pkgdata_MODULES): Add `test.mod'.
44215 (grub_script.tab.c): New rule.
44216 (grub_script.tab.h): Likewise.
44217
44218 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
44219
44220 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44221 `commands/test.c', `normal/execute.c', `normal/lexer.c',
44222 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44223 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44224 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44225 (test_mod_SOURCES): New variable.
44226 (test_mod_CFLAGS): Likewise.
44227 (pkgdata_MODULES): Add `test.mod'.
44228 (grub_script.tab.c): New rule.
44229 (grub_script.tab.h): Likewise.
44230
44231 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
44232
44233 Add initial scripting support.
44234
44235 * commands/test.c: New file.
44236 * include/grub/script.h: Likewise.
44237 * normal/execute.c: Likewise.
44238 * normal/function.c: Likewise.
44239 * normal/lexer.c: Likewise.
44240 * normal/parser.y: Likewise.
44241 * normal/script.c: Likewise.
44242
44243 * configure.ac: Add `AC_PROG_YACC' test.
44244
44245 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
44246 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
44247 `normal/function.c' and `normal/script.c'.
44248 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44249 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44250 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
44251 variables.
44252 (pkgdata_MODULES): Add `test.mod'.
44253 (grub_script.tab.c): New rule.
44254 (grub_script.tab.h): Likewise.
44255
44256 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
44257
44258 * include/grub/normal.h (grub_test_init): New prototype.
44259 (grub_test_fini): Likewise.
44260
44261 * normal/command.c: Include <grub/script.h>.
44262 (grub_command_execute): Rewritten.
44263
44264 * util/grub-emu.c (main): Call `grub_test_init' and
44265 `grub_test_fini'.
44266
44267 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44268
44269 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
44270 to 0.
44271 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
44272 there are no pending characters.
44273
44274 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44275
44276 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
44277 `grub_strndup' to drop device arguments. Replace unnecessary
44278 `grub_strndup' with `grub_strdup'.
44279
44280 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44281
44282 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
44283 `debug' environment variable has been set.
44284
44285 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
44286
44287 * Makefile.in (install-local): Use $(DATA).
44288 (uninstall): Likewise.
44289 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
44290 (sbin_UTILITIES): ... to here.
44291 (sbin_SCRIPTS): New variable.
44292 (grub_install_SOURCES): New variable.
44293 * util/powerpc/ieee1275/grub-install.in: New file.
44294 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
44295 variable.
44296 (add_segments): Call `grub_util_get_path'.
44297
44298 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
44299
44300 From Timothy Baldwin:
44301 * commands/ls.c (grub_ls_list_files): Close FILE with
44302 grub_file_close.
44303 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
44304
44305 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
44306
44307 * include/grub/parser.h: New file.
44308
44309 * kern/parser.c: Likewise.
44310
44311 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
44312 (grub_setup_SOURCES): Likewise.
44313 (grub_probefs_SOURCES): Likewise.
44314 (grub_emu_SOURCES): Likewise.
44315 (kernel_img_HEADERS): Add `parser.h'.
44316
44317 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44318 (grub_emu_SOURCES): Add `kern/parser.c'.
44319 (grubof_SOURCES): Likewise.
44320
44321 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44322 (grubof_SOURCES): Add `kern/parser.c'.
44323
44324 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
44325
44326 * kern/misc.c (grub_split_cmdline): Removed function.
44327
44328 * kern/rescue.c: Include <grub/parser.h>.
44329 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
44330 of `grub_split_cmdline'.
44331
44332 * normal/command.c: Include <grub/parser.h>.
44333 (grub_command_execute): Use `grub_parser_split_cmdline' instead
44334 of `grub_split_cmdline'.
44335
44336 * normal/completion.c: Include <grub/parser.h>.
44337 (cmdline_state): New variable.
44338 (iterate_dir): End the filename with a quote depending on the
44339 command line state.
44340 (get_state): new function.
44341 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
44342 split the arguments and determine the current argument. When the
44343 argument string is not quoted, escape all spaces.
44344
44345 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44346
44347 * normal/sparc64/setjmp.S: New file.
44348
44349 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44350
44351 * include/grub/sparc64/libgcc.h: New file.
44352 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
44353 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
44354 normal/sparc64/setjmp.c.
44355
44356 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44357
44358 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
44359 * kern/sparc64/cache.S: New file.
44360 * kern/sparc64/cache.c: Removed.
44361 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
44362 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
44363 -mtune=ultrasparc.
44364 (COMMON_LDFLAGS): Add -melf64_sparc.
44365 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
44366 (grubof_SOURCES): Use cache.S instead of cache.c.
44367 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
44368 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
44369 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
44370 commented though.
44371 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
44372 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
44373 (linux_mod_CFLAGS): Commented out.
44374 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
44375 out because module isn't built.
44376 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
44377 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
44378 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
44379 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
44380 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
44381 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44382 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44383 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
44384 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
44385 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
44386 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44387 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44388 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
44389 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
44390
44391 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
44392
44393 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
44394 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
44395 longer, because HFS should not be used on PC.
44396
44397 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44398
44399 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
44400 consistently within the loop.
44401
44402 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
44403
44404 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
44405 directory can not be read.
44406
44407 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44408
44409 * configure.ac (AC_INIT): Increase the version number to 1.91.
44410
44411 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
44412 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
44413 term/i386/pc/serial.c.
44414
44415 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44416
44417 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
44418 file size must be permitted.
44419
44420 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
44421 between %ah and %al.
44422
44423 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44424
44425 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
44426 grub_uint64_t.
44427 Call the hook with a NUL-terminated filename.
44428 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
44429 grub_cpu_to_be32.
44430
44431 * kern/term.c (cursor_state): New variable.
44432 (grub_term_set_current): Reset the cursor state on a new
44433 terminal.
44434 (grub_setcursor): Rewritten to use CURSOR_STATE.
44435 (grub_getcursor): New function.
44436
44437 * include/grub/term.h (grub_getcursor): New prototype.
44438
44439 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
44440 integers on ARM. Reported by Timothy Baldwin
44441 <T.E.Baldwin99@members.leeds.ac.uk>.
44442
44443 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
44444
44445 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
44446 allocated.
44447 (grub_sfs_dir): Likewise.
44448
44449 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
44450
44451 Add support for the SFS filesystem.
44452
44453 * fs/sfs.c: New file.
44454
44455 * DISTLIST: Added `fs/sfs.c'.
44456
44457 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
44458 (grub_probefs_SOURCES): Likewise.
44459 (grub_emu_SOURCES): Likewise.
44460 (pkgdata_MODULES): Add `sfs.mod'.
44461 (sfs_mod_SOURCES): New variable.
44462 (sfs_mod_CFLAGS): Likewise.
44463 (sfs_mod_LDFLAGS): Likewise.
44464
44465 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
44466 (pkgdata_MODULES): Add `sfs.mod'.
44467 (sfs_mod_SOURCES): New variable.
44468 (sfs_mod_CFLAGS): Likewise.
44469
44470 * util/grub-emu.c (main): Call `grub_sfs_init' and
44471 `grub_sfs_fini'.
44472
44473 * include/grub/fs.h (grub_sfs_init): New prototype.
44474 (grub_sfs_fini): Likewise.
44475
44476 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
44477
44478 Add support for the AFFS filesystem.
44479
44480 * fs/affs.c: New file.
44481
44482 * DISTLIST: Added `fs/affs.c'.
44483
44484 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
44485 (grub_probefs_SOURCES): Likewise.
44486 (grub_emu_SOURCES): Likewise.
44487 (pkgdata_MODULES): Add `affs.mod'.
44488 (affs_mod_SOURCES): New variable.
44489 (affs_mod_CFLAGS): Likewise.
44490 (affs_mod_LDFLAGS): Likewise.
44491
44492 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
44493 (pkgdata_MODULES): Add `affs.mod'.
44494 (affs_mod_SOURCES): New variable.
44495 (affs_mod_CFLAGS): Likewise.
44496
44497 * util/grub-emu.c (main): Call `grub_affs_init' and
44498 `grub_affs_fini'.
44499
44500 * include/grub/fs.h (grub_affs_init): New prototype.
44501 (grub_affs_fini): Likewise.
44502
44503 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44504
44505 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
44506
44507 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44508
44509 * configure.ac: Accept `x86_64' as host_cpu. In that case add
44510 `-m32' to CFLAGS.
44511
44512 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
44513 linking.
44514
44515 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
44516 (COMMON_LDFLAGS): New variable.
44517 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
44518 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
44519 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
44520 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
44521 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
44522 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
44523 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
44524 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
44525 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
44526 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
44527 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44528 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44529 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
44530 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
44531 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
44532 variables.
44533 (normal_mod_ASFLAGS): Add `-m32'.
44534
44535 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
44536 (grub_host_size_t, grub_host_ssize_t): New types.
44537 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
44538 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
44539 `GRUB_HOST_SIZEOF_VOID_P'.
44540
44541 * include/grub/kernel.h (struct grub_module_header): Type of
44542 member offset changed to `grub_host_off_t'. Type of member size
44543 changed to `grub_host_size_t'.
44544 (struct grub_module_info): Type of member offset changed to
44545 `grub_host_off_t'. Type of member size changed to
44546 `grub_host_size_t'.
44547
44548 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
44549
44550 Make GRUB's kernel compliant to Multiboot Specification.
44551
44552 * kern/i386/pc/startup.S (multiboot_header): New label.
44553 (multiboot_entry): Likewise.
44554 (multiboot_trampoline): Likewise.
44555
44556 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44557 Increased to 0x4A0.
44558
44559 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
44560 put parentheses after a question mark.
44561 [!GRUB_UTIL] (my_mod): New variable.
44562
44563 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
44564
44565 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
44566
44567 Adds support for the XFS filesystem. Btrees are not supported
44568 yet.
44569
44570 * fs/xfs.c: New file.
44571
44572 * DISTLIST: Added `fs/xfs.c'.
44573
44574 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
44575 (grub_probefs_SOURCES): Likewise.
44576 (grub_emu_SOURCES): Likewise.
44577 (pkgdata_MODULES): Add `xfs.mod'.
44578 (xfs_mod_SOURCES): New variable.
44579 (xfs_mod_CFLAGS): Likewise.
44580
44581 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
44582 (pkgdata_MODULES): Add `xfs.mod'.
44583 (xfs_mod_SOURCES): New variable.
44584 (xfs_mod_CFLAGS): Likewise.
44585
44586 * util/grub-emu.c (main): Call `grub_xfs_init' and
44587 `grub_xfs_fini'.
44588
44589 * include/grub/fs.h (grub_xfs_init): New prototype.
44590 (grub_xfs_fini): Likewise.
44591
44592
44593 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
44594
44595 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
44596 color modes, allow greater than 16 colors to be configured as
44597 a default palette.
44598
44599 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44600
44601 * normal/completion.c (complete_arguments): Add the qualifier
44602 const into OPTIONS.
44603
44604 From Omniflux <omniflux+lists@omniflux.com>:
44605 * include/grub/terminfo.h: New file.
44606 * include/grub/tparm.h: Likewise.
44607 * include/grub/i386/pc/serial.h: Likewise.
44608 * term/terminfo.c: Likewise.
44609 * term/tparm.c: Likewise.
44610 * term/i386/pc/serial.c: Likewise.
44611 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
44612 serial.mod.
44613 (terminfo_mod_SOURCES): New variable.
44614 (terminfo_mod_CFLAGS): Likewise.
44615 (serial_mod_SOURCES): Likewise.
44616 (serial_mod_CFLAGS): Likewise.
44617
44618 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
44619
44620 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
44621 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
44622 and kern/powerpc/ieee1275/cmain.c, respectively.
44623
44624 * boot/powerpc/ieee1275/crt0.S: Moved to ...
44625 * kern/powerpc/ieee1275/crt0.S: ... here.
44626
44627 * boot/powerpc/ieee1275/cmain.c: Moved to ...
44628 * kern/powerpc/ieee1275/cmain.c: ... here.
44629
44630 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
44631 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
44632 instead of boot/powerpc/ieee1275/crt0.S and
44633 boot/powerpc/ieee1275/cmain.c, respectively.
44634
44635 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
44636 sectors. It was not used anyway.
44637
44638 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44639
44640 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
44641 `unused parameter' warning.
44642
44643 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44644
44645 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
44646 function.
44647 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
44648 getcharwidth.
44649
44650 2005-08-28 Marco Gerards <metgerards@student.han.nl>
44651
44652 * include/grub/normal.h (enum grub_completion_type): Added
44653 `GRUB_COMPLETION_TYPE_ARGUMENT'.
44654
44655 * normal/cmdline.c (print_completion): Handle
44656 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
44657 * normal/menu_entry.c (store_completion): Likewise.
44658
44659 * normal/completion.c (complete_arguments): New function.
44660 (grub_normal_do_completion): Call `complete_arguments' when the
44661 current words start with a dash.
44662
44663 2005-08-27 Marco Gerards <metgerards@student.han.nl>
44664
44665 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
44666 `gzio.mod' instead of `io.mod').
44667
44668 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
44669
44670 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
44671 (DISTDIRS): Added io and video.
44672 Rewrite the search routine to make an output consistently.
44673
44674 * DISTLIST: Added conf/sparc64-ieee1275.mk,
44675 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
44676 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
44677 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
44678 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
44679 util/powerpc/ieee1275/misc.c.
44680
44681 * include/grub/gzio.h: New file.
44682 * io/gzio.c: Likewise.
44683
44684 * kern/file.c (grub_file_close): Call grub_device_close only if
44685 FILE->DEVICE is not NULL.
44686
44687 * include/grub/mm.h [!NULL] (NULL): New macro.
44688
44689 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
44690
44691 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
44692 (pkgdata_MODULES): Added gzio.mod.
44693 (gzio_mod_SOURCES): New variable.
44694 (gzio_mod_CFLAGS): Likewise.
44695
44696 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
44697 (pkgdata_MODULES): Added gzio.mod.
44698 (gzio_mod_SOURCES): New variable.
44699 (gzio_mod_CFLAGS): Likewise.
44700
44701 * commands/cat.c: Include grub/gzio.h.
44702 (grub_cmd_cat): Use grub_gzfile_open instead of
44703 grub_file_open.
44704
44705 * commands/cmp.c: Include grub/gzio.h.
44706 (grub_cmd_cmp): Use grub_gzfile_open instead of
44707 grub_file_open.
44708
44709 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
44710 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
44711 grub_file_open.
44712 (grub_rescue_cmd_module): Likewise.
44713
44714 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44715
44716 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
44717 kern/sparc64/ieee1275/init.c because it contains _start.
44718 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
44719
44720 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44721
44722 * configure.ac: Add support for sparc64 host with ieee1275
44723 firmware.
44724 * configure: Generated from configure.ac.
44725 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
44726 instead of int.
44727 (grub_ofdisk_read): Likewise.
44728 (grub_ofdisk_open): Use %p to print pointer values, and cast the
44729 pointers as (void *) to remove a warning.
44730 (grub_ofdisk_close): Likewise.
44731 (grub_ofdisk_read): Likewise.
44732 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
44733 returns, so make it return void to remove a warning.
44734 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
44735 Corresponding prototype change.
44736 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
44737 values, and cast the pointers as (void *) to remove a warning.
44738 (grub_mm_dump): Likewise.
44739 * conf/sparc64-ieee1275.mk: New file.
44740 * conf/sparc64-ieee1275.rmk: Likewise.
44741 * include/grub/sparc64/setjmp.h: Likewise.
44742 * include/grub/sparc64/types.h: Likewise.
44743 * include/grub/sparc64/ieee1275/console.h: Likewise.
44744 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44745 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44746 * include/grub/sparc64/ieee1275/time.h: Likewise.
44747 * kern/sparc64/cache.c: Likewise.
44748 * kern/sparc64/dl.c: Likewise.
44749 * kern/sparc64/ieee1275/init.c: Likewise.
44750 * kern/sparc64/ieee1275/openfw.c: Likewise.
44751
44752 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
44753
44754 * util/console.c (grub_ncurses_putchar): If C is greater than
44755 0x7f, set C to a question mark.
44756 (grub_ncurses_getcharwidth): New function.
44757 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
44758 getcharwidth.
44759
44760 * normal/menu.c (print_entry): Made aware of Unicode. First,
44761 convert TITLE to UCS-4, and predict the cursor position by
44762 grub_getcharwidth.
44763
44764 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
44765 const to SRC.
44766 * kern/misc.c (grub_utf16_to_utf8): Likewise.
44767
44768 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44769
44770 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
44771 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44772 grub_strcat.
44773
44774 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
44775 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44776 grub_strcpy and grub_strlen. Take it into account that a space
44777 character is inserted as a delimiter.
44778
44779 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44780
44781 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
44782 invalid magic in the error.
44783
44784 * commands/search.c: New file.
44785
44786 * util/grub-emu.c (main): Call grub_search_init and
44787 grub_search_fini.
44788
44789 * kern/rescue.c (grub_rescue_print_disks): Removed.
44790 (grub_rescue_print_devices): New function.
44791 (grub_rescue_cmd_ls): Use grub_device_iterate with
44792 grub_rescue_print_devices instead of grub_disk_dev_iterate with
44793 grub_rescue_print_disks.
44794
44795 * kern/partition.c (grub_partition_iterate): Return the result of
44796 PARTMAP->ITERATE instead of GRUB_ERRNO.
44797
44798 * kern/device.c: Include grub/partition.h.
44799 (grub_device_iterate): New function.
44800
44801 * include/grub/partition.h (grub_partition_iterate): Return int
44802 instead of grub_err_t.
44803
44804 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
44805 prototype.
44806 [GRUB_UTIL] (grub_search_fini): Likewise.
44807
44808 * include/grub/device.h (grub_device_iterate): New prototype.
44809
44810 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44811 commands/search.c.
44812 (pkgdata_MODULES): Added search.mod.
44813 (search_mod_SOURCES): New variable.
44814 (search_mod_CFLAGS): Likewise.
44815
44816 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
44817 (pkgdata_MODULES): Added search.mod.
44818 (search_mod_SOURCES): New variable.
44819 (search_mod_CFLAGS): Likewise.
44820
44821 * commands/ls.c (grub_ls_list_disks): Renamed to ...
44822 (grub_ls_list_devices): ... this, and use grub_device_iterate.
44823 All callers changed.
44824
44825 * DISTLIST: Added commands/search.c.
44826
44827 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44828
44829 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
44830 conversion.
44831 (grub_getcharwidth): New function.
44832
44833 * kern/misc.c (grub_utf8_to_ucs4): New function.
44834
44835 * include/grub/term.h (struct grub_term): Added a new member
44836 "getcharwidth".
44837 (grub_getcharwidth): New prototype.
44838
44839 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
44840
44841 * term/i386/pc/console.c (map_char): New function. Segregated from
44842 grub_console_putchar.
44843 (grub_console_putchar): Use map_char.
44844 (grub_console_getcharwidth): New function.
44845 (grub_console_term): Specified grub_console_getcharwidth as
44846 getcharwidth.
44847
44848 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
44849 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
44850
44851 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
44852 GRUB_ERRNO.
44853 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
44854 on grub_strtoul completely.
44855 (write_char): Declare local variables in the beginning of the
44856 function.
44857 (grub_vesafb_getcharwidth): New function.
44858 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
44859 getcharwidth.
44860
44861 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
44862
44863 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
44864 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
44865 commands/i386/pc/vbetest.c.
44866
44867 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
44868 call grub_vbe_get_controller_info again, because the returned
44869 information is volatile.
44870 (grub_vbe_set_video_mode): Mostly rewritten.
44871 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
44872 grub_vbe_status_t correctly.
44873 (grub_vbe_get_video_mode_info): Likewise.
44874 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
44875 several if statements.
44876
44877 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
44878 * commands/i386/pc/vbeinfo.c: ... this.
44879
44880 * commands/i386/pc/vbe_test.c: Renamed to ...
44881 * commands/i386/pc/vbetest.c: ... this.
44882
44883 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
44884 ...
44885 (grub_cmd_vbeinfo): ... this. Save video modes before
44886 iterating. Skip a video mode, if it is not available, not enough
44887 information is given or it is monochrome. Show the memory
44888 model. Leave the interpretation of MODEVAR to grub_strtoul
44889 completely.
44890 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
44891 (GRUB_MOD_FINI): Likewise.
44892
44893 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
44894 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
44895 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
44896 duplicated grub_env_get. Leave the interpretation of MODEVAR to
44897 grub_strtoul completely.
44898 (real2pm): Removed.
44899 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
44900 (GRUB_MOD_FINI): Likewise.
44901
44902 * normal/misc.c: Include grub/mm.h.
44903
44904 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
44905 vbe_list_modes with vbetest.mod and vbeinfo.mod.
44906 (vbe_list_modes_mod_SOURCES): Removed.
44907 (vbe_list_modes_mod_CFLAGS): Likewise.
44908 (vbe_test_mod_SOURCES): Likewise.
44909 (vbe_test_mod_CFLAGS): Likewise.
44910 (vbeinfo_mod_SOURCES): New variable.
44911 (vbeinfo_mod_CFLAGS): Likewise.
44912 (vbetest_mod_SOURCES): Likewise.
44913 (vbetest_mod_CFLAGS): Likewise.
44914
44915 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
44916
44917 * normal/misc.c: New file.
44918
44919 * DISTLIST: Added normal/misc.c.
44920
44921 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
44922 DISK to HOOK. Call HOOK with DISK.
44923 * partmap/apple.c (apple_partition_map_iterate): Likewise.
44924 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44925 * partmap/sun.c (sun_partition_map_iterate): Likewise.
44926
44927 * normal/menu_entry.c (struct screen): Added a new member
44928 "completion_shown".
44929 (completion_buffer): New global variable.
44930 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
44931 (store_completion): New function.
44932 (complete): Likewise.
44933 (clear_completions): Likewise.
44934 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
44935 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
44936 a tab, call complete.
44937
44938 * normal/completion.c (disk_dev): Removed.
44939 (print_simple_completion): Likewise.
44940 (print_partition_completion): Likewise.
44941 (print_func): New global variable.
44942 (add_completion): Do not take the arguments WHAT or PRINT any
44943 longer. Added a new argument TYPE. Instead of printing directly,
44944 call PRINT_FUNC if not NULL.
44945 All callers changed.
44946 (complete_device): Use a local variable DEV instead of
44947 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
44948 (grub_normal_do_completion): Take a new argument HOOK. Do not
44949 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
44950 empty string, return NULL instead.
44951 All callers changed.
44952
44953 * normal/cmdline.c (print_completion): New function.
44954
44955 * kern/partition.c (grub_partition_iterate): Add an argument DISK
44956 to HOOK.
44957 All callers changed.
44958
44959 * kern/disk.c (grub_print_partinfo): Removed.
44960
44961 * include/grub/partition.h (struct grub_partition_map): Add a new
44962 argument DISK into HOOK of ITERATE.
44963 (grub_partition_iterate): Add a new argument DISK to HOOK.
44964
44965 * include/grub/normal.h (enum grub_completion_type): New enum.
44966 (grub_completion_type_t): New type.
44967 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
44968 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
44969 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
44970 (GRUB_COMPLETION_TYPE_FILE): Likewise.
44971 (grub_normal_do_completion): Added a new argument HOOK.
44972 (grub_normal_print_device_info): New prototype.
44973
44974 * include/grub/disk.h (grub_print_partinfo): Removed.
44975
44976 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
44977 (normal_mod_SOURCES): Likewise.
44978 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44979 (normal_mod_SOURCES): Likewise.
44980
44981 * commands/ls.c (grub_ls_list_disks): Use
44982 grub_normal_print_device_info instead of grub_print_partinfo. Free
44983 PNAME.
44984 (grub_ls_list_files): Use grub_normal_print_device_info instead of
44985 duplicating the code.
44986
44987 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
44988
44989 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
44990 follow GCS more precisely.
44991 * commands/i386/pc/vbe_test.c: Likewise.
44992 * include/grub/i386/pc/vbe.h: Likewise.
44993 * term/i386/pc/vesafb.c: Likewise.
44994 * video/i386/pc/vbe.c: Likewise.
44995
44996 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
44997
44998 * DISTLIST: Added term/i386/pc/vesafb.c
44999 DISTLIST: Added video/i386/pc/vbe.c
45000 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
45001 DISTLIST: Added commands/i386/pc/vbe_test.c.
45002 * commands/i386/pc/vbe_list_modes.c: New file.
45003 * commands/i386/pc/vbe_test.c: Likewise.
45004 * term/i386/pc/vesafb.c: Likewise.
45005 * video/i386/pc/vbe.c: Likewise.
45006 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
45007 (grub_vbe_probe) Added prototype.
45008 (grub_vbe_set_video_mode) Likewise.
45009 (grub_vbe_get_video_mode) Likewise.
45010 (grub_vbe_get_video_mode_info) Likewise.
45011 (grub_vbe_set_pixel_rgb) Likewise.
45012 (grub_vbe_set_pixel_index) Likewise.
45013 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
45014 (pkgdata_MODULES): Added vesafb.mod.
45015 (pkgdata_MODULES): Added vbe_list_modes.mod.
45016 (pkgdata_MODULES): Added vbe_test.mod.
45017 (vbe_mod_SOURCES): Added.
45018 (vbe_mod_CFLAGS): Likewise.
45019 (vesafb_mod_SOURCES): Likewise.
45020 (vesafb_mod_CFLAGS): Likewise.
45021 (vbe_list_modes_mod_SOURCES): Likewise.
45022 (vbe_list_modes_mod_CFLAGS): Likewise.
45023 (vbe_test_mod_SOURCES): Likewise.
45024 (vbe_test_mod_CFLAGS): Likewise.
45025
45026 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
45027
45028 * normal/command.c (grub_command_execute): If INTERACTIVE is
45029 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
45030 CMDLINE. Disable the pager if INTERACTIVE is true.
45031 All callers are changed.
45032
45033 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
45034 before reading a config file.
45035 * normal/main.c (read_config_file): Even if a command is not
45036 found, register it if it is within an entry.
45037
45038 * util/grub-emu.c: Include sys/types.h and unistd.h.
45039 (options): Added --hold.
45040 (struct arguments): Added a new member "hold".
45041 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
45042 missing.
45043 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
45044 cleared by a debugger, if it is not zero.
45045
45046 * include/grub/normal.h (grub_command_execute): Add an argument
45047 INTERACTIVE.
45048
45049 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
45050
45051 * DISTLIST: Added include/grub/i386/pc/vbe.h.
45052
45053 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
45054
45055 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
45056 program with another one, because the old one didn't detect a bug
45057 in gcc-3.4. Always use regparm 2, because the new test is still
45058 not enough for gcc-4.0. Someone must investigate a simple test
45059 case which detects a bug in gcc-4.0.
45060
45061 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
45062
45063 * DISTLIST: Added normal/completion.c.
45064
45065 * normal/completion.c: New file.
45066
45067 * term/i386/pc/console.c (grub_console_getwh): New function.
45068 (grub_console_term): Assign grub_console_getwh to getwh.
45069
45070 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
45071 function is defined in normal/completion.c as
45072 grub_normal_do_completion.
45073 (grub_cmdline_get): Use grub_normal_do_completion instead of
45074 grub_tab_complete.
45075
45076 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
45077 returns non-zero, otherwise return 0.
45078 (grub_partition_iterate): First, probe the partition map. Then,
45079 call ITERATE only for this partition map.
45080
45081 * kern/misc.c (grub_strncmp): Rewritten.
45082
45083 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
45084 returns non-zero. Otherwise return 0.
45085
45086 * include/grub/partition.h (grub_partition_map_iterate): Return
45087 int instead of void.
45088
45089 * include/grub/normal.h (grub_normal_do_completion): New prototype.
45090
45091 * include/grub/misc.h (grub_strncmp): Change the type of N to
45092 grub_size_t.
45093
45094 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
45095 of void.
45096
45097 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
45098 unsigned explicitly before comparing it with I.
45099
45100 * kern/main.c (grub_env_write_root): Add the attribute unused into
45101 VAR.
45102
45103 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45104 normal/completion.c.
45105 (normal_mod_SOURCES): Likewise.
45106 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45107 (normal_mod_SOURCES): Likewise.
45108
45109 * normal/command.c (grub_iterate_commands): If ITERATE returns
45110 non-zero, return one immediately.
45111
45112 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
45113
45114 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
45115 * kern/i386/pc/startup.S: Updated Global Descriptor table's
45116 descriptions.
45117 (grub_vbe_get_controller_info): New function.
45118 (grub_vbe_get_mode_info): Likewise.
45119 (grub_vbe_set_mode): Likewise.
45120 (grub_vbe_get_mode): Likewise.
45121 (grub_vbe_set_memory_window): Likewise.
45122 (grub_vbe_get_memory_window): Likewise.
45123 (grub_vbe_set_scanline_length): Likewise.
45124 (grub_vbe_get_scanline_length): Likewise.
45125 (grub_vbe_set_display_start): Likewise.
45126 (grub_vbe_get_display_start): Likewise.
45127 (grub_vbe_set_palette_data): Likewise.
45128 * include/grub/i386/pc/vbe.h: New file.
45129
45130 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45131
45132 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45133 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
45134 * DISTLIST: Likewise.
45135 * kern/ieee1275/of.c: Moved to ...
45136 * kern/ieee1275/ieee1275.c: ... here.
45137
45138 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45139
45140 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
45141 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
45142 Pass 0 as `end' parameter to grub_strtoul().
45143
45144 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45145
45146 * include/grub/powerpc/ieee1275/console.h: Do not include
45147 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
45148 ifdef.
45149 (grub_console_cur_color): Remove i386-specific prototype.
45150 (grub_console_real_putchar): Likewise.
45151 (grub_console_checkkey): Likewise.
45152 (grub_console_getkey): Likewise.
45153 (grub_console_getxy): Likewise.
45154 (grub_console_gotoxy): Likewise.
45155 (grub_console_cls): Likewise.
45156 (grub_console_setcursor): Likewise.
45157 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
45158 Include <grub/machine/console.h>.
45159 * term/ieee1275/ofconsole.c: Likewise.
45160
45161 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
45162
45163 * Makefile.in (LIBLZO): New variable.
45164
45165 * configure.ac: Check for LZO version 2.
45166
45167 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
45168 lzo/lzo1x.h instead of lzo1x.h.
45169
45170 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
45171 of -llzo.
45172
45173 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
45174 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
45175
45176 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
45177 copying the data from PARTITION to P.
45178
45179 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45180
45181 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
45182 negative, unload the module.
45183
45184 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
45185 map is "pc_partition_map" but not "pc".
45186 (usage): Fix the description. The options are --boot-image and
45187 --core-image but not --boot-file or --core-file.
45188 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
45189 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
45190 DEFAULT_DIRECTORY.
45191
45192 * util/i386/pc/grub-install.in: Do not specify --boot-file or
45193 --core-file. Specify INSTALL_DEVICE as an argument.
45194
45195 * util/console.c: Include config.h.
45196 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
45197 [HAVE_NCURSES_H]: Include ncurses.h.
45198 [HAVE_CURSES_H]: Include curses.h.
45199 [!A_NORMAL] (A_NORMAL): Defined as zero.
45200 [!A_STANDOUT] (A_STANDOUT): Likewise.
45201
45202 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
45203 -lncurses.
45204 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
45205
45206 * configure.ac: Check for curses libraries and headers.
45207
45208 * Makefile.in (LIBCURSES): New variable.
45209
45210 * genmk.rb (Script::rule): Set the executable bits.
45211
45212 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
45213 name of the PC partition map is "pc_partition_map" but not "pc".
45214
45215 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45216
45217 * util/i386/pc/grub-install.in (grub_probefs): New variable.
45218 (modules): Likewise.
45219 (usage): Added descriptions for --modules and --grub-probefs.
45220 Handle --modules and --grub-probefs. Save the arguments in MODULES
45221 and GRUB_PROBEFS, respectively.
45222 Auto-detect a filesystem module against GRUBDIR. If the result is
45223 empty and modules are not specified explicitly, abort the
45224 installation. Add the result to MODULES.
45225
45226 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
45227 disk/powerpc/ieee1275/ofdisk.c,
45228 include/grub/powerpc/ieee1275/init.h and
45229 term/powerpc/ieee1275/ofconsole.c.
45230 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
45231 term/ieee1275/ofconsole.c.
45232
45233 * include/grub/powerpc/ieee1275/console.h: Resurrected.
45234
45235 * COPYING: Upgraded to the latest version. Only the address of the
45236 FSF office has changed.
45237
45238 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45239
45240 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45241 kern/ieee1275.c with kern/ieee1275/of.c.
45242
45243 * kern/ieee1275.c: Moved to ...
45244 * kern/ieee1275/of.c: ... here.
45245
45246 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
45247
45248 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
45249 readability.
45250
45251 * config.guess: Updated to the latest version from gnulib.
45252 * config.sub: Likewise.
45253 * install.sh: Likewise.
45254 * mkinstalldirs: Likewise.
45255
45256 * include/grub/console.h: Removed. This file is arch-specific. Do
45257 not put this in include/grub.
45258
45259 * include/grub/i386/pc/console.h: Resurrected.
45260
45261 * util/console.c: Include grub/machine/console.h instead of
45262 grub/console.h.
45263 * util/grub-emu.c: Likewise.
45264
45265 2005-08-04 Marco Gerards <metgerards@student.han.nl>
45266
45267 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
45268 hardcoded value.
45269
45270 From Vincent Pelletier <subdino2004@yahoo.fr>
45271 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
45272 Redefined to use grub_getwh.
45273 (grub_term): New member named getwh.
45274 (grub_getwh): New prototype.
45275 * kern/term.c (grub_getwh): New function.
45276 * term/i386/pc/console.c (grub_console_getwh): New function.
45277 (grub_console_term): New member `getwh'.
45278 * term/i386/pc/vga.c (grub_vga_getwh): New function.
45279 (grub_vga_term): New member `getwh'.
45280 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
45281 grub_ssize_t.
45282 (grub_ofconsole_getw): New function.
45283 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
45284 (grub_ofconsole_term): New field named getwh and new initial
45285 value.
45286
45287 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
45288
45289 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
45290 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
45291 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
45292 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
45293 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
45294 of <grub/machine/ieee1275.h>.
45295 * commands/ieee1275/reboot.c: Likewise.
45296 * boot/powerpc/ieee1275/ieee1275.c: Move ...
45297 * kern/ieee1275.c: ... to here. All users updated. Change all
45298 parameter structs to use new type `grub_ieee1275_cell_t'.
45299 * term/powerpc/ieee1275/ofconsole.c: Move ...
45300 * term/ieee1275/ofconsole.c: ... to here. All users updated.
45301 * disk/powerpc/ieee1275/ofdisk.c: Move ...
45302 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
45303 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
45304 to return int.
45305 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
45306 Remove unused prototypes. All users updated.
45307 * include/grub/powerpc/ieee1275/console.h: Removed.
45308 * include/grub/powerpc/ieee1275/ieee1275.h: Define
45309 `grub_ieee1275_cell_t'.
45310 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
45311 Cast comparisons with -1 to the correct type.
45312 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
45313 type to match `grub_ieee1275_entry_fn'.
45314
45315 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
45316
45317 * DISTLIST: Added util/i386/pc/grub-probefs.c.
45318
45319 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
45320 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
45321 partmap/sun.c.
45322 (grub_probefs_SOURCES): New variable.
45323
45324 * util/i386/pc/grub-probefs.c: New file.
45325
45326 * util/i386/pc/grub-setup.c (main): Call
45327 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
45328 grub_hfs_init and grub_jfs_init to initialize the system. Call
45329 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
45330 grub_pc_partition_map_fini to finish the system.
45331
45332 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
45333
45334 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
45335 function.
45336 (grub_multiboot_load_elf32): Likewise.
45337 (grub_multiboot_is_elf64): Likewise.
45338 (grub_multiboot_load_elf64): Likewise.
45339 (grub_multiboot_load_elf): Likewise.
45340 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
45341 an ELF32 or ELF64 file.
45342 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
45343
45344 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
45345 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
45346 NULL before calling FS->LABEL.
45347 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
45348 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
45349 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
45350 before calling FS->LABEL.
45351
45352 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
45353
45354 * util/i386/pc/grub-install.in (datadir): New variable.
45355 (libdir): Removed.
45356 (pkgdatadir): New variable.
45357 (pkglibdir): Removed.
45358
45359 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
45360
45361 * DISTLIST: Added util/i386/pc/grub-install.in.
45362
45363 * util/i386/pc/grub-install.in: New file.
45364
45365 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
45366 (grub_install_SOURCES): Likewise.
45367
45368 * genmk.rb: Added support for scripts.
45369 (Script): New class.
45370 (scripts): New variable.
45371
45372 * Makefile.in (install-local): Install sbin_SCRIPTS by
45373 INSTALL_SCRIPT.
45374 (uninstall): Remove sbin_SCRIPTS.
45375
45376 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
45377 device, try to get a GRUB device by
45378 grub_util_biosdisk_get_grub_dev.
45379 Free DEST_DEV.
45380
45381 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
45382 description for --device-map.
45383
45384 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45385
45386 Change the semantics of variable hooks. They now return strings
45387 instead of error values.
45388
45389 * util/i386/pc/grub-setup.c: Include grub/env.h.
45390 (setup): Use grub_device_set_root instead of grub_env_set.
45391
45392 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
45393 grub_env_get instead of grub_device_set_root and
45394 grub_device_get_root, respectively.
45395
45396 * kern/main.c (grub_env_write_root): New function.
45397 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
45398 grub_env_set instead of grub_device_set_root.
45399
45400 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
45401 many variables.
45402 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
45403 rather than calling ENV->WRITE_HOOK afterwards.
45404 (grub_env_get): Return the result of ENV->READ_HOOK rather than
45405 passing a pointer of a pointer.
45406 (grub_register_variable_hook): Change the types of "read_hook" and
45407 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
45408 respectively.
45409 Allocate the default empty string on the heap, because this string
45410 may be freed later.
45411
45412 * kern/device.c: Include grub/env.h.
45413 (grub_device_set_root): Removed.
45414 (grub_device_get_root): Likewise.
45415 (grub_device_open): Use grub_env_get instead of
45416 grub_device_get_root.
45417
45418 * include/grub/env.h (grub_env_read_hook_t): New type.
45419 (grub_env_write_hook_t): Likewise.
45420 (grub_env_var): Change the types of "read_hook" and "write_hook"
45421 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
45422 (grub_register_variable_hook): Likewise.
45423
45424 * include/grub/device.h (grub_device_set_root): Removed.
45425 (grub_device_set_root): Likewise.
45426
45427 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
45428 make sure that DIRNAME terminates with '/', so that
45429 grub_fat_find_dir will fail if PATH is not a directory.
45430
45431 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
45432 from DIRNAME.
45433 Use the qualifier auto for print_files and print_files_long.
45434 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
45435 as a regular file.
45436 Put a newline only if there is no error.
45437 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
45438 used.
45439
45440 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45441
45442 * kern/partition.c (grub_partition_probe): Initialize PART to
45443 NULL. Otherwise, when no partition map is registered, this returns
45444 a garbage.
45445
45446 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
45447
45448 * partmap/apple.c (apple_partition_map_iterate): Check if POS
45449 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
45450 valid.
45451
45452 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
45453
45454 * commands/ls.c (grub_ls_list_disks): Print the filesystem
45455 information on each device, if it does not have partitions. Print
45456 "Device" instead of "Disk", because this function is not specific
45457 to disk devices.
45458
45459 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
45460 static to ensure that it is put on the memory rather than a
45461 register.
45462
45463 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45464
45465 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
45466 (grub_cat_init): Likewise.
45467 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
45468 (options): Likewise.
45469 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
45470 (grub_configfile_init): Likewise.
45471 * font/manager.c (GRUB_MOD_INIT): Likewise.
45472 * commands/help.c (GRUB_MOD_INIT): Likewise.
45473 (grub_help_init): Likewise.
45474 * normal/command.c (grub_command_init): Likewise.
45475 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
45476 * disk/loopback.c (grub_loop_init): Likewise.
45477 (GRUB_MOD_INIT): Likewise.
45478 * commands/ls.c (grub_ls_init): Likewise.
45479 (GRUB_MOD_INIT): Likewise.
45480 (options): Likewise.
45481 * commands/boot.c (grub_boot_init): Likewise.
45482 (GRUB_MOD_INIT): Likewise.
45483 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
45484 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
45485 (GRUB_MOD_INIT): Likewise.
45486 * commands/cmp.c (grub_cmp_init): Likewise.
45487 (GRUB_MOD_INIT): Likewise.
45488
45489 * normal/arg.c: Use <> instead of "" to include header files.
45490 (SHORT_ARG_HELP): New macro.
45491 (SHORT_ARG_USAGE): Likewise.
45492 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
45493 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
45494 descriptions.
45495 (find_short): Check if C is 'h' or 'u' explicitly.
45496 (grub_arg_show_help): Use space characters instead of tabs. Treat
45497 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
45498 are shown with --help and --usage only if they are not used for
45499 the command itself.
45500 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
45501 'h' and 'u'.
45502
45503 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
45504 const into "longarg". Change the type of "shortarg" to int.
45505
45506 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45507
45508 * boot/i386/pc/boot.S (boot_drive_check): New label.
45509
45510 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
45511 macro.
45512
45513 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
45514 which do not pass a boot drive correctly. Copied from GRUB Legacy.
45515
45516 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45517
45518 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
45519 When turning off Gate A20, skip the check and return immediately,
45520 because this is not fatal usually.
45521
45522 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45523
45524 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
45525 be 0x7C00 instead of 0x8000.
45526
45527 * boot/i386/pc/pxeboot.S: Rewritten.
45528
45529 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
45530 EXT_C.
45531 (gate_a20_check_state): Read a byte from 0x108000. Invert the
45532 result.
45533
45534 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
45535
45536 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
45537 robustness. This routine now supports a BIOS call and System
45538 Control Port A to modify the gate A20.
45539
45540 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
45541 Increased to 0x440.
45542
45543 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
45544
45545 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
45546 device path and resulting ihandle.
45547 (grub_ofdisk_close): dprintf the ihandle being closed.
45548 (grub_ofdisk_read): dprintf function parameters.
45549 * kern/mm.c (grub_mm_init_region): Likewise.
45550 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
45551 (grub_linux_boot): dprintf the Linux entry point, initrd address and
45552 size, and boot arguments.
45553 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
45554 before loading into memory.
45555 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
45556 before loading into memory.
45557
45558 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
45559
45560 * kern/mm.c: Added much documentation.
45561 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
45562 8, set to 5 instead of 8.
45563
45564 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45565
45566 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
45567
45568 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
45569 (grub_mkdevicemap_SOURCES): New variable.
45570
45571 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
45572 lib/device.c of GRUB Legacy.
45573
45574 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45575
45576 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
45577 instead of PATH is NULL.
45578
45579 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
45580
45581 * commands/cmp.c (BUFFER_SIZE): New macro.
45582 (grub_cmd_cmp): Close the right file at the right time. Compare
45583 only data just read. Don't report files of different size as
45584 identical. Dynamically allocate buffers. Move variable
45585 declarations at the beginning of function.
45586
45587 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
45588
45589 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
45590 reverse.
45591
45592 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
45593
45594 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
45595 when backspace is pressed at beginning of line.
45596
45597 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
45598
45599 * DISTLIST: Added genfslist.sh.
45600
45601 * normal/main.c (fs_module_list): New variable.
45602 (autoload_fs_module): New function.
45603 (read_fs_list): Likewise.
45604 (grub_normal_execute): Call read_fs_list.
45605
45606 * kern/fs.c (grub_fs_autoload_hook): New variable.
45607 (grub_fs_probe): Added support for auto-loading.
45608
45609 * include/grub/normal.h (struct grub_fs_module_list): New struct.
45610 (grub_fs_module_list_t): New type.
45611
45612 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
45613 (grub_fs_autoload_hook): New prototype.
45614
45615 * genfslist.sh: New file.
45616
45617 * genmk.rb: Added a rule to generate a filesystem list.
45618
45619 2005-06-30 Marco Gerards <metgerards@student.han.nl>
45620
45621 * configure.ac: Fix the test for cross-compiling.
45622
45623 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
45624 define GRUB_UTIL anymore.
45625
45626 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
45627 so this function works on other systems than just big endian.
45628 (load_modules): Likewise.
45629 (add_segments): Likewise.
45630
45631 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
45632
45633 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
45634 contains `l' modifier, get a long from va_arg().
45635
45636 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
45637
45638 * kern/mm.c (grub_free): If the next free block which is being
45639 merged is the first free block, set the first block to the block
45640 being freed.
45641 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
45642
45643 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45644
45645 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
45646 `grub_ieee1275_chosen'.
45647
45648 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45649
45650 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
45651 (grub_ieee1275_chosen): New variable.
45652 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
45653 `chosen'.
45654 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
45655 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45656 Rename first argument to `phandle' for consistency.
45657 (grub_ieee1275_get_property_length): Likewise.
45658 (grub_ieee1275_next_property): Likewise. Change type of first argument
45659 to grub_ieee1275_phandle_t.
45660 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
45661 Move export next to declaration.
45662 (grub_ieee1275_chosen): New variable.
45663 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
45664 Correct cosmetic typo.
45665 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
45666 `grub_ieee1275_chosen'.
45667 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
45668 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
45669 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
45670 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
45671 `grub_ieee1275_chosen'.
45672
45673 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
45674
45675 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
45676 /chosen/bootargs.
45677 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
45678 /chosen/bootargs as "variable=value" pairs.
45679
45680 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
45681
45682 * include/grub/misc.h (grub_dprintf): New macro.
45683 (grub_real_dprintf): New prototype.
45684 (grub_strword): Likewise.
45685 (grub_iswordseparator): Likewise.
45686 * kern/misc.c (grub_real_dprintf): New function.
45687 (grub_strword): Likewise.
45688 (grub_iswordseparator): Likewise.
45689
45690 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
45691
45692 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
45693 (roundup): Remove macro.
45694 (grub_ieee1275_flags): Make static.
45695 (grub_ieee1275_realmode): Remove.
45696 (grub_ieee1275_test_flag): New function.
45697 (grub_ieee1275_set_flag): Likewise.
45698 (find_options): Rename to `grub_ieee1275_find_options'; update
45699 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
45700 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
45701 (cmain): New prototype.
45702 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
45703 `grub_ieee1275_flags' directly.
45704 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
45705 machine/biosdisk.h.
45706 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
45707 Don't include grub/machine/init.h.
45708 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
45709 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
45710 Remove prototype.
45711 (grub_ieee1275_realmode): Likewise.
45712 (grub_ieee1275_flag): New enum.
45713 (grub_ieee1275_test_flag): New prototype.
45714 (grub_ieee1275_set_flag): New prototype.
45715 * include/grub/powerpc/ieee1275/init.h: Remove file.
45716 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
45717 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
45718 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
45719 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
45720 comment.
45721 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
45722 `grub_ieee1275_test_flag'.
45723 (grub_ieee1275_encode_devname): Likewise.
45724
45725 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
45726
45727 * include/grub/powerpc/ieee1275/ieee1275.h
45728 (grub_ieee1275_encode_devname): New prototype.
45729 (grub_ieee1275_get_filename): Likewise.
45730 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
45731 function.
45732 (grub_set_prefix): Likewise.
45733 (grub_machine_init): Call grub_set_prefix.
45734 * kern/powerpc/ieee1275/openfw.c: Fix typos.
45735 (grub_parse_type): New enum.
45736 (grub_ieee1275_get_devargs): New function.
45737 (grub_ieee1275_get_devname): Likewise.
45738 (grub_ieee1275_parse_args): Likewise.
45739 (grub_ieee1275_get_filename): Likewise.
45740 (grub_ieee1275_encode_devname): Likewise.
45741
45742 2005-03-30 Marco Gerards <metgerards@student.han.nl>
45743
45744 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
45745 `grub_loader_unset'.
45746
45747 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
45748
45749 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
45750 instead of grub_ieee1275_interpret.
45751 (grub_halt_init): New function.
45752 (grub_halt_fini): Likewise.
45753 (GRUB_MOD_INIT): Correct message grammar.
45754 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
45755 instead of grub_ieee1275_interpret.
45756 (grub_reboot_init): New function.
45757 (grub_reboot_fini): Likewise.
45758 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
45759 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
45760 util/i386/pc/misc.c with commands/ieee1275/halt.c,
45761 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
45762 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
45763 function.
45764 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
45765 Add prototype.
45766 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
45767 prototype.
45768 (grub_halt): Likewise.
45769 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
45770 (cmain): Remove __attribute__((unused)).
45771 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
45772 (grub_heap_len): Likewise.
45773 (grub_machine_fini): New function.
45774 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
45775 (grub_halt): Likewise.
45776 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
45777 function.
45778 * util/powerpc/ieee1275/misc.c: New file.
45779
45780 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45781
45782 * DISTLIST: New file.
45783 * gendistlist.sh: Likewise.
45784
45785 * Makefile.in (COMMON_DISTFILES): Removed.
45786 (BOOT_DISTFILES): Likewise.
45787 (CONF_DISTFILES): Likewise.
45788 (DISK_DISTFILES): Likewise.
45789 (FS_DISTFILES): Likewise.
45790 (INCLUDE_DISTFILES): Likewise.
45791 (KERN_DISTFILES): Likewise.
45792 (LOADER_DISTFILES): Likewise.
45793 (TERM_DISTFILES): Likewise.
45794 (UTIL_DISTFILES): Likewise.
45795 (DISTFILES): Likewise.
45796 (uninstall): Uninstall files in $(pkgdata_DATA).
45797 (DISTLIST): New target.
45798 (distdir): Use the contents of the file DISTLIST to get a list of
45799 distributed files.
45800
45801 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45802
45803 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
45804 descriptor. This is ported from GRUB Legacy.
45805
45806 * gencmdlist.sh: Added an extra semicolon to make it work with
45807 old sed versions. Reported by Robert Bihlmeyer
45808 <robbe@orcus.priv.at>.
45809
45810 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
45811
45812 Automatic loading of commands is supported.
45813
45814 * normal/main.c (read_command_list): New function.
45815 (grub_normal_execute): Call read_command_list.
45816
45817 * normal/command.c (grub_register_command): Return zero or CMD.
45818 Allocate CMD->NAME from the heap.
45819 Initialize CMD->MODULE_NAME to zero.
45820 Find the same name as well. If the same command is found and it is
45821 a dummy command, overwrite members. If it is not a dummy command,
45822 return zero.
45823 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
45824 (grub_command_find): If a dummy command is found, load a module
45825 and retry to find a command only once.
45826
45827 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
45828 make sure that each command is loaded.
45829
45830 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
45831 macro.
45832 (struct grub_command): Remove const from the member `name'.
45833 Add a new member `module_name'.
45834 (grub_register_command): Return grub_command_t.
45835
45836 * commands/help.c (grub_cmd_help): Call grub_command_find to make
45837 sure that each command is loaded.
45838
45839 * genmk.rb (PModule::rule): Specify a module name without the
45840 suffix ".mod" to gencmdlist.sh.
45841
45842 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45843
45844 * gencmdlist.sh: New file.
45845
45846 * genmk.rb (PModule::rule): Generate a rule for a command list.
45847 Clean command.lst.
45848 Generate command.lst from $(COMMANDFILES).
45849
45850 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
45851 (DATA): Added $(pkgdata_DATA).
45852 (install-local): Install files in $(pkgdata_DATA).
45853
45854 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45855
45856 * term/i386/pc/vga.c (debug_command): Removed.
45857 (GRUB_MOD_INIT): Do not register the command "debug".
45858
45859 From Hollis Blanchard:
45860 * commands/configfile.c: New file.
45861 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45862 commands/configfile.c.
45863 (pkgdata_MODULES): Added configfile.mod.
45864 (configfile_mod_SOURCES): New variable.
45865 (configfile_mod_CFLAGS): Likewise.
45866 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45867 commands/configfile.c.
45868 (pkgdata_MODULES): Added configfile.mod.
45869 (configfile_mod_SOURCES): New variable.
45870 (configfile_mod_CFLAGS): Likewise.
45871 * util/grub-emu.c (main): Call grub_configfile_init and
45872 grub_configfile_fini.
45873 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
45874 prototype.
45875 [GRUB_UTIL] (grub_configfile_fini): Likewise.
45876
45877 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45878
45879 * normal/arg.c (grub_arg_show_help): Do not show the bug report
45880 address.
45881
45882 * commands/help.c (grub_cmd_help): Do not print newlines after
45883 the last command in print_command_help.
45884
45885 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45886
45887 * commands/default.h: New file.
45888 * commands/timeout.h: Likewise.
45889 * normal/context.c: Likewise.
45890
45891 * util/misc.c: Do not include sys/times.h.
45892 Include sys/time.h and grub/machine/time.h.
45893 (grub_get_rtc): Rewritten with gettimeofday.
45894
45895 * util/grub-emu.c (main): Call grub_default_init and
45896 grub_timeout_init before grub_normal_init, and call
45897 grub_timeout_fini and grub_default_fini after grub_main.
45898
45899 * util/console.c (grub_ncurses_checkkey): Return the read
45900 character or -1.
45901
45902 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
45903 timeouts.
45904
45905 * normal/main.c (read_config_file): Push MENU. If this fails,
45906 print an error and wait for a user input.
45907 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
45908 If a menu is empty or an error occurs, pop MENU.
45909 (grub_normal_execute): Pop and free MENU after grub_menu_run
45910 returns.
45911
45912 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
45913
45914 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
45915 include time.h.
45916 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45917 without GRUB_UTIL.
45918 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
45919 time.h.
45920 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45921 without GRUB_UTIL.
45922
45923 * include/grub/normal.h (struct grub_menu_list): New struct.
45924 (grub_menu_list_t): New type.
45925 (struct grub_context): New struct.
45926 (grub_context_t): New type.
45927 (grub_register_command): Got rid of EXPORT_FUNC.
45928 (grub_unregister_command): Likewise.
45929 (grub_context_get): New prototype.
45930 (grub_context_get_current_menu): Likewise.
45931 (grub_context_push_menu): Likewise.
45932 (grub_context_pop_menu): Likewise.
45933 [GRUB_UTIL] (grub_default_init): Likewise.
45934 [GRUB_UTIL] (grub_default_fini): Likewise.
45935 [GRUB_UTIL] (grub_timeout_init): Likewise.
45936 [GRUB_UTIL] (grub_timeout_fini): Likewise.
45937
45938 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
45939 commands/timeout.c and normal/context.c.
45940 (pkgdata_MODULES): Added default.mod and timeout.mod.
45941 (normal_mod_SOURCES): Added normal/context.c.
45942 (default_mod_SOURCES): New variable.
45943 (default_mod_CFLAGS): Likewise.
45944 (timeout_mod_SOURCES): Likewise.
45945 (timeout_mod_CFLAGS): Likewise.
45946 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
45947 conf/i386-pc.rmk.
45948 (pkgdata_MODULES): Added default.mod and timeout.mod.
45949 (normal_mod_SOURCES): Added normal/context.c.
45950 (default_mod_SOURCES): New variable.
45951 (default_mod_CFLAGS): Likewise.
45952 (timeout_mod_SOURCES): Likewise.
45953 (timeout_mod_CFLAGS): Likewise.
45954
45955 * Makefile.in (all-local): Added $(MKFILES).
45956
45957 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
45958
45959 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
45960 (grub_emu_SOURCES): Likewise.
45961 (pkgdata_MODULES): Add `sun.mod'.
45962 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
45963 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45964 `partmap/sun.c'.
45965 (pkgdata_MODULES): Add `sun.mod'.
45966 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
45967 * include/grub/partition.h (grub_sun_partition_map_init): New
45968 prototype.
45969 (grub_sun_partition_map_fini): Likewise.
45970 * partmap/sun.c: New file.
45971 * util/grub-emu.c (main): Initialize and de-initialize the sun
45972 partitionmap support.
45973
45974 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
45975
45976 This implements an Emacs-like menu entry editor.
45977
45978 * normal/menu_entry.c: New file.
45979
45980 * util/console.c (grub_ncurses_putchar): Translate some Unicode
45981 characters to ASCII.
45982 (saved_char): New variable.
45983 (grub_ncurses_checkkey): Rewritten completely.
45984 (grub_ncurses_getkey): Likewise.
45985 (grub_ncurses_init): Call raw instead of cbreak.
45986
45987 * normal/menu.c (print_entry): Do not put a space.
45988 (init_page): Renamed to ...
45989 (grub_menu_init_page): ... this. All callers changed.
45990 (edit_menu_entry): Removed.
45991 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
45992
45993 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
45994
45995 * kern/misc.c (grub_vprintf): Call grub_refresh.
45996
45997 * normal/menu.c (DISP_LEFT): Renamed to ...
45998 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
45999 * normal/menu.c (DISP_UP): Renamed to ...
46000 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
46001 * normal/menu.c (DISP_RIGHT): Renamed to ...
46002 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
46003 * normal/menu.c (DISP_DOWN): Renamed to ...
46004 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
46005 * normal/menu.c (DISP_HLINE): Renamed to ...
46006 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
46007 * normal/menu.c (DISP_VLINE): Renamed to ...
46008 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
46009 * normal/menu.c (DISP_UL): Renamed to ...
46010 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
46011 * normal/menu.c (DISP_UR): Renamed to ...
46012 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
46013 * normal/menu.c (DISP_LL): Renamed to ...
46014 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
46015 * normal/menu.c (DISP_LR): Renamed to ...
46016 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
46017 * normal/menu.c (TERM_WIDTH): Renamed to ...
46018 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
46019 * normal/menu.c (TERM_HEIGHT): Renamed to ...
46020 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
46021 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
46022 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
46023 * normal/menu.c (TERM_MARGIN): Renamed to ...
46024 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
46025 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
46026 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
46027 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
46028 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
46029 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
46030 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
46031 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
46032 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
46033 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
46034 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
46035 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
46036 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
46037 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
46038 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
46039 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
46040 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
46041 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
46042 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
46043 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
46044 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
46045 All callers changed.
46046
46047 * include/grub/normal.h: New prototype.
46048
46049 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46050 normal/menu_entry.c.
46051 (normal_mod_SOURCES): Likewise.
46052 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46053 (normal_mod_SOURCES): Likewise.
46054
46055 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
46056
46057 * include/grub/normal.h (grub_halt_init): New prototype.
46058 (grub_halt_fini): Likewise.
46059 (grub_reboot_init): Likewise.
46060 (grub_reboot_fini): Likewise.
46061
46062 * util/grub-emu.c: Include signal.h.
46063 (main_env): New global variable.
46064 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
46065 catch C-c.
46066 (grub_machine_fini): New function.
46067 (main): Call grub_halt_init and grub_reboot_init before
46068 grub_main, and grub_reboot_fini and grub_halt_fini after it.
46069 Call setjmp with MAIN_ENV to go back afterwards.
46070 Call grub_machine_fini right before return.
46071
46072 * include/grub/util/misc.h: Include setjmp.h.
46073 (main_env): New prototype.
46074
46075 * include/grub/kernel.h (grub_machine_fini): New prototype.
46076 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
46077 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
46078
46079 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
46080 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
46081 * term/i386/pc/console.c (grub_console_fini): Likewise.
46082
46083 * util/i386/pc/misc.c: New file.
46084
46085 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46086 util/i386/pc/misc.c, commands/i386/pc/halt.c and
46087 commands/i386/pc/reboot.c.
46088
46089 2005-02-14 Guillem Jover <guillem@hadrons.org>
46090
46091 * include/grub/dl.h (grub_dl_check_header): New prototype.
46092 (grub_arch_dl_check_header): Change return type to grub_err_t,
46093 remove size parameter and export function. Update all callers.
46094 * kern/dl.c (grub_dl_check_header): New function.
46095 (grub_dl_load_core): Use `grub_dl_check_header' instead of
46096 `grub_arch_dl_check_header'. Check ELF type. Check if sections
46097 are inside the core.
46098 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
46099 independent ELF header checks.
46100 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46101 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
46102 `grub_dl_check_header' instead of explicit checks. Check for the
46103 ELF type.
46104 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
46105 `grub_dl_check_header' instead of explicit checks. Remove arch
46106 specific ELF header checks.
46107
46108 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
46109 argument SIZE.
46110
46111 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
46112
46113 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
46114 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
46115
46116 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
46117
46118 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
46119 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
46120 (part_map_iterate): Clear `grub_errno' and return 0 if
46121 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
46122 * partmap/amiga.c (amiga_partition_map_iterate): Return
46123 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
46124 * partmap/apple.c (apple_partition_map_iterate): Likewise.
46125
46126 2005-02-01 Guillem Jover <guillem@hadrons.org>
46127
46128 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
46129 help info.
46130
46131 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46132
46133 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
46134 Removed prototype.
46135 (grub_rescue_cmd_linux): New prototype.
46136 (grub_rescue_cmd_initrd): Likewise.
46137 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
46138 `bi_rec'.
46139 (grub_linux_release_mem): Release the memory for the initrd.
46140 (grub_load_linux): Renamed from this...
46141 (grub_rescue_cmd_linux): ...To this. Changed all callers.
46142 Changed `entry' not to be static. Loop over memory regions to
46143 find another one when the default fails.
46144 (grub_rescue_cmd_initrd): New function.
46145 (grub_linux_init): Remove function.
46146 (grub_linux_fini): Likewise.
46147 (GRUB_MOD_INIT): Register `initrd'.
46148 (GRUB_MOD_FINI): Unregister `initrd'.
46149 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
46150 Function removed.
46151 (grub_linux_normal_fini): Likewise.
46152 (GRUB_MOD_INIT): Register `initrd'.
46153 (GRUB_MOD_FINI): Unregister `initrd'.
46154
46155 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46156
46157 * commands/help.c: New file.
46158 * normal/arg.c (show_help): Renamed to...
46159 (grub_arg_show_help): ... this.
46160 * commands/i386/pc/halt.c: New file.
46161 * commands/i386/pc/reboot.c: Likewise.
46162 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
46163 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
46164 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
46165 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
46166 variables.
46167 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46168 `commands/help.c'.
46169 (pkgdata_MODULES): Add `help.mod'.
46170 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
46171 * grub/i386/pc/init.h (grub_reboot): New prototype.
46172 (grub_halt): Likewise.
46173 * include/grub/normal.h (grub_arg_show_help): New prototype.
46174 (grub_help_init): Likewise.
46175 (grub_help_fini): Likewise.
46176 * util/grub-emu.c (main): Initialize and deinitialize the help
46177 command.
46178
46179 * normal/cmdline.c (grub_cmdline_get): Doc fix.
46180
46181 * normal/command.c (grub_command_init): Fixed the description of
46182 the `set' and `unset' commands.
46183
46184 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46185
46186 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
46187 function.
46188 * commands/ieee1275/halt.c: New file.
46189 * commands/ieee1275/reboot.c: Likewise.
46190 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
46191 `__attribute__ ((unused))'. Some GCS related fixed.
46192 (grub_suspend_init) [GRUB_UTIL]: Function removed.
46193 (grub_suspend_fini): Likewise.
46194 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
46195 and `halt.mod'.
46196 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
46197 (halt_mod_CFLAGS): New variables.
46198 * include/grub/powerpc/ieee1275/ieee1275.h
46199 (grub_ieee1275_interpret): New prototype.
46200
46201 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
46202
46203 * include/grub/misc.h (memmove): New prototype.
46204 (memcpy): Likewise.
46205
46206 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
46207
46208 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
46209 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
46210
46211 2005-01-22 Marco Gerards <metgerards@student.han.nl>
46212
46213 * kern/misc.c (grub_strndup): Function rewritten.
46214
46215 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
46216
46217 * normal/menu.c (TERM_WIDTH): Macro redefined.
46218 (TERM_TOP_BORDER_Y): Likewise.
46219 (draw_border): Replaced while-loop by a for-loop. Make the number
46220 of lines consistent with the number of lines displayed in
46221 print_entries. Added a margin below the rectangle.
46222 (print_entry): Make the entry fit in the rectangle.
46223 (print_entries): Display the scroll arrows next to the right
46224 border.
46225
46226 2005-01-21 Marco Gerards <metgerards@student.han.nl>
46227
46228 * fs/minix.c (grub_minix_find_file): Reserve more space for
46229 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
46230 `grub_strncpy' to copy `path' into it.
46231
46232 2005-01-21 Marco Gerards <metgerards@student.han.nl>
46233
46234 Add the loopback device, a device via which files can be accessed
46235 as devices.
46236
46237 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
46238 (pkgdata_MODULES): Add loopback.mod.
46239 (loopback_mod_SOURCES): New variable.
46240 (loopback_mod_CFLAGS): Likewise.
46241 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46242 `disk/loopback.c'.
46243 (pkgdata_MODULES): Add loopback.mod.
46244 (loopback_mod_SOURCES): New variable.
46245 (loopback_mod_CFLAGS): Likewise.
46246 * disk/loopback.c: new file.
46247 * include/grub/normal.h (grub_loop_init): New prototype.
46248 (grub_loop_fini): New prototype.
46249 * util/grub-emu.c (main): Initialize and de-initialize loopback
46250 support.
46251 * include/grub/disk.h (grub_disk_dev_id): Add
46252 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
46253
46254 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
46255
46256 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
46257 function.
46258 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
46259 (suspend_mod_SOURCES): New variable.
46260 (suspend_mod_CFLAGS): Likewise.
46261 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
46262 New prototype.
46263 * commands/ieee1275/suspend.c: New file.
46264
46265 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46266
46267 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
46268 ((unused))' to `__attribute__ ((used))'.
46269 (GRUB_MOD_FINI): Likewise.
46270 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
46271 * genmk.rb (PModule): Assign space to common symbols when linking
46272 modules.
46273
46274 2005-01-20 Marco Gerards <metgerards@student.han.nl>
46275
46276 * include/grub/mm.h (grub_mm_init_region): Change the type of the
46277 `unsigned' arguments to `grub_size_t'.
46278 (grub_malloc): Likewise.
46279 (grub_realloc): Likewise.
46280 (grub_memalign): Likewise.
46281 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
46282 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46283 * util/misc.c (grub_malloc): Likewise.
46284 (grub_realloc): Likewise.
46285 * kern/mm.c (get_header_from_pointer): Change the casts to
46286 `unsigned' into a cast to `grub_size_t'.
46287
46288 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
46289 point to `currnode' when `currnode' is changed.
46290
46291 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
46292 Schottelius <nico-linux@schottelius.org>.
46293
46294 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
46295
46296 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
46297 (note_path): Remove variable.
46298 (GRUB_IEEE1275_NOTE_NAME): New macro.
46299 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
46300 (grub_ieee1275_note_hdr): New structure.
46301 (grub_ieee1275_note_desc): Likewise.
46302 (grub_ieee1275_note): Likewise.
46303 (load_note): Remove `dir' argument. All callers updated. Remove
46304 `note_img' and `path'. Do not load a file from `note_path'.
46305 Initialize a struct grub_ieee1275_note and write that to `out'.
46306 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
46307
46308 2005-01-05 Marco Gerards <metgerards@student.han.nl>
46309
46310 * util/misc.c (grub_util_read_image): Revert last change. It
46311 called `grub_util_read_at', which seeks from the beginning of the
46312 file.
46313
46314 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
46315
46316 * TODO: Add note about endianness in grub-mkimage.
46317 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
46318 section.
46319 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
46320 (grub_mkimage_SOURCES): New target.
46321 * include/grub/kernel.h (grub_start_addr): Remove variable.
46322 (grub_end_addr): Likewise.
46323 (grub_total_module_size): Likewise.
46324 (grub_kernel_image_size): Likewise.
46325 (GRUB_MODULE_MAGIC): New constant.
46326 (grub_module_info): New structure.
46327 (grub_arch_modules_addr): New prototype.
46328 (grub_get_end_addr): Remove prototype.
46329 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
46330 * include/grub/powerpc/ieee1275/kernel.h: New file.
46331 * include/grub/util/misc.h (grub_util_get_fp_size): New
46332 prototype.
46333 (grub_util_read_at): Likewise.
46334 (grub_util_write_image_at): Likewise.
46335 * kern/main.c (grub_get_end_addr): Remove function.
46336 (grub_load_modules): Call grub_arch_modules_addr instead of using
46337 grub_end_addr. Look for a grub_module_info struct in memory. Use
46338 the grub_module_info fields instead of calling grub_get_end_addr
46339 as loop conditions. Move grub_add_unused_region code here.
46340 (grub_add_unused_region): Remove function.
46341 * kern/i386/pc/init.c: Include grub/cache.h.
46342 (grub_machine_init): Remove call to grub_get_end_addr. Remove
46343 one call to add_mem_region.
46344 (grub_arch_modules_addr): New function.
46345 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
46346 (grub_total_module_size): Likewise.
46347 Include grub/machine/kernel.h.
46348 (grub_arch_modules_addr): New function.
46349 * util/grub-emu.c (grub_end_addr): Remove variable.
46350 (grub_total_module_size): Likewise.
46351 (grub_arch_modules_addr): New function.
46352 * util/misc.c: Include unistd.h.
46353 (grub_util_get_fp_size): New function.
46354 (grub_util_read_at): Likewise.
46355 (grub_util_write_image_at): Likewise.
46356 (grub_util_read_image): Call grub_util_read_at.
46357 (grub_util_write_image): Call grub_util_write_image_at.
46358 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
46359 additional memory in kernel_img for a struct grub_module_info.
46360 Fill in that grub_module_info.
46361 * util/powerpc/ieee1275/grub-mkimage.c: New file.
46362
46363 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46364
46365 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
46366 New function.
46367 * include/grub/powerpc/ieee1275/ieee1275.h
46368 (grub_ieee1275_milliseconds): New prototype.
46369 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
46370 Change to 1000.
46371 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
46372 grub_ieee1275_milliseconds.
46373
46374 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46375
46376 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
46377 variable.
46378 (find_options): New function.
46379 (cmain): Call find_options.
46380 * include/grub/powerpc/ieee1275/ieee1275.h
46381 (grub_ieee1275_realmode): New extern variable.
46382 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
46383 grub_map if grub_ieee1275_realmode is false.
46384
46385 2004-12-29 Marco Gerards <metgerards@student.han.nl>
46386
46387 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
46388 lines are inserted and make it work like readline. Reported by
46389 Vincent Pelletier <subdino2004@yahoo.fr>.
46390
46391 2004-12-28 Marco Gerards <metgerards@student.han.nl>
46392
46393 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
46394
46395 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
46396 `kern/powerpc/cache.S'.
46397
46398 2004-12-27 Marco Gerards <metgerards@student.han.nl>
46399
46400 * genmk.rb: Handle the `Program' class in the main loop. Written
46401 by Johan Rydberg <jrydberg@gnu.org>.
46402 (Program): New class.
46403 (programs): New variable.
46404 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
46405 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
46406 instead of "grub/kernel.h". Include <grub/machine/init.h>.
46407 (help_arch): Function removed.
46408 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
46409 `powerpc/libgcc.h' and `loader.h'.
46410 (pkgdata_PROGRAMS): New variable.
46411 (sbin_UTILITIES): Variable removed.
46412 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
46413 (grubof_SOURCES): Variable re-defined so it only includes the
46414 core functionality.
46415 (grubof_CFLAGS): Remove `-DGRUBOF'.
46416 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
46417 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
46418 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
46419 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
46420 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
46421 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
46422 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
46423 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
46424 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
46425 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
46426 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
46427 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
46428 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
46429 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
46430 (pc_mod_CFLAGS): New variables.
46431 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
46432 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
46433 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
46434 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
46435 Moved from here...
46436 * include/grub/i386/pc/init.h (grub_os_area_addr)
46437 (rub_os_area_size): ... to here.
46438 * include/grub/powerpc/ieee1275/ieee1275.h
46439 (grub_ieee1275_entry_fn): Export symbol.
46440 * include/grub/powerpc/ieee1275/init.h: New file.
46441 * include/grub/powerpc/libgcc.h: Likewise.
46442 * include/grub/cache.h: Likewise.
46443 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
46444 <hollis@penguinppc.org>.
46445 * kern/dl.c: Include <grub/cache.h>.
46446 (grub_dl_flush_cache): New function.
46447 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
46448 for this module.
46449 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
46450 (grub_console_init): Removed prototypes.
46451 (grub_machine_init): Don't initialize the modules anymore.
46452 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
46453 static.
46454 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
46455 Macro undef removed.
46456 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
46457 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
46458 relocation `R_PPC_REL32'. Return an error when the relocation is
46459 unknown.
46460 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
46461 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
46462 * util/misc.c (grub_arch_sync_caches): Likewise.
46463
46464 2004-12-19 Marco Gerards <metgerards@student.han.nl>
46465
46466 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
46467 `symlist.c', add `grubof_symlist.c'.
46468 (symlist.c): Variable removed.
46469 (grubof_HEADERS): Variable added.
46470 (grubof_symlist.c): New target.
46471 (kernel_syms.lst): Use `grubof_HEADERS' instead of
46472 `kernel_img_HEADERS'.
46473 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
46474 * kern/powerpc/dl.c: New file.
46475 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
46476 Function removed.
46477 (grub_arch_dl_relocate_symbols): Likewise.
46478 (grub_register_exported_symbols): Likewise.
46479
46480 2004-12-13 Marco Gerards <metgerards@student.han.nl>
46481
46482 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
46483 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
46484 to fail instead. Reported by Vincent Pelletier
46485 <subdino2004@yahoo.fr>.
46486
46487 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
46488 it is not allocated. Reported by Vincent Pelletier
46489 <subdino2004@yahoo.fr>.
46490
46491 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
46492 output so the output looks better.
46493
46494 2004-12-04 Marco Gerards <metgerards@student.han.nl>
46495
46496 Modulize the partition map support and add support for the amiga
46497 partition map.
46498
46499 * commands/ls.c: Include <grub/partition.h> instead of
46500 <grub/machine/partition.h>.
46501 * kern/disk.c: Likewise.
46502 * kern/rescue.c: Likewise.
46503 * loader/i386/pc/chainloader.c: Likewise.
46504 * normal/cmdline.c: Likewise.
46505 * kern/powerpc/ieee1275/init.c: Likewise.
46506 (grub_machine_init): Call `grub_pc_partition_map_init',
46507 `grub_amiga_partition_map_init' and
46508 `grub_apple_partition_map_init'.
46509 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
46510 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
46511 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
46512 `partition.h' and `pc_partition.h'.
46513 (grub_setup_SOURCES): Remove
46514 `disk/i386/pc/partition.c'. Add `kern/partition.c',
46515 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46516 (grub_emu_SOURCES): Likewise.
46517 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
46518 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
46519 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
46520 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46521 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
46522 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46523 (grubof_SOURCES): Likewise.
46524 * disk/i386/pc/partition.c: File removed.
46525 * disk/powerpc/ieee1275/partition.c: Likewise.
46526 * include/grub/powerpc/ieee1275/partition.h: Likewise.
46527 * include/grub/i386/pc/partition.h: Likewise.
46528 * kern/partition.c: New file.
46529 * partmap/amiga.c: Likewise.
46530 * partmap/apple.c: Likewise.
46531 * partmap/pc.c: Likewise.
46532 * include/grub/partition.h: Likewise..
46533 * include/grub/pc_partition.h: Likewise.
46534 * util/grub-emu.c: Include <grub/partition.h> instead of
46535 <grub/machine/partition.h>.
46536 (main): Call `grub_pc_partition_map_init',
46537 `grub_amiga_partition_map_init' and
46538 `grub_apple_partition_map_init' and deinitialize afterwards.
46539 * util/i386/pc/biosdisk.c: Include `#include
46540 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46541 `<grub/machine/partition.h>'.
46542 * util/i386/pc/grub-setup.c: Likewise.
46543 * util/i386/pc/biosdisk.c: Likewise.
46544 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
46545 partition information in case of a PC partition.
46546 * util/i386/pc/grub-setup.c: Include `#include
46547 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46548 `<grub/machine/partition.h>'.
46549 (setup): Only access the PC specific partition information in case
46550 of a PC partition.
46551
46552 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
46553
46554 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
46555 (grub_longjmp): Likewise.
46556 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
46557 20.
46558 * normal/powerpc/setjmp.S: New file.
46559 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46560 `normal/powerpc/setjmp.S'.
46561 (grubof_CFLAGS): Add `-DGRUBOF'.
46562 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
46563 [GRUB_UTIL && !GRUBOF].
46564
46565 2004-11-16 Marco Gerards <metgerards@student.han.nl>
46566
46567 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
46568 property named `name'. Correctly handle the error returned by
46569 `grub_ieee1275_finddevice' if a device can not be opened.
46570
46571 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
46572
46573 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
46574 `actual' for negativity.
46575 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46576 kern/fshelp.c.
46577
46578 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46579
46580 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
46581 (PAGE_OFFSET): New macro.
46582 (CRTC_ADDR_PORT): Likewise.
46583 (CRTC_DATA_PORT): Likewise.
46584 (START_ADDR_HIGH_REGISTER): Likewise.
46585 (START_ADDR_LOW_REGISTER): Likewise.
46586 (GRAPHICS_ADDR_PORT): Likewise.
46587 (GRAPHICS_DATA_PORT): Likewise.
46588 (READ_MAP_REGISTER): Likewise.
46589 (INPUT_STATUS1_REGISTER): Likewise.
46590 (INPUT_STATUS1_VERTR_BIT): Likewise.
46591 (page): New variable.
46592 (wait_vretrace): New function.
46593 (set_read_map): Likewise.
46594 (set_start_address): Likewise.
46595 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
46596 the right page.
46597 (check_vga_mem): Take the page into account.
46598 (write_char): Likewise.
46599 (write_cursor): Likewise.
46600 (scroll_up): Likewise. Copy the page to the page that is not
46601 shown and switch between both pages.
46602 (grub_vga_putchar): Fix off by one error.
46603 (grub_vga_cls): Wait for the vertical retrace. Take the page into
46604 account.
46605
46606 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46607
46608 Add support for iso9660 (including rockridge).
46609
46610 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46611 (iso9660_mod_SOURCES): New variable.
46612 (iso9660_mod_CFLAGS): Likewise.
46613 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46614 * include/grub/fs.h (grub_iso9660_init): New prototype.
46615 * util/grub-emu.c (main): Call `grub_iso9660_init'.
46616 * fs/iso9660.c: New file.
46617
46618 * include/grub/misc.h (grub_strncat): New prototype.
46619 * kern/misc.c (grub_strncat): New function.
46620
46621 * fs/hfs.c (grub_hfs_mount): Translate the error
46622 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
46623 * fs/jfs.c (grub_jfs_mount): Likewise.
46624 * fs/ufs.c (grub_ufs_mount): Likewise.
46625
46626 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
46627
46628 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
46629 which initialized BAT registers.
46630 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
46631 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46632 Move from here...
46633 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
46634 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46635 ... to here.
46636 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
46637 (grub_mapclaim): Likewise.
46638 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
46639 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
46640 hand.
46641
46642 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
46643
46644 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
46645 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
46646 -ffreestanding and -msoft-float.
46647
46648 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
46649
46650 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
46651 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
46652 set in grub_ieee1275_flags.
46653
46654 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
46655
46656 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
46657 prototype.
46658 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
46659 grub_console_init first.
46660 Change the memory range used for grub_ieee1275_claim and
46661 grub_mm_init_region.
46662 Print an error message if the claim fails.
46663 Include <grub/misc.h>.
46664
46665 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
46666
46667 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
46668 Call grub_children_iterate for device nodes of type `scsi',
46669 `ide', or `ata'.
46670 (grub_ofdisk_open): Remove manual device alias resolution.
46671 Fix memory leak when device cannot be opened.
46672 * include/grub/powerpc/ieee1275/ieee1275.h
46673 (grub_children_iterate): New prototype.
46674 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
46675 New function.
46676 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46677 Return -1 if args.size was -1.
46678
46679 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46680
46681 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
46682 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
46683 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
46684 Open Firmware's memory for it; claim memory from _start to _end.
46685 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
46686 (_end): New extern.
46687 (_start): Zero BSS from __bss_start to _end.
46688 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46689 New extern.
46690 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
46691
46692 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46693
46694 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
46695 -1 if args.base was -1.
46696
46697 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
46698
46699 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
46700 escape sequence instead of a literal ^L. Also call
46701 grub_ofconsole_gotoxy.
46702
46703 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
46704
46705 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
46706 void * arguments to grub_addr_t. All callers updated. Also make
46707 the `result' argument optional.
46708 (grub_ieee1275_release): change void * arguments to grub_addr_t.
46709 All callers updated.
46710
46711 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
46712
46713 * commands/ls.c (grub_ls_list_files): Use the string following the
46714 initial ')', if present, as the filesystem path.
46715 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
46716
46717 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
46718
46719 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
46720
46721 Make the source code of the menu interface more readable.
46722
46723 * normal/menu.c: Include grub/mm.h.
46724 (TERM_WIDTH): New macro.
46725 (TERM_HEIGHT): Likewise.
46726 (TERM_INFO_HEIGHT): Likewise.
46727 (TERM_MARGIN): Likewise.
46728 (TERM_SCROLL_WIDTH): Likewise.
46729 (TERM_TOP_BORDER_Y): Likewise.
46730 (TERM_LEFT_BORDER_X): Likewise.
46731 (TERM_BORDER_WIDTH): Likewise.
46732 (TERM_MESSAGE_HEIGHT): Likewise.
46733 (TERM_BORDER_HEIGHT): Likewise.
46734 (TERM_NUM_ENTRIES): Likewise.
46735 (TERM_FIRST_ENTRY_Y): Likewise.
46736 (TERM_ENTRY_WIDTH): Likewise.
46737 (TERM_CURSOR_X): Likewise.
46738 (draw_border): Use macros instead of magic numbers.
46739 (print_entry): Likewise.
46740 (print_entries): Likewise.
46741 (run_menu): Likewise. Also, handle the key 'e'.
46742 (run_menu_entry): Ignore empty command lines.
46743 (print_message): Added a new argument EDIT. If EDIT is true,
46744 print a different message.
46745 (init_page): Likewise.
46746 (edit_menu_entry): New function. Not implemented yet.
46747
46748 2004-09-17 Marco Gerards <metgerards@student.han.nl>
46749
46750 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
46751 can be loaded from normal mode.
46752
46753 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
46754 `multiboot.mod'.
46755 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
46756 (multiboot_mod_CFLAGS): New variables.
46757 * loader/i386/pc/linux_normal.c: New file.
46758 * loader/i386/pc/multiboot_normal.c: Likewise.
46759
46760 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
46761 attribute `unused'.
46762
46763 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
46764 `fdiro' to read the mode information from instead of `diro'.
46765
46766 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
46767 looking up a symlink.
46768
46769 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
46770 macro.
46771 * normal/command.c (grub_command_execute): Don't parse the
46772 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
46773 flags of the command.
46774
46775 * normal/menu.c (grub_menu_run): Fix typo.
46776
46777 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
46778
46779 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
46780
46781 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
46782 `y + 1' instead of `y - 1'.
46783
46784 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
46785
46786 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
46787
46788 From Hollis Blanchard <hollis@penguinppc.org>:
46789 * kern/misc.c (memmove): New alias for grub_memmove.
46790 (memcmp): New alias for grub_memcmp.
46791 (memset): New alias for grub_memset.
46792 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46793 Change "int handle" to "grub_ieee1275_phandle_t handle".
46794 * include/grub/powerpc/ieee1275/ieee1275.h
46795 (grub_ieee1275_get_property): Likewise.
46796
46797 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
46798
46799 Added normal mode command `chainloader' as module chain.mod, which
46800 depends on normal.mod and _chain.mod.
46801
46802 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
46803 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
46804 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
46805 Deleted prototype.
46806 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
46807 but arguments parsing moved to ...
46808 (grub_chainloader_cmd): ... here. New function.
46809 * include/grub/i386/pc/chainloader.h: New file.
46810 * loader/i386/pc/chainloader_normal.c: Likewise.
46811
46812 2004-09-11 Marco Gerards <metgerards@student.han.nl>
46813
46814 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
46815 (grub_mkimage_LDFLAGS): Likewise.
46816 (grub_emu_SOURCES): Likewise.
46817 (kernel_img_HEADERS): Added fshelp.h.
46818 * fs/ext2.c: Include <grub/fshelp.h>.
46819 (FILETYPE_REG): New macro.
46820 (FILETYPE_INO_REG): Likewise.
46821 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
46822 Changed all users.
46823 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
46824 all users.
46825 (grub_fshelp_node): New struct.
46826 (grub_ext2_data): Added member `diropen'. Changed member `inode'
46827 to a pointer.
46828 (grub_ext2_get_file_block): Removed function.
46829 (grub_ext2_read_block): New function.
46830 (grub_ext2_read_file): Replaced parameter `data' by `node'.
46831 This function was written.
46832 (grub_ext2_mount): Read the root inode. Create a diropen struct.
46833 (grub_ext2_find_file): Removed function.
46834 (grub_ext2_read_symlink): New function.
46835 (grub_ext2_iterate_dir): Likewise.
46836 (grub_ext2_open): Rewritten.
46837 (grub_ext2_dir): Rewritten.
46838 * include/grub/fshelp.h: New file.
46839 * fs/fshelp.c: Likewise.
46840
46841 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
46842
46843 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
46844 (print_message): Add a missing newline.
46845 (run_menu): Added timeout support.
46846 (run_menu_entry): New local function.
46847 (grub_menu_run): Added support for booting.
46848
46849 * kern/loader.c (grub_loader_is_loaded): New function.
46850
46851 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
46852 (grub_get_rtc): Exported.
46853
46854 * include/grub/i386/pc/time.h: Include grub/symbol.h.
46855 (grub_get_rtc): Exported.
46856
46857 * include/grub/normal.h (struct grub_command_list): Remove
46858 constant from the member `command'.
46859
46860 * include/grub/loader.h (grub_loader_is_loaded): Declared.
46861
46862 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
46863
46864 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
46865
46866 2004-08-28 Marco Gerards <metgerards@student.han.nl>
46867
46868 Add support for the JFS filesystem.
46869
46870 * fs/jfs.c: New file.
46871 * include/grub/fs.h (grub_jfs_init): New prototype.
46872 (grub_jfs_fini): New prototype.
46873 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
46874 (grub_emu_SOURCES): Likewise.
46875 (pkgdata_MODULES): Add jfs.mod.
46876 (jfs_mod_SOURCES): New variable.
46877 (jfs_mod_CFLAGS): Likewise.
46878 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
46879 (grubof_SOURCES): Likewise.
46880 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
46881
46882 * fs/fat.c (grub_fat_find_dir): Convert the filename little
46883 endian to the host endian.
46884 (grub_fat_utf16_to_utf8): Move function from there...
46885 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
46886 the endianness of the source string anymore.
46887 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
46888
46889 2004-08-24 Marco Gerards <metgerards@student.han.nl>
46890
46891 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
46892 (grub_boot_fini) [GRUB_UTIL]: Likewise.
46893 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
46894 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
46895
46896 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
46897 (grub_hfs_iterate_dir): Make the function static. Add prototypes
46898 for `node_found' and `it_dir'.
46899 (grub_hfs_dir): Add prototype for `dir_hook'.
46900
46901 * fs/minix.c (grub_minix_get_file_block): Add prototype for
46902 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
46903 and `indir32' to silence a gcc warning.
46904
46905 * include/grub/fs.h (grub_hfs_init): New prototype.
46906 (grub_hfs_fini): Likewise.
46907
46908
46909 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
46910
46911 Each disk device has its own id now. This is useful to make use
46912 of multiple disk devices.
46913
46914 * include/grub/disk.h (grub_disk_dev_id): New enum.
46915 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
46916 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
46917
46918 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
46919 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46920
46921 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
46922 GRUB_DISK_DEVICE_OFDISK_ID as an id.
46923
46924 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
46925 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46926
46927 * include/grub/disk.h (struct grub_disk_dev): Added a new member
46928 "id" which is used by the cache manager.
46929
46930 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
46931 of just "GRUB".
46932
46933 2004-08-18 Marco Gerards <metgerards@student.han.nl>
46934
46935 * fs/hfs.c: New file.
46936 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
46937 (grub_emu_SOURCES): Likewise.
46938 (pkgdata_MODULES): Add hfs.mod.
46939 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
46940 (grubof_SOURCES): Likewise.
46941 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
46942
46943 * include/grub/misc.h (grub_strncasecmp): Add prototype.
46944 * kern/misc.c (grub_strncasecmp): Add function.
46945
46946 2004-08-14 Marco Gerards <metgerards@student.han.nl>
46947
46948 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
46949 with parentheses.
46950
46951 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
46952 (grub_ext2_dir): In case the directory entry type is unknown, read
46953 it from the inode.
46954
46955 2004-08-02 Peter Bruin <pjbruin@dds.nl>
46956
46957 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
46958 grub_load_linux instead of grub_rescue_cmd_linux as second
46959 argument of grub_rescue_register_command.
46960
46961 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
46962
46963 2004-07-27 Marco Gerards <metgerards@student.han.nl>
46964
46965 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
46966 function.
46967 * commands/boot.c: Remove the check for `GRUB_UTIL'.
46968 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46969 `loader/powerpc/ieee1275/linux.c',
46970 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
46971 * include/grub/powerpc/ieee1275/ieee1275.h
46972 (grub_ieee1275_release): New prototype.
46973 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
46974 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
46975 normal, boot, linux and linux_normal.
46976 * loader/powerpc/ieee1275/linux.c: New file.
46977 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
46978
46979 2004-07-12 Marco Gerards <metgerards@student.han.nl>
46980
46981 * normal/arg.c (grub_arg_parse): Correct error handling after
46982 reallocating the argumentlist (check if `argl' is not null instead
46983 of checking if `args' is not null).
46984 * kern/mm.c (grub_realloc): Return the same pointer when using the
46985 same region, instead of returning the header address.
46986
46987 2004-07-11 Marco Gerards <metgerards@student.han.nl>
46988
46989 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
46990 one block instead of two when looking for the initial partition.
46991 (grub_partition_probe): Initialize the local variable `p' with 0.
46992 Use base 10 for the grub_strtoul call.
46993 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
46994 need for one local variable.
46995 (grub_strtoul): Don't add the new value to `num', instead of that
46996 just assign it.
46997
46998 2004-07-11 Marco Gerards <metgerards@student.han.nl>
46999
47000 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
47001 (pxeboot_img_SOURCES): New variable.
47002 (pxeboot_img_ASFLAGS): Likewise.
47003 (pxeboot_img_LDFLAGS): Likewise.
47004 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
47005 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
47006 <lode_leroy@hotmail.com>.
47007
47008 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47009
47010 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
47011 there was no input.
47012
47013 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47014
47015 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
47016 the history buffer logic.
47017
47018 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47019
47020 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
47021 (FILETYPE_INO_SYMLINK): New macros.
47022 (grub_ext2_find_file): Check if the node is a directory using the
47023 inode stat information instead of using the filetype in the
47024 dirent. Exclude the first character of an absolute symlink.
47025 (grub_ext2_dir): Mask out the filetype part of the mode member of
47026 the inode.
47027
47028 2004-05-24 Marco Gerards <metgerards@student.han.nl>
47029
47030 Add support for UFS version 1 and 2. Add support for the minix
47031 filesystem version 1 and 2, both the variants with 14 and 30 long
47032 filenames.
47033
47034 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
47035 fs/minix.c.
47036 (grub_emu_SOURCES): Likewise.
47037 (pkgdata_MODULES): Add ufs.mod and minix.mod.
47038 (ufs_mod_SOURCES): New variable.
47039 (ufs_mod_CFLAGS): Likewise.
47040 (minix_mod_SOURCES): Likewise.
47041 (minix_mod_CFLAGS): Likewise.
47042 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
47043 fs/minix.c.
47044 (grubof_SOURCES): Likewise.
47045 * fs/ufs.c: New file.
47046 * fs/minix.c: New file.
47047 * include/grub/fs.h (grub_ufs_init): New prototype.
47048 (grub_ufs_fini): Likewise.
47049 (grub_minix_init): Likewise.
47050 (grub_minix_fini): Likewise.
47051 * util/grub-emu.c (main): Initialize and deinitialize UFS and
47052 minix fs.
47053
47054 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
47055
47056 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
47057 commands/ls.c, commands/terminal.c, commands/boot.c,
47058 commands/cmp.c and commands/cat.c.
47059 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
47060
47061 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
47062 "env.h"
47063
47064 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47065
47066 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
47067 and grub_, respectively. Because the conversion is trivial and
47068 mechanical, I omit the details here. Please refer to the CVS
47069 if you need more information.
47070
47071 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47072
47073 * include/pupa: Renamed to ...
47074 * include/grub: ... this.
47075 * util/i386/pc/pupa-mkimage.c: Renamed to ...
47076 * util/i386/pc/grub-mkimage.c: ... this.
47077 * util/i386/pc/pupa-setup.c: Renamed to ...
47078 * util/i386/pc/grub-setup.c: ... this.
47079 * util/pupa-emu.c: Renamed to ...
47080 * util/grub-emu.c: ... this.
47081
47082 2004-03-29 Marco Gerards <metgerards@student.han.nl>
47083
47084 Add support for the newworld apple macintosh (PPC). This has been
47085 tested on the powerbook 2000 only. It only adds support for
47086 generic ieee1275 functions, console and disk support. This should
47087 be easy to port to other architectures with support for Open
47088 Firmware.
47089
47090 * configure.ac: Accept the powerpc as host_cpu. In the case of
47091 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
47092 specific tests are only executed while building for the i386.
47093 Inverse test for crosscompile.
47094 * genmk.rb (Utility): Allow assembler files.
47095 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
47096 * conf/powerpc-ieee1275.rmk: New file.
47097 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
47098 * disk/powerpc/ieee1275/partition.c: Likewise.
47099 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
47100 * include/pupa/powerpc/ieee1275/console.h: Likewise.
47101 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
47102 * include/pupa/powerpc/ieee1275/time.h: Likewise.
47103 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
47104 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
47105 * include/pupa/powerpc/ieee1275/loader.h
47106 * include/pupa/powerpc/setjmp.h: Likewise.
47107 * include/pupa/powerpc/types.h: Likewise.
47108 * kern/powerpc/ieee1275/init.c: Likewise.
47109 * kern/powerpc/ieee1275/openfw.c: Likewise.
47110 * term/powerpc/ieee1275/ofconsole.c: Likewise.
47111
47112 These files were written by Johan Rydberg
47113 (jrydberg@night.trouble.net) and I only modified them slightly.
47114
47115 * boot/powerpc/ieee1275/cmain.c: New file.
47116 * boot/powerpc/ieee1275/crt0.S: Likewise.
47117 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
47118 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
47119
47120 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
47121
47122 * Makefile.in: Update copyright.
47123 * genmodsrc.sh: Likewise.
47124 * gensymlist.sh: Likewise.
47125 * term/i386/pc/vga.c: Indent correctly.
47126
47127 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
47128 bugreporting address.
47129 * util/i386/pc/pupa-setup.c (usage): Likewise,
47130 (main): Call pupa_ext2_init and pupa_ext2_fini.
47131
47132 * fs/fat.c (log2): Renamed to ...
47133 (fat_log2): ... this.
47134 All callers changed.
47135 * kern/misc.c (memcpy): Alias to pupa_memmove.
47136 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
47137 lvalue cast.
47138 * util/console.c (pupa_ncurses_fini): Return 0.
47139
47140 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
47141 Move fail label here.
47142 [__GNU__]: Don't warn when using stat.
47143 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
47144 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
47145 long int. Use strtol instead of strtoul.
47146
47147 2004-03-14 Marco Gerards <metgerards@student.han.nl>
47148
47149 * commands/boot.c: New file.
47150 * commands/cat.c: Likewise.
47151 * commands/cmp.c: Likewise.
47152 * commands/ls.c: Likewise.
47153 * commands/terminal.c: Likewise.
47154 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
47155 (pupa_register_command): Changed interface to match the new
47156 argument parser.
47157 (pupa_command_execute): Changed (almost rewritten) so it uses
47158 pupa_split_command. Added support for setting variables using the
47159 syntax `foo=bar'.
47160 (rescue_command): Changed to work with the new argument parser.
47161 (terminal_command): Moved from here to commands/terminal.c.
47162 (set_command): New function.
47163 (unset_command): New function.
47164 (insmod_command): New function.
47165 (rmmod_command): New function.
47166 (lsmod_command): New function.
47167 (pupa_command_init): Don't initialize the command terminal
47168 anymore. Initialize the commands set, unset, insmod, rmmod and
47169 lsmod.
47170 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
47171 (kernel_img_HEADERS): Add arg.h and env.h.
47172 (pupa_mkimage_LDFLAGS): Add kern/env.c.
47173 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
47174 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
47175 normal/arg.c.
47176 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
47177 terminal.mod.
47178 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
47179 (boot_mod_SOURCES): New variable.
47180 (terminal_mod_SOURCES): Likewise.
47181 (ls_mod_SOURCES): Likewise.
47182 (cmp_mod_SOURCES): Likewise.
47183 (cat_mod_SOURCES): Likewise.
47184
47185 * normal/arg.c: New file.
47186 * kern/env.c: Likewise.
47187 * include/pupa/arg.h: Likewise.
47188 * include/pupa/env.h: Likewise.
47189 * font/manager.c (font_command): Changed to match argument parsing
47190 interface changes.
47191 (PUPA_MOD_INIT): Likewise.
47192 * hello/hello.c (pupa_cmd_hello): Likewise.
47193 (PUPA_MOD_INIT): Likewise.
47194 * include/pupa/disk.h: Include <pupa/device.h>.
47195 (pupa_print_partinfo): New prototype.
47196 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
47197 (pupa_dl_get_prefix): Likewise.
47198 * include/pupa/misc.h: Include <pupa/err.h>.
47199 (pupa_isgraph): New prototype.
47200 (pupa_isdigit): Likewise.
47201 (pupa_split_cmdline): Likewise.
47202 * include/pupa/normal.h: Include <pupa/arg.h>.
47203 (pupa_command): Changed the prototype of the member `func' to
47204 match the argument parsing interface. Added member `options'.
47205 (pupa_register_command): Updated to match function.
47206 (pupa_arg_parse): New prototype.
47207 (pupa_hello_init) [PUPA_UTIL]: New prototype.
47208 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
47209 (pupa_ls_init) [PUPA_UTIL]: Likewise.
47210 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
47211 (pupa_cat_init) [PUPA_UTIL]: Likewise.
47212 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
47213 (pupa_boot_init) [PUPA_UTIL]: Likewise.
47214 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
47215 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
47216 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
47217 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
47218 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
47219 * kern/disk.c: Include <pupa/file.h>.
47220 (pupa_print_partinfo): New function.
47221 * kern/dl.c: Include <pupa/env.h>.
47222 (pupa_dl_dir): Variable removed.
47223 (pupa_dl_load): Use the environment variable `prefix' instead of
47224 the variable pupa_dl_dir.
47225 (pupa_dl_set_prefix): Function removed.
47226 (pupa_dl_get_prefix): Likewise.
47227 * kern/i386/pc/init.c: Include <pupa/env.h>.
47228 (pupa_machine_init): Use the environment variable `prefix' instead of
47229 using pupa_dl_set_prefix to set the prefix.
47230 * kern/main.c: Include <pupa/env.h>.
47231 (pupa_set_root_dev): Use the environment variable `prefix' instead of
47232 using pupa_dl_get_prefix to get the prefix.
47233 * kern/misc.c: Include <pupa/env.h>.
47234 (pupa_isdigit): New function.
47235 (pupa_isgraph): Likewise.
47236 (pupa_ftoa): Likewise.
47237 (pupa_vsprintf): Added support for printing values of the type
47238 `double'. Make it possible to format variable output when using
47239 formatting like `%1.2%f'.
47240 (pupa_split_cmdline): New function.
47241 * kern/rescue.c: Include <pupa/env.h>.
47242 (next_word): Removed function.
47243 (pupa_rescue_cmd_prefix): Likewise.
47244 (pupa_rescue_cmd_set): New function.
47245 (pupa_rescue_cmd_unset): New function.
47246 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
47247 split the command line instead of splitting it here. Added
47248 support for setting variables using the syntax `foo=bar'. Don't
47249 initialize the prefix command anymore. Initialized the set and
47250 unset commands.
47251 * normal/cmdline.c: Include <pupa/env.h>.
47252 (pupa_tab_complete): Added prototypes for print_simple_completion,
47253 print_partition_completion, add_completion, iterate_commands,
47254 iterate_dev, iterate_part and iterate_dir. Moved code to print
47255 partition information from here to kern/disk.c.
47256 (pupa_cmdline_run): Don't check if the function exists anymore.
47257 * normal/main.c: Include <pupa/env.h>.
47258 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
47259 instead of using pupa_dl_get_prefix to get the prefix.
47260 * term/i386/pc/vga.c: Include <pupa/arg.h>.
47261 (check_vga_mem): Cast pointers to `void *' to silence a gcc
47262 warning.
47263 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
47264 (pupa_vga_setcolor): Declare unused variables with `__attribute__
47265 ((unused))' to silence a gcc warning.
47266 (pupa_vga_setcolor): Likewise.
47267 (debug_command): Changed to match argument parsing
47268 interface changes.
47269 * util/pupa-emu.c: Include <pupa/env.h>.
47270 (options): Added 0's for unused fields to silence a gcc warning.
47271 (argp): Likewise.
47272 (main): Use the environment variable `prefix' instead of using
47273 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
47274 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
47275 and terminal.
47276
47277 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
47278 * util/misc.c: Include <malloc.h>.
47279 (pupa_malloc): Rewritten so errors are correctly reported.
47280 (pupa_realloc): Likewise.
47281 (pupa_memalign): Likewise.
47282 (pupa_mm_init_region): Declare unused variables with
47283 `__attribute__ ((unused))' to silence a gcc warning.
47284 * normal/i386/setjmp.S: Remove tab at the end of the file to
47285 silence a gcc warning.
47286 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
47287 variables with `__attribute__ ((unused))' to silence a gcc
47288 warning.
47289 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
47290 local variable i unsigned to silence a gcc warning.
47291
47292 * kern/term.c: Include <pupa/misc.h>.
47293 (pupa_more_lines): New variable.
47294 (pupa_more): Likewise.
47295 (pupa_putcode): When the pager is active pause at the end of every
47296 screen.
47297 (pupa_set_more): New function.
47298 * include/pupa/term.h (pupa_set_more): New prototype.
47299
47300
47301 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
47302
47303 Now this project is GRUB 2 rather than PUPA. The location of
47304 the CVS repository was moved to GRUB's.
47305
47306 * configure.ac: Use bug-grub as the reporting address.
47307 Use GRUB instead of PUPA.
47308 Change the version number to 1.90.
47309
47310 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
47311
47312 * genkernsyms.sh: Updated copyright information.
47313 * genmk.rb: Likewise.
47314 * genmodsrc.sh: Likewise.
47315 * gensymlist.sh: Likewise.
47316 * boot/i386/pc/boot.S: Likewise.
47317 * boot/i386/pc/diskboot.S: Likewise.
47318 * disk/i386/pc/biosdisk.c: Likewise.
47319 * disk/i386/pc/partition.c: Likewise.
47320 * font/manager.c: Likewise.
47321 * fs/ext2.c: Likewise.
47322 * fs/fat.c: Likewise.
47323 * include/pupa/boot.h: Likewise.
47324 * include/pupa/device.h: Likewise.
47325 * include/pupa/disk.h: Likewise.
47326 * include/pupa/dl.h: Likewise.
47327 * include/pupa/elf.h: Likewise.
47328 * include/pupa/err.h: Likewise.
47329 * include/pupa/file.h: Likewise.
47330 * include/pupa/font.h: Likewise.
47331 * include/pupa/fs.h: Likewise.
47332 * include/pupa/kernel.h: Likewise.
47333 * include/pupa/loader.h: Likewise.
47334 * include/pupa/misc.h: Likewise.
47335 * include/pupa/mm.h: Likewise.
47336 * include/pupa/net.h: Likewise.
47337 * include/pupa/normal.h: Likewise.
47338 * include/pupa/rescue.h: Likewise.
47339 * include/pupa/setjmp.h: Likewise.
47340 * include/pupa/symbol.h: Likewise.
47341 * include/pupa/term.h: Likewise.
47342 * include/pupa/types.h: Likewise.
47343 * include/pupa/i386/setjmp.h: Likewise.
47344 * include/pupa/i386/types.h: Likewise.
47345 * include/pupa/i386/pc/biosdisk.h: Likewise.
47346 * include/pupa/i386/pc/boot.h: Likewise.
47347 * include/pupa/i386/pc/console.h: Likewise.
47348 * include/pupa/i386/pc/init.h: Likewise.
47349 * include/pupa/i386/pc/kernel.h: Likewise.
47350 * include/pupa/i386/pc/linux.h: Likewise.
47351 * include/pupa/i386/pc/loader.h: Likewise.
47352 * include/pupa/i386/pc/memory.h: Likewise.
47353 * include/pupa/i386/pc/multiboot.h: Likewise.
47354 * include/pupa/i386/pc/partition.h: Likewise.
47355 * include/pupa/i386/pc/time.h: Likewise.
47356 * include/pupa/i386/pc/vga.h: Likewise.
47357 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
47358 * include/pupa/util/getroot.h: Likewise.
47359 * include/pupa/util/misc.h: Likewise.
47360 * include/pupa/util/resolve.h: Likewise.
47361 * kern/device.c: Likewise.
47362 * kern/disk.c: Likewise.
47363 * kern/dl.c: Likewise.
47364 * kern/err.c: Likewise.
47365 * kern/file.c: Likewise.
47366 * kern/fs.c: Likewise.
47367 * kern/loader.c: Likewise.
47368 * kern/main.c: Likewise.
47369 * kern/misc.c: Likewise.
47370 * kern/mm.c: Likewise.
47371 * kern/rescue.c: Likewise.
47372 * kern/term.c: Likewise.
47373 * kern/i386/dl.c: Likewise.
47374 * kern/i386/pc/init.c: Likewise.
47375 * kern/i386/pc/lzo1x.S: Likewise.
47376 * kern/i386/pc/startup.S: Likewise.
47377 * loader/i386/pc/chainloader.c: Likewise.
47378 * loader/i386/pc/linux.c: Likewise.
47379 * loader/i386/pc/multiboot.c: Likewise.
47380 * normal/cmdline.c: Likewise.
47381 * normal/command.c: Likewise.
47382 * normal/main.c: Likewise.
47383 * normal/menu.c: Likewise.
47384 * normal/i386/setjmp.S: Likewise.
47385 * term/i386/pc/console.c: Likewise.
47386 * term/i386/pc/vga.c: Likewise.
47387 * util/console.c: Likewise.
47388 * util/genmoddep.c: Likewise.
47389 * util/misc.c: Likewise.
47390 * util/pupa-emu.c: Likewise.
47391 * util/resolve.c: Likewise.
47392 * util/unifont2pff.rb: Likewise.
47393 * util/i386/pc/biosdisk.c: Likewise.
47394 * util/i386/pc/getroot.c: Likewise.
47395 * util/i386/pc/pupa-mkimage.c: Likewise.
47396 * util/i386/pc/pupa-setup.c: Likewise.
47397
47398 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
47399
47400 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
47401 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
47402 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
47403 reading and reset it after reading.
47404 (pupa_ext2_close): Return PUPA_ERR_NONE.
47405
47406 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
47407 Correct value.
47408 (struct linux_kernel_header): Add kernel_version and
47409 initrd_addr_max.
47410 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
47411 pupa_file_read succeeds.
47412 (pupa_rescue_cmd_initrd): Implement.
47413
47414 2003-12-03 Marco Gerards <metgerards@student.han.nl>
47415
47416 * fs/ext2.c (pupa_ext2_label): New function.
47417 (pupa_ext2_fs): Added label.
47418 * fs/fat.c (pupa_fat_label): New function.
47419 (pupa_fat_fs): Added label.
47420 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
47421
47422 * kern/misc.c (pupa_strndup): New function.
47423 * include/pupa/misc.h (pupa_strndup): New prototype.
47424
47425 * include/pupa/normal.h: Include <pupa/err.h>.
47426 (pupa_set_history): New prototype.
47427 (pupa_iterate_commands): New prototype.
47428 * normal/cmdline.c: Include <pupa/machine/partition.h>,
47429 <pupa/disk.h>, <pupa/file.h>.
47430 (hist_size): New variable.
47431 (hist_lines): Likewise.
47432 (hist_end): Likewise.
47433 (hist_used): Likewise.
47434 (pupa_set_history): New function.
47435 (pupa_history_get): Likewise.
47436 (pupa_history_add): Likewise.
47437 (pupa_history_replace): Likewise.
47438 (pupa_tab_complete): Likewise.
47439 (pupa_cmdline_run): Added tab completion and history buffer. Tab
47440 completion shows partitionnames while completing partitions, this
47441 feature was suggested by Jeff Bailey.
47442 * normal/command.c (pupa_iterate_commands): New function.
47443 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
47444 (pupa_normal_init): Initialize history buffer.
47445 (PUPA_MOD_INIT): Likewise.
47446 (pupa_normal_fini): Free the history buffer.
47447 (PUPA_MOD_FINI): Likewise.
47448
47449 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
47450 key.
47451
47452 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
47453 * configure.ac [i386]: Check for regparam bug.
47454 (NESTED_FUNC_ATTR) [! i386]: Defined.
47455
47456 2003-11-17 Marco Gerards <metgerards@student.han.nl>
47457
47458 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
47459 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
47460 (pupa_emu_SOURCES): New variable.
47461 (pupa_emu_LDFLAGS): Likewise.
47462 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
47463 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
47464 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
47465 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47466 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
47467 (pupa_jmp_buf): New typedef.
47468 (pupa_setjmp) [PUPA_UTIL]: New macro.
47469 (pupa_longjmp) [PUPA_UTIL]: Likewise.
47470 * include/pupa/term.h (struct pupa_term): New member `refresh'.
47471 (pupa_refresh): New prototype.
47472 * include/pupa/util/getroot.h: New file.
47473 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
47474 it.
47475 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
47476 (pupa_rescue_cmd_cat): Likewise.
47477 (pupa_rescue_cmd_ls): Likewise.
47478 (pupa_rescue_cmd_testload): Likewise.
47479 (pupa_rescue_cmd_lsmod): Likewise.
47480 * normal/cmdline.c (pupa_cmdline_get): Likewise.
47481 * normal/menu.c (run_menu): Likewise.
47482 * kern/term.c (pupa_cls): Likewise.
47483 (pupa_refresh): New function.
47484 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
47485 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47486 * util/console.c: New file.
47487
47488 * util/i386/pc/getroot.c: New file.
47489 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
47490 (pupa_putchar): New function.
47491 (pupa_refresh): Likewise.
47492 (xgetcwd): Function moved to ...
47493 (strip_extra_slashes): Likewise.
47494 (get_prefix): Likewise.
47495 * util/i386/pc/getroot.c: ... here.
47496 (find_root_device): Function moved and renamed to...
47497 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
47498 Changed all callers.
47499 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
47500 and renamed to...
47501 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
47502 Changed all callers.
47503 * util/misc.c (pupa_memalign): New function.
47504 (pupa_mm_init_region): Likewise.
47505 (pupa_register_exported_symbols): Likewise.
47506 (pupa_putchar): Function removed.
47507 * util/pupa-emu.c: New file.
47508
47509 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
47510
47511 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
47512 (_multiboot_mod_SOURCES): New variable.
47513 (_multiboot_mod_CFLAGS): Likewise.
47514 * loader/i386/pc/multiboot.c: New file.
47515 * include/pupa/i386/pc/multiboot.h: Likewise.
47516 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
47517 (pupa_multiboot_real_boot): New function.
47518 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
47519 (pupa_multiboot_real_boot): New prototype.
47520 (pupa_rescue_cmd_multiboot): Likewise
47521 (pupa_rescue_cmd_module): Likewise.
47522
47523 * kern/loader.c (pupa_loader_set): Continue when
47524 pupa_loader_unload_func() fails.
47525 (pupa_loader_unset): New function.
47526 * include/pupa/loader.h (pupa_loader_unset): New prototype.
47527
47528 * kern/misc.c (pupa_stpcpy): New function.
47529 * include/pupa/misc.h (pupa_stpcpy): New prototype.
47530
47531 2003-11-12 Marco Gerards <metgerards@student.han.nl>
47532
47533 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
47534 for available extensions.
47535
47536 * include/pupa/i386/pc/time.h: New file.
47537 * kern/disk.c: Include <pupa/machine/time.h>.
47538 (PUPA_CACHE_TIMEOUT): New macro.
47539 (pupa_last_time): New variable.
47540 (pupa_disk_open): Flush the cache when there was a timeout.
47541 (pupa_disk_close): Reset the timer.
47542 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
47543 pupa_currticks.
47544 * util/misc.c: Include <sys/times.h>
47545 (pupa_get_rtc): New function.
47546
47547 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47548
47549 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
47550 as blocks.
47551 (pupa_ext2_get_file_block): Use blocks member.
47552
47553 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
47554 first block. Return -1 instead of pupa_errno on error.
47555
47556 2003-10-27 Marco Gerards <metgerards@student.han.nl>
47557
47558 * README: In the pupa-mkimage example use _chain instead of chain
47559 and ext2 instead of fat.
47560 * TODO: Replace ext2fs with jfs as an example. Add an item for
47561 adding journal playback for ext2fs.
47562 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
47563 (pkgdata_MODULES): Added ext2.mod.
47564 (ext2_mod_SOURCES): New variable.
47565 (ext2_mod_CFLAGS): Likewise.
47566 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
47567 * include/pupa/misc.h (pupa_strncpy): New prototype.
47568 (pupa_strcat): Likewise.
47569 (pupa_strncmp): Likewise.
47570 * kern/misc.c (pupa_strcat): Enable function.
47571 (pupa_strncpy): New function.
47572 (pupa_strncmp): Likewise.
47573 * fs/ext2.c: New file.
47574
47575 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
47576 when the read failed before retrying.
47577 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
47578 (_FILE_OFFSET_BITS): Likewise.
47579 * configure.ac: Added AC_SYS_LARGEFILE.
47580
47581 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47582
47583 * genmk.rb (PModule#rule): Make sure to get only symbol names
47584 from the output of nm.
47585 Reported by Robert Millan <rmh.grub@aybabtu.com>.
47586
47587 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47588
47589 I forgot to check in these changes for a long time. This adds
47590 incomplete support for VGA console, and this is still very
47591 buggy. Also, a lot of consideration is required for I18N,
47592 UNICODE, and VGA font issues. Therefore, assume that this is
47593 such that "better than nothing".
47594
47595 * font/manager.c: New file.
47596 * include/pupa/font.h: Likewise.
47597 * include/pupa/i386/pc/vga.h: Likewise.
47598 * term/i386/pc/vga.c: Likewise.
47599 * util/unifont2pff.rb: Likewise.
47600
47601 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
47602 (pkgdata_MODULES): Added vga.mod and font.mod.
47603 (vga_mod_SOURCES): New variables.
47604 (vga_mod_CFLAGS): Likewise.
47605 (font_mod_SOURCES): Likewise.
47606 (font_mod_CFLAGS): Likewise.
47607
47608 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
47609
47610 * include/pupa/term.h: Include pupa/err.h.
47611 (struct pupa_term): Added init and fini.
47612 Changed the argument of putchar to pupa_uint32_t.
47613
47614 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
47615 (pupa_console_real_putchar): New prototype.
47616 (pupa_console_putchar): Removed.
47617 (pupa_console_checkkey): Exported.
47618 (pupa_console_getkey): Likewise.
47619
47620 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
47621 characters.
47622
47623 * kern/term.c (pupa_term_set_current): Rewritten.
47624 (pupa_putchar): Likewise.
47625 (pupa_putcode): New function.
47626
47627 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
47628 (pupa_console_real_putchar): ... this.
47629 (pupa_vga_set_mode): New function.
47630 (pupa_vga_get_font): Likewise.
47631
47632 * normal/command.c: Include pupa/term.h.
47633 (terminal_command): New function.
47634 (pupa_command_init): Register the command "terminal".
47635
47636 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
47637 (DISP_UP): Likewise.
47638 (DISP_RIGHT): Likewise.
47639 (DISP_DOWN): Likewise.
47640 (DISP_HLINE): Likewise.
47641 (DISP_VLINE): Likewise.
47642 (DISP_UL): Likewise.
47643 (DISP_UR): Likewise.
47644 (DISP_LL): Likewise.
47645 (DISP_LR): Likewise.
47646
47647 * term/i386/pc/console.c (pupa_console_putchar): New function.
47648
47649 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
47650
47651 * util/resolve.c (pupa_util_resolve_dependencies): BUG
47652 FIX. Reverse the path_list.
47653
47654 * include/pupa/normal.h: Export pupa_register_command and
47655 pupa_unregister_command.
47656
47657 * hello/hello.c (pupa_cmd_hello): New module.
47658 * conf/i386-pc.rmk: Added hello.mod.
47659
47660 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
47661
47662 * kern/i386/pc/lzo1x.S: New file.
47663
47664 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
47665 (compress_kernel): New variable.
47666 (generate_image): Heavily modified to support compressing a
47667 large part of the core image.
47668
47669 * util/misc.c (pupa_util_read_image): Fix a file descriptor
47670 leak.
47671 (pupa_util_load_image): New function.
47672
47673 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
47674 (pupa_compressed_size): New variable.
47675 (codestart): Enable Gate A20 here.
47676 Decompress the compressed part of the core image.
47677 Rearrange the code to put functions and variables which are
47678 required for initialization in the non-compressed part.
47679 Include lzo1x.S.
47680
47681 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
47682 here.
47683
47684 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
47685
47686 * include/pupa/i386/pc/kernel.h
47687 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
47688 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
47689 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47690 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47691 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
47692
47693 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
47694
47695 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
47696 (Utility#rule): Likewise.
47697
47698 * configure.ac: Check if LZO is available.
47699
47700 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
47701
47702 * include/pupa/normal.h: New file.
47703 * include/pupa/setjmp.h: Likewise.
47704 * include/pupa/i386/setjmp.h: Likewise.
47705 * normal/cmdline.c: Likewise.
47706 * normal/command.c: Likewise.
47707 * normal/main.c: Likewise.
47708 * normal/menu.c: Likewise.
47709 * normal/i386/setjmp.S: Likewise.
47710
47711 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
47712 (pupa_rescue_cmd_initrd): Likewise.
47713
47714 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
47715 Likewise.
47716
47717 * kern/i386/pc/startup.S (translation_table): New variable.
47718 (translate_keycode): New function.
47719 (pupa_console_getkey): Call translate_keycode.
47720
47721 * kern/rescue.c (attempt_normal_mode): New function.
47722 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
47723 it failed, print a message.
47724
47725 * kern/mm.c (pupa_real_malloc): Print more information when a
47726 free magic is broken.
47727 (pupa_free): If the first free header is not free actually, set
47728 it to P.
47729
47730 * kern/main.c (pupa_load_normal_mode): Just load the module
47731 "normal".
47732 (pupa_main): Don't print the message
47733 "Entering into rescue mode..." here.
47734
47735 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
47736 Declared.
47737 (pupa_rescue_cmd_initrd): Likewise.
47738 (pupa_rescue_cmd_initrd): Likewise.
47739
47740 * include/pupa/symbol.h (FUNCTION): Specify the type.
47741 (VARIABLE): Likewise.
47742
47743 * include/pupa/err.h (pupa_err_t): Added
47744 PUPA_ERR_UNKNOWN_COMMAND.
47745
47746 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
47747 (pupa_dl_get_prefix): Likewise.
47748
47749 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
47750 Added _chain.mod and _linux.mod instead of chain.mod and
47751 linux.mod.
47752 (chain_mod_SOURCES): Renamed to ...
47753 (_chain_mod_SOURCES): ... this.
47754 (chain_mod_CFLAGS): Renamed to ...
47755 (_chain_mod_CFLAGS): ... this.
47756 (linux_mod_SOURCES): Renamed to ...
47757 (_linux_mod_SOURCES): ... this.
47758 (linux_mod_CFLAGS): Renamed to ...
47759 (_linux_mod_CFLAGS): ... this.
47760 (normal_mod_SOURCES): New variable.
47761 (normal_mod_CFLAGS): Likewise.
47762 (normal_mod_ASFLAGS): Likewise.
47763
47764 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
47765
47766 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
47767 possible.
47768
47769 * kern/dl.c (pupa_dl_ref): Refer depending modules
47770 recursively.
47771 (pupa_dl_unref): Unrefer depending modules recursively.
47772 Don't call pupa_dl_unload implicitly, because PUPA can crash if
47773 a module is unloaded before one depending on that module is
47774 unloaded.
47775 (pupa_dl_unload): Unload depending modules explicitly,
47776 if possible.
47777
47778 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
47779
47780 * include/pupa/i386/pc/linux.h: New file.
47781 * loader/i386/pc/linux.c: Likewise.
47782
47783 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
47784 Removed.
47785 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
47786 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
47787 of PUPA_CHAINLOADER_BOOT_SECTOR.
47788
47789 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
47790 (pupa_linux_prot_size): New variable.
47791 (pupa_linux_tmp_addr): Likewise.
47792 (pupa_linux_real_addr): Likewise.
47793 (pupa_linux_boot_zimage): New function.
47794 (pupa_linux_boot_bzimage): Likewise.
47795
47796 * kern/i386/pc/init.c (struct mem_region): New structure.
47797 (MAX_REGIONS): New macro.
47798 (mem_regions): New variable.
47799 (num_regions): Likewise.
47800 (pupa_os_area_addr): Likewise.
47801 (pupa_os_area_size): Likewise.
47802 (pupa_lower_mem): Likewise.
47803 (pupa_upper_mem): Likewise.
47804 (add_mem_region): New function.
47805 (compact_mem_regions): Likewise.
47806 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
47807 the size of the conventional memory and that of so-called upper
47808 memory (before the first memory hole).
47809 Instead of adding each found region to free memory, use
47810 add_mem_region and add them after removing overlaps.
47811 Also, add only 1/4 of the upper memory to free memory. The rest
47812 is used for loading OS images. Maybe this is ad hoc, but this
47813 makes it much easier to relocate OS images when booting.
47814
47815 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
47816 (pupa_enter_rescue_mode): Don't register initrd and module.
47817
47818 * kern/mm.c: Include pupa/dl.h.
47819
47820 * kern/main.c: Include pupa/file.h and pupa/device.h.
47821
47822 * kern/loader.c (pupa_loader_load_module_func): Removed.
47823 (pupa_loader_load_module): Likewise.
47824
47825 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
47826 ``.o''.
47827
47828 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
47829 (pupa_linux_tmp_addr): Likewise.
47830 (pupa_linux_real_addr): Likewise.
47831 (pupa_linux_boot_zimage): Likewise.
47832 (pupa_linux_boot_bzimage): Likewise.
47833
47834 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
47835 (pupa_upper_mem): Likewise.
47836 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
47837 module is too dangerous.
47838
47839 * include/pupa/loader.h (pupa_os_area_addr): Declared.
47840 (pupa_os_area_size): Likewise.
47841 (pupa_loader_set): Remove the first argument. Loader doesn't
47842 manage modules or initrd any longer.
47843 (pupa_loader_load_module): Removed.
47844
47845 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
47846 (linux_mod_SOURCES): New variable.
47847 (linux_mod_CFLAGS): Likewise.
47848
47849 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
47850
47851 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
47852 the length of a blocklist correctly.
47853
47854 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
47855 Use ioctl only if the OS file is a block device.
47856 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
47857 not very useful for normal files.
47858
47859 * kern/main.c (pupa_set_root_dev): New function.
47860 (pupa_load_normal_mode): Likewise.
47861 (pupa_main): Call those above.
47862
47863 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
47864 pupa_uint16_t.
47865
47866 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
47867
47868 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
47869
47870 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
47871 (setup): Configure the installed partition information and the
47872 dl prefix.
47873
47874 * loader/i386/pc/chainloader.c (my_mod): New variable.
47875 (pupa_chainloader_unload): New function.
47876 (pupa_rescue_cmd_chainloader): Refer itself.
47877 (PUPA_MOD_INIT): Save its own module in MY_MOD.
47878
47879 * kern/i386/pc/startup.S (install_partition): Removed.
47880 (version_string): Likewise.
47881 (config_file): Likewise.
47882 (pupa_install_dos_part): New variable.
47883 (pupa_install_bsd_part): Likewise.
47884 (pupa_prefix): Likewise.
47885 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
47886
47887 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
47888 and pupa/misc.h.
47889 (make_install_device): New function.
47890 (pupa_machine_init): Set the dl prefix.
47891
47892 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
47893 (buf): Renamed to ...
47894 (linebuf): ... this.
47895 (pupa_rescue_cmd_prefix): New function.
47896 (pupa_rescue_cmd_insmod): Likewise.
47897 (pupa_rescue_cmd_rmmod): Likewise.
47898 (pupa_rescue_cmd_lsmod): Likewise.
47899 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
47900 rmmod and lsmod.
47901
47902 * kern/mm.c (pupa_memalign): If failed even after invalidating
47903 disk caches, unload unneeded modules and retry.
47904
47905 * kern/misc.c (pupa_memmove): New function.
47906 (pupa_memcpy): Removed.
47907 (pupa_strcpy): New function.
47908 (pupa_itoa): Made static.
47909
47910 * kern/dl.c (pupa_dl_iterate): New function.
47911 (pupa_dl_ref): Likewise.
47912 (pupa_dl_unref): Likewise.
47913 (pupa_dl_unload): Return if succeeded or not.
47914 (pupa_dl_unload_unneeded): New function.
47915 (pupa_dl_unload_all): Likewise.
47916 (pupa_dl_init): Renamed to ...
47917 (pupa_dl_set_prefix): ... this.
47918 (pupa_dl_get_prefix): New function.
47919
47920 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
47921 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
47922 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47923 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47924 (pupa_install_dos_part): Declared.
47925 (pupa_install_bsd_part): Likewise.
47926 (pupa_prefix): Likewise.
47927 (pupa_boot_drive): Likewise.
47928
47929 * include/pupa/types.h: Fix a typo.
47930
47931 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
47932 pupa_memmove.
47933 (pupa_memmove): Declared.
47934 (pupa_strcpy): Likewise.
47935
47936 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
47937 pupa_mod_init takes one argument, its own module.
47938 (pupa_dl_unload_unneeded): Declared.
47939 (pupa_dl_unload_all): Likewise.
47940 (pupa_dl_ref): Likewise.
47941 (pupa_dl_unref): Likewise.
47942 (pupa_dl_iterate): Likewise.
47943 (pupa_dl_init): Renamed to ...
47944 (pupa_dl_set_prefix): ... this.
47945 (pupa_dl_get_prefix): Declared.
47946
47947 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
47948 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
47949 unloaded.
47950 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
47951 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
47952
47953 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
47954 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
47955
47956 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
47957
47958 * util/i386/pc/pupa-setup.c (setup): Define the internal
47959 function find_first_partition_start at the top level, because GCC
47960 3.0.x cannot compile internal functions in deeper scopes
47961 correctly.
47962 (find_root_device): Use lstat instead of stat.
47963 Don't follow symbolic links.
47964 Fix the path-constructing code.
47965
47966 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
47967 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
47968 by a BLKGETSIZE ioctl first, because block devices don't fill
47969 the member st_mode of the structure stat on Linux.
47970 [__linux__] (linux_find_partition): Use a temporary buffer
47971 REAL_DEV for the working space. Copy it to DEV before returning.
47972 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
47973 buffer cache consistent.
47974 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
47975 strncmp. The previous value was merely wrong.
47976 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
47977
47978 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
47979 FAT size is 12. The previous value was merely wrong.
47980
47981 * kern/main.c (pupa_main): Don't split the starting message from
47982 newlines.
47983
47984 * kern/term.c (pupa_putchar): Put CR after LF instead of before
47985 LF, because BIOS goes crazy about character attributes in this
47986 case.
47987
47988 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
47989
47990 * include/i386/pc/util/biosdisk.h: New file.
47991 * util/i386/pc/biosdisk.c: Likewise.
47992 * util/i386/pc/pupa-setup.c: Likewise.
47993
47994 * Makefile.in (INCLUDE_DISTFILES): Added
47995 include/pupa/i386/pc/util/biosdisk.h.
47996 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
47997 directory util/i386/pc.
47998 (install-local): Added a rule for sbin_UTILITIES.
47999 (uninstall): Likewise.
48000
48001 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
48002
48003 * util/misc.c (xrealloc): New function.
48004 (pupa_malloc): Likewise.
48005 (pupa_free): Likewise.
48006 (pupa_realloc): Likewise.
48007 (pupa_stop): Likewise.
48008 (pupa_putchar): Likewise.
48009
48010 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
48011
48012 * include/pupa/util/misc.h (xrealloc): Declared.
48013
48014 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
48015 macro.
48016 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
48017 (PUPA_BOOT_MACHINE_BPB_END): ... this.
48018
48019 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
48020 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48021
48022 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
48023 way should be implemented.
48024 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48025
48026 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
48027 the size of NAME for safety.
48028 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
48029 0x88.
48030
48031 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
48032 (pupa_setup_SOURCES): Likewise.
48033
48034 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
48035
48036 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48037
48038 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
48039 bunch of pushl's from pusha, because this destroys the return
48040 value.
48041
48042 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48043
48044 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
48045 This means that any missing prototypes could be fatal. Also, you
48046 must take care when writing assembly code. See the comments at
48047 the beginning of startup.S, for more details.
48048
48049 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
48050 compilation mechanism.
48051 (pupa_chainloader_real_boot): Likewise.
48052 (pupa_biosdisk_rw_int13_extensions): Likewise.
48053 (pupa_biosdisk_rw_standard): Likewise.
48054 (pupa_biosdisk_check_int13_extensions): Likewise.
48055 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
48056 (pupa_biosdisk_get_diskinfo_standard): Likewise.
48057 (pupa_get_memsize): Likewise.
48058 (pupa_get_mmap_entry): Likewise.
48059 (pupa_console_putchar): Likewise.
48060 (pupa_console_setcursor): Likewise.
48061 (pupa_getrtsecs): Use pushl instead of push.
48062
48063 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
48064 memory instead of the stack for a mmap entry, because some
48065 BIOSes may ignore the maximum size and overflow.
48066
48067 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
48068
48069 * genmk.rb (PModule#rule): Compile automatically generated
48070 sources with module-specific CFLAGS as well as other sources.
48071
48072 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48073
48074 * configure.ac: Check ld.
48075 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
48076 respectively, before checking endianness and sizes.
48077
48078 * Makefile.in (LD): New variable.
48079
48080 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48081
48082 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
48083
48084 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48085
48086 * Changelog: New file.
48087