]> git.proxmox.com Git - grub2.git/blob - ChangeLog
* util/grub-install_header: Use @PACKAGE@.mo in message catalog name
[grub2.git] / ChangeLog
1 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
2
3 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
4 instead of hardcoding grub.mo.
5
6 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7
8 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
9
10 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
11
12 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
13 grub-core/disk/geli.c.
14
15 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
16
17 * util/grub-mkfont.c: Prefer enum to #define.
18
19 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
20
21 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
22
23 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
24
25 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
26
27 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
28
29 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
30
31 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32
33 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
34
35 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
36
37 * include/grub/bsdlabel.h: Use enums.
38
39 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40
41 Move GRUB_CHAR_BIT to types.h.
42
43 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
44
45 * docs/grub.texi: Document more user commands.
46
47 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
48
49 * docs/grub.texi: Document menuentry --id option.
50
51 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
52
53 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
54
55 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
56
57 Unify file copying setup across different install scripts. Add
58 options for performing partial install.
59
60 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
61 2013-04-04 Peter Jones <pjones@redhat.com>
62
63 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
64
65 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
66
67 Use TSC as a possible time source on i386-ieee1275.
68
69 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
70
71 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
72 Init err.
73
74 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
75
76 * util/grub-setup.c (setup): Handle some corner cases.
77
78 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
79
80 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
81
82 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
83
84 * grub-core/commands/verify.c: Save verified file to avoid it being
85 tampered with after verification was done.
86
87 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
88
89 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
90 reported width by one to compensate for curesor algorithm problem.
91
92 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
93
94 Fix screen corruption in menu entry editor and simplify the code
95 flow while on it.
96
97 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
98
99 * util/grub-mount.c (fuse_init): Return error if fuse_main
100 failed.
101
102 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
103
104 * include/grub/elf.h: Add missing ARM relocation codes and fix
105 existing ones.
106
107 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
108
109 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
110
111 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
112 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
113
114 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
115 into account when calculating radius.
116
117 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
118
119 * grub-core/gfxmenu/view.c: Fix off-by-one error.
120
121 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
122
123 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
124
125 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
126
127 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
128 missing closing bracket.
129
130 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
131
132 * INSTALL: Mention xorriso requirement.
133
134 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
135
136 * grub-core/commands/verify.c: Fix hash algorithms values for
137 the first three hashes - they start with 1, not with 0.
138
139 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
140
141 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
142 Try terminating EFI services several times due to quirks in some
143 implementations.
144
145 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
146
147 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
148 skipping Event, Device, Processor, PowerRes, ThermalZone, and
149 BankField extended opcodes.
150 (get_sleep_type): Add minimal scope handling (just enough to
151 handle setting the scope to the root path).
152 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
153 * include/grub/acpi.h: Add enumeration values for Event, Device,
154 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
155
156 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
157
158 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
159 memory leak.
160
161 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
162
163 * grub-core/disk/ahci.c: Give more time for AHCI request.
164
165 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
166
167 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
168 command.
169
170 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
171
172 Replace the region at 0 from coreboot tables to available in BSD
173 memory map.
174
175 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
176
177 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
178 non-BIOS platforms.
179
180 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
181
182 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
183 platforms.
184
185 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
186
187 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
188 handling of multi-device filesystems.
189
190 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
191
192 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
193 platforms.
194
195 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
196
197 Add new 'proc' filesystem framework and put luks_script into it.
198
199 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
200
201 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
202 and qemu.
203
204 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
205
206 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
207
208 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
209
210 Add ability to generate newc additions on runtime.
211
212 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
213
214 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
215 description.
216
217 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
218
219 * po/POTFILES.in: Regenerate.
220
221 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
222
223 * grub-core/commands/verify.c (hashes): Add several hashes
224 from the spec.
225
226 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
227
228 Slight improve in USB-related boot-time checkpoints.
229
230 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
231
232 * grub-core/commands/boottime.c: Fix copyright header.
233
234 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
235
236 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
237 coreboot tables content. Support for cbmemc.
238
239 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
240
241 Fix a conflict between ports structures with 2 controllers of
242 same kind.
243
244 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
245
246 * include/grub/boottime.h: Add missing file.
247
248 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
249
250 Initialize USB ports in parallel to speed-up boot.
251
252 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
253
254 Fix USB devices not being detected when requested
255 due to delayed attach.
256
257 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
258
259 Implement boot time analysis framework.
260
261 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
262
263 Remove get_endpoint_descriptor and change all functions needing
264 descriptor to just receive it as argument rather than endpoint
265 address.
266
267 2013-03-19 Aleš Nesrsta <starous@volny.cz>
268
269 Better estimate the maximum USB transfer size.
270
271 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
272
273 Resend a packet if we got the wrong buffer in status.
274
275 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
276
277 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
278 multiplication rather than division.
279
280 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
281
282 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
283 than divisions.
284
285 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
286
287 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
288 operations to have intended shifts and not divisions.
289
290 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
291
292 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
293 intended shifts rather than division.
294
295 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
296
297 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
298 computation for some years before epoch. Avode confusing division
299 while on it.
300
301 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
302
303 * grub-core/video/i386/pc/vbe.c
304 (grub_video_vbe_print_adapter_specific_info): Replace division by
305 shifts.
306
307 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
308
309 Adjust types in gdb module to have intended unsigned shifts rather than
310 signed divisions.
311
312 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
313
314 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
315 maximum size is 4G - 1 on hfs
316
317 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
318
319 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
320
321 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
322
323 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
324 function.
325
326 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
327
328 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
329 causing gcc error with gcc 4.7.1.
330
331 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
332
333 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
334 dereference null pointer. While the code is technically correct, gcc
335 may eliminate a null check if pointer is already dereferenced.
336
337 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
338
339 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
340 OOM check.
341 * grub-core/normal/term.c (read_terminal_list): Likewise.
342
343 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
344
345 Lift up core size limits on some platforms. Fix potential memory
346 corruption with big core on small memory systems. Document remaining
347 limits.
348
349 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
350
351 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
352 gotoxy to 0,0.
353
354 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
355
356 Remove all trampoline support. Add -Wtrampolines when
357 present. Remove symbols used for trampolines to make
358 link fail if trampolines are present.
359
360 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
361
362 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
363 append out of its parent.
364
365 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
366
367 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
368 parent.
369
370 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
371
372 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
373 all vars to a macro. All users updated.
374
375 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
376
377 * grub-core/disk/ieee1275/nand.c: Fix compilation on
378 i386-ieee1275.
379
380 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
381
382 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
383
384 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
385
386 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
387
388 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
389
390 Move to more hookless approach in IEEE1275 devices handling.
391
392 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
393
394 * grub-core/kern/term.c (grub_term_normal_color),
395 (grub_term_highlight_color): Add back lost defaults.
396
397 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
398
399 Make elfload not use hooks. Opt for flags and iterators instead.
400
401 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
402
403 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
404 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
405
406 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
407
408 * grub-core/script/execute.c (gettext_append): Remove nested functions.
409
410 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
411
412 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
413 hook pass-through parameter. All users updated and unnested.
414
415 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
416
417 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
418 out of its parent.
419
420 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
421
422 * grub-core/fs/hfs.c: Remove nested functions.
423
424 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
425
426 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
427 the context through.
428 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
429
430 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
431
432 * util/grub-editenv.c (list_variables): Move print_var out of its
433 parent.
434
435 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
436
437 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
438 function.
439
440 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
441
442 * grub-core/gentrigtables.c: Make tables const.
443
444 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
445
446 Remove nested functions from videoinfo iterators.
447
448 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
449
450 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
451 for 64-bit platforms.
452
453 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
454
455 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
456 a FOR_CHILDREN macro.
457
458 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
459
460 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
461 platform from firmware path.
462
463 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
464
465 Enable linux16 on non-BIOS systems for i.a. memtest.
466
467 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
468 correctly.
469 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
470
471 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
472
473 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
474 Fix end of table condition.
475
476 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
477
478 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
479 out of its parent.
480
481 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
482
483 * grub-core/fs/jfs.c: Remove nested functions.
484
485 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
486
487 * grub-core/fs/minix.c: Remove nested functions.
488
489 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
490
491 * grub-core/fs/iso9660.c: Remove nested functions.
492
493 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
494
495 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
496 of parent function.
497
498 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
499
500 * util/grub-fstest.c: Remove nested functions.
501
502 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
503
504 * grub-core/loader/machoXX.c: Remove nested functions.
505
506 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
507
508 Remove nested functions from disk and file read hooks.
509
510 * include/grub/disk.h (grub_disk_read_hook_t): New type.
511 (struct grub_disk): Add read_hook_data member.
512 * include/grub/file.h (struct grub_file): Likewise.
513 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
514 argument.
515
516 Update all callers.
517
518 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
519
520 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
521 Fix off by one error in enumerating extended partitions.
522
523 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
524
525 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
526 memory leak if device name is not found.
527
528 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
529
530 * grub-core/normal/menu_entry.c (update_screen): remove
531 unused variable `off' which caused scroll down arrow to be always shown.
532
533 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
534
535 * grub-core/normal/menu_entry.c (insert_string): fix off by one
536 access to unallocated memory.
537
538 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
539
540 * Makefile.util.def: Add partmap/msdos.c to common library.
541 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
542 * grub-core/disk/ldm.c: Check for existence of
543 GRUB_PC_PARTITION_TYPE_LDM.
544
545 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
546
547 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
548 sizes and display sector size.
549
550 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
551
552 Implement new command cmosdump.
553
554 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
555
556 Support Openfirmware disks with non-512B sectors.
557
558 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
559 size of the disk.
560 * (grub_ofdisk_get_block_size): New function.
561 * (grub_ofdisk_prepare): Use the correct block size.
562 * (grub_ofdisk_read): Likewise.
563 * (grub_ofdisk_write): Likewise.
564 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
565 New proto.
566
567 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
568
569 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
570
571 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
572
573 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
574 on first error.
575
576 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
577
578 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
579 freeing it.
580
581 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
582
583 Implement USBDebug (full USB stack variant).
584
585 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
586
587 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
588 unless they have unexpected values.
589
590 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
591
592 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
593 grub_print_error.
594
595 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
596
597 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
598 zero-out of port structure.
599
600 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
601
602 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
603 of extended attributes.
604
605 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
606
607 * util/grub-install.in: change misleading comment about
608 device.map creation
609
610 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
611
612 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
613 when menu highlight color isn't set.
614
615 2013-01-27 C. Masloch <pushbx@38.de>
616
617 Improve FreeDOS direct loading support compatibility.
618
619 * include/grub/i386/relocator.h (grub_relocator16_state):
620 New member ebp.
621 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
622 variable.
623 (grub_relocator16_boot): Handle %ebp.
624 * grub-core/lib/i386/relocator16.S: Likewise.
625 * grub-core/loader/i386/pc/freedos.c:
626 Load BPB to pass kernel which partition to load from.
627 Check that kernel file is not too large.
628 Set register dl to BIOS unit number as well.
629
630 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
631
632 * util/grub-reboot.in (usage): Document the need for
633 GRUB_DEFAULT=saved.
634 * util/grub-set-default.in (usage): Likewise.
635 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
636
637 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
638
639 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
640 than defining WORDS_BIGENDIAN manually.
641
642 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
643
644 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
645 invariants.
646
647 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
648
649 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
650 nested.
651 (blit_comb: add_device_width): Likewise.
652
653 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
654
655 Remove nested functions from USB iterators.
656
657 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
658 (grub_usb_controller_iterate_hook_t): Likewise.
659 (grub_usb_iterate): Add hook_data argument.
660 (grub_usb_controller_iterate): Likewise.
661 (struct grub_usb_controller_dev.iterate): Likewise.
662
663 Update all implementations and callers.
664
665 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
666
667 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
668 margin when not needed.
669
670 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
671
672 Make color variables global instead of it being per-terminal.
673
674 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
675
676 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
677 asterisk.
678
679 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
680
681 Fix powerpc and sparc64 build failures caused by un-nesting memory
682 map iterators.
683
684 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
685
686 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
687 parameter declarations.
688
689 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
690
691 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
692
693 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
694
695 Improve spkmomdem reliability by adding a separator between bytes.
696
697 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
698
699 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
700 an Acer registration utility with several sightings in the wild.
701 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
702
703 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
704
705 Remove nested functions from filesystem directory iterators.
706
707 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
708 (struct grub_fs.dir): Add hook_data argument.
709
710 Update all implementations and callers.
711
712 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
713
714 * docs/grub.texi (Multi-boot manual config): Fix typo for
715 "recommended".
716
717 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
718
719 * util/grub-mkimage.c (main): Postpone freeing arguments.output
720 until after its use in generate_image.
721
722 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
723
724 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
725 initrd size to addr_min, since the initrd will be allocated after
726 this address.
727
728 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
729
730 * conf/Makefile.common: Fix autogen rules to pass definition
731 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
732
733 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
734
735 * include/grub/elf.h: Update ARM definitions based on binutils.
736
737 2013-01-20 Aleš Nesrsta <starous@volny.cz>
738
739 Split long USB transfers into short ones.
740
741 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
742
743 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
744 is interrupted by ESC.
745
746 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
747
748 * util/grub-script-check.c (main): Uniform the error message.
749
750 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
751
752 Remove nested functions from ELF iterators.
753
754 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
755
756 Remove nested functions from device iterators.
757
758 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
759 (grub_arc_iterate_devs): Add hook_data argument.
760 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
761 (struct grub_ata_dev.iterate): Add hook_data argument.
762 * include/grub/device.h (grub_device_iterate_hook_t): New type.
763 (grub_device_iterate): Add hook_data argument.
764 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
765 (struct grub_disk_dev.iterate): Add hook_data argument.
766 (grub_disk_dev_iterate): Likewise.
767 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
768 Likewise.
769 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
770 Likewise.
771 * include/grub/partition.h (grub_partition_iterate_hook_t): New
772 type.
773 (struct grub_partition_map.iterate): Add hook_data argument.
774 (grub_partition_iterate): Likewise.
775 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
776 (struct grub_scsi_dev.iterate): Add hook_data argument.
777
778 Update all callers.
779
780 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
781
782 Fix typos for "developer" and "development".
783
784 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
785
786 Add license header to spkmodem-recv.c.
787
788 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
789
790 Rewrite spkmodem to use PIT for timing. Double the speed.
791
792 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
793
794 Add new command pcidump.
795
796 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
797
798 New terminal outputs using serial: morse and spkmodem.
799
800 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
801
802 Improve bidi handling in entry editor.
803
804 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
805
806 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
807 argument to prevent name collision.
808
809 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
810
811 Remove nested functions from script reading and parsing.
812
813 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
814 getline_data argument, passed to getline.
815 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
816 getline_data argument, passed to grub_parser_split_cmdline.
817 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
818 lexerstate->getline_data to lexerstate->getline.
819 (grub_script_lexer_init): Add getline_data argument, saved in
820 lexerstate->getline_data.
821 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
822 argument, passed to grub_script_parse.
823 * grub-core/script/script.c (grub_script_parse): Add getline_data
824 argument, passed to grub_script_lexer_init.
825 * include/grub/parser.h (grub_parser_split_cmdline): Update
826 prototype. Update all callers to pass appropriate getline data.
827 (struct grub_parser.parse_line): Likewise.
828 (grub_rescue_parse_line): Likewise.
829 * include/grub/reader.h (grub_reader_getline_t): Add void *
830 argument.
831 * include/grub/script_sh.h (struct grub_lexer_param): Add
832 getline_data member.
833 (grub_script_parse): Update prototype. Update all callers to pass
834 appropriate getline data.
835 (grub_script_lexer_init): Likewise.
836 (grub_normal_parse_line): Likewise.
837
838 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
839 data argument.
840 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
841 static instead of nested. Rename to ...
842 (grub_parser_execute_getline): ... this.
843 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
844 data argument.
845 * grub-core/normal/main.c (read_config_file: getline): Make static
846 instead of nested. Rename to ...
847 (read_config_file_getline): ... this.
848 (grub_normal_read_line): Add unused data argument.
849 * grub-core/script/execute.c (grub_script_execute_sourcecode:
850 getline): Make static instead of nested. Rename to ...
851 (grub_script_execute_sourcecode_getline): ... this.
852 * util/grub-script-check.c (main: get_config_line): Make static
853 instead of nested.
854
855 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
856
857 Remove nested functions from memory map iterators.
858
859 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
860 argument, passed to hook.
861 * grub-core/kern/i386/coreboot/mmap.c
862 (grub_linuxbios_table_iterate): Likewise.
863 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
864 instead of nested.
865 (grub_machine_mmap_iterate): Add hook_data argument.
866 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
867 Add hook_data argument, passed to hook.
868 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
869 Likewise.
870 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
871 Likewise.
872 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
873 Likewise.
874 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
875 Likewise.
876 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
877 Likewise.
878 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
879 Likewise.
880 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
881 (grub_machine_mmap_iterate): Likewise.
882 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
883 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
884 prototype.
885 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
886 Remove NESTED_FUNC_ATTR from here and from all users.
887 (grub_mmap_iterate): Update prototype.
888 (grub_efi_mmap_iterate): Update prototype. Update all callers to
889 pass appropriate hook data.
890 (grub_machine_mmap_iterate): Likewise.
891
892 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
893 static instead of nested.
894 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
895 Rename to ...
896 (lsmmap_hook): ... this.
897 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
898 Likewise.
899 (grub_efiemu_mmap_fill: fill_hook): Likewise.
900 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
901 heap_init): Likewise.
902 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
903 Rename to ...
904 (mmap_iterate_hook): ... this.
905 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
906 Likewise.
907 * grub-core/lib/ieee1275/relocator.c
908 (grub_relocator_firmware_get_max_events: count): Likewise.
909 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
910 to ...
911 (grub_relocator_firmware_fill_events_iter): ... this.
912 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
913 hook): Likewise. Rename to ...
914 (grub_relocator_alloc_chunk_align_iter): ... this.
915 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
916 Rename to ...
917 (generate_e820_mmap_iter): ... this.
918 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
919 Rename to ...
920 (count_hook): ... this.
921 (grub_linux_boot: hook): Likewise. Rename to ...
922 (grub_linux_boot_mmap_find): ... this.
923 (grub_linux_boot: hook_fill): Likewise. Rename to ...
924 (grub_linux_boot_mmap_fill): ... this.
925 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
926 hook): Likewise. Rename to ...
927 (grub_fill_multiboot_mmap_iter): ... this.
928 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
929 hook): Likewise. Rename to ...
930 (count_hook): ... this.
931 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
932 hook): Likewise. Rename to ...
933 (grub_fill_multiboot_mmap_iter): ... this.
934 * grub-core/loader/powerpc/ieee1275/linux.c
935 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
936 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
937 Likewise. Rename to ...
938 (alloc_phys_choose): ... this.
939 (determine_phys_base: get_physbase): Likewise.
940 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
941 find_hook): Likewise.
942 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
943 (malloc_hook: count_hook): Likewise.
944 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
945 Likewise. Rename to ...
946 (lower_hook): ... this.
947 (grub_mmap_get_upper: hook): Likewise. Rename to ...
948 (upper_hook): ... this.
949 (grub_mmap_get_post64: hook): Likewise. Rename to ...
950 (post64_hook): ... this.
951 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
952 Likewise. Rename to ...
953 (lower_hook): ... this.
954 (grub_mmap_get_upper: hook): Likewise. Rename to ...
955 (upper_hook): ... this.
956 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
957 (grub_mmap_iterate: fill_hook): Likewise.
958 (fill_mask): Pass addr and mask within a single struct.
959 (grub_cmd_badram: hook): Make static instead of nested. Rename
960 to ...
961 (badram_iter): ... this.
962 (grub_cmd_cutmem: hook): Likewise. Rename to ...
963 (cutmem_iter): ... this.
964
965 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
966
967 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
968 delimit path in strings using quotes.
969 * util/getroot.c (grub_guess_root_devices): Likewise.
970 (grub_make_system_path_relative_to_its_root): Likewise.
971 * util/grub-probe.c (probe): Likewise.
972 * util/ieee1275/ofpath.c (find_obppath): Likewise.
973 (xrealpath): Likewise.
974
975 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
976
977 Fix compilation with older compilers.
978
979 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
980 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
981 declarations.
982 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
983 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
984 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
985 identifier with b.
986 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
987 * include/grub/crypto.h: Add type defines.
988 * util/import_gcrypth.sed: Remove duplicate type defines.
989
990 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
991
992 New command list_trusted.
993
994 * grub-core/commands/verify.c (grub_cmd_list): New function.
995
996 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
997
998 * util/grub-mkimage.c (generate_image): Fix "size of public key"
999 info message.
1000
1001 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
1002
1003 Remove nested functions from PCI iterators.
1004
1005 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
1006 passed to hook. Update all callers to pass appropriate hook data.
1007 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
1008 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
1009 Remove NESTED_FUNC_ATTR from here and from all users.
1010 (grub_pci_iterate): Update prototype.
1011 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
1012 instead of nested. Rename to ...
1013 (grub_cs5536_find_iter): ... this.
1014 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
1015 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
1016 Likewise.
1017 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
1018 Likewise.
1019 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
1020 Likewise.
1021 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
1022 Likewise.
1023 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
1024 * grub-core/video/radeon_fuloong2e.c
1025 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
1026 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
1027 find_card): Likewise.
1028 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
1029 Likewise.
1030
1031 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1032
1033 * grub-core/commands/verify.c: Mark messages for translating.
1034
1035 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1036
1037 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
1038 fatal.
1039
1040 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1041
1042 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
1043 fatal.
1044
1045 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1046
1047 * autogen.sh: Do not try to delete nonexistant files.
1048 * util/import_gcrypth.sed: Add some missing header removals.
1049
1050 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
1051
1052 Clean up dangling references to grub-setup.
1053 Fixes Ubuntu bug #1082045.
1054
1055 * docs/grub.texi (Images): Refer generally to grub-install rather
1056 than directly to grub-setup.
1057 (Installing GRUB using grub-install): Remove direct reference to
1058 grub-setup.
1059 (Device map) Likewise.
1060 (Invoking grub-install): Likewise.
1061 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
1062 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
1063 * util/grub-install.in (usage): Likewise.
1064
1065 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
1066 Apply to grub-bios-setup and grub-sparc64-setup rather than to
1067 grub-setup.
1068 * configure.ac: Remove grub_setup output variable.
1069
1070 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
1071 to grub-bios-setup.
1072 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
1073 grub-setup to grub-sparc64-setup.
1074
1075 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
1076
1077 Import gcrypt public-key cryptography and implement signature checking.
1078
1079 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1080
1081 * grub-core/fs/ntfs.c: Ue more appropriate types.
1082 * grub-core/fs/ntfscomp.c: Likewise.
1083 * include/grub/ntfs.h: Likewise.
1084
1085 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1086
1087 Support Apple FAT binaries on non-Apple platforms.
1088
1089 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
1090 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
1091 Likewise.
1092 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
1093 Apple FAT binaries.
1094
1095 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1096
1097 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
1098 sector devices.
1099
1100 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
1101
1102 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
1103 explicitly zeroing elements.
1104 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
1105 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
1106 of elements in a structure already allocated using grub_zalloc.
1107 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
1108
1109 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
1110
1111 * docs/grub.texi (grub_cpu): New subsection.
1112 (grub_platform): Likewise.
1113
1114 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
1115
1116 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
1117
1118 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1119
1120 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
1121 divisions.
1122
1123 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1124
1125 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
1126 * grub-core/fs/ntfscomp.c: Likewise.
1127 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
1128 (grub_ntfs_comp): Likewise.
1129
1130 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1131
1132 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
1133 Rename to ...
1134 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
1135 of groups_per_block. All users updated.
1136
1137 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1138
1139 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
1140 grub_error properly.
1141 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
1142 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
1143
1144 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1145
1146 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
1147 always in /boot/zfs.
1148 Reported by: Yuta Satoh.
1149
1150 2013-01-03 Yuta Satoh <nigoro>
1151
1152 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
1153 ${grub_probe}
1154
1155 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1156
1157 * configure.ac: Extend -Wno-trampolines to host.
1158
1159 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1160
1161 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
1162 entry->len = 0.
1163
1164 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
1165
1166 * docs/grub.texi (Invoking grub-mkrelpath): New section.
1167 (Invoking grub-script-check): Likewise.
1168
1169 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
1170
1171 * docs/grub.texi (Invoking grub-mount): New section.
1172 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
1173
1174 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
1175
1176 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
1177 test failures, so that a failing unit test correctly causes 'make
1178 check' to fail.
1179
1180 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
1181
1182 Fix failing printf test.
1183
1184 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
1185 '$' in the correct order when collecting type information.
1186
1187 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
1188
1189 * docs/grub.texi (configfile): Explain environment variable
1190 handling.
1191 (source): New section.
1192 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
1193
1194 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
1195
1196 Remove several trivially-unnecessary uses of nested functions.
1197
1198 * grub-core/commands/i386/pc/sendkey.c
1199 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
1200 instead of nested.
1201 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
1202 Rename to ...
1203 (legacy_file_getline): ... this.
1204 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
1205 Likewise.
1206 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
1207 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
1208 to ...
1209 (probe_dummy_iter): ... this.
1210 * grub-core/kern/i386/coreboot/mmap.c
1211 (grub_linuxbios_table_iterate: check_signature): Likewise.
1212 * grub-core/kern/parser.c (grub_parser_split_cmdline:
1213 check_varstate): Likewise. Mark inline.
1214 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
1215 an additional parameter.
1216 (find_long: fnd_long): Likewise. Pass two additional parameters.
1217 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
1218 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
1219 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
1220 Likewise. Rename to ...
1221 (grub_cmos_find_port_iter): ... this.
1222 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
1223 Rename to ...
1224 (find_rtc_iter): ... this.
1225
1226 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
1227 function directly into the function body, since it is only called
1228 once.
1229
1230 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
1231
1232 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
1233 __attribute__ ((unused)).
1234 * grub-core/video/bochs.c (find_card): Likewise.
1235 * grub-core/video/cirrus.c (find_card): Likewise.
1236 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
1237 * grub-core/video/sis315pro.c (find_card): Likewise.
1238 * grub-core/video/sm712.c (find_card): Likewise.
1239
1240 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1241
1242 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
1243 Fixes Savannah bug #37821.
1244
1245 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1246
1247 Apply program name transformations at build-time rather than at
1248 run-time. Fixes Debian bug #696465.
1249
1250 * acinclude.m4 (grub_TRANSFORM): New macro.
1251 * configure.ac: Create output variables with transformed names for
1252 most programs.
1253 * util/bash-completion.d/grub-completion.bash.in: Use
1254 pre-transformed variables for program names.
1255 * util/grub-install.in: Likewise.
1256 * util/grub-kbdcomp.in: Likewise.
1257 * util/grub-mkconfig.in: Likewise.
1258 * util/grub-mkconfig_lib.in: Likewise.
1259 * util/grub-mknetdir.in: Likewise.
1260 * util/grub-mkrescue.in: Likewise.
1261 * util/grub-mkstandalone.in: Likewise.
1262 * util/grub-reboot.in: Likewise.
1263 * util/grub-set-default.in: Likewise.
1264 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1265 * tests/util/grub-shell-tester.in: Remove unused assignment.
1266 * tests/util/grub-shell.in: Likewise.
1267 * util/grub.d/00_header.in: Likewise.
1268
1269 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1270
1271 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
1272
1273 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
1274 HAVE_RAW_DECL_GETS.
1275 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
1276
1277 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1278
1279 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
1280 Reported by: Eriks Latosheks <foresterlv>.
1281
1282 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1283
1284 * docs/grub.texi (Network): Update instructions on generating netboot
1285 image.
1286
1287 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1288
1289 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
1290 around device name if necessarry.
1291
1292 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1293
1294 * util/grub-install.in: Follow the symbolic link parameter added
1295 to the file command.
1296
1297 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
1298
1299 * util/grub-install.in: Remove stale TODO.
1300
1301 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1302
1303 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
1304 dynamic allocation for the bootpath buffer.
1305
1306 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
1307
1308 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
1309 window too small.
1310
1311 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1312
1313 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
1314 argument rather than font name. All users updated.
1315 (grub_gfxterm_set_window): Likewise.
1316
1317 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
1318
1319 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
1320 from working.
1321
1322 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1323
1324 * util/getroot.c (convert_system_partition_to_system_disk): Support
1325 nbd disks.
1326
1327 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1328
1329 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
1330 infinite loop on corrupted FS.
1331
1332 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1333
1334 Fix big-endian mtime.
1335
1336 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
1337 together sec and usec.
1338 (grub_ufs_dir): Use correct byteswapping for UFS time.
1339
1340 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1341
1342 Support big-endian UFS1.
1343
1344 * Makefile.util.def (libgrubmods): Add ufs_be.c
1345 * grub-core/Makefile.core.def (ufs1_be): New module.
1346 * grub-core/fs/ufs_be.c: New file.
1347 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
1348 the file.
1349
1350 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
1351
1352 * include/grub/types.h: Fix functionality unaffecting typo in
1353 GRUB_TARGET_WORDSIZE conditional macro.
1354
1355 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1356
1357 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
1358
1359 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
1360
1361 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
1362 that /netbsd appears first (when it exists).
1363
1364 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
1365
1366 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
1367 Fixes Savannah bug #37558.
1368
1369 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
1370
1371 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
1372 description of extract_entries_configfile.
1373
1374 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
1375
1376 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
1377 preferred_address.
1378 (grub_cmd_linux): Likewise.
1379 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
1380 preferred_lifetime. Update all users.
1381
1382 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
1383
1384 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
1385 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
1386
1387 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
1388
1389 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
1390 errors from grub-probe to /dev/null, not stdout.
1391
1392 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
1393
1394 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
1395 sector 1.
1396
1397 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
1398
1399 * util/grub-install.in: Make the error message if $source_dir
1400 doesn't exist more useful.
1401
1402 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
1403
1404 Fix grub-emu build on FreeBSD.
1405
1406 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
1407 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
1408 headers on Linux.
1409 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
1410 implementation is currently Linux-specific.
1411 * util/getroot.c (exec_pipe): Define only on Linux or when either
1412 libzfs or libnvpair is unavailable.
1413 (find_root_devices_from_poolname): Remove unused path variable.
1414
1415 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
1416
1417 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
1418 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
1419 should fit before end == 63.
1420
1421 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
1422
1423 * util/grub-setup.c (write_rootdev): Remove unused core_img
1424 parameter. Update all callers.
1425 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
1426 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
1427 GRUB_SETUP_BIOS.
1428
1429 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1430
1431 * util/grub-mkconfig_lib.in (grub_tab): New variable.
1432 (grub_add_tab): New function.
1433 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
1434 * util/grub.d/10_illumos.in: Likewise.
1435 * util/grub.d/10_kfreebsd.in: Likewise.
1436 * util/grub.d/10_linux.in: Likewise.
1437 * util/grub.d/10_netbsd.in: Likewise.
1438 * util/grub.d/10_windows.in: Likewise.
1439 * util/grub.d/10_xnu.in: Likewise.
1440 * util/grub.d/20_linux_xen.in: Likewise.
1441 * util/grub.d/30_os-prober.in: Likewise.
1442
1443 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1444
1445 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1446 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
1447 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
1448 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
1449 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
1450 ieee1275-nocursor.
1451 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1452 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
1453
1454 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1455
1456 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
1457 le-conversion.
1458 Reported by: BURETTE, Bernard.
1459
1460 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
1461
1462 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
1463 from comment.
1464
1465 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
1466
1467 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
1468 IEEE1275 machines. Fixes powerpc-emu compilation.
1469 * include/grub/terminfo.h: Likewise.
1470
1471 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1472
1473 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
1474 a const pointer.
1475 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
1476 const pointer.
1477 (efiemu_set_variable): Make vendor_guid a const pointer.
1478
1479 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1480
1481 Don't require grub-mkconfig_lib to generate manpages for programs.
1482
1483 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
1484 dependencies, don't add grub-mkconfig_lib.
1485 (program): Pass empty adddeps.
1486 (script): Pass grub-mkconfig_lib as adddeps.
1487
1488 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1489
1490 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
1491 * util/getroot.c (grub_find_device): Likewise.
1492 (get_mdadm_uuid): Likewise.
1493 (grub_util_is_imsm): Likewise.
1494 (grub_util_pull_device): Likewise.
1495 * util/grub-probe.c (probe): Likewise.
1496
1497 2012-09-10 Benoit Gschwind <gschwind>
1498
1499 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
1500 (devs): Add devpath_8.
1501
1502 2012-09-08 Peter Jones <pjones@redhat.com>
1503
1504 * grub-core/Makefile.core.def (efifwsetup): New module.
1505 * grub-core/commands/efi/efifwsetup.c: New file.
1506 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
1507 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
1508 New define.
1509 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
1510
1511 2012-09-05 Jiri Slaby <jslaby@suse.cz>
1512
1513 * configure.ac: Add SuSe path.
1514
1515 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1516
1517 * NEWS: Fix typo.
1518
1519 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1520
1521 * util/import_gcry.py: Sort cipher_files, to make build system
1522 generation more deterministic.
1523
1524 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1525
1526 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
1527 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
1528 (grub_set_datetime): Likewise.
1529
1530 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1531
1532 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
1533 warnings.
1534
1535 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1536
1537 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
1538
1539 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1540
1541 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
1542
1543 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1544
1545 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
1546 required for checkouts from bzr, but it may be useful for users or
1547 distributors wishing to update translations against a tarball
1548 distribution, and it can be helpful for the tarball to be a superset
1549 of what's in bzr.
1550
1551 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1552
1553 * Makefile.am (EXTRA_DIST): Add
1554 grub-core/tests/boot/linux.init-mips.S,
1555 grub-core/tests/boot/linux.init-ppc.S, and
1556 grub-core/tests/boot/linux-ppc.cfg.
1557
1558 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1559
1560 * grub-core/mmap/mips/loongson: Remove empty directory.
1561
1562 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1563
1564 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
1565 gone.
1566
1567 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1568
1569 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
1570 grub-sparc64-setup.
1571
1572 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1573
1574 * configure.ac: Strengthen the test for working -nostdinc -isystem.
1575
1576 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1577
1578 * po/POTFILES.in: Regenerated.
1579
1580 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1581
1582 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
1583 (NetBSD): New subsection.
1584
1585 2012-07-22 Ales Nesrsta <starous@volny.cz>
1586
1587 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
1588 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
1589
1590 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1591
1592 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
1593 * util/grub.d/10_hurd.in: Add missing quoting.
1594 * util/grub.d/10_illumos.in: Likewise.
1595 * util/grub.d/10_kfreebsd.in: Likewise.
1596 * util/grub.d/10_linux.in: Likewise.
1597 * util/grub.d/20_linux_xen.in: Likewise.
1598
1599 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1600
1601 New command `lsefi'.
1602
1603 * grub-core/Makefile.core.def (lsefi): New module.
1604 * grub-core/commands/efi/lsefi.c: New file.
1605 * include/grub/efi/api.h: Add more GUIDs.
1606
1607 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1608
1609 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
1610 (grub_bsd_elf32_hook): Likewise.
1611 (grub_bsd_elf64_size_hook): Likewise.
1612 (grub_bsd_elf64_hook): Likewise.
1613 (grub_bsd_load_elf): Likewise.
1614
1615 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1616
1617 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
1618 if hash function is unavailable.
1619 (dec_stream_header): Likewise.
1620
1621 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1622
1623 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
1624 filter state.
1625
1626 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1627
1628 Fix coreboot compilation.
1629
1630 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
1631 (grub_vga_text_init_real): ... this.
1632 (grub_vga_text_fini): Rename to ...
1633 (grub_vga_text_fini_real): ... this.
1634
1635 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1636
1637 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
1638
1639 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1640
1641 * grub-core/lib/legacy_parse.c: Support clear and testload.
1642
1643 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1644
1645 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
1646
1647 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1648
1649 * grub-core/fs/ext2.c: Experimental support for 64-bit.
1650
1651 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1652
1653 * grub-core/net/tftp.c (ack): Fix endianness problem.
1654 (tftp_receive): Likewise.
1655 Reported by: Michael Davidsaver.
1656
1657 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1658
1659 * gentpl.py: Make mans depend on grub-mkconfig_lib.
1660
1661 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1662
1663 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
1664 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
1665 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
1666
1667 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1668
1669 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
1670 efi_mmap_size.
1671 Reported by: Stuart Hayes.
1672
1673 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1674
1675 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
1676
1677 * grub-core/Makefile.core.def (mda_text): New module.
1678 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
1679 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
1680 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
1681 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
1682 here.
1683 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
1684 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
1685 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
1686 here.
1687 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
1688 to ..
1689 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
1690 ... here
1691 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
1692 here.
1693 * grub-core/term/i386/vga_common.c: Removed.
1694 * include/grub/i386/vga_common.h: Likewise.
1695 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
1696 (grub_vga_cr_bw_read): Likewise.
1697 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
1698 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
1699 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
1700 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
1701 grub_vga_cr_read/grub_vga_cr_write.
1702 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
1703
1704 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1705
1706 * configure.ac: Bump version to 2.00.
1707 * grub-core/normal/main.c (features): Add feature_200_final.
1708
1709 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1710 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
1711
1712 * NEWS: Fix unclarity and language mistakes.
1713
1714 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1715
1716 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
1717 additional size to 3 pages.
1718 Reported by: Stuart Hayes.
1719
1720 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1721
1722 * NEWS: Add 2.00 entry.
1723
1724 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1725
1726 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
1727 put explicit "/" for empty path.
1728 (wildcard_expand): Improve dprintf.
1729
1730 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1731
1732 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
1733 it's equal to currnode. This can happen with "" symlink.
1734
1735 2012-06-27 Yves Blusseau <blusseau@zetam.org>
1736
1737 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
1738 echo shell command by printf command.
1739
1740 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1741
1742 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
1743 the value returned by firmware is the maximal position, not diumension.
1744 (grub_terminfo_output_state): Use a more sane fallback.
1745
1746 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1747
1748 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
1749
1750 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1751
1752 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
1753 frequency to 150 MHz.
1754
1755 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1756
1757 Apple fixes.
1758
1759 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
1760 __APPLE_
1761 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
1762 definition.
1763 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
1764
1765 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1766
1767 Handle slash in HFS label.
1768
1769 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
1770 (grub_hfs_dir): Tanslate slash.
1771 (grub_hfs_label): Don't translate slash.
1772
1773 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1774
1775 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
1776 network protocol listing since it introduces problematic dependency on
1777 net module.
1778
1779 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1780
1781 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
1782
1783 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1784
1785 Init video early on yeeloong to avoid being rebooted by watchdog.
1786
1787 * grub-core/Makefile.am (gensm712): New target.
1788 (sm712_start.S): Likewise.
1789 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
1790 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
1791 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
1792 description.
1793 * include/grub/vga.h: Move registry definitions to...
1794 * include/grub/vgaregs.h: ... here.
1795
1796 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1797
1798 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
1799 signedness.
1800
1801 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1802
1803 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
1804 platforms with firmware disk drivers in the core.
1805
1806 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1807
1808 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
1809 informative verbose message.
1810 (read_lv): Handle 64-bit segment size.
1811
1812 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1813
1814 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
1815
1816 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1817
1818 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
1819 character but still remove trainling spaces.
1820 (grub_fat_label): Ignore archive flag.
1821
1822 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1823
1824 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
1825 cast between linux_kernel_header and linux_kernel_params.
1826
1827 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1828
1829 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
1830 type for size.
1831 (grub_raid6_recover_func_t): Likewise.
1832 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
1833 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
1834
1835 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1836
1837 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
1838
1839 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
1840
1841 Fix overflow.
1842
1843 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
1844 [__NetBSD__]: Add explicit cast before bitshift.
1845
1846 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1847
1848 * configure.ac: Bump to 2.00~rc1.
1849
1850 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1851
1852 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
1853 half of $a0.
1854
1855 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1856 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
1857
1858 * docs/grub.texi: Fix search syntax.
1859 (Multi-boot manual config): Put msdos rather than GPT example.
1860 Grammar corrections.
1861
1862 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1863
1864 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
1865
1866 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1867
1868 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
1869
1870 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1871
1872 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
1873 message on double free. Put the value of magic in case of mismatch.
1874
1875 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1876
1877 Speed-up video on yeeloong.
1878
1879 * grub-core/video/sm712.c (framebuffer): Remove render_target and
1880 add cached_ptr.
1881 (grub_video_sm712_video_fini): Unmap cached_ptr.
1882 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
1883 (grub_video_sm712_set_active_render_target): Removed.
1884 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1885 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
1886 sync caches.
1887
1888 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1889
1890 Avoid flushing the same line multiple times on loongson.
1891
1892 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
1893 Step in 32 bytes and not 1 byte.
1894 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
1895 Likewise.
1896
1897 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1898
1899 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
1900 subvolumes.
1901
1902 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1903
1904 Implement flow control for http.
1905
1906 * grub-core/net/http.c (parse_line): Handle response 206.
1907 (http_receive): Stall if too many packets are in the queue.
1908 (http_establish): Fix range header.
1909 (http_seek): Fix double free.
1910 (http_close): Likewise.
1911 (http_packets_pulled): New function.
1912 (grub_http_protocol): Set http_seek
1913 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
1914 (ack_real): Set window depending on i_stall.
1915 (grub_net_send_tcp_packet): Likewise.
1916 (grub_net_tcp_stall): New function.
1917 (grub_net_tcp_unstall): Likewise.
1918 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
1919 (grub_net_tcp_unstall): Likewise.
1920
1921 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1922
1923 * grub-core/net/tftp.c: Decrease stall to 50 packets.
1924
1925 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1926
1927 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
1928
1929 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1930
1931 * tests/util/grub-shell.in: Fix a typo.
1932
1933 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1934
1935 Implement flow control for tftp.
1936
1937 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
1938 packets but stop only if stop condition is satisfied.
1939 (grub_net_fs_read_real): Call packets_pulled after real read. Use
1940 `stall' instead of `eof' as stop condition.
1941 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
1942 (http_err): Likewise.
1943 * grub-core/net/tftp.c (ack): Replace the first argument with data
1944 instead of socket.
1945 (tftp_receive): Stall if too many packets are in wait queue.
1946 (tftp_packets_pulled): New function.
1947 (grub_tftp_protocol): Set packets_pulled.
1948 * include/grub/net.h (grub_net_packets): New field count.
1949 (grub_net_put_packet): Increment count.
1950 (grub_net_remove_packet): Likewise.
1951 (grub_net_app_protocol): New field `packets_pulled'.
1952 (grub_net): New field `stall'.
1953
1954 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1955
1956 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
1957 sync part to handle them.
1958
1959 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1960
1961 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
1962 * grub-core/net/drivers/ieee1275/ofnet.c
1963 (grub_ieee1275_net_config_real): Likewise.
1964
1965 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1966
1967 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
1968 the direct route for server/gateway.
1969
1970 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1971
1972 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
1973 IP address to server name since we may not hame the DNS.
1974
1975 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1976
1977 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
1978 freeing random buffer on failure.
1979 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
1980
1981 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1982
1983 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
1984
1985 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1986
1987 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
1988 reserved bytes.
1989 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
1990 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
1991 Handle malloc error correctly.
1992
1993 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1994
1995 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
1996 blocks.
1997
1998 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1999
2000 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
2001 increment.
2002
2003 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2004
2005 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
2006 none is explicitly specified.
2007
2008 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2009
2010 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
2011 while reallocating.
2012
2013 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2014
2015 Respect netmask from bootp/dhcp.
2016
2017 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
2018 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
2019 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
2020 into ...
2021 (grub_net_add_ipv4_local): ... this.
2022 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
2023 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
2024 (grub_net_add_ipv4_local): New proto.
2025
2026 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2027
2028 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
2029 determining EFI memory map size.
2030
2031 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2032
2033 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
2034
2035 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2036
2037 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
2038 when looking for partition separator.
2039
2040 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2041
2042 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
2043 Escape commas.
2044
2045 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2046
2047 Restructure FAT driver to avoid hook in label reading as it hits a
2048 GCC bug.
2049
2050 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
2051 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
2052 (grub_fat_iterate_dir): Split into ...
2053 (grub_fat_iterate_init): ... this, ...
2054 (grub_fat_iterate_fini): ... this, ...
2055 (grub_fat_iterate_dir_next): ... and this. All users updated.
2056
2057 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2058
2059 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2060 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
2061 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2062 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
2063 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
2064 New fields last_key and last_key_time.
2065 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
2066 extended key-esc into extended key-extended key.
2067
2068 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2069
2070 Avoid unnecessary memcpy of whole video buffer.
2071
2072 * grub-core/video/fb/video_fb.c (dirty): New struct.
2073 (framebuffer): Add members current_dirty and previous_dirty.
2074 (dirty): New function.
2075 (grub_video_fb_fill_rect): Update dirty.
2076 (common_blitter): Likewise.
2077 (grub_video_fb_scroll): Likewise.
2078 (doublebuf_blit_update_screen): Copy only dirty part.
2079 (doublebuf_pageflipping_update_screen): Likewise.
2080 (grub_video_fb_doublebuf_blit_init): Init dirty.
2081 (doublebuf_pageflipping_init): Likewise.
2082 (grub_video_fb_setup): Likewise.
2083
2084 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2085
2086 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
2087 poll rate.
2088
2089 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2090
2091 Fix wildcard regexp dot and other special characters handling.
2092 Reported by: Robert Mabee.
2093
2094 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
2095 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
2096 (split_path): Trigger expansion on '?'.
2097 (unescape): New function.
2098 (wildcard_expand): Unescape parts copied without globbing.
2099 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
2100 (grub_script_arglist_to_argv): Don't unescape expansions.
2101
2102 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2103
2104 * include/grub/net.h (grub_net_card): New member txbufsize.
2105 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
2106 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2107 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
2108 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
2109 txbufsize.
2110 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
2111 compatible property to check for macs. Set
2112 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2113 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
2114 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
2115 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
2116 (send_card_buffer): Use txbuf.
2117 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
2118 nested function out of the parent while on it.
2119
2120 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2121
2122 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
2123 presence check.
2124 (grub_ieee1275_net_config_real): Fix config pointer.
2125
2126 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2127
2128 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
2129 filename parsing to non-block devices.
2130
2131 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2132
2133 * grub-core/kern/device.c (grub_device_open): Remove dead code.
2134
2135 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2136
2137 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
2138 All users updated.
2139
2140 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2141
2142 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
2143 UUID search command even if hints probing failed.
2144
2145 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2146
2147 * po/POTFILES.in: Regenerated.
2148
2149 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2150
2151 Speed-up video on fuloong.
2152
2153 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
2154 New function.
2155 (grub_pci_device_unmap_range): Handle non-cached address.
2156 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
2157 add direct_ptr.
2158 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
2159 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
2160 (grub_video_sis315pro_set_active_render_target): Removed.
2161 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
2162 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
2163 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
2164 sync caches.
2165 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
2166 New proto.
2167
2168 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2169
2170 * docs/grub.texi (Multi-boot manual config): New section.
2171
2172 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2173
2174 Avoid slow read-back from VRAM.
2175
2176 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
2177 Move from here ...
2178 * grub-core/video/fb/video_fb.c
2179 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
2180 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
2181 (front_target): Remove front_target. Add pages.
2182 (grub_video_fb_init): Skip setting front_pages.
2183 (grub_video_fb_fini): Likewise.
2184 (doublebuf_blit_update_screen): Use pages.
2185 (grub_video_fb_doublebuf_blit_init): Likewise.
2186 (doublebuf_pageflipping_init): Allocate offscreen buffer.
2187 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
2188 (grub_video_fb_setup): Prefer doublebuffing.
2189
2190 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2191
2192 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
2193 gzio.
2194
2195 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2196
2197 Add loongson tests.
2198
2199 * tests/util/grub-shell.in: Handle loongson.
2200 * tests/partmap_test.in: Add loongson to the list of platform using ATA
2201 drivers.
2202 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
2203 Reboot instead of shutdown if REBOOT is defined.
2204
2205 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2206
2207 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
2208 sized ports since unlike on real hardware qemu supports only 32-bit
2209 regs.
2210
2211 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2212
2213 * Makefile.util.def (grub-mkrescue): Enable on loongson.
2214 * util/grub-mkrescue.in: Handle loongson.
2215
2216 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
2217
2218 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
2219 Set is_part appropriately.
2220 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
2221 names. Canonicalize partition without full disk.
2222
2223 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2224
2225 Revert usb-quiesce since it's wrong.
2226
2227 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
2228 (grub_ofdisk_init): Don't do quiesce.
2229
2230 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2231
2232 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
2233 PowerMac workaround to Xserves as well.
2234 Information supplied by: Benjamin Herrenschmidt.
2235
2236 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2237
2238 Don't assume that beginning address is also the entry point on ppc.
2239
2240 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
2241 (grub_linux_boot): Use linux_entry.
2242 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
2243 (grub_linux_load64): Likewise.
2244
2245 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2246
2247 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
2248
2249 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2250
2251 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
2252 needlessly lose the console.
2253
2254 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2255
2256 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
2257 space.
2258
2259 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2260
2261 Remove non-functional EFI grub_get_rtc. Put a better fatal message
2262 than current grub_get_rtc() not implemented when booted with
2263 coreboot without TSC.
2264
2265 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
2266 Add machine/time.h to kernel headers on loongson.
2267 * grub-core/Makefile.core.def (kernel): Remove
2268 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
2269 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
2270 (grub_get_rtc): Likewise.
2271 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
2272 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
2273 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
2274 * grub-core/kern/i386/tsc.c (grub_tsc_init)
2275 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
2276 rather than installing known non-working time source.
2277 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
2278 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
2279 * include/grub/time.h: Don't include machine/time.h.
2280 * include/grub/efi/time.h: Removed.
2281 * include/grub/i386/efi/time.h: Likewise.
2282 * include/grub/i386/ieee1275/time.h: Likewise.
2283 * include/grub/powerpc/ieee1275/time.h: Likewise.
2284 * include/grub/sparc64/ieee1275/time.h: Likewise.
2285 * include/grub/x86_64/efi/time.h: Likewise.
2286
2287 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2288
2289 Remove dot on i and j when combining with above diacritics.
2290
2291 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
2292 value.
2293 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
2294 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
2295 with dotless variants when any combining above is present.
2296
2297 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2298
2299 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
2300 text and not binary.
2301
2302 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2303
2304 Stop polling as soon as we have the packet we were waiting for.
2305
2306 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
2307 All users updated.
2308 * grub-core/net/arp.c (have_pending): New var.
2309 (pending_req): Likewise.
2310 (grub_net_arp_send_request): Fill pending_req and use have_pending as
2311 stop indicator.
2312 (grub_net_arp_receive): Set have_pending.
2313 * grub-core/net/dns.c (recv_data): New field stop.
2314 (recv_hook): Set stop.
2315 (grub_net_dns_lookup): Init stop and use as stop condition.
2316 * grub-core/net/http.c (http_establish): Use headers_recv as stop
2317 condition.
2318 * grub-core/net/net.c (grub_net_poll_cards): New argument
2319 stop_condition. Stop when it goes true.
2320 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
2321 indicator.
2322 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
2323
2324 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2325
2326 Keep TX and RX buffers on EFI rather than always allocate new ones.
2327
2328 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
2329 card. All users updated.
2330 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
2331 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
2332 (get_card_packet): Likewise.
2333 (grub_efinet_findcards): Init new fields.
2334
2335 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2336
2337 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
2338 compilation error on sparc64.
2339
2340 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2341
2342 Use ITC on IA64 rather than broken routine based on daytime.
2343
2344 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
2345 ia64.
2346 (grub_get_rtc) [__ia64__]: Likewise.
2347 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
2348 (get_itc): New function.
2349 (grub_rtc_get_time_ms): Likewise.
2350 (grub_machine_init): Calibrate ITC.
2351 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
2352 Keep only on non-ia64. Don't export since it's broken and used only
2353 if TSC is unavailable.
2354
2355 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2356
2357 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
2358 even if it's used.
2359 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
2360 Skip if parent is unused.
2361
2362 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2363
2364 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
2365
2366 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2367
2368 Fix wildcard escaping.
2369
2370 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
2371 * grub-core/script/execute.c (wildcard_escape): .. to here.
2372 Don't escape dot.
2373 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
2374 * grub-core/script/execute.c (wildcard_unescape): .. to here.
2375 Don't escape dot.
2376 * grub-core/script/execute.c (gettext_append): Always escape.
2377 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
2378 * grub-core/script/yylex.l: Don't cut away the escaping.
2379 * tests/grub_script_echo1.in: Add tests with wildcard.
2380
2381 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2382
2383 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
2384 (ftdi_hw_configure): Likewise.
2385 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
2386 define.
2387 (real_config): Handle 1.5 stop bits.
2388 (pl2303_hw_configure): Likewise.
2389
2390 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2391
2392 * Makefile.am: Add ppc linux bootcheck.
2393 * grub-core/tests/boot/linux-ppc.cfg: New file.
2394 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
2395
2396 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2397
2398 * tests/grub_script_expansion.in: Skip network protocols.
2399
2400 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2401
2402 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
2403
2404 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2405
2406 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
2407 --rom-directory.
2408 Add -graft-points.
2409
2410 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2411
2412 ESCC serial driver for conducting sautomated tests in qemu.
2413 Not tested on real hardware.
2414
2415 * include/grub/serial.h (grub_serial_port): New field escc_desc.
2416 * grub-core/term/ieee1275/escc.c: New file.
2417 * grub-core/Makefile.core.def (escc): New module.
2418
2419 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2420
2421 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
2422 invalid on error.
2423 (serial_hw_fetch): Don't read invalid handle.
2424 (serial_hw_put): Don't write into invalid handle.
2425
2426 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2427
2428 Add a 1.5 stop bits value.
2429
2430 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
2431 * include/grub/serial.h (grub_serial_stop_bits_t): Add
2432 GRUB_SERIAL_STOP_BITS_1_5.
2433
2434 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2435
2436 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
2437 value rather than let it uninited.
2438
2439 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2440
2441 * grub-core/commands/wildcard.c (+check_file): New function.
2442 (wildcard_expand): Don't expand to non-existing files, expand with
2443 suffix and not attempt to expand if not needed.
2444
2445 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2446
2447 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
2448 out of partitions containing other partitions.
2449
2450 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2451
2452 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
2453 on some qemu versions with GRUB.
2454
2455 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
2456 define.
2457 (grub_openbsd_bootarg_pcibios): New struct.
2458 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
2459 Add PCIINFO.
2460
2461 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2462
2463 * tests/util/grub-shell.in: Trim firmware output on EFI.
2464
2465 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2466
2467 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
2468 and coreboot since it's already in kernel.
2469
2470 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2471
2472 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
2473 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2474 to here. New return value start. All users updated.
2475 Recursively scan linear mappings.
2476 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
2477 proto.
2478 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
2479 Use grub_util_get_dm_node_linear_info.
2480 * util/getroot.c (convert_system_partition_to_system_disk): Use
2481 grub_util_info rather than grub_dprintf.
2482 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
2483
2484 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2485
2486 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
2487
2488 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
2489 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
2490
2491 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2492
2493 * include/grub/types.h (grub_set_unaligned64): New function.
2494 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
2495 (setup): Likewise.
2496
2497 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2498
2499 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
2500 (grub_ofdisk_fini): Quiesce USB devices.
2501
2502 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2503
2504 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
2505 caches.
2506
2507 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2508
2509 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
2510
2511 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2512
2513 * grub-core/disk/pata.c (grub_pata_pio_read)
2514 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
2515 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
2516
2517 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2518
2519 Extend automated tests to qemu-mips.
2520
2521 * Makefile.am: reorganise tests and enable qemu-mips.
2522 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
2523 * grub-core/tests/boot/linux.init-mips.S: New file.
2524 * tests/partmap_test.in: Handle ata0 disks.
2525 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
2526 non-pc i386.
2527
2528 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2529
2530 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
2531 ia64.
2532 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
2533 quotes while on it.
2534
2535 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2536
2537 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
2538 (grub_halt): Likewise.
2539 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
2540
2541 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2542
2543 * grub-core/term/serial.c (grub_serial_register)
2544 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
2545 the behaviour in line with x86 platforms.
2546
2547 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2548
2549 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
2550 (grub_ata_strncpy): Likewise.
2551 (grub_ata_identify): Add missing byteswaps.
2552
2553 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2554
2555 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
2556 byte-swap.
2557 (screen_read_char): Likewise.
2558 (grub_vga_text_cls): Likewise.
2559
2560 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2561
2562 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
2563 filenames.
2564 (make_file_path): Likewise.
2565
2566 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2567
2568 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
2569 machines.
2570 Tested by: Paulo Flabiano Smorigo.
2571 Crucial information about API supplied by: Coleen <Last name unknown>.
2572 Reviewed by: Coleen <Last name unknown>.
2573
2574 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2575
2576 * util/grub-mkimage.c: Disable -Wcast-align.
2577
2578 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2579
2580 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
2581 as they are fatal.
2582
2583 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2584
2585 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
2586
2587 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2588
2589 * util/grub-probe.c (escape_of_path): Fix double free.
2590
2591 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2592
2593 * grub-core/commands/videoinfo.c (hook): Show pitch.
2594
2595 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2596
2597 * util/grub.d/20_linux_xen.in: Skip xen-syms.
2598
2599 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2600
2601 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
2602 (probe): Add ieee1275 to OFW devices.
2603
2604 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2605
2606 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
2607
2608 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2609
2610 Handle IBM OFW path.
2611
2612 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
2613 available.
2614 (of_path_of_scsi): Handle vdevice.
2615
2616 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2617
2618 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
2619 Allocate in multiples of 16 to avoid adding a few bytes free region the
2620 windows bugs upon.
2621
2622 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2623
2624 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
2625 Allocate in multiples of 16 to avoid adding a few bytes free region the
2626 windows bugs upon.
2627 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
2628
2629 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2630
2631 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
2632 resolutions.
2633 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
2634 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
2635
2636 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
2637
2638 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
2639
2640 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2641
2642 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
2643 resulted in \\ at the end of the line.
2644
2645 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2646
2647 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
2648 (grub_parser_cmdline_state): Likewise.
2649 (grub_parser_split_cmdline): Likewise.
2650
2651 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2652
2653 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
2654 /dev/root and /dev/dm-*.
2655
2656 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2657
2658 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
2659 fix partially stale display.
2660
2661 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2662
2663 * grub-core/normal/menu_entry.c (backward_char): Use right line for
2664 substraction.
2665
2666 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2667
2668 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
2669 Fix MBR remapping workaround.
2670 (grub_util_biosdisk_read) [__linux__]: Likewise.
2671
2672 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
2673
2674 * util/grub-install.in: Check for ieee1275 and not ieee1276.
2675
2676 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2677
2678 * configure.ac: Bump to beta6.
2679
2680 2012-05-31 Christer Weinigel <christer@weinigel.se>
2681
2682 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
2683
2684 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2685
2686 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
2687 (grub_cmd_linux): Likewise.
2688
2689 2012-05-31 Christer Weinigel <christer@weinigel.se>
2690
2691 Fix EHCI low-speed.
2692
2693 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
2694 (GRUB_EHCI_MULT_TWO): Likewise.
2695 (GRUB_EHCI_MULT_THREE): Likewise.
2696 (GRUB_EHCI_CMASK_MASK): New enum value.
2697 (GRUB_EHCI_SMASK_MASK): Likewise.
2698 (GRUB_EHCI_CMASK_OFF): Likewise.
2699 (GRUB_EHCI_SMASK_OFF): Likewise.
2700 (grub_ehci_pci_iter): Enable periodic schedule.
2701 (grub_ehci_parse_notrun): Likewise.
2702 (grub_ehci_restore_hw): Likewise.
2703 (grub_ehci_setup_qh): Set flags for low speed transfers.
2704 (grub_ehci_find_qh): Use periodic list for low speed.
2705 (grub_ehci_setup_transfer): Check periodic queue as well.
2706 (grub_ehci_check_transfer): Likewise.
2707 (grub_ehci_cancel_transfer): Cancel periodic transfer.
2708
2709 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2710
2711 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
2712 parameter is used.
2713
2714 2012-05-31 Peter Jones <pjones@redhat.com>
2715
2716 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
2717 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
2718 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
2719
2720 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2721
2722 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
2723 uninited variable. Allocate at least setup_sects.
2724
2725 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2726
2727 Fix handling of EFI with big memory maps.
2728
2729 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
2730 (real_mode_mem): Likewise.
2731 (real_mode_target): Likewise.
2732 (real_mode_pages): Likewise.
2733 (prot_mode_pages): Likewise.
2734 (linux_params): New var.
2735 (linux_cmdline): Likewise.
2736 (free_pages): Don't set real mode variables.
2737 (allocate_pages): Don't allocate real mode memory.
2738 (grub_e820_add_region): Remove the limit.
2739 (grub_linux_boot): Allocate and copy real mode memory.
2740 (grub_linux_unload): Free linux_cmdline.
2741 (grub_cmd_linux): Use temporary storage for parameters.
2742 (grub_cmd_initrd): Likewise.
2743 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
2744 (linux_kernel_params): Make it 1K big.
2745
2746 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2747
2748 * Makefile.util.def: Remove -Wno-format.
2749 * grub-core/Makefile.core.def: Likewise.
2750
2751 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2752
2753 * tests/cmp_unit_test.c: Add missing failure message.
2754 * tests/example_unit_test.c: Likewise.
2755 * tests/printf_unit_test.c: Likewise.
2756
2757 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2758
2759 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
2760 relaxation of protective MBR requirements.
2761
2762 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2763
2764 * configure.ac: Add condition for COND_HOST_XNU.
2765 * Makefile.util.def (10_xnu): New script.
2766 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
2767
2768 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2769
2770 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
2771 objconv bug.
2772
2773 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2774
2775 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
2776 Binary on other platforms stays identical.
2777
2778 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2779
2780 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
2781 Apple.
2782
2783 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2784
2785 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
2786
2787 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2788
2789 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
2790 rather than defining size_t ourselves to avoid conflict.
2791
2792 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2793
2794 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
2795 initialisation to avoid __bzero reference.
2796
2797 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2798
2799 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
2800 version.
2801 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
2802 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
2803 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
2804 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
2805 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
2806
2807 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2808
2809 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
2810 * grub-core/kern/misc.c: Likewise.
2811 * grub-core/loader/i386/xnu.c: Likewise.
2812 * include/grub/i386/tsc.h: Likewise.
2813 * include/grub/symbol.h: Likewise.
2814
2815 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2816
2817 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
2818 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
2819 on older compiler.
2820
2821 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2822
2823 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2824 Implement Apple flavour.
2825 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
2826
2827 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2828
2829 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
2830 (memmove) [__APPLE__]: Likewise.
2831 (memcpy) [__APPLE__]: Likewise.
2832 (memset) [__APPLE__]: Likewise.
2833 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
2834 (memmove) [__APPLE__]: Likewise.
2835 (memcpy) [__APPLE__]: Likewise.
2836 (memset) [__APPLE__]: Likewise.
2837
2838 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2839
2840 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
2841 dependency discard.
2842
2843 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2844
2845 * grub-core/normal/main.c (read_config_file): Provide config_file and
2846 config_directory.
2847 * util/grub.d/41_custom.in: Use config_directoy when available.
2848
2849 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2850
2851 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
2852 (grub_bfs_dir): Likewise.
2853
2854 2012-05-27 Peter Jones <pjones@redhat.com>
2855
2856 The old code gives arguments to a printf function which can't work
2857 correctly, and the compiler complains.
2858
2859 * grub-core/tests/example_functional_test.c (example_test): Add
2860 missing text.
2861 * grub-core/tests/lib/test.c (add_failure): Rewrite.
2862 * include/grub/test.h (grub_test_assert_helper): New declaration.
2863 (grub_test_assert): Use grub_test_assert_helper.
2864
2865 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2866
2867 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
2868 (exfctest): ... this to avoid overlong filenames.
2869 All users updated.
2870
2871 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2872
2873 Handle "." and ".." on squashfs.
2874
2875 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
2876 Make inode numbers into stack.
2877 (grub_squash_read_symlink): Use stack.
2878 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
2879 (make_root_node): Fill stack.
2880 (grub_squash_open): Use stack.
2881
2882 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2883
2884 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
2885 freeing.
2886
2887 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2888
2889 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
2890 stderr on test calls.
2891
2892 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2893
2894 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
2895
2896 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2897
2898 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
2899
2900 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2901
2902 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
2903 "..".
2904
2905 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2906
2907 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
2908 (grub_hfsplus_iterate_dir): Add "." and "..".
2909
2910 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2911
2912 * grub-core/fs/cpio.c (canonicalize): Handle "..".
2913 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
2914
2915 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2916
2917 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
2918 (find_path): Handle "." and "..".
2919
2920 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2921
2922 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
2923 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
2924 (grub_affs_iterate_dir): Handle hardlinks.
2925
2926 2012-05-26 Matthew Garrett <mjg@redhat.com>
2927
2928 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
2929 (grub_efi_console_fini): Likewise.
2930 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
2931 (grub_video_gop_fill_mode_info): Rename to ...
2932 (grub_video_gop_fill_real_mode_info): ... this.
2933 (grub_video_gop_fill_mode_info): New function.
2934 (grub_video_gop_setup): Setup double framebuffer.
2935 (grub_video_gop_get_info_and_fini): Use original framebuffer.
2936 Free offscreen.
2937 (grub_video_gop_swap_buffers): Copy framebuffer.
2938 (grub_video_gop_fini): Free offscreen buffer.
2939 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
2940 New enum.
2941 (grub_efi_gop_blt_pixel): New struct.
2942
2943 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2944
2945 * gentpl.py: Remove error disabling for objconv.
2946
2947 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2948
2949 * configure.ac: Remove -Wunitialized as it's not available on older
2950 compilers.
2951
2952 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2953
2954 Fix extent overflow comparator.
2955
2956 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
2957 (grub_hfsplus_read_block): Set type.
2958 (grub_hfsplus_cmp_extkey): Compare type.
2959
2960 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
2961
2962 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
2963
2964 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2965
2966 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
2967 than 0.
2968
2969 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2970
2971 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
2972 (dejavu_bold_14.pf2): New target.
2973
2974 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2975
2976 * configure.ac: Fix djvu font detection.
2977
2978 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2979
2980 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
2981 ext* instead of ext2.
2982
2983 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2984
2985 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
2986 name with \0.
2987
2988 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
2989
2990 * docs/grub-dev.texi: Remove dot from .png.
2991
2992 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2993
2994 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
2995 protective entry in any slot.
2996 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
2997 if protective entry is found in any slot.
2998
2999 Protective entry in non-first slot make no sense but is a widespread
3000 brain damage.
3001
3002 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3003
3004 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
3005
3006 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3007
3008 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
3009 with old reiserfs.
3010 (grub_reiserfs_open): Don't free root.
3011
3012 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3013
3014 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
3015 after freeing for safety.
3016
3017 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3018
3019 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
3020 Reported by: Jordan Uggla.
3021
3022 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
3023
3024 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
3025 actual implementation. Specifically, clarify that the grub menu will
3026 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
3027 passed.
3028
3029 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
3030
3031 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
3032 of r0.
3033
3034 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3035
3036 Remove unjustified hard dependency of normal.mod on gfxterm.
3037
3038 * include/grub/term.h (grub_term_output): New member fullscreen.
3039 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
3040 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
3041 (grub_gfxterm): Set .fullscreen.
3042 * grub-core/normal/menu.c (menu_init): Use fullscreen.
3043 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
3044
3045 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3046
3047 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
3048 mentioning possible problems with non-ASCII (non-compliant) ISOs.
3049 Mention case-insensitive AFFS, SFS and JFS.
3050
3051 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3052
3053 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
3054
3055 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3056
3057 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3058 a bad FS.
3059
3060 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3061
3062 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
3063 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
3064
3065 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3066
3067 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
3068 (grub_jfs_mount): Fill caseins.
3069 (grub_jfs_find_file): Respect caseins.
3070
3071 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3072
3073 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
3074 through UTF-16.
3075
3076 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3077
3078 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
3079 New argument origpath. All users updated.
3080
3081 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3082
3083 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
3084 (read_attr): Ensure that we read start of possibly compressed block.
3085
3086 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3087
3088 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
3089 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
3090 All users updated.
3091
3092 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3093
3094 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
3095 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
3096 (dejavu.pf2): Replace with ...
3097 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
3098 this.
3099
3100 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3101
3102 * util/grub.d/20_linux_xen.in: Add missing line.
3103
3104 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3105
3106 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
3107 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
3108 (grub_utf16_to_utf8): Likewise.
3109
3110 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3111
3112 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
3113 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
3114 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3115 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
3116 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
3117 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
3118
3119 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3120
3121 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3122 a bad FS.
3123
3124 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3125
3126 * grub-core/fs/udf.c (read_string): Bail out on size=0.
3127 (grub_udf_read_symlink): Handle read_string failure.
3128
3129 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3130
3131 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
3132 comment.
3133
3134 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3135
3136 Fix handling of UDF symlinks.
3137
3138 * grub-core/fs/udf.c (read_string): New argument outbuf.
3139 All users updated.
3140 (grub_ufs_read_symlink): Rename to ...
3141 (grub_udf_read_symlink): ... this. All users updated.
3142 Handle symlinks with more than one component.
3143
3144 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3145
3146 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
3147 symlinks. Replace leading colon with a slash.
3148
3149 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3150
3151 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
3152 filename.
3153
3154 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3155
3156 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
3157 match in inner node.
3158
3159 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3160
3161 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
3162 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
3163 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
3164 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
3165 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
3166 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
3167 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
3168 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
3169 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
3170
3171 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3172
3173 Use grub-probe and not cmp to check that disk is empty.
3174
3175 * util/grub-install.in: Use grub-probe for zero-check.
3176 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
3177 (probe): Handle PRINT_ZERO_CHECK.
3178 (argp_parser): Handle -t zero_check.
3179
3180 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3181
3182 Flush block cache on adding disk to device map.
3183
3184 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
3185 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
3186 adding.
3187 (read_device_map): Likewise.
3188 (open_device): Flush on opening.
3189
3190 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3191
3192 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
3193 (handle_symlink): Fix off-by-one error.
3194 Canonicalize the target.
3195 (grub_cpio_dir): Canonicalize the name.
3196 Fix memory leak.
3197 Set directory.
3198 (grub_cpio_open): Canonicalize the name.
3199
3200 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3201
3202 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
3203 handling.
3204
3205 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3206
3207 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
3208 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
3209
3210 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3211
3212 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
3213 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3214 All users updated.
3215
3216 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3217
3218 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
3219 counterpart.
3220
3221 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3222
3223 Fix UFS1 big file support.
3224
3225 * grub-core/fs/ufs.c (INODE): Removed.
3226 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
3227 64-bit.
3228 (INODE_MODE): Simplify.
3229 (grub_ufs_inode): Use uint64_t for size and not int64_t.
3230 (grub_ufs_lookup_symlink): Don't use INODE.
3231
3232 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3233
3234 Fix minixfs with non-power-of-two blocks since it's supported by minix.
3235
3236 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
3237 (grub_minix_data): Replace log_block_size with block_size.
3238 (grub_minix_read_file): Use block_size but avoid 64-bit division.
3239 (grub_minix_mount): Fill block_size.
3240
3241 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3242
3243 * configure.ac: Bump to beta5.
3244
3245 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3246
3247 Fix wrapped HFS+ handling.
3248
3249 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
3250 blocks_start. All users updated.
3251 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
3252 wrapping offset.
3253 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
3254
3255 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3256
3257 Fix long symlinks on reiserfs.
3258
3259 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
3260 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
3261 (grub_reiserfs_iterate_dir): Save size for non-directories.
3262 (grub_reiserfs_open): Don't reread stat block as we already know the
3263 size.
3264 (grub_reiserfs_read): Split into...
3265 (grub_reiserfs_read_real): ... and ...
3266 (grub_reiserfs_read): ...this.
3267
3268 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3269
3270 Fix non-indexed JFS.
3271
3272 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
3273 (grub_jfs_data): New field namecomponentlen.
3274 (grub_jfs_mount): Fill namecomponentlen.
3275 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
3276
3277 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3278
3279 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
3280 * tests/grub_script_echo1.in: Add tests.
3281
3282 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3283
3284 * util/grub-install.in: Ignore empty devicetree directory.
3285
3286 2012-05-08 Bean <bean123ch@gmail.com>
3287
3288 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
3289 All users updated.
3290 (free_rsm): Free header as well.
3291 (free_old_fragments): Fix memory leak.
3292 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
3293 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
3294 (destroy_pq): Likewise.
3295 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
3296
3297 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3298
3299 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
3300 resulting hash as a precaution.
3301
3302 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3303
3304 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
3305 '_' in variable names.
3306 * grub-core/net/net.c (grub_net_network_level_interface_register):
3307 Likewise.
3308
3309 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3310
3311 Fix AFFS with non-512B blocks.
3312
3313 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
3314 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
3315 (grub_affs_data): Replace blocksize with log_blocksize.
3316 (grub_affs_read_block): Fix non-512B blocks.
3317 (grub_affs_read_symlink): Likewise.
3318 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
3319 (grub_affs_read): Fix non-512B blocks.
3320 (grub_affs_label): Likewise.
3321 (grub_affs_mtime): Likewise.
3322 (grub_affs_mount): Fix block detection routine.
3323
3324 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3325
3326 Add filesystem mtime to AFFS.
3327
3328 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
3329 (aftime2ctime): New function.
3330 (grub_affs_dir): Use aftime2ctime.
3331 (grub_affs_label): Fix return value.
3332 (grub_affs_mtime): New function.
3333 (grub_affs_fs): Add mtime.
3334
3335 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3336
3337 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
3338 UTF-8.
3339
3340 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3341
3342 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
3343 UTF-8.
3344
3345 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3346
3347 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
3348
3349 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3350
3351 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
3352 flags.
3353 (FLAGS_CASE_SENSITIVE): New enum value.
3354 (cache_entry): New struct.
3355 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
3356 cache_size and cache.
3357 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
3358 Add log_blocksize and fshelp_flags.
3359 (grub_sfs_read_extent): Handle non-512 blocks.
3360 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
3361 (grub_sfs_read_file): Handle non-512 blocks.
3362 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
3363 fshelp_flags.
3364 (grub_sfs_read_symlink): Handle non-512 blocks.
3365 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
3366 (grub_sfs_dir): Free cache.
3367 (grub_sfs_close): Likewise.
3368
3369 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3370
3371 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
3372 filesystems.
3373
3374 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3375
3376 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
3377
3378 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3379
3380 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
3381
3382 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3383
3384 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
3385 (grub_sfs_read_extent): Likewise.
3386 (grub_sfs_read_block): Likewise.
3387 (grub_sfs_mount): Likewise.
3388 (grub_sfs_iterate_dir): Likewise.
3389 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
3390 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
3391
3392 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3393
3394 Fix errors on compressed NTFS with 512B clusters.
3395
3396 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
3397 types.
3398 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
3399 not 0.
3400 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
3401 Relax check for inline extents.
3402 (ntfscomp): Return correct -1 on error and not 0.
3403
3404 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3405
3406 * util/grub-install.in: Fix handling of prefix containing spaces.
3407
3408 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3409
3410 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
3411 (grub_squash_read_data): Fix offset byte-swapping.
3412
3413 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3414
3415 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
3416 per common usage and preffered in several parts of code.
3417 (grub_memcmp): Likewise.
3418 (grub_strncmp): Likewise.
3419 * include/grub/misc.h (grub_strcasecmp): Likewise.
3420 (grub_strncasecmp): Likewise.
3421 * Makefile.util.def (cmp_test): New test.
3422 (grub_script_strcmp): Likewise.
3423 * tests/cmp_unit_test.c: New file.
3424 * tests/grub_script_strcmp.in: Likewise.
3425 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
3426
3427 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3428
3429 * include/grub/pci.h: Move enums into no-asm part.
3430
3431 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3432
3433 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
3434
3435 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3436
3437 * util/getroot.c (find_hurd_root_device): Try to make error message
3438 and comments to translators clearer.
3439
3440 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3441
3442 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
3443
3444 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3445
3446 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
3447 btrfs.
3448
3449 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3450
3451 * docs/grub.cfg: Update.
3452
3453 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3454
3455 * docs/grub.texi (PXE): Remove not present variables.
3456
3457 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3458
3459 * grub-core/net/net.c (defserver_set_env): New function.
3460 (defserver_get_env): Likewise.
3461 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
3462
3463 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3464
3465 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
3466 entries.
3467
3468 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3469
3470 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
3471 * grub-core/kern/emu/hostdisk.c: Likewise.
3472
3473 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3474
3475 Handle hurd userspace partitions.
3476
3477 * util/getroot.c (find_hurd_root_device): New function.
3478 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
3479
3480 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3481
3482 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
3483 names.
3484 Reported by: Bastian Blank.
3485
3486 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3487
3488 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
3489 crossing page boundary.
3490
3491 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3492
3493 Fix B-tree search in BFS, especially in presence of non-ASCII
3494 characters.
3495
3496 * grub-core/fs/bfs.c (bfs_strcmp): New function.
3497 (find_in_b_tree): Use standard bsearch + btree algorithm.
3498
3499 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3500
3501 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
3502 and so on.
3503
3504 2012-05-03 Matthew Garrett <mjg@redhat.com>
3505 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3506
3507 Suspend broadcom cards in order to stop their DMA.
3508
3509 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
3510 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
3511 (pci): Don't build on x86 EFI.
3512 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
3513 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
3514 New function.
3515 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
3516 stop_broadcom if running on EFI.
3517 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
3518 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
3519 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
3520 (grub_pci_find_capability): New proto.
3521
3522 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3523
3524 * docs/grub.texi: Remove dot from the extension as it apparently
3525 doesn't work with some makeinfo versions.
3526
3527 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3528
3529 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
3530 with GRUB expectance.
3531
3532 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3533
3534 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
3535
3536 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3537
3538 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
3539 zero after directory block since last entry may be not 0-terminated if
3540 it ends on block boundary. Use continue instead of if spanning whole
3541 loop.
3542
3543 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3544
3545 Support 4K sectors UDF inline files.
3546
3547 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
3548 (grub_udf_extended_file_entry): Likewise.
3549 (grub_fshelp_node): Name the anonymous union. Put block at the end.
3550 All users updated.
3551 (get_fshelp_size): New function.
3552 (grub_udf_read_icb): Read whole block.
3553 (grub_udf_iterate_dir): Likewise.
3554 (grub_udf_dir): Likewise.
3555 (grub_udf_open): Likewise.
3556
3557 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3558
3559 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
3560
3561 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3562
3563 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
3564 inline symlinks in addition to workaround.
3565
3566 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3567
3568 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
3569
3570 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3571
3572 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
3573
3574 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3575
3576 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
3577
3578 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3579
3580 Fix reiserfs big seek times.
3581
3582 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
3583 exact. All users updated.
3584 (grub_reiserfs_read): Use nearest btree search for seeking.
3585 Fix return value on error.
3586
3587 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3588
3589 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
3590 entries.
3591 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
3592 * docs/grub.texi: Update menuentry description.
3593
3594 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3595
3596 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
3597 crash when embedding onto filesystem.
3598
3599 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3600
3601 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
3602 name.
3603
3604 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3605
3606 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
3607
3608 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3609
3610 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
3611 commit.
3612
3613 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3614 2012-05-01 Bean <bean123ch@gmail.com>
3615
3616 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
3617
3618 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3619
3620 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
3621 Special behaviour for len = 0 to read whole file isn't used anywhere and
3622 can cause buffer ovewrflows in several places.
3623
3624 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3625
3626 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
3627
3628 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3629
3630 Handle RAIDZ on non-512B sectors.
3631
3632 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
3633 max_children_ashift.
3634 (fill_vdev_info_real): Fill max_children_ashift.
3635 (read_device): Use max_children_ashift.
3636
3637 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3638
3639 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
3640
3641 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3642
3643 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
3644 disk names.
3645 * docs/grub.texi: Update device.map parts.
3646
3647 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3648
3649 Don't scan into non-diskfilter devices having diskfilter names.
3650
3651 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
3652 (scan_disk): New argument accept_diskfilter. Fix recursion depth
3653 handling.
3654 (scan_disk_hook): New function.
3655
3656 2012-04-29 Bean <bean123ch@gmail.com>
3657
3658 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
3659 allocation.
3660
3661 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
3662
3663 * configure.ac: Detect starfield theme font path
3664 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
3665
3666 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3667
3668 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
3669 geometry on serial consoles.
3670
3671 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3672
3673 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
3674 because of network consoles.
3675
3676 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3677
3678 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
3679 handling.
3680
3681 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3682
3683 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
3684 falls on Q syndrom.
3685
3686 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3687
3688 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
3689 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
3690
3691 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3692
3693 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
3694 Allocate at lest 8192 for temporary buffer as required for lzo.
3695
3696 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3697
3698 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
3699 to cluster_bits, since it's already added in.
3700 (grub_fat_read_data): Likewise.
3701
3702 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3703
3704 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
3705 as long as cluster size is multiple of 512 bytes.
3706
3707 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3708
3709 * util/grub-mkrescue.in: Fix locale directory.
3710
3711 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3712
3713 * grub-core/kern/emu/hostdisk.c (map): Make static.
3714
3715 2012-04-23 Bean <bean123ch@gmail.com>
3716
3717 * util/grub-fstest.c (fstest): Add missing break.
3718
3719 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3720
3721 Fix hurd build.
3722
3723 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
3724 not define nr variable.
3725 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
3726 find_root_devices_from_poolname, find_root_devices_from_libzfs,
3727 grub_find_device): Do not define.
3728
3729 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3730
3731 Fix kfreebsd compile and behaviour.
3732
3733 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
3734 format-security.
3735 * util/getroot.c: Fix wait.h include.
3736 (grub_guess_root_devices): Error if grub_find_device fails.
3737 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
3738 (grub_util_get_dev_abstraction): Likewise.
3739 (grub_util_pull_device): Likewise.
3740 (grub_util_get_grub_dev): Likewise.
3741 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
3742
3743 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3744
3745 Fix and unify wholedisk detection.
3746
3747 * util/getroot.c (convert_system_partition_to_system_disk): New argument
3748 is_part. All users updated.
3749 (device_is_wholedisk): Removed.
3750 (grub_util_biosdisk_get_grub_dev): Use is_part.
3751
3752 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3753
3754 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
3755 mode.
3756
3757 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3758
3759 * configure.ac: Bump to beta4.
3760
3761 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3762
3763 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
3764 --fs-uuid --set UUID syntax.
3765
3766 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3767
3768 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
3769 disunification.
3770
3771 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3772
3773 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
3774
3775 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
3776
3777 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
3778
3779 2012-04-18 Mike Gilbert <floppym@gentoo.org>
3780
3781 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
3782
3783 2012-04-18 Bean <bean123ch@gmail.com>
3784
3785 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
3786 place.
3787
3788 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3789
3790 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
3791 users updated.
3792 (grub_util_biosdisk_read): Handle Linux partitions not exactly
3793 corresponding to GRUB partitions.
3794 (grub_util_biosdisk_write): Likewise.
3795
3796 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3797
3798 Scan mdraid before LVM.
3799
3800 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
3801 (grub_diskfilter_register_front): ... this.
3802 (grub_diskfilter_register_back): New function.
3803 All users of grub_diskfilter_register updated.
3804
3805 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3806
3807 * util/grub-install.in: Fix an automatic target detection bug.
3808
3809 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3810
3811 * util/grub-install.in: New option --efi-directory.
3812
3813 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3814
3815 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
3816 boot services if we have no other choice.
3817
3818 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3819
3820 * util/grub-mknetdir.in: Rename --override-directory to --directory and
3821 document it.
3822 * tests/util/grub-shell.in: Update to --directory.
3823
3824 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3825
3826 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
3827
3828 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3829
3830 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
3831 (grub_minix_read_file): Likewise.
3832 (grub_minix_read_inode): Likewise.
3833 (grub_minix_find_file): Likewise.
3834 (grub_minix_dir): Likewise.
3835
3836 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3837
3838 * util/grub-setup.c (setup): Fix partition handling and blocklist
3839 check.
3840
3841 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3842
3843 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
3844 redundant buggy overlap check.
3845
3846 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3847
3848 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
3849 and grub-mknetdir.
3850
3851 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3852
3853 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
3854 kh.loadflags on pre-2.00 kernels.
3855
3856 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3857
3858 Terminate UNDI and PXE before launching the payload to avoid problems
3859 with DMA.
3860
3861 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
3862 (grub_loader_flags): ... this. All users updated.
3863 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
3864 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
3865 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
3866 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
3867 function.
3868 (grub_pxe_restore): Likewise.
3869 (fini_hnd): New var.
3870 (GRUB_MOD_INIT): Register shutdown hook.
3871 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
3872 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
3873 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
3874 (grub_loader_set): Rename second argument to flags.
3875
3876 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3877
3878 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
3879 written bytes.
3880 (grub_get_num_of_utf8_bytes): New function.
3881 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
3882 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
3883 executing it.
3884 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
3885 (grub_ucs4_to_utf8): Change return type.
3886
3887 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3888
3889 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
3890 warning.
3891 * grub-core/fs/bfs.c (hop_level): Likewise.
3892 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
3893
3894 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3895
3896 * grub-core/lib/adler32.c: Recode due to license unclearness.
3897
3898 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3899
3900 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
3901 (test_header): Likewise.
3902
3903 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3904
3905 Fix --help formatting.
3906
3907 * util/grub-mkconfig_lib.in (print_option_help): New function.
3908 (grub_fmt): Likewise.
3909 * util/grub-install.in: Use print_option_help and grub_fmt.
3910 * util/grub-kbdcomp.in: Likewise.
3911 * util/grub-mkconfig.in: Likewise.
3912 * util/grub-mknetdir.in: Likewise.
3913 * util/grub-mkrescue.in: Likewise.
3914 * util/grub-mkstandalone.in: Likewise.
3915 * util/grub-reboot.in: Likewise.
3916 * util/grub-set-default.in: Likewise.
3917 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3918
3919 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3920
3921 * linguas.sh: Remove autogenerated *.po.
3922
3923 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3924
3925 * po/README: Move language fetcing to ...
3926 * linguas.sh: ... here.
3927 * po/README: Point to linguas.sh.
3928
3929 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3930
3931 * po/README: Exclude ko.po due to disclaimer problems.
3932
3933 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3934
3935 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
3936 len = 0.
3937 (grub_gettext_translate_real): Handle 0th string.
3938 (grub_gettext_translate): Ensure that "" isn't translated.
3939
3940 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3941
3942 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
3943 TRANSLATORS comment.
3944 (grub_diskfilter_print_partmap): Propagate changing of error into
3945 warning.
3946
3947 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3948
3949 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
3950 to uint64_t to prevent overflow.
3951 (grub_diskfilter_lv): Increase start_extent and extent_count
3952 to uint64_t to prevent overflow.
3953
3954 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3955
3956 * configure.ac: Increase version.
3957
3958 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3959
3960 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
3961
3962 * po/Rules-translit: New file.
3963 * po/arabic.sed: Likewise.
3964 * po/cyrillic.sed: Likewise.
3965 * po/greek.sed: Likewise.
3966 * po/hebrew.sed: Likewise.
3967 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
3968 * po/Makefile.in.in: Add extra_dist4.
3969
3970 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3971
3972 Handle big-endian minixfs (fixes minixfs tests on bigendian).
3973
3974 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
3975 modify names. Introduce MODE_BIGENDIAN.
3976 * grub-core/fs/minix_be.c: New file.
3977 * grub-core/fs/minix2_be.c: Likewise
3978 * grub-core/fs/minix3_be.c: Likewise.
3979 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
3980 minix3_be.
3981 * grub-core/Makefile.core.def (minix_be): New module.
3982 (minix2_be): Likewise.
3983 (minix3_be): Likewise.
3984
3985 2012-04-01 Felix <email@hamburg.de>
3986
3987 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
3988 (devs): Add MBP 2011.
3989
3990 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3991
3992 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
3993
3994 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3995
3996 * grub-core/normal/cmdline.c (print_completion): New field
3997 prompt_len.
3998 (grub_cmdline_get): Handle width properly.
3999
4000 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4001
4002 * grub-core/commands/lsacpi.c (options): Add missing terminator.
4003
4004 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4005
4006 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
4007 after 29th of February.
4008
4009 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4010
4011 Fix exfat endianness handling.
4012
4013 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
4014 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
4015 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
4016 Byte-swap utf16 when necessary.
4017 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
4018
4019 2012-03-31 Anton Blanchard <anton@samba.org>
4020 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4021
4022 Fix btrfs endianness handling.
4023
4024 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
4025 (lower_bound): Make root uint64_t. Use root in le.
4026 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
4027 (find_path): Fix template key init.
4028 (grub_btrfs_dir): Fix mtime byteswap.
4029 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
4030
4031 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4032
4033 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
4034 recursion_depth. Break infinite resursions. All users updated.
4035
4036 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4037
4038 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
4039 after free.
4040 Reported by: Peter Jones.
4041
4042 2012-03-31 Anton Blanchard <anton@samba.org>
4043
4044 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
4045 8 bit values.
4046
4047 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4048
4049 * util/grub-install.in: Fix nvram call for PreP.
4050
4051 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4052
4053 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
4054 the error when some elements are missing into a warning.
4055
4056 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4057
4058 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
4059
4060 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
4061
4062 * docs/grub.texi (Invoking grub-probe): New section.
4063 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
4064
4065 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
4066
4067 Fix tab and wide character handling in editor and menu.
4068
4069 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
4070 agglomerate control characters with combining marks.
4071 (bidi_line_wrap): Allow break on tab.
4072 (grub_unicode_get_comb_start): New function.
4073 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
4074 and tab correctly.
4075 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
4076 with a space.
4077 * grub-core/normal/term.c (print_ucs4_terminal): New argument
4078 fixed_tab_size. All users updated.
4079 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
4080 (grub_term_getcharwidth): Handle \t.
4081 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
4082 and copy.
4083
4084 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4085
4086 Handle big-endian mdraid.
4087
4088 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
4089 * grub-core/Makefile.core.def (mdraid09_be): New module.
4090 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
4091 rather than grub_le_to_cpu* and grub_cpu_to_le*.
4092 * grub-core/disk/mdraid_linux_be.c: New file.
4093
4094 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4095
4096 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
4097
4098 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4099
4100 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4101 missing quotes which caused confusion among translators.
4102
4103 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4104
4105 * util/grub-mkconfig_lib.in: Fix typo.
4106
4107 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4108
4109 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
4110 spaces.
4111 * tests/grub_script_leading_whitespace.in: New file.
4112 * Makefile.util.def (grub_script_leading_whitespace): New test.
4113
4114 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4115
4116 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
4117 to work.
4118
4119 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4120
4121 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
4122 starts with control character.
4123
4124 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4125
4126 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
4127 overflow.
4128 (grub_gdb_outbuf): Likewise.
4129
4130 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4131
4132 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
4133 zero terminator. Fixes a crash.
4134
4135 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4136
4137 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
4138 beyond 4 GiB.
4139 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
4140 images independently of preffered adderss field.
4141
4142 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4143
4144 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
4145 * grub-core/commands/regexp.c: Likewise.
4146 * grub-core/loader/i386/linux.c: Likewise.
4147 * grub-core/partmap/msdos.c: Likewise.
4148 * grub-core/script/execute.c: Likewise.
4149 * grub-core/term/gfxterm.c: Likewise.
4150
4151 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4152
4153 Add variable parsing in $"..." and fix several mismatches with bash.
4154
4155 * Makefile.util.def (grub_script_gettext): New test.
4156 * grub-core/script/execute.c (parse_string): New function.
4157 (gettext_append): Likewise.
4158 (grub_script_arglist_to_argv): Use gettext_append.
4159 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
4160 * tests/grub_script_gettext.in: New file.
4161
4162 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4163
4164 Fix handling of leading spaces in scripts.
4165
4166 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
4167 spaces.
4168 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
4169 other than skipping \r. All users updated.
4170 * tests/grub_script_echo1.in: Add space-related tests.
4171 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
4172
4173 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4174
4175 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
4176
4177 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4178
4179 * configure.ac: Bump up the version to beta2.
4180
4181 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4182
4183 Fix gettext reload bugs (e.g. inability to disable gettext
4184 once enabled).
4185
4186 * grub-core/gettext/gettext.c: Encapsulate all static variables in
4187 main_context and secondary_context. All functions updated.
4188 (grub_gettext_translate): Rename to ...
4189 (grub_gettext_translate_real): ... this. Return NULL on failed
4190 translate.
4191 (grub_gettext_translate): Handle secondary context.
4192 (grub_gettext_delete_list): Close file and zero-out the context.
4193 (grub_mofile_open): Don't call grub_gettext_delete_list.
4194 Don't close file.
4195 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
4196 if locale="" to avoid pointless error message.
4197 (grub_gettext_env_write_lang): Update lang even if load fails.
4198 Handle secondary context.
4199 (grub_gettext_reread_prefix): New function.
4200 (read_main): Likewise.
4201 (read_secondary): Likewise.
4202 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
4203 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
4204 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
4205 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
4206
4207 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4208
4209 * configure.ac: Decrease warning level to avoid spurious warnings and
4210 to be able to compile with GCC 4.2.
4211 * Makefile.util.def: Remove -Wno-error=logical-op.
4212
4213 2012-03-10 William Bittner <william.bittner@gmail.com>
4214
4215 * util/import_unicode.py: Add missing brackets around string for
4216 python 3 support.
4217
4218 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4219
4220 Fix efi chainloader on network root.
4221
4222 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
4223 network devices.
4224 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
4225 New function.
4226
4227 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4228
4229 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
4230 unused show_text member.
4231 * docs/grub.texi: Document "text" property.
4232
4233 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4234
4235 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
4236 in dprintf.
4237
4238 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4239
4240 Fix IMSM handling on Fedora.
4241
4242 * util/getroot.c (grub_util_is_imsm): New function.
4243 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
4244
4245 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4246
4247 * Makefile.am: Strip gold section.
4248 * conf/Makefile.common: Likewise.
4249 * gentpl.py: Likewise.
4250 * grub-core/Makefile.core.def: Likewise.
4251 * grub-core/genmod.sh.in: Likewise.
4252
4253 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4254
4255 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
4256 * util/grub.d/20_linux_xen.in: Likewise.
4257 Based on Debian patch.
4258
4259 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4260
4261 * util/grub.d/10_linux.in: Fix syntax error resulting in
4262 Richard Laager's patch.
4263 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
4264
4265 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4266
4267 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
4268 dependencies.
4269
4270 2012-03-10 Richard Laager <rlaager@wiktel.com>
4271
4272 * util/grub.d/10_linux.in: Fix ZFS root passing.
4273
4274 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4275
4276 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4277 * grub-core/commands/xnu_uuid.c: Likewise.
4278 * grub-core/loader/efi/appleloader.c: Likewise.
4279 * grub-core/script/execute.c: Likewise.
4280 * grub-core/script/main.c: Likewise.
4281 * util/grub-mkfont.c: Likewise.
4282
4283 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4284
4285 * util/grub-mkfont.c (options): Use more appropriate "select" that
4286 "set" for face index.
4287
4288 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4289
4290 * util/grub-editenv.c (options): Gettextize command summaries.
4291
4292 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4293
4294 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
4295 "out of memory" error messagge.
4296
4297 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4298
4299 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
4300 of diskfilter for diskfilter on diskfilter support.
4301
4302 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4303
4304 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
4305
4306 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4307
4308 * util/grub-install.in: Check for themes/starfield/theme.txt and not
4309 themes/starfield.
4310
4311 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4312
4313 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
4314
4315 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4316
4317 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
4318
4319 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4320
4321 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
4322 of error message.
4323
4324 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4325
4326 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
4327
4328 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4329
4330 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
4331 message.
4332 * util/grub-install.in: Fix and gettextize error message.
4333
4334 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4335
4336 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
4337 Gettextize.
4338 * util/grub-mount.c (options): Likewise.
4339
4340 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4341
4342 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
4343 gettextize.
4344 * grub-core/commands/search_wrap.c (options): Likewise.
4345
4346 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4347
4348 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
4349
4350 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4351
4352 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
4353 size calculation.
4354 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
4355 none is known.
4356
4357 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4358
4359 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
4360 "temporary" since it's used in identifier and is limited in space.
4361
4362 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4363
4364 * po/POTFILES.in: Regenerate. Include *.h since they contain
4365 translatable strings as well.
4366
4367 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4368
4369 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
4370 byte-swap on big-endian.
4371 Reported by: Lennart Sorensen
4372
4373 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
4374
4375 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
4376 (allocate_pages): Improve dprintf.
4377 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
4378 code32_start. Fill code32_start and kernel_alignment in params.
4379 (grub_cmd_initrd): Use prot_init_space.
4380
4381 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4382
4383 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
4384
4385 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4386
4387 * util/grub-install.in: Add missing dot at the end of sentence.
4388
4389 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4390
4391 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4392 * grub-core/commands/videotest.c: Likewise.
4393 * grub-core/loader/i386/linux.c: Likewise.
4394
4395 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4396
4397 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
4398 sentence.
4399 Reported by: Milo Casagrande.
4400
4401 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4402
4403 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
4404 * grub-core/commands/gptsync.c: Likewise.
4405 * grub-core/commands/hashsum.c: Likewise.
4406 * grub-core/commands/i386/pc/sendkey.c: Likewise.
4407 * grub-core/commands/legacycfg.c: Likewise.
4408 * grub-core/io/gzio.c: Likewise.
4409 * grub-core/net/net.c: Likewise.
4410 * grub-core/term/gfxterm.c: Likewise.
4411 * grub-core/term/terminfo.c: Likewise.
4412 * grub-core/tests/test_blockarg.c: Likewise.
4413 * grub-core/video/video.c: Likewise.
4414 * util/grub-install.in: Likewise.
4415 * util/grub-mkfont.c: Likewise.
4416
4417 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4418
4419 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
4420
4421 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4422
4423 * grub-core/commands/search_wrap.c (options): Fix a typo.
4424 Reported by: David Prévot.
4425
4426 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4427
4428 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
4429 description.
4430
4431 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4432
4433 * util/grub-script-check.c (main): Fix a syntax error message which was
4434 unclear.
4435
4436 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4437
4438 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
4439
4440 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4441
4442 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
4443 messages.
4444
4445 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4446
4447 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
4448 without argument.
4449 * util/grub-mount.c (options): Likewise.
4450
4451 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4452
4453 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
4454
4455 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4456
4457 * grub-core/net/http.c: Add TRANSLATORS comments.
4458 * grub-core/normal/cmdline.c: Likewise.
4459 * grub-core/normal/misc.c: Likewise.
4460 * grub-core/partmap/msdos.c: Likewise.
4461 * grub-core/parttool/msdospart.c: Likewise.
4462 * grub-core/script/execute.c: Likewise.
4463 * grub-core/script/main.c: Likewise.
4464 * grub-core/term/terminfo.c: Likewise.
4465 * grub-core/video/bitmap.c: Likewise.
4466 * util/grub-install.in: Likewise.
4467 * util/grub-mkimage.c: Likewise.
4468 * util/grub-mklayout.c: Likewise.
4469 * util/grub-setup.c: Likewise.
4470
4471 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4472
4473 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
4474 with similar messages in grub-fstest.
4475
4476 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4477
4478 * util/grub-install.in: Unify "option requires an argument" message
4479 with similar messages in other files.
4480 * util/grub-mkconfig.in: Likewise.
4481
4482 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4483
4484 * util/grub-set-default.in: Replace printf with gettext_printf (the
4485 string in in question is already translated from grub-reboot)
4486
4487 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4488
4489 * configure.ac: Bump up the version to beta1.
4490
4491 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4492
4493 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
4494 case when min_align = 0.
4495
4496 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4497
4498 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
4499 and fix a case when line_start overflows.
4500
4501 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4502
4503 * util/grub-reboot.in (usage): Mention id posibility.
4504 * util/grub-set-default.in (usage): Likewise.
4505
4506 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4507
4508 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
4509 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
4510 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
4511 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
4512 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
4513 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4514 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4515
4516 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4517
4518 * grub-core/commands/menuentry.c (options): Remove
4519 GRUB_ARG_OPTION_REPEATABLE.
4520 Reported by: Andreas Vogel
4521
4522 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
4523
4524 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
4525
4526 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
4527
4528 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
4529 error.
4530
4531 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4532
4533 Use sort -V by the idea of Georgi Georgiev.
4534
4535 * util/grub-mkconfig_lib.in (version_sort): New function.
4536 (version_test_numeric): Use version_sort.
4537
4538 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4539
4540 Use submenus in grub-mkconfig.
4541
4542 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
4543 * util/grub-mkconfig_lib.in (grub_quote): New function.
4544 (gettext_printf): Use gettext and not gettext_quoted to fix several
4545 messages.
4546 * util/grub.d/10_hurd.in: Use submenus.
4547 * util/grub.d/10_kfreebsd.in: Likewise.
4548 * util/grub.d/10_linux.in: Likewise.
4549 * util/grub.d/10_netbsd.in: Likewise.
4550 * util/grub.d/20_linux_xen.in: Likewise.
4551 * util/grub.d/30_os-prober.in: Likewise.
4552 * util/grub.d/10_illumos.in: Add missing quoting.
4553 * util/grub.d/10_windows.in: Likewise.
4554
4555 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4556
4557 Fix menu title instability bug.
4558
4559 * grub-core/commands/menuentry.c (options): New option --id.
4560 (grub_normal_add_menu_entry): New argument id. All users updated.
4561 (grub_cmd_menuentry): Handle --id.
4562 (grub_menu_init): Accept unknown arguments.
4563 * grub-core/normal/main.c (features): Add feature_menuentry_id and
4564 feature_menuentry_options.
4565 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
4566 saved_entry.
4567 (get_entry_number): Match with id as well.
4568 * include/grub/menu.h (grub_menu_entry): New member id.
4569 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
4570 * util/grub.d/00_header.in: Define menuentry_id_option.
4571 * util/grub.d/10_hurd.in: Define id.
4572 * util/grub.d/10_illumos.in: Likewise.
4573 * util/grub.d/10_kfreebsd.in: Likewise.
4574 * util/grub.d/10_linux.in: Likewise.
4575 * util/grub.d/10_netbsd.in: Likewise.
4576 * util/grub.d/10_windows.in: Likewise.
4577 * util/grub.d/20_linux_xen.in: Likewise.
4578 * util/grub.d/30_os-prober.in: Likewise.
4579
4580 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4581
4582 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
4583 "scope" with "body".
4584
4585 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4586
4587 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
4588 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
4589 prot_size and prot_file_size.
4590
4591 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4592
4593 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
4594 All users updated. If easily=1 require raid-5/-6 to be full.
4595 (is_node_readable): Likewise.
4596 (scan_devices): Scan incomplete but readable LVs at the end.
4597 (grub_diskfilter_memberlist): Pull missing devices.
4598 (insert_array): Skip scanning until device is complete or scan is
4599 done otherwise.
4600 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
4601 check.
4602 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
4603 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
4604
4605 2012-03-03 Matthew Garrett <mjg@redhat.com>
4606 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4607
4608 Avoid EFI boot services when loading Linux.
4609
4610 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
4611 avoid_efi_bootservices. All users updated.
4612 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
4613 argument avoid_efi_bootservices. All users updated.
4614 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
4615 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
4616 align, min_align, relocatable, prefered_address. All users updated.
4617 Allocate avoiding boot services if kernel is relocatable.
4618 (grub_cmd_linux): Check if kernel is relocatable.
4619 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
4620 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
4621 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
4622 avoid_efi_boot_services.
4623 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
4624 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
4625 (linux_kernel_params): Likewise.
4626
4627 2012-03-03 Matthew Garrett <mjg@redhat.com>
4628 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4629
4630 Use EDID on EFI.
4631
4632 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
4633 datasize_out.
4634 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
4635 modes. Set gop_handle.
4636 (grub_video_gop_get_edid): New function.
4637 (grub_gop_get_preferred_mode): Likewise.
4638 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
4639 (grub_video_efi_gop_adapter): Set .get_edid.
4640 * include/grub/efi/edid.h: New file.
4641 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
4642
4643 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4644
4645 * util/grub-install.in: Load efivars unconditionally.
4646
4647 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4648
4649 * po/Rules-piglatin: Change suffix from .po-update-en to
4650 .po-update-en-piglatin.
4651
4652 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4653
4654 Add a pig farm.
4655
4656 * po/piglatin.sed: New file.
4657 * po/en@piglatin.header: Likewise.
4658 * po/Rules-piglatin: Likewise.
4659 * po/README: Add en@piglatin to autogenerated languages.
4660
4661 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4662
4663 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
4664 "Command for ...".
4665 * grub-core/commands/hdparm.c (options): Use "Display" rather than
4666 "Check" since we don't check anything.
4667 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
4668 is 64-bit one.
4669 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
4670 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
4671 (grub_md_sha512_real): Likewise.
4672
4673 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4674
4675 * grub-core/commands/gptsync.c: Fix typographic quoting.
4676 * grub-core/commands/ieee1275/suspend.c: Likewise.
4677 * grub-core/commands/parttool.c: Likewise.
4678 * grub-core/commands/search_wrap.c: Likewise.
4679 * grub-core/commands/videoinfo.c: Likewise.
4680 * grub-core/gfxmenu/gui_label.c: Likewise.
4681 * grub-core/hello/hello.c: Likewise.
4682 * grub-core/kern/emu/main.c: Likewise.
4683 * grub-core/net/net.c: Likewise.
4684 * grub-core/normal/menu.c: Likewise.
4685 * grub-core/normal/menu_text.c: Likewise.
4686 * grub-core/normal/misc.c: Likewise.
4687 * util/grub-editenv.c: Likewise.
4688 * util/grub-install.in: Likewise.
4689 * util/grub-kbdcomp.in: Likewise.
4690 * util/grub-mkconfig.in: Likewise.
4691 * util/grub-mknetdir.in: Likewise.
4692 * util/grub-mkrescue.in: Likewise.
4693 * util/grub-mkstandalone.in: Likewise.
4694 * util/grub-reboot.in: Likewise.
4695 * util/grub-set-default.in: Likewise.
4696 * util/grub-setup.c: Likewise.
4697 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4698
4699 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4700
4701 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
4702 * grub-core/commands/keystatus.c: Likewise.
4703 * grub-core/commands/loadenv.c: Likewise.
4704 * grub-core/commands/probe.c: Likewise.
4705 * grub-core/commands/regexp.c: Likewise.
4706 * grub-core/commands/true.c: Likewise.
4707 * grub-core/commands/videoinfo.c: Likewise.
4708 * grub-core/disk/cryptodisk.c: Likewise.
4709 * grub-core/disk/ldm.c: Likewise.
4710 * grub-core/disk/loopback.c: Likewise.
4711 * grub-core/disk/luks.c: Likewise.
4712 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4713 * grub-core/kern/disk.c: Likewise.
4714 * grub-core/kern/emu/hostdisk.c: Likewise.
4715
4716 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4717
4718 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
4719 * util/grub-install.in: Add missing quote in the comment.
4720
4721 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4722
4723 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
4724 * grub-core/commands/lsmmap.c: Likewise.
4725 * grub-core/commands/minicmd.c: Likewise.
4726 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
4727 * grub-core/commands/regexp.c: Likewise.
4728 * grub-core/gdb/gdb.c: Likewise.
4729 * grub-core/term/gfxterm.c: Likewise.
4730 * util/grub-mkconfig.in: Likewise.
4731 * util/grub-mkfont.c: Likewise.
4732 * util/grub-mklayout.c: Likewise.
4733 * util/grub-mknetdir.in: Likewise.
4734 * util/grub-mkrescue.in: Likewise.
4735 * util/grub.d/30_os-prober.in: Likewise.
4736
4737 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4738
4739 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
4740 with "Direct color" and "Packed" with "Packed pixel".
4741 (grub_cmd_videoinfo): Simplify legend.
4742
4743 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4744
4745 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4746 absolutely unclear error message.
4747
4748 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4749
4750 * util/grub-mkstandalone.in: Remove confusing leftover print.
4751
4752 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4753
4754 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
4755 comments.
4756 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
4757 (GRUB_MOD_INIT): Likewise.
4758 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
4759 VGA mode.
4760 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
4761 comments.
4762 * util/grub-install.in (usage): Likewise.
4763 Spell ID in whole letters.
4764 Add missing ending dot.
4765 Quote variables.
4766 * util/grub-reboot.in: Fix capitalisation.
4767 * util/grub-set-default.in: Likewise.
4768
4769 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4770
4771 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
4772 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
4773 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
4774 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
4775 Disable -Werror for -Wdeprecated-declarations.
4776 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
4777 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
4778 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
4779 (grub_util_get_grub_dev): Make luks handling dependent on
4780 HAVE_DEVICE_MAPPER and not __linux__.
4781 (get_win32_path): Fix format security.
4782 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
4783 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
4784 Don't try grub_find_zpool_from_dir.
4785 (grub_make_system_path_relative_to_its_root) [!__linux__]:
4786 #ifdef-out paresdir.
4787
4788 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4789
4790 * util/grub-pe2elf.c (usage): Add missing noreturn.
4791 (write_section_data): Rename name to shname to avoid shadowing.
4792 (write_symbol_table): Rename name to symname to avoid shadowing.
4793 Fix write_reloc_section call.
4794
4795 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4796
4797 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
4798 to ensure that it's after the last byte of .text.
4799
4800 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4801
4802 * util/ieee1275/ofpath.c (my_isdigit): New function.
4803 (trailing_digits): Use my_isdigit.
4804 (strip_trailing_digits): Likewise.
4805
4806 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4807
4808 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
4809 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
4810
4811 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4812
4813 * grub-core/kern/i386/pc/startup.S: Define __start.
4814
4815 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4816
4817 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
4818 strip already transforms he format.
4819
4820 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4821
4822 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
4823
4824 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4825
4826 * util/grub-install.in: Add missing gettext init.
4827 * util/grub-kbdcomp.in: Likewise.
4828 * util/grub-mkconfig.in: Likewise.
4829 * util/grub-mknetdir.in: Likewise.
4830 * util/grub-mkrescue.in: Likewise.
4831 * util/grub-mkstandalone.in: Likewise.
4832 * util/grub-reboot.in: Likewise.
4833 * util/grub-set-default.in: Likewise.
4834 * util/grub.d/00_header.in: Likewise.
4835 * util/grub.d/10_hurd.in: Likewise.
4836 * util/grub.d/10_windows.in: Likewise.
4837 * util/grub.d/30_os-prober.in: Likewise.
4838 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4839
4840 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4841
4842 * po/Rules-swiss: Fix header comment.
4843
4844 2012-02-29 Andreas Vogel <anvoit>
4845
4846 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
4847 resulted in leak of arguments.
4848
4849 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4850
4851 * grub-core/boot/i386/pc/startup_raw.S: Use separate
4852 reed_solomon_size const definition instead of computing it since
4853 Apple assembler doesn't support the later.
4854
4855 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4856
4857 * gentpl.py (kernel): Rewrite Apple part.
4858
4859 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4860
4861 * include/grub/kernel.h (FOR_MODULES): Check module magic.
4862
4863 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4864
4865 * util/grub-mkimagexx.c (locate_sections): Support non-standard
4866 ELF section gap.
4867 (load_image): Likewise.
4868
4869 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4870
4871 * configure.ac: Fix a typo in previous commit.
4872
4873 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4874
4875 Don't add -Wl,-N on Apple platform.
4876
4877 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
4878 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
4879
4880 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4881
4882 * grub-core/Makefile.core.def (lzma_decompress): Use
4883 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
4884
4885 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4886
4887 * grub-core/genmod.sh.in: Rewrite the Apple part.
4888
4889 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4890
4891 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
4892 comparison.
4893
4894 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4895
4896 * acinclude.m4 (grub_CHECK_PIC): New test.
4897 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
4898
4899 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4900
4901 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
4902 to avoid the warning.
4903
4904 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4905
4906 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
4907 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
4908 after. All users updated.
4909
4910 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4911
4912 Use the common size routine in hostfs so we can read disks as well.
4913
4914 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
4915 (grub_util_get_fd_size): ... this. Return size in bytes.
4916 All users updated.
4917 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
4918 grub_util_get_fd_size.
4919
4920 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4921
4922 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
4923 Add blocksize retrieval.
4924
4925 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4926
4927 * configure.ac: Restore CFLAGS after efiemu check.
4928
4929 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4930
4931 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
4932 Apple bug.
4933
4934 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4935
4936 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
4937
4938 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4939
4940 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
4941 (grub_cmd_halt): Likewise.
4942
4943 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4944
4945 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
4946 for local arithmetics.
4947 Break %sp init into 2 instructions.
4948 Add 0 byte at the end.
4949
4950 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4951
4952 * grub-core/disk/diskfilter.c (read_segment): Initialise err
4953 before loops.
4954
4955 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4956
4957 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
4958 for context.
4959
4960 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4961
4962 * grub-core/disk/ldm.c (make_vg): Init part.name.
4963 (grub_ldm_detect): Silence spurious warning.
4964 (grub_util_is_ldm): Likewise.
4965
4966 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4967
4968 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
4969 sane value to avoid a spurious warning.
4970
4971 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4972
4973 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
4974 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
4975
4976 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4977
4978 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
4979 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
4980
4981 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4982
4983 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
4984 hardcoding the relevant info.
4985
4986 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4987
4988 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
4989 missing const qualifiers.
4990 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
4991
4992 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4993
4994 * util/getroot.c [__APPLE__]: Add missing includes.
4995 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
4996
4997 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4998
4999 * util/grub-mkimage.c (generate_image): Silence spurious warning.
5000
5001 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5002
5003 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
5004 avoid conflicts.
5005
5006 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5007
5008 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
5009
5010 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5011
5012 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
5013 and grub_file_close call.
5014
5015 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5016
5017 Add LZSS Mach-O support (needed for new xnu kernelcache).
5018
5019 * grub-core/Makefile.core.def (xnu): Add file lzss.c
5020 * grub-core/loader/lzss.c: New file.
5021 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
5022 on Mach-O open failure.
5023 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
5024 Don't free cmdsXX in uncompressedXX is set.
5025 (grub_macho_file): Init new fields.
5026 New argument is_64bit. All users updated.
5027 Handle compressed. Error out if no suitable architecture is found.
5028 Don't close file.
5029 (grub_macho_open): New argument is_64bit. All users updated.
5030 * grub-core/loader/macho32.c: Add defines for new fields.
5031 * grub-core/loader/macho64.c: Likewise.
5032 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
5033 (grub_macho_parse): Handle compressed.
5034 Defer actual processing if compressed.
5035 (grub_macho_cmds_iterate): Decompress if compressed. New argument
5036 "filename". All users updated.
5037 (grub_macho_size): New argument "filename". All users updated.
5038 (grub_macho_get_entry_point): Likewise.
5039 (grub_macho_load): Handle compressed.
5040 * include/grub/macho.h (grub_macho_lzss_header): New struct.
5041 (GRUB_MACHO_LZSS_OFFSET): New define.
5042 (grub_decompress_lzss): New proto.
5043 * include/grub/machoload.h (grub_macho_file): New fields to handle
5044 compressed.
5045 (grub_macho_contains_macho64): Remove proto.
5046 (grub_macho_contains_macho32): Likewise.
5047 * util/grub.d/30_os-prober.in: Use kernel cache if available.
5048
5049 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5050
5051 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
5052
5053 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5054
5055 Fix make dist.
5056
5057 * Makefile.am (starfield_theme_files): New var.
5058 (starfield_DATA): Use starfield_theme_files.
5059 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
5060 Add bootcheck-related files.
5061 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
5062 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
5063 and font_char_metrics.txt.
5064 * grub-core/Makefile.core.def (kernel): Update extra_dist.
5065 (setjmp): Add lib/ia64/longjmp.S.
5066 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
5067 * po/POTFILES.in: Regenerate.
5068 * po/Rules-swiss: use DISTFILES.common.extra2 and not
5069 DISTFILES.common.extra1.
5070 * util/devicemap.c: Removed.
5071 * grub-core/lib/i386/relocator_backward.S: Likewise.
5072 * util/import_gcry.py: Remove unused files. Add extra_dist for
5073 ChangeLog.
5074
5075 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5076
5077 * grub-core/gettext/gettext.c (grub_mofile_open): Call
5078 grub_gettext_delete_list before changing grub_gettext_max to avoid
5079 running out of array bounds.
5080
5081 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5082
5083 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
5084 grub_vga_text_init/grub_vga_text_fini.
5085
5086 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5087
5088 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
5089
5090 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5091
5092 * configure.ac: Bump to 2.00~beta0.
5093
5094 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5095
5096 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
5097 missing initialisation.
5098
5099 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5100
5101 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
5102
5103 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5104
5105 Support v2 xnu boot arguments.
5106
5107 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
5108 New argument fsbfreq_out.
5109 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
5110 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
5111 be used.
5112 * grub-core/loader/machoXX.c (grub_macho_load): New argument
5113 darwin_version.
5114 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
5115 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
5116 (grub_xnu_boot_params): Rename to ...
5117 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
5118 (grub_xnu_boot_params_v2): New struct.
5119
5120 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5121
5122 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
5123 zeroing of CRC field before computing CRC.
5124
5125 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5126
5127 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
5128 Change order of allocations to decrease fragmentation.
5129
5130 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5131
5132 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
5133
5134 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
5135
5136 Use write-combining MTRR to speed up video with buggy BIOSes.
5137
5138 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
5139 (cpuid): New define.
5140 (rdmsr): Likewise.
5141 (wrmsr): Likewise.
5142 (mtrr_base): Likewise.
5143 (mtrr_mask): Likewise.
5144 (grub_vbe_enable_mtrr_entry): New function.
5145 (grub_vbe_enable_mtrr): Likewise.
5146 (grub_vbe_disable_mtrr): Likewise.
5147 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
5148 control off to BIOS.
5149 (grub_video_vbe_init): Fill mtrr.
5150 (grub_video_vbe_fini): Disable mtrr.
5151 (grub_video_vbe_get_info_and_fini): Likewise.
5152 (grub_video_vbe_setup): Enable mtrr.
5153
5154 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
5155
5156 * include/grub/partition.h (grub_partition_map): Change prototype of
5157 embed to take a maximum value for nsectors.
5158 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
5159 * include/grub/fs.h (grub_fs): Likewise.
5160 * grub-core/partmap/msdos.c (embed_signatures): New array.
5161 (pc_partition_map_embed): Check for and avoid sectors matching any
5162 of the signatures in embed_signatures, up to max_nsectors.
5163 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
5164 returned sector map to max_nsectors.
5165 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
5166 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
5167 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
5168 * util/grub-setup.c (setup): Allow for the embedding area being
5169 split into multiple blocklists. Tell dest_partmap->embed the
5170 maximum number of sectors we care about.
5171
5172 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5173
5174 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
5175 Specify blocklist_install and reserver_first_sector for all fs.
5176 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
5177 blocklists.
5178
5179 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5180
5181 * util/grub-install.in: Clarify strings.
5182 Fix source dir check.
5183
5184 2012-02-27 Richard Laager <rlaager@wiktel.com>
5185
5186 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
5187 "zfs" and "fuse.zfs" as synonyms.
5188
5189 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5190
5191 * configure.ac: Put platform and target_cpu substitutions back since
5192 they are used for directories.
5193
5194 2012-02-27 Richard Laager <rlaager@wiktel.com>
5195 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5196
5197 * util/grub.d/10_linux.in: Add ZFS-related arguments.
5198 * util/grub.d/20_linux_xen.in: Likewise.
5199
5200 2012-02-27 Richard Laager <rlaager@wiktel.com>
5201
5202 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
5203 with full paths.
5204
5205 2012-02-27 Richard Laager <rlaager@wiktel.com>
5206
5207 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
5208 unescape.
5209
5210 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5211
5212 Don't use insecure popen in getroot.
5213
5214 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
5215 (exec_pipe): ... here.
5216 (find_root_devices_from_poolname): Use exec_pipe.
5217
5218 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5219
5220 Remove platform and target_cpu replacement.
5221
5222 * configure.ac: Remove platform and target_cpu substitutions.
5223 * tests/util/grub-shell.in: Use modinfo.
5224 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
5225 explicitly.
5226
5227 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5228
5229 Autodetect platform in grub-install but allow override.
5230
5231 * util/grub-install.in: Autodetect platform. Support --target and
5232 --directory. Read platform from modinfo.sh.
5233
5234 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5235
5236 Support btrfs multi-volume probe.
5237
5238 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
5239 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
5240 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
5241 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
5242 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
5243 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
5244 grub_find_root_devices_from_btrfs if on btrfs.
5245
5246 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5247
5248 Remove any awareness of *.c util files about target.
5249
5250 * Makefile.util.def (grub-setup): Split to ...
5251 (grub-bios-setup): ... and this.
5252 (grub-sparc64-setup): ... and this.
5253 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
5254 * docs/man/grub-setup.h2m: Split into ...
5255 * docs/man/grub-sparc64-setup.h2m: ... this.
5256 * docs/man/grub-bios-setup.h2m: ... and this.
5257 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
5258 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
5259 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
5260 (grub_target_addr_t): Remove.
5261 (grub_target_size_t): Remove.
5262 (grub_target_ssize_t): Remove.
5263 * util/grub-install.in: Use new grub-*-setup.
5264 * util/grub-mkimagexx.c (Elf_Word): New define.
5265 (Elf_Half): Likewise.
5266 (Elf_Section): Likewise.
5267 (ELF_ST_TYPE): Likewise.
5268 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
5269 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
5270
5271 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5272
5273 Replace grub_target_addr with more appropriate types.
5274
5275 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
5276 grub_target_addr with grub_addr.
5277 * grub-core/commands/iorw.c (grub_cmd_read): Replace
5278 grub_target_addr with grub_port.
5279 (grub_cmd_write): Likewise.
5280 * grub-core/commands/memrw.c (grub_cmd_read): Replace
5281 grub_target_addr with grub_addr.
5282 (grub_cmd_write): Likewise.
5283 * grub-core/video/efi_uga.c (find_line_len): Likewise.
5284
5285 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5286
5287 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
5288 const qualifier for vendor_guid.
5289
5290 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5291
5292 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
5293 const qualifier.
5294 (efiemu_memequal): Likewise.
5295 (find_variable): Likewise.
5296
5297 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5298
5299 Fix missing console prototype on qemu-mips.
5300
5301 * include/grub/mips/qemu_mips/console.h: New file.
5302
5303 2012-02-27 Matthew Garrett <mjg@redhat.com>
5304 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5305
5306 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
5307 * include/grub/efi/efi.h: Likewise.
5308 * include/grub/efi/api.h: Add guid for EFI-specified variables.
5309 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
5310 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
5311 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
5312 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
5313 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
5314
5315 2012-02-27 Matthew Garrett <mjg@redhat.com>
5316
5317 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
5318
5319 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5320
5321 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
5322 error.
5323
5324 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5325
5326 * configure.ac: Remove inappropriate use of program_transform_name
5327 on grubdir and bootdir but allow explicit specification of those
5328 variables.
5329
5330 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5331
5332 * util/grub-mknetdir.in (grub_prefix): Removed.
5333 (subdir): Use @bootdirname@ and @grubdirname@.
5334
5335 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5336
5337 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
5338
5339 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5340
5341 * po/POTFILES.in: Regenerated.
5342
5343 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5344
5345 Remove improper use of program_transform_name on pkglibrootdir.
5346
5347 * configure.ac (pkglibrootdir): Removed.
5348 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
5349 * util/grub-mkimage.c: Likewise.
5350
5351 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5352
5353 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
5354 warning.
5355
5356 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5357
5358 * util/grub-install.in: Use file identifier if no UUID is available
5359 or user explicitly prompted for it.
5360
5361 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
5362
5363 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
5364 (freebsd_get_zfs): New function.
5365 (grub_freebsd_boot): Pass zfs UUID.
5366 (grub_cmd_freebsd): Set zfs UUID.
5367
5368 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5369
5370 * conf/Makefile.common (platformdir): Base on pkglibdir and not
5371 pkglibrootdir.
5372
5373 2012-02-27 Mike Gilbert <floppym@gentoo.org>
5374
5375 Add configure flag to control libzfs integration.
5376
5377 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
5378
5379 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5380
5381 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
5382 device.
5383 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
5384 small devices.
5385
5386 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5387
5388 Remove grub_{modname}_init and grub_{modname}_fini. They should never
5389 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
5390 be used on non-modules.
5391
5392 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
5393 Rename to grub_boot_init.
5394 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
5395 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
5396 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
5397 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
5398 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
5399 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
5400 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
5401 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
5402 includes.
5403 (grub_machine_init): Remove empty inits.
5404 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
5405 includes.
5406 (grub_machine_init): Remove empty inits.
5407 * grub-core/term/arc/console.c: Remove explicit proto.
5408 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
5409 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
5410 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5411 grub_at_keyboard_fini.
5412 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
5413 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
5414 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5415 grub_gfxterm_fini.
5416 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
5417 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
5418 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5419 grub_vgatext_fini.
5420 * grub-core/term/ieee1275/console.c: Remove explicit proto.
5421 * grub-core/term/serial.c (GRUB_MOD_INIT)
5422 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
5423 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5424 grub_serial_fini.
5425 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
5426 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
5427 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5428 grub_terminfo_fini.
5429 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
5430 (GRUB_MOD_FINI): Likewise.
5431 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
5432 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
5433 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5434 grub_video_radeon_fuloong2e_fini.
5435 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
5436 [LOONGSON]: Rename to grub_video_sis315pro_init.
5437 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5438 grub_video_sis315pro_fini.
5439 * grub-core/video/sm712.c (GRUB_MOD_INIT)
5440 [LOONGSON]: Rename to grub_video_sm712_init.
5441 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5442 grub_video_sm712_fini.
5443 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
5444 (grub_at_keyboard_fini): Likewise.
5445 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
5446 Don't declare grub_{modname}_init.
5447 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
5448 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
5449 New proto.
5450 (grub_keylayouts_fini) [!EMU]: Likewise.
5451 * include/grub/serial.h (grub_serial_init) [!EMU]:
5452 New proto.
5453 (grub_serial_fini) [!EMU]: Likewise.
5454 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
5455 New proto.
5456 (grub_terminfo_fini) [!EMU]: Likewise.
5457 * include/grub/video.h (grub_font_init) [!EMU]:
5458 New proto.
5459 (grub_font_fini) [!EMU]: Likewise.
5460 (grub_gfxterm_init) [!EMU]: Likewise.
5461 (grub_gfxterm_fini) [!EMU]: Likewise.
5462 (grub_video_sm712_init) [!EMU]: Likewise.
5463 (grub_video_sm712_fini) [!EMU]: Likewise.
5464 (grub_video_sis315pro_init) [!EMU]: Likewise.
5465 (grub_video_sis315pro_fini) [!EMU]: Likewise.
5466 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
5467 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
5468
5469 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5470
5471 Make nand a prefix for nand devices.
5472
5473 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
5474
5475 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5476
5477 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
5478 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
5479
5480 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5481
5482 * include/grub/env.h (grub_env_find): Remove prototype.
5483 * grub-core/kern/env.c (grub_env_find): Make static.
5484 (grub_env_set): Remove useless set.
5485
5486 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5487
5488 * grub-core/kern/i386/realmode.S: Remove useless align.
5489
5490 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5491
5492 * include/grub/dl.h (grub_dl_load_file): Don't export.
5493
5494 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5495
5496 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
5497 grub_dprintf.
5498
5499 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5500
5501 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
5502 grub_errors.
5503 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
5504 not reloading whole superblock but only the part which is really needed.
5505 Remove useless grub_errors.
5506 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
5507 grub_errors.
5508
5509 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5510
5511 Don't export grub_get_rtc.
5512
5513 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
5514 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
5515
5516 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5517
5518 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
5519
5520 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5521
5522 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
5523 argument since it can be deduced from diskfilter. All users updated.
5524
5525 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5526
5527 Remove prio_list.
5528
5529 * include/grub/list.h (grub_prio_list): Removed.
5530 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
5531 GRUB_COMMAND_PRIO_MASK.
5532 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
5533 GRUB_COMMAND_FLAG_ACTIVE.
5534 (grub_prio_list_insert): Removed.
5535 (grub_prio_list_remove): Likewise.
5536 (GRUB_AS_PRIO_LIST): Likewise.
5537 (GRUB_AS_PRIO_LIST_P): Likewise.
5538 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
5539 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
5540 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
5541 * grub-core/kern/command.c (grub_register_command_prio): Inline
5542 the prio_list code.
5543 (grub_unregister_command): Likewise.
5544
5545 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5546
5547 Fix interrupt mixup from previous commit.
5548
5549 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
5550 (grub_realidt): New var.
5551 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
5552 Load idt.
5553 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
5554 New declaration.
5555 (grub_relocator16_boot): Set grub_relocator16_idt.
5556 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
5557 (LOCAL(realidt)): ... this.
5558 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
5559 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
5560 (grub_realidt): New variable.
5561
5562 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5563
5564 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
5565 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
5566 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
5567 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
5568 Gettextize.
5569 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
5570 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
5571 * po/POTFILES.in: Regenerate.
5572
5573 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5574
5575 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
5576 errors.
5577
5578 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5579
5580 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
5581 \0.
5582 (add_length): Likewise.
5583
5584 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5585 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
5586
5587 GDB serial and backtrace support.
5588
5589 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
5590 (prot_to_real): Likewise.
5591 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
5592 * grub-core/Makefile.core.def (backtrace): New module.
5593 (gdb): Likewise.
5594 * grub-core/gdb/cstub.c: New file.
5595 * grub-core/gdb/gdb.c: Likewise.
5596 * grub-core/gdb/i386/idt.c: Likewise.
5597 * grub-core/gdb/i386/machdep.S: Likewise.
5598 * grub-core/gdb/i386/signal.c: Likewise.
5599 * grub-core/lib/i386/backtrace.c: Likewise.
5600 * grub-core/lib/backtrace.c: Likewise.
5601 * include/grub/backtrace.h: Likewise.
5602 * include/grub/gdb.h: Likewise.
5603 * include/grub/i386/gdb.h: Likewise.
5604
5605 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5606
5607 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
5608 New function.
5609 (add_length): Likewise.
5610 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
5611 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
5612 proto.
5613 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
5614 __argp_get_display_len.
5615
5616 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5617
5618 $"..." support in scripts.
5619
5620 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
5621 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
5622 * grub-core/script/yylex.l: Likewise.
5623 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
5624 value.
5625
5626 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5627
5628 * gentpl.py: Remove obsolete pkglib_DATA handling.
5629
5630 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5631
5632 Don't transform PACKAGE_TARNAME following a discussion on autoconf
5633 mailing list.
5634
5635 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
5636 * util/grub-kbdcomp.in: Likewise.
5637 * util/grub-mkconfig.in: Likewise.
5638 * util/grub-mkconfig_lib.in: Likewise.
5639 * util/grub-mknetdir.in: Likewise.
5640 * util/grub-mkrescue.in: Likewise.
5641 * util/grub-mkstandalone.in: Likewise.
5642 * util/grub-reboot.in: Likewise.
5643 * util/grub-set-default.in: Likewise.
5644 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5645
5646 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5647
5648 Remove GRUB_PREFIX.
5649
5650 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
5651 * util/grub.d/00_header.in: Compute prefix in the only place it's still
5652 used for backward compatibility.
5653
5654 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5655
5656 Add new all_video module.
5657
5658 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
5659 * grub-core/Makefile.core.def (all_video): New module.
5660 * grub-core/genmoddep.awk: Generate dependency of all_video from
5661 video.lst.
5662 * grub-core/lib/fake_module.c: New file.
5663 * grub-core/normal/main.c (features): Add feature_all_video_module.
5664 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
5665 don't do explicit search again.
5666 insmod all_video in load_video if available.
5667
5668 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5669
5670 Another round of string clarification and adding TRANSLATORS comments.
5671
5672 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5673
5674 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
5675
5676 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5677
5678 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
5679 to grub_ssize_t.
5680 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
5681 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
5682
5683 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5684
5685 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
5686 trailing newline implicitly. All users updated.
5687
5688 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5689
5690 Implement serial on IEEE1275 and EFI.
5691
5692 * docs/grub.texi (Platform-specific limitations): Fix the columen video
5693 on emu. Mention arc and emu as the only platforms without serial
5694 support.
5695 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
5696 ieee1275 platforms.
5697 * grub-core/term/efi/serial.c: New file.
5698 * grub-core/term/ieee1275/serial.c: Likewise.
5699 * grub-core/term/serial.c (grub_serial_find): Disable direct port
5700 specification if no ns8250 driver is available.
5701 (grub_cmd_serial): Likewise.
5702 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
5703 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
5704 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
5705 (grub_efi_parity_type_t): New type.
5706 (grub_efi_stop_bits_t): Likewise.
5707 (grub_efi_serial_io_interface): New struct.
5708 * include/grub/serial.h (grub_serial_port): Make 'broken' field
5709 available for all interfaces.
5710 Add EFI and IEEE1275 fields.
5711 (grub_ofserial_init): New proto.
5712 (grub_efiserial_init): Likeiwse.
5713 * util/grub.d/00_header.in: Don't check for the presence of serial
5714 module.
5715
5716 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5717
5718 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
5719 name as if it was an alias.
5720
5721 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5722
5723 * grub-core/commands/lsacpi.c (options): Fix typo.
5724
5725 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5726
5727 Convert grub-emu to argp.
5728
5729 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
5730 emu.
5731 * util/argp_common.c: Rename to ...
5732 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
5733 Add missing includes.
5734 * grub-core/kern/emu/main.c: Convert to argp.
5735 * po/POTFILES.in: Regenerate.
5736 * util/grub-install.in (usage): Make first letter lowcase in messages
5737 for uniformity.
5738 * util/grub-setup.c (options): Likewise.
5739
5740 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5741
5742 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
5743 Put back accidently commented-out code.
5744
5745 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5746
5747 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
5748 loop check using Brent algorithm.
5749 (grub_hfsplus_btree_search): Likewise.
5750
5751 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5752
5753 * util/grub-install.in: Fix usage of wrong device for PreP install.
5754
5755 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5756
5757 * conf/Makefile.common (CFLAGS_GNULIB): Add
5758 -Wno-unsafe-loop-optimizations.
5759 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
5760 on tools.
5761 * grub-core/commands/legacycfg.c: Add pragma to skip
5762 -Wunsafe-loop-optimizations.
5763 (check_password_md5_real): Fix loop counter type.
5764 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
5765 reading.
5766 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
5767 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
5768 loop condition.
5769 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
5770 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
5771 * grub-core/net/net.c (grub_net_route_address): Add safety loop
5772 condition.
5773 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
5774 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
5775 avoid possible infinite loops.
5776 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
5777 and -Wunsafe-loop-optimizations.
5778 * grub-core/script/yylex.l: Likewise.
5779 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
5780 (print_glyphs): Avoid infinite loops.
5781 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
5782
5783 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
5784
5785 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
5786 to avoid infinite loop.
5787 (disp_acpi_rsdt_table): Likewise.
5788
5789 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5790
5791 * grub-core/font/font.c (grub_font_load): Add support for default
5792 path for fonts ($prefix/fonts).
5793 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
5794 for checking if string is a path.
5795 * grub-core/normal/main.c (features): Add feature_default_font_path.
5796 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
5797 * util/grub.d/00_header.in: Use default directory if possible.
5798 * util/grub-install.in: Install unicode.pf2.
5799
5800 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5801
5802 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
5803 * po/Rules-swiss: New file.
5804 * po/swiss.sed: Likewise.
5805
5806 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5807
5808 * grub-core/fs/btrfs.c (find_device): Fix typos.
5809 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
5810 * util/grub-mkrelpath.c (argp_parser): Likewise.
5811 Reported by: Yuri Chornoivan.
5812
5813 2012-02-23 Dalet Omega <daletomega@gmail.com>
5814
5815 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
5816 for usual informative messages.
5817
5818 2012-02-23 Dalet Omega <daletomega@gmail.com>
5819
5820 Starfield theme.
5821
5822 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
5823 * conf/Makefile.common: Define starfielddir.
5824 * configure.ac: Configure starfield.
5825 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
5826 * themes/starfield/README: Likewise.
5827 * themes/starfield/blob_w.png: Likewise.
5828 * themes/starfield/boot_menu_c.png: Likewise.
5829 * themes/starfield/boot_menu_e.png: Likewise.
5830 * themes/starfield/boot_menu_n.png: Likewise.
5831 * themes/starfield/boot_menu_ne.png: Likewise.
5832 * themes/starfield/boot_menu_nw.png: Likewise.
5833 * themes/starfield/boot_menu_s.png: Likewise.
5834 * themes/starfield/boot_menu_se.png: Likewise.
5835 * themes/starfield/boot_menu_sw.png: Likewise.
5836 * themes/starfield/boot_menu_w.png: Likewise.
5837 * themes/starfield/slider_c.png: Likewise.
5838 * themes/starfield/slider_n.png: Likewise.
5839 * themes/starfield/slider_s.png: Likewise.
5840 * themes/starfield/src/blob_nw.xcf: Likewise.
5841 * themes/starfield/src/bootmenu/: Likewise.
5842 * themes/starfield/src/bootmenu/center.xcf: Likewise.
5843 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
5844 * themes/starfield/src/bootmenu/side.xcf: Likewise.
5845 * themes/starfield/src/slider_c.xcf: Likewise.
5846 * themes/starfield/src/slider_n.xcf: Likewise.
5847 * themes/starfield/src/slider_s.xcf: Likewise.
5848 * themes/starfield/src/terminalbox/: Likewise.
5849 * themes/starfield/src/terminalbox/center.xcf: Likewise.
5850 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
5851 * themes/starfield/src/terminalbox/side.xcf: Likewise.
5852 * themes/starfield/starfield.png: Likewise.
5853 * themes/starfield/terminal_box_c.png: Likewise.
5854 * themes/starfield/terminal_box_e.png: Likewise.
5855 * themes/starfield/terminal_box_n.png: Likewise.
5856 * themes/starfield/terminal_box_ne.png: Likewise.
5857 * themes/starfield/terminal_box_nw.png: Likewise.
5858 * themes/starfield/terminal_box_s.png: Likewise.
5859 * themes/starfield/terminal_box_se.png: Likewise.
5860 * themes/starfield/terminal_box_sw.png: Likewise.
5861 * themes/starfield/terminal_box_w.png: Likewise.
5862 * themes/starfield/theme.txt: Likewise.
5863
5864 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5865
5866 * util/grub.d/00_header.in: Add missing export theme.
5867
5868 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5869
5870 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
5871 already included.
5872 Reported by: Eren D.
5873
5874 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5875
5876 * conf/Makefile.common (grubdatadir): Removed.
5877 (Makefile.am): Move eveything grubdata to pkgdata.
5878
5879 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5880
5881 * grub-core/commands/acpihalt.c (get_sleep_type):
5882 Remove unused variable.
5883
5884 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5885
5886 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
5887 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
5888 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
5889 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
5890 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
5891 i18n with gettext no-op.
5892 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
5893 GRUB_ACPI_OPCODE_STRING_CONST.
5894 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
5895 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
5896
5897 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5898
5899 * po/POTFILES.in: Regenerate.
5900
5901 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5902
5903 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
5904 -Wno-error=missing-noreturn.
5905
5906 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5907
5908 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
5909 condition to avoid possibly infinite loops.
5910 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
5911 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
5912
5913 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5914
5915 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
5916 condition to avoid possibly infinite loops.
5917
5918 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5919
5920 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
5921 on show_error.
5922
5923 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5924
5925 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
5926
5927 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5928
5929 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
5930
5931 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5932
5933 * util/bin2h.c (usage): Add missing attribute noreturn.
5934
5935 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5936
5937 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
5938 if the size isn't divisible by 512.
5939
5940 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5941
5942 Make list_push and list_remove functions rather than inline functions
5943 to decrease size and avoid aliasing violations.
5944
5945 * include/grub/list.h (grub_list_push): Move to ...
5946 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
5947 * include/grub/list.h (grub_list_remove): Move to ...
5948 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
5949
5950 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5951
5952 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
5953 and -Wunused-result.
5954
5955 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5956
5957 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
5958 Reported by: Seth Goldberg
5959
5960 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5961
5962 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
5963
5964 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5965
5966 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
5967 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
5968 command line.
5969 * docs/grub.texi (Simple configuration): Document
5970 GRUB_CMDLINE_GNUMACH.
5971
5972 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5973
5974 * conf/Makefile.common (platform_SCRIPTS): New variable.
5975 (platform_PROGRAMS): Likewise.
5976 * gentpl.py: Mark *,module and *.image for install.
5977 * grub-core/gdb_grub.in: Add a notice of expected environment.
5978 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
5979 (gmodule.pl): Likewise.
5980
5981 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5982
5983 Replace grub_checkkey with grub_getkey_noblock.
5984
5985 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
5986 (grub_getkey_noblock): ... this. All users updated.
5987
5988 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5989
5990 * grub-core/kern/emu/console.c: Move to ...
5991 * grub-core/term/emu/console.c: ...here.
5992 (grub_ncurses_getkey): Fix return value if no key is detected.
5993
5994 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5995
5996 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
5997 (grub_unit_test_fini): Likewise.
5998 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
5999
6000 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6001
6002 * include/grub/test.h (GRUB_UNIT_TEST)
6003
6004 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6005
6006 * grub-core/script/execute.c (grub_script_break): Clarify logic.
6007 Better error handling.
6008 (grub_script_return): Likewise.
6009 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
6010
6011 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6012
6013 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
6014 rimplicit redifinition.
6015
6016 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6017
6018 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
6019 GRUB.
6020
6021 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6022
6023 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
6024 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
6025 prompt here.
6026
6027 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6028
6029 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
6030 as GRUB_ERR_BUG. Don't malloc if no device is available.
6031
6032 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6033
6034 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
6035 Mark calling with invalid term as GRUB_ERR_BUG.
6036
6037 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6038
6039 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
6040 packets rather than raising an error.
6041
6042 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6043
6044 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
6045 in if.
6046
6047 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6048
6049 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
6050 diagnostic to dprintf.
6051 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6052
6053 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6054
6055 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
6056 device name.
6057
6058 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6059
6060 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
6061 (grub_ntfs_iterate_dir): Likewise.
6062
6063 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6064
6065 Efiemu stylistic fixes and gettext.
6066
6067 * grub-core/efiemu/i386/loadcore32.c
6068 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
6069 * grub-core/efiemu/i386/loadcore64.c
6070 (grub_arch_efiemu_relocate_symbols64): Likewise.
6071 * grub-core/efiemu/i386/pc/cfgtables.c
6072 (grub_machine_efiemu_init_tables): Likewise.
6073 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
6074 (grub_efiemu_loadcore_initXX): Add a filename argument.
6075 All users updated.
6076 Improved error message.
6077 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
6078 Add a filename argument.
6079 All users updated.
6080 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
6081 Reclassify double relocation as GRUB_ERR_BUG.
6082
6083 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6084
6085 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
6086 handling.
6087
6088 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6089
6090 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
6091 on partition.
6092
6093 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6094
6095 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
6096
6097 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6098
6099 Improve string. Gettextize.
6100
6101 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6102
6103 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
6104 utils.
6105 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
6106
6107 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6108
6109 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
6110 [GRUB_UTIL]: New function.
6111 (insert_array) [GRUB_UTIL]: Store partmaps.
6112 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
6113 partmaps.
6114 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
6115 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
6116 (probe_abstraction): Print diskfilter and not raid.
6117 Reported by: Lennart Sorensen
6118
6119 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6120
6121 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
6122 * util/grub-mkimagexx.c (MASK3): New define.
6123 (add_value_to_slot_20b): Use MASK3.
6124 (add_value_to_slot_21): Likewise.
6125 (relocate_addresses): Fix format specification.
6126 (load_image): Explicitly init symtab_section.
6127
6128 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6129
6130 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
6131 (grub_util_biosdisk_get_grub_dev): Fix format specification.
6132
6133 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6134
6135 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
6136 on powerpc.
6137 Reported by: Lennart Sorensen
6138
6139 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6140
6141 * gentpl.py: Add missing license header.
6142 * docs/grub.texi: Update copyright year.
6143
6144 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
6145
6146 Source grub-mkconfig_lib from the build directory at build time.
6147 Suggested by: Vladimir Serbinenko.
6148
6149 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
6150 * util/grub-install.in: Define pkgdatadir if not already set, and source
6151 grub-mkconfig_lib from there.
6152 * util/grub-kbdcomp.in: Likewise.
6153 * util/grub-mkconfig.in: Likewise.
6154 * util/grub-mknetdir.in: Likewise.
6155 * util/grub-mkrescue.in: Likewise.
6156 * util/grub-mkstandalone.in: Likewise.
6157 * util/grub-reboot.in: Likewise.
6158 * util/grub-set-default.in: Likewise.
6159 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6160
6161 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6162
6163 Increase warning level.
6164
6165 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
6166 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
6167 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
6168 (TARGET_CFLAGS): Likewise.
6169 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
6170 * grub-core/Makefile.core.def (decompressor_xz): Add
6171 -Wno-unreachable-code.
6172 (normal): Add -Wno-redundant-decls.
6173 (xzio): Add -Wno-unreachable-code.
6174 (lzopio): Add -Wno-redundant-decls -Wno-error.
6175 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
6176 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
6177 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
6178 * grub-core/kern/dl.c: Add exception to -Wcast-align.
6179 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
6180 * grub-core/kern/i386/coreboot/init.c: Add exception to
6181 -Wsuggest-attribute=noreturn.
6182 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
6183 * grub-core/kern/ia64/dl_helper.c: Likewise.
6184 * grub-core/kern/mips/dl.c: Likewise.
6185 * grub-core/kern/sparc64/dl.c: Likewise.
6186 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
6187 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
6188 (memcmp): Likewise.
6189 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
6190 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
6191 * grub-core/loader/mips/linux.c: Likewise.
6192 * grub-core/loader/multiboot_elfxx.c: Likewise.
6193 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
6194 * grub-core/video/sm712.c: Add exception to -Wcast-align.
6195 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
6196 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
6197 fixme.
6198 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
6199 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
6200 Fix prototype.
6201
6202 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6203
6204 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
6205 address.
6206
6207 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6208
6209 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
6210 Avoid improper use of strings.
6211 (grub_cmd_legacy_initrdnounzip): Likewise.
6212
6213 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6214
6215 * include/grub/emu/misc.h (grub_util_warn): Add missing format
6216 attribute.
6217 (grub_util_info): Likewise.
6218 (grub_util_error): Likewise.
6219
6220 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6221
6222 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
6223 * util/grub-fstest.c (fstest): Likewise.
6224
6225 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6226
6227 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
6228 (grub_md_sha512_real): Likewise.
6229 (grub_util_get_geli_uuid): Likewise.
6230 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
6231 (grub_util_biosdisk_open): Fix format specification.
6232 Respect format security.
6233 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
6234 (xrealloc): Likewise.
6235 (xasprintf): Likewise.
6236
6237 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6238
6239 * util/import_gcry.py: Include grub/crypto.h in init.c.
6240
6241 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6242
6243 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
6244 (generate_image): Make prefix a const char *.
6245 Fix format specifications. Respect format security.
6246 Avoid void * arithmetics.
6247 Avoid shadowing.
6248 (argp_parser): Remove unused variable. Respect format security.
6249 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
6250 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
6251 (count_funcs): Remove unused variable.
6252 (relocate_addresses): Fix format specification.
6253 Disable x86-64 with elf32. Remove unused variables.
6254 (add_fixup_entry): Avoid shadowing.
6255 (make_reloc_section): Fix format specification.
6256 Use assert.
6257 (locate_sections): Fix format specifications.
6258 (load_image): Avoid shadowing.
6259
6260 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6261
6262 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
6263 Fix format specifications. Respect format security.
6264 Don't translate already translated grub_errmsg.
6265 (argp_parser): Remove unused variable
6266
6267 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6268
6269 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
6270
6271 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6272
6273 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
6274 (main): Likewise. Use xmalloc. Respect format security.
6275
6276 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6277
6278 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
6279 a const char *.
6280 (argp_parser): Remove unused variable.
6281
6282 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6283
6284 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
6285 (add_pixel): Make static.
6286 (add_font): Likewise.
6287 (write_string_section): Make name and str a const char *.
6288 (write_be16_section): Make name a const char *.
6289 (print_glyphs): Make static.
6290 (write_font_ascii_bitmap): Likewise.
6291 (write_font_width_spec): Likewise.
6292 (write_font_pf2): Likewise.
6293 (argp_parser): Remove unused variable.
6294 Respect format security.
6295 (main): Avoid shadowing. Respect format security.
6296
6297 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6298
6299 * util/grub-editenv.c (argp_parser): Make static.
6300 (create_envblk_file): Use xmalloc.
6301 (open_envblk_file): Likewise.
6302 Resepect format security.
6303 (set_variables): Respect format security.
6304
6305 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6306
6307 * util/getroot.c (grub_find_device): Respect format security.
6308 (get_mdadm_uuid): Remove unused variable.
6309 (grub_util_pull_device): Dont call gettext on already translated
6310 grub_errmsg.
6311 (find_system_device): Remove unused variable.
6312 (grub_util_get_grub_dev): Likewise.
6313 (grub_make_system_path_relative_to_its_root): Respect format security.
6314
6315 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6316
6317 * util/grub-fstest.c (execute_command): Make first argument
6318 a const char *.
6319 (read_file): Avoid shadowing.
6320 Reuse underlying error message if device open fails.
6321 (cmd_cmp): Respect format security.
6322 (root): Make const char *.
6323 (fstest): Remove args argument and use global copy.
6324 Respect format security.
6325 (argp_parser): Make static.
6326 (main): Make default_root const char *.
6327
6328 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6329
6330 * util/grub-mount.c (root): Make const char *.
6331 (execute_command): Make first argument a const char *.
6332 (fuse_init): Respect format security.
6333 (argp_parser): Make static. Remove unused variable.
6334 (main): Make default_root a const char *.
6335 Respect format security.
6336
6337 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6338
6339 * util/grub-probe.c (probe): Don't call gettext on already translated
6340 grub_errmsg.
6341 Remove unused variables.
6342 (argp_parser): Remove unused variable.
6343
6344 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6345
6346 * util/grub-script-check.c (argp_parser): Remove unused variable.
6347 (main): Rename read to curread to avoid shadowing.
6348
6349 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6350
6351 * util/misc.c (grub_util_write_image_at): Fix format specification.
6352 (grub_util_write_image): Likewise.
6353 (grub_script_execute_argument_to_string): Removed (unused).
6354 (grub_script_execute_menuentry): Likewise.
6355 (grub_putchar): Likewise.
6356
6357 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6358
6359 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
6360 (FUNCTION) [GRUB_UTIL]: Likewise.
6361 (VARIABLE) [GRUB_UTIL]: Likewise.
6362
6363 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6364
6365 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
6366 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
6367
6368 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6369
6370 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
6371 buffer.
6372
6373 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6374
6375 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
6376 (LzmaEnc_SaveState): Removed (unused).
6377 (LzmaEnc_RestoreState): Likewise.
6378 (LzmaEnc_InitPriceTables): Made static.
6379 (LzmaEnc_Construct): Likewise.
6380 (LzmaEnc_FreeLits): Likewise.
6381 (LzmaEnc_Destruct): Likewise.
6382 (LzmaEnc_Init): Likewise.
6383 (LzmaEnc_InitPrices): Likewise.
6384 (LzmaEnc_Finish): Likewise.
6385 (LzmaEnc_PrepareForLzma2): Removed (unused).
6386 (LzmaEnc_MemPrepare): Likewise.
6387 (LzmaEnc_GetNumAvailableBytes): Likewise.
6388 (LzmaEnc_GetCurBuf): Likewise.
6389 (LzmaEnc_CodeOneMemBlock): Likewise.
6390
6391 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6392
6393 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
6394 (grub_util_ldm_embed): Likewise.
6395
6396 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6397
6398 * util/grub-editenv.c (print_var): Rename name to varname to
6399 avoid shadowing.
6400 (main): Rename index to curindex to avoid shadowing.
6401 Make filename a const char *.
6402
6403 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6404
6405 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
6406 to arg_getline to avoid shadowing.
6407
6408 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6409
6410 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
6411 disk_ to avoid shadowing.
6412
6413 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6414
6415 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
6416 curindex to avoid shadowing.
6417 Make static.
6418 (MatchFinder_GetNumAvailableBytes): Make static.
6419
6420 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6421
6422 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
6423 avoid shadowing.
6424
6425 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6426
6427 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
6428 argument from encrypt to do_encrypt to avoid shadowing.
6429
6430 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6431
6432 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
6433 incorrect nesting of #if's.
6434
6435 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6436
6437 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
6438 checks which are always false on some platforms.
6439 (grub_cmd_lsacpi): Likewise.
6440 * grub-core/kern/misc.c (grub_strtoul): Likewise.
6441 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
6442 Likewise.
6443
6444 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6445
6446 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
6447 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
6448
6449 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6450
6451 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
6452 re_dfa_t to avoid breaking alignment invariants.
6453 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
6454 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
6455
6456 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6457
6458 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
6459 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
6460
6461 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6462
6463 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
6464 Fix declaration.
6465
6466 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6467
6468 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
6469 conserve alignment invariants.
6470 (grub_ehci_ehcc_read16): Likewise.
6471 (grub_ehci_oper_read32): Likewise.
6472 (grub_ehci_oper_write32): Likewise.
6473 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
6474 Conserve alignment invariants.
6475
6476 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6477
6478 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
6479 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
6480 declarations.
6481
6482 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6483
6484 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
6485 Remove unused variable.
6486
6487 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6488
6489 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
6490 Remove set in if.
6491
6492 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6493
6494 * include/grub/net.h: Remove double declarations.
6495
6496 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6497
6498 Remove "payload" command in ia64 Linux loader since I couldn't
6499 find any evidence of it being used for anything.
6500 Replace "relocate" command with an environment variable
6501
6502 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
6503 fields.
6504 (ia64_boot_payload): Removed.
6505 (last_payload): Likewise.
6506 (RELOCATE_OFF): Likewise.
6507 (RELOCATE_ON): Likewise.
6508 (RELOCATE_FORCE): Likewise.
6509 (relocate): Likewise.
6510 (free_pages): Don't free payloads.
6511 (grub_load_elf64): Use common error messages.
6512 Use "linux_relocate" variable.
6513 Increase the space after boot_params.
6514 (grub_cmd_payload): Removed.
6515 (grub_cmd_relocate): Likewise.
6516 (grub_cmd_fpswa): Improve messages.
6517 (cmd_payload): Removed.
6518 (cmd_relocate): Likewise.
6519 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
6520 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
6521
6522 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6523
6524 Convert UHCI to DMA framework.
6525
6526 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
6527 (grub_uhci_pci_iter): Fill new members
6528 (grub_alloc_td): Use P2V and V2P functions.
6529 (grub_free_queue): Likewise.
6530 (grub_alloc_qh): Likewise.
6531 (grub_uhci_setup_transfer): Likewise.
6532 (grub_uhci_check_transfer): Likewise.
6533
6534 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6535
6536 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
6537 Remove assignment in if while on it.
6538
6539 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6540
6541 * util/grub-mkstandalone.in: Fix modules directory.
6542
6543 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6544
6545 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
6546 on i386-pc target.
6547 (argp_parser): Accept "auto" as compression specification.
6548
6549 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6550
6551 Fix `help' with unloaded modules.
6552
6553 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
6554 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
6555 (grub_dyncmd_dispatcher): Small stylistic fix.
6556 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
6557 explicit help is requested.
6558
6559 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6560
6561 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
6562 Explicitly init restart while on it.
6563
6564 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6565
6566 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
6567 uninited variable.
6568
6569 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6570
6571 * util/grub-mknetdir.in: Use . rather than source for POSIX
6572 compatibility.
6573
6574 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6575
6576 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
6577
6578 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6579
6580 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
6581 variable.
6582
6583 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6584
6585 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
6586 without quotes.
6587
6588 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6589
6590 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
6591
6592 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6593
6594 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
6595 iteration of partitions.
6596
6597 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6598
6599 Improve gettext support. Stylistic fixes and error handling fixes while
6600 on it.
6601
6602 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6603
6604 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
6605 part. Instead setup the correct stack in RM.
6606 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
6607 for stack.
6608 * include/grub/i386/relocator_private.h: New file.
6609
6610 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6611
6612 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
6613 argument.
6614 * util/grub-fstest.c (options): Add missing DEVICE part.
6615
6616 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6617
6618 Clarify and unify messages.
6619
6620 * grub-core/commands/hashsum.c (options): Unify messages.
6621 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
6622 literal-only message as translatable.
6623 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
6624 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
6625 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
6626 commands.
6627 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
6628 key, not the key used to unlock. Clarify what it's used for.
6629 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
6630 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
6631 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
6632 * util/grub-editenv.c (options): Unify "verbose" message.
6633 * util/grub-fstest.c (read_file): Unify error message.
6634 (fstest): Add quotes around commands.
6635 (options): Unify "verbose" message.
6636 * util/grub-install.in: Add quotes around variable name.
6637 * util/grub-kbdcomp.in: Unify error message.
6638 * util/grub-mkfont.c (main): Likewise.
6639 * util/grub-mkrescue.in: Likewise.
6640 * util/grub-mklayout.c (options): Unify "verbose" message.
6641 * util/grub-mkstandalone.in: Unify help and verbose messages.
6642 * util/grub-mount.c (options): Unify "verbose" message.
6643 * util/grub-probe.c (options): Likewise.
6644 * util/grub-script-check.c (options): Likewise.
6645 * util/grub-setup.c (setup): Unify no-terminator message.
6646 (options): Use DEVICE and not DEV.
6647 Unify "verbose" message.
6648 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
6649
6650 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6651
6652 Improve and unify messages.
6653
6654 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
6655 name. All users updated.
6656 Print filename in error.
6657 (read_device_map): Print filename in error.
6658 * util/getroot.c (grub_guess_root_devices): Print filename in error.
6659 (grub_util_get_os_disk): Likewise.
6660 (grub_util_biosdisk_get_grub_dev): Likewise.
6661 (grub_util_check_block_device): Likewise.
6662 (grub_util_check_char_device): Likewise.
6663 (grub_make_system_path_relative_to_its_root): Likewise.
6664 * util/grub-editenv.c (create_envblk_file): Likewise.
6665 (open_envblk_file): Likewise.
6666 (write_envblk): Likewise.
6667 * util/grub-fstest.c (cmd_cp): Likewise.
6668 (cmd_cat): Likewise.
6669 (cmd_cmp): Likewise.
6670 * util/grub-menulst2cfg.c (main): Likewise.
6671 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
6672 (write_font_width_spec): Likewise.
6673 (write_font_pf2): Likewise.
6674 * util/grub-mkimage.c (generate_image): New argument outname.
6675 All users updated.
6676 Remove unreacheable message.
6677 (options): Unify messages.
6678 (help_filter): Likewise.
6679 * util/grub-mklayout.c (usage): Removed (unused).
6680 (main): Print filename in error.
6681 * util/grub-mkrescue.in: Fix wrong quoting.
6682 * util/grub-setup.c (setup): Print filename in error.
6683 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
6684 (check_sas): Likewise.
6685 * util/misc.c (grub_util_get_fp_size): Removed.
6686 (grub_util_get_image_size): Print filename in error.
6687 (grub_util_read_at): Removed.
6688 (grub_util_read_image): Print filename in error.
6689 (grub_util_load_image): Likewise.
6690 (grub_util_write_image_at): New argument filename. All users updated.
6691 Print filename in error.
6692 (grub_util_write_image): New argument filename. All users updated.
6693 Print filename in error.
6694 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
6695 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
6696
6697 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6698
6699 * grub-core/Makefile.core.def (pxechain): New module.
6700 * grub-core/loader/i386/pc/pxechainloader.c: New file.
6701 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
6702 function.
6703 (grub_pc_net_config_real): Use grub_pxe_get_cached.
6704 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
6705
6706 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6707
6708 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
6709 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
6710 * include/grub/err.h (grub_error_saved): New struct.
6711 (grub_errmsg): Make array size explicit.
6712 * include/grub/misc.h (grub_error_save): New function.
6713 (grub_error_load): Likewise.
6714 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
6715 (grub_error_push): Update `errno' member name.
6716 (grub_error_pop): Likewise
6717 * grub-core/net/tftp.c (tftp_data): New member save_err.
6718 (tftp_receive): Save error.
6719 (tftp_open): Restore error.
6720
6721 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6722
6723 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
6724 to real mode down to execute A20-related code in protected mode as
6725 intended.
6726
6727 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
6728
6729 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
6730 NULL when the argument `level' has an unexpected value.
6731
6732 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6733
6734 Move platform-dependent files from $prefix to $prefix/$platform.
6735
6736 * config.h.in (GRUB_TARGET_CPU): New definition.
6737 (GRUB_PLATFORM): Likewise.
6738 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
6739 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
6740 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
6741 * grub-core/kern/dl.c (grub_dl_load): Likewise.
6742 * grub-core/normal/autofs.c (read_fs_list): Likewise.
6743 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
6744 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
6745 * grub-core/normal/term.c (read_terminal_list): Likewise.
6746 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
6747 $prefix/locale.
6748 (grub_gettext_init_ext): Likewise.
6749 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
6750 grub_platform.
6751 * util/grub-install.in: Update directories.
6752 * util/grub-mknetdir.in: Likewise.
6753 * util/grub-mkrescue.in: Likewise.
6754
6755 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6756
6757 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
6758 grub_error framework. All users updated.
6759
6760 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6761
6762 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
6763 lists (by always binsearching), improve caching (cache strings
6764 used for binsearch, not only results), improve
6765 maintainability (by using more structured binary search) and correct
6766 error handling.
6767
6768 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6769
6770 * grub-core/script/execute.c (grub_script_return): Fix warning.
6771
6772 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6773
6774 * grub-core/script/execute.c (grub_script_return): Fix potential
6775 NULL-dereference.
6776 Reported by: Jim Meyering.
6777
6778 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6779
6780 * po/POTFILES.in: Regenerate.
6781 * util/grub-install.in: Gettextize the strings missed in first pass.
6782
6783 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6784
6785 * Makefile.util.def (grub-mkdevicemap): Removed.
6786 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
6787 * include/grub/util/deviceiter.h: Removed.
6788 * util/deviceiter.c: Likewise.
6789 * util/getroot.c (grub_util_get_os_disk): New function.
6790 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
6791 replacement for EFI.
6792 * util/grub-mkdevicemap.c: Removed.
6793 * util/grub-probe.c (probe): Handle PRINT_DISK.
6794 (argp_parser): Handle -t disk.
6795
6796 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6797
6798 * util/grub-mkfont.c: Migrate to argp.
6799 * util/grub-mklayout.c: Likewise.
6800 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6801 * util/grub-mkrelpath.c: Likewise.
6802 * util/grub-probe.c: Likewise.
6803 * util/grub-script-check.c: Likewise.
6804
6805 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6806
6807 * util/grub-reboot.in: Add missing datarootdir.
6808 Add missing newline.
6809 * util/grub-set-default.in: Add missing datarootdir.
6810 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
6811 * util/grub-mkrescue.in: Likewise.
6812
6813 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6814
6815 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
6816
6817 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6818
6819 * util/grub-kbdcomp.in: Add decent help and gettextize.
6820 * docs/man/grub-kbdcomp.h2m: New file.
6821
6822 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6823
6824 Migrate grub-mkimage.c to argp.
6825
6826 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
6827 (grub-setup): Likewise.
6828 * util/grub-setup.c (print_version): Move to ...
6829 * util/argp_common.c (print_version): ... here.
6830 * util/grub-setup.c (argp_program_version_hook): Move to ...
6831 * util/argp_common.c (argp_program_version_hook): ... here.
6832 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
6833 safety.
6834 * util/grub-mkimage.c (main): Migrate to argp.
6835
6836 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6837
6838 * util/grub-mkrescue.in: Use same message as
6839 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
6840 for better translations.
6841
6842 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6843
6844 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
6845 options with generic grub-mkrescue.in with the goal of future
6846 merge.
6847
6848 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6849
6850 * grub-core/kern/mm.c: Add missing include of i18n.h
6851 * grub-core/lib/relocator.c: Likewise.
6852
6853 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6854
6855 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
6856 error.
6857 (allocate_pages): Check return value.
6858 Replace fatal with error.
6859 (grub_linux_boot): Replace printf with dprintf.
6860 Check find_mmap_size return value.
6861 Replace fatal with error.
6862 Don't call grub_machine_fini.
6863 (grub_load_elf64): Replace printf with dprintf.
6864 (grub_cmd_linux): Likewise.
6865 (grub_cmd_initrd): Likewise.
6866 (grub_cmd_payload): Likewise.
6867
6868 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6869
6870 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
6871 message.
6872 * grub-core/video/radeon_fuloong2e.c
6873 (grub_video_radeon_fuloong2e_setup): Likewise.
6874 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
6875 * grub-core/video/video.c (grub_video_set_mode): Don't override
6876 standard out of memory message.
6877
6878 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6879
6880 NetBSD disk wedge support.
6881
6882 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
6883 [__NetBSD__]: Handle NetBSD disk wedges.
6884 * util/getroot.c (convert_system_partition_to_system_disk)
6885 [__NetBSD__]: Likewise.
6886
6887 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
6888
6889 * util/grub-mkconfig.in: Use umask rather than chmod to create
6890 grub.cfg.new to avoid insecure grub.cfg.
6891
6892 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6893
6894 * grub-core/commands/ls.c: Gettextize.
6895 * grub-core/commands/setpci.c: Likewise.
6896 * grub-core/commands/videotest.c: Likewise.
6897 * grub-core/disk/geli.c: Likewise.
6898 * grub-core/kern/mm.c: Likewise.
6899 * grub-core/lib/relocator.c: Likewise.
6900 * grub-core/loader/efi/appleloader.c: Likewise.
6901 * grub-core/loader/i386/xnu.c: Likewise.
6902 * grub-core/loader/ia64/efi/linux.c: Likewise.
6903 * grub-core/loader/xnu.c: Likewise.
6904 * grub-core/net/dns.c: Likewise.
6905 * grub-core/net/net.c: Likewise.
6906 * grub-core/script/lexer.c: Likewise.
6907 * grub-core/script/parser.y: Likewise.
6908 * grub-core/script/yylex.l: Likewise.
6909 * util/getroot.c: Likewise.
6910 * util/grub-setup.c: Likewise.
6911
6912 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6913
6914 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
6915 number.
6916
6917 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6918
6919 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
6920
6921 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6922
6923 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
6924 macro.
6925 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
6926 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
6927
6928 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6929
6930 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
6931 * util/grub-install.in: Gettextize.
6932 * util/grub-mkconfig.in: Likewise.
6933 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
6934 if not available.
6935 (grub_warn): Gettextize.
6936 * util/grub-mknetdir.in: Gettextize.
6937 * util/grub-mkrescue.in: Likewise.
6938 * util/grub-mkstandalone.in: Likewise.
6939 * util/grub-reboot.in: Likewise.
6940 * util/grub-set-default.in: Likewise.
6941 * util/grub.d/00_header.in: Likewise.
6942 * util/grub.d/10_hurd.in: Likewise.
6943 * util/grub.d/10_kfreebsd.in: Likewise.
6944 * util/grub.d/10_linux.in: Likewise.
6945 * util/grub.d/10_netbsd.in: Likewise.
6946 * util/grub.d/10_windows.in: Likewise.
6947 * util/grub.d/20_linux_xen.in: Likewise.
6948 * util/grub.d/30_os-prober.in: Likewise.
6949 * po/POTFILES-shell.in: Regenerate.
6950
6951 2012-02-03 Richard Laager <rlaager@wiktel.com>
6952
6953 * util/grub-mkimage.c (main): Fix format-security warning.
6954 * util/grub-mkrelpath.c (main): Likewise.
6955 * util/grub-probe.c (main): Likewise.
6956
6957 2012-02-03 Richard Laager <rlaager@wiktel.com>
6958
6959 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
6960 failure.
6961 Put back lost PRINT_DRIVE.
6962
6963 2012-02-03 Richard Laager <rlaager@wiktel.com>
6964
6965 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
6966 (grub_guess_root_devices): Replace strlen with sizeof.
6967 Avoid crash.
6968 (find_root_devices_from_poolname): Remove unused variable.
6969 Handle raidzN.
6970
6971 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6972
6973 Support install on multi-device filesystems.
6974
6975 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
6976 (grub_guess_root_devices): ...this. Return char **. All users updated.
6977 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
6978 Removed.
6979 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
6980 (find_root_devices_from_poolname): ... here.
6981 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
6982 Support zfs-fuse.
6983 (grub_guess_root_device): Rename to ...
6984 (grub_guess_root_devices): ... this. Return char **. All users updated.
6985 * util/grub-install.in: Handle multi-device filesystems.
6986 * util/grub-probe.c (probe). Make device_names a char **. Add delim
6987 argument. All users updated.
6988 Handle multi-device filesystems.
6989 Use 'delim' as separator.
6990 Remove device check to allow filesystems on file.
6991 (main): Support -0 argument. Handle multi-device.
6992 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
6993 Fix a cross-device check while on it.
6994 (arguments): Remove root_dev.
6995 (argp_parser): Remove -r.
6996 (main): Remove root_dev.
6997
6998 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6999
7000 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
7001
7002 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7003
7004 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
7005 symbol.
7006 Reported by: NODA, Kai <nodakai>.
7007
7008 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7009
7010 Fix ehci on amd64.
7011
7012 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
7013 pointers.
7014 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
7015 (grub_ehci_setup_qh): Likewise.
7016 (grub_ehci_find_qh): Likewise.
7017 (grub_ehci_transaction): Likewise.
7018 (grub_ehci_setup_transfer): Likewise.
7019 (grub_ehci_check_transfer): Likewise.
7020 (grub_ehci_portstatus): Likewise.
7021 (grub_ehci_detect_dev): Likewise.
7022 (grub_ehci_transfer_controller_data): New field td_last_phys.
7023 (grub_ehci_setup_transfer): Fill td_last_phys.
7024 (grub_ehci_check_transfer): Use td_last_phys.
7025
7026 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
7027
7028 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
7029 if no submenu is present.
7030
7031 2012-02-01 Aleš Nesrsta <starous@volny.cz>
7032
7033 CBI support.
7034
7035 * include/grub/usb.h (grub_usbms_protocol_t): New values
7036 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
7037 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
7038 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
7039 (grub_usbms_dev): Add subclass, protocol and intrpt.
7040 Remove in_maxsz and out_maxsz.
7041 (grub_usbms_reset): Rename to ...
7042 (grub_usbms_bo_reset): .. this.
7043 (grub_usbms_cbi_cmd): New function.
7044 (grub_usbms_cbi_reset): Likewise.
7045 (grub_usbms_reset): Likewise.
7046 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
7047 (grub_usbms_transfer): Rename to ...
7048 (grub_usbms_transfer_bo): ... this.
7049 (grub_usbms_transfer_cbi): Likewise.
7050 (grub_usbms_transfer): Likewise.
7051
7052 2012-02-01 Aleš Nesrsta <starous@volny.cz>
7053 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7054
7055 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
7056 the support for the CS5536 modification thereos and few bugfixes.
7057
7058 * grub-core/Makefile.core.def (ehci): New module.
7059 * grub-core/bus/usb/ehci.c: New file.
7060 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
7061 port and hubaddr. All users updated.
7062 Save port and hubaddr into dev structure.
7063 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
7064 define.
7065 * include/grub/pci.h (grub_dma_phys2virt): New function.
7066 (grub_dma_virt2phys): Likewise.
7067 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
7068
7069 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7070
7071 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
7072 check as some mkfs implementations omit it.
7073
7074 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7075
7076 * docs/grub.texi (Unicode): Mention identifier and space limitations.
7077
7078 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7079
7080 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
7081 Add new member volname2.
7082 (grub_jfs_label): Use volname2 if available.
7083
7084 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7085
7086 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
7087 over last_mounted as seen in image generated by mkfs.nilfs2.
7088 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
7089
7090 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7091
7092 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
7093 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
7094 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
7095
7096 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7097
7098 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
7099 over the sector.
7100
7101 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7102
7103 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
7104 subvolume name (by removing a bogus and useless check).
7105
7106 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7107
7108 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
7109 sizeof while on it.
7110
7111 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7112
7113 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
7114 (grub_scsi_read_capacity10): ... this.
7115 (grub_scsi_read_capacity16): New function.
7116 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
7117 0xffffffff.
7118 Fix off-by-one error.
7119 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
7120 64-bit unsigned.
7121 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
7122 (grub_scsi_read_capacity10): ... this.
7123 (grub_scsi_read_capacity_data): Rename to ...
7124 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
7125 (grub_scsi_read_capacity16): New struct.
7126 (grub_scsi_read_capacity16_data): Likewise.
7127 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
7128 grub_scsi_cmd_read_capacity10.
7129 New command grub_scsi_cmd_read_capacity16.
7130
7131 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7132
7133 SCSI >2TiB support.
7134
7135 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
7136 (grub_scsi_write16): Likewise.
7137 (grub_scsi_read): Use read16 when necessary.
7138 (grub_scsi_write): Likewise.
7139 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
7140 (grub_scsi_write16): Likewise.
7141 (grub_scsi_cmd_t): Add READ16 and WRITE16.
7142
7143 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7144
7145 SCSI write support (for usbms mainly).
7146
7147 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
7148 a const pointer.
7149 (grub_scsi_write): Implement.
7150 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
7151
7152 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7153
7154 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
7155 variable.
7156
7157 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7158
7159 * grub-core/lib/posix_wrap/string.h (memchr): New function.
7160
7161 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7162
7163 * po/POTFILES.in: Regenerate.
7164
7165 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7166
7167 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
7168 with grub_printf to avoid unnecessary fatal failure.
7169
7170 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7171
7172 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
7173 (INT_MAX): Likewise.
7174 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
7175 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
7176 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
7177 (strcpy): Likewise.
7178 (strstr): Likewise.
7179 (strchr): Likewise.
7180 (strncpy): Likewise.
7181 (strcat): Likewise.
7182 (strncat): Likewise.
7183 (strcoll): Likewise.
7184 * include/grub/types.h (GRUB_SHRT_MAX): New define.
7185 (GRUB_INT_MAX): Likewise.
7186
7187 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7188
7189 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
7190 unexpected error.
7191 (optimize_utf8): Likewise.
7192 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
7193
7194 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7195
7196 * grub-core/boot/i386/pc/lnxboot.S: Use
7197 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
7198 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
7199 location.
7200 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
7201 definition.
7202 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
7203
7204 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7205
7206 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
7207 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
7208 now to avoid double free.
7209 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
7210 hostdisk.
7211 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
7212 * util/grub-probe.c (escape_of_path): Always return a new copy.
7213 (print_full_name): Escape path.
7214 (probe): Don't call grub_util_devname_to_ofpath on NULL.
7215 Fix hints on abstractions.
7216
7217 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7218
7219 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
7220 Don't add "root" line if no compatibility hont is available.
7221 Suggested by: Seth Goldberg.
7222
7223 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7224
7225 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
7226 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
7227 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
7228 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
7229
7230 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7231
7232 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
7233
7234 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7235
7236 * util/grub-pe2elf.c (ehdr): Make static.
7237 (shdr): Likewise.
7238 (num_sections): Likewise.
7239 (offset): Likewise.
7240
7241 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7242
7243 Eliminate ofpath limits and possible overflows.
7244
7245 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
7246 (OF_PATH_MAX): Removed.
7247 (MAX_DISK_CAT): New const.
7248 (find_obppath): Use allocated rather than preallocated buffer.
7249 Return result. Argument of_path removed. All users updated.
7250 Add missing fdstat.
7251 (xrealpath): New function.
7252 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
7253 Allocate rather than use preallocated buffer. All users updated.
7254 (__of_path_common): Use allocated rather than preallocatecd buffer.
7255 Return result. Argument of_path removed. All users updated.
7256 (vendor_is_ATA): Read only needed part form the file.
7257 (check_sas): Allocate depending on contents rather than fixed.
7258 (main) [STANDALONE]: Handle NULL result.
7259
7260 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7261
7262 * grub-core/normal/completion.c (iterate_dev): Close the disk.
7263
7264 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7265
7266 Cryptodisk write support.
7267
7268 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
7269 (grub_cryptodisk_decrypt): Moved logic to ...
7270 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
7271 (grub_cryptodisk_write): Implement.
7272 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
7273 (grub_util_fd_write): ... this. Make global.
7274 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
7275
7276 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7277
7278 * include/grub/list.h (grub_list_remove): Don't crash if element is
7279 removed twice.
7280
7281 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7282
7283 Rename ofconsole to console.
7284
7285 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
7286 as sysnonym to console.
7287 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
7288 * grub-core/term/ieee1275/console.c: ... this. All users updated.
7289 Rename grub_ofconsole_ to grub_console_. All users updated
7290 (grub_console_term_output): Rename "ofconsole" to "console".
7291 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
7292 as "console".
7293
7294 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7295
7296 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
7297 handling.
7298 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
7299 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
7300 GRUB_DISK_DEVICE_FILE_ID.
7301
7302 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7303
7304 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
7305 and improve performance.
7306
7307 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7308
7309 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
7310 missing ieee1275/ prefix on whole disk.
7311
7312 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7313
7314 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
7315 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
7316
7317 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7318
7319 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
7320
7321 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7322
7323 Merge common RAID and LVM logic to an abstract diskfilter.
7324 Add LDM support using the same framework.
7325
7326 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
7327 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
7328 (libgrubmods): Remove grub-core/disk/raid.c and
7329 grub-core/partmap/gpt.c.
7330 * grub-core/Makefile.core.def (ldm): New module.
7331 (raid): Renamed to diskfilter. All users updated.
7332 * grub-core/disk/raid.c: Moved to ...
7333 * grub-core/disk/diskfilter.c: ... here.
7334 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
7335 (lv_num): New var.
7336 (find_array): Renamed to ...
7337 (find_lv): ... this. Support multi-LV. Skip nameless LVs
7338 (grub_is_array_readable): Renamed to ...
7339 (grub_is_lv_readable): ... this. Support multinode hierarchy.
7340 (insert_array): New argument id.
7341 (is_node_readable): New function.
7342 (scan_device): Rename to ...
7343 (scan_disk): .. this. Restrict to one disk.
7344 (scan_devices): New function.
7345 (grub_diskfilter_iterate): Support multi-LV.
7346 Skip invisible and nameless LVs.
7347 (grub_diskfilter_memberlist): Support multi-LV.
7348 (grub_diskfilter_read_node): New function.
7349 (grub_raid_read): Most of logic moved to ...
7350 (read_segment): ... here
7351 (read_lv): New function.
7352 (grub_diskfilter_get_vg_by_uuid): New function.
7353 (grub_diskfilter_make_raid): Likewise.
7354 * grub-core/disk/ldm.c: New file.
7355 * grub-core/disk/lvm.c (vg_list): Removed.
7356 (lv_count): Likewise.
7357 (scan_depth): Likewise.
7358 (is_lv_readable): Likewise.
7359 (grub_lvm_getvalue): Advance pointer past the number.
7360 (find_lv): Removed.
7361 (do_lvm_scan): Refactored into ...
7362 (grub_lvm_detect): ... this. Support raid.
7363 (grub_lvm_iterate): Removed.
7364 (grub_lvm_memberlist): Likewise.
7365 (grub_lvm_open): Likewise.
7366 (grub_lvm_close): Likewise.
7367 (read_lv): Likewise.
7368 (read_node): Likewise.
7369 (is_node_readable): Likewise.
7370 (is_lv_readable): Likewise.
7371 (grub_lvm_read): Likewise.
7372 (grub_lvm_write): Likewise.
7373 (grub_lvm_dev): Use diskfilter
7374 (GRUB_MOD_INIT): Likewise.
7375 (GRUB_MOD_FINI): Likewise.
7376 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
7377 new interface.
7378 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
7379 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7380 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
7381 grub_diskfilter_read_node.
7382 Fix a bug with xor.
7383 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
7384 grub_diskfilter_read_node.
7385 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
7386 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
7387 (grub_disk_dev_iterate): Move from here...
7388 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
7389 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
7390 Make global.
7391 (grub_hostdisk_find_partition_start): Likewise.
7392 (grub_hostdisk_os_dev_to_grub_drive): New function.
7393 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
7394 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
7395 * util/getroot.c (make_device_name): ... here.
7396 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
7397 Move to ...
7398 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
7399 * grub-core/kern/emu/hostdisk.c
7400 (convert_system_partition_to_system_disk): Move to ...
7401 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
7402 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
7403 * util/getroot.c (device_is_wholedisk): ... here.
7404 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
7405 * util/getroot.c (find_system_device): ... here.
7406 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
7407 Move to ...
7408 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
7409 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
7410 Move to ...
7411 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
7412 Handle LDM.
7413 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
7414 Move to ...
7415 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
7416 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
7417 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
7418 DISKFILTER.
7419 * include/grub/raid.h: Renamed to ...
7420 * include/grub/diskfilter.h: ... this.
7421 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
7422 (GRUB_RAID_LAYOUT_*): Make into array.
7423 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
7424 (grub_diskfilter_vg): New struct.
7425 (grub_diskfilter_pv_id): Likewise.
7426 (grub_raid_member): Removed.
7427 (grub_raid_array): Likewise.
7428 (grub_diskfilter_pv): New struct.
7429 (grub_diskfilter_lv): Likewise.
7430 (grub_diskfilter_segment): Likewise.
7431 (grub_diskfilter_node): Likewise.
7432 (grub_diskfilter_get_vg_by_uuid): New proto.
7433 (grub_raid_register): Inline.
7434 (grub_diskfilter_unregister): Likewise.
7435 (grub_diskfilter_make_raid): New proto.
7436 (grub_diskfilter_vg_register): Likewise.
7437 (grub_diskfilter_read_node): Likewise.
7438 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
7439 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
7440 (grub_util_is_ldm): Likewise.
7441 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
7442 (grub_hostdisk_find_partition_start): Likewise.
7443 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
7444 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
7445 New definition.
7446 (grub_gpt_partition_map_iterate): New proto.
7447 * include/grub/lvm.h (grub_lvm_vg): Removed.
7448 (grub_lvm_pv): Likewise.
7449 (grub_lvm_lv): Likewise.
7450 (grub_lvm_segment): Likewise.
7451 (grub_lvm_node): Likewise.
7452 * util/getroot.c [...]
7453 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
7454 (probe_abstraction): Likewise.
7455 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
7456 (main): Remove dead logic.
7457
7458 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
7459
7460 Simplify root device discover and don't fail when trying to open
7461 incorrect devices.
7462
7463 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
7464 function.
7465 (get_diskname_from_path): Likewise.
7466 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
7467 of iterating.
7468
7469 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7470
7471 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
7472
7473 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7474
7475 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
7476 pastthe end.
7477
7478 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7479
7480 * util/grub-install.in: Add missing \.
7481 Reported by: gentoofan
7482
7483 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7484
7485 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
7486 (direct_read): Use correct compressed size.
7487 (grub_squash_read_data): Likewise.
7488
7489 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7490
7491 * docs/grub.texi (Platform limitations): New section.
7492 (Platform-specific operations): Likewise.
7493 * docs/grub-dev.texi (Porting): Likewise.
7494
7495 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7496
7497 IEEE1275 disk write support.
7498
7499 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
7500 const void *.
7501 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
7502 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
7503 and seek loginc to ...
7504 (grub_ofdisk_prepare): ... here.
7505 (grub_ofdisk_write): Implement.
7506
7507 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7508
7509 ARC disk write support.
7510
7511 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
7512 (reopen): New argument writable. All users updated.
7513 Handle required access mode.
7514 (grub_arcdisk_write): Implement.
7515 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
7516 (grub_arc_firmware_vector): Make buffer to write a const buffer.
7517
7518 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7519
7520 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
7521 (read_sblock): Don't attempt to read superblocks outside the disk size.
7522
7523 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7524
7525 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
7526 first superblock to find the second one when possible.
7527
7528 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7529
7530 * util/grub-install.in: Fix an ARC bug.
7531 Print a warning if no platform-specific setup is available.
7532
7533 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7534
7535 Use static allocation rather than scratch pointer in reed_solomon.
7536 It decreases its size significantly and avoids a variable in .text.
7537
7538 * grub-core/lib/reed_solomon.c (scratch): Removed.
7539 (chosenstat): New const or static array.
7540 (sigma): Likewise.
7541 (errpot): Likewise.
7542 (errpos): Likewise.
7543 (sy): Likewise.
7544 (mstat): Likewise.
7545 (errvals): Likewise.
7546 (eqstat): Likewise.
7547 (pol_evaluate): Replace x with log_x argument. All users updated.
7548 (syndroms): Removed.
7549 (gauss_solve): Use statically allocated arrays.
7550 (rs_recover): Likewise.
7551 Calculate syndroms directly.
7552 (decode_block): Use statically allocated arrays.
7553 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
7554 (main) [TEST]: Allow -DTEST -DSTANDALONE.
7555
7556 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7557
7558 Eliminate fixed limit on reed solomon decoder length.
7559
7560 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
7561 rather than hardcoding the address.
7562 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
7563 no_reed_solomon_length.
7564 Move gate_a20 to no-reed-solomon part.
7565 Don't force a particular size of no reed-solomon part.
7566 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7567 Removed.
7568 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
7569 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
7570
7571 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7572
7573 * grub-core/commands/wildcard.c (match_files): Handle filenames
7574 without explicit device.
7575 (wildcard_expand): Don't add explicit device if not already present.
7576 * tests/grub_script_echo1.in: Add a new expansion test.
7577
7578 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7579
7580 Replace single-linked with double-linked lists. It results in more
7581 compact and more efficient code.
7582
7583 * grub-core/kern/list.c (grub_list_push): Moved from here ...
7584 * include/grub/list.h (grub_list_push): ... to here. Set prev.
7585 (grub_list_remove): Moved from here ...
7586 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
7587 (grub_prio_list_insert): Set prev.
7588 * include/grub/list.h (grub_list): Add prev. All users updated.
7589
7590 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7591
7592 Handle newer autotools. Add some missing quotes while on it.
7593
7594 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
7595 (pkglib_DATA): Move grub-mkconfig_lib from here ...
7596 (pkgdata_DATA): ... here.
7597 * Makefile.util.def (update-grub_lib): Removed.
7598 * conf/Makefile.common (pkglib_DATA): Removed.
7599 (pkglib_SCRIPTS): Likewise.
7600 (pkgdata_DATA): New variable.
7601 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
7602 needed.
7603 Add missing quotes.
7604 Remove unused variable while on it.
7605 * tests/util/grub-shell.in: Likewise.
7606 * util/grub-install.in: Likewise.
7607 * util/grub-mkconfig.in: Likewise.
7608 * util/grub-mknetdir.in: Likewise.
7609 * util/grub-mkrescue.in: Likewise.
7610 * util/grub-mkstandalone.in: Likewise.
7611 * util/grub.d/00_header.in: Likewise.
7612 * util/grub.d/10_hurd.in: Likewise.
7613 * util/grub.d/10_illumos.in: Likewise.
7614 * util/grub.d/10_kfreebsd.in: Likewise.
7615 * util/grub.d/10_linux.in: Likewise.
7616 * util/grub.d/10_netbsd.in: Likewise.
7617 * util/grub.d/10_windows.in: Likewise.
7618 * util/grub.d/20_linux_xen.in: Likewise.
7619 * util/grub.d/30_os-prober.in: Likewise.
7620 * util/update-grub_lib.in: Removed.
7621
7622 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
7623
7624 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
7625 a workaround for intel problem.
7626
7627 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
7628 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7629 2012-01-23 pfsmorigo
7630
7631 * util/grub-install.in: Support dd'in into PreP partition.
7632 * util/grub-probe.c (probe): Support discovering partition type.
7633 (main): Support -t msdos_parttype.
7634
7635 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7636
7637 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
7638 infinite recursion using counter.
7639 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
7640 init to skip it if the magic check fails.
7641 (dec_stream_header): Init s->crc32.
7642
7643 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7644 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
7645 2012-01-22 Richard Laager <rlaager@wiktel.com>
7646
7647 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
7648 All users updated.
7649 (find_bestub): Determine correct size.
7650 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
7651 (scan_disk): Align the size down.
7652 Call check pool before find_bestub to have ashift.
7653
7654 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7655
7656 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
7657 dprintf in no-malloc zone.
7658
7659 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
7660
7661 * configure.ac: Add back in test for limits.h.
7662
7663 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7664
7665 Support 4K-sector NTFS.
7666
7667 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
7668 (grub_ntfs_data): Remove blocksize.
7669 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
7670 Remove data argument. All users updated.
7671
7672 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7673
7674 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
7675 being in .text to avoid dprel references.
7676 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
7677 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
7678 (grub_arch_highmemsize): Likewise.
7679 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
7680 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
7681 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
7682
7683 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7684
7685 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
7686
7687 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
7688 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
7689
7690 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7691
7692 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
7693 GRUB_UTIL.
7694 (grub_set_datetime_cmos): Likewise.
7695
7696 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7697
7698 Make XZ compression parameters dependent on target and not host CPU.
7699
7700 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
7701 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
7702
7703 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7704
7705 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
7706 set but not used variable.
7707
7708 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7709
7710 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
7711 created when no uuid support is compiled into mkfs.reiser.
7712
7713 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7714
7715 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
7716 (utf8_to_macroman): Do the opposite.
7717 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
7718
7719 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7720
7721 * configure.ac: Refise build qemu_mips w/o unifont.
7722
7723 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7724
7725 Eliminate grub_min/grub_max prone to overflow usage.
7726
7727 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
7728 (poll_nonroot_hub): Likewise.
7729 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
7730 (grub_affs_label): Likewise.
7731 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
7732 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
7733 (grub_hfs_label): Likewise.
7734 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
7735 * grub-core/fs/zfs/zfs.c (MIN): Remove.
7736 (zap_leaf_array_equal): Use grub_size. Remove MIN.
7737 (zap_leaf_array_get): Likewise.
7738 (dnode_get_path): Likewise.
7739 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
7740 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
7741 * grub-core/script/execute.c (grub_script_break): Likewise.
7742 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
7743 grub_max.
7744 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
7745 * include/grub/misc.h (grub_min): Removed.
7746 (grub_max): Likewise.
7747
7748 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7749
7750 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
7751 direct.inode = 0.
7752
7753 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7754
7755 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
7756
7757 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7758
7759 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
7760
7761 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7762
7763 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
7764 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
7765
7766 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7767
7768 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
7769 rather than a hack for grub_strncasemap.
7770
7771 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7772
7773 Support multiple initrds
7774 Note: part of this was accidently committed in r3739.
7775
7776 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
7777 initrd.
7778 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
7779 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
7780 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7781 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7782 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7783
7784 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7785
7786 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
7787 disks with unknown size.
7788 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
7789
7790 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7791
7792 Remove defines pertaining to arbitrary limits not affecting GRUB
7793 anymore.
7794
7795 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
7796 (EXT2_MAX_SYMLINKCNT): Likewise.
7797 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
7798 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
7799 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
7800 (GRUB_PXE_MAX_BLKSIZE): Likewise.
7801 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
7802 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
7803 (DN_MAX_OBJECT_SHIFT): Likewise.
7804 (DN_MAX_OFFSET_SHIFT): Likewise.
7805 (DN_MAX_OBJECT): Likewise.
7806 (DNODES_PER_LEVEL_SHIFT): Likewise.
7807 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
7808 (SPA_MAXBLOCKSIZE): Likewise.
7809 (SPA_BLOCKSIZES): Likewise.
7810 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
7811 (MZAP_MAX_BLKSZ): Likewise.
7812
7813 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7814
7815 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
7816 handle NULL appropriately.
7817 Remove MIN.
7818
7819 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7820
7821 Fix efiemu.
7822
7823 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
7824 cpu/types.h.
7825 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
7826 * configure.ac: Fix efiemu check.
7827
7828 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7829
7830 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
7831 grub_probe.
7832 Reported by: adamwill
7833
7834 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
7835
7836 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
7837
7838 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7839
7840 Fix handling of wide characters in gfxterm.
7841
7842 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
7843 (clear_char): Likewise.
7844 (paint_char): Skip code == NULL chars.
7845 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
7846
7847 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7848
7849 * grub-core/normal/charset.c: Move comment to right place.
7850
7851 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7852
7853 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
7854 (GRUB_AFFS_FLAG_FFS): Put back where it was.
7855 (grub_affs_mount): Revert the correct version checking.
7856
7857 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7858
7859 * docs/grub.texi (Unicode): Mention several other unsupported features.
7860
7861 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7862
7863 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
7864 case statements as compile-time one.
7865 (direct_read): Prevent spurious warnings.
7866 (grub_squash_read_data): Likewise.
7867
7868 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7869
7870 Various squash4 fixes and LZO and XZ support.
7871
7872 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
7873 Add xzembed source files.
7874 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
7875 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
7876 (grub_squash_inode): New subtype long_dir.
7877 (SQUASH_TYPE_LONG_DIR): New inode type.
7878 (COMPRESSION): New enum.
7879 (XZBUFSIZ): New const.
7880 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
7881 (read_chunk): Use data->decompress.
7882 (zlib_decompress): New function.
7883 (lzo_decompress): Likewise.
7884 (xz_decompress): Likewise.
7885 (squash_mount): Set new data fields.
7886 (grub_squash_iterate_dir): Handle long dir.
7887 (squash_unmount): Free xzdec and xzbuf.
7888 (grub_squash_open): Check ino type.
7889 (direct_read): Stylistic fixes. Use data->decompress.
7890 (grub_squash_read_data): Likewise.
7891 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
7892 (get_byte): Likewise.
7893 (grub_zlib_disk_read): Removed.
7894 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
7895 (GRUB_POSIX_BOOL_DEFINED): New define.
7896 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
7897 * grub-core/lib/xzembed/xz.h: Addmissing includes.
7898 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
7899 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
7900
7901 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7902
7903 Don't override more informative errors.
7904
7905 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
7906 * grub-core/font/font.c (open_section): Likewise.
7907 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
7908 filename. Don't override errors.
7909 (grub_cmd_openbsd_ramdisk): Don't override errors.
7910 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
7911 (grub_cmd_initrd): Likewise.
7912 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7913 (grub_cmd_initrd): Likewise.
7914 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
7915 (grub_cmd_linux): Likewise.
7916 (grub_cmd_initrd): Likewise.
7917 (grub_cmd_payload): Likewise.
7918 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7919 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
7920 (grub_cmd_module): Likewise.
7921 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7922 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7923 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
7924 (grub_cmd_xnu_mkext): Likewise.
7925 (grub_cmd_xnu_ramdisk): Likewise.
7926 (grub_xnu_check_os_bundle_required): Likewise.
7927 (grub_xnu_load_kext_from_dir): Likewise.
7928 (grub_cmd_xnu_kextdir): Likewise.
7929 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
7930
7931 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7932
7933 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
7934 as 1024 in block size field. Found on one of my test images.
7935 Small optimisation while on it.
7936
7937 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7938
7939 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
7940 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
7941 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
7942 performance fixes while on it.
7943 (grub_sfs_close): Fix memory leak while on it.
7944 (grub_sfs_label): Convert Latin1 to UTF-8.
7945
7946 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7947
7948 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
7949 space to avoid overflows.
7950 (grub_hfs_label): Convert from macroman to UTF-8.
7951
7952 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7953
7954 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
7955
7956 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7957
7958 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
7959
7960 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7961
7962 * unicode: Import Unicode 6.0 data.
7963
7964 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7965
7966 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
7967 outside of range.
7968
7969 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7970
7971 Avoid cutting in the middle of UTF-8 character.
7972
7973 * include/grub/charset.h (grub_getend): New function.
7974 * grub-core/script/function.c (grub_script_function_find): Use
7975 grub_getend.
7976 * grub-core/normal/completion.c (add_completion): Likewise.
7977
7978 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7979
7980 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
7981 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
7982 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
7983 (GRUB_UNICODE_TAG_END): Likewise.
7984 (GRUB_UNICODE_LAST_VALID): Likewise.
7985
7986 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7987
7988 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
7989 len and make it smaller. All users updated.
7990 * util/import_unicode.py: Put length and not end character.
7991 Check length.
7992
7993 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7994
7995 Make better Unicode-compliant and unify some UTF-8 code pathes.
7996
7997 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
7998 valid character.
7999 (grub_is_valid_utf8): Use grub_utf8_process.
8000 Check resulting code range.
8001 (grub_utf8_to_ucs4): Use grub_utf8_process.
8002 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
8003 valid character.
8004
8005 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8006
8007 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
8008
8009 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8010
8011 * docs/grub.texi (Filesystems): Mention AFS.
8012
8013 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8014
8015 * docs/grub.texi (Filesystems): Clarify restrictions.
8016 (Regexp): Mention non-Unicode regexp behaviour.
8017 (Other): Mention non-Unicode matching behaviour.
8018
8019 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8020
8021 Make HFS implementation use MacRoman.
8022
8023 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
8024 (macroman): New const array.
8025 (macroman_to_utf8): New function.
8026 (utf8_to_macroman): Likewise.
8027 (grub_hfs_find_dir): Use utf8_to_macroman.
8028 (grub_hfs_dir): Use macroman_to_utf8.
8029 Set case_insensitive.
8030
8031 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8032
8033 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
8034
8035 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8036
8037 Integrate hints into autogeneration scripts.
8038
8039 * docs/grub.texi (Filesystems): Add a hostdisk example.
8040 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
8041 (grub-probe): Add ofpath.
8042 * gentpl.py: Remove group nosparc64.
8043 * grub-core/commands/search.c (cache_entry): New struct.
8044 (cache): New var.
8045 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
8046 * grub-core/commands/search_wrap.c (options): Add platform-specific
8047 hint options.
8048 (grub_cmd_search): Handle platform-specific hints.
8049 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
8050 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
8051 (grub_util_biosdisk_data): Likewise.
8052 (grub_util_biosdisk_open): Set device_map.
8053 (read_device_map): Handle "" as indication of no map.
8054 Set device_map.
8055 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
8056 (grub_util_biosdisk_get_compatibility_hint): New function.
8057 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
8058 * include/grub/emu/hostdisk.h
8059 (grub_util_biosdisk_get_compatibility_hint): New proto.
8060 * util/grub-install.in: Don't call grub-mkdevicemap.
8061 Add platform-specific hint to load.cfg.
8062 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
8063 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
8064 hints. Set root preliminary to compatibility hint, not to OS name.
8065 * util/grub-probe.c (PRINT_*): Add hints.
8066 (print): Make static.
8067 (escape_of_path): New function.
8068 (guess_bios_drive): Likewise.
8069 (guess_efi_drive): Likewise.
8070 (guess_baremetal_drive): Likewise.
8071 (print_full_name): Likewise.
8072 (probe): Handle hints.
8073 (main): Likewise.
8074 * util/ieee1275/devicemap.c: Removed.
8075 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
8076 updated.
8077 (grub_util_devname_to_ofpath): Return NULL on failure.
8078
8079 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
8080 resource leak.
8081 * util/getroot.c (grub_util_pull_device): Fix memory leak.
8082
8083 * po/POTFILES.in: Regenerated.
8084
8085 Allow purely long options
8086
8087 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
8088 (SHORT_ARG_USAGE): Likewise.
8089 (grub_arg_show_help): Compare opt with help_options.
8090 (parse_option): Receive opt as argument. If makes big simplificatons.
8091 All users updated
8092
8093 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8094
8095 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
8096 Restructure to avoid warning.
8097
8098 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8099
8100 * util/grub-install.in: Account for possible escaped comma in device
8101 name.
8102
8103 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8104
8105 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
8106 channel.
8107
8108 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8109
8110 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
8111 allocation and zero-setting.
8112 (grub_ieee1275_get_devname): Check that alias is complete.
8113
8114 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8115
8116 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
8117 unaligned segments.
8118
8119 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8120
8121 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
8122 prefix.
8123 (grub_ofdisk_open): Check and discard ieee1275 prefix.
8124 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8125 Add ieee1275 prefix.
8126
8127 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8128
8129 * docs/grub.texi (Filesystems): Update.
8130
8131 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8132
8133 Support odc, newc and bigendian cpio formats.
8134
8135 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
8136 * grub-core/Makefile.core.def (newc): New module.
8137 (odc): Likewise.
8138 (cpio_be): Likewise.
8139 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
8140 (MAGIC): Likewise.
8141 (MAGIC2): Likewise.
8142 (head) [MODE_ODC]: Adapt for the format.
8143 (head) [MODE_NEWC]: Likewise.
8144 (head) [!MODE_*]: Write fields of interest as arrays.
8145 (MAGIC_USTAR): Removed.
8146 (read_number) [MODE_NEWC]: Change to hex.
8147 (read_number) [!MODE_*]: Parse binary arrays.
8148 (grub_cpio_find_file): Factor out the code for better structure and
8149 always use read_number.
8150 (grub_cpio_mount): Use MAGIC and MAGIC2.
8151 (grub_cpio_dir): Exit on first hook non-0 return.
8152 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
8153 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
8154 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
8155 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
8156 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
8157 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
8158 * grub-core/fs/newc.c: New file.
8159 * grub-core/fs/odc.c: Likewise.
8160 * grub-core/fs/cpio_be.c: Likewise.
8161
8162 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8163
8164 Fix handling of tar numbers occupying the whole field.
8165
8166 * grub-core/fs/cpio.c (read_number): New function.
8167 (grub_cpio_find_file): Use read_number instead of strtoull.
8168
8169 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8170
8171 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
8172 occupying the whole field size.
8173
8174 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
8175
8176 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
8177
8178 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8179
8180 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
8181
8182 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
8183
8184 * grub-core/Makefile.core.def (lzma_decompress): Add missing
8185 TARGET_IMG_LDFLAGS.
8186
8187 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8188
8189 * util/getroot.c (ESCAPED_PATH_MAX): New define.
8190 (mountinfo_entry): Increase the field size to take escaping into
8191 account.
8192 (find_root_device_from_libzfs): Add one byte to size of strings for
8193 security.
8194
8195 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8196
8197 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
8198 an assert.
8199 * util/grub-setup.c (setup): Likewise.
8200
8201 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8202
8203 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
8204 _LzmaDecodeA.
8205
8206 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8207
8208 * docs/grub.texi (Internationalisation): New section.
8209
8210 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8211
8212 * docs/grub.texi (Loopback booting): New section.
8213
8214 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
8215
8216 * util/grub-mkstandalone.in: Fix minor typo errors.
8217
8218 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
8219
8220 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
8221
8222 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
8223 net/icmp.c and net/icmp6.c.
8224 (http): New module.
8225 (priority_queue): Likewise.
8226 * grub-core/io/bufio.c: Rewritten.
8227 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
8228 TYPE_WITH_CONFIGFILE_OPTION.
8229 (legacy_commands): Add bootp and dhcp.
8230 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
8231 (grub_legacy_parse): Likewise.
8232 * grub-core/lib/priority_queue.c: New file.
8233 * grub-core/net/arp.c: Add missing license header.
8234 (arp_find_entry): Removed.
8235 (arp_find_entry): Likewise.
8236 (grub_net_arp_resolve): Rename to ...
8237 (grub_net_arp_send_request): ...this.
8238 (grub_net_arp_receive): New card argument.
8239 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
8240 Set router and DNS server.
8241 (grub_net_configure_by_dhcp_ack): Handle routing information.
8242 (grub_cmd_bootp): Set checksum.
8243 (grub_bootp_init): Remove net_dhcp.
8244 * grub-core/net/dns.c: New file.
8245 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
8246 completion.
8247 (get_card_packet): Handle allocation.
8248 (grub_efinet_findcards): Set mtu.
8249 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
8250 (get_card_packet): Handle allocation.
8251 (emucard): Set mtu.
8252 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
8253 (GRUB_MOD_INIT): Set mtu.
8254 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
8255 mtu.
8256 (get_card_packet): Handle allocation.
8257 (grub_ofnet_findcards): Set mtu.
8258 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
8259 assert.
8260 (grub_net_recv_ethernet_packet): Handle IPv6.
8261 * grub-core/net/http.c: New file.
8262 * grub-core/net/icmp.c: Likewise.
8263 * grub-core/net/icmp6.c: Likewise.
8264 * grub-core/net/ip.c (ip6addr): New type.
8265 (ip6hdr): Likewise.
8266 (reassemble): Likewise.
8267 (cmp): New function.
8268 (reassembles): New variable.
8269 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
8270 (id): New variable.
8271 (send_fragmented): New function.
8272 (grub_net_send_ip_packet): Rename to ...
8273 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
8274 Handle non-UDP.
8275 (grub_net_recv_ip_packets): Rename to ...
8276 (handle_dgram): ... this. Check checksum. Handle non-UDP.
8277 (free_rsm): New function.
8278 (free_old_fragments): Likewise.
8279 (grub_net_recv_ip4_packets): New function.
8280 (grub_net_send_ip6_packet): Likewise.
8281 (grub_net_send_ip_packet): Likewise.
8282 (grub_net_recv_ip6_packets): Likewise.
8283 (grub_net_recv_ip_packets): Likewise.
8284 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
8285 (LINK_LAYER_CACHE_SIZE): New const.
8286 (link_layer_find_entry): New function.
8287 (grub_net_link_layer_add_address): Likewise.
8288 (grub_net_link_layer_resolve_check): Likewise.
8289 (grub_net_link_layer_resolve): Likewise.
8290 (grub_net_ipv6_get_slaac): Likewise.
8291 (grub_net_ipv6_get_link_local): Likewise.
8292 (grub_cmd_ipv6_autoconf): Likewise.
8293 (parse_ip): Handle one number representation.
8294 (parse_ip6): New functoion.
8295 (match_net): Handle IPv6.
8296 (grub_net_resolve_address): Handle IPv6 and DNS.
8297 (grub_net_resolve_net_address): Handle IPv6.
8298 (route_cmp): New function.
8299 (grub_net_route_address): Find best route.
8300 (grub_net_addr_to_str): Handle IPv6.
8301 (grub_net_addr_cmp): New function.
8302 (grub_net_add_addr): Register local route.
8303 (print_net_address): Handle net address.
8304 (grub_net_poll_cards): Retransmit TCP.
8305 (grub_net_poll_cards_idle_real): Likewise.
8306 (have_ahead): New function.
8307 (grub_net_seek_real): Use underlying seek.
8308 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
8309 * grub-core/net/tcp.c: New file.
8310 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
8311 (cmp): New function.
8312 (ack): Likewise.
8313 (tftp_receive): Handle unordered input.
8314 (destroy_pq): New function.
8315 (tftp_close): Close pq.
8316 * grub-core/net/udp.c: Put missing license header.
8317 (grub_net_udp_socket): New function.
8318 (udp_socket_register): Likewise.
8319 (grub_net_udp_close): Likewise.
8320 (grub_net_recv_udp_packet): Check checksum.
8321 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
8322 * include/grub/misc.h (grub_memchr): New function.
8323 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
8324 (grub_net_card_driver): Return buf in recv.
8325 (grub_net_slaac_mac_list): New struct.
8326 (grub_network_level_protocol_id): Add ipv6.
8327 (grub_net_network_level_addr): Likewise.
8328 (grub_net_network_level_net_addr): Likewise.
8329 (grub_net_app_protocol): Add seek.
8330 (grub_net_socket): Removed.
8331 (grub_net_sockets): Likewise.
8332 (grub_net_socket_register): Likewise.
8333 (grub_net_socket_unregister): Likewise.
8334 (FOR_NET_SOCKETS): Likewise.
8335 (grub_net_add_addr): Add const.
8336 (GRUB_NET_BOOTP_*): New enum.
8337 (grub_net_addr_cmp): New proto.
8338 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
8339 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
8340 (grub_net_hwaddr_to_str): NEw proto.
8341 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
8342 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
8343 (grub_dns_init): New proto.
8344 (grub_dns_fini): Likewise.
8345 (grub_net_tcp_retransmit): Likewise.
8346 (grub_net_link_layer_add_address): Likewise.
8347 (grub_net_link_layer_resolve_check): Likewise.
8348 (grub_net_link_layer_resolve): Likewise.
8349 (grub_net_dns_lookup): Likewise.
8350 (grub_net_add_dns_server): Likewise.
8351 (grub_net_remove_dns_server): Likewise.
8352 (GRUB_NET_TRIES): New const.
8353 (GRUB_NET_INTERVAL): Likewise.
8354 * include/grub/net/arp.h: Mostly rewritten.
8355 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
8356 * include/grub/net/ip.h: Mostly rewritten.
8357 * include/grub/net/netbuff.h: Indent.
8358 * include/grub/net/tcp.h: New file.
8359 * include/grub/net/udp.h: Mostly rewritten.
8360 * include/grub/priority_queue.h: New file.
8361 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
8362 (grub_swap_bytes64_compile_time): Likewise.
8363 (grub_cpu_to_be16_compile_time): Likewise.
8364 (grub_cpu_to_be32_compile_time): Likewise.
8365 (grub_cpu_to_be64_compile_time): Likewise.
8366 (grub_be_to_cpu64_compile_time): Likewise.
8367
8368 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
8369
8370 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
8371 UINT_TO_PTR with cast.
8372
8373 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8374
8375 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
8376 don't use them.
8377
8378 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8379
8380 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
8381 already there.
8382
8383 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8384
8385 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
8386 confusing ipxe.
8387
8388 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8389
8390 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
8391 Add missing const attribute.
8392 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
8393 Likewise.
8394 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
8395 Likewise.
8396
8397 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8398
8399 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
8400 misaligned access.
8401 (serpent_setkey): Likewise.
8402 (serpent_encrypt_internal): Likewise.
8403 (serpent_decrypt_internal): Likewise.
8404 (serpent_encrypt): Don't put an alignment-increasing cast.
8405 (serpent_decrypt): Likewise.
8406 (serpent_test): Likewise.
8407
8408 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8409
8410 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
8411
8412 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8413
8414 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
8415
8416 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
8417 grub_addr_t casts.
8418 (PTR_TO_UINT64): Likewise.
8419 (PTR_TO_UINT32): Likewise.
8420
8421 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8422
8423 * util/grub-mkimage.c (generate_image): Decrease the higher limit
8424 because of stack.
8425 * util/grub-setup.c (setup): Don't add redundancy past the higher load
8426 limit.
8427
8428 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8429
8430 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
8431 text_width > available width a bit more gracefully.
8432
8433 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8434
8435 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
8436 current address calculation.
8437
8438 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8439
8440 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
8441 stack.
8442 (encode_block): Likewise.
8443
8444 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8445
8446 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
8447 certainety.
8448
8449 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8450
8451 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
8452 non-RS part to avoid RS messing with GDT.
8453 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
8454 Increase to suit in realmode routines.
8455
8456 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8457
8458 * grub-core/kern/i386/realmode.S: Increase alignment.
8459 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
8460
8461 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8462
8463 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
8464 be deterministic.
8465 (syndroms): Compute 0 syndrom.
8466 (rs_recover): Use 0 syndrom.
8467
8468 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8469
8470 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
8471
8472 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8473
8474 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
8475 brackets.
8476
8477 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8478
8479 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
8480 account.
8481 (get_top_pad): Likewise.
8482 (get_right_pad): Likewise.
8483 (get_bottom_pad): Likewise.
8484
8485 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8486
8487 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
8488
8489 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8490
8491 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
8492 attribute as the structure isn't guaranteed to be properly aligned.
8493 (grub_efi_pci_device_path): Likewise.
8494 (grub_efi_pccard_device_path): Likewise.
8495 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
8496 specify the size of `memory_type'.
8497 (grub_efi_vendor_device_path): Likewise.
8498 (grub_efi_controller_device_path): Likewise.
8499 (grub_efi_acpi_device_path): Likewise.
8500 (grub_efi_expanded_acpi_device_path): Likewise.
8501 (grub_efi_atapi_device_path): Likewise.
8502 (grub_efi_scsi_device_path): Likewise.
8503 (grub_efi_fibre_channel_device_path): Likewise.
8504 (grub_efi_1394_device_path): Likewise.
8505 (grub_efi_usb_device_path): Likewise.
8506 (grub_efi_usb_class_device_path): Likewise.
8507 (grub_efi_i2o_device_path): Likewise.
8508 (grub_efi_mac_address_device_path): Likewise.
8509 (grub_efi_ipv4_device_path): Likewise.
8510 (grub_efi_ipv6_device_path): Likewise.
8511 (grub_efi_infiniband_device_path): Likewise.
8512 (grub_efi_uart_device_path): Likewise.
8513 (grub_efi_vendor_messaging_device_path): Likewise.
8514 (grub_efi_hard_drive_device_path): Likewise.
8515 (grub_efi_cdrom_device_path): Likewise.
8516 (grub_efi_vendor_media_device_path): Likewise.
8517 (grub_efi_file_path_device_path): Likewise.
8518 (grub_efi_protocol_device_path): Likewise.
8519 (grub_efi_piwg_device_path): Likewise.
8520 (grub_efi_bios_device_path): Likewise.
8521
8522 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8523
8524 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
8525 (grub_ucs4_to_utf8_alloc): Likewise.
8526 (grub_ucs4_to_utf8): Likewise.
8527 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
8528 (grub_ucs4_to_utf8_alloc): Likewise.
8529
8530 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8531
8532 AFFS never uses unicode.
8533
8534 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
8535 (grub_latin1_to_utf8): New inline function.
8536 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
8537
8538 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8539
8540 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
8541 overflow.
8542
8543 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8544
8545 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
8546 (grub_squash_dirent_header): Likewise.
8547 (read_chunk): Don't double swap.
8548 (grub_squash_iterate_dir): Fix swap sizes.
8549
8550 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8551
8552 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
8553
8554 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8555
8556 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
8557 (grub_hfs_iterate_dir): Likewise.
8558
8559 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8560
8561 Fix video on platforms where unaligned access is forbidden.
8562 Make several optimisations while on it.
8563
8564 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
8565 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8566 (grub_video_fbblit_replace_32bit_1bit): Likewise.
8567 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8568 Disable.
8569 (grub_video_fbblit_replace_16bit_1bit):
8570 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8571 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8572 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
8573 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
8574 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8575 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8576 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
8577 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
8578 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
8579 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
8580 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
8581 (grub_video_fbblit_replace_index_RGB888): Likewise.
8582 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
8583 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
8584 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
8585 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
8586 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
8587 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8588 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8589 Disable.
8590 (grub_video_fbblit_blend_XXX565_1bit):
8591 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8592 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
8593 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
8594 void *.
8595 * grub-core/video/fb/video_fb.c (common_blitter)
8596 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
8597 (grub_video_fb_create_render_target_from_pointer)
8598 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8599 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
8600 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
8601 definition.
8602 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
8603
8604 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8605
8606 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
8607 HH22 and HM10 relocations.
8608
8609 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8610
8611 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
8612
8613 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8614
8615 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
8616 allocation succeeded.
8617
8618 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8619
8620 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
8621 argument a u8 pointer. All users updated.
8622 Handle unaligned buffers.
8623
8624 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8625
8626 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
8627 add_part to workaround compiler bug.
8628
8629 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8630
8631 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
8632
8633 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8634
8635 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
8636 Reserve alignment invariants.
8637 (grub_multiboot_load): Likewise.
8638 (retrieve_video_parameters): Likewise.
8639 (grub_multiboot_make_mbi): Likewise.
8640
8641 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8642
8643 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
8644 incorrect pointer.
8645
8646 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8647
8648 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
8649 (grub_pata_pio_write): Likewise.
8650
8651 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8652
8653 Add noreturn attributes and remove unreachable code.
8654
8655 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
8656 code.
8657 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
8658 code. Mark as noreturn.
8659 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
8660 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
8661 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
8662 unreachable code.
8663 * grub-core/kern/main.c (grub_main): Mark as noreturn.
8664 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
8665 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
8666 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
8667 * include/grub/kernel.h (grub_main): Mark as noreturn.
8668 * include/grub/reader.h (grub_rescue_run): Likewise.
8669
8670 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8671
8672 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
8673 redundant declaration.
8674
8675 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8676
8677 * include/grub/net.h (grub_net_network_level_interfaces): Remove
8678 redundant declaration.
8679 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
8680
8681 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8682
8683 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
8684 to ensure alignment.
8685 (grub_hdparm_print_identify): Make argument uint16 * to ensure
8686 alignment. Ensure tmp alignment.
8687 (grub_cmd_hdparm): Ensure buf alignment.
8688 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
8689 to ensure alignment.
8690 (grub_ata_dumpinfo): Ensure text alignment.
8691 (grub_atapi_identify): Preserve alignment invariant.
8692 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
8693
8694 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8695
8696 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
8697 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
8698 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
8699 * include/grub/misc.h (grub_reboot)
8700 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
8701 (grub_halt) [__mips__]: Likewise.
8702
8703 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8704
8705 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
8706 Remove redundant declaration.
8707 (grub_mmap_get_post64): Likewise.
8708 (grub_mmap_get_upper): Likewise.
8709 (grub_mmap_get_lower): Likewise.
8710
8711 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8712
8713 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
8714 uint32_t * to ensure alignment.
8715 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
8716
8717 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8718
8719 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
8720 uint16_t * to ensure alignment.
8721 (sun_pc_partition_map_iterate): Make `block' a union to ensure
8722 alignment.
8723
8724 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8725
8726 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
8727 to ensure alignment.
8728 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
8729
8730 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8731
8732 * grub-core/fs/ntfs.c (u16at): Make into inline function.
8733 Handle unaligned pointers.
8734 (u32at): Likewise.
8735 (u64at): Likewise.
8736 (fixup): Use byte access instead of v16at.
8737 (find_attr): Fix imporper usage of v32at.
8738 (read_data): Likewise.
8739 (list_file): Handle byte-swapping and unaligned strings.
8740 (grub_ntfs_label): Likewise.
8741
8742 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8743
8744 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
8745 as it's not necessarily aligned.
8746
8747 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8748
8749 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
8750 redundant declaration.
8751 (grub_serial_init): Likewise.
8752 (grub_terminfo_init): Likewise.
8753
8754 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8755
8756 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
8757 function.
8758 (ZAP_HASH_IDX): Likewise.
8759 (ZAP_LEAF_HASH_SHIFT): Likewise.
8760 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
8761 (LEAF_HASH): Likewise.
8762 (ZAP_LEAF_NUMCHUNKS): Likewise.
8763 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
8764 alignment invariants. Return pointer. All users updated.
8765 (ZAP_LEAF_ENTRY): Make into inline function.
8766 (NBBY): Removed.
8767 (xor): LIkewise.
8768 (xor_out): Use grub_crypto_xor.
8769 (dnode_get_path): Use grub_get_unaligned.
8770 (nvlist_find_value): Likewise.
8771 (grub_zfs_nvlist_lookup_uint64): Likewise.
8772 (grub_zfs_nvlist_lookup_string): Likewise.
8773 (get_nvlist_size): Likewise.
8774 (grub_zfs_open): Likewise.
8775 (fill_fs_info): Likewise.
8776 (grub_zfs_dir): Likewise.
8777 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
8778 alignment invariants.
8779 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
8780 necessarily aligned.
8781
8782 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8783
8784 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
8785
8786 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8787
8788 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
8789 arithmetic to conserve alignment invariants.
8790
8791 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8792
8793 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
8794 redundant declaration.
8795 (grub_efiemu_mm_obtain_request): Likewise.
8796 (grub_efiemu_prepare): Likewise.
8797
8798 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8799
8800 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
8801 to match types.
8802
8803 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8804
8805 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
8806 case of aunaligned recptr.
8807 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
8808 alignment.
8809 (grub_hfsplus_btree_search): Handle unaligned index.
8810
8811 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8812
8813 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
8814 to get freetag and skip.
8815
8816 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8817
8818 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
8819 array.
8820 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
8821 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
8822
8823 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8824
8825 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
8826 name for checksum and fix allocation algorithm.
8827
8828 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8829
8830 * include/grub/types.h (grub_properly_aligned_t): New type.
8831 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
8832 (grub_get_unaligned16): Add explicit casts.
8833 (grub_get_unaligned32): Likewise.
8834 (grub_get_unaligned64): Likewise.
8835 (grub_set_unaligned16): New function.
8836 (grub_set_unaligned32): Likewise.
8837
8838 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8839
8840 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8841
8842 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8843
8844 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
8845 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
8846 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
8847
8848 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8849
8850 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
8851 conditionals.
8852
8853 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8854
8855 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
8856 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
8857
8858 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8859
8860 Unify and improve RAID and crypto xor.
8861
8862 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
8863 changed to grub_crypto_xor
8864 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
8865 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
8866 Use bigger types when possible.
8867
8868 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8869
8870 * grub-core/disk/raid.c (scan_devices): Fix condition.
8871
8872 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8873
8874 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
8875 Make name a const ptr.
8876
8877 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8878
8879 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
8880 first argument a const pointer.
8881 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
8882 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
8883 proto.
8884 (grub_children_iterate): Likewise.
8885 (grub_machine_mmap_iterate): Remove redundant declaration.
8886
8887 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8888
8889 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
8890 (grub_cmd_acpi) [!x86]: Disable EBDA.
8891
8892 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8893
8894 Enable UTF8 in gnulib regexp.
8895
8896 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
8897 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
8898 (isupper): Use grub_isupper.
8899 (isascii): New inline function.
8900 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
8901 * grub-core/lib/posix_wrap/wctype.h: Likewise.
8902 * grub-core/normal/charset.c (grub_utf8_process): New function.
8903 (grub_utf8_to_utf16): Use grub_utf8_process.
8904 (grub_encode_utf8_character): New function.
8905 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
8906 * include/grub/charset.h (grub_utf8_process): New declaration.
8907 (grub_encode_utf8_character): Likewise.
8908 * include/grub/misc.h (grub_islower): New inline function.
8909 (grub_isupper): Likewise.
8910 (grub_strchrsub): Moved down to fix the definitions.
8911
8912 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8913
8914 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
8915 specification.
8916
8917 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8918
8919 * include/grub/loader.h (grub_loader_register_preboot_hook):
8920 Use struct preboot * and not void * for handle. All users updated.
8921 (grub_loader_unregister_preboot_hook): Likewise.
8922
8923 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8924
8925 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
8926 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
8927 UTF-16-BE. All users updated.
8928 (grub_hfsplus_cmp_catkey): Fix unicode handling.
8929 (grub_hfsplus_iterate_dir): Likewise.
8930 (grub_hfsplus_label): Likewise.
8931
8932 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8933
8934 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
8935
8936 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
8937
8938 Add missing const qualifiers.
8939
8940 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
8941 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
8942 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
8943 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
8944 (grub_lvm_check_flag): Likewise.
8945 * grub-core/efiemu/i386/coredetect.c
8946 (grub_efiemu_get_default_core_name): Likewise
8947 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
8948 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
8949 * grub-core/fs/ntfs.c (fixup): Likewise.
8950 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
8951 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
8952 (fzap_lookup): Likewise.
8953 (zap_lookup): Likewise.
8954 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
8955 * grub-core/lib/legacy_parse.c (check_option): Likewise.
8956 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
8957 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
8958 (grub_freebsd_add_meta_module): Likewise.
8959 (grub_cmd_freebsd_module): Likewise.
8960 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
8961 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
8962 (grub_xnu_writetree_get_size): Likewise.
8963 (grub_xnu_writetree_toheap_real): Likewise.
8964 (grub_xnu_find_key): Likewise.
8965 (grub_xnu_create_key): Likewise.
8966 (grub_xnu_create_value): Likewise.
8967 (grub_xnu_register_memory): Likewise.
8968 (grub_xnu_check_os_bundle_required): Likewise.
8969 (grub_xnu_scan_dir_for_kexts): Likewise.
8970 (grub_xnu_load_kext_from_dir): Likewise.
8971 * grub-core/normal/color.c (color_list): Likewise.
8972 * grub-core/normal/completion.c (current_word): Likewise.
8973 * grub-core/normal/menu_entry.c (insert_string): Likewise.
8974 * grub-core/term/serial.c (grub_serial_find): Likewise.
8975 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
8976 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
8977 Likewise.
8978 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
8979 (grub_freebsd_add_meta_module): Likewise.
8980 * include/grub/lib/arg.h (grub_arg_option): Likewise.
8981 * include/grub/net.h (grub_net_card_driver): Likewise.
8982 (grub_net_card): Likewise.
8983 (grub_net_app_protocol): Likewise.
8984 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
8985 * include/grub/serial.h (grub_serial_find): Likewise.
8986 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
8987 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
8988 (grub_xnu_create_value): Likewise.
8989 (grub_xnu_find_key): Likewise.
8990 (grub_xnu_scan_dir_for_kexts): Likewise.
8991 (grub_xnu_load_kext_from_dir): Likewise.
8992
8993 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
8994 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
8995 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
8996 Moved from here ...
8997 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
8998
8999 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
9000
9001 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
9002
9003 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
9004
9005 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
9006 (read_device): Fix size calculation.
9007
9008 2011-11-25 Robert Millan <rmh@gnu.org>
9009
9010 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
9011 (find_root_device_from_libzfs): Add zpool output parser to be used
9012 as fallback when libzfs isn't available.
9013
9014 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
9015
9016 * po/Makefile.in.in: Add missing escape-continuation.
9017
9018 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
9019
9020 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
9021
9022 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9023
9024 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
9025
9026 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9027
9028 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
9029
9030 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9031
9032 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
9033
9034 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9035
9036 * grub-core/lib/adler32.c: Add missing license specification.
9037 * grub-core/lib/crc64.c: Likewise.
9038 * grub-core/loader/i386/pc/plan9.c: Likewise.
9039 * grub-core/partmap/plan.c: Likewise.
9040
9041 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
9042
9043 Add facility to debug GRUB with gdb under qemu.
9044
9045 * grub-core/gdb_grub.in: New file.
9046 * grub-core/gmodule.pl.in: Likewise.
9047 * grub-core/Makefile.core.def (gmodule.pl): New script.
9048 (gdb_grub): Likewise.
9049
9050 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9051
9052 * util/grub-mount.c (argp_parser): Accept relative pathes.
9053 * util/grub-fstest.c (argp_parser): Likewise.
9054
9055 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9056
9057 Plan9 support.
9058
9059 * Makefile.util.def (libgrubmods): Add
9060 grub-core/partmap/plan.c.
9061 * docs/grub.texi: Notice Plan9 support.
9062 * grub-core/Makefile.core.def (plan9): New module.
9063 (part_plan): Likewise.
9064 * grub-core/loader/i386/pc/plan9.c: New file.
9065 * grub-core/partmap/plan.c: Likewise.
9066 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
9067 define.
9068 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
9069 * include/grub/mm.h (grub_extend_alloc): New inline function.
9070
9071 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9072
9073 Make Reed-Solomon faster by using power of generator representation of
9074 GF(256)*.
9075
9076 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
9077 (gf_double_t): Likewise.
9078 (gf_invert): Removed.
9079 (gf_powx): New array.
9080 (gf_powx_inv): Likewise.
9081 (scratch): Move higher.
9082 (gf_reduce): Removed.
9083 (gf_mul): Use powx.
9084 (gf_invert): Likewise.
9085 (init_inverts): Replaced with ...
9086 (init_powx): ...this. All users updated.
9087 (pol_evaluate): Replace multiplications with additions.
9088 (rs_encode): Likewise.
9089 (gauss_eliminate): Call gf_invert.
9090 (grub_reed_solomon_add_redundancy): Call init_powx.
9091 (grub_reed_solomon_recover): Call init_powx unconditionally.
9092
9093 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9094
9095 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
9096
9097 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9098
9099 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
9100 disk->partiton for safety.
9101
9102 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9103
9104 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
9105 Fix a memory leak.
9106 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
9107
9108 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9109
9110 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
9111
9112 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9113
9114 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
9115
9116 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9117
9118 Fix spaces handling in proc/self/mountinfo.
9119
9120 * util/getroot.c (unescape): New function.
9121 (grub_find_root_device_from_mountinfo): Use unescape.
9122
9123 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9124
9125 Support ZFS embedding.
9126
9127 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
9128 (grub_zfs_fs): Register grub_zfs_embed.
9129
9130 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9131
9132 Fix MIPS compilation.
9133
9134 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
9135 * include/grub/offsets.h: Rename decompressor fields from
9136 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
9137 * util/grub-mkimage.c (image_targets): Use new names.
9138
9139 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9140
9141 Defer multiboot device parsing until we're in compressed part.
9142
9143 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
9144 bsd_part. setdevice has fallen into disuse.
9145 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
9146 (bsd_part): Likewise.
9147 (boot_dev): New variable.
9148 (multiboot_trampoline): Don't parse multiboot device.
9149 Pass multiboot device in %edx.
9150 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
9151 grub_boot_device.
9152 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
9153 Likewise.
9154 * grub-core/kern/i386/pc/startup.S: Save edx.
9155 (grub_boot_drive): Removed.
9156 (grub_install_dos_part): Likewise.
9157 (grub_install_bsd_part): Likewise.
9158 (grub_boot_device): New variable.
9159 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
9160 (grub_install_bsd_part): Likewise.
9161 (grub_boot_drive): Likewise.
9162 (grub_boot_device): New variable.
9163 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
9164 Removed.
9165 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
9166 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
9167 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
9168 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
9169 * util/grub-install.in: Remove redundant condition.
9170
9171 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9172
9173 Fix bug introduced by previous commit.
9174
9175 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
9176
9177 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9178
9179 Use decompressors framework on i386-pc. It increases core size
9180 by 46 bytes but improves compatibility and maintainability.
9181
9182 * grub-core/Makefile.core.def (lzma_decompress): New image.
9183 (kernel): Add i386_pc_ldflags.
9184 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
9185 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
9186 to real_to_prot, prot_to_real and device info.
9187 * include/grub/offsets.h: Renamed decompressor offsets.
9188 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
9189 (image_target_desc): Remove raw_size and rename decompressor fields.
9190 (compress_kernel): Handle lzma.
9191 (generate_image): Handle decompressors on i386-pc.
9192
9193 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9194
9195 * configure.ac: Add -fno-asynchronous-unwind-tables.
9196
9197 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9198
9199 Move assembly code to C by using intwrap. It increases core size
9200 by 88 bytes but improves compatibility and maintainability.
9201
9202 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
9203 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
9204 ... here. Translated to C.
9205 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
9206 * grub-core/term/i386/pc/console.c (grub_console_getkey):
9207 ... here. Translated to C.
9208 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
9209 * grub-core/term/i386/pc/console.c (grub_console_getxy):
9210 ... here. Translated to C.
9211 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
9212 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
9213 ... here. Translated to C.
9214 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
9215 * grub-core/term/i386/pc/console.c (grub_console_cls):
9216 ... here. Translated to C.
9217 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
9218 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
9219 ... here. Translated to C.
9220 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
9221 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
9222 Translated to C.
9223 * grub-core/term/i386/pc/console.c (int10_9): New function.
9224 (grub_console_putchar): Likewise.
9225 * include/grub/i386/pc/console.h: Removed the not anymore shared
9226 functions.
9227
9228 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9229
9230 Move grub_chainloader_real_boot out of the kernel.
9231
9232 * grub-core/Makefile.am: Remove machine/loader.h.
9233 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
9234 Removed.
9235 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
9236 variable.
9237 (grub_relocator16_keep_a20_enabled): Likewise.
9238 (grub_relocator16_boot): Fill new variables.
9239 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
9240 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
9241 relocator.
9242 (grub_chainloader_unload): Likewise.
9243 (grub_chainloader_cmd): Likewise.
9244 * include/grub/i386/pc/loader.h: Removed.
9245 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
9246 and esi. All initialisers updated.
9247
9248 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9249 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
9250
9251 * Makefile.util.def (grub-mount): New util.
9252 * .bzrignore: Add grub-mount.
9253 * configure.ac: Check for fuse and enable grub-mount if available.
9254 * docs/man/grub-mount.h2m: New file.
9255 * util/grub-mount.c: Likewise.
9256
9257 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9258
9259 * grub-core/commands/efi/fixvideo.c: Gettextize.
9260 * grub-core/commands/hashsum.c: Likewise.
9261 * grub-core/commands/i386/cmostest.c: Likewise.
9262 * grub-core/commands/i386/pc/drivemap.c: Likewise.
9263 * grub-core/commands/i386/pc/lsapm.c: Likewise.
9264 * grub-core/commands/i386/pc/sendkey.c: Likewise.
9265 * grub-core/commands/lsmmap.c: Likewise.
9266 * grub-core/commands/menuentry.c: Likewise.
9267 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
9268 * grub-core/commands/setpci.c: Likewise.
9269 * grub-core/loader/i386/bsd.c: Likewise.
9270 * grub-core/loader/i386/linux.c: Likewise.
9271 * util/getroot.c: Likewise.
9272 * util/grub-editenv.c: Likewise.
9273 * util/grub-fstest.c: Likewise.
9274 * util/grub-mkfont.c: Likewise.
9275 * util/grub-mkimage.c: Likewise.
9276 * util/grub-mkpasswd-pbkdf2.c: Likewise.
9277 * util/grub-pe2elf.c: Likewise.
9278 * util/grub-probe.c: Likewise.
9279 * util/grub-setup.c: Likewise.
9280 * util/ieee1275/ofpath.c: Likewise.
9281 * util/misc.c: Likewise.
9282 * util/raid.c: Likewise.
9283
9284 2011-11-11 Robert Millan <rmh@gnu.org>
9285
9286 * util/getroot.c (grub_util_get_geom_abstraction): Remove
9287 __attribute__((unused)) from `os_dev', which *is* being used.
9288
9289 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9290
9291 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
9292 forgotten define.
9293 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
9294 GRUB_IA64_DL_GOT_ALIGN.
9295 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
9296 GRUB_IA64_DL_TRAMP_ALIGN.
9297
9298 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9299
9300 Replace grub_fatal with normal errors in i386 linux loader.
9301
9302 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
9303 (allocate_pages): Check find_efi_mmap_size return value.
9304 (grub_e820_add_region): Return error.
9305 (grub_linux_boot): Check mmap return value.
9306
9307 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9308
9309 * grub-core/commands/acpihalt.c: Gettextized.
9310 * grub-core/commands/cacheinfo.c: Likewise.
9311 * grub-core/commands/cmp.c: Likewise.
9312 * grub-core/commands/efi/loadbios.c: Likewise.
9313 * grub-core/commands/gptsync.c: Likewise.
9314 * grub-core/commands/ieee1275/suspend.c: Likewise.
9315 * grub-core/commands/legacycfg.c: Likewise.
9316 * grub-core/commands/memrw.c: Likewise.
9317 * grub-core/commands/minicmd.c: Likewise.
9318 * grub-core/commands/parttool.c: Likewise.
9319 * grub-core/commands/time.c: Likewise.
9320 * grub-core/commands/videoinfo.c: Likewise.
9321 * grub-core/disk/geli.c: Likewise.
9322 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
9323 * grub-core/disk/luks.c: Likewise.
9324 * grub-core/disk/lvm.c: Likewise.
9325 * grub-core/font/font_cmd.c: Likewise.
9326 * grub-core/fs/zfs/zfscrypt.c: Likewise.
9327 * grub-core/fs/zfs/zfsinfo.c: Likewise.
9328 * grub-core/gfxmenu/view.c: Likewise.
9329 * grub-core/kern/emu/hostdisk.c: Likewise.
9330 * grub-core/kern/emu/main.c: Likewise.
9331 * grub-core/kern/emu/misc.c: Likewise.
9332 * grub-core/kern/emu/mm.c: Likewise.
9333 * grub-core/kern/mips/arc/init.c: Likewise.
9334 * grub-core/kern/mips/loongson/init.c: Likewise.
9335 * grub-core/kern/partition.c: Likewise.
9336 * grub-core/lib/i386/halt.c: Likewise.
9337 * grub-core/lib/mips/arc/reboot.c: Likewise.
9338 * grub-core/lib/mips/loongson/reboot.c: Likewise.
9339 * grub-core/loader/i386/pc/chainloader.c: Likewise.
9340 * grub-core/loader/i386/xnu.c: Likewise.
9341 * grub-core/loader/multiboot.c: Likewise.
9342 * grub-core/net/bootp.c: Likewise.
9343 * grub-core/net/net.c: Likewise.
9344 * grub-core/normal/term.c: Likewise.
9345 * grub-core/partmap/bsdlabel.c: Likewise.
9346 * grub-core/parttool/msdospart.c: Likewise.
9347 * grub-core/term/gfxterm.c: Likewise.
9348 * grub-core/term/terminfo.c: Likewise.
9349 * grub-core/video/i386/pc/vbe.c: Likewise.
9350 * util/grub-menulst2cfg.c: Likewise.
9351 * util/grub-mkdevicemap.c: Likewise.
9352 * util/grub-mklayout.c: Likewise.
9353 * util/grub-mkrelpath.c: Likewise.
9354 * util/grub-script-check.c: Likewise.
9355 * util/ieee1275/grub-ofpathname.c: Likewise.
9356 * util/resolve.c: Likewise.
9357
9358 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9359
9360 Support %1$d syntax.
9361
9362 * tests/printf_unit_test.c: New file.
9363 * Makefile.util.def (printf_test): New test.
9364 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
9365
9366 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9367
9368 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
9369 fix.
9370
9371 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9372
9373 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
9374 dprintf.
9375 * grub-core/font/font.c (grub_font_load): Likewise.
9376
9377 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9378
9379 * util/grub-macho2img.c: Add comment concerning gettext.
9380 * grub-core/lib/legacy_parse.c: Likewise.
9381
9382 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9383
9384 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
9385 (grub_xvasprintf): Likewise.
9386
9387 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9388
9389 Add const keyword to grub_env_get and gettextize week days.
9390
9391 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
9392 (grub_read_hook_datetime): Return const char *.
9393 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
9394 updated.
9395 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
9396 Mark for gettext.
9397 (grub_get_weekday_name): Return const char *. Call gettext.
9398 * grub-core/script/argv.c (grub_script_argv_append): Receive const
9399 char * and len as the argument. All users updated.
9400 (grub_script_argv_split_append): Receive const char *.
9401 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
9402 * include/grub/env.h (grub_env_get): Likewise.
9403 (grub_env_read_hook_t): Return const char *.
9404 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
9405 (grub_script_argv_split_append): Likewise.
9406
9407 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9408
9409 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
9410
9411 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9412
9413 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
9414 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
9415
9416 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9417
9418 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
9419 Fix prototype.
9420
9421 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9422
9423 Fix mips compilation.
9424
9425 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
9426 normal decoder.
9427 (hashes): Use in embed decoder as well (for sizes).
9428 (dec_stream_header): Fix embed decompressor logic.
9429 (dec_stream_footer): Likewise.
9430
9431 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9432
9433 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
9434 an error and not a fatal on unrecognised relocation types.
9435
9436 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9437
9438 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
9439 Issue error rather than printf on unknown arguments.
9440
9441 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9442
9443 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
9444 Make buf a const.
9445
9446 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9447
9448 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
9449 Fix module name.
9450
9451 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9452
9453 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
9454 leftover debug printf.
9455
9456 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9457
9458 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
9459
9460 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9461
9462 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
9463 A stylistic fix.
9464
9465 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9466
9467 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
9468
9469 2011-11-10 Shea Levy <slevy@tieronedesign.com>
9470
9471 Allow all modules to perform serial IO
9472
9473 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
9474 * include/grub/serial.h (grub_serial_port_configure): New inline
9475 function.
9476 (grub_serial_port_fetch): Likewise.
9477 (grub_serial_port_put): Likewise.
9478 (grub_serial_port_fini): Likewise.
9479 (grub_serial_find): New proto.
9480
9481 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9482
9483 Put symlink at the end of the node and fix a potential
9484 memory corruption.
9485
9486 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
9487 Make symlink into an array.
9488 (set_rockridge): Set have_symlink and alloc_dirents.
9489 (grub_iso9660_read_symlink): Use new layout.
9490 (grub_iso9660_iterate_dir): Fix memory corruption.
9491 Use new layout.
9492 (grub_iso9660_dir): Set have_symlink.
9493 (grub_iso9660_open): Likewise.
9494
9495 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9496
9497 Remove local keyword.
9498
9499 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
9500 (version_test_gt): Likewise.
9501 (version_find_latest): Likewise.
9502 (gettext_printf): Likewise.
9503 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
9504
9505 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9506
9507 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
9508
9509 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9510
9511 Fix ZFS memory and resource leaks.
9512
9513 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
9514 All users updated.
9515 Free type on exit.
9516 (fill_vdev_info): New parameter inserted. All users updated.
9517 (check_pool_label): Likewise.
9518 (scan_disk): Likewise.
9519 (scan_devices): Close non-inserted disks.
9520 (fzap_iterate): Free l.
9521 (unmount_device): Free children descripto memory.
9522
9523 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9524
9525 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
9526 argument (access out of bounds).
9527
9528 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9529
9530 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
9531 >= 6 drives.
9532
9533 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9534
9535 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
9536 Fix declaration.
9537
9538 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9539
9540 Fix several memory leaks.
9541
9542 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
9543 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
9544 (grub_cpio_dir): Likewise.
9545 * grub-core/fs/fat.c (grub_fat_label): Likewise.
9546 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
9547 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
9548 (grub_romfs_label): Likewise.
9549 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
9550 (squash_unmount): New function.
9551 (grub_squash_dir): Fix memory leak.
9552 (grub_squash_open): Likewise.
9553 (grub_squash_read): Likewise.
9554 (grub_squash_mtime): Likewise.
9555 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
9556 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
9557 * util/grub-fstest.c (fstest): Likewise.
9558
9559 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9560
9561 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
9562 avoid accessing beyond the array.
9563
9564 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9565
9566 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
9567
9568 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9569
9570 Several AFFS fixes.
9571
9572 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
9573 (GRUB_AFFS_FLAG_FFS): Removed.
9574 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
9575 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
9576 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
9577 (grub_fshelp_node): Make block 32-bit.
9578 Add block_cache and last_block_cache.
9579 (grub_affs_read_block): Fill and use block cache.
9580 (grub_affs_read_file): Removed.
9581 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
9582 boot block.
9583 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
9584 safety.
9585 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
9586 space.
9587 (grub_affs_close): Free block cache.
9588 (grub_affs_read): Use grub_fshelp_read_file directly.
9589
9590 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9591
9592 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
9593 with no error set.
9594
9595 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9596
9597 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
9598 used variable.
9599 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
9600 Likewise.
9601
9602 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9603
9604 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
9605
9606 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
9607 byteswap when needed.
9608
9609 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9610
9611 Fix FreeBSD compilation.
9612
9613 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
9614 to avoid circular dependency.
9615 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
9616 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
9617 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
9618
9619 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9620
9621 Fix ZFS crypto error types.
9622
9623 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
9624 (grub_gcm_decrypt): Likewise.
9625 (grub_zfs_load_key_real): Fix error code type. Handle possible error
9626 from PBKDF2.
9627
9628 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9629
9630 Illumos support.
9631
9632 * Makefile.util.def (10_illumos): New script.
9633 * configure.ac: Set COND_HOST_ILLUMOS.
9634 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
9635 Support Illumos calls.
9636 (find_partition_start) [__sun__]: Likewise.
9637 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
9638 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
9639 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
9640 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
9641 device.
9642 * util/grub-probe.c (probe) [__sun__]: Do character check.
9643 * util/grub.d/10_illumos.in: New file.
9644
9645 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9646
9647 Support escaped commas in hostdisk.
9648
9649 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
9650 (find_grub_drive): Use unescape_cmp.
9651 (make_device_name): Escape commas.
9652
9653 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9654
9655 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
9656
9657 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9658
9659 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
9660 variable.
9661
9662 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9663
9664 Support trampoline jumps on powerpc.
9665
9666 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
9667 __ia64__ path.
9668 (grub_dl_load_segments): Set mod->sz.
9669 (grub_dl_flush_cache): Flush whole space occupied by module, not just
9670 segments.
9671 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
9672 (jump): Likewise.
9673 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
9674 function.
9675 (trampoline): New struct.
9676 (trampoline_template): New const.
9677 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
9678 * include/grub/dl.h (grub_dl): Add sz element.
9679 [__powerpc__]: Follow __ia64__.
9680 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
9681 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
9682 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
9683 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
9684
9685 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9686
9687 ZFS crypto support.
9688
9689 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
9690 * grub-core/Makefile.core.def (zfscrypt): New module.
9691 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
9692 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
9693 it. All users updated.
9694 (grub_zfs_decrypt): New var.
9695 (grub_zfs_load_key): Likewise.
9696 (zio_checksum_functions): Add SHA256+MAC.
9697 (zio_checksum_verify): Handle incomplete comparison due to MAC.
9698 (zio_read): Handle encrypted blocks.
9699 (zap_verify): Remove incorrect check.
9700 (fzap_iterate): Handle non-standard fzap.
9701 (zap_iterate): Likewise.
9702 (zap_iterate_u64): New function.
9703 (dnode_get_fullpath): Load keys.
9704 * grub-core/fs/zfs/zfscrypt.c: New file.
9705 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
9706 (grub_crypto_ecb_encrypt): Make input const.
9707 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
9708 (grub_crypto_ecb_encrypt): Make input const.
9709 (GRUB_CIPHER_AES): New macro.
9710 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
9711 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
9712 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
9713 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
9714 prefix. All users updated.
9715 (grub_zfs_add_key): New proto.
9716 (grub_zfs_decrypt): Likewise.
9717 (grub_zfs_load_key): Likewise.
9718 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
9719 * util/grub-fstest.c (options): Add -K option.
9720 (argp_parser): Likewise.
9721
9722 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9723
9724 Support zle compression on ZFS.
9725
9726 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
9727 (decomp_table): Add zle.
9728 * include/grub/zfs/zio.h (zio_compress): Add zle.
9729
9730 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9731
9732 Support BtrFS embedding.
9733
9734 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
9735 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
9736 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
9737 * util/grub-setup.c (setup): Use fs embedding if available.
9738 Add additional sanity check.
9739
9740 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9741
9742 * util/grub-install.in: Fix condition for config_opt.
9743
9744 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9745
9746 Support third redundancy strip on raidz3.
9747
9748 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
9749 Return error on singularity. All users updated.
9750 (read_device): Don't stop on 3rd failure on raidz3.
9751
9752 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9753
9754 Support case-insensitive ZFS subvolumes.
9755
9756 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
9757 All users updated.
9758 (zap_hash): Likewise.
9759 (name_cmp): New function.
9760 (zap_leaf_array_equal): New parameter case_insensitive.
9761 All users updated.
9762 (zap_leaf_lookup): Likewise.
9763 (fzap_lookup): Likewise.
9764 (zap_lookup): Likewise.
9765 (dnode_get_path): New parameter case_insensitive. Retrieve case
9766 sensitiviness of a volume. All users updated.
9767 (dnode_get_fullpath): New parameter case_insensitive.
9768 All users updated.
9769 (grub_zfs_dir): Set info.case_insensitiveness.
9770
9771 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9772
9773 Support second redundancy strip on raidz(2,3).
9774
9775 * grub-core/fs/zfs/zfs.c (powx): New array.
9776 (powx_inv): Likewise.
9777 (poly): New const.
9778 (xor_out): New function.
9779 (gf_mul): Likewise.
9780 (recovery): Likewise.
9781 (read_device): Use second redundancy strip.
9782
9783 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9784
9785 Use a power of generator representation of GF(256) multiplication group
9786 to save space time and complexity.
9787
9788 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
9789 (raid6_table2): Likewise.
9790 (powx): New array.
9791 (powx_inv): Likewise.
9792 (poly): New const.
9793 (grub_raid_block_mul): Replace with ...
9794 (grub_raid_block_mulx): ...this.
9795 (grub_raid6_init_table): Rewritten.
9796 (grub_raid6_recover): Use power of generator representation.
9797
9798 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9799
9800 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
9801 for the right device.
9802
9803 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9804
9805 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
9806 expected by grub-mkimage and it's more clear since there is no implicit
9807 padding.
9808
9809 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9810
9811 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
9812 disk.
9813 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9814
9815 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
9816
9817 * util/grub-mkrescue.in: Fix handling xorriso option.
9818
9819 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9820
9821 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
9822 NULL.
9823
9824 2011-11-03 crocket <crockabiscuit@gmail.com>
9825
9826 * util/grub.d/10_linux.in: Add Slackware initrd naming.
9827
9828 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9829
9830 XZ CRC64 and SHA256 support.
9831
9832 * Makefile.util.def (libgrubmods): Add crc64.c.
9833 * grub-core/Makefile.core.def (crc64): New module.
9834 * grub-core/lib/crc64.c: New file.
9835 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
9836 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
9837 Fix the type.
9838 (MAX_HASH_SIZE): New define.
9839 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
9840 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
9841 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9842 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9843 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
9844 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
9845 Handle non-crc32 hashes.
9846 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
9847 (dec_stream_header): Handle non-crc32 hashes.
9848 (dec_stream_footer): Likewise.
9849 (dec_block_header): Likewise.
9850 (dec_main): Likewise.
9851 (xz_dec_init): Likewise.
9852 (xz_dec_reset): Likewise.
9853 (xz_dec_end): Likewise.
9854 * util/import_gcry.py: Add CRC64 line.
9855
9856 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9857
9858 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
9859 as well.
9860
9861 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9862
9863 Make reiserfs label retrieval similar to other *_label functions.
9864
9865 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
9866 (REISERFS_MAX_LABEL_LENGTH): Removed.
9867 (REISERFS_LABEL_OFFSET): Likewise.
9868 (grub_reiserfs_label): Rewritten.
9869
9870 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9871
9872 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
9873 field.
9874
9875 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9876
9877 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
9878
9879 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9880
9881 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
9882 drive failure on both raidz and raidz2.
9883
9884 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9885
9886 Fix RAIDZ(2) for >= 5 devices.
9887
9888 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
9889 asize argument. All users updated.
9890
9891 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9892
9893 Fix RAIDZ(2).
9894
9895 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
9896 (fill_vdev_info_real): Set ashift.
9897 (read_device): Rewrite RAIDZ part based on reverse engineering.
9898
9899 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9900
9901 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
9902 don't report potentially unavialiable fields in debug output.
9903 (find_path): Fix double-free and memory leak.
9904
9905 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9906
9907 Read label on UFS1.
9908
9909 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
9910 (grub_ufs_fs): Always set .label.
9911
9912 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9913
9914 Use shifts in UFS.
9915
9916 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
9917 (grub_ufs_data): New field log2_blksz.
9918 (grub_ufs_read_file): Use shifts.
9919 (grub_ufs_mount): Check block size and logarithm it.
9920
9921 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9922
9923 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
9924 long symlinks.
9925
9926 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9927
9928 Handle symlinks and long names on tar and cpio.
9929
9930 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
9931 (ATTR_FILE): Likewise.
9932 (ATTR_DIR): Likewise.
9933 (ATTR_LNK): Likewise.
9934 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
9935 (grub_cpio_find_file): Fill mode, handle linkname field as well as
9936 L and K entries.
9937 (grub_cpio_mount): Zero-fill data.
9938 (handle_symlink): New function.
9939 (grub_cpio_dir): Handle symlinks.
9940 (grub_cpio_open): Likewise.
9941 (grub_cpio_close) [MODE_USTAR]: Free linkname.
9942
9943 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9944
9945 Fix iso9660 filename limitations and fix memory leaks.
9946
9947 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
9948 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
9949
9950 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9951
9952 Fix JFS file name length limitations.
9953
9954 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
9955 (grub_jfs_diropen): Fix maximum filename length.
9956 (grub_jfs_getent): Fix filename length.
9957 (grub_jfs_lookup_symlink): Fix size checks.
9958
9959 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9960
9961 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
9962 string.
9963
9964 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9965
9966 Leverage BFS implementation to read AFS.
9967
9968 * Makefile.util.def (libgrubmods): Add afs.c.
9969 * grub-core/Makefile.core.def (afs): New module
9970 * grub-core/fs/afs.c: New file.
9971 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
9972
9973 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9974
9975 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
9976
9977 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9978
9979 * grub-core/fs/bfs.c: Run indent.
9980
9981 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9982
9983 BFS implementation based on the specification.
9984
9985 * grub-core/fs/bfs.c: New file.
9986 * Makefile.util.def (libgrubmods): Add bfs.c.
9987 * grub-core/Makefile.core.def (bfs): New module.
9988
9989 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9990
9991 * util/grub-fstest.c (cmd_cp): Clarify error message.
9992 (cmd_cmp): Likewise.
9993
9994 2011-10-30 Yves Blusseau <blusseau@zetam.org>
9995
9996 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
9997 and befs_be.
9998
9999 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
10000
10001 Remove afs and befs because of copyright problem.
10002
10003 * grub-core/fs/afs.c: Removed.
10004 * grub-core/fs/afs_be.c: Removed.
10005 * grub-core/fs/befs.c: Removed.
10006 * grub-core/fs/befs_be.c: Removed.
10007 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
10008 * grub-core/Makefile.core.def (afs): Removed.
10009 (afs_be): Likewise.
10010 (befs): Likewise.
10011 (befs_be): Likewise.
10012
10013 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10014
10015 Prefer rockridge over Joliet.
10016
10017 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
10018 to ...
10019 (set_rockridge): ... here.
10020 (grub_iso9660_mount): Check rockridge on the primary label when
10021 discovering. Ignore Joliet if Rockridge is present.
10022
10023 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10024
10025 Use shifts in nilfs2.
10026
10027 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
10028 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
10029 (grub_nilfs2_palloc_entries_per_group): Replace with ...
10030 (grub_nilfs2_log_palloc_entries_per_group): ... this.
10031 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
10032 (grub_nilfs2_entries_per_block): Replaced with ...
10033 (grub_nilfs2_log_entries_per_block_log): ... this.
10034 (grub_nilfs2_blocks_per_group): Replaced with ...
10035 (grub_nilfs2_blocks_per_group_log): ... this.
10036 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
10037 (grub_nilfs2_blocks_per_desc_block_log): ... this.
10038 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
10039 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
10040 (grub_nilfs2_palloc_entry_offset): Replaced ...
10041 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
10042 (grub_nilfs2_dat_translate): Use shifts.
10043 (grub_nilfs2_read_inode): Likewise.
10044 (GRUB_MOD_INIT): Ensure that logs are correct.
10045
10046 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10047
10048 Use shifts in minix filesystem.
10049
10050 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
10051 (GRUB_MINIX_ZONE2SECT): Likewise.
10052 (grub_minix_data): Replace block_size with log_block_size.
10053 (grub_minix_read_file): Use shifts.
10054 (grub_minix_mount): Check block size and take a logarithm.
10055
10056 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10057
10058 Use shifts in squash4.
10059
10060 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
10061 (squash_mount): Check block size and take logarithm.
10062 (direct_read): Use shifts.
10063
10064 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10065
10066 Correct befs block counting logic.
10067
10068 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
10069 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
10070 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
10071 (grub_afs_read_inode): Use block_shift.
10072 (RANGE_SHIFT): New definition.
10073 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
10074 unexpected conditions, use shifts and appropriate types.
10075 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
10076
10077 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10078
10079 * grub-core/disk/raid.c (scan_devices): Check partition.
10080 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
10081
10082 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10083
10084 Support BFS (befs) UUID.
10085
10086 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
10087 (grub_afs_small_data_element_header): New struct.
10088 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
10089 (grub_afs_read_attribute) [MODE_BFS]: New function.
10090 (grub_afs_iterate_dir): Allocate for complete inode.
10091 (grub_afs_mount): Likewise.
10092 (grub_afs_uuid) [MODE_BFS]: New function.
10093 (grub_afs_fs) [MODE_BFS]: Add .uuid.
10094
10095 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10096
10097 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
10098 (zfs_unmount): Fix memory leak.
10099
10100 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10101
10102 Support NTFS reparse points.
10103
10104 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
10105 (symlink_descriptor): New struct.
10106 (grub_ntfs_read_symlink): New function.
10107 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
10108 (grub_ntfs_open): Likewise.
10109
10110 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10111
10112 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
10113
10114 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10115
10116 fstest xnu_uuid subcommand.
10117
10118 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
10119 grub-core/commands/xnu_uuid.c.
10120 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
10121 (fstest): Handle xnu_uuid.
10122 (options): Document xnu_uuid.
10123 (argp_parser): Parse xnu_uuid.
10124
10125 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10126
10127 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
10128 -l argument. Add newline at the end if printing.
10129 (GRUB_MOD_INIT): Document -l.
10130
10131 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10132
10133 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
10134
10135 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10136
10137 ZFS multi-device and version 33 support.
10138
10139 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
10140 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
10141 (grub_zfs_data): Add multidev-ice-related fields.
10142 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
10143 (dva_get_offset): Make dva const.
10144 (zfs_fetch_nvlist): New function.
10145 (fill_vdev_info_real): Likewise.
10146 (fill_vdev_info): Likewise.
10147 (check_pool_label): Likewise.
10148 (scan_disk): Likewise.
10149 (scan_devices): Likewise.
10150 (read_device): Likewise.
10151 (read_dva): Likewise.
10152 (zio_read_gang): Use read_dva.
10153 (zio_read_data): Likewise.
10154 (zap_leaf_lookup): Add missing endian conversion.
10155 (zap_verify): Add missing endian conversion. All users updated.
10156 (fzap_lookup): Likewise.
10157 (fzap_iterate): Likewise.
10158 (dnode_get_path): Handle SA bonus.
10159 (nvlist_find_value): Make input const. All users updated.
10160 (unmount_device): New function.
10161 (zfs_unmount): Use unmount_device.
10162 (zfs_mount): Use scan_disk.
10163 (zfs_mtime): New function.
10164 (grub_zfs_open): Handle system attributes.
10165 (fill_fs_info): Likewise.
10166 (grub_zfs_dir): Likewise.
10167 (grub_zfs_fs): Add mtime.
10168 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
10169 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
10170 (SA_MTIME_OFFSET): Likewise.
10171 (SA_SYMLINK_OFFSET): Likewise.
10172 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
10173 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
10174 (fstest): Support zfsinfo.
10175 (argp_parser): Likewise.
10176
10177 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10178
10179 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
10180 error.
10181
10182 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10183
10184 ZFS fixes.
10185
10186 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
10187 sharing the same block. Iterate over correct number of indices.
10188 (dnode_get_path): Handle symlinks correctly.
10189
10190 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10191
10192 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
10193
10194 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10195
10196 Read label on HFS+.
10197
10198 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
10199 (grub_hfsplus_btree_search): Fix types.
10200 (grub_hfsplus_label): Implement.
10201
10202 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10203
10204 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
10205
10206 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10207
10208 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
10209
10210 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10211
10212 Fix symlink handling on iso9660.
10213
10214 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
10215 All users updated.
10216 (grub_iso9660_susp_iterate): Accept zero-size iterate.
10217 (grub_iso9660_read_symlink): Moved most of code ...
10218 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
10219
10220 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10221
10222 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10223 Use union to avoid breaking strict-aliasing rules.
10224
10225 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10226
10227 Support multi-extent iso files.
10228
10229 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
10230 Add node.
10231 (grub_fshelp_node): Revamp. All users updated.
10232 (FLAG_*): New enum.
10233 (read_node): New function.
10234 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
10235 All users updated.
10236 (grub_iso9660_mount): Don't attempt to read sua when there is none.
10237 (get_node_size): New function.
10238 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
10239 entries.
10240 Fix memory leak on . and ..
10241 (grub_iso9660_read): Use read_node.
10242 (grub_iso9660_close): Free node.
10243
10244 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10245
10246 Fix tar 4G limit and handle paths containing dot.
10247
10248 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
10249 (canonicalize): New function.
10250 (grub_cpio_find_file): Use canonicalize. Store offs in
10251 grub_disk_addr_t.
10252 (grub_cpio_dir): Use grub_disk_addr_t.
10253 (grub_cpio_open): Likewise.
10254
10255 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10256
10257 Fix handling of uncompressed blocks on squashfs and break 4G limit.
10258
10259 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
10260 unused flags.
10261 (grub_squash_inode): Add long_file and block_size.
10262 (grub_squash_cache_inode): New struct.
10263 (grub_squash_dirent): Make types into enum.
10264 (SQUASH_TYPE_LONG_REGULAR): New type.
10265 (grub_squash_frag_desc): Add field size.
10266 (SQUASH_BLOCK_FLAGS): New enum.
10267 (grub_squash_data): Use grub_squash_cache_inode.
10268 (grub_fshelp_node): Make ino_chunk 64-bit.
10269 (read_chunk): Minor argument change. All users updated.
10270 (squash_mount): Use correct le_to_cpu.
10271 (grub_squash_open): Handle LONG_REGULAR.
10272 (direct_read): New function.
10273 (grub_squash_read_data): Handle blocks correctly.
10274
10275 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10276
10277 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
10278
10279 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10280
10281 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
10282
10283 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10284
10285 Fix 2G limit on ZFS.
10286
10287 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
10288 types.
10289 (uberblock_verify): Likewise.
10290 (dmu_read): Likewise.
10291 (grub_zfs_read): Likewise. Remove invalid cast.
10292
10293 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10294
10295 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
10296 (grub_jfs_blkno): Fix incorrect shift.
10297 (grub_jfs_read_file): Use more appropriate types.
10298
10299 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10300
10301 Support triple indirect on minix2 and minix3.
10302
10303 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
10304 Declare triple_indir_zone.
10305 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
10306 indirect.
10307
10308 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10309
10310 Minix FS fixes.
10311
10312 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
10313 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
10314 Rename ctime to mtime. All users updated.
10315 (grub_minix_get_file_block): Fix types and double indirect computations.
10316
10317 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10318
10319 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
10320 if no label is found.
10321 (grub_fat_iterate_dir): Fix file size type.
10322 (grub_fat_iterate_dir): Likewise.
10323
10324 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10325
10326 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
10327 save some space.
10328 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
10329 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
10330
10331 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10332
10333 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
10334
10335 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10336
10337 * util/import_gcry.py: Accept space between # and include.
10338
10339 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10340
10341 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
10342
10343 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10344
10345 Fine grainely disable warnings on lexer. Remove Wno-error on it.
10346
10347 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
10348 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
10349 yylex_strncpy.
10350 * grub-core/script/yylex.l: Add fine-grained #pragma.
10351
10352 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10353
10354 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
10355 New inline function.
10356 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
10357 Likewise.
10358 (memset) [GRUB_UTIL]: Likewise.
10359 (memcmp) [GRUB_UTIL]: Likewise.
10360
10361 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10362
10363 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
10364 inline function rather than a define.
10365
10366 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10367
10368 * util/grub-setup.c: Add missing include.
10369
10370 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10371
10372 * util/ieee1275/grub-ofpathname.c: Add missing include.
10373
10374 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10375
10376 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
10377 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
10378 Likewise.
10379
10380 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10381
10382 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
10383 grub_memcmp usage.
10384
10385 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10386
10387 * util/grub-install.in: Add datarootdir as per automake manual
10388 suggestion.
10389 * util/grub-mknetdir.in: Likewise.
10390
10391 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10392
10393 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
10394 suggestion.
10395 * util/grub.d/10_kfreebsd.in: Likewise.
10396 * util/grub.d/10_linux.in: Likewise.
10397 * util/grub.d/10_netbsd.in: Likewise.
10398 * util/grub.d/10_windows.in: Likewise.
10399 * util/grub.d/20_linux_xen.in: Likewise.
10400
10401 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
10402
10403 Remove redundant grub_kernel_image_size.
10404
10405 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
10406 _edata and _start.
10407 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
10408 the small code. It moves it only by few bytes but simplifies the code.
10409 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
10410 _start.
10411 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
10412 (grub_kernel_image_size): Removed.
10413 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
10414 (grub_kernel_image_size): Removed.
10415 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
10416 compiled with Apple toolchain.
10417 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
10418 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
10419 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
10420 (grub_total_module_size): Likewise.
10421 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
10422 Removed.
10423 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
10424 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
10425 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10426 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
10427 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
10428 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
10429 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
10430 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
10431 Removed.
10432 (grub_total_module_size): Removed.
10433 * util/grub-mkimage.c (image_target_desc): Remove image_size.
10434 (image_targets): Likewise.
10435 Set .compressed_size to no field on sparc.
10436 (generate_image): Remove kernel_image_size handling.
10437
10438 2011-10-19 Szymon Janc <szymon@janc.net.pl>
10439
10440 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
10441 NULL pointer dereference.
10442
10443 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10444
10445 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
10446 done with a dedicated section.
10447
10448 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
10449 Ensure the correct position of boot_path.
10450 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
10451 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
10452 other fields.
10453 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
10454 * include/grub/boot.h: Removed. All references removed.
10455 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10456 Removed.
10457 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
10458
10459 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10460
10461 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
10462 name.
10463
10464 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10465
10466 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
10467
10468 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10469
10470 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
10471 Don't add the bogus brackets.
10472
10473 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10474
10475 ExFAT support.
10476
10477 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
10478 * grub-core/Makefile.core.def (exfat): New module.
10479 * grub-core/fs/exfat.c: New file.
10480 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
10481 (GRUB_FAT_ATTR_*): Make into an enum.
10482 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
10483 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
10484 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
10485 (GRUB_FAT_MAXFILE): Removed.
10486 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
10487 (grub_current_fat_bpb_t): New type.
10488 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
10489 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
10490 (grub_fat_dir_node_t): New type.
10491 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
10492 (fat_log2) [MODE_EXFAT]: Removed.
10493 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
10494 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
10495 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
10496 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
10497 (grub_fat_label) [MODE_EXFAT]: New function.
10498 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
10499 reserved_first_sector to 0.
10500
10501 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10502
10503 Move grub_reboot out of the kernel.
10504
10505 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
10506 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
10507 * grub-core/lib/efi/reboot.c: ... here.
10508 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
10509 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10510 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
10511 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
10512 * grub-core/lib/i386/reboot_trampoline.S: ... here.
10513 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
10514 * grub-core/lib/ieee1275/reboot.c: ... here.
10515 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
10516 * grub-core/lib/mips/arc/reboot.c: ... here.
10517 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
10518 * grub-core/lib/mips/loongson/reboot.c: ...here.
10519 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
10520 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
10521 * include/grub/emu/misc.h (grub_reboot): New function declaration.
10522 * include/grub/i386/reboot.h: New file.
10523 * include/grub/mips/loongson/ec.h: Fix includes.
10524 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
10525 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
10526 * grub-core/lib/i386/reboot.c: New file.
10527
10528 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
10529
10530 Make grub_prefix into module to fix the arbitrary limit and save
10531 some space.
10532
10533 * grub-core/kern/emu/main.c (grub_prefix): Removed.
10534 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
10535 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
10536 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
10537 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
10538 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
10539 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
10540 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
10541 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
10542 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
10543 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
10544 * include/grub/ia64/efi/kernel.h: Removed.
10545 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
10546 (grub_prefix): Removed.
10547 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
10548 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
10549 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
10550 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
10551 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
10552 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
10553 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
10554 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
10555 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
10556 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
10557 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
10558 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
10559 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
10560 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
10561 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
10562 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
10563 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
10564 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
10565 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
10566 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
10567 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
10568 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
10569 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
10570 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
10571 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
10572 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
10573 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
10574 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
10575 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
10576 from module.
10577 * util/grub-mkimage.c (image_target_desc): Removed prefix and
10578 prefix_end.
10579 (image_targets): Likewise.
10580 (generate_image): Put prefix as a module.
10581
10582 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10583
10584 Replace grub_module_iterate with FOR_MODULES.
10585
10586 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
10587 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
10588 (grub_efi_modules_addr): ...this.
10589 * grub-core/kern/efi/init.c (grub_modbase): New variable.
10590 (grub_efi_init): Set grub_modbase.
10591 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
10592 (grub_modbase): New variable.
10593 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
10594 (grub_modbase): New variable.
10595 (grub_machine_init): Set grub_modbase.
10596 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
10597 (grub_modbase): New variable.
10598 (grub_machine_init): Set grub_modbase.
10599 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
10600 (grub_modbase): New variable.
10601 (grub_machine_init): Set grub_modbase.
10602 * grub-core/kern/main.c (grub_module_iterate): Remove.
10603 (grub_modules_get_end): Use grub_modbase.
10604 (grub_load_modules): Use FOR_MODULES.
10605 (grub_load_config): Likewise.
10606 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
10607 (grub_modbase): New variable.
10608 (grub_machine_init): Set grub_modbase.
10609 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
10610 (grub_modbase): New variable.
10611 (grub_machine_init): Set grub_modbase.
10612 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
10613 Removed.
10614 (grub_modbase): New variable.
10615 (grub_machine_init): Set grub_modbase.
10616 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
10617 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
10618 (grub_module_iterate): Likewise.
10619 (grub_modbase): New variable declaration.
10620 (FOR_MODULES): New macro.
10621
10622 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10623
10624 * configure.ac: Check for __ctzdi2 and __ctzsi2.
10625 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
10626
10627 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10628
10629 Fix few obvious type discrepancies.
10630
10631 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
10632 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
10633 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
10634 variable.
10635 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
10636 and connected types.
10637 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
10638 offset.
10639 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
10640 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
10641 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
10642 and connected types.
10643
10644 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10645
10646 Fix python 3.x incompatibilities.
10647
10648 * gentpl.py: Put brackets around print strings.
10649 * util/import_gcry.py: Open explicitly as utf-8.
10650 Use in instead of has_key.
10651
10652 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10653
10654 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
10655 (GRUB_XFS_INO_AGBITS): Make into inline function.
10656 (GRUB_XFS_INO_INOINAG): Likewise.
10657 (GRUB_XFS_INO_AG): Likewise.
10658 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
10659 (GRUB_XFS_EXTENT_OFFSET): Likewise.
10660 (GRUB_XFS_EXTENT_BLOCK): Likewise.
10661 (GRUB_XFS_EXTENT_SIZE): Likewise.
10662 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
10663 (GRUB_XFS_NEXT_DIRENT): Likewise.
10664 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
10665 (grub_xfs_read_file): Fix offset type.
10666
10667 2011-10-15 Robert Millan <rmh@gnu.org>
10668
10669 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
10670
10671 2011-10-15 Robert Millan <rmh@gnu.org>
10672
10673 Fix build problem on FreeBSD and GNU/kFreeBSD.
10674
10675 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
10676
10677 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10678
10679 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
10680
10681 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
10682 types.
10683 (grub_hfsplus_btree_recoffset): Likewise.
10684 (grub_hfsplus_btree_recptr): Likewise.
10685 (grub_hfsplus_find_block): Likewise.
10686 (grub_hfsplus_btree_search): Likewise.
10687 (grub_hfsplus_read_block): Likewise.
10688 (grub_hfsplus_read_file): Likewise.
10689 (grub_hfsplus_mount): Likewise.
10690 (grub_hfsplus_btree_iterate_node): Likewise.
10691 (grub_hfsplus_btree_search): Likewise.
10692 (grub_hfsplus_iterate_dir): Likewise.
10693 (grub_hfsplus_read): A small code simplification.
10694
10695 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10696
10697 * grub-core/kern/emu/hostdisk.c
10698 (convert_system_partition_to_system_disk): Don't assume that children
10699 of mapper nodes are mapper nodes.
10700
10701 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10702
10703 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
10704 * include/grub/misc.h (grub_isxdigit): New function.
10705 * grub-core/video/colors.c (my_isxdigit): Removed. All users
10706 switched to grub_isxdigit.
10707 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
10708 number starting with a letter.
10709
10710 2011-10-09 Robert Millan <rmh@gnu.org>
10711
10712 LVM support for FreeBSD and GNU/kFreeBSD.
10713
10714 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
10715 GNU/kFreeBSD.
10716 (LVM_DEV_MAPPER_STRING): Move from here ...
10717 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
10718 * util/getroot.c: Include `<grub/util/lvm.h>'.
10719 (grub_util_get_dev_abstraction): Enable
10720 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
10721 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
10722 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
10723 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
10724 support it.
10725 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
10726 GNU/kFreeBSD.
10727 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
10728 when LVM abstraction is required for ${GRUB_DEVICE}.
10729
10730 2011-10-06 Szymon Janc <szymon@janc.net.pl>
10731
10732 Add support for LZO compression in GRUB:
10733 - import of minilzo library,
10734 - LZO decompression for btrfs,
10735 - lzop files decompression.
10736
10737 * grub-core/io/lzopio.c: New file.
10738 * grub-core/lib/adler32.c: Likewise.
10739 * grub-core/lib/minilzo/lzoconf.h: Likewise.
10740 * grub-core/lib/minilzo/lzodefs.h: Likewise.
10741 * grub-core/lib/minilzo/minilzo.c: Likewise.
10742 * grub-core/lib/minilzo/minilzo.h: Likewise.
10743 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
10744 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
10745 grub-core/lib/minilzo/minilzo.c to common.
10746 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
10747 cflags in cppflags.
10748 * grub-core/Makefile.core.def (btrfs): Likewise.
10749 * grub-core/Makefile.core.def (lzopio): New module.
10750 (adler32): Likewise.
10751 * grub-core/fs/btrfs.c: Include minilzo.h.
10752 (GRUB_BTRFS_COMPRESSION_LZO): New define.
10753 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
10754 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
10755 (grub_btrfs_lzo_decompress): New function.
10756 (grub_btrfs_extent_read): Add support for LZO compression type.
10757 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
10758 (GRUB_USHRT_MAX): Likewise.
10759 (GRUB_UINT_MAX): Likewise.
10760 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
10761 (UINT_MAX): Likewise.
10762 (CHAR_BIT): Likewise.
10763 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
10764 grub-core/lib/posix_wrap/limits.h
10765 (UCHAR_MAX): Likewise.
10766 * include/grub/file.h (grub_file_filter_id): New compression filter
10767 GRUB_FILE_FILTER_LZOPIO.
10768 * include/grub/file.h (grub_file_filter_id): Set
10769 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
10770 * include/grub/types.h (grub_get_unaligned16): New function.
10771 (grub_get_unaligned32): Likewise.
10772 (grub_get_unaligned64): Likewise.
10773 * util/import_gcry.py (cryptolist): Add adler32.
10774
10775 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
10776
10777 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
10778 in perspective decreases the complexity of build system and fixes
10779 compilation right now.
10780
10781 2011-10-01 Ales Nesrsta <starous@volny.cz>
10782
10783 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
10784 (fixed problem related to using UHCI with coreboot).
10785
10786 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10787
10788 * gentpl.py: Use Autogen macros so that the output template file
10789 (Makefile.tpl) size is reduced.
10790
10791 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
10792
10793 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
10794 extra_dist.
10795
10796 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10797
10798 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
10799 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
10800
10801 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10802
10803 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
10804 _fullpath.
10805
10806 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10807
10808 Remove extra declaration of sleep for mingw32.
10809
10810 * util/misc.c (sleep) [__MINGW32__]: Removed.
10811 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
10812
10813 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
10814
10815 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
10816 type and packname.
10817 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
10818 Resurrected.
10819 (NETBSD_BTINFO_BOOTWEDGE): New definition.
10820 (grub_netbsd_btinfo_bootwedge): New struct.
10821 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10822 New function.
10823 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
10824
10825 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
10826
10827 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
10828 loader.
10829
10830 2011-09-28 Andreas Born <futur.andy@googlemail.com>
10831
10832 Fix incorrect identifiers in bash-completion.
10833
10834 * util/bash-completion.d/grub-completion.bash.in
10835 (_grub_mkpasswd-pbkdf2): Rename to ...
10836 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
10837 (_grub_script-check): Rename to ...
10838 (_grub_script_check): ... this. All users updated.
10839
10840 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
10841
10842 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
10843 Return 0 if disk isn't biosdisk.
10844
10845 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10846
10847 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
10848 on NetBSD.
10849 * Makefile.util.def (grub-fstest): Likewise.
10850
10851 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10852
10853 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
10854 Get sector size from disk label.
10855
10856 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
10857
10858 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
10859 */README* as well as README*.
10860 Reported by: Axel Beckert.
10861
10862 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10863
10864 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
10865 case of less than 256 MiB of RAM.
10866
10867 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10868
10869 * grub-core/commands/wildcard.c (make_regex): Handle @.
10870
10871 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10872
10873 * util/grub-install.in: Move cryptodisk logic to appropriate place.
10874
10875 2011-08-21 Szymon Janc <szymon@janc.net.pl>
10876
10877 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
10878 AC_LANG_CONFTEST macros.
10879
10880 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10881
10882 Add grub-fstest option to uncompress data for commands.
10883
10884 * util/grub-fstest.c (uncompress): New var.
10885 (options): New option -u.
10886
10887 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10888
10889 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
10890 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
10891
10892 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10893
10894 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
10895 file type was not recognized correctly (not gzip or corrupted).
10896
10897 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10898
10899 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
10900 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
10901
10902 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10903
10904 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
10905 loongson.
10906 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
10907 video_radeon_fuloong2e.
10908 * grub-core/video/radeon_fuloong2e.c: New file.
10909 * include/grub/video.h (grub_video_id_t): Add new ID
10910 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
10911
10912 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10913
10914 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
10915 define.
10916 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
10917 that PRID matches the detected subplatform and reset the subplatform
10918 if it doesn't.
10919
10920 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10921
10922 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
10923
10924 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10925
10926 Fix PCI iterating on functions >= 4.
10927
10928 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
10929 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
10930 Removed.
10931 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
10932 (grub_pci_read): Fix bitmask.
10933 (grub_pci_read_word): Likewise.
10934 (grub_pci_read_byte): Likewise.
10935 (grub_pci_write): Likewise.
10936 (grub_pci_write_word): Likewise.
10937 (grub_pci_write_byte): Likewise.
10938
10939 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10940
10941 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
10942 can still be specified in TARGET_CFLAGS)
10943
10944 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10945
10946 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
10947
10948 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
10949 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
10950 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
10951 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
10952 (FULOONG): Rename to ...
10953 (FULOONG2F): ... this. All users updated.
10954 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
10955 (machtype_fuloong2f_str): ... this.
10956 (machtype_fuloong2e_str): New string.
10957 Check for machtype_fuloong2e_str.
10958 * grub-core/loader/mips/linux.c (loongson_machtypes)
10959 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
10960 * grub-core/term/serial.c (loongson_defserial)
10961 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
10962 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
10963 loongson_defserial.
10964 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
10965 Rename to ...
10966 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
10967 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
10968 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
10969 to IMAGE_FULOONG2F_FLASH. All users updated.
10970 (image_targets): Rename images.
10971 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
10972
10973 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10974
10975 Make enable of disk cache statistics code configurable.
10976
10977 * configure.ac: --enable-cache-stats added.
10978 * config.h.in (DISK_CACHE_STATS): New define.
10979 * grub-core/Makefile.core.def (cacheinfo): New command.
10980 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
10981 * grub-core/commands/cacheinfo.c: New file.
10982 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
10983 moved to cacheinfo.c.
10984 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
10985 debug code.
10986 * include/grub/disk.h: Likewise.
10987
10988 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10989
10990 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
10991 * grub-core/Makefile.am: Likewise.
10992
10993 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10994
10995 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
10996 non-zero pull.
10997
10998 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10999
11000 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
11001 All users updated.
11002 (grub_jfs_lookup_symlink): Use correct starting inode.
11003
11004 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11005
11006 * util/grub-setup.c (main): Add missing gcry initialisation.
11007
11008 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11009
11010 Don't accept text modes on EFI when booting Linux.
11011
11012 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
11013 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
11014
11015 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
11016 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
11017
11018 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
11019 use of "/path/.." as in grub-install for EFI as well as handling
11020 symlinks correctly.
11021 Fixes Debian bug #637768.
11022
11023 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
11024
11025 * util/grub-probe.c: Remove duplicate #include.
11026
11027 2011-08-10 Robert Millan <rmh@gnu.org>
11028
11029 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
11030
11031 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
11032 function.
11033 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
11034 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
11035
11036 2011-08-03 Robert Millan <rmh@gnu.org>
11037
11038 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
11039 la_array as packed.
11040 Reported by: Zachary Bedell
11041
11042 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
11043
11044 * configure.ac: The Loongson port requires grub-mkfont due to its
11045 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
11046 be built.
11047
11048 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
11049
11050 * util/grub-install.in: Don't source grub-mkconfig_lib until after
11051 processing arguments (otherwise help2man fails when GRUB has not yet
11052 been installed).
11053
11054 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11055
11056 New script grub-mkstandalone.
11057
11058 * Makefile.util.def (grub-mkstandalone): New script.
11059 * docs/man/grub-mkstandalone.h2m: New file.
11060 * util/grub-mkstandalone.in: Likewise.
11061
11062 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11063
11064 Support ATA disks with 4K sectors.
11065
11066 * include/grub/ata.h (grub_ata): New member log_sector_size.
11067 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
11068 (grub_ata_identify): Read sector size.
11069 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
11070
11071 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11072
11073 * util/grub-install.in: Don't use uhci outside of x86.
11074
11075 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11076
11077 * util/grub-mkrescue.in: Add missing quotes.
11078
11079 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11080
11081 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
11082 dereference.
11083
11084 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11085
11086 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
11087
11088 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11089
11090 * include/grub/video.h: add missing EXPORT_FUND on
11091 grub_video_edid_checksum and grub_video_edid_preferred_mode.
11092
11093 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11094
11095 * include/grub/mips/kernel.h: Fix define conflict.
11096
11097 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11098
11099 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
11100 all four ways.
11101
11102 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
11103
11104 Preferred resolution detection for VBE.
11105
11106 * grub-core/video/video.c (grub_video_edid_checksum): New function.
11107 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
11108 the Flat Panel extension, in line with the X.org VESA driver.
11109 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
11110 New function.
11111 (grub_vbe_bios_get_ddc_capabilities): Likewise.
11112 (grub_vbe_bios_read_edid): Likewise.
11113 (grub_vbe_get_preferred_mode): Likewise.
11114 (grub_video_vbe_setup): When the mode is "auto", try to get the
11115 preferred mode from VBE, and use the largest mode that is no larger
11116 than the preferred mode (some BIOSes expose a preferred mode that is
11117 not in their mode list!). If this fails, fall back to 640x480 as a
11118 safe conservative choice.
11119 (grub_video_vbe_get_edid): New function.
11120 (grub_video_vbe_adapter): Add get_edid.
11121 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
11122 (struct grub_video_adapter): Add get_edid.
11123 (grub_video_edid_checksum): Add prototype.
11124 (grub_video_edid_preferred_mode): Likewise.
11125 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
11126 structure.
11127
11128 * grub-core/commands/videoinfo.c (print_edid): New function.
11129 (grub_cmd_videoinfo): Print EDID if available.
11130
11131 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
11132 is more appropriate on a wider range of platforms than 640x480.
11133 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
11134 documentation.
11135
11136 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11137
11138 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
11139
11140 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11141
11142 * po/POTFILES.in: Regenerate.
11143
11144 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11145
11146 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
11147 incorrect memory usage.
11148
11149 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11150
11151 * util/grub-install.in: Source grub-mkconfig_lib.
11152
11153 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11154
11155 Remove getroot.c from core on emu platform.
11156
11157 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
11158 kern/emu/raid.c.
11159 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
11160 useless.
11161 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
11162 * util/getroot.c (get_win32_path): ... here.
11163 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
11164 * util/getroot.c (fini_libzfs): ... here.
11165 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
11166 * util/getroot.c (grub_get_libzfs_handle): ... here.
11167 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
11168 Moved from here...
11169 * util/getroot.c (grub_find_zpool_from_dir): ... here.
11170 * grub-core/kern/emu/misc.c
11171 (grub_make_system_path_relative_to_its_root): Moved from here...
11172 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
11173 * grub-core/kern/emu/getroot.c: Moved from here ...
11174 * util/getroot.c: ... here. All users updated.
11175 * grub-core/kern/emu/raid.c: Moved from here ...
11176 * util/raid.c: ... here. All users updated.
11177
11178 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11179
11180 * po/POTFILES.in: Regenerate.
11181
11182 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11183
11184 Fix compilation on GNU/Linux.
11185
11186 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
11187 Disable geli.
11188 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
11189 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
11190 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
11191
11192 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11193 2011-07-07 Michael Gorven <michael@gorven.za.net>
11194 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
11195
11196 LUKS and GELI support.
11197
11198 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
11199 grub-core/disk/luks.c, grub-core/disk/geli.c,
11200 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
11201 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
11202 grub-core/lib/arg.c.
11203 (libgrubmods.a): Remove gcrypts cflags and cppflags.
11204 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
11205 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
11206 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
11207 (grub-bin2h): Add libgcry.a.
11208 (grub-mkimage): Likewise.
11209 (grub-mkrelpath): Likewise.
11210 (grub-script-check): Likewise.
11211 (grub-editenv): Likewise.
11212 (grub-mkpasswd-pbkdf2): Likewise.
11213 (grub-pe2elf): Likewise.
11214 (grub-fstest): Likewise.
11215 (grub-mkfont): Likewise.
11216 (grub-mkdevicemap): Likewise.
11217 (grub-probe): Likewise.
11218 (grub-ofpath): Likewise.
11219 (grub-mklayout): Likewise.
11220 (example_unit_test): Likewise.
11221 (grub-menulst2cfg): Likewise.
11222 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
11223 * grub-core/Makefile.core.def (cryptodisk): New module.
11224 (luks): Likewise.
11225 (geli): Likewise.
11226 * grub-core/disk/AFSplitter.c: New file.
11227 * grub-core/disk/cryptodisk.c: Likewise.
11228 * grub-core/disk/geli.c: Likewise.
11229 * grub-core/disk/luks.c: Likewise.
11230 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
11231 grub_util_is_lvm.
11232 (grub_util_get_dm_abstraction): New function.
11233 (grub_util_follow_gpart_up): Likewise.
11234 (grub_util_get_geom_abstraction): Likewise.
11235 (grub_util_get_dev_abstraction): Use new functions.
11236 (grub_util_pull_device): Pull GELI and LUKS.
11237 (grub_util_get_grub_dev): Handle LUKS and GELI.
11238 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
11239 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
11240 (follow_geom_up): Removed.
11241 (grub_util_fd_seek): New function.
11242 (open_device): Use grub_util_fd_seek.
11243 (nread): Rename to ..
11244 (grub_util_fd_read): ... this. All users updated.
11245 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
11246 (grub_crypto_cbc_decrypt): Likewise.
11247 (grub_crypto_hmac_write): Likewise.
11248 (grub_crypto_hmac_buffer): Likewise.
11249 (grub_password_get): Extend to util.
11250 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
11251 New member modname.
11252 (gcry_md_spec) [GRUB_UTIL]: Likewise.
11253 * include/grub/cryptodisk.h: New file.
11254 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
11255 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
11256 LUKS and GELI.
11257 (grub_util_follow_gpart_up): New proto.
11258 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
11259 (grub_util_fd_read): Likewise.
11260 (grub_cryptodisk_cheat_mount): Likewise.
11261 (grub_util_cryptodisk_print_uuid): Likewise.
11262 (grub_util_get_fd_sectors): Likewise.
11263 * util/grub-fstest.c (mount_crypt): New var.
11264 (fstest): Mount crypto if requested.
11265 (options): New option -C.
11266 (argp_parser): Parse -C.
11267 (main): Init and fini gcry.
11268 * util/grub-install.in: Support cryptodisk install.
11269 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
11270 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
11271 cryptodisk.
11272 (prepare_grub_to_access_device): Likewise.
11273 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
11274 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
11275 (probe_cryptodisk_uuid): New function.
11276 (probe_abstraction): Likewise.
11277 (probe): Use new functions.
11278 * util/import_gcry.py: Create Makefile.utilgcry.def.
11279 Add modname member.
11280
11281 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11282
11283 Lazy device scanning.
11284
11285 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
11286 (grub-setup): Remove util/raid.c.
11287 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
11288 * grub-core/disk/lvm.c (scan_depth): New variable.
11289 (grub_lvm_iterate): Rescan if necessary.
11290 (find_lv): New function based on grub_lvm_open.
11291 (grub_lvm_open): Use find_lv. Rescan on error.
11292 (is_node_readable): New function.
11293 (is_lv_readable): Likewise.
11294 (grub_lvm_scan_device): Skip already found disks.
11295 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
11296 Stop if searched device is found and readable.
11297 * grub-core/disk/raid.c (inscnt): New variable.
11298 (scan_depth): Likewise.
11299 (scan_devices): New function based on grub_raid_register. Abort if
11300 looked for device is found.
11301 (grub_raid_iterate): Rescan if needed.
11302 (find_array): NEw function based on -grub_raid_open.
11303 (grub_raid_open): Use find_array and rescan.
11304 (insert_array): Set became_readable_at.
11305 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
11306 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
11307 New function.
11308 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
11309 (grub_util_pull_device): New function.
11310 (grub_util_get_grub_dev): Call grub_util_pull_device.
11311 * util/raid.c: Moved to ..
11312 * grub-core/kern/emu/raid.c: ... here.
11313 (grub_util_raid_getmembers): New parameter "bootable".
11314 All users updated. Support 1.x.
11315 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
11316 All users updated.
11317 * include/grub/disk.h (grub_disk_pull_t): New enum.
11318 (grub_disk_dev): Change iterate prototype.
11319 All users updated.
11320 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
11321 New proto.
11322 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
11323 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
11324 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
11325 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
11326 All users updated.
11327 * include/grub/util/raid.h: Removed.
11328
11329 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11330
11331 * po/POTFILES.in: Regenerate.
11332
11333 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11334
11335 Unify sparc init with other ieee1275.
11336
11337 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
11338 instead of kern/sparc64/ieee1275/init.c.
11339 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
11340 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
11341 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
11342 grub/machine/kernel.h.
11343 (grub_ieee1275_original_stack) [__sparc__]: New variable.
11344 (grub_claim_heap) [__sparc__]: Use sparc version.
11345 (grub_machine_init): Moved args parsing to
11346 (grub_parse_cmdline): ...this.
11347 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
11348 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
11349 New definition.
11350 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
11351
11352 Move BOOTP to separate file.
11353
11354 * grub-core/Makefile.core.def (net): Add net/bootp.c.
11355 * grub-core/net/net.c: Move all BOOTP functions to
11356 * grub-core/net/bootp.c: ... here.
11357
11358 Use frame interface on PXE.
11359
11360 * grub-core/Makefile.core.def (pxecmd): Removed.
11361 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
11362 * grub-core/commands/i386/pc/pxecmd.c: Removed.
11363 * grub-core/i386/pc/pxe.c: Moved from here ...
11364 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
11365 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
11366 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
11367
11368 EFI network support.
11369
11370 * grub-core/Makefile.core.def (efinet): New module.
11371 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
11372 here...
11373 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
11374 All users updated.
11375 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
11376 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
11377 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
11378 * grub-core/net/drivers/efi/efinet.c: New file.
11379 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
11380 (grub_efi_net_config): New extern var.
11381
11382 Various cleanups and bugfixes.
11383
11384 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
11385 error.
11386 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
11387 disk declared as partition.
11388 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
11389 leak on failure.
11390 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
11391 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
11392 (grub_debug_zalloc): Likewise.
11393 (grub_debug_realloc): Likewise.
11394 (grub_debug_memalign): Likewise.
11395 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
11396 Check that target is IPv4.
11397 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
11398 local-mac-address as fallback.
11399 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
11400 memory leak.
11401 * grub-core/net/ip.c (ipchksum): Rename to ...
11402 (grub_net_ip_chksum): ... this. All users updated.
11403 (grub_net_recv_ip_packets): Special handling for DHCP.
11404 * util/grub-mkimage.c (generate_image): Zero-out aout header.
11405
11406 Unify prefix handling
11407
11408 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
11409 (grub_machine_get_bootlocation): ... this.
11410 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
11411 (grub_machine_get_bootlocation): ... this.
11412 (grub_prefix): New variable.
11413 (prefix): Removed.
11414 (root_dev): New variable.
11415 (dir): Likewise.
11416 (main): Use new variables.
11417 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
11418 Revamped into ...
11419 (grub_machine_get_bootlocation): ... this.
11420 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
11421 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
11422 (grub_machine_get_bootlocation): ... this.
11423 (grub_machine_set_prefix): Removed.
11424 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
11425 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
11426 Revamped into ...
11427 (grub_machine_get_bootlocation): ... this.
11428 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
11429 (grub_set_prefix_and_root): ... this. All users updated.
11430 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
11431 Revamped into ...
11432 (grub_machine_get_bootlocation): ... this.
11433 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
11434 (grub_machine_get_bootlocation): New proto.
11435 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
11436
11437 Less intrusive and more reliable seek on network implementation.
11438
11439 * grub-core/kern/file.c (grub_file_net_seek): Removed.
11440 (grub_file_seek): Don't call grub_file_net_seek.
11441 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
11442 (grub_net_fs_read_real): .. this.
11443 (grub_net_seek_real): Use net->offset.
11444 (grub_net_fs_read): Seek if necessary.
11445
11446 Unify IEEE1275 netwotk config with the other platforms.
11447
11448 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
11449 New variable.
11450 (grub_machine_get_bootlocation): Support network.
11451 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
11452 Support type and device parsing.
11453 (grub_ieee1275_get_device_type): New function.
11454 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
11455 into ...
11456 (grub_ieee1275_net_config_real): ... this.
11457 (grub_ofnet_probecards): Removed.
11458 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
11459 * include/grub/ieee1275/ofnet.h: Removed.
11460 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
11461 extern var.
11462 (grub_ieee1275_get_device_type): New function.
11463
11464 Unify network device closing across platforms and make more robust.
11465
11466 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
11467 grub_grubnet_fini.
11468 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
11469 already.
11470 * grub-core/net/net.c (grub_net_network_level_interface_register):
11471 Update num_ifaces.
11472 (grub_net_card_unregister): Close all interfaces.
11473 (receive_packets): Don't poll if no iterfaces are registered.
11474 Open if necessary.
11475 (grub_net_fini_hw): New function.
11476 (grub_net_restore_hw): Likewise.
11477 (fini_hnd): New variable.
11478 (GRUB_MOD_INIT): Register preboot hook.
11479 (GRUB_MOD_FINI): Run and unregister preboot hook.
11480
11481 Poll network cards when idle.
11482
11483 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
11484 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
11485 * grub-core/net/net.c (receive_packets): Save last poll time.
11486 (grub_net_poll_cards_idle_real): New function.
11487 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
11488 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
11489 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
11490
11491 Rename ofnet interfaces.
11492
11493 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
11494 (grub_ofnet_findcards): Use ofnet_%s names.
11495
11496 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
11497
11498 Cleanup socket opening.
11499
11500 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
11501 (grub_net_fs_close): Likewise.
11502 (grub_net_fs_read_real): Use eof member.
11503 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
11504 (+grub_net_udp_close): New inline function.
11505
11506 * include/grub/net/tftp.h: Moved to the top of ...
11507 * grub-core/net/tftp.c: ... here.
11508 * include/grub/net/ip.h: Moved mostly to the top of ...
11509 * grub-core/net/ip.c: ... here.
11510 * include/grub/net/ethernet.h: Moved mostly to the top of ...
11511 * grub-core/net/ethernet.c: ... here.
11512
11513 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
11514
11515 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
11516 FS name.
11517
11518 * include/grub/net/ip.h (ipv4_ini): Removed.
11519 (ipv4_fini): Likewise.
11520
11521 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
11522 (grub_net_send_ip_packets): Likewise.
11523
11524 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11525
11526 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
11527 grub_read_cmos prototype.
11528
11529 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11530
11531 VGA text support in qemu-mips
11532
11533 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
11534 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
11535 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
11536 text.
11537 * grub-core/kern/i386/qemu/init.c: Renamed to ...
11538 * grub-core/kern/vga_init.c: ... this.
11539 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
11540 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
11541 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
11542 Adjust.
11543 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
11544 GRUB_MACHINE_PCI_IO_BASE.
11545
11546 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11547
11548 MIPS qemu flash support.
11549
11550 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
11551 magic.
11552 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
11553 (grub_machine_init): Probe memory if its size isn't known.
11554 * util/grub-mkimage.c (image_targets): Add flash targets.
11555 (generate_image): Handle flash targets.
11556
11557 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11558
11559 MIPS qemu at_keyboard support.
11560
11561 * gentpl.py (videoinkernel): Add qemu-mips.
11562 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
11563 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
11564 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
11565 modules.
11566 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
11567 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
11568 * grub-core/term/serial.c (grub_serial_register)
11569 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
11570
11571 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11572
11573 CMOS support on sparc.
11574
11575 * gentpl.py (cmos): Add powerpc and sparc.
11576 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
11577 powerpc and sparc.
11578 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
11579 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
11580 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
11581 grub_set_datetime_cmos.
11582 * grub-core/lib/ieee1275/cmos.c: New file.
11583 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
11584 (find_rtc): Set no_ieee1275_rtc on error.
11585 (grub_get_datetime): Call grub_get_datetime_cmos on error.
11586 (grub_set_datetime): Call grub_set_datetime_cmos on error.
11587 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
11588 fail. Move value to argument. All users updated
11589 (grub_cmos_write): Likewise.
11590 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
11591 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
11592 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
11593 grub_get_datetime_cmos and grub_set_datetime_cmos.
11594
11595 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
11596
11597 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
11598 sourcing grub-mkconfig_lib.
11599 * util/update-grub_lib.in: Likewise.
11600 * util/grub.d/00_header.in: Likewise.
11601 * util/grub.d/10_hurd.in: Likewise.
11602 * util/grub.d/10_kfreebsd.in: Likewise.
11603 * util/grub.d/10_linux.in: Likewise.
11604 * util/grub.d/10_netbsd.in: Likewise.
11605 * util/grub.d/10_windows.in: Likewise.
11606 * util/grub.d/20_linux_xen.in: Likewise.
11607 * util/grub.d/30_os-prober.in: Likewise.
11608
11609 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
11610
11611 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
11612 default_bg_color rather than black.
11613 (grub_gfxterm_fullscreen): Likewise.
11614 (grub_gfxterm_background_color_cmd): Save new background color in
11615 default_bg_color.
11616
11617 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11618
11619 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
11620
11621 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11622
11623 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
11624 mismerge.
11625
11626 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11627
11628 Chainloading on coreboot support.
11629
11630 * grub-core/Makefile.core.def (chain): Add coreboot.
11631 * grub-core/loader/i386/coreboot/chainloader.c: New file.
11632
11633 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11634
11635 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
11636 if it happens.
11637
11638 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11639
11640 Implement time command.
11641
11642 * grub-core/Makefile.core.def (time): New module.
11643 * grub-core/commands/time.c: New file.
11644 * grub-core/script/parser.y: Remove "time" keyword.
11645 * grub-core/script/yylex.l: Likewise.
11646
11647 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11648
11649 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
11650
11651 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11652
11653 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
11654 when handling leftovers.
11655
11656 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11657
11658 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
11659 so that help2man doesn't fail.
11660
11661 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11662
11663 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
11664 type in pointers on sparc64.
11665 (get_card_packet): Likewise.
11666
11667 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
11668
11669 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
11670 with `*'.
11671 (grub_cmd_videoinfo): Fetch current video mode.
11672
11673 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11674
11675 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
11676 because of underlying system restrictions.
11677
11678 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11679
11680 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
11681 necessary.
11682
11683 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11684
11685 Coreboot video support.
11686
11687 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
11688 (vbe): Likewise.
11689 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
11690 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
11691 here ...
11692 * grub-core/kern/i386/int.S: ... here.
11693 * grub-core/video/i386/pc/vbe.c: Updated includes.
11694 * grub-core/video/i386/pc/vga.c: Likewise.
11695 * include/grub/i386/coreboot/memory.h
11696 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
11697 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
11698 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
11699 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
11700 Disable interrupts.
11701 * include/grub/i386/pc/vga.h: Removed. All users updated.
11702
11703 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11704
11705 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
11706 definitions for dprintf.
11707 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
11708
11709 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11710
11711 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
11712 prototype.
11713 (get_card_packet): Likewise.
11714
11715 2011-06-26 Yves Blusseau <blusseau@zetam.org>
11716
11717 Display the path of the file when file is not found
11718
11719 * grub-core/fs/fat.c: Display the filename when file is not found.
11720 * grub-core/fs/fshelp.c: Likewise.
11721 * grub-core/fs/hfs.c: Likewise.
11722 * grub-core/fs/jfs.c: Likewise.
11723 * grub-core/fs/minix.c: Likewise.
11724 * grub-core/fs/ufs.c: Likewise.
11725 * grub-core/fs/btrfs.c: Likewise.
11726 * grub-core/commands/i386/pc/play.c: Likewise.
11727
11728 2011-06-26 Szymon Janc <szymon@janc.net.pl>
11729
11730 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
11731 pointer checks before calling grub_free().
11732 * grub-core/commands/wildcard.c (match_devices): Likewise.
11733 * grub-core/commands/wildcard.c (match_files): Likewise.
11734 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
11735 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
11736 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
11737 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
11738 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
11739 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
11740 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
11741 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
11742 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
11743
11744 2011-06-25 Patrick <p55@mailinator.com>
11745
11746 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
11747
11748 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
11749
11750 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
11751 (grub_pxe_send): Likewise.
11752 (GRUB_MOD_INIT): Fix types.
11753
11754 2011-06-24 Szymon Janc <szymon@janc.net.pl>
11755
11756 * grub-core/io/xzio.c: Fix code style issues
11757
11758 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11759 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
11760
11761 Network infrastructure.
11762 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
11763
11764 * include/grub/net/arp.h: New file.
11765 * include/grub/net/device.h: Likewise.
11766 * include/grub/net/ethernet.h: Likewise.
11767 * include/grub/net/ip.h: Likewise.
11768 * include/grub/net/netbuff.h: Likewise.
11769 * include/grub/net/tftp.h: Likewise.
11770 * include/grub/net/udp.h: Likewise.
11771 * include/grub/ieee1275/ofnet.h: Likewise.
11772 * include/grub/emu/export.h: Likewise.
11773 * include/grub/net.h: Likewise.
11774 * grub-core/net/arp.c: Likewise.
11775 * grub-core/net/ethernet.c: Likewise.
11776 * grub-core/net/ip.c: Likewise.
11777 * grub-core/net/udp.c: Likewise.
11778 * grub-core/net/tftp.c: Likewise.
11779 * grub-core/net/netbuff.c: Likewise.
11780 * grub-core/net/net.c: Likewise.
11781 * grub-core/net/drivers/emu/emunet.c: Likewise.
11782 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
11783 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
11784 export.h.
11785 * grub-core/Makefile.core.def (net): New module.
11786 (tftp): Likewise.
11787 (ofnet): Likewise.
11788 (emunet): Likewise.
11789 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
11790 network protocols.
11791 * grub-core/kern/device.c (grub_net_open) : New variable.
11792 (grub_device_open): Handle network device.
11793 (grub_device_close): Likewise.
11794 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
11795 (grub_grubnet_fini): Likewise.
11796 (grub_file_seek): Seek in network device.
11797 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
11798 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
11799 network root.
11800 (grub_machine_fini): Call grub_grubnet_fini.
11801 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
11802 network.
11803 (grub_ieee1275_get_aliasdevname): New function.
11804 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
11805 Add unofficial Solaris network info.
11806 (grub_multiboot_make_mbi): Likewise.
11807 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
11808 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
11809 * include/grub/device.h (grub_fs): Removed.
11810 * include/grub/err.h (grub_err_t): Add network-related values.
11811 * include/grub/i386/pc/pxe.h: Removed bootp parts.
11812 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
11813 (grub_ieee1275_get_aliasdevname): New proto.
11814 * include/grub/net.h: Rewritten.
11815
11816 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11817
11818 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
11819 names.
11820
11821 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11822
11823 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
11824 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
11825 it truncates the output.
11826 Reported by: Ximin Luo.
11827
11828 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11829
11830 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
11831
11832 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11833
11834 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
11835 partmap before abstraction.
11836
11837 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
11838
11839 * util/grub-mkconfig_lib.in: Add missing quotes.
11840
11841 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11842
11843 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
11844 old method if mountinfo would return /dev/root and /dev/root doesn't
11845 exist.
11846
11847 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11848
11849 ZFS zlib support
11850
11851 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
11852 (decomp_table): Add zlib entries.
11853 (zio_read): USe 8 bits for compression function rather than 3.
11854 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
11855
11856 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11857
11858 * grub-core/disk/ahci.c: Add missing license statements.
11859 * grub-core/fs/romfs.c: Likewise.
11860 * grub-core/lib/ia64/setjmp.S: Likewise.
11861 * grub-core/loader/i386/pc/freedos.c: Likewise.
11862 * grub-core/loader/ia64/efi/linux.c: Likewise.
11863 * grub-core/video/colors.c: Likewise.
11864 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
11865
11866 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11867
11868 AHCI support.
11869
11870 * grub-core/Makefile.core.def (ata_pthru): Removed.
11871 (ahci): New module.
11872 (pata): Likewise.
11873 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
11874 on unload.
11875 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
11876 readwrite.
11877 (grub_hdparm_do_check_powermode_cmd): Likewise.
11878 (grub_hdparm_do_smart_cmd): Likewise.
11879 (grub_hdparm_set_val_cmd): Likewise.
11880 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
11881 * grub-core/disk/ahci.c: New file.
11882 * grub-core/disk/ata.c: Factor out the low-level part into ...
11883 * grub-core/disk/pata.c: ... here.
11884 * grub-core/disk/ata_pthru.c: Contents moved to ...
11885 * grub-core/disk/pata.c: ... here.
11886 * grub-core/disk/scsi.c (grub_scsi_names): New array.
11887 (grub_scsi_iterate): Use grub_scsi_names.
11888 (grub_scsi_open): Likewise.
11889 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
11890 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
11891 (grub_ata_regs_t): New struct.
11892 (grub_disk_ata_pass_through_parms): Likewise.
11893 (grub_ata_device): Renamed to ...
11894 (grub_ata): ... this.
11895 (grub_ata_dev): New struct.
11896 Removed all low-level inline functions.
11897 * include/grub/scsi.h: Add PATA and AHCI subsystems.
11898 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
11899 iterate hooks and open. All users updated.
11900 * util/grub-install.in: Handle AHCI disk module.
11901
11902 2011-06-23 Szymon Janc <szymon@janc.net.pl>
11903
11904 Add support for DRI and RSTn markers in JPEG files.
11905
11906 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
11907 (JPEG_MARKER_RST0): Likewise.
11908 (JPEG_MARKER_RST1): Likewise.
11909 (JPEG_MARKER_RST2): Likewise.
11910 (JPEG_MARKER_RST3): Likewise.
11911 (JPEG_MARKER_RST4): Likewise.
11912 (JPEG_MARKER_RST5): Likewise.
11913 (JPEG_MARKER_RST6): Likewise.
11914 (JPEG_MARKER_RST7): Likewise.
11915 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
11916 (grub_jpeg_decode_dri): New function.
11917 (grub_jpeg_decode_sos): Move image data related part into
11918 grub_jpeg_decode_data function.
11919 (grub_jpeg_decode_data): New function.
11920 (grub_jpeg_reset): New function.
11921 (grub_jpeg_decode_jpeg): Handle new markers.
11922
11923 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11924
11925 * util/ieee1275/ofpath.c (check_sas): Close fd.
11926 (main): Free of_path.
11927 Reported by: David Volgyes <dvolgyes>.
11928
11929 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11930
11931 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
11932 Reported by: David Volgyes <dvolgyes>.
11933
11934 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11935
11936 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
11937 file after stat.
11938 Reported by: David Volgyes <dvolgyes>.
11939
11940 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11941
11942 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
11943
11944 Reported by: David Volgyes <dvolgyes>.
11945
11946 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11947
11948 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
11949 Prevent memory leak.
11950
11951 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11952
11953 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
11954 (main): Close file.
11955 Reported by: David Volgyes <dvolgyes>.
11956
11957 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11958
11959 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
11960 to continue if allocation is failed.
11961
11962 Reported by: David Volgyes <dvolgyes>.
11963
11964 2011-06-23 David Volgyes <dvolgyes>
11965
11966 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
11967 dereference.
11968
11969 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11970
11971 Fix spurious warning.
11972
11973 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
11974 (acorn_partition_map_find): Use .bin member.
11975
11976 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11977
11978 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
11979 /dev/root as a valid device.
11980
11981 2011-06-23 Jim Meyering <meyering@redhat.com>
11982
11983 Avoid NULL deref in grub_device_open.
11984
11985 * grub-core/kern/device.c (grub_device_open): Don't dereference
11986 a NULL pointer upon failed grub_env_get.
11987
11988 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11989
11990 Support non-512B sectors and agglomerate reads.
11991
11992 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
11993 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
11994 (disk_io_guid): Removed.
11995 (make_devices): Locate solely by BlockIO.
11996 (grub_efidisk_open): Fill log_sector_size and total_sectors.
11997 (grub_efidisk_read): Use read_blocks.
11998 (grub_efidisk_write): Use write_blocks.
11999 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
12000 log_sector_size.
12001 (get_safe_sectors): Handle non-512B sectors.
12002 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
12003 sectors.
12004 (grub_biosdisk_write): Handle non-512B sectors.
12005 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
12006 (grub_scsi_read): Remove special non-512B block handling (now handled
12007 one level up).
12008 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
12009 and do sanity checks.
12010 (grub_disk_adjust_range): Handle non-512B sectors.
12011 (transform_sector): New function.
12012 (grub_disk_read_small): Likewise.
12013 (grub_disk_read): Rewritten.
12014 (grub_disk_write): Handle non-512B sectors.
12015 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
12016 log_sector_size.
12017 (open_device): Use log_sector_size.
12018 (grub_util_biosdisk_read): Likewise.
12019 (grub_util_biosdisk_write): Likewise.
12020 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
12021 non-512B sectors.
12022 (pc_partition_map_embed): Likewise.
12023 * include/grub/disk.h (grub_disk): New field log_sector_size.
12024 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
12025 (GRUB_DISK_CACHE_BITS): Increased to 6.
12026 * util/grub-fstest.c (fstest): New command testload.
12027 (argp_parser): Likewise.
12028
12029 2011-06-16 Robert Millan <rmh@gnu.org>
12030
12031 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
12032 `ata' driver on kernel of FreeBSD 9.
12033
12034 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
12035 (get_ataraid_disk_name): New functions.
12036 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
12037 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
12038 get_ataraid_disk_name() and get_ada_disk_name().
12039
12040 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
12041
12042 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
12043 input format.
12044
12045 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
12046
12047 * docs/grub.texi (Obtaining and Building GRUB): Substitute
12048 `ftp.gnu.org' for `alpha.gnu.org'.
12049
12050 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
12051
12052 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
12053 partitions under /dev/disk/by-id/.
12054
12055 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
12056
12057 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
12058 after ten consecutive open failures. Scanning all the way up to
12059 10000 is excessive and can cause serious performance problems in
12060 some configurations.
12061 Fixes Ubuntu bug #787461.
12062
12063 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12064
12065 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
12066 opening new one.
12067
12068 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
12069 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12070
12071 Don't stat devices unless we have to.
12072
12073 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
12074 dir == /dev/mapper.
12075 (grub_guess_root_device): Use already known os_dev if possible.
12076 * grub-core/kern/emu/hostdisk.c
12077 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
12078 if device is known to be a dm one.
12079
12080 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
12081
12082 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
12083 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
12084 Reported by: Pawel Tecza.
12085
12086 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
12087
12088 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
12089 (lsefisystab): Likewise.
12090 (lssal): Likewise.
12091 (lsefimmap): Likewise.
12092 (hdparm): Enable on qemu-mips.
12093 (setjmp): Add ia64 nodist.
12094 (serial): Simplify tags.
12095
12096 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12097
12098 * Makefile.util.def (grub-ofpathname): Install manual page.
12099
12100 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12101
12102 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
12103
12104 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12105
12106 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
12107
12108 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12109
12110 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
12111 into dprintf.
12112
12113 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12114
12115 Use full 64-bit division.
12116
12117 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
12118 (grub_divmod64): ... this.
12119 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
12120 version.
12121
12122 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12123
12124 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
12125 `source'.
12126
12127 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12128
12129 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
12130 to avoid accidents when debugging with 'sh -x'.
12131 * grub-core/gensyminfo.sh.in: Likewise.
12132 * tests/example_scripted_test.in: Likewise.
12133 * tests/grub_cmd_regexp.in: Likewise.
12134 * tests/grub_script_blanklines.in: Likewise.
12135 * tests/grub_script_dollar.in: Likewise.
12136 * tests/grub_script_expansion.in: Likewise.
12137 * tests/grub_script_final_semicolon.in: Likewise.
12138 * tests/partmap_test.in: Likewise.
12139 * tests/util/grub-shell-tester.in: Likewise.
12140 * tests/util/grub-shell.in: Likewise.
12141
12142 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12143
12144 Move gfxmenu color handling to video, so that gfxterm can use it
12145 too.
12146
12147 * grub-core/gfxmenu/named_colors.c: Move to ...
12148 * grub-core/video/colors.c: ... here. Rename
12149 grub_gui_get_named_color to grub_video_get_named_color.
12150 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
12151 * grub-core/video/colors.c (my_isxdigit): ... here.
12152 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
12153 Move to ...
12154 * grub-core/video/colors.c (parse_hex_color_component): ... here.
12155 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
12156 to ...
12157 * grub-core/video/colors.c (grub_video_parse_color): ... here.
12158
12159 * include/grub/gui.h (grub_gui_color_t): Move to ...
12160 * include/grub/video.h (grub_video_rgba_color_t): ... here.
12161 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
12162 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
12163 * include/grub/gui.h (grub_gui_map_color): Move to ...
12164 * include/grub/video.h (grub_video_map_rgba_color): ... here.
12165 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
12166 to ...
12167 * include/grub/video.h (grub_video_get_named_color): ... here.
12168 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
12169 * include/grub/video.h (grub_video_parse_color): ... here.
12170
12171 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
12172 video/colors.c.
12173 (gfxmenu): Remove gfxmenu/named_colors.c.
12174 (video) [videomodules]: Add video/colors.c.
12175
12176 Add a background_color command.
12177
12178 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
12179 function.
12180 (GRUB_MOD_INIT): Register background_color command.
12181 (GRUB_MOD_FINI): Unregister background_color command.
12182 (redraw_screen_rect): Allow blend/replace of text layer to be
12183 controlled independently from whether there is a background bitmap.
12184 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
12185 changing bitmap.
12186
12187 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12188
12189 Patch BPB in ntldr and chainloader --bpb.
12190
12191 * grub-core/fs/fat.c: Include grub/fat.h.
12192 (grub_fat_bpb): Moved to ...
12193 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
12194 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
12195 grub/ntfs.h.
12196 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
12197 Moved from here...
12198 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
12199 here.
12200 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
12201 New function.
12202 (grub_chainloader_cmd): Patch BPB if --bpb is given.
12203 (GRUB_MOD_INIT): Show --bpb.
12204 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
12205 * grub-core/normal/main.c (features): New variable.
12206 (GRUB_MOD_INIT): Set feature_* variables.
12207 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
12208 proto.
12209 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
12210
12211 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12212
12213 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
12214 for cleanness.
12215
12216 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12217
12218 FreeDOS direct loading support.
12219
12220 * docs/grub.texi (Supported OS): Add FreeDOS.
12221 * grub-core/Makefile.core.def (freedos): New module.
12222 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
12223 variable.
12224 (grub_relocator16_boot): Handle %ebx.
12225 * grub-core/lib/i386/relocator16.S: Likewise.
12226 * grub-core/loader/i386/pc/freedos.c: New file.
12227
12228 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12229
12230 Long Linux command line support.
12231
12232 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12233 (maximal_cmdline_size): New variable.
12234 (allocate_pages): Use maximal_cmdline_size.
12235 (grub_cmd_linux): Set and use maximal_cmdline_size.
12236 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12237 (allocate_pages): Use maximal_cmdline_size.
12238 (grub_cmd_linux): Set and use maximal_cmdline_size.
12239 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
12240 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
12241 and cmdline_size.
12242
12243 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12244 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12245
12246 Improve devmapper support
12247
12248 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
12249 (grub_util_is_lvm): New function.
12250 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
12251 than lvm if not dmraid.
12252 Handle mapped md nodes.
12253 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
12254 (grub_util_device_is_mapped): ... this. Make always available. All users
12255 updated.
12256 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
12257 (convert_system_partition_to_system_disk): Handle lvm, mpath and
12258 dmraid nodes.
12259 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
12260
12261 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12262
12263 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
12264
12265 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
12266 * grub-core/modinfo.sh.in: New file.
12267 * grub-core/Makefile.core.def (modinfo.sh): New script.
12268 * util/grub-mknetdir.in: Use modinfo.sh.
12269 * util/grub-mkrescue.in: Likewise.
12270
12271 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12272
12273 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
12274 Fix potential usage of Elf32 instead of Elf64 when compiling on
12275 32-bit architecture. Add endianness macros while on it.
12276
12277 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12278
12279 Use mipsel- rather than mips- in directories involving mipsel ports to
12280 allow both endiannesses coexist.
12281
12282 * configure.ac: proparate target_cpu=mipsel rather than resetting to
12283 mips. All conditions adjusted.
12284 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
12285 variable.
12286 * util/grub-install.in: Adjust conditions to take renaming into account.
12287 * util/grub-mkimage.c (image_targets): Likewise. New target
12288 mips-qemu_mips-elf for bigendian mips.
12289
12290 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12291
12292 Avoid unnecessary copying on MIPS.
12293
12294 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
12295 early if src == dest.
12296 * util/grub-mkimage.c (generate_image): Arange for src == dest if
12297 compression is none.
12298
12299 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12300
12301 Reduce memory footprint on SGI by putting modules before the kernel
12302 as opposed to after.
12303
12304 * grub-core/Makefile.core.def (kernel): Increase linking address.
12305 (none_decompress): Likewise.
12306 (xz_decompress): Likewise.
12307 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
12308 address.
12309 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
12310 layout change.
12311 (grub_arch_modules_addr): New function.
12312 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
12313 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
12314 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
12315 here.
12316 * grub-core/kern/mips/startup.S (total_size): Rename to ...
12317 (grub_total_modules_size): ... this. Make global.
12318 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
12319 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
12320 New definition.
12321 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
12322 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
12323 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
12324 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
12325 * util/grub-mkimage.c (image_target_desc): New flag
12326 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
12327 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
12328 (generate_image): Handle images with modules before kernel.
12329
12330 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12331
12332 Prevent potential loss of memory map by overwrite on qemu-mips.
12333
12334 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12335 Save ram size in $s4.
12336 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
12337 All users changed to grub_arch_memsize.
12338 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
12339 Loongson.
12340 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
12341 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
12342 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
12343 external variable.
12344
12345 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12346
12347 * .bzrignore: Remove grub-dumpbios.
12348
12349 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12350
12351 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
12352 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
12353 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
12354 existing options which append).
12355 * docs/grub.texi (Simple configuration): Document new options.
12356 Reported by: Ian Jackson. Fixes Debian bug #617538.
12357
12358 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12359
12360 * util/grub-fstest.c (cmd_cat): New function.
12361 (fstest): Handle CMD_CAT.
12362 (options): Add cat.
12363 (argp_parser): Handle cat.
12364
12365 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12366
12367 * Makefile.util.def (grub-bin2h): Don't install.
12368 * docs/man/grub-bin2h.h2m: Remove.
12369
12370 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12371
12372 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
12373 place.
12374
12375 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12376
12377 Reenable qemu-mips port.
12378
12379 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
12380 Fix small arc bug while on it.
12381 * gentpl.py: Handle qemu_mips.
12382 * grub-core/Makefile.am: Likewise.
12383 * grub-core/Makefile.core.def: Likewise.
12384 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
12385 inappropriate includes.
12386 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
12387 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
12388 * grub-core/kern/main.c (grub_modules_get_end)
12389 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
12390 * grub-core/kern/mips/qemu-mips: Moved to ..
12391 * grub-core/kern/mips/qemu_mips: ... this.
12392 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
12393 (grub_machine_init): Call terminfo_init and serial_init.
12394 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
12395 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12396 New variable.
12397 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
12398 parameter passing.
12399 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
12400 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
12401 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
12402 * include/grub/mips/qemu_mips/cmos.h: New file.
12403 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
12404 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
12405 Removed.
12406 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
12407 Use correct mips-style address.
12408 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
12409 (GRUB_TICKS_PER_SECOND): Removed.
12410 (grub_get_rtc): Likewise.
12411 (grub_cpu_idle): Likewise.
12412 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
12413 New definition.
12414 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
12415 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
12416 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
12417 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
12418 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
12419 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
12420 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
12421 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
12422
12423 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12424
12425 SGI ARCS port.
12426
12427 * Makefile.util.def (libgrubmods.a): Add dvh.c.
12428 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
12429 platforms.
12430 * configure.ac: New target mips-arc.
12431 * gentpl.py: Likewise.
12432 * grub-core/Makefile.am: Likewise.
12433 * grub-core/Makefile.core.def: Likewise.
12434 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
12435 (none_decompress): Likewise.
12436 (lsdev): New module.
12437 (datetime): Use lib/arc/datetime.c on ARC.
12438 (part_dvh): New module.
12439 * grub-core/commands/arc/lsdev.c: New file.
12440 * grub-core/disk/arc/arcdisk.c: Likewise.
12441 * grub-core/kern/mips/arc/init.c: Likewise.
12442 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
12443 aligned addresses.
12444 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
12445 support.
12446 (grub_arch_dl_relocate_symbols): Likewise.
12447 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
12448 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
12449 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
12450 platforms.
12451 * grub-core/lib/arc/datetime.c: New file.
12452 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
12453 pci.h on non-loongson.
12454 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
12455 (grub_linux_boot): Set unused registers to 0.
12456 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
12457 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
12458 * grub-core/mmap/mips/uppermem.c: ...here.
12459 * grub-core/partmap/dvh.c: New file.
12460 * grub-core/term/arc/console.c: Likewise.
12461 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
12462 (grub_terminfo_set_current): Add terminal "arc".
12463 (grub_terminfo_readkey): Support ARC sequences.
12464 * include/grub/arc/arc.h: New file.
12465 * include/grub/arc/console.h: Likewise.
12466 * include/grub/disk.h (grub_disk_dev_id): Add
12467 GRUB_DISK_DEVICE_ARCDISK_ID.
12468 * include/grub/mips/arc/kernel.h: New file.
12469 * include/grub/mips/arc/memory.h: Likewise.
12470 * include/grub/mips/arc/time.h: Likewise.
12471 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
12472 * include/grub/mips/kernel.h (grub_halt): ... here.
12473 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
12474 here...
12475 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
12476 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
12477 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
12478 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
12479 proto.
12480 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
12481 from here ...
12482 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
12483 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
12484 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
12485 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
12486 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
12487 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
12488 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
12489 (grub_phys_addr_t): Moved from here ...
12490 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
12491 (grub_vtop): Moved from here ...
12492 * include/grub/mips/memory.h (grub_vtop): ... here.
12493 (grub_map_memory): Moved from here ...
12494 * include/grub/mips/memory.h (grub_map_memory): ... here.
12495 (grub_unmap_memory): Moved from here ...
12496 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
12497 (grub_machine_mmap_iterate): Moved from here ...
12498 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
12499 (grub_mmap_get_lower): Moved from here ...
12500 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
12501 (grub_mmap_get_upper): Moved from here ...
12502 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
12503 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12504 here ...
12505 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12506 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
12507 here ...
12508 * include/grub/mips/time.h (grub_get_rtc): ... here.
12509 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12510 here ...
12511 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12512 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
12513 here ...
12514 * include/grub/mips/time.h (grub_cpu_idle): ... here.
12515 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
12516 definition.
12517 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
12518 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
12519 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
12520 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
12521 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12522 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12523 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
12524 (GRUB_MACHINE_LINK_ADDR): Likewise.
12525 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
12526 to 6.
12527 * util/grub-install.in: Run dvhtool on ARC.
12528 * util/grub-mkimage.c (image_targets): Add mips-arc.
12529 (generate_image): Handle ECOFF output for mips-arc.
12530
12531 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12532
12533 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
12534 blocks.
12535
12536 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12537
12538 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
12539 after enabling port.
12540
12541 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12542
12543 Skip incorrect USB devices.
12544
12545 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
12546 configcnt == 0.
12547 * include/grub/usb.h (grub_usb_err_t): New enum value
12548 GRUB_USB_ERR_BADDEVICE.
12549
12550 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12551
12552 Fuloong video init support.
12553
12554 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
12555 well.
12556 (grub_vga_read_arx): New function.
12557 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
12558 definition.
12559 (framebuffer): New members io, mmioptr and mmiobase.
12560 (read_sis_cmd): New function.
12561 (write_sis_cmd): Likewise.
12562 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
12563 rather than 640x400.
12564 * grub-core/video/sis315_init.c: New file.
12565
12566 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12567
12568 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
12569 non-loongson.
12570 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
12571 to grub_dl_register_symbol.
12572
12573 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12574
12575 Fix compilation errors.
12576
12577 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
12578 potentially unused.
12579 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
12580 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
12581 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
12582 to loongson machines.
12583
12584 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12585
12586 Several FS mtime support.
12587
12588 * grub-core/fs/affs.c (grub_affs_time): New struct.
12589 (grub_affs_file): New field mtime.
12590 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
12591 type. Removed 'size'. New field 'di'. All users updated.
12592 (grub_affs_mount): Simplify checsum checking.
12593 (grub_affs_iterate_dir): New helper grub_affs_create_node.
12594 (grub_affs_dir): Handle mtime.
12595 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
12596 (grub_cpio_dir): Likewise.
12597 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
12598 (grub_hfs_filerec): New field mtime.
12599 (grub_hfs_dir): Handle mtime.
12600 (grub_hfs_mtime): New function.
12601 (grub_hfs_fs): Register grub_hfs_mtime.
12602 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
12603 (grub_iso9660_dir): New field mtime.
12604 (grub_fshelp_node): New field dirent.
12605 (iso9660_to_unixtime): New function.
12606 (iso9660_to_unixtime2): Likewise.
12607 (grub_iso9660_read_symlink): Use node->dirent.
12608 (grub_iso9660_iterate_dir): Likewise.
12609 (grub_iso9660_dir): Set mtime.
12610 (grub_iso9660_mtime): New function.
12611 (grub_iso9660_fs): Register grub_iso9660_mtime.
12612 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
12613 (grub_jfs_inode): New fields atime, ctime and mtime.
12614 (grub_jfs_dir): Set mtime.
12615 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
12616 * grub-core/fs/ntfs.c (list_file): Set mtime.
12617 (grub_ntfs_dir): Likewise.
12618 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
12619 (grub_reiserfs_iterate_dir): Set mtime.
12620 (grub_reiserfs_dir): Likewise.
12621 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
12622 (grub_fshelp_node): Likewise.
12623 (grub_sfs_iterate_dir): Set mtime.
12624 (grub_sfs_dir): Likewise.
12625 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
12626 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
12627 (grub_xfs_inode): New fields atime, mtime, ctime.
12628 (grub_xfs_dir): Set mtime.
12629 * include/grub/datetime.h (grub_datetime2unixtime): New function.
12630 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
12631 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
12632
12633 Support UDF symlinks.
12634
12635 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
12636 (grub_ufs_read_symlink): New function. All users updated.
12637
12638 Check amiga partmap checksum.
12639
12640 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
12641 (grub_amiga_partition): Likewise.
12642 (amiga_partition_map_checksum): New function.
12643 (amiga_partition_map_iterate): Check checksum.
12644
12645 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12646
12647 ROMFS support.
12648
12649 * Makefile.util.def (libgrubmods.a): Add romfs.
12650 * grub-core/Makefile.core.def (romfs): New module.
12651 * grub-core/fs/romfs.c: New file.
12652
12653 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12654
12655 Squashfs v4 support.
12656
12657 * Makefile.util.def (libgrubmods.a): Add squash4.
12658 * grub-core/Makefile.core.def (squash4): New module.
12659 * grub-core/fs/squash4.c: New file.
12660 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
12661 disk_input_start, disk_input.
12662 (get_byte): Handle disk_input.
12663 (grub_zlib_disk_read): New function.
12664 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
12665
12666 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12667 2011-05-15 Feiran Zheng <famcool@gmail.com>
12668
12669 * Makefile.util.def (libgrubmods.a): Add minix3.
12670 * grub-core/Makefile.core.def (minix3): New module.
12671 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
12672 (GRUB_MINIX_BSIZE): Removed.
12673 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
12674 (grub_minix_ino_t): New type.
12675 (grub_minix_le_to_cpu_ino): New macro.
12676 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
12677 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
12678 (grub_minix_data): New field block_size.
12679 (grub_minix_read_file): Handle 64-bit correctly.
12680 * grub-core/fs/minix3.c: New file.
12681
12682 2011-05-15 Tristan Gingold <gingold@free.fr>
12683 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
12684 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12685
12686 IA64 support.
12687
12688 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
12689 * configure.ac: Add ia64-efi target.
12690 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
12691 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
12692 * gentpl.py: Add ia64_efi platform.
12693 Rename x86_efi to efi and Add ia64-efi. All users updated.
12694 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
12695 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
12696 Remove kern/generic/rtc_get_time_ms.c on EFI.
12697 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
12698 kern/ia64/dl_helper.c on ia64-efi.
12699 Add kern/emu/cache.c on emu.
12700 (linux): Use on loader/ia64/efi/linux.c on ia64.
12701 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
12702 whether symbol is a function.
12703 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
12704 (grub_symbol): New field 'isfunc'.
12705 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
12706 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
12707 (grub_dl_load_segments): Place all sections into the same region.
12708 [__ia64__]: Create trampolines and got.
12709 [GRUB_MACHINE_EMU]: Call mprotect.
12710 (grub_dl_resolve_symbols): Resolve symbol type as well.
12711 [__ia64__]: Create function descriptors.
12712 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
12713 (grub_rtc_get_time_ms): ... this. Expressions simplified.
12714 (grub_get_rtc): New function.
12715 * grub-core/kern/emu/cache.c [__ia64__]: New file.
12716 * grub-core/kern/emu/cache.S: Renamed to ...
12717 * grub-core/kern/emu/cache_s.S: ... this.
12718 [__ia64__]: Add a nop.
12719 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
12720 [__ia64__]: New function.
12721 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
12722 * grub-core/kern/ia64/dl.c: New file.
12723 * grub-core/kern/ia64/dl_helper.c: Likewise.
12724 * grub-core/kern/ia64/efi/init.c: New file.
12725 * grub-core/kern/ia64/efi/startup.S: Likewise.
12726 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
12727 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
12728 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
12729 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
12730 * grub-core/loader/ia64/efi/linux.c: New file.
12731 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
12732 (GRUB_MOD_DEP): Likewise.
12733 (grub_dl) [__ia64__]: New fields got and tramp.
12734 (grub_dl): New field 'base'.
12735 (grub_dl_register_symbol): New argument isfunc. All users updated.
12736 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
12737 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
12738 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
12739 (grub_ia64_dl_get_tramp_got_size): New proto.
12740 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
12741 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
12742 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
12743 * include/grub/efi/api.h: Skip call wrappers on ia64.
12744 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
12745 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
12746 * include/grub/elf.h (ELF_ST_INFO): New definition.
12747 * include/grub/ia64/efi/kernel.h: New file.
12748 * include/grub/ia64/efi/memory.h: Likewise.
12749 * include/grub/ia64/efi/time.h: Likewise.
12750 * include/grub/ia64/kernel.h: Likewise.
12751 * include/grub/ia64/setjmp.h: Likewise (from glibc).
12752 * include/grub/ia64/time.h: New file.
12753 * include/grub/ia64/types.h: Likewise.
12754 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
12755 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
12756 New protos.
12757 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
12758 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12759 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
12760 * util/grub-mkimage.c (image_target_desc): New field pe_target.
12761 All users updated.
12762 (EFI64_HEADER_SIZE): New definition. All users updated.
12763 (image_targets): Add ia64-efi.
12764 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
12765 jumpers_addr. All users updated.
12766 Create function descriptors.
12767 (count_funcs): New function.
12768 (unaligned_uint32): New struct.
12769 (MASK20): New definition.
12770 (MASK19): Likewise.
12771 (MASKF21): Likewise.
12772 (add_value_to_slot_20b): New function.
12773 (add_value_to_slot_21_real): Likewise.
12774 (add_value_to_slot_21): Likewise.
12775 (ia64_kernel_trampoline): New struct.
12776 (nopm): New variable.
12777 (jump): Likewise.
12778 (make_trampoline): New function.
12779 (relocate_addresses): Handle ia64.
12780 (make_reloc_section): Likewise.
12781 (load_image): Likewise.
12782
12783 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12784
12785 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
12786 warning. Move variables before code while on it.
12787
12788 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12789
12790 Fuloong support.
12791
12792 * configure.ac: Rename yeeloong platform to loongson. All users updated.
12793 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
12794 * grub-core/boot/mips/loongson/fuloong.S: New file.
12795 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
12796 Explicitly init CS5536.
12797 [FULOONG]: Don't use serial until CS5536 is available.
12798 Set GPIO based on dumps.
12799 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
12800 [FULOONG]: Handle GPIO and memory controller differences.
12801 Parse machine type in $a2.
12802 * grub-core/boot/mips/startup_raw.S: Determine and save the
12803 architecture.
12804 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
12805 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
12806 init on architecture type.
12807 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12808 SIS315E. Don't init at_keyboard on fuloong.
12809 (grub_halt): Support Fuloong.
12810 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
12811 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
12812 (loongson_machtypes): New array.
12813 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
12814 type.
12815 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
12816 config. All users updated. Handle CS5536 serial.
12817 * grub-core/term/serial.c (grub_serial_register): Conditionalise
12818 default port on machine type. Register serial as inactive.
12819 * grub-core/video/sis315pro.c: New file.
12820 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
12821 definition.
12822 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
12823 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
12824 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
12825 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
12826 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
12827 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
12828 to ...
12829 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
12830 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
12831 definition.
12832 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
12833 (grub_arch_machine): New extern var.
12834 * include/grub/mips/loongson/serial.h
12835 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
12836 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
12837 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
12838 (GRUB_MACHINE_SERIAL_PORT0): ... this.
12839 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
12840 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
12841 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
12842 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
12843 * include/grub/term.h (grub_term_register_input_inactive): New inline
12844 function.
12845 (grub_term_register_output_inactive): Likewise.
12846 * include/grub/video.h (grub_video_driver_id): New value
12847 GRUB_VIDEO_DRIVER_SIS315PRO.
12848 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
12849 New field "names". All users updated.
12850 New field value IMAGE_FULOONG_FLASH.
12851 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
12852
12853 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
12854
12855 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
12856 and add some clarification.
12857
12858 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12859
12860 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
12861 platforms if kernel is compressed.
12862
12863 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12864
12865 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
12866 unused modules since currently referrence counter isn't reliable and
12867 there isn't much memory to recover there anyway.
12868
12869 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12870
12871 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
12872 rather than resetting it to allow modules to reference themselves
12873 in init.
12874
12875 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12876
12877 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
12878 counter on dependencies since grub_dl_unref already handles this.
12879
12880 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12881
12882 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
12883 on error if not already done.
12884
12885 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12886
12887 Fix few potential memory misusage.
12888
12889 * grub-core/font/font.c (load_font_index): Don't free char_index to
12890 avoid double free.
12891 (grub_font_load): Zero-fill font at alloc for safety.
12892 Close file on error.
12893 (free_font): Free bmp_idx.
12894
12895 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12896
12897 * docs/grub.texi (Installation): Fix several outdated claims.
12898
12899 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12900
12901 Handle module_license on windows.
12902
12903 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
12904 sections shifted.
12905 (insert_string): Make argument const char * instead of char *.
12906 (write_section_data): Handle long section names.
12907 Handle module_license.
12908
12909 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12910
12911 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
12912 handle class-free menuentries.
12913 (grub_normal_add_menu_entry): Add a check to be sure.
12914
12915 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12916
12917 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
12918 PgUp and PgDown.
12919
12920 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12921
12922 * configure.ac: Bump version to 1.99.
12923
12924 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12925
12926 Give ATA device a bit more time on first try in order to allow disks
12927 to spin up.
12928
12929 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
12930 if dev->present is 1. Reset dev->present on failure.
12931 (grub_ata_device_initialize): Set dev->present to 1.
12932 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
12933 (grub_ata_device): New member 'present'.
12934
12935 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12936
12937 * util/grub-mkimage.c (generate_image): Update hash.
12938
12939 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12940
12941 Flush caches on DMA memory.
12942
12943 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
12944 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
12945 (grub_dma_free): Likewise.
12946 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
12947
12948 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12949
12950 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
12951 to avoid asm treating ld and sd as macros.
12952
12953 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12954
12955 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
12956 decompressor.
12957
12958 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12959
12960 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
12961 grub_decompress_core since later would fail if grub_decompress_core
12962 is too far.
12963
12964 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12965
12966 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
12967 R_MIPS_JALR since it's used by newer compiler.
12968
12969 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
12970
12971 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
12972
12973 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12974
12975 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
12976 file_path to 0 for surety.
12977 (grub_chainloader_boot): Set exit_data to NULL.
12978 Unset the loader once done.
12979 (grub_cmd_chainloader): Fix confusing error message if file is empty.
12980
12981 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12982
12983 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
12984 unknown key into a dprintf.
12985
12986 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12987
12988 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
12989 on first non-existant partition.
12990
12991 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12992
12993 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
12994 openning fails.
12995 Reported by: Mark Korenberg.
12996
12997 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12998
12999 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
13000 overflow.
13001
13002 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13003
13004 * util/grub-mkimage.c (main): Explicitely flush and sync the output
13005 before closing to ensure that it will be readable by grub-setup.
13006
13007 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13008
13009 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
13010 (devpath_1): Use MAKE_PIWG_PATH.
13011 (devpath_2): Likewise.
13012 (devpath_3): Likewise.
13013 (devpath_4): Likewise.
13014 (devpath_5): Likewise.
13015 (devpath_6): Likewise.
13016
13017 The appleldr.mod was checked that to be binary identical to previous
13018 version.
13019
13020 2011-05-05 Zach <mikezackles>
13021
13022 Support 2010 Macbooks.
13023
13024 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
13025 (devs): Add devpath_6.
13026
13027 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13028
13029 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
13030 /dev/random. /dev/urandom is good enough for our purposes (salting).
13031
13032 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13033
13034 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
13035
13036 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13037
13038 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
13039 hexadecimal.
13040
13041 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13042
13043 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
13044 and not 0 on failure.
13045
13046 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
13047
13048 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
13049 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
13050 disk; otherwise grub_fs_probe will not fall back to the next
13051 filesystem.
13052 (grub_pxefs_open): Likewise, for consistency.
13053 Reported and tested by: Ezekiel Grave.
13054
13055 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
13056
13057 * tests/partmap_test.in: Don't hardcode path to parted.
13058 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
13059
13060 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
13061
13062 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
13063 of `ls' to find out which devices are available.
13064
13065 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13066
13067 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
13068 than source address for efi mmap buffer.
13069
13070 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13071
13072 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
13073 wrong action on non-detecting the magic.
13074
13075 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13076
13077 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
13078 already supplied by another part of the module (fixes compilation on
13079 FreeBSD).
13080
13081 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13082
13083 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
13084 match the one used by mdadm.
13085
13086 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13087
13088 * po/README: Add instructions for creating po/LINGUAS.
13089
13090 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13091
13092 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
13093 #551428.
13094
13095 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
13096 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
13097 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
13098 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
13099 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
13100 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
13101 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
13102 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
13103 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
13104 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
13105 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
13106 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
13107 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
13108 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
13109 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
13110 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
13111 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
13112 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
13113 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
13114 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
13115 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
13116 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
13117
13118 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13119
13120 * grub-core/kern/emu/getroot.c
13121 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
13122 test that was incorrectly reintroduced in r3214.
13123 Reported by: Ian Dall. Fixes Savannah bug #33133.
13124
13125 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13126
13127 Fix stack pointer handling in 16-bit relocator.
13128
13129 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
13130 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
13131 Fixes Ubuntu bug #683904.
13132
13133 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13134
13135 * configure.ac: Bump version to 1.99~rc2.
13136
13137 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13138
13139 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
13140 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
13141 * grub-core/lib/x86_64/setjmp.S: Likewise.
13142 * grub-core/lib/mips/setjmp.S: Likewise.
13143 * grub-core/lib/powerpc/setjmp.S: Likewise.
13144 * grub-core/lib/sparc64/setjmp.S: Likewise.
13145
13146 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13147
13148 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
13149 * grub-core/lib/efi/datetime.c: Likewise.
13150
13151 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13152
13153 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
13154 New function.
13155 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
13156 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
13157 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
13158
13159 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13160
13161 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
13162 bitmap.
13163 (grub_gfxterm_term_init): Likewise.
13164
13165 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13166
13167 Take into account the decorations the computing menu entry width.
13168
13169 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
13170 (grub_gfxmenu_create_box): Register get_border_width.
13171 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
13172 if available.
13173 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
13174 get_border_width.
13175
13176 2011-04-18 Endres Puschner <code@e7p.de>
13177
13178 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
13179 Don't skip first class.
13180
13181 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13182
13183 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
13184 chunks.
13185 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
13186
13187 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13188
13189 Complete 64-bit division support.
13190
13191 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
13192 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
13193 * include/grub/misc.h (grub_divmod64): Rename to ...
13194 (grub_divmod64_full): ... this.
13195 (grub_divmod64): New inline function.
13196
13197 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13198
13199 * util/grub-mkimage.c (generate_image): Add forgotten comma.
13200
13201 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13202
13203 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
13204 performing the necessary test.
13205
13206 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13207
13208 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
13209 (kfreebsd.elf): Likewise.
13210 (pc-chainloader.elf): Likewise.
13211 (ntldr.elf): Likewise.
13212
13213 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13214
13215 Identify RAID by its UUID rather than (guessed) name.
13216
13217 * grub-core/disk/raid.c (ascii2hex): New function.
13218 (grub_raid_open): Accept mduuid/%s specification.
13219 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
13220 (get_mdadm_uuid): ... this.
13221 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
13222
13223 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
13224
13225 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
13226 to negative size.
13227
13228 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
13229
13230 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
13231 btrfs subvolume.
13232 * util/grub.d/20_linux_xen.in: Likewise.
13233
13234 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
13235
13236 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
13237 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
13238
13239 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
13240 Build a list of relevant visible mounts using the mnt_id and
13241 parent_mnt_id fields, and then scan that list at the end.
13242
13243 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13244
13245 * docs/grub.texi (normal): New section.
13246 (normal_exit): New section.
13247 (Embedded configuration): Add reference to normal.
13248 (GRUB only offers a rescue shell): Likewise.
13249 * docs/grub-dev.texi (Error Handling): Fix typo.
13250
13251 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13252
13253 * NEWS: Drop obsolete entry about probe-only btrfs support.
13254
13255 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13256
13257 * util/import_gcry.py: Fix typo.
13258
13259 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13260
13261 * NEWS: Add btrfs support.
13262
13263 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13264 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
13265
13266 BtrFS support. Written by me (Vladimir) with important bugfixes and
13267 even more important testing by Colin.
13268
13269 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
13270 * grub-core/Makefile.core.def (btrfs): Add crc.c.
13271 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
13272 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
13273 mem_input_off and mem_input. All users updated to accept in-RAM input.
13274 (gzio_seek): New function.
13275 (test_zlib_header): Likewise.
13276 (grub_gzio_read): Likewise.
13277 (grub_zlib_decompress): Likewise.
13278 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
13279 Accept partial and non-virtual mounts.
13280 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
13281 avoid receiving /dev/dm-X as device.
13282 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
13283 Handle bind and partial mounts.
13284 * grub-core/lib/crc.c: New file.
13285 * include/grub/deflate.h: Likewise.
13286 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
13287 proto.
13288 * include/grub/lib/crc.h: New file.
13289
13290 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13291
13292 Implement automatic module license checking according to new GNU
13293 guidelines.
13294
13295 * grub-core/kern/dl.c (grub_dl_check_license): New function.
13296 (grub_dl_load_core): Use grub_dl_check_license.
13297 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
13298 (GRUB_MOD_LICENSE): Likewise.
13299 (GRUB_MOD_DUAL_LICENSE): Likewise.
13300 All modules updated.
13301
13302 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
13303
13304 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
13305 reserved_first_sector to 1. btrfs reserves plenty of space for boot
13306 loaders.
13307 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
13308
13309 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13310
13311 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
13312
13313 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13314
13315 * util/grub-fstest.c (read_file): Report GRUB error if file opening
13316 failed.
13317
13318 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13319
13320 * grub-core/kern/file.c (grub_file_open): Don't take into account the
13321 parenthesis in the middle of the filename.
13322
13323 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13324
13325 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
13326 rather than trying to put initrd way too high.
13327 Reported by: Ryan Lortie <desrt@desrt.ca>
13328
13329 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13330
13331 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
13332 improperly removed string.
13333
13334 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13335
13336 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
13337 is_disk.
13338 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
13339 (open_device) Likewise.
13340 (grub_util_biosdisk_close): Likewise.
13341 Reported by: Mark Korenberg.
13342
13343 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
13344
13345 * util/grub-mkconfig_lib.in: Add missing quotes.
13346
13347 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
13348
13349 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
13350 is NULL.
13351
13352 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13353
13354 Dynamically count the number of lines for the lower banner.
13355
13356 * grub-core/normal/menu_entry.c (per_term_screen): New member
13357 num_entries.
13358 (print_down): Use num_entries.
13359 (update_screen): Likewise.
13360 (grub_menu_entry_run): Set num_entries.
13361 * grub-core/normal/menu_text.c (menu_viewer_data): New member
13362 num_entries.
13363 (grub_print_message_indented): Move real part to ...
13364 (grub_print_message_indented_real): ... here. Additional argument
13365 dry_run.
13366 (draw_border): Additional argument num_entries.
13367 (print_message): Additional argument dry_run.
13368 (print_entries): Receive menu viewer data.
13369 (grub_menu_init_page): New argment num_entries.
13370 (menu_text_set_chosen_entry): Use num_entries.
13371 (grub_menu_try_text): Likewise.
13372 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
13373 All users updated.
13374 (grub_ucs4_count_lines): New function.
13375 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
13376 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
13377 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
13378 (grub_term_border_height): Likewise.
13379 (grub_term_num_entries): Likewise.
13380
13381 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13382
13383 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
13384 Remove now unused string.
13385
13386 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
13387
13388 * docs/grub-dev.texi (Finding your way around): Update for 1.99
13389 build system.
13390 (Getting started): GRUB is developed in Bazaar now, not Subversion.
13391
13392 (Comment): Fix typo.
13393 (Getting started): General copy-editing.
13394 (Typical Development Experience): Likewise.
13395 (Error Handling): Likewise.
13396 (Video API): Likewise.
13397
13398 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
13399
13400 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
13401 throughout.
13402
13403 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13404
13405 * util/grub-mkimage.c (main): Handle special naming of yeeloong
13406 directory.
13407
13408 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
13409
13410 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
13411 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
13412 "development".
13413
13414 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13415
13416 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
13417 grub_strcpy since the lines aren't necessarily 0-terminated.
13418
13419 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13420
13421 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
13422 root on legacy.
13423
13424 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13425
13426 * grub-core/commands/probe.c (options): Argument to set isn't optional.
13427 (GRUB_MOD_INIT): DEVICE isn't optional.
13428
13429 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13430
13431 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
13432 word on new line if it's too long anyway. Fixes a hang.
13433
13434 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13435
13436 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
13437 const.
13438 * util/grub-setup.c (main): Reuse md device name if available.
13439 * util/raid.c (grub_util_raid_getmembers): Receive device name and
13440 not GRUB name as argument.
13441 Based on patch by: Florian Wagner <fwagner>.
13442
13443 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13444
13445 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13446 Place mbi on low memory for better compatibility.
13447
13448 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13449
13450 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
13451
13452 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13453 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
13454
13455 * autogen.sh: Ensure that collate and ctype locale is C.
13456 * conf/Makefile.common: Likewise.
13457
13458 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13459
13460 * grub-core/normal/menu.c: Add missing include.
13461
13462 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13463
13464 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
13465
13466 2011-04-08 Martin Zuther <mzuther@mzuther.de>
13467
13468 * util/grub-mkconfig.in: Ignore emacsen backup.
13469
13470 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13471
13472 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
13473 on open.
13474 (grub_util_biosdisk_close): Likewise.
13475
13476 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13477
13478 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
13479 const attribute and use grub_isdigit.
13480
13481 2011-04-06 Andrey <dev_null@ukr.net>
13482
13483 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
13484 gcc warning.
13485
13486 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13487
13488 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
13489 useful grub_dprintf's.
13490
13491 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13492
13493 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
13494
13495 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13496
13497 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
13498
13499 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13500
13501 Output errors if theme loading failed.
13502
13503 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
13504 grub_gfxterm_fullscreen on error paths to ...
13505 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
13506 theme loading error.
13507
13508 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13509
13510 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
13511 space for older compilers.
13512 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13513
13514 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13515
13516 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
13517 and report them as not RAID members since they are useless for GRUB.
13518 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13519
13520 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13521
13522 Increase LVM implementation robustness in order not to crash on
13523 configurations like pvmove. Previously code assumed that in some places
13524 only lvs or only pvs are used whereas it seems that they are used
13525 interchangeably.
13526
13527 * grub-core/disk/lvm.c (read_node): New function.
13528 (read_lv): Use read_node.
13529 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
13530 Match volumes only at the end when all lvs are found. Take both
13531 pvs (first) and lvs (second) into account.
13532 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
13533 mirror_* into node_*. All users updated.
13534 (grub_lvm_stripe): Merge this ...
13535 (grub_lvm_mirror): ... and this ...
13536 (grub_lvm_node): ... into this. All users updated.
13537
13538 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13539
13540 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
13541 of function to allow further scanning for LVMs.
13542
13543 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13544
13545 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
13546 on failed seek as it breaks open fd reusage.
13547
13548 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13549
13550 * util/grub-install.in: Add a recommendation to use --recheck before
13551 reporting bugs.
13552
13553 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13554
13555 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
13556 are obtained.
13557
13558 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13559
13560 GRUB developper manual based on existing Internals section and
13561 contributions by the various authors with active copyright assignment.
13562
13563 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
13564 * docs/font_char_metrics.png: New file.
13565 * docs/font_char_metrics.txt: Likewise.
13566 * docs/grub-dev.texi: Likewise.
13567 * docs/grub.texi (Internals): Move from here ...
13568 * docs/grub-dev.texi: ... here.
13569
13570 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13571
13572 Store the loopback device as data on loopback grub_disk structures,
13573 rather than the file it points to. This fixes use of freed memory
13574 if an existing loopback device is replaced.
13575
13576 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
13577 disk->data, not dev->file.
13578 (grub_loopback_read): Adjust file assignment to match.
13579 Fixes Ubuntu bug #742967.
13580
13581 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13582
13583 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
13584 when replacing an existing device.
13585
13586 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
13587
13588 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
13589 memory corruptions.
13590
13591 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
13592 unsigned.
13593 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
13594 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
13595 (grub_jfs_read_inode): Likewise.
13596 (grub_jfs_opendir): Likewise. Remove now useless casts.
13597 (grub_jfs_getent): Likewise.
13598 Make ino a grub_uint32_t rather than int.
13599 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
13600 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
13601 division and module with bit operations.
13602 (grub_jfs_find_file): Make ino a grub_uint32_t.
13603 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
13604
13605 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13606
13607 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
13608 warning. (This was in fact always initialised before use, but GCC
13609 wasn't smart enough to prove that.)
13610 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13611
13612 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
13613
13614 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
13615 stack alignment.
13616 (efi_wrap_1): Likewise.
13617 (efi_wrap_2): Likewise.
13618 (efi_wrap_3): Likewise.
13619 (efi_wrap_4): Likewise.
13620 (efi_wrap_5): Likewise.
13621 (efi_wrap_6): Likewise.
13622 (efi_wrap_10): Likewise.
13623 Based on information by: Red Hat/Peter Jones.
13624
13625 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13626
13627 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
13628 set-but-not-used variable.
13629
13630 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13631
13632 * docs/grub.texi (Simple configuration): Be more explicit about
13633 GRUB_DEFAULT, and add an example.
13634 Reported by: Leslie Rhorer.
13635
13636 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13637
13638 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
13639 shell".
13640
13641 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13642
13643 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
13644 * util/grub.d/20_linux_xen.in: Likewise.
13645
13646 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13647
13648 * util/grub.d/10_linux.in: Try alternative config filenames where
13649 we parse config file.
13650 * util/grub.d/20_linux_xen.in: Likewise.
13651
13652 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13653
13654 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
13655 * util/grub.d/20_linux_xen.in: Likewise.
13656
13657 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13658
13659 * grub-core/disk/raid.c (insert_array): Add few potentially
13660 useful grub_util_info.
13661 (grub_raid_register): Likewise.
13662
13663 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13664
13665 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
13666 Preserve partition number in mdadm code path.
13667
13668 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13669
13670 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
13671 few potentially useful grub_util_info.
13672
13673 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13674
13675 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
13676
13677 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13678
13679 * docs/grub.texi (default): Use @example rather than nested
13680 itemized lists to avoid breaking gendocs.
13681
13682 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13683
13684 * docs/grub.texi (Future): Update.
13685
13686 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13687
13688 * docs/grub.texi (Environment): New chapter.
13689 (Changes from GRUB Legacy): Link to "Environment block" section for
13690 details of limitations.
13691 (Simple configuration): Likewise. Link to documentation of gfxmode
13692 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
13693 respectively.
13694 (Shell-like scripting): Note that normal variables are stored in the
13695 environment.
13696 (gettext): Link to documentation of lang and locale_dir.
13697 (list_env): New section.
13698 (load_env): New section.
13699 (save_env): New section.
13700
13701 (Reporting bugs): Fix typo.
13702
13703 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13704
13705 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
13706 the example.
13707
13708 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13709
13710 * grub-core/term/at_keyboard.c (set_scancodes)
13711 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
13712
13713 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13714
13715 * docs/grub.texi (Menu-specific commands): Remove some semantics
13716 that were true in GRUB Legacy but not in GRUB 2.
13717 (submenu): New section.
13718 (false): New section.
13719 (read): New section.
13720 (true): New section.
13721
13722 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13723
13724 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
13725
13726 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13727
13728 * docs/grub.texi (Simple configuration): Explain some of the
13729 current limitations of grub-mkconfig.
13730 Reported by: Leslie Rhorer.
13731
13732 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13733
13734 Old macs search for boot.efi rather than for bootia32.efi.
13735
13736 * util/grub-install.in: Copy bootia32.efi to boot.efi.
13737 * util/grub-mkrescue.in: Likewise.
13738 Suggested by: Peter Jones.
13739
13740 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13741
13742 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
13743
13744 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13745
13746 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
13747 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
13748 (grub_lvm_mirror): New struct.
13749 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
13750 (grub_lvm_iterate): Iterate only visible volumes.
13751 (grub_lvm_read): Factor out to ..
13752 (read_lv): ... this. Support mirrors.
13753 (grub_lvm_read): New wrapper function.
13754 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
13755 stripped or mirrored.
13756
13757 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13758
13759 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
13760
13761 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13762
13763 * docs/grub.texi (loopback): New section.
13764
13765 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13766
13767 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
13768 removed -p option.
13769
13770 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13771
13772 * docs/grub.texi (BIOS installation): New section, partly based on
13773 previous text in other sections.
13774 (Installing GRUB using grub-install): Replace BIOS discussion with a
13775 cross-reference.
13776 (Images): Likewise.
13777
13778 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13779
13780 * grub-core/kern/emu/hostdisk.c (find_partition_start)
13781 [HAVE_DIOCGDINFO]: Add safety checks.
13782
13783 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13784
13785 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
13786 per default compiled in kernel and prior to 8.0 isn't shipped at all.
13787
13788 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13789
13790 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
13791 real_sb->size is zero (e.g. RAID-0), get the disk size from
13792 real_sb->data_size instead.
13793 Fixes Ubuntu bug #743136.
13794
13795 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13796
13797 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
13798 printf clauses for printing size and start.
13799
13800 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13801
13802 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
13803 Reported and tested by: Timothy Nikkel.
13804
13805 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13806
13807 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
13808 (dirty_region_add_real): ... this.
13809 (dirty_region_add): Don't discard margin refresh when performing
13810 scheduled repaint.
13811
13812 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13813
13814 * grub-core/lib/relocator.c (allocate_regstart)
13815 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
13816 terminals are capabple of malloc-free operation.
13817 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13818 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13819
13820 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
13821
13822 * util/grub-setup.c: Copy the partition table zone if floppy support
13823 is disabled, even if no partition table is found.
13824
13825 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
13826 during POST if an invalid partition table is contained in the PBR
13827 of the active partition when GRUB is installed to a partition.
13828
13829 2011-03-28 Colin Watson <cjwatson@debian.org>
13830
13831 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
13832 comment.
13833
13834 2011-03-28 Colin Watson <cjwatson@debian.org>
13835
13836 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
13837 to be specific about what kind of RAID device we're scanning for.
13838
13839 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
13840
13841 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
13842 return freed string.
13843
13844 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13845
13846 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
13847
13848 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13849
13850 Use libgeom on FreeBSD to detect partitions.
13851
13852 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
13853 (grub-mkrelpath): Likewise.
13854 (grub-script-check): Likewise.
13855 (grub-editenv): Likewise.
13856 (grub-mkpasswd-pbkdf2): Likewise.
13857 (grub-fstest): Likewise.
13858 (grub-mkfont): Likewise.
13859 (grub-mkdevicemap): Likewise.
13860 (grub-probe): Likewise.
13861 (grub-setup): Likewise.
13862 (grub-ofpathname): Likewise.
13863 (grub-mklayout): Likewise.
13864 (example_unit_test): Likewise.
13865 (grub-menulst2cfg): Likewise.
13866 * grub-core/Makefile.core.def (grub-emu): Likewise.
13867 (grub-emu-lite): Likewise.
13868 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
13869 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
13870 define HAVE_DIOCGDINFO.
13871 (follow_geom_up) [FreeBSD]: New function.
13872 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
13873 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
13874 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
13875 unconditionally of HAVE_DIOCGDINFO.
13876
13877 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13878
13879 Fix FreeBSD compilation problem.
13880
13881 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
13882 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
13883
13884 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
13885
13886 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
13887 Switch back to page zero before loading a kernel, since some kernel
13888 drivers expect that.
13889 Thanks to: Felix Kuehling.
13890
13891 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13892
13893 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
13894 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
13895 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
13896
13897 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13898
13899 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
13900 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
13901
13902 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13903
13904 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
13905 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
13906 malloc is disabled.
13907
13908 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13909
13910 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
13911 for modules headers when counting the needed allocation size.
13912
13913 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13914
13915 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
13916 if no ASCII character is found to prevent crash.
13917
13918 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
13919
13920 * grub-core/video/bitmap.c (match_extension): Ignore case.
13921
13922 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13923
13924 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
13925
13926 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13927
13928 * grub-core/script/parser.y: Declare "time" as valid argument.
13929
13930 2011-03-23 Peter Jones <pjones@redhat.com>
13931
13932 Fix incorrect assert failure reporting.
13933
13934 * grub-core/tests/example_functional_test.c (example_test): Add
13935 a failure comment.
13936 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
13937 (failure_start): ...this. Check that malloc succeeded.
13938 Don't call xvasprintf. Return failure struct.
13939 (failure_append_vtext): New function.
13940 (failure_append_text): Likewise.
13941 (add_failure): Likewise.
13942 (grub_test_assert_helper): Likewise.
13943 * include/grub/test.h (grub_test_assert_helper): New declaration.
13944 (grub_test_assert): Macro rewritten.
13945
13946 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13947
13948 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
13949
13950 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13951
13952 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
13953
13954 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13955
13956 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
13957 into GRUB-style one.
13958
13959 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13960
13961 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
13962 error and not grub_errno.
13963 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
13964
13965 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13966
13967 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
13968 GRUB_USB_SPEED_NONE in case of failure and not the error code.
13969
13970 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13971
13972 * grub-core/efiemu/i386/pc/cfgtables.c
13973 (grub_machine_efiemu_init_tables): Make declaration a prototype.
13974 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
13975 (grub_xnu_unlock): Likewise.
13976 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
13977
13978 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13979
13980 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
13981 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
13982 * grub-core/commands/hashsum.c (aliases): Likewise.
13983 * grub-core/commands/setpci.c (pci_registers): Likewise.
13984 * grub-core/disk/usbms.c (attach_hook): Likewise.
13985 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
13986 (zio_checksum_table): Likewise.
13987 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
13988 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
13989 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
13990 * grub-core/lib/relocator.c (leftovers): Likewise.
13991 (extra_blocks): Likewise.
13992 * grub-core/loader/i386/bsd.c (relocator): Likewise.
13993 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
13994 (modules_last): Likewise.
13995 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
13996 (devices): Likewise.
13997 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
13998 (modules_last): Likewise.
13999 * grub-core/normal/auth.c (users): Likewise.
14000 * grub-core/normal/context.c (initial_menu): Likewise.
14001 (current_menu): Likewise.
14002 * grub-core/normal/crypto.c (crypto_specs): Likewise.
14003 * grub-core/term/serial.c (grub_serial_ports): Likewise.
14004 (grub_serial_terminfo_input_template): Likewise.
14005 (grub_serial_terminfo_output_template): Likewise.
14006 (grub_serial_terminfo_input): Likewise.
14007 (grub_serial_terminfo_output): Likewise.
14008 (registered): Likewise.
14009 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
14010
14011 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14012
14013 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
14014 grub_video_mode_type_t.
14015 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
14016 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
14017 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
14018
14019 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14020
14021 * util/grub-install.in: Correct the x86-64 name as x86_64.
14022
14023 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
14024
14025 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
14026 initial chunk read from the kernel always includes GRUB's multiboot
14027 header, which is now outside the first sector.
14028
14029 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
14030
14031 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
14032 cached mmap_size, so that this works correctly when called multiple
14033 times.
14034 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
14035
14036 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
14037
14038 * docs/grub.texi (Simple configuration): Tidy up formatting.
14039
14040 2011-03-07 Szymon Janc <szymon@janc.net.pl>
14041
14042 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
14043 Set-but-not-used variable removed.
14044
14045 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
14046
14047 Workaround yet another IEEE1275 bug.
14048
14049 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
14050 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
14051 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
14052 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
14053 is set.
14054 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
14055 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
14056
14057 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
14058
14059 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
14060 error.
14061
14062 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
14063
14064 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
14065 empty, since in that case we can only generate either nothing or a
14066 syntactically invalid configuration file.
14067 Reported by: Michal Suchanek. Fixes Debian bug #612898.
14068
14069 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
14070
14071 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
14072 (Making a GRUB bootable CD-ROM): Likewise.
14073 (Invoking grub-mkrescue): New section.
14074 Reported by: Yann Dirson. Fixes Debian bug #612585.
14075
14076 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
14077
14078 * util/grub-install.in: Remove unnecessary brackets from tr
14079 arguments.
14080 * util/grub.d/10_hurd.in: Likewise.
14081 * util/grub.d/10_kfreebsd.in: Likewise.
14082 * util/grub.d/10_linux.in: Likewise.
14083 * util/grub.d/20_linux_xen.in: Likewise.
14084 Reported by: Jamie Heilman. Fixes Debian bug #612564.
14085
14086 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
14087
14088 * include/grub/file.h (not_easly_seekable): Rename to ...
14089 (not_easily_seekable): ... this. Update all users.
14090
14091 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
14092
14093 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
14094 grub-mkrescue.
14095
14096 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14097
14098 * util/grub-mkimage.c (generate_image): Refuse to create the images
14099 bigger than the actual flash (512K) in Loongson machines. 512K is also
14100 the biggest chip supported by them.
14101
14102 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14103
14104 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
14105
14106 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
14107
14108 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
14109 super_offset field.
14110
14111 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14112
14113 * util/grub-install.in: Ignore install device on platforms
14114 where it doesn't make sense. Always use UUIDs except on pc, efi and
14115 sparc64.
14116 Reported by: Daniel Kahn Gillmor.
14117
14118 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14119
14120 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
14121
14122 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14123
14124 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
14125 (iterate_real): Don't rely on partition being non-NULL.
14126
14127 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14128
14129 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
14130 supported platforms. Put a compile time assert for this rather than
14131 generate a warning with 32-bit shift.
14132
14133 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14134
14135 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
14136 logical expression more readable.
14137
14138 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14139
14140 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
14141 even if some elements have a name.
14142 Reported by: Alexander GQ Gerasiov.
14143
14144 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
14145
14146 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
14147 path unreadable if `grub-probe -t abstraction' fails, for example if
14148 memberlist fails on an LVM volume group.
14149 Reported by: Darius Jahandarie.
14150
14151 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
14152
14153 * docs/grub.texi (Simple configuration): Document
14154 GRUB_PRELOAD_MODULES.
14155
14156 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
14157
14158 * .bzrignore: Remove nonexistent grub-pbkdf2.
14159
14160 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
14161
14162 * configure.ac: Bump version to 1.99~rc1.
14163
14164 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
14165
14166 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
14167 for safety.
14168
14169 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14170
14171 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
14172 module.
14173
14174 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14175
14176 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
14177
14178 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14179
14180 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
14181 diskdevid.
14182
14183 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14184
14185 Fix compilation on cygwin.
14186
14187 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
14188 -R .drectve on cygwin.
14189 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
14190 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
14191 (COND_CYGWIN): New condition.
14192 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
14193 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
14194 not @TARGET_OBJ2ELF@.
14195 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
14196 type to determine whether aux is to be used.
14197
14198 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14199
14200 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
14201 realpath'ed device string.
14202 Handle floppy (somewhat).
14203 Issue error in unknown case rather than garbage.
14204 Reported by: Axel Beckert.
14205
14206 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14207
14208 * util/grub.d/00_header.in (load_video): Handle the case when no video
14209 drivers available.
14210 Thanks to: Axel Beckert.
14211
14212 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14213
14214 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
14215 variable. Fixes problem on big endian platforms.
14216
14217 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14218
14219 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
14220 It doesn't work well there.
14221
14222 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14223
14224 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
14225 warning.
14226 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
14227 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
14228 counter.
14229
14230 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14231
14232 Use alias->path rather than buggy "canon".
14233
14234 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
14235 (ofdisk_hash_add): New argument curcan. All users updated.
14236
14237 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
14238
14239 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
14240
14241 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14242
14243 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
14244 loadmask before doing any calculations. Use correct type for offset.
14245 (grub_linux_load64): Likewise.
14246
14247 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
14248
14249 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
14250 with NULL.
14251 (console_grub_equivalences_unshift): Likewise.
14252 Reported by: Daniel Dehennin.
14253
14254 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14255
14256 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
14257 (set_env_limn_ro): Likewise.
14258 (GRUB_MOD_INIT): Likewise.
14259 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
14260 ARRAY_SIZE while on it.
14261 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
14262 * grub-core/normal/context.c (grub_env_export): Move from here ...
14263 * grub-core/kern/env.c (grub_env_export): ... here.
14264 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
14265 prefix.
14266 * grub-core/kern/main.c (grub_main): Export root and prefix.
14267 * include/grub/env.h (grub_env_export): Export.
14268 Reported by: Seth Goldberg.
14269
14270 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14271
14272 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14273 Take into account space used by ELF sections and multiboot palette.
14274 Reported by: Grégoire Sutre.
14275
14276 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14277
14278 * BUGS: New file.
14279
14280 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14281
14282 Pass more appropriate video id to Linux.
14283
14284 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
14285 grub_video_get_driver_id and variable gfxpayloadforcelfb to
14286 fill have_vga.
14287 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
14288 shift params->lfb_size.
14289 * include/grub/i386/linux.h: Make an enume out of have_vga values.
14290
14291 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14292
14293 * util/grub-menulst2cfg.c: Add missing include of misc.h.
14294
14295 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14296
14297 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
14298 separator and pass bootpath/devid even if only one of them is available.
14299 Reported by: Seth Goldberg.
14300
14301 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14302
14303 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
14304 implementations bug on them.
14305
14306 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
14307 memory.
14308 (filter_memory_map): Likewise.
14309
14310 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14311
14312 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
14313 Reported by: nebuchadnezzar.
14314
14315 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14316
14317 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
14318 Reported by: nebuchadnezzar.
14319
14320 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14321
14322 Submenu default support.
14323
14324 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
14325 auto_boot. All users updated.
14326 Declared static.
14327 Handle chosen and default with submenus.
14328 (grub_menu_execute_with_fallback): Declared static.
14329 Don't notify failure if autobooted. Upper level does it.
14330 (menuentry_eq): New function.
14331 (get_entry_number): Use menuentry_eq.
14332 (show_menu): New parameter "autobooted". All users updated.
14333 (grub_show_menu): Likewise.
14334 * include/grub/normal.h (grub_show_menu): Likewise.
14335 * include/grub/menu.h (grub_menu_execute_entry): Removed.
14336 (grub_menu_execute_with_fallback): Likewise.
14337
14338 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14339
14340 * util/grub-mklayout.c (usage): Update help text.
14341
14342 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14343
14344 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
14345
14346 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14347
14348 * util/grub-menulst2cfg.c (main): Trim the line.
14349
14350 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14351
14352 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
14353 (grub_machine_init): Don't check amount of low memory as reportedly
14354 INT 12h can be broken and if low memory is too low we wouldn't have
14355 gotten into grub_machine_init anyway.
14356
14357 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14358
14359 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
14360 (grub_machine_mmap_iterate): Take low memory into account
14361
14362 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14363
14364 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
14365 badfs.
14366 Reported by: TiCPU.
14367
14368 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14369
14370 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
14371 members errors.
14372
14373 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14374
14375 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
14376 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
14377
14378 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14379
14380 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
14381 openbsd and netbsd types being in part_bsd module.
14382
14383 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14384
14385 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
14386 (_FILE_OFFSET_BITS): Likewise.
14387 Reported by: Seth Goldberg.
14388
14389 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
14390
14391 * configure.ac: Check for libdevmapper header.
14392
14393 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14394
14395 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
14396 avoid aliasing.
14397 (fzap_lookup): Likewise.
14398 (dnode_get): Likewise.
14399 (make_mdn): Likewise.
14400 (zfs_mount): Likewise.
14401 (fzap_iterate): Use temporary pointer to avoid aliasing.
14402 (grub_zfs_read): Likewise.
14403 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
14404 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
14405 pointers to avoid aliasing.
14406 (grub_cmd_xnu_kernel64): Likewise.
14407 (grub_xnu_load_driver): Likewise.
14408
14409 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14410
14411 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
14412 aliasing warning.
14413 (grub_cmd_terminal_output): Likewise.
14414 Reported and tested by: Grégoire Sutre.
14415
14416 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14417
14418 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
14419 warning.
14420 Reported and tested by: Grégoire Sutre.
14421
14422 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14423
14424 * configure.ac: Do CPU substitution even if it's specified explicitly.
14425 Reported and tested by: Alain Greppin.
14426
14427 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14428
14429 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
14430 Reported and tested by: Alain Greppin.
14431
14432 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14433
14434 Satisfy some bison versions need for inttypes.h.
14435
14436 * grub-core/lib/posix_wrap/inttypes.h: New file.
14437 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
14438 (int16_t): Likewise.
14439 (int32_t): Likewise.
14440 (int64_t): Likewise.
14441 Reported and tested by: Alain Greppin.
14442
14443 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14444
14445 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
14446 Silence spurious warning.
14447 Reported and tested by: Alain Greppin.
14448
14449 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14450
14451 * docs/grub.texi (Support automatic decompression): Update with xz
14452 decompression support.
14453
14454 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14455
14456 Improve loaders' kernel command line handling.
14457
14458 * grub-core/lib/cmdline.c: New file.
14459 * include/grub/lib/cmdline.h: Likewise.
14460 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
14461 grub_create_loader_cmdline to create kernel command line.
14462 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14463 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
14464 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
14465 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
14466 (linux): Add lib/cmdline.c on common.
14467
14468 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14469
14470 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
14471 inopos might be unaligned.
14472
14473 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14474
14475 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
14476 endian transformations.
14477 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14478 Based on report by: Doug Nazar.
14479
14480 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
14481
14482 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
14483 array->members[i].start_sector.
14484 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
14485
14486 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14487
14488 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
14489 Reported and tested by: Grégoire Sutre.
14490
14491 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14492
14493 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
14494 avoid causing test failures by clearing the screen.
14495
14496 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14497
14498 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
14499 Fix prefix check to handle the case where dir ends with a slash
14500 (most significantly, "/" itself).
14501 Reported by: Michael Vogt.
14502
14503 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14504
14505 Run terminfo_cls on initing terminfo output to clear the screen and
14506 move the cursor to (0,0).
14507
14508 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
14509 Call grub_terminfo_output_init.
14510 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
14511 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
14512 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
14513
14514 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14515
14516 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
14517 only when needed.
14518
14519 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14520
14521 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
14522 CTRL.
14523
14524 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14525
14526 The E820 type 5 is BADRAM, not EXEC_CODE.
14527
14528 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14529 (GRUB_E820_BADRAM): New define.
14530 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
14531 into reserved. Propagate BADRAM.
14532 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14533 (GRUB_E820_BADRAM): New define.
14534
14535 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14536
14537 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
14538 Ignore the memory post-4G.
14539 (grub_relocator_firmware_alloc_region): Additional debug statement.
14540
14541 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14542
14543 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
14544 names.
14545 Reported by: David Pravec.
14546
14547 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14548
14549 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
14550 BIOSes.
14551
14552 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14553
14554 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
14555 Prevent overflow.
14556 (grub_reed_solomon_recover): Likewise.
14557
14558 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14559
14560 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
14561
14562 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14563
14564 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
14565 variable.
14566
14567 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
14568
14569 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
14570 descriptions of extract_legacy_entries_source and
14571 extract_legacy_entries_configfile.
14572 Reported by: Seung Soo, Ha.
14573
14574 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
14575
14576 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
14577 on devices that do not implement function 0.
14578
14579 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
14580
14581 * grub-core/fs/hfsplus.c: Make parent unsigned.
14582 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
14583 overflows.
14584 (grub_hfsplus_cmp_extkey): Likewise
14585
14586 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14587
14588 * util/grub-install.in: Correctly use bootloader_id and not
14589 GRUB_DISTRIBUTOR on efibootmgr line.
14590
14591 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14592
14593 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
14594
14595 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
14596
14597 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
14598 Xen and reorder menu item wording to make it clearer that this entry
14599 will launch Xen. Print separate messages when loading Xen and
14600 Linux.
14601
14602 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14603
14604 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
14605 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
14606 loop in case of incorrect amiga partmap.
14607
14608 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14609
14610 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
14611 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
14612 Reported by:EHeM.
14613
14614 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14615
14616 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
14617 spurious warning.
14618 Reported by: crocket
14619
14620 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14621
14622 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
14623 Preload EFIemu.
14624 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
14625
14626 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14627
14628 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
14629 is loaded
14630 (grub_cmd_xnu_kextdir): Likewise.
14631 (grub_cmd_xnu_splash): Likewise.
14632
14633 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14634
14635 Avoid using Reed-Solomon with 0 redundancy.
14636
14637 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
14638 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
14639 or 0 redundancy.
14640 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
14641 (grub_reed_solomon_recover): Likewise.
14642
14643 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14644
14645 Don't use disk subsystem in freebsd_boot.
14646
14647 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
14648 (freebsd_biosdev): Likewise.
14649 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
14650 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
14651
14652 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14653
14654 Handling of files of unknown size is currently limited. They can't be
14655 used e.g. for initrd or modules. Moreover gzip handling of not
14656 easily seekable files is buggy. Disable unknown file size for now. May
14657 be inefficient but works.
14658
14659 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
14660 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
14661
14662 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
14663
14664 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
14665 floppy probe.
14666
14667 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
14668
14669 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
14670
14671 2010-12-25 Shea Levy <shlevy>
14672
14673 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
14674
14675 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14676
14677 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
14678 Windows Server 2008.
14679 Reported by: Devin Giddings.
14680
14681 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14682
14683 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
14684 writing an error message because of async power management.
14685 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
14686 (grub_reboot): Likewise.
14687
14688 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
14689
14690 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
14691 keep unit tests from failing when they shouldn't.
14692
14693 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14694
14695 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
14696 previous patch increased the size of the RS code by 20 bytes (at
14697 least with gcc-4.4), so increase this by 20 bytes to match.
14698 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14699
14700 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14701
14702 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
14703 scratch area. Make sure to initialise chosen in standalone mode as
14704 well as non-standalone.
14705 Reported by: Robert Hooker and Andy Whitcroft.
14706 Tested by: Andy Whitcroft.
14707
14708 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14709
14710 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
14711 constructing a new unescaped string and passing it to grub_xputs in
14712 one go, rather than passing characters to grub_printf one at a time.
14713
14714 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14715
14716 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
14717 initialising utf16.
14718
14719 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14720
14721 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
14722 comment. Add an extra layer of quotation, requiring the output of
14723 this function to be used in a printf format string.
14724 (gettext_printf): New function.
14725 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
14726 Extract translatable strings from here-documents and use a temporary
14727 variable instead, so that xgettext can find them.
14728 * util/grub.d/10_kfreebsd.in: Likewise.
14729 * util/grub.d/10_linux.in: Likewise.
14730 * util/grub.d/20_linux_xen.in: Likewise.
14731
14732 * po/grub.d.sed: New file.
14733 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
14734 arguments. Set c-format flags on all strings extracted from
14735 util/grub.d/ (xgettext refuses to include these itself for strings
14736 it extracted from a shell file, but these really are c-format).
14737
14738 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14739
14740 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
14741 Avoid next pointing to nowhere.
14742
14743 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14744
14745 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
14746 rather than assuming than rootblock is exactly in the middle.
14747 (grub_affs_label): Likewise.
14748
14749 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14750
14751 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
14752 reserved_first_sector to 0.
14753 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
14754 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
14755 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
14756
14757 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14758
14759 Fix handling of UTF-16 UDF labels.
14760
14761 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
14762 (read_string): .. here.
14763 (grub_udf_label): Use read_string.
14764
14765 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
14766
14767 * grub-core/normal/menu_entry.c (run): Execute commands from menu
14768 editor under argument scope.
14769 Reported by: Jordan Uggla
14770
14771 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14772
14773 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
14774
14775 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
14776
14777 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
14778 line, and other keys scroll an entire page (previous handling was
14779 for \r and \n to scroll a page and other keys to scroll two lines).
14780
14781 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14782
14783 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14784 Set ptrdest to correct get_physical_target_address rather than
14785 incorrect get_virtual_current_address.
14786
14787 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
14788
14789 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
14790 correct cat to grub_uint8_t * rather than grub_uint32_t *.
14791
14792 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14793
14794 * .bzrignore: Ignore grub-core/rs_decoder.S.
14795
14796 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14797
14798 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
14799 .mo/.mo.gz opening sequence to ...
14800 (grub_mofile_open_lang): ... here.
14801 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
14802 * util/grub.d/00_header.in (grub_lang): Include country part of
14803 locale.
14804 Reported by: Mario Limonciello.
14805
14806 2010-12-09 Robert Millan <rmh@gnu.org>
14807
14808 * NEWS: Document addition of ZFS support.
14809
14810 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
14811
14812 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
14813 rather than `/ 2', as the latter requires -Wa,--divide which would
14814 require bumping our minimum binutils version.
14815
14816 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
14817
14818 * util/grub-script-check.c (main): Print script line number on
14819 error.
14820
14821 2010-12-01 Robert Millan <rmh@gnu.org>
14822
14823 * grub-core/fs/zfs/zfs.c: New file.
14824 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
14825 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
14826 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
14827 * grub-core/fs/zfs/zfsinfo.c: Likewise.
14828
14829 * include/grub/zfs/dmu.h: Likewise.
14830 * include/grub/zfs/dmu_objset.h: Likewise.
14831 * include/grub/zfs/dnode.h: Likewise.
14832 * include/grub/zfs/dsl_dataset.h: Likewise.
14833 * include/grub/zfs/dsl_dir.h: Likewise.
14834 * include/grub/zfs/sa_impl.h: Likewise.
14835 * include/grub/zfs/spa.h: Likewise.
14836 * include/grub/zfs/uberblock_impl.h: Likewise.
14837 * include/grub/zfs/vdev_impl.h: Likewise.
14838 * include/grub/zfs/zap_impl.h: Likewise.
14839 * include/grub/zfs/zap_leaf.h: Likewise.
14840 * include/grub/zfs/zfs.h: Likewise.
14841 * include/grub/zfs/zfs_acl.h: Likewise.
14842 * include/grub/zfs/zfs_znode.h: Likewise.
14843 * include/grub/zfs/zil.h: Likewise.
14844 * include/grub/zfs/zio.h: Likewise.
14845 * include/grub/zfs/zio_checksum.h: Likewise.
14846
14847 * Makefile.util.def: Build ZFS into libgrubmods.
14848 * grub-core/Makefile.core.def: Build zfs.mod.
14849
14850 2010-11-30 Szymon Janc <szymon@janc.net.pl>
14851
14852 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
14853 variable.
14854 * grub-core/commands/wildcard.c (match_files): Likewise.
14855
14856 2010-11-30 Robert Millan <rmh@gnu.org>
14857
14858 * grub-core/loader/i386/bsd.c
14859 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
14860 whether kernel is loaded using grub_loader_is_loaded(), rather
14861 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
14862 certain error conditions.
14863
14864 2010-11-30 Robert Millan <rmh@gnu.org>
14865
14866 * grub-core/commands/echo.c: Include `<grub/term.h>'.
14867 (grub_cmd_echo): Call grub_refresh() after printing a message.
14868
14869 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14870
14871 Avoid using tricks for initialising endian variables.
14872
14873 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
14874 Make const.
14875 (GRUB_MOD_INIT): Don't byte-swap.
14876 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14877 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
14878 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
14879 (grub_swap_bytes32_compile_time): Likewise.
14880 (grub_cpu_to_le32_compile_time): Likewise.
14881 (grub_cpu_to_le16_compile_time): Likewise.
14882
14883 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14884
14885 * util/grub-setup.c (setup): Stop recommending --force. People who
14886 understand the dangers of blocklists are able to find this option
14887 anyway and the ones who don't shouldn't use it anyway.
14888
14889 2010-11-26 Robert Millan <rmh@gnu.org>
14890
14891 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
14892 Update all users.
14893
14894 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
14895
14896 Fix LVM-on-RAID probing.
14897
14898 * util/grub-probe.c (probe): Remember which disk was detected as
14899 RAID (perhaps an LVM physical volume). Use that disk's raidname
14900 rather than that of the top-level disk.
14901
14902 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
14903
14904 Fix cmdline argument quotes for setparams command of menuentry
14905 definitions.
14906
14907 * grub-core/commands/menuentry.c (setparams_prefix): Use single
14908 quotes for arguments.
14909 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
14910 grub_strchrsub function instead.
14911
14912 * include/grub/misc.h (grub_strchrsub): New function.
14913
14914 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14915
14916 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
14917 effort by skipping "." and ".." entries up-front.
14918 Suggested by: Michael Lazarev.
14919
14920 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14921
14922 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
14923 ldflags to ldadd, to fix link line ordering.
14924 (none_decompress): Likewise.
14925
14926 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14927
14928 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
14929 platforms.
14930 (grub-emu-lite): Remove kern/emu/cache.S.
14931
14932 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14933
14934 * util/deviceiter.c (compare_devices): If the by-id link for a
14935 device couldn't be resolved, fall back to sorting by the by-id link
14936 rather than segfaulting.
14937 Reported and tested by: Daniel Mierswa.
14938
14939 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14940
14941 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
14942 ldflags, to fix link line ordering.
14943
14944 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14945
14946 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
14947 linkers are picky about this.
14948
14949 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14950
14951 * grub-core/Makefile.am (command.lst): Adjust sed expression
14952 ordering so that extended and priority commands aren't treated as
14953 ordinary commands.
14954
14955 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14956
14957 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14958 Remove byte-swapping function calls, which are not valid in
14959 structure initialisers.
14960 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
14961 non-const.
14962 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
14963 grub_gpt_partition_type_bios_boot.
14964
14965 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14966
14967 Fix test program build on GNU/kFreeBSD.
14968
14969 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
14970 $(LIBNVPAIR)' library dependencies.
14971
14972 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14973
14974 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
14975
14976 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14977
14978 * util/grub-install.in: Remove excessive quoting that broke
14979 installations to RAID devices.
14980
14981 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14982
14983 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
14984 bootloader version instead of 0.
14985
14986 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14987
14988 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
14989 warning.
14990
14991 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14992
14993 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
14994 retrieve the metadat sector if size isn't known.
14995 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14996
14997 2010-11-18 Robert Millan <rmh@gnu.org>
14998
14999 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
15000 with grub_memcmp().
15001
15002 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
15003
15004 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
15005 arrow.
15006 Reported by: Jordan Uggla.
15007
15008 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15009
15010 Make better UTF compliant.
15011
15012 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
15013 sequences as incorrect.
15014 (grub_is_valid_utf8): Likewise.
15015 (grub_utf8_to_ucs4): Likewise.
15016 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
15017 (grub_ucs4_to_utf8_alloc): Likewise.
15018 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
15019
15020 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15021
15022 Make legacy_source behave like source.
15023
15024 * grub-core/commands/legacycfg.c (legacy_file): Don't call
15025 grub_show_menu.
15026 (grub_cmd_legacy_source): Call grub_show_menu if needed.
15027
15028 2010-11-16 Colin Watson <cjwatson@debian.org>
15029
15030 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
15031 (-Wunused implies -Wunused-parameter, but not vice versa).
15032
15033 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
15034
15035 * configure.ac: Make error messages less confusing by testing for
15036 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
15037 accepted, but produces a diagnostic if something else is wrong).
15038
15039 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
15040
15041 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
15042 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
15043 (now unused).
15044 (grub_keyboard_controller_init)
15045 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
15046 read the initial state since controller isn't inited yet.
15047
15048 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
15049
15050 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
15051 allocate_regbeg may need to create new chunk header.
15052
15053 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15054
15055 Fix quoting in legacy parser.
15056
15057 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
15058 single quotes.
15059 (grub_legacy_parse): Likewise.
15060 Reported by: Jordan Uggla.
15061 Tested by: Jordan Uggla.
15062
15063 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15064
15065 Don't add -lgcc on i386 and x86_64.
15066
15067 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
15068 * conf/Makefile.common (LDADD_KERNEL): Likewise.
15069 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
15070
15071 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15072
15073 * configure.ac: Add -Wno-trampolines when supported.
15074
15075 2010-11-14 Modestas Vainius <modax@debian.org>
15076
15077 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
15078 fakeraid.
15079
15080 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15081
15082 Add generic logical block size support for UDF.
15083
15084 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
15085 (GRUB_UDF_BLKSZ): Removed.
15086 (struct grub_udf_data): New field "lbshift" to hold the logical block
15087 size of the file system in log2 format. All users updated.
15088 (sblocklist): Change type to unsigned.
15089 (grub_udf_mount): Change type of "sblklist" to unsigned.
15090 Move AVDP search before VRS recognition, because the latter requires
15091 knowledge of the logical block size, which is detected during the
15092 former.
15093 Detect and validate logical block size during AVDP search, adding
15094 support for block sizes 512, 1024 and 4096.
15095 Make VRS recognition independent of block size.
15096
15097 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15098
15099 Properly handle deleted files on UDF.
15100
15101 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
15102 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
15103 set.
15104
15105 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15106
15107 Support reading files larger than 2 GiB.
15108
15109 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
15110 "offset" to grub_off_t.
15111 (grub_udf_read_file): Likewise for parameter "pos".
15112
15113 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15114
15115 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
15116 unavailable.
15117 (Simple configuration): Refer to Changes from GRUB Legacy about
15118 save_env availability.
15119
15120 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15121
15122 * util/grub-install.in: Ignore empty partition table detection
15123 instead of trying to include part_ module.
15124
15125 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15126
15127 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
15128 LVM on RAID support.
15129
15130 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15131
15132 Properly define WORDS_BIGENDIAN in wrapped environments.
15133
15134 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
15135 definition.
15136 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
15137
15138 Reported by: Manoel Rebelo Abranches.
15139 Tested by: Manoel Rebelo Abranches.
15140
15141 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15142
15143 * util/grub-mkconfig.in: Fix quoting.
15144
15145 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15146
15147 Support big ext2 files.
15148
15149 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
15150 (grub_ext2_read_block): Support triple indirect blocks.
15151 (grub_ext2_read_file): Use 64-bit types and read size_high.
15152 (grub_ext2_open): Read size_high.
15153 Reported by: Ximin Luo.
15154 Tested by: Manoel Rebelo Abranches.
15155
15156 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15157
15158 * util/grub-install.in: Handle filenames containing spaces.
15159 Reported by: Jordan Uggla.
15160 Tested by: Jordan Uggla.
15161
15162 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15163
15164 * util/grub-mkconfig.in (grub_script_check): New variable.
15165 Use grub_script_check instead of grub-script-check.
15166 Reported by: Barry Jackson.
15167
15168 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15169
15170 * docs/grub.texi (menu): Correct the order.
15171 Reported by: D. Hugh Redelmeier.
15172
15173 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15174
15175 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
15176 jump.
15177
15178 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
15179
15180 * include/grub/elfload.h (grub_elf32_size): New parameter.
15181 All users updated.
15182 Return maximum segments alignment.
15183 (grub_elf64_size): Likewise.
15184 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
15185 Return maximum segments alignment.
15186 (grub_elf64_size): Likewise.
15187 * grub-core/loader/powerpc/ieee1275/linux.c:
15188 (grub_linux_claimmap_iterate): New function. Uses the
15189 "available" property in the "memory" node for memory allocation
15190 for kernel in the PowerPC loader.
15191 (grub_linux_load32): Correctly find linux entry point offset.
15192 (grub_linux_load64): Likewise.
15193
15194 2010-11-07 Robert Millan <rmh@gnu.org>
15195
15196 On mips-yeeloong, build with -march=loongson2f when this flag is
15197 available (GCC >= 4.4).
15198 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
15199 `-march=mips3'.
15200 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
15201 or otherwise add -march=mips3.
15202
15203 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
15204
15205 Suppress shell expansion on echo '*' and echo "*" like cases.
15206 Reported by: Jordan Uggla.
15207
15208 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
15209 string arguments before shell expansion.
15210 * tests/grub_cmd_echo.in: New testcases.
15211
15212 2010-11-07 Robert Millan <rmh@gnu.org>
15213
15214 * conf/mips-qemu-mips.rmk: Remove stale file from previous
15215 transition.
15216
15217 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
15218
15219 * grub-core/kern/emu/hostdisk.c
15220 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
15221
15222 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15223
15224 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
15225 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
15226 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
15227
15228 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15229
15230 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
15231
15232 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15233
15234 * util/grub-install.in: Replace useless recomendation to pass
15235 --modules with a recomendation to report a bug.
15236
15237 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15238
15239 Properly register serial terminfo.
15240 Reported by: Jordan Uggla
15241
15242 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
15243 const.
15244 (grub_serial_terminfo_output_template): Likewise.
15245 (grub_cmd_serial): Register "serial" with terminfo.
15246 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
15247 grub_serial_terminfo_output.
15248
15249 2010-11-05 Robert Millan <rmh@gnu.org>
15250
15251 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
15252 needed).
15253
15254 2010-11-05 Robert Millan <rmh@gnu.org>
15255
15256 On Yeeloong, pass machine type information to Linux.
15257
15258 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
15259 (LOONGSON_MACHTYPE): New macro, set to
15260 "machtype=lemote-yeeloong-2f-8.9inches".
15261 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
15262 additional argument to Linux.
15263
15264 2010-11-04 Robert Millan <rmh@gnu.org>
15265
15266 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
15267 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
15268 (its SATA disks are detected as slaveless IDE master drives on
15269 kFreeBSD).
15270 Reported by Carsten Aulbert.
15271
15272 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
15273
15274 * util/bin2h.c (main): Fix spelling error in generated output.
15275
15276 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
15277
15278 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
15279
15280 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15281
15282 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
15283 vga= option is supplied.
15284
15285 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15286
15287 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
15288 * util/grub.d/10_kfreebsd.in: Likewise.
15289 * util/grub.d/10_linux.in: Likewise.
15290 * util/grub.d/20_linux_xen.in: Likewise.
15291
15292 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15293
15294 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
15295 argument as an argument to no-argument option.
15296
15297 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15298
15299 * util/grub.d/10_linux.in: Add missing load_video with explicit
15300 GRUB_GFXPAYLOAD_LINUX.
15301
15302 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15303
15304 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
15305
15306 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15307
15308 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
15309 elements with invlid index.
15310 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15311 * grub-core/disk/raid.c (insert_array): Automatically reallocate
15312 members.
15313 * include/grub/raid.h (grub_raid_member): New struct.
15314 (grub_raid_array): Transform devices and start_sector into usage of
15315 grub_raid_member. All users updated
15316 (allocated_devs): New member.
15317
15318 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15319
15320 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
15321 is modified
15322
15323 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
15324
15325 NetBSD build fix for getline function conflict from gnulib.
15326
15327 * Makefile.util.def (libgrubkern.a): New library for grub kernel
15328 components that depend on gnulib headers.
15329 (libgrubmods.a): Renamed from earlier libgrub.a.
15330 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
15331
15332 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15333
15334 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
15335 install rather than creating a broken install.
15336
15337 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15338
15339 * util/grub-setup.c (argp): Remove misleading example of installing to
15340 a partition.
15341
15342 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15343
15344 * util/grub-setup.c (setup): Clarify the error message.
15345
15346 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15347
15348 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
15349
15350 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15351
15352 * grub-core/kern/emu/misc.c
15353 (grub_make_system_path_relative_to_its_root)
15354 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
15355
15356 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15357
15358 * grub-core/kern/emu/misc.c
15359 (grub_make_system_path_relative_to_its_root): Revert r2882.
15360
15361 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
15362
15363 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
15364 useless field head. All users updated.
15365 (free_subchunk): Correct handling of IN_REGION subchunk.
15366
15367 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
15368
15369 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
15370 (Supported kernels): Likewise.
15371
15372 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
15373
15374 Make mktemp invocations portable.
15375
15376 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
15377 exit if mktemp fails.
15378 * tests/grub_script_blockarg.in: Likewise.
15379 * tests/partmap_test.in: Likewise.
15380 * tests/util/grub-shell-tester.in: Likewise.
15381 * tests/util/grub-shell.in: Likewise.
15382 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15383 * Makefile.am: Likewise, and chain shell commands with `&&'
15384 instead of ';'.
15385 * util/grub-mkrescue.in: Use the same explicit template as above, and
15386 exit if mktemp fails.
15387
15388 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
15389
15390 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
15391 Linux kernel, reported by Dennis Schridde.
15392
15393 2010-10-17 Szymon Janc <szymon@janc.net.pl>
15394
15395 * grub-core/normal/auth.c (grub_auth_check_authentication):
15396 Set-but-not-used variable removed.
15397
15398 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15399
15400 * docs/grub.texi (GNU/Linux): Document APM unavailability with
15401 32-bit linux protocol.
15402
15403 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15404
15405 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
15406 cursor shape for sanity.
15407
15408 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15409
15410 * docs/grub.texi (Installation): Document buggy BIOS install.
15411
15412 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15413
15414 * docs/grub.texi (Installation): Indent.
15415
15416 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15417
15418 * util/grub-setup.c (setup): New parameter allow_floppy.
15419 (arguments): New member allow_floppy.
15420 (argp_parser): Handle --allow-floppy.
15421 (main): Pass allow_floppy.
15422 * util/grub-install.in: New option --allow-floppy passed though to
15423 grub-setup.
15424
15425 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15426
15427 * util/grub-install.in: Handle partitionless disks.
15428
15429 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15430
15431 * util/grub-setup.c (setup): Don't clean blocklists before readability
15432 verfification.
15433
15434 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15435
15436 * docs/grub.texi (Installation): Document embedding zone. Remove
15437 obsolete grub-install example.
15438
15439 2010-10-16 Szymon Janc <szymon@janc.net.pl>
15440
15441 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
15442 Set-but-not-used variable ifdef'ed.
15443 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
15444 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
15445 variable removed.
15446 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
15447 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
15448 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
15449 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
15450 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
15451 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
15452 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
15453 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
15454 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
15455 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
15456 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
15457 Likewise.
15458
15459 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15460
15461 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
15462 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
15463 enum value.
15464
15465 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15466
15467 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
15468 synonym to _S5_. Needed for some DSDTs.
15469
15470 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15471
15472 Userspace ACPI parser debugging.
15473
15474 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
15475 headers and add relevant defines. Don't include standard headers.
15476 (main) [GRUB_DSDT_TEST]: New function.
15477 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
15478 Don't declare functions.
15479
15480 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15481
15482 Remove dead grub_efi_mm_fini.
15483
15484 * grub-core/kern/efi/mm.c (allocated_page): Removed.
15485 (ALLOCATED_PAGES_SIZE): Likewise.
15486 (MAX_ALLOCATED_PAGES): Likewise.
15487 (allocated_pages): Likewise.
15488 (grub_efi_allocate_pages): Don't record allocated pages.
15489 (grub_efi_free_pages): Likewise.
15490 (grub_efi_mm_init): Likewise.
15491 (grub_efi_mm_fini): Removed.
15492
15493 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15494
15495 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
15496 (grub_efi_mm_init): Take into account the memory map size increase.
15497
15498 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15499
15500 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
15501 (serial_hw_put): Wait based on real time rather than port reads. Don't
15502 roken ports.
15503 * include/grub/serial.h (grub_serial_port): New field broken.
15504
15505 2010-10-16 Robert Millan <rmh@gnu.org>
15506
15507 * grub-core/kern/emu/misc.c
15508 (grub_make_system_path_relative_to_its_root): Fix premature return
15509 when processing non-root ZFS filesystems.
15510 Reported by Sergio Talens-Oliag.
15511
15512 2010-10-15 Robert Millan <rmh@gnu.org>
15513
15514 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
15515 guarantee compressed ones are processed first.
15516
15517 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15518
15519 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
15520 grub_efiemu_autocore.
15521
15522 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15523
15524 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
15525 rather than 0x1b.
15526 (grub_console_getkey): Use correct jae opcode rather than ja.
15527
15528 2010-10-12 Robert Millan <rmh@gnu.org>
15529
15530 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
15531 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
15532 variable. All references updated.
15533
15534 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
15535
15536 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
15537
15538 Correctly distinguish mdraid flavours.
15539
15540 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
15541 (insert_array): New argument raid.
15542 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
15543 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
15544 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
15545
15546 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
15547
15548 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
15549 handling of special keys.
15550
15551 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15552
15553 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
15554 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
15555
15556 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15557
15558 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
15559 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
15560 users updated.
15561 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
15562 Use right endpoint when querying descriptor.
15563
15564 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15565
15566 Clear out 0x80 color bit on EFI.
15567 Tested by: decoder
15568 Reported by: decoder and meta tech.
15569
15570 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
15571 (grub_console_setcolorstate): Clear out 0x80 bit.
15572 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
15573 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
15574 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
15575
15576 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15577
15578 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
15579 Set to "auto".
15580
15581 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15582
15583 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
15584 mo_file after freeing.
15585
15586 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15587
15588 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
15589
15590 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15591
15592 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
15593 flags.
15594
15595 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15596
15597 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
15598 usage.
15599
15600 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15601
15602 Put terminfo into core on ieee1275 and yeeloong (needed for console).
15603
15604 * gentpl.py: New groups terminfoinkernel and terminfomodule.
15605 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
15606 and terminfo.h when needed.
15607 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
15608 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
15609 (terminfo): Enable only on terminfokernel.
15610 (extcmd): Likewise.
15611 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
15612 * include/grub/lib/arg.h: Likewise.
15613 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
15614 incorrect usage of ->.
15615
15616 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15617
15618 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
15619 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
15620
15621 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15622
15623 Fix coreboot compilation.
15624
15625 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15626 Take VBE info into account even if only text is supported.
15627 (fill_vbe_info): Take into account the case when only VGA text
15628 is supported.
15629 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
15630 on coreboot, multiboot and qemu.
15631
15632 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15633
15634 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
15635 debug messages.
15636 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
15637
15638 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15639
15640 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
15641 parameters.
15642
15643 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15644
15645 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
15646 if they were BSD-style.
15647
15648 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15649
15650 * grub-core/boot/i386/pc/lnxboot.S: Replace
15651 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
15652 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
15653
15654 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15655
15656 Write embedding zone using Reed-Solomon.
15657
15658 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
15659 * grub-core/Makefile.am (rs_decoder.S): New target.
15660 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
15661 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
15662 (multiboot): Move to RS part.
15663 (post_reed_solomon): New label.
15664 (grub_boot_drive): Move to non-RS part since it's modified in memory
15665 on boot.
15666 Include rs_decoder.S.
15667 * grub-core/lib/reed_solomon.c: New file.
15668 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
15669 New definition.
15670 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
15671 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
15672 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
15673 * include/grub/partition.h (grub_partition_map): Change prototype of
15674 embed to allow returning additional sectors.
15675 * include/grub/reed_solomon.h: New file.
15676 * util/grub-setup.c (setup): Handle Reed-Solomon.
15677
15678 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
15679
15680 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15681 i386 and x86-64 definedness tests.
15682
15683 2010-09-27 Yves Blusseau <blusseau@zetam.org>
15684
15685 Fix generation of kernel_syms.lst
15686
15687 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
15688 ASM_PREFIX
15689
15690 2010-09-26 Robert Millan <rmh@gnu.org>
15691
15692 Support degraded ZFS arrays in "grub-probe -t device" resolution.
15693
15694 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
15695 the pool is an array of devices, iterate through it and return the
15696 first device that passes a stat() test (instead of blindly returning
15697 the first one).
15698
15699 2010-09-26 Robert Millan <rmh@gnu.org>
15700
15701 Build fixes for GNU/kFreeBSD.
15702
15703 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
15704 to programs that require ZFS conversion.
15705 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
15706 kernels that don't have FLOPPY_MAJOR.
15707
15708 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15709
15710 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
15711
15712 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15713
15714 Fix grub-emu build.
15715
15716 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
15717 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
15718 mdraid09 and mdraid1x.
15719
15720 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
15721
15722 Re-enable grub-extras.
15723
15724 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
15725 avoid confusing Automake. Run autogen only twice, once for the top
15726 level and once for grub-core. Add Makefile.util.def and
15727 Makefile.core.def from extra modules to the appropriate autogen
15728 invocations. If Makefile.common exists in an extra module, include
15729 it in both Makefile.util.am and grub-core/Makefile.core.am;
15730 similarly, include any Makefile.util.common file in Makefile.util.am
15731 and any Makefile.core.common file in grub-core/Makefile.core.am.
15732 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
15733 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
15734 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
15735 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
15736
15737 * gentpl.py (gvar_add): Turn GVARS into a set.
15738 (global_variable_initializers): Sort global variables on output.
15739 (vars_init): New function.
15740 (first_time): Likewise.
15741 (library): Ensure that non-global variable initialisations are
15742 emitted before the first time we emit code for a library block.
15743 Append to variables rather than setting them. Only emit
15744 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
15745 each conditional path.
15746 (program): installdir() emits an Autogen macro, so must be passed to
15747 var_add rather than gvar_add.
15748 (data): Likewise.
15749 (script): Likewise.
15750 (rules): New function, centralising handling for different target
15751 types. Set up Guile association lists for first_time and vars_init,
15752 and send most output to a diversion so that variable initialisations
15753 can be emitted first.
15754 (module_rules): Use new rules function.
15755 (kernel_rules): Likewise.
15756 (image_rules): Likewise.
15757 (library_rules): Likewise.
15758 (program_rules): Likewise.
15759 (script_rules): Likewise.
15760 (data_rules): Likewise.
15761
15762 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
15763
15764 * .bzrignore: Add contrib and grub-core/contrib. Remove
15765 grub-core/Makefile.gcry.am.
15766
15767 2010-09-24 Yves Blusseau <blusseau@zetam.org>
15768
15769 * grub-core/lib/LzFind.c: Add missing include.
15770 * grub-core/lib/LzmaEnc.c: Likewise.
15771 * grub-core/script/lexer.c: Likewise.
15772 * grub-core/script/yylex.l: Likewise.
15773 * util/grub-macho2img.c: Likewise.
15774 * util/grub-menulst2cfg.c: Likewise.
15775 * util/grub-mklayout.c: Likewise.
15776 * util/grub-mkpasswd-pbkdf2.c
15777 * util/grub-mkrelpath.c: Likewise.
15778 * util/resolve.c: Likewise.
15779
15780 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
15781
15782 * Makefile.util.def (example_unit_test): Add
15783 grub-core/gnulib/libgnu.a.
15784
15785 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
15786
15787 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
15788
15789 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15790
15791 Support xz compression on yeeloong.
15792
15793 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
15794 * configure.ac: Check for LZMA.
15795 * grub-core/Makefile.core.def (xz_decompress): New target.
15796 (none_decompress): Likewise.
15797 * grub-core/boot/decompressor/minilib.c: New file.
15798 * grub-core/boot/decompressor/none.c: Likewise.
15799 * grub-core/boot/decompressor/xz.c: Likewise.
15800 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
15801 * grub-core/kern/mips/cache_flush.S: Likewise.
15802 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
15803 * grub-core/kern/mips/startup.S: Move first stage to ...
15804 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
15805 nomacro.
15806 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
15807 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
15808 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
15809 Allocate statically.
15810 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
15811 Allocate statically or use scratch. Don't check CRC32.
15812 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
15813 Allocate statically. Don't check CRC32.
15814 * include/grub/decompressor.h: New file.
15815 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
15816 Removed.
15817 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
15818 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
15819 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
15820 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
15821 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
15822 * util/grub-mkimage.c (grub_compression_t): New type.
15823 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
15824 (image_target_desc): New field default_compression.
15825 (image_targets): Adjust yeeloong targets.
15826 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
15827 (compress_kernel): New parameter comp.
15828 (generate_image): Likewise. Handle new compression case.
15829 (options): New option --compression
15830 (help): Likewise.
15831 (main): Handle new option.
15832
15833 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
15834
15835 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
15836
15837 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
15838
15839 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15840 typo in __i386__ conditional.
15841
15842 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15843
15844 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
15845 include.
15846
15847 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15848
15849 Implement EFI and ACPI multiboot2 extensions.
15850
15851 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
15852 new tags as supported.
15853 (acpiv2_size): New function.
15854 (grub_multiboot_get_mbi_size): Take new tags into account.
15855 (grub_multiboot_make_mbi): Add new tags.
15856 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
15857
15858 2010-09-21 Aleš Nesrsta <starous@volny.cz>
15859
15860 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
15861 Added missing configuration of USB device.
15862
15863 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15864
15865 * grub-core/normal/menu_entry.c (run): Make sure we always return
15866 a value.
15867
15868 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15869
15870 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
15871 NumberOfPages is UINT64 according to the UEFI specification, not
15872 UINTN. Fix printf format.
15873
15874 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15875
15876 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
15877 `err' to grub_usb_err_t.
15878 Reported and tested by: KESHAV P.R.
15879
15880 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15881
15882 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
15883 tpart non-const, so that we can assign to it. (Since this is a
15884 typedef, the constness refers to the pointer rather than what it
15885 points to.)
15886
15887 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15888
15889 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
15890 $(top_srcdir)/grub-core/gnulib as well as
15891 $(top_builddir)/grub-core/gnulib.
15892 Reported by: KESHAV P.R.
15893
15894 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15895
15896 * util/grub-install.in: Fix the bootloader ID option to be
15897 consistently --bootloader-id, not --bootloader_id.
15898 Reported by: KESHAV P.R.
15899
15900 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15901
15902 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
15903 check hash checksum." consistently translatable.
15904
15905 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15906
15907 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
15908 $(top_builddir).
15909
15910 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15911
15912 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
15913 (GRUB_MOD_INIT): Register sha1sum command.
15914 (GRUB_MOD_FINI): Unregister sha1sum command.
15915
15916 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15917
15918 Keep boot and grub directory names in sync with utils scripts
15919
15920 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
15921 * config.h.in: Add previous macros.
15922 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
15923 * util/grub-install.in: Use $bootdir and $grubdir variables.
15924
15925 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15926
15927 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
15928 convert partition names to disk names if the new `convert' parameter
15929 is set.
15930 (grub_util_biosdisk_get_grub_dev): If opening the disk device
15931 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
15932 disk in its own right. This can happen with Xen disk images.
15933
15934 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15935
15936 * util/grub-editenv.c: Update strings to avoid warnings when generating
15937 grub.pot file.
15938 * util/grub-setup.c: Likewise.
15939
15940 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15941
15942 * configure.ac: Change version to 1.99~beta0.
15943
15944 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15945
15946 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
15947 Add BADRAM.
15948 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
15949 Likewise.
15950 * include/multiboot.h: Resynced with specification.
15951 * include/multiboot2.h: Likewise.
15952
15953 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15954
15955 Fix po directory handling.
15956
15957 * configure.ac: Create po/Makefile.in rather than po/Makefile.
15958 * grub-core/gnulib/Makefile.am: Import gettext module.
15959 * m4/gnulib-cache.m4: Likewise.
15960 * m4/gnulib-comp.m4: Likewise.
15961 * m4/gettext.m4: New file, from gnulib.
15962 * m4/glibc2.m4: Likewise.
15963 * m4/iconv.m4: Likewise.
15964 * m4/intdiv0.m4: Likewise.
15965 * m4/intl.m4: Likewise.
15966 * m4/intldir.m4: Likewise.
15967 * m4/intlmacosx.m4: Likewise.
15968 * m4/intmax.m4: Likewise.
15969 * m4/inttypes-pri.m4: Likewise.
15970 * m4/lcmessage.m4: Likewise.
15971 * m4/lib-ld.m4: Likewise.
15972 * m4/lib-link.m4: Likewise.
15973 * m4/lib-prefix.m4: Likewise.
15974 * m4/lock.m4: Likewise.
15975 * m4/nls.m4: Likewise.
15976 * m4/po.m4: Likewise.
15977 * m4/printf-posix.m4: Likewise.
15978 * m4/progtest.m4: Likewise.
15979 * m4/threadlib.m4: Likewise.
15980 * m4/uintmax_t.m4: Likewise.
15981 * m4/visibility.m4: Likewise.
15982 * po/Makefile.am: Remove.
15983 * po/Makefile.in.in: New file, from gettext.
15984 ($(DOMAIN).pot-update): Support POTFILES-shell.
15985 * po/Makevars: New file.
15986 * po/POTFILES-shell: Rename to ...
15987 * po/POTFILES-shell.in: ... this. Update.
15988 * po/POTFILES: Rename to ...
15989 * po/POTFILES.in: ... this. Update.
15990 * po/Rules-quot: New file, from gettext.
15991 * po/boldquot.sed: Likewise.
15992 * po/en@boldquot.header: Likewise.
15993 * po/en@quot.header: Likewise.
15994 * po/insert-header.sin: Likewise.
15995 * po/quot.sed: Likewise.
15996 * po/remove-potcdate.sin: Likewise.
15997
15998 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15999
16000 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
16001
16002 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16003
16004 * util/grub.d/20_linux_xen.in: Use submenus.
16005
16006 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16007
16008 Support submenus.
16009
16010 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
16011 parameter submenu. All users updated.
16012 * grub-core/normal/main.c (free_menu): Rename to ...
16013 (grub_normal_free_menu): ... this. Made global.
16014 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
16015 if requested.
16016 * grub-core/normal/menu_entry.c (screen): New field submenu.
16017 (make_screen): Set submenu.
16018 (run): Open new context if requested.
16019 * include/grub/menu.h (grub_menu_entry): New field submenu.
16020 * include/grub/normal.h (grub_normal_free_menu): New proto.
16021
16022 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16023
16024 Menu entries extractor.
16025
16026 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
16027 variants.
16028 (GRUB_MOD_INIT): Register new variants.
16029 (GRUB_MOD_FINI): Unregister new variants.
16030 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
16031 into grub_cmd_legacy_source.
16032 (grub_cmd_legacy_source): Implement extractor variants.
16033 (GRUB_MOD_INIT): Register new variants.
16034 (GRUB_MOD_FINI): Unregister new variants.
16035 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
16036 as an extractor.
16037 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
16038 search as an extractor.
16039 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
16040 test as an extractor.
16041 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
16042 as an extractor.
16043 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
16044 (grub_env_new_context): New function.
16045 (grub_env_context_open): Likewise.
16046 (grub_env_extractor_open): Likewise.
16047 (grub_env_extractor_close): Likewise.
16048 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
16049 grub_extractor_level.
16050 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
16051 * include/grub/env.h (grub_env_extractor_open): New proto.
16052 (grub_env_extractor_close): Likewise.
16053 * include/grub/normal.h (grub_extractor_level): New external variable.
16054
16055 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16056
16057 Make cutmem accept a region specification.
16058 Suggested by: Samuel Thibault
16059
16060 * grub-core/mmap/mmap.c (parsemem): New function.
16061 (grub_cmd_cutmem): Handle new arguments.
16062
16063 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16064
16065 New command cutmem.
16066
16067 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
16068 (GRUB_MOD_INIT): Register new command.
16069 (GRUB_MOD_FINI): Unregister new command.
16070
16071 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16072
16073 Support some annoying BSD and Minix subpartitions.
16074
16075 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
16076 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
16077 Properly handle concatenation.
16078 * grub-core/kern/device.c (grub_device_iterate): Likewise.
16079 * grub-core/normal/completion.c (iterate_partition): Likewise.
16080 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
16081 contain partition. All users updated.
16082 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
16083 struct.
16084 (grub_openbsdlabel_partition_map): Likewise.
16085 (bsdlabel_partition_map_iterate): Rename to ..
16086 (iterate_real): ... this. New arguments sector, freebsd and pmap.
16087 (bsdlabel_partition_map_iterate): New function.
16088 (netopenbsdlabel_partition_map_iterate): Likewise.
16089 (netbsdlabel_partition_map_iterate): Likewise.
16090 (openbsdlabel_partition_map_iterate): Likewise.
16091 (GRUB_MOD_INIT): Register new partmaps.
16092 (GRUB_MOD_FINI): Unregister new partmaps.
16093 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
16094 (grub_partition_msdos_iterate): ... this. All users updated.
16095 Don't support embedding other than in a minix partition.
16096 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
16097 proto.
16098 * include/grub/partition.h (grub_partition): New field msdostype.
16099 * util/grub-install.in: Handle openbsd and netbsd types being in
16100 part_bsd module.
16101
16102 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16103
16104 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
16105
16106 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
16107 * grub-core/Makefile.core.def (mdraid): Renamed to ...
16108 (mdraid09): ... this.
16109 (mdraid1x): New module.
16110 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
16111 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
16112
16113 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16114
16115 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
16116 vsprintf.
16117
16118 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16119
16120 * grub-core/commands/efi/lsefimmap.c: Correct header.
16121 * NEWS: Update.
16122
16123 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16124
16125 * util/grub-editenv.c (argp_parser): Don't pass translated strings
16126 as printf format strings; the translations might contain '%' which
16127 could cause a crash.
16128 (main): Likewise.
16129 * util/grub-fstest.c (argp_parser): Likewise.
16130 * util/grub-setup.c (argp_parser): Likewise.
16131 (main): Likewise.
16132
16133 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16134
16135 Use argp in grub-fstest.
16136
16137 * util/grub-fstest.c: Don't include getopt.h.
16138 Include argp.h.
16139 (root): New variable.
16140 (args_count): Likewise.
16141 (nparm): Likewise.
16142 (num_disks): Likewise.
16143 (images): Likewise.
16144 (cmd): Likewise.
16145 (debug_str): Likewise.
16146 (args): Likewise.
16147 (options): Transformed to argp.
16148 (usage): Removed.
16149 (main): Split argument parsing into ...
16150 (argp_parser): ... this. Changed to argp format.
16151 (argp): New variable.
16152 (main): Use argp_parse.
16153
16154 2010-09-20 Tristan Gingold <gingold@free.fr>
16155 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
16156 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16157
16158 * grub-core/commands/efi/lsefimmap.c: New file.
16159 * grub-core/Makefile.core.def (lsefimmap): New module.
16160 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
16161
16162 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16163
16164 Pause the execution (10s max) if any errors are displayed so the user
16165 has a chance to see them.
16166
16167 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
16168 (grub_print_error): Increment grub_err_printed_errors.
16169 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
16170 execution if any errors were displayed.
16171 (show_menu): Remove old code for pause.
16172 * grub-core/normal/menu_entry.c (run): Likewise.
16173 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
16174 users updated.
16175 (grub_normal_get_char_counter): Likewise.
16176 * include/grub/err.h (grub_err_printed_errors): New external variable.
16177 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
16178
16179 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16180
16181 Support multiboot VBE info.
16182
16183 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
16184 Take VBE info into account.
16185 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
16186 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16187 Call fill_vbe_info when appropriate.
16188 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
16189 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
16190 as supported.
16191 (grub_multiboot_get_mbi_size): Take new tags into account.
16192 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
16193 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16194 Call fill_vbe_tag when appropriate.
16195 (grub_multiboot_make_mbi): Properly align tags.
16196 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
16197 function.
16198 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
16199 proto.
16200 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
16201
16202 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16203
16204 Suport manual terminal geometry specification.
16205
16206 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
16207 Save state in grub_ofconsole_terminfo_output.
16208 (grub_ofconsole_term): Use grub_terminfo_getwh.
16209 (grub_ofconsole_getwh): Removed.
16210 * grub-core/term/serial.c (grub_serial_getwh): Removed.
16211 (grub_serial_term): Use grub_terminfo_getwh.
16212 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
16213 (options): New struct.
16214 (OPTION_*): New enum.
16215 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
16216 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
16217 width and height.
16218 (grub_terminfo_getwh): New proto.
16219 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
16220
16221 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16222
16223 Handle legacy "terminal" command.
16224
16225 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
16226 and FLAG_TERMINAL.
16227 (legacy_commands): Add terminal and title.
16228 (grub_legacy_parse): Handle terminal. Simplify title handling.
16229
16230 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16231
16232 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
16233 parameters overflow.
16234
16235 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16236
16237 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
16238 widthspec.h.
16239
16240 * docs/grub.texi (Shell-like scripting): Document `!'.
16241 (Network): Simplify using new i386-pc-pxe format. Mention
16242 grub-mknetdir.
16243
16244 * NEWS: Update.
16245
16246 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16247
16248 * Makefile.am (SUBDIRS): Restore "."; it's important to force
16249 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
16250 when needed.
16251
16252 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16253
16254 * grub-core/commands/efi/lsefisystab.c: Correct header.
16255 * grub-core/commands/efi/lssal.c: Likewise.
16256 * grub-core/commands/testload.c: Likewise.
16257
16258 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16259
16260 * util/grub-mkrescue.in: Add explicit root argument to --set to
16261 prevent the UUID being interpreted as an argument to --set (matches
16262 previous change to prepare_grub_to_access_device).
16263
16264 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16265
16266 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
16267 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
16268 the verbosity of later #ifs.
16269 (find_partition_start): Define this function on FreeBSD too.
16270 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
16271 function.
16272 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
16273 on FreeBSD.
16274
16275 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16276
16277 * util/grub-editenv.c: Use argp instead of getopt.
16278
16279 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16280
16281 * util/grub-setup.c: Use argp instead of getopt.
16282
16283 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16284
16285 Use gnulib-tool to create gnulib source files.
16286
16287 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
16288 grub-core/gnulib directories
16289 * .bzignore: Add **/.deps and autogenerated gnulib files
16290 * configure.ac: Assign auxiliary directory to build-aux, add invocation
16291 of gnulib macros, add grub-core/gnulib/Makefile
16292 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
16293 include m4 directory to aclocal.
16294 * Makefile.util.def: Remove direct compilation of gnulib source files
16295 and use the new grub-core/gnulib/libgnu.a.
16296 * build-aux/config.rpath: move config.rpath from top directory to
16297 build-aux
16298 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
16299 in gnulib headers
16300 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
16301 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
16302 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
16303 header.
16304 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
16305 string.
16306
16307 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16308
16309 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
16310 grub-core/genmod.sh and grub-core/gensyminfo.sh
16311
16312 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
16313
16314 Add a test for echo command options.
16315
16316 * tests/grub_cmd_echo.in: New test.
16317 * Makefile.util.def: Rules for new test.
16318
16319 2010-09-20 Szymon Janc <szymon@janc.net.pl>
16320
16321 Remove crc.mod and move crc command to hashsum.mod.
16322 Remove lib/crc.c - users updated to use gcrypt implementation.
16323
16324 * grub-core/commands/crc.c: Removed.
16325 * grub-core/Makefile.core.def (crc): Module removed.
16326 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
16327 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
16328 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
16329 * grub-core/lib/crc.c: Removed.
16330 * include/grub/lib/crc.h: Removed.
16331 * Makefile.util.def (crc): Remove lib/crc.c
16332 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
16333 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
16334 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
16335 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
16336 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
16337 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
16338
16339 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16340
16341 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
16342
16343 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16344
16345 Split config.h for util and core.
16346
16347 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
16348 (ADDR32): Likewise.
16349 (DATA32): Likewise.
16350 (BSS_START_SYMBOL): Likewise.
16351 (END_SYMBOL): Likewise.
16352 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
16353 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
16354 * config.h.in: New file.
16355 * configure.ac: Use config-util.h as config define file.
16356 Rename MACHINE into GRUB_MACHINE. All users updated.
16357 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
16358 updated.
16359 (NESTED_FUNC_ATTR): Likewise.
16360 Substitue new variables.
16361 (COND_HAVE_ASM_USCORE): New conditional.
16362 * grub-core/Makefile.am (ASM_PREFIX): New variable.
16363 (kernel_syms.lst): Use ASM_PREFIX.
16364 * grub-core/kern/emu/console.c: Include config-util.h.
16365 * grub-core/kern/emu/misc.c: Likewise.
16366 * grub-core/kern/emu/mm.c: Likewise.
16367 * include/grub/emu/misc.h: Likewise.
16368 * include/grub/libgcc.h: Likewise.
16369
16370 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16371
16372 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
16373 constants usage.
16374 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
16375 Fix GRUB_TERM_KEY_* constants usage.
16376 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
16377
16378 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16379
16380 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
16381 print pointer.
16382 * grub-core/bus/usb/uhci.c: Remove empty define.
16383 (grub_uhci_check_transfer): Add missing cast.
16384 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
16385 print pointer.
16386 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
16387 PRIuGRUB_SIZE.
16388 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
16389
16390 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16391
16392 * grub-core/Makefile.core.def (legacycfg): Add
16393 lib/i386/pc/vesa_modes_table.c on emu.
16394
16395 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16396
16397 Reduce number of temporary files generated by build system.
16398
16399 * grub-core/gencmdlist.sh: Removed.
16400 * grub-core/genfslist.sh: Removed.
16401 * grub-core/genhandlerlist.sh: Removed.
16402 * grub-core/genmodsrc.sh: Removed.
16403 * grub-core/genpartmaplist.sh: Removed.
16404 * grub-core/genparttoollist.sh: Removed.
16405 * grub-core/gentermiinallist.sh: Removed.
16406 * grub-core/genvideolist.sh: Removed.
16407
16408 * grub-core/genmod.sh.in: New file.
16409 * grub-core/gensyminfo.sh.in: New file.
16410
16411 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
16412 * conf/Makefile.extra-dist: Update with new files.
16413 * gentpl.py: Remove rules related to unnecessary temporary files.
16414 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
16415 and und-* files.
16416 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
16417 genmod.sh scripts.
16418 * grub-core/bus/usb/uhci.c: Remove empty #define.
16419 * grub-core/genmoddep.awk: Updated with new syminfo format.
16420 * util/bash-completion.d/Makefile.am: Add config.log to
16421 CLEANFILES.
16422
16423 2010-09-19 Yves Blusseau <blusseau@zetam.org>
16424
16425 * Makefile.util.def: Add forgotten $(LIBINTL) library.
16426
16427 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16428
16429 * util/grub-mkconfig.in: Check the config script for syntax errors
16430 before saving.
16431
16432 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
16433 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16434
16435 * Makefile.util.def (grub-install): Use util/grub-install.in on all
16436 platforms.
16437 * util/grub-install.in: Add EFI and IEEE1275 support.
16438 * util/i386/efi/grub-install.in: Removed.
16439 * util/ieee1275/grub-install.in: Likewise.
16440
16441 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16442
16443 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
16444 (grub_cmd_cmosclean): Likewise.
16445 (GRUB_MOD_INIT): Register command cmosclean.
16446 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
16447 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
16448
16449 2010-09-18 Carles Pina i Estany <carles@pina.cat>
16450 2010-09-18 Aleš Nesrsta <starous@volny.cz>
16451 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16452
16453 Add keyboard layouts support.
16454
16455 * Makefile.util.def (grub-mklayout): New file.
16456 (grub-kbdcomp): New script.
16457 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
16458 Add keyboard_layouts.h.
16459 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
16460 commands/boot.c on yeeloong.
16461 (keylayouts): New module.
16462 * grub-core/bus/usb/ohci.c
16463 * grub-core/bus/usb/uhci.c
16464 * grub-core/bus/usb/usbhub.c (rescan): New variable.
16465 (grub_usb_add_hub): Poll interrupt pipe for device handling.
16466 (attach_root_port): Likewise.
16467 (poll_nonroot_hub): Likewise.
16468 (grub_usb_poll_devices): Likewise.
16469 (detach_device): Close transfer.
16470 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
16471 function.
16472 (grub_usb_bulk_setup_readwrite): Likewise.
16473 (grub_usb_bulk_finish_readwrite): Likewise.
16474 * grub-core/commands/keylayouts.c: New file.
16475 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
16476 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
16477 aliases.
16478 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
16479 support scancode 2.
16480 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
16481 * include/grub/keyboard_layouts.h: New file.
16482 * util/grub-mklayout.c: New file.
16483 * util/grub-kbdcomp.in: Likewise.
16484
16485 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16486
16487 Unify memory types.
16488
16489 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
16490 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
16491 types.
16492 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
16493 (grub_upper_mem): Likewise.
16494 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
16495 * include/grub/memory.h (grub_memory_type_t): New enum.
16496 All users updated.
16497
16498 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16499
16500 * grub-core/Makefile.core.def (lsapm): New module.
16501 * grub-core/commands/i386/pc/lsapm.c: New file.
16502 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
16503 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
16504 Likewise.
16505 * include/grub/i386/pc/apm.h: New file.
16506 * include/multiboot.h (multiboot_apm_info): New struct.
16507
16508 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16509
16510 GRUB-legacy configuration file support.
16511
16512 * Makefile.util.def (grub-menulst2cfg): New util.
16513 * docs/man/grub-menulst2cfg.h2m: New file.
16514 * grub-core/Makefile.core.def (legacycfg): New module.
16515 * grub-core/commands/legacycfg.c: New file.
16516 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
16517 (grub_normal_add_menu_entry): ... this.
16518 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
16519 (grub_normal_set_password): ...this.
16520 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
16521 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
16522 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
16523 * grub-core/lib/legacy_parse.c: New file.
16524 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
16525 * include/grub/i386/pc/vesa_modes_table.h: New file.
16526 * include/grub/legacy_parse.h: Likewise.
16527 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
16528 * util/grub-menulst2cfg.c: New file.
16529
16530 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16531
16532 * grub-core/kern/emu/hostdisk.c
16533 (convert_system_partition_to_system_disk): Initialise node.
16534
16535 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16536
16537 * grub-core/kern/emu/hostdisk.c
16538 (convert_system_partition_to_system_disk): Fix devmapper memory pool
16539 leak.
16540 Reported and based on patch by: Modestas Vainius.
16541
16542 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16543
16544 Fix DM-RAID probing with recent versions of device-mapper udev
16545 rules.
16546
16547 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
16548 canonicalise device paths under /dev/mapper/.
16549 (convert_system_partition_to_system_disk): Compare the
16550 uncanonicalised path to /dev/mapper/ rather than the canonicalised
16551 path, since device nodes under /dev/mapper/ are often symlinks.
16552
16553 2010-09-17 Yves Blusseau <blusseau@zetam.org>
16554
16555 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
16556
16557 2010-09-16 Yves Blusseau <blusseau@zetam.org>
16558
16559 * configure.ac: Avoid some annoying error messages if freetype-config
16560 program is not found.
16561
16562 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16563
16564 Support RAID on virtio devices, and others.
16565
16566 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
16567 Rename to ...
16568 [__MINGW32__] (grub_find_device): ... this.
16569 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
16570 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
16571 reasonable default if dir is NULL.
16572 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
16573 ...
16574 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
16575 (grub_guess_root_device): Update callers.
16576 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
16577
16578 * util/raid.c (grub_util_getdiskname): Remove.
16579 (grub_util_raid_getmembers): Use grub_find_device rather than
16580 grub_util_getdiskname.
16581
16582 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16583
16584 * docs/grub.texi (serial): Remove obsolete comment about GRUB
16585 needing to be compiled with serial support.
16586 (ls): Indicate that multiple files are accepted.
16587 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
16588 indicate that multiple files are accepted.
16589
16590 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16591
16592 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
16593 libgrub_a_init.c, and util/bash-completion.d/grub.
16594
16595 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16596
16597 * util/grub-setup.c (setup): Fix incorrect container semantics.
16598
16599 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16600
16601 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
16602 misusage.
16603 Reported by: J. Nick Terry
16604
16605 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16606
16607 Move embedding routines to partmap sources files.
16608
16609 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
16610 [GRUB_UTIL]: New variable.
16611 (gpt_partition_map_iterate): Set part.parent.
16612 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
16613 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
16614 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
16615 New function.
16616 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
16617 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
16618 (grub_partition_map) [GRUB_UTIL]: New field embed.
16619 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
16620 (setup): Use ->embed.
16621
16622 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16623
16624 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
16625 function.
16626 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
16627 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
16628
16629 2010-09-15 Yves Blusseau <blusseau@zetam.org>
16630
16631 Add function to get completions from usage.
16632
16633 * util/bash-completion.d/grub-completion.bash.in: Add function to get
16634 completions from usage. Use LC_ALL=C to get options properly.
16635
16636 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16637
16638 * grub-core/gnulib/basename-lgpl.c: Imported.
16639 * grub-core/gnulib/basename.c: Likewise.
16640 * grub-core/gnulib/dirname-lgpl.c: Likewise.
16641 * grub-core/gnulib/dirname.c: Likewise.
16642 * grub-core/gnulib/dirname.h: Likewise.
16643 * grub-core/gnulib/stripslash.c: Likewise.
16644
16645 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16646
16647 * grub-core/gnulib/error.c: Resynced.
16648 * grub-core/gnulib/getopt.c: Likewise.
16649 * grub-core/gnulib/getopt_int.h: Likewise.
16650 * grub-core/gnulib/regex.h: Likewise.
16651 * grub-core/gnulib/regex_internal.c: Likewise.
16652 * grub-core/gnulib/regex_internal.h: Likewise.
16653
16654 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16655
16656 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
16657 CRC calculations and validity checks.
16658 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
16659 calculations.
16660
16661 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16662
16663 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
16664
16665 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16666
16667 Fix incorrect echo options handling.
16668 Reported by: Yves Blusseau.
16669
16670 * include/grub/command.h (grub_command_flags_t): New flags
16671 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
16672 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
16673 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
16674
16675 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16676
16677 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
16678 users updated.
16679 (GRUB_COMMAND_FLAG_MENU): Likewise.
16680 (GRUB_COMMAND_FLAG_BOTH): Likewise.
16681 (GRUB_COMMAND_FLAG_TITLE): Removed.
16682 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
16683 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
16684 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
16685 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
16686 (grub_command_flags_t): New enum. All users updated.
16687
16688 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
16689
16690 Fix solaris compilation.
16691
16692 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
16693 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
16694 (grub-emu-list): Likewise.
16695
16696 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16697
16698 Remove deprecated root command.
16699
16700 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
16701 updated.
16702
16703 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16704
16705 * util/i386/pc/grub-setup.c: Merge this ...
16706 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
16707 * util/grub-setup.c: ... into this.
16708 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
16709 New struct.
16710
16711 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16712
16713 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
16714 possible.
16715
16716 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16717
16718 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
16719 allocate p.
16720
16721 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16722
16723 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
16724 explicit root argument to set to prevent UUID to be interpreted as
16725 argument to set.
16726
16727 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16728
16729 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
16730
16731 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16732
16733 Don't export grub_gate_a20.
16734
16735 * grub-core/kern/i386/pc/init.c: Remove leftovers.
16736 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
16737 to ...
16738 (grub_gate_a20): ... this. All users updated.
16739 * include/grub/i386/pc/init.h: Removed. All users updated.
16740
16741 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16742
16743 Create euro.pf2 which supports most European languages.
16744
16745 * Makefile.am (grubdata_DATA): Add euro.pf2.
16746 (euro.pf2): New target.
16747 (CLEANFILES): Add euro.pf2.
16748
16749 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16750
16751 * configure.ac: Disable emu-usb by default to prevent inadvertent
16752 device takeover.
16753
16754 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16755
16756 Disable usbserial on grub-emu since our libusb code isn't good enough
16757 yet.
16758
16759 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
16760 (usbserial_pl2303): Likewise.
16761 (usbserial_ftdi): Likewise.
16762
16763 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16764
16765 * include/grub/disk.h (grub_disk): Remove has_partitions.
16766 All users updated.
16767 * disk/loopback.c (grub_loopback): Remove has_partitions.
16768 All users updated.
16769 (options): Remove partitions. All users updated.
16770 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
16771 * util/i386/pc/grub-setup.c (setup): copy partition table only when
16772 actual partition table is found.
16773
16774 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16775
16776 Remove readability checks (too many false negatives).
16777
16778 * util/grub-install.in: Remove readability checks.
16779 * util/grub-mkconfig.in: Likewise.
16780 * util/grub.d/10_hurd.in: Likewise.
16781 * util/grub.d/10_kfreebsd.in: Likewise.
16782 * util/grub.d/10_linux.in: Likewise.
16783 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
16784 way.
16785
16786 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16787
16788 Enable acpi shutdown on all ACPI platforms.
16789
16790 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
16791 on coreboo, multiboot and EFI.
16792 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
16793 (grub_acpi_halt): Likewise.
16794 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
16795 (grub_cmd_halt): Don't call grub_acpi_halt directly.
16796 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
16797 * grub-core/lib/i386/halt.c (grub_halt)
16798 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
16799
16800 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16801
16802 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
16803 context.
16804
16805 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16806
16807 * grub-core/video/efi_gop.c: Fix over-80-chars line.
16808 * grub-core/video/efi_uga.c: Likewise.
16809
16810 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16811
16812 Filter devaliases and never open same device twice.
16813
16814 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
16815 (last_ihandle): Likewise.
16816 (ofdisk_hash_ent): New member shortest.
16817 (ofdisk_hash_add): Add canonical path too.
16818 (scan): New function.
16819 (grub_ofdisk_iterate): Iterate over hashed entries.
16820 (compute_dev_path): Don't add :0.
16821 (grub_ofdisk_open): Don't really open the disk.
16822 (grub_ofdisk_close): Avoid closing unrelated disk.
16823 (grub_ofdisk_read): Implement reopen logic.
16824 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
16825 New function.
16826 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
16827 New proto.
16828
16829 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16830
16831 Fix sparc64.
16832
16833 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
16834 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
16835 right address. Add sparc64_ieee1275_ldflags.
16836 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
16837 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
16838 to grub_host_to_target_addr
16839 (load_image): Likewise.
16840
16841 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16842
16843 * grub-core/normal/completion.c (complete_file): Handle device
16844 containing slash.
16845 Fix based on patch by Doug Nazar.
16846
16847 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16848
16849 grub-mknetdir script.
16850
16851 * Makefile.util.def (grub-mknetdir): New module.
16852 * tests/util/grub-shell.in: Support boot=net
16853 * util/grub-mknetdir.in: New file.
16854
16855 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16856
16857 videoinfo on non-vbe.
16858
16859 * grub-core/Makefile.core.def (vbeinfo): Removed.
16860 (vbetest): Removed.
16861 (videoinfo): New module.
16862 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
16863 * grub-core/commands/i386/pc/vbetest.c: Removed.
16864 * grub-core/commands/videoinfo.c: New file.
16865 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
16866 specification.
16867 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
16868 as vbetest.
16869 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
16870 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
16871 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
16872 mode_number. New parameter mode. All users updated.
16873 (grub_video_gop_iterate): New function.
16874 (grub_video_efi_gop): New member iterate.
16875 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
16876 (grub_vbe_set_video_mode): Remove setting useless fields.
16877 (vbe2videoinfo): New function.
16878 (grub_video_vbe_iterate): Likewise.
16879 (grub_video_vbe_setup): Use vbe2videoinfo.
16880 (grub_video_vbe_print_adapter_specific_info): New function.
16881 (grub_video_vbe_adapter): New fields iterate and
16882 print_adapter_specific_info.
16883 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
16884 All users updated.
16885 (grub_video_mode_info): New field mode_number.
16886 (grub_video_adapter): New fields iterate and
16887 print_adapter_specific_info.
16888
16889 2010-09-13 Tristan Gingold <gingold@free.fr>
16890 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
16891 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16892
16893 * grub-core/commands/efi/lsefisystab.c: New file.
16894 * grub-core/commands/efi/lssal.c: Likewise.
16895 * grub-core/Makefile.core.def (lsacpi): New module.
16896 (lsefisystab): Likewise.
16897 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
16898 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
16899 (grub_efi_sal_system_table): New struct.
16900 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
16901 (grub_efi_sal_system_table_memory_descriptor): Likewise.
16902 (grub_efi_sal_system_table_platform_features): Likewise.
16903 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
16904 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
16905 (grub_efi_sal_system_table_ap_wakeup): Likewise.
16906 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
16907
16908 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16909
16910 Support explicit user claim that a device is BIOS-visible.
16911
16912 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
16913 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
16914 * grub-core/kern/emu/hostdisk.c
16915 (convert_system_partition_to_system_disk): Support mdX.
16916 (find_system_device): New parameter add. All users updated.
16917 (grub_util_biosdisk_is_present): New function.
16918 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
16919 proto.
16920
16921 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16922
16923 Search hints support.
16924
16925 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
16926 All users updated.
16927
16928 2010-09-13 Yves Blusseau <blusseau@zetam.org>
16929
16930 Bash completion script for util commands
16931
16932 * Makefile.am: Add util/bash-completion.d directory
16933 * configure.ac: Likewise.
16934 * util/bash-completion.d/Makefile.am: New file.
16935 * util/bash-completion.d/grub-completion.bash.in: Likewise.
16936
16937 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16938
16939 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
16940 (print_backlog): set backlog_ucs4 and backlog_glyphs.
16941 Reported by: Yves Blusseau.
16942
16943 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16944
16945 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
16946 partition size and offset.
16947
16948 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16949
16950 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
16951
16952 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16953
16954 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
16955
16956 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16957
16958 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
16959 (grub_xvasprintf): Likewise.
16960
16961 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16962
16963 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
16964
16965 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16966
16967 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
16968 args ending with NULL.
16969
16970 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16971
16972 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
16973 pointer.
16974
16975 2010-09-11 Szymon Janc <szymon@janc.net.pl>
16976
16977 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
16978
16979 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16980
16981 Shutdown using ACPI.
16982
16983 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
16984 * grub-core/commands/acpihalt.c: New file.
16985 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
16986 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
16987 (grub_acpi_halt): New proto.
16988 (GRUB_ACPI_SLP_EN): New const.
16989 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
16990 (GRUB_ACPI_OPCODE_*): New enum.
16991 (GRUB_ACPI_EXTOPCODE_*): Likewise.
16992
16993 2010-09-11 Tristan Gingold <gingold@free.fr>
16994 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
16995 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16996
16997 * commands/lsacpi.c: New file.
16998 * grub-core/Makefile.core.def (lsacpi): New module.
16999 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
17000 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
17001 (grub_acpi_madt_entry_header): New struct.
17002 (grub_acpi_madt): Likewise.
17003 (grub_acpi_madt_entry_interrupt_override): Likewise.
17004 (grub_acpi_madt_entry_sapic): Likewise.
17005 (grub_acpi_madt_entry_lsapic): Likewise.
17006 (grub_acpi_madt_entry_platform_int_source): Likewise.
17007 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
17008 (PRIuGRUB_UINT32_T): Likewise.
17009 (PRIxGRUB_UINT64_T): Likewise.
17010
17011 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17012
17013 Implement loading palette on ieee1275_fb.
17014
17015 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
17016 (have_setcolors): Likewise.
17017 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
17018 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
17019 (grub_video_ieee1275_set_palette): Implement.
17020
17021 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17022 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
17023
17024 * util/grub-install.in (grub_partition): New variable.
17025 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
17026 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
17027 Fixes a bug reported by Yves Blusseau.
17028
17029 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17030
17031 Fix emu on mipsel.
17032
17033 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
17034 =grub_cpu_flush_cache on all mips and not only yeeloong.
17035 * configure.ac (COND_mips): New conditional.
17036 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
17037 platforms.
17038 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
17039 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
17040 [GRUB_LINKER_HAVE_INIT]: New function.
17041 (grub_emu_post_init): Likewise.
17042 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
17043 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
17044 * include/grub/cache.h (_mips): Include mips/cache.h.
17045 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
17046 LVM and RAID prototypes.
17047 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
17048 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
17049 function.
17050
17051 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
17052
17053 * util/grub-install.in: Don't try to verify core.img until after
17054 running grub-mkimage to create it.
17055
17056 2010-09-10 Robert Millan <rmh@gnu.org>
17057
17058 * util/grub.d/10_hurd.in: Add misc readability checks.
17059 * util/grub.d/10_kfreebsd.in: Likewise.
17060 * util/grub.d/10_linux.in: Likewise.
17061
17062 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
17063
17064 * util/grub-install.in: ${imgext} won't be defined here until the
17065 install branch is merged. For the meantime, only verify core.img on
17066 i386-pc and sparc64-ieee1275 platforms.
17067
17068 2010-09-10 Robert Millan <rmh@gnu.org>
17069
17070 Solaris support in grub_find_zpool_from_dir(). Thanks
17071 Seth Goldberg for referring to getextmntent() facility.
17072
17073 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
17074 `sys/mkdev.h'.
17075 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
17076 `<sys/mnttab.h>'.
17077 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
17078 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
17079 method for finding zpool name.
17080
17081 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
17082
17083 grub-fstest needs the host and hostfs modules while other utilities
17084 actively require those modules to be absent, so grub-fstest needs
17085 its own initialisation and finalisation code.
17086
17087 * Makefile.am (grub_fstest.pp): New target.
17088 (grub_fstest_init.lst): Likewise.
17089 (grub_fstest_init.c): Likewise.
17090 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
17091
17092 2010-09-10 Robert Millan <rmh@gnu.org>
17093
17094 * configure.ac: Check for `struct statfs.f_fstypename' and
17095 `struct statfs.f_mntfromname'.
17096
17097 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
17098 kFreeBSD-specific code.
17099
17100 2010-09-10 Robert Millan <rmh@gnu.org>
17101
17102 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
17103 on ZFS. Now non-main filesystems are supported as / too.
17104
17105 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
17106
17107 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
17108 and grub-core/disk/host.c to ...
17109 (grub-fstest): ... here. Having the host disk implementation
17110 present confuses grub-probe and other utility programs.
17111
17112 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
17113 when writing to a file, not when writing to stdout.
17114
17115 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
17116
17117 * tests/partmap_test.in: New test for partitions.
17118 * Makefile.util.def: Rules for new test.
17119
17120 2010-09-09 Robert Millan <rmh@gnu.org>
17121
17122 * util/grub-probe.c (probe): Fix a pair of unhandled error
17123 conditions.
17124
17125 2010-09-09 Robert Millan <rmh@gnu.org>
17126
17127 Basic Btrfs support (detection and UUID).
17128
17129 * grub-core/fs/btrfs.c: New file.
17130 * Makefile.util.def (library): Register btrfs.c.
17131 * grub-core/Makefile.core.def: Likewise.
17132
17133 2010-09-08 Robert Millan <rmh@gnu.org>
17134
17135 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
17136 with (optional) parameters to specify device and relative path.
17137 * util/grub-install.in: Use is_path_readable_by_grub() to
17138 verify readability of a few critical files.
17139 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
17140 verify readability of grub.cfg.new.
17141
17142 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17143
17144 Split minix.mod into minix.mod and minix2.mod.
17145
17146 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
17147 * grub-core/Makefile.core.def (minix2): New module.
17148 * grub-core/fs/minix.c: Use definitions instead of runtime version
17149 checking.
17150 * grub-core/fs/minix2.c: New file.
17151
17152 2010-09-08 Yves Blusseau <blusseau@zetam.org>
17153
17154 Add new --boot-directory option to replace --root-directory
17155
17156 * util/grub-install.in: Add new --boot-directory option
17157 * util/grub-reboot.in: Likewise.
17158 * util/grub-set-default.in: Likewise.
17159
17160 2010-09-08 Yves Blusseau <blusseau@zetam.org>
17161
17162 * util/grub-mkconfig.in: Use new variable.
17163
17164 2010-09-08 Yves Blusseau <blusseau@zetam.org>
17165
17166 * configure.ac: Define some useful variables.
17167
17168 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17169
17170 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
17171 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
17172 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
17173 Use terminfo and don't use cursor-on/cursor-off unless it's known
17174 to work.
17175 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
17176 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
17177
17178 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
17179
17180 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
17181 starts with "(,", fill the drive containing the loaded image in
17182 between those two characters, but expect that a full partition
17183 specification including partition map names will follow.
17184
17185 2010-09-08 Robert Millan <rmh@gnu.org>
17186
17187 * configure.ac: Remove `--enable-grub-fstest' option.
17188 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
17189
17190 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
17191 `grub-fstest' instead of `grub-probe' for readability verification.
17192 * util/grub-probe.c (probe): Remove readability verification kludge.
17193
17194 2010-09-08 Robert Millan <rmh@gnu.org>
17195
17196 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
17197 initializing `GRUB_FS'.
17198
17199 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
17200
17201 Not command (!) support to GRUB script.
17202
17203 * tests/grub_script_not.in: New test.
17204 * Makefile.util.def: Rules for new test.
17205
17206 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
17207 ! command as a special case.
17208 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
17209
17210 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17211
17212 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
17213 grub_free.
17214
17215 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17216
17217 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
17218
17219 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17220
17221 * docs/grub.texi (Shell-like scripting): Documentation for break,
17222 continue, shift and return commands.
17223
17224 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
17225
17226 Rename CD-ROM to cd on BIOS.
17227
17228 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
17229 "cd".
17230 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
17231
17232 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17233
17234 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
17235 * util/grub-probe.c (main): Likewise.
17236 * util/i386/pc/grub-setup.c (main): Likewise.
17237 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
17238 Reported and debugged by: alexxy
17239
17240 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17241
17242 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
17243 diagnostic info.
17244
17245 2010-09-05 Jo Shields <directhex@apebox.org>
17246
17247 * util/grub.d/30_os-prober.in: Add missing classes.
17248
17249 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17250
17251 * docs/grub.texi (Theme file format): Document new position format.
17252
17253 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17254
17255 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
17256 a table. Use @code instead of @verbatim.
17257
17258 2010-09-05 Colin D Bennett <colin@gibibit.com>
17259
17260 Gfxmenu documentation.
17261
17262 * docs/grub.texi (Theme file format): New chapter.
17263
17264 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17265
17266 * grub-core/Makefile.core.def (xzio): New module.
17267 * grub-core/io/xzio.c: New file.
17268 * grub-core/lib/xzembed/xz.h: New file (from xembed).
17269 * grub-core/lib/xzembed/xz_config.h: Likewise.
17270 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
17271 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
17272 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
17273 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
17274 * grub-core/lib/xzembed/xz_private.h: Likewise.
17275 * grub-core/lib/xzembed/xz_stream.h: Likewise.
17276 * include/grub/file.h (grub_file_filter_id): New compression filter
17277 GRUB_FILE_FILTER_XZIO.
17278
17279 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17280
17281 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
17282 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
17283 size.
17284
17285 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17286
17287 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
17288 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
17289
17290 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17291
17292 Uncompressed checksum support.
17293
17294 * grub-core/commands/hashsum.c (options): Add option --uncompress.
17295 (check_list): New parameter uncompress.
17296 (grub_cmd_hashsum): Handle --uncompress.
17297
17298 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17299
17300 Reintroduce testload.
17301
17302 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
17303 from here ...
17304 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
17305 (GRUB_MOD_INIT): New function.
17306 (GRUB_MOD_FINI): Likewise.
17307 * grub-core/Makefile.core.def (testload): New module.
17308
17309 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17310
17311 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
17312 (uint8_t): New type.
17313 (uint16_t): Likewise.
17314 (uint32_t): Likewise.
17315 (uint64_t): Likewise.
17316
17317 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17318
17319 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
17320
17321 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17322
17323 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
17324 Made static.
17325 (grub_gzfile_open): Removed. All users updated.
17326 (GRUB_MOD_INIT): New function.
17327 (GRUB_MOD_FINI): Likewise.
17328 * grub-core/kern/file.c (grub_file_filters_all): New variable.
17329 (grub_file_filters_enabled): Likewise.
17330 (grub_file_open): Handle filters.
17331 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
17332 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
17333 * include/grub/file.h (grub_file_filter_id_t): New type.
17334 (grub_file_filter_t): Likewise.
17335 (grub_file_filters_all): New extern variable.
17336 (grub_file_filters_enabled): Likewise.
17337 (grub_file_filter_register): New inline function.
17338 (grub_file_filter_unregister): Likewise.
17339 (grub_file_filter_disable): Likewise.
17340 (grub_file_filter_disable_compression): Likewise.
17341 * include/grub/gzio.h: Removed.
17342
17343 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17344
17345 Filename expansion support for wildcards in GRUB script.
17346
17347 * tests/grub_script_expansion.in: New test.
17348 * Makefile.util.def: Rule for new test.
17349
17350 * grub-core/commands/wildcard.c: New file, implements filename
17351 expansion support for GRUB script.
17352 * grub-core/Makefile.core.def: Rule update for regexp.mod.
17353 * grub-core/script/argv.c: Cosmetic changes.
17354 * grub-core/script/execute.c (grub_script_arglist_to_argv):
17355 Refactored to perform wildcard expansion on arguments.
17356 * include/grub/script_sh.h (grub_script_wildcard_translator): New
17357 struct.
17358
17359 * tests/util/grub-shell.in: Fix quoting for read input.
17360
17361 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17362
17363 Support for updating environment variables with matched substrings
17364 of regexp.
17365
17366 * tests/grub_cmd_regexp.in: New test.
17367 * Makefile.util.def: Rule for new test.
17368
17369 * grub-core/commands/regexp.c: New option -s to update environment
17370 variables with regexp matches.
17371
17372 2010-09-04 Szymon Janc <szymon@janc.net.pl>
17373
17374 * include/grub/file.h (grub_file): New member not_easly_seekable.
17375 (grub_file_seekable): New inline function.
17376 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
17377 easily seekable.
17378 (grub_gzio_open): Set not_easly_seekable.
17379 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
17380 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
17381
17382 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17383
17384 Support for options to appear multiple times on cmdline.
17385
17386 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
17387 * grub-core/commands/extcmd.c: Support for repeatable option.
17388 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
17389 repeatable option support.
17390
17391 Refactor menuentry into a regular command.
17392
17393 * grub-core/commands/menuentry.c: New file, menuentry command
17394 implementation.
17395 * grub-core/Makefile.core.def: Rule update for normal.mod.
17396 * grub-core/normal/main.c: Moved menuentry creation to
17397 grub-core/commands/menuentry.c.
17398 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
17399 (grub_menu_execute_entry_real): Removed.
17400 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
17401 function.
17402 (grub_script_execute_menuentry): Removed.
17403 * grub-core/script/parser.y (menuentry): Removed.
17404 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
17405 * grub-core/script/yylex.l (menuentry): Removed.
17406 * include/grub/menu.h (grub_menu_init): New prototype.
17407 (grub_menu_fini): New prototype.
17408 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
17409 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
17410 (grub_script_execute_sourcecode): New prototype.
17411
17412 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17413
17414 "return" command for GRUB script functions.
17415
17416 * tests/grub_script_return.in: New test.
17417 * Makefile.util.def: Rules for new test.
17418
17419 * grub-core/script/execute.c (grub_script_return): New function.
17420 * grub-core/script/main.c: Register/unregister return commaond.
17421 * include/grub/script_sh.h (grub_script_return): New prototype.
17422
17423 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17424
17425 "setparams" command to update positional parameters.
17426
17427 * tests/grub_script_setparams.in: New test.
17428 * Makefile.util.def: Rules for new test.
17429
17430 * grub-core/script/argv.c (grub_script_argv_make): New function.
17431 * grub-core/script/execute.c (replace_scope): New function.
17432 (grub_script_setparams): New function.
17433 * grub-core/script/lexer.c: Remove unused variables.
17434 * grub-core/script/main.c: Register/unregister setparams command.
17435 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
17436 (grub_script_setparams): New prototype.
17437
17438 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17439
17440 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
17441 grub_free order.
17442
17443 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17444
17445 Support for passing block of commands as an argument to extcmds.
17446
17447 * Makefile.util.def: Rules for new test.
17448 * tests/grub_script_blockarg.in: New test.
17449 * grub-core/tests/test_blockarg.c: New file, block argument
17450 command used in the test.
17451
17452 * include/grub/extcmd.h (grub_extcmd_context): New struct.
17453 (grub_register_extcmd_prio): New function prototype.
17454 (grub_extcmd_dispatcher): New function prototype.
17455 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
17456 type.
17457 * include/grub/script_sh.h (struct grub_script): New members
17458 `children', `next_siblings' and `refcnt' for block arguments and
17459 reference counting.
17460 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
17461 (grub_script_arg): New member `script' for block argument.
17462 (grub_script_argv): New member `script' for block argument.
17463 (grub_parser_param): New member `scripts' for block argument.
17464 (grub_script_mem_free): New extern function prototype.
17465 (grub_script_ref): New function prototype.
17466 (grub_script_unref): New function prototype.
17467
17468 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
17469 extcmd form to support block arguments.
17470 * grub-core/script/argv.c: Block arguments support.
17471 * grub-core/script/execute.c: Likewise.
17472 * grub-core/script/lexer.c: Likewise.
17473 * grub-core/script/main.c: Likewise.
17474 * grub-core/script/script.c: Likewise.
17475 * grub-core/script/parser.y: Likewise. New `block' and `block0'
17476 non-terminals.
17477
17478 * grub-core/commands/acpi.c: Update extcmd implementations with
17479 grub_extcmd_context_t.
17480 * grub-core/commands/cat.c: Likewise.
17481 * grub-core/commands/echo.c: Likewise.
17482 * grub-core/commands/extcmd.c: Likewise.
17483 * grub-core/commands/hashsum.c: Likewise.
17484 * grub-core/commands/hdparm.c: Likewise.
17485 * grub-core/commands/help.c: Likewise.
17486 * grub-core/commands/hexdump.c: Likewise.
17487 * grub-core/commands/i386/cpuid.c: Likewise.
17488 * grub-core/commands/i386/pc/drivemap.c: Likewise.
17489 * grub-core/commands/i386/pc/halt.c: Likewise.
17490 * grub-core/commands/i386/pc/sendkey.c: Likewise.
17491 * grub-core/commands/iorw.c: Likewise.
17492 * grub-core/commands/keystatus.c: Likewise.
17493 * grub-core/commands/loadenv.c: Likewise.
17494 * grub-core/commands/ls.c: Likewise.
17495 * grub-core/commands/lspci.c: Likewise.
17496 * grub-core/commands/memrw.c: Likewise.
17497 * grub-core/commands/probe.c: Likewise.
17498 * grub-core/commands/search_wrap.c: Likewise.
17499 * grub-core/commands/setpci.c: Likewise.
17500 * grub-core/commands/sleep.c: Likewise.
17501 * grub-core/disk/loopback.c: Likewise.
17502 * grub-core/hello/hello.c: Likewise.
17503 * grub-core/loader/i386/bsd.c: Likewise.
17504 * grub-core/loader/xnu.c: Likewise.
17505 * grub-core/term/gfxterm.c: Likewise.
17506 * grub-core/term/serial.c: Likewise.
17507 * grub-core/tests/lib/functional_test.c: Likewise.
17508
17509 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17510
17511 Multi-line quoted strings support.
17512
17513 * grub-core/script/lexer.c (append_newline): Removed.
17514 (grub_script_lexer_yywrap): Refactored.
17515 (grub_script_lexer_init): Refactored.
17516 * grub-core/script/yylex.l (yywrap): New function.
17517 (grub_lexer_resplit): New function.
17518 (grub_lexer_unput): New function.
17519 * include/grub/script_sh.h (grub_lexer_param): New members, unput
17520 and resplit.
17521 * tests/grub_script_echo1.in: Added few more testcases.
17522
17523 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
17524
17525 * grub-core/kern/misc.c: Don't add abort alias in utils.
17526 Reported by: echoline.
17527
17528 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
17529
17530 Add missing files into "make dist" tarball for other platforms.
17531
17532 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
17533 * conf/Makefile.common (dist_noinst_DATA): New variable.
17534 * conf/Makefile.extra-dist: Added missing make dist files.
17535 * grub-core/Makefile.core.def: Likewise.
17536
17537 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17538
17539 Compress grub_prefix.
17540
17541 * grub-core/boot/i386/pc/lnxboot.S: Use
17542 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
17543 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
17544 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
17545 GRUB_MACHINE_PREFIX_END. All users updated.
17546 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
17547 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
17548 + 0x40.
17549 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17550 * util/grub-mkimage.c (image_target_desc): Change data_end to
17551 prefix_end. All users updated.
17552
17553 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17554
17555 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
17556 value.
17557 (grub_openbsd_boot): Likewise.
17558 (grub_netbsd_boot): Likewise.
17559 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
17560 (grub_xnu_boot): Likewise.
17561
17562 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17563
17564 * configure.ac: Clean LIBS variable after tests.
17565
17566 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17567
17568 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
17569
17570 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17571
17572 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
17573 echo if libdevmapper will be used.
17574
17575 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
17576
17577 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
17578 constant for the same file.
17579
17580 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17581
17582 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
17583
17584 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17585
17586 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
17587 grub-core/*.pp.
17588
17589 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17590
17591 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
17592 required by the boot protocol.
17593
17594 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
17595 ebp and edi members.
17596 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
17597 state.ebp and state.edi.
17598 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
17599 %ebp and %edi according to grub_relocator32_ebp and
17600 grub_relocator32_edi respectively.
17601 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
17602 and state.edi.
17603
17604 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17605
17606 Add i386-pc-pxe image target.
17607
17608 * util/grub-mkimage.c (image_target_desc): New enum value
17609 IMAGE_I386_PC_PXE.
17610 (image_targets): New target i386-pc-pxe.
17611 (generate_image): Handle i386-pc-pxe image.
17612
17613 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17614
17615 Fix grub_pxe_scan.
17616
17617 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
17618 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
17619 All users updated.
17620 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
17621 (grub_pxe_pxenv): Correct type.
17622
17623 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17624
17625 * NEWS: Document most of the important changes since 1.98.
17626
17627 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17628
17629 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
17630 generated manual page) a little.
17631
17632 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17633
17634 * docs/grub.texi: Add myself as an author.
17635
17636 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
17637
17638 * Makefile.util.def (libgrub.a): Add missing sunpc.
17639 Reported by: Seth Goldberg.
17640
17641 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17642
17643 Interrupt wrapping and code simplifications.
17644
17645 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
17646 x86_noieee1275 which are functionaly equivalent in this case.
17647 (grub-install): Make source on each platform explicit. Enable on
17648 all noemu.
17649 * gentpl.py (x86_efi_pc): Removed group.
17650 (x86_noefi): Likewise.
17651 (i386_noefi): Likewise.
17652 (x86_noieee1275): Likewise.
17653 (i386_noieee1275): Likewise.
17654 (i386_noefi_noieee1275): Likewise.
17655 (i386_pc_qemu_coreboot): Likewise.
17656 (i386_coreboot_multiboot): Likewise.
17657 (i386_pc_coreboot_multiboot_qemu): Likewise.
17658 (x86_noefi_mips): Likewise.
17659 (noieee1275): Likewise.
17660 (ieee1275_mips): Likewise.
17661 (noemu_noieee1275): Likewise.
17662 (cmos): New group.
17663 (usb): Likewise.
17664 (videoinkernel): Likewise.
17665 (videomodules): Likewise.
17666 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
17667 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
17668 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
17669 include/grub/loader.h, include/grub/msdos_partition.h,
17670 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
17671 include/grub/machine/console.h, include/grub/machine/vga.h,
17672 include/grub/machine/vbe.h, include/grub/machine/init.h,
17673 include/grub/machine/kernel.h, include/grub/cpu/time.h,
17674 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
17675 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
17676 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
17677 * grub-core/Makefile.core.def (kernel): Explicit the source for
17678 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
17679 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
17680 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
17681 Use videoinkernel tag.
17682 (usb): Enable on all usb.
17683 (usbserial_common): Likewise.
17684 (usbserial_pl2303): Likewise.
17685 (usbserial_ftdi): Likewise.
17686 (uhci): Enable on all x86.
17687 (ohci): Enable on all pci.
17688 (cmostest): Enable on all CMOS.
17689 (acpi): Include commands/acpi.c on all platforms.
17690 (halt): Add relevant lib/*/halt.c.
17691 (hdparm): Enable on all pci.
17692 (lspci): Likewise.
17693 (usbtest): Enable on all usb.
17694 (ata): Enable on all pci.
17695 (ata_pthru): Likewise.
17696 (usbms): Enable on all usb.
17697 (usb_keyboard): Likewise.
17698 (font): Use tag videomodules.
17699 (bufio): Likewise.
17700 (datetime): Use tag cmos. Enable on all noemu.
17701 (mmap): Use tags common and x86.
17702 (gfxterm): Use tag videomodules.
17703 (bitmap): Likewise.
17704 (bitmap_scale): Likewise.
17705 (video_fb): Likewise.
17706 (video): Likewise.
17707 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
17708 adjust padding accordingly. All users updated.
17709 (grub_ohci_transaction): Fix bad format specification.
17710 (GRUB_MOD_INIT): Add asserts for struct size.
17711 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
17712 (grub_alloc_td): Likewise.
17713 (grub_free_queue): Likewise.
17714 (grub_uhci_transfer): Likewise.
17715 (grub_uhci_transaction): Fix bad format specification.
17716 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
17717 (grub_usb_bulk_readwrite): Likewise.
17718 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
17719 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
17720 Made static.
17721 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
17722 Made static.
17723 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
17724 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
17725 Transformed into C.
17726 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
17727 Moved from here ...
17728 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
17729 ... here. Transformed into C. Made static.
17730 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
17731 Moved from here ...
17732 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
17733 ... here. Transformed into C. Made static.
17734 * grub-core/kern/i386/pc/startup.S
17735 (grub_biosdisk_check_int13_extensions): Moved from here ...
17736 * grub-core/disk/i386/pc/biosdisk.c
17737 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
17738 Made static.
17739 * grub-core/kern/i386/pc/startup.S
17740 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
17741 * grub-core/disk/i386/pc/biosdisk.c
17742 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
17743 Transformed into C. Made static.
17744 * grub-core/kern/i386/pc/startup.S
17745 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
17746 * grub-core/disk/i386/pc/biosdisk.c
17747 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
17748 Transformed into C. Made static.
17749 * grub-core/kern/i386/pc/startup.S
17750 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
17751 * grub-core/disk/i386/pc/biosdisk.c
17752 (grub_biosdisk_get_diskinfo_standard): ... here.
17753 Transformed into C. Made static.
17754 * grub-core/kern/i386/pc/startup.S
17755 (grub_biosdisk_get_num_floppies): Moved from here ...
17756 * grub-core/disk/i386/pc/biosdisk.c
17757 (grub_biosdisk_get_num_floppies): ... here.
17758 Transformed into C. Made static.
17759 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
17760 New function.
17761 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
17762 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
17763 Transformed into C. Made static.
17764 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
17765 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
17766 Transformed into C. Made static.
17767 * grub-core/kern/i386/ieee1275/init.c: Removed.
17768 * grub-core/kern/i386/misc.S: Likewise.
17769 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
17770 Splitted from here ...
17771 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
17772 Transformed into C. Made static. All users updated.
17773 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
17774 Transformed into C. Made static. All users updated.
17775 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
17776 Moved from here...
17777 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
17778 Transformed into C. Made static. All users updated.
17779 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
17780 Moved from here...
17781 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
17782 Transformed into C. Made static. All users updated.
17783 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
17784 Removed (replaced by C version).
17785 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
17786 Moved from here...
17787 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
17788 Transformed into C. Made static.
17789 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
17790 Moved from here...
17791 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
17792 ... here. Transformed into C.
17793 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
17794 Moved from here...
17795 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
17796 ... here. Transformed into C.
17797 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
17798 Moved from here...
17799 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
17800 ... here. Transformed into C. Made static.
17801 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
17802 Moved from here...
17803 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
17804 ... here. Transformed into C.
17805 * grub-core/kern/i386/pc/startup.S
17806 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
17807 * grub-core/video/i386/pc/vbe.c
17808 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
17809 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
17810 Moved from here...
17811 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
17812 ... here. Transformed into C.
17813 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
17814 Moved from here...
17815 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
17816 ... here. Transformed into C.
17817 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
17818 Moved from here...
17819 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
17820 ... here. Transformed into C.
17821 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
17822 Moved from here...
17823 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
17824 ... here. Transformed into C.
17825 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
17826 Moved from here...
17827 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
17828 ... here. Transformed into C. Made static.
17829 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
17830 Moved from here...
17831 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
17832 ... here. Transformed into C. Made static.
17833 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
17834 Moved from here...
17835 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
17836 ... here. Transformed into C. Made static.
17837 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
17838 pxe_rm_entry as third argument.
17839 (grub_bios_interrupt): New function.
17840 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
17841 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
17842 of calling grub_stop.
17843 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
17844 * grub-core/lib/efi/halt.c (grub_halt): ...here.
17845 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
17846 * grub-core/lib/emu/halt.c (grub_halt): ... here.
17847 * grub-core/lib/i386/halt.c: Moved from here ...
17848 * grub-core/lib/i386/halt.c: ... here.
17849 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
17850 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
17851 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
17852 grub_stop_floppy.
17853 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
17854 * include/grub/i386/coreboot/init.h: Removed.
17855 * include/grub/i386/multiboot/init.h: Likewise.
17856 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
17857 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
17858 * include/grub/i386/pc/int.h: New file.
17859 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
17860 (grub_pxe_scan): Removed.
17861 (grub_pxe_call): Update prototype.
17862 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
17863 prototypes.
17864 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
17865 * include/grub/i386/qemu/init.h: Removed.
17866 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
17867 noreturn.
17868 (grub_halt): Likewise.
17869 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
17870 (grub_reboot): Likewise.
17871 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
17872 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
17873 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
17874
17875 2010-08-30 Robert Millan <rmh@gnu.org>
17876
17877 * NEWS: Document addition of ZFS support in `grub-install' and
17878 `grub-mkconfig'.
17879
17880 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
17881
17882 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
17883 dprintf output.
17884
17885 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17886
17887 Remove leftover embedding of font objects.
17888
17889 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17890 * util/grub-install.in (font): Removed.
17891 * util/grub-mkimage.c (generate_image): Remove font support. All users
17892 updated.
17893
17894 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17895
17896 Remove leftover embedding of font objects.
17897
17898 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17899 * util/grub-install.in (font): Removed.
17900 * util/grub-mkimage.c (generate_image): Remove font support. All users
17901 updated.
17902
17903 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17904
17905 * docs/grub.texi (Network): Fix reference to pxe_blksize.
17906 Reported by: Ian Turner
17907
17908 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17909
17910 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
17911 timeout to avoid indefinite boot stalling.
17912
17913 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17914
17915 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
17916 (grub_env_write_color_highlight): Likewise.
17917
17918 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17919
17920 * grub-core/normal/term.c (print_more): Return to normal and not
17921 to standard state after printing "---MORE---".
17922
17923 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17924
17925 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
17926 Mask out the bit 0x80 since it has other meaning that specifiing color.
17927
17928 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17929
17930 New relocator. Allows for more kernel support and more straightforward
17931 loader writing.
17932
17933 * Makefile.am (BOOTTARGET): New variable.
17934 (QEMU32): Likewise.
17935 (linux.init.x86_64): New target.
17936 (linux.init.i386): Likewise.
17937 (multiboot.elf): Likewise.
17938 (kfreebsd.elf): Likewise.
17939 (kfreebsd.aout): Likewise.
17940 (pc-chainloader.elf): Likewise.
17941 (pc-chainloader.bin): Likewise.
17942 (ntldr.elf): Likewise.
17943 (ntldr.bin): Likewise.
17944 (multiboot2.elf): Likewise.
17945 (kfreebsd.init.x86_64): Likewise.
17946 (kfreebsd.init.i386): Likewise.
17947 (knetbsd.init.i386): Likewise.
17948 (kopenbsd.init.i386): Likewise.
17949 (knetbsd.init.x86_64): Likewise.
17950 (kopenbsd.init.x86_64): Likewise.
17951 (linux-initramfs.i386): Likewise.
17952 (linux-initramfs.x86_64): Likewise.
17953 (kfreebsd-mfsroot.i386.img): Likewise.
17954 (knetbsd.image.i386): Likewise.
17955 (kopenbsd.image.i386): Likewise.
17956 (kopenbsd.image.x86_64): Likewise.
17957 (knetbsd.miniroot-image.i386.img): Likewise.
17958 (kfreebsd-mfsroot.x86_64.img): Likewise.
17959 (knetbsd.image.x86_64): Likewise.
17960 (knetbsd.miniroot-image.x86_64.img): Likewise.
17961 (kfreebsd-mfsroot.i386.gz): Likewise.
17962 (bootcheck-kfreebsd-i386): Likewise.
17963 (kfreebsd-mfsroot.x86_64.gz): Likewise.
17964 (bootcheck-kfreebsd-x86_64): Likewise.
17965 (knetbsd.miniroot-image.i386.gz): Likewise.
17966 (bootcheck-knetbsd-i386): Likewise.
17967 (bootcheck-kopenbsd-i386): Likewise.
17968 (bootcheck-kopenbsd-x86_64): Likewise.
17969 (knetbsd.miniroot-image.x86_64.gz): Likewise.
17970 (bootcheck-knetbsd-x86_64): Likewise.
17971 (bootcheck-linux-i386): Likewise.
17972 (bootcheck-linux-x86_64): Likewise.
17973 (bootcheck-linux16-i386): Likewise.
17974 (bootcheck-linux16-x86_64): Likewise.
17975 (bootcheck-multiboot): Likewise.
17976 (bootcheck-multiboot2): Likewise.
17977 (bootcheck-kfreebsd-aout): Likewise.
17978 (bootcheck-pc-chainloader): Likewise.
17979 (bootcheck-ntldr): Likewise.
17980 (CLEANFILES): Add new targets.
17981 (BOOTCHECKS): New variable.
17982 (.PHONY): Add bootchecks.
17983 (SUCCESSFUL_BOOT_STRING): New variable.
17984 (BOOTCHECK_TIMEOUT): Likewise.
17985 (bootcheck): New target
17986 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
17987 * configure.ac: Correct efiemu excuse.
17988 * docs/grub.texi (Supported kernels): New chapter.
17989 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
17990 include/grub/mm_private.h. Simplify inclusion of
17991 include/grub/boot.h, include/grub/loader.h
17992 and include/grub/msdos_partition.h
17993 (KERNEL_HEADER_FILES) [i386_coreboot]:
17994 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
17995 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
17996 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
17997 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
17998 include/grub/machine/loader.h.
17999 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
18000 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
18001 extra_dist.
18002 (pci.mod): Enable on i386-multiboot.
18003 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
18004 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
18005 i386-qemu.
18006 (relocator.mod): Rewritten.
18007 (aout.mod): Enable on all x86.
18008 (bsd.mod): Likewise.
18009 (ntldr.mod): New module.
18010 (linux.mod): Use loader/i386/linux.c on all x86.
18011 (xnu.mod): Enable on all x86.
18012 (vga_text.mod): disable on EFI and QEMU.
18013 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
18014 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
18015 * grub-core/efiemu/loadcore.c: Likewise.
18016 * grub-core/efiemu/main.c: Likewise.
18017 (grub_efiemu_exit_boot_services): Removed.
18018 (grub_efiemu_finish_boot_services): Likewise.
18019 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
18020 function.
18021 * grub-core/efiemu/i386/nocfgtables.c: New file.
18022 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
18023 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
18024 (grub_efi_finish_boot_services): Moved from here ...
18025 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
18026 Fille finish memory map and related data.
18027 (finish_mmap_buf): New variable.
18028 (grub_efi_uintn_t finish_mmap_size): Likewise.
18029 (grub_efi_uintn_t finish_key): Likewise.
18030 (grub_efi_uintn_t finish_desc_size): Likewise.
18031 (grub_efi_uint32_t finish_desc_version): Likewise.
18032 (grub_efi_is_finished): Likewise.
18033 (grub_efi_get_memory_map): Use saved memory map if EFI is already
18034 finished.
18035 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
18036 (grub_elf64_phdr_iterate): Likewise.
18037 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
18038 (grub_os_area_size): Likewise.
18039 (grub_machine_init): Don't reserve os area.
18040 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
18041 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
18042 * grub-core/kern/i386/loader.S: Removed.
18043 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
18044 (grub_os_area_size): Likewise.
18045 (grub_machine_init): Don't reserve os area.
18046 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
18047 Don't call grub_dl_unload_all.
18048 Don't include loader.S.
18049 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
18050 Declare the memory after _end as available.
18051 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
18052 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
18053 (GRUB_MM_ALLOC_MAGIC): Moved from here...
18054 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
18055 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
18056 * include/grub/mm_private.h (grub_mm_header): ... here.
18057 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
18058 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
18059 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
18060 (grub_mm_region): ..here. Removed addr. Added pre_size.
18061 All users updated.
18062 * grub-core/kern/mm.c (base): Renamed to ...
18063 (grub_mm_base): ... this. Made global.
18064 (grub_real_malloc): Alloc from end of region.
18065 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
18066 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
18067 * grub-core/kern/powerpc/cache_flush.S: ... here.
18068 * grub-core/lib/efi/relocator.c: New file.
18069 * grub-core/lib/i386/relocator.c: Rewritten.
18070 * grub-core/lib/i386/relocator16.S: New file.
18071 * grub-core/lib/i386/relocator32.S: Likewise.
18072 * grub-core/lib/i386/relocator64.S: Likewise.
18073 * grub-core/lib/i386/relocator_asm.S: Rewritten.
18074 * grub-core/lib/i386/relocator_common.S: New file.
18075 * grub-core/lib/ieee1275/relocator.c: Likewise.
18076 * grub-core/lib/mips/relocator.c: Rewritten.
18077 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
18078 stylistic adjustments.
18079 * grub-core/lib/powerpc/relocator.c: New file.
18080 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
18081 * grub-core/lib/relocator.c: Rewritten.
18082 * grub-core/lib/x86_64/relocator_asm.S: New file.
18083 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
18084 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
18085 (bsd_tag): New struct.
18086 (tags): New variable.
18087 (tags_last): Likewise.
18088 (netbsd_module): New struct.
18089 (netbsd_mods): New variable.
18090 (netbsd_mods_last): Likewise.
18091 (openbsd_opts): New parameter "serial".
18092 (OPENBSD_SERIAL_ARG): New definition.
18093 (netbsd_opts): New parameter "serial".
18094 (NETBSD_SERIAL_ARG): New definition.
18095 (grub_freebsd_add_meta): Reorganised into ...
18096 (grub_bsd_add_meta): ...this. All users updated.
18097 (grub_freebsd_add_mmap): Reorganised into ...
18098 (generate_e820_mmap): ...this...
18099 (grub_bsd_add_mmap): ...and this. All users updated.
18100 (grub_freebsd_list_modules): Use tags.
18101 (grub_netbsd_add_meta_module): New function.
18102 (grub_netbsd_list_modules): Likewise.
18103 (grub_freebsd_boot): Use relocator and finish EFI.
18104 (grub_openbsd_boot): Likewise.
18105 (grub_netbsd_setup_video): New function.
18106 (grub_netbsd_add_modules): Likewise.
18107 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
18108 and finish EFI.
18109 (grub_bsd_unload): Unload tags.
18110 (grub_bsd_load_aout): Use relocator.
18111 (grub_bsd_elf32_size_hook): New function.
18112 (grub_bsd_elf32_hook): Use relocator.
18113 (grub_bsd_elf64_size_hook): New function.
18114 (grub_bsd_elf64_hook): Use relocator.
18115 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
18116 (grub_bsd_load): Zero-out openbsd_ramdisk.
18117 (grub_bsd_load): Use relocator.
18118 (grub_cmd_openbsd): Support serial.
18119 (grub_cmd_netbsd): Support modules.
18120 (grub_cmd_freebsd_module): Use relocator.
18121 (grub_netbsd_module_load): New function.
18122 (grub_cmd_netbsd_module): Likewise.
18123 (grub_cmd_openbsd_ramdisk): Likewise.
18124 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
18125 kopenbsd_ramdisk.
18126 (GRUB_MOD_FINI): Unregister new commands.
18127 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
18128 (grub_freebsd_load_elfmodule_obj): Use relocator.
18129 (grub_freebsd_load_elfmodule): Likewise.
18130 (grub_freebsd_load_elf_meta): Likewise.
18131 (grub_netbsd_load_elf_meta): New function.
18132 (grub_openbsd_find_ramdisk): Likewise.
18133 * grub-core/loader/i386/bsd_helper.S: Removed.
18134 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
18135 * grub-core/loader/i386/bsd_trampoline.S: Removed.
18136 * grub-core/loader/i386/efi/linux.c: Likewise.
18137 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
18138 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
18139 (DEFAULT_VIDEO_MODE): Likewise.
18140 (real_mode_target): New variable.
18141 (prot_mode_target): Likewise.
18142 (initrd_mem_target): Likewise.
18143 (relocator): Likewise.
18144 (efi_mmap_buf): Likewise.
18145 (efi_mmap_size): Likewise.
18146 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
18147 (free_pages): Use relocator.
18148 (allocate_pages): Account for efi_mmap and use relocator. Return error.
18149 (grub_linux_setup_video): Return error.
18150 (grub_linux_trampoline_start): Removed.
18151 (grub_linux_trampoline_end): Likewise.
18152 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
18153 andd video parameters depending on firmware.
18154 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
18155 [GRUB_MACHINE_EFI]: Pass EFI parameters.
18156 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
18157 (grub_cmd_initrd): Use relocator.
18158 * grub-core/loader/i386/linux_trampoline.S: Removed.
18159 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
18160 (elf_sec_entsize): Likewise.
18161 (elf_sec_shstrndx): Likewise.
18162 (elf_sections): Likewise.
18163 (grub_multiboot_load): Use relocator.
18164 (grub_multiboot_get_mbi_size): Account for sections.
18165 (grub_multiboot_make_mbi): Use relocator and support sections.
18166 (grub_multiboot_add_elfsyms): New function.
18167 (grub_multiboot_free_mbi): Free sections.
18168 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
18169 (grub_linux_real_target): Likewise.
18170 (grub_linux_real_chunk): Likewise.
18171 (grub_linux16_prot_size): Likewise.
18172 (grub_linux16_boot): Use relocator.
18173 (grub_linux_unload): Unload relocator.
18174 (grub_cmd_linux): Use relocator.
18175 (grub_cmd_initrd): Likewise.
18176 * grub-core/loader/i386/pc/ntldr.c: New file.
18177 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
18178 Don't try to guess CPU frequency.
18179 (grub_xnu_set_video): Stretch bitmap.
18180 (grub_xnu_boot): Use relocator.
18181 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
18182 (grub_linux_unload): Free relocator.
18183 (grub_linux_load32): Use relocator.
18184 (grub_linux_load64): Likewise.
18185 (grub_cmd_initrd): Likewise.
18186 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
18187 (grub_multiboot_unload): Unload relocator.
18188 (grub_cmd_multiboot): Use relocator.
18189 (grub_cmd_module): Likewise.
18190 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
18191 Use relocator and support sections.
18192 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
18193 (elf_sec_entsize): Likewise.
18194 (elf_sec_shstrndx): Likewise.
18195 (elf_sections): Likewise.
18196 (grub_multiboot_load): Use relocator.
18197 (grub_multiboot_get_mbi_size): Account for sections.
18198 (grub_multiboot_make_mbi): Use relocator and support sections.
18199 (grub_multiboot_add_elfsyms): New function.
18200 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
18201 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
18202 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
18203 Prototype changed. All users updated.
18204 (grub_xnu_align_heap): Simplified.
18205 (grub_xnu_writetree_toheap): Likewise.
18206 (grub_xnu_unload): Unload relocator.
18207 (grub_cmd_xnu_kernel): Use relocator.
18208 (grub_cmd_xnu_kernel64): Likewise.
18209 (grub_xnu_register_memory): Simplified.
18210 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
18211 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
18212 EFI is finished.
18213 (grub_console_checkkey): Likewise.
18214 (grub_console_getkey): Likewise.
18215 (grub_console_getwh): Likewise.
18216 (grub_console_getxy): Likewise.
18217 (grub_console_gotoxy): Likewise.
18218 (grub_console_cls): Likewise.
18219 (grub_console_setcolorstate): Likewise.
18220 (grub_console_setcursor): Likewise.
18221 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
18222 * grub-core/tests/boot/kbsd.init-i386.S: New file.
18223 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
18224 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
18225 * grub-core/tests/boot/kernel-8086.S: Likewise.
18226 * grub-core/tests/boot/kernel-i386.S: Likewise.
18227 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
18228 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
18229 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
18230 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
18231 * grub-core/tests/boot/knetbsd.cfg: Likewise.
18232 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
18233 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
18234 * grub-core/tests/boot/linux.cfg: Likewise.
18235 * grub-core/tests/boot/linux.init-i386.S: Likewise.
18236 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
18237 * grub-core/tests/boot/linux16.cfg: Likewise.
18238 * grub-core/tests/boot/multiboot.cfg: Likewise.
18239 * grub-core/tests/boot/multiboot2.cfg: Likewise.
18240 * grub-core/tests/boot/ntldr.cfg: Likewise.
18241 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
18242 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
18243 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
18244 New definition.
18245 * include/grub/dl.h (grub_dl_unload_all): Removed.
18246 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
18247 (grub_efi_finish_boot_services): Change prototype.
18248 (grub_efi_is_finished): New variable.
18249 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
18250 Changed prototype.
18251 (grub_efiemu_finish_boot_services): Removed.
18252 (grub_machine_efiemu_init_tables): New prototype.
18253 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
18254 (grub_elf64_phdr_iterate): Likewise.
18255 * include/grub/i386/bsd.h: Include relocator.h.
18256 (freebsd_tag_header): New struct.
18257 (grub_openbsd_bios_mmap): Removed.
18258 (grub_unix_real_boot): Removed.
18259 (grub_freebsd_load_elfmodule32): Changed prototype.
18260 (grub_freebsd_load_elfmodule_obj64): Likewise.
18261 (grub_freebsd_load_elf_meta32): Likewise.
18262 (grub_freebsd_load_elf_meta64): Likewise.
18263 (grub_freebsd_add_meta): Removed.
18264 (grub_netbsd_load_elf_meta32): New prototype.
18265 (grub_netbsd_load_elf_meta64): Likewise.
18266 (grub_bsd_add_meta): Likewise.
18267 (grub_openbsd_ramdisk_descriptor): New struct.
18268 (grub_openbsd_find_ramdisk32): New prototype.
18269 (grub_openbsd_find_ramdisk64): Likewise.
18270 * include/grub/i386/coreboot/loader.h: Removed.
18271 * include/grub/i386/efi/loader.h: Likewise.
18272 * include/grub/i386/ieee1275/loader.h: Likewise.
18273 * include/grub/i386/linux.h (linux_kernel_header): Change void *
18274 to grub_uint32_t.
18275 * include/grub/i386/loader.h: Removed.
18276 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
18277 value.
18278 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
18279 (grub_phys_addr_t): New type.
18280 (grub_vtop): New inline function.
18281 (grub_map_memory): Likewise.
18282 (grub_unmap_memory): Likewise.
18283 * include/grub/i386/multiboot/loader.h: Removed.
18284 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
18285 (NETBSD_BTINFO_CONSOLE): New definition.
18286 (NETBSD_BTINFO_SYMTAB): Likewise.
18287 (NETBSD_BTINFO_MODULES): Likewise.
18288 (NETBSD_BTINFO_FRAMEBUF): Likewise.
18289 (grub_netbsd_bootinfo): New struct.
18290 (grub_netbsd_btinfo_common): Use explicit bitsize.
18291 (grub_netbsd_btinfo_mmap_entry): Removed.
18292 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
18293 (grub_netbsd_btinfo_bootdisk): New struct.
18294 (grub_netbsd_btinfo_symtab): Likewise.
18295 (grub_netbsd_btinfo_serial): Likewise.
18296 (grub_netbsd_btinfo_modules): Likewise.
18297 (grub_netbsd_btinfo_framebuf): Likewise.
18298 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
18299 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
18300 Likewise.
18301 (grub_openbsd_bootargs): Use explicit bitsize.
18302 (grub_openbsd_bootarg_console): New struct.
18303 (GRUB_OPENBSD_COM_MAJOR): New definition.
18304 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
18305 * include/grub/i386/pc/efiemu.h: Removed.
18306 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
18307 * include/grub/i386/qemu/loader.h: Removed.
18308 * include/grub/i386/relocator.h: Rewritten.
18309 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
18310 * include/grub/mips/memory.h: New file.
18311 * include/grub/mips/multiboot.h: Rewritten.
18312 * include/grub/mips/relocator.h: Rewritten.
18313 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
18314 (grub_vtop): New function.
18315 (grub_map_memory): Likewise.
18316 (grub_unmap_memory): Likewise.
18317 * include/grub/misc.h (ALIGN_DOWN): New definition.
18318 * include/grub/mm.h (grub_mm_check_real): New proto.
18319 (GRUB_MM_CHECK): New definition.
18320 * include/grub/mm_private.h: New file.
18321 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
18322 (grub_multiboot_get_mbi_size): Removed.
18323 (grub_multiboot_make_mbi): Change prottype.
18324 (grub_multiboot_set_accepts_video): New proto.
18325 (grub_multiboot_add_elfsyms): Likewise.
18326 (grub_multiboot_payload_eip): New variable.
18327 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
18328 New prototype.
18329 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
18330 New definition.
18331 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
18332 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
18333 * include/grub/powerpc/ieee1275/loader.h: Removed.
18334 * include/grub/powerpc/memory.h: New file.
18335 * include/grub/powerpc/relocator.h: Likewise.
18336 * include/grub/relocator.h: Likewise.
18337 * include/grub/relocator_private.h: Likewise.
18338 * include/grub/sparc64/ieee1275/loader.h: Removed.
18339 * include/grub/x86_64/memory.h: New file.
18340 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
18341 (grub_xnu_heap_malloc): Likewise.
18342 (grub_xnu_heap_real_start): Removed.
18343 (grub_xnu_heap_start): Likewise.
18344 (grub_xnu_relocator): New variable.
18345 (grub_xnu_heap_target_start): Likewise.
18346 * tests/util/grub-shell.in: Support non-pc.
18347 * util/grub-mkimage.c (image_targets): Fix multiboot target.
18348
18349 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18350
18351 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
18352 on malloc error.
18353 (grub_bidi_logical_to_visual): Check that malloc succeded.
18354 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
18355 puts.
18356 (grub_xputs_normal): Likewise.
18357
18358 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18359
18360 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
18361 extra_dist.
18362
18363 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18364
18365 * grub-core/efiemu/runtime/efiemu.sh: Removed.
18366
18367 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18368
18369 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
18370
18371 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18372
18373 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
18374 dprintf.
18375
18376 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
18377
18378 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
18379
18380 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18381
18382 * grub-core/normal/term.c (print_more): Fix a memory leak.
18383 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
18384 (grub_xputs_normal): Likewise.
18385
18386 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18387
18388 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
18389 the begining of the string
18390
18391 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18392
18393 * grub-core/script/script.c (grub_script_parse): Free parsed on
18394 failure.
18395
18396 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18397
18398 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
18399 on failure.
18400
18401 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18402
18403 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
18404 return.
18405
18406 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18407
18408 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
18409 (scroll_up): Fix a memory leak.
18410
18411 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18412
18413 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
18414 errors.
18415
18416 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
18417
18418 Handle USB pendrives exposed as floppies.
18419
18420 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
18421 floppy.
18422 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
18423 Check for partitions on all devices.
18424
18425 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18426
18427 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
18428 (readkey): Likewise.
18429
18430 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
18431
18432 Multiple variable names support to "export" command.
18433
18434 * normal/context.c (grub_cmd_export): "export" command supports
18435 multiple variable names.
18436
18437 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
18438
18439 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
18440 --target=drive output to Mach device name.
18441
18442 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18443
18444 New Automake based build system for GRUB.
18445
18446 * ABOUT-NLS: New file.
18447 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
18448 in Makefile.util.def file.
18449 * Makefile.util.def: New file. Autogen build definitions file for
18450 GRUB host utils.
18451 * conf/Makefile.common: New file. Common variables for GRUB host
18452 utils and target modules.
18453 * conf/Makefile.extra-dist: New file. Extra files for make dist.
18454 * docs/Makefile.am: New file. Automake file for docs.
18455 * gentpl.py: New file. Python script to generate Autogen
18456 template.
18457 * grub-core/Makefile.am: New file. GRUB target modules' rules
18458 that doesn't fit in Makefile.core.def file.
18459 * grub-core/Makefile.core.def: New file. Autogen build
18460 definitions file for GRUB target modules.
18461 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
18462 specific setjmp.S file.
18463 * po/Makefile.am: New file.
18464
18465 * .bzrignore: New ignores.
18466 * INSTALL: New requirements, without Ruby.
18467 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
18468 * autogen.sh: Updated to invoke autogen as necessary.
18469 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
18470 and defines for Automake conditionals.
18471 * geninit.sh: Refactoring.
18472
18473 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
18474 necessary.
18475 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
18476 New prototype.
18477
18478 * include/grub/test.h: Fix functional test modules' naming.
18479 * grub-core/tests/example_functional_test.c: Fix test module name.
18480
18481 * util/misc.c: Hosted versions' of grub functions for libgrub.a
18482 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
18483 * util/grub-editenv.c: Likewise.
18484 * util/grub-fstest.c: Likewise.
18485 * util/grub-mkdevicemap.c: Likewise.
18486 * util/grub-mkfont.c: Likewise.
18487 * util/grub-mkimage.c: Likewise.
18488 * util/grub-mkpasswd-pbkdf2.c: Likewise.
18489 * util/grub-probe.c: Likewise.
18490 * util/grub-script-check.c: Likewise.
18491 * util/i386/pc/grub-setup.c: Likewise.
18492 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18493
18494 * tests/util/grub-shell.in: Fix override directory path.
18495 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
18496 * util/import_gcry.py: Create Makefile.gcry.def file instead.
18497
18498 * util/lvm.c: Update #includes.
18499 * util/raid.c: Likewise.
18500 * util/resolve.c: Likewise.
18501 * grub-core/bus/emu/pci.c: Likewise.
18502 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
18503 * grub-core/lib/posix_wrap/string.h: Likewise.
18504 * grub-core/kern/emu/main.c: Likewise.
18505
18506 * grub-core/gensymlist.sh: New file. Script for generating kernel
18507 symbols file.
18508 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
18509
18510 * grub-core/gentrigtables.c: Fix unused variable warnings.
18511
18512 * Makefile.in: Removed.
18513 * conf/any-emu.rmk: Removed.
18514 * conf/common.rmk: Removed.
18515 * conf/i386-coreboot.rmk: Removed.
18516 * conf/i386-efi.rmk: Removed.
18517 * conf/i386-ieee1275.rmk: Removed.
18518 * conf/i386-multiboot.rmk: Removed.
18519 * conf/i386-pc.rmk: Removed.
18520 * conf/i386-qemu.rmk: Removed.
18521 * conf/i386.rmk: Removed.
18522 * conf/mips-yeeloong.rmk: Removed.
18523 * conf/mips.rmk: Removed.
18524 * conf/powerpc-ieee1275.rmk: Removed.
18525 * conf/sparc64-ieee1275.rmk: Removed.
18526 * conf/tests.rmk: Removed.
18527 * conf/x86-efi.rmk: Removed.
18528 * conf/x86_64-efi.rmk: Removed.
18529 * gendistlist.sh: Removed.
18530 * geninitheader.sh: Removed.
18531 * genkernsyms.sh.in: Removed.
18532 * genmk.rb: Removed.
18533 * gensymlist.sh.in: Removed.
18534 * mkinstalldirs: Removed.
18535 * boot: Moved ...
18536 * grub-core/boot: ... to here.
18537 * bus: Moved ...
18538 * grub-core/bus: ... to here.
18539 * commands: Moved ...
18540 * grub-core/commands: ... to here.
18541 * disk: Moved ...
18542 * grub-core/disk: ... to here.
18543 * efiemu: Moved ...
18544 * grub-core/efiemu: ... to here.
18545 * font: Moved ...
18546 * grub-core/font: ... to here.
18547 * fs: Moved ...
18548 * grub-core/fs: ... to here.
18549 * gencmdlist.sh: Moved ...
18550 * grub-core/gencmdlist.sh: ... to here.
18551 * genemuinit.sh: Moved ...
18552 * grub-core/genemuinit.sh: ... to here.
18553 * genemuinitheader.sh: Moved ...
18554 * grub-core/genemuinitheader.sh: ... to here.
18555 * genfslist.sh: Moved ...
18556 * grub-core/genfslist.sh: ... to here.
18557 * genhandlerlist.sh: Moved ...
18558 * grub-core/genhandlerlist.sh: ... to here.
18559 * genmoddep.awk: Moved ...
18560 * grub-core/genmoddep.awk: ... to here.
18561 * genmodsrc.sh: Moved ...
18562 * grub-core/genmodsrc.sh: ... to here.
18563 * genpartmaplist.sh: Moved ...
18564 * grub-core/genpartmaplist.sh: ... to here.
18565 * genparttoollist.sh: Moved ...
18566 * grub-core/genparttoollist.sh: ... to here.
18567 * genterminallist.sh: Moved ...
18568 * grub-core/genterminallist.sh: ... to here.
18569 * gentrigtables.c: Moved ...
18570 * grub-core/gentrigtables.c: ... to here.
18571 * genvideolist.sh: Moved ...
18572 * grub-core/genvideolist.sh: ... to here.
18573 * gettext: Moved ...
18574 * grub-core/gettext: ... to here.
18575 * gfxmenu: Moved ...
18576 * grub-core/gfxmenu: ... to here.
18577 * gnulib: Moved ...
18578 * grub-core/gnulib: ... to here.
18579 * hello: Moved ...
18580 * grub-core/hello: ... to here.
18581 * hook: Moved ...
18582 * grub-core/hook: ... to here.
18583 * io: Moved ...
18584 * grub-core/io: ... to here.
18585 * kern: Moved ...
18586 * grub-core/kern: ... to here.
18587 * lib: Moved ...
18588 * grub-core/lib: ... to here.
18589 * loader: Moved ...
18590 * grub-core/loader: ... to here.
18591 * mmap: Moved ...
18592 * grub-core/mmap: ... to here.
18593 * normal: Moved ...
18594 * grub-core/normal: ... to here.
18595 * partmap: Moved ...
18596 * grub-core/partmap: ... to here.
18597 * parttool: Moved ...
18598 * grub-core/parttool: ... to here.
18599 * script: Moved ...
18600 * grub-core/script: ... to here.
18601 * term: Moved ...
18602 * grub-core/term: ... to here
18603 * tests/example_functional_test.c: Moved ...
18604 * grub-core/tests/example_functional_test.c: ... to here.
18605 * tests/lib/functional_test.c: Moved ...
18606 * grub-core/tests/lib/functional_test.c: ... to here.
18607 * tests/lib/test.c: Moved ...
18608 * grub-core/tests/lib/test.c: ... to here.
18609 * video: Moved ...
18610 * grub-core/video: ... to here.
18611
18612 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18613
18614 Replace --enable-grub-emu-modules with grub-emu-lite.
18615
18616 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
18617 cache.S.
18618
18619 * include/grub/emu/misc.h (grub_emu_init): New prototype.
18620 * kern/emu/full.c: New file. For grub-emu specific initialization.
18621 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
18622 * kern/emu/main.c: Call initialization function grub_emu_init.
18623
18624 * Makefile.in: Include grub-emu-lite in install.
18625 * commands/parttool.c: Use grub_no_autoload to differentiate
18626 between grub-emu and grub-emu-lite.
18627 * include/grub/misc.h: New variable grub_no_autoload.
18628
18629 * conf/any-emu.rmk: New rules for grub-emu-lite.
18630 * configure.ac: Remove --enable-grub-emu-modules.
18631 * genmk.rb: Cleanup unnecessary rules.
18632 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
18633
18634 * normal/main.c: Don't load list files on grub-emu-lite.
18635 * util/misc.c (grub_arch_sync_caches): Removed.
18636
18637 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
18638
18639 * kern/mips/startup.S (grub_prefix): Update comment to refer to
18640 grub-mkimage rather than grub-mkelfimage.
18641 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
18642
18643 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
18644
18645 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
18646 a key after CapsLock or NumLock. It's just a qemu bug.
18647
18648 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18649
18650 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
18651 needed by libusb wrapper.
18652
18653 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18654
18655 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
18656
18657 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18658
18659 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
18660 --nounzip is passed.
18661
18662 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
18663
18664 USB hotunplugging and USB serial support.
18665
18666 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
18667 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
18668 (grub_uhci_transfer): Respect timeout and set *actual.
18669 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
18670 non-standard length.
18671 (grub_usb_device_attach): Autoload modules.
18672 (GRUB_MOD_INIT): Set grub_term_poll_usb.
18673 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
18674 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
18675 users updated.
18676 (grub_usb_add_hub): Fill nports and children.
18677 (attach_root_port): Receive hub instead of controller.
18678 All users updated. Fill hub->devices.
18679 (grub_usb_root_hub): Allocate hub->devices.
18680 (detach_device): New function.
18681 (poll_nonroot_hub): Fill children and detach devices.
18682 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
18683 actual arguments. All users updated.
18684 (grub_usb_bulk_read_extended): New function.
18685 * bus/usb/serial/common.c: New file.
18686 * bus/usb/serial/ftdi.c: Likewise.
18687 * bus/usb/serial/pl2303.c: Likewise.
18688 * commands/terminal.c (handle_command): Support wildcard.
18689 * commands/usbtest.c: Output "Unknown" instead of empty string.
18690 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
18691 (usbserial_common_mod_SOURCES): New variable.
18692 (usbserial_common_mod_CFLAGS): Likewise.
18693 (usbserial_common_mod_LDFLAGS): Likewise.
18694 (pkglib_MODULES): Add usbserial_pl2303.mod.
18695 (usbserial_pl2303_mod_SOURCES): New variable.
18696 (usbserial_pl2303_mod_CFLAGS): Likewise.
18697 (usbserial_pl2303_mod_LDFLAGS): Likewise.
18698 (pkglib_MODULES): Add usbserial_ftdi.mod.
18699 (usbserial_ftdi_mod_SOURCES): New variable.
18700 (usbserial_ftdi_mod_CFLAGS): Likewise.
18701 (usbserial_ftdi_mod_LDFLAGS): Likewise.
18702 (pkglib_MODULES): Add serial.mod.
18703 (serial_mod_SOURCES): New variable.
18704 (serial_mod_CFLAGS): Likewise.
18705 (serial_mod_LDFLAGS): Likewise.
18706 * conf/i386-pc.rmk: Likewise.
18707 * conf/mips-yeeloong.rmk: Likewise.
18708 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
18709 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
18710 * disk/usbms.c (first_available_slot): New variable.
18711 (grub_usbms_attach): Don't reuse free slots due to potential cache
18712 problems.
18713 * include/grub/serial.h: Moved to ..
18714 * include/grub/ns8250.h: ...this.
18715 * include/grub/serial.h: New file.
18716 * include/grub/term.h (grub_term_poll_usb): New variable.
18717 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
18718 readkey. All users updated.
18719 (grub_terminfo_output_state): Pass term to put.
18720 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
18721 (grub_usb_controller_dev): Add timeout and actual arguments to
18722 transfer. All users updated.
18723 (grub_usb_interface): New field detach_data.
18724 (grub_usb_device): New fields children and nports.
18725 (grub_usb_ep_type_t): New type.
18726 (grub_usb_get_ep_type): New function.
18727 (grub_usb_bulk_read_extended): Likewise.
18728 * include/grub/usbdesc.h (grub_usb_desc): New type.
18729 * include/grub/usbserial.h: New file.
18730 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
18731 * kern/term.c (grub_term_poll_usb): New variable.
18732 (grub_getkey): Call grub_term_poll_usb if set.
18733 (grub_checkkey): Likewise.
18734 (grub_getkeystatus): Likewise.
18735 * term/serial.c: Moved controller-specific parts to ...
18736 * term/ns8250.c: ... here.
18737 * term/serial.c: Mostly rewritten.
18738 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
18739 according to spec.
18740
18741 2010-08-20 Robert Millan <rmh@gnu.org>
18742
18743 Make kFreeBSD code more generic to support ext2fs as root, ufs as
18744 a separate module and maybe other interesting combinations.
18745
18746 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
18747 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
18748 (kfreebsd_entry): Add generic filesystem module load routine.
18749 Map GRUB `ext2' to kFreeBSD `ext2fs'.
18750
18751 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18752
18753 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
18754 "numcenter" (I misunderstood the purpose of this entry).
18755 * docs/grub.texi (sendkey): Likewise.
18756
18757 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18758
18759 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
18760 status flag options; simply omitting the option is equivalent and
18761 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
18762 (keysym_table): Rename "num5numlock" to "numlock".
18763 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
18764 can uniformly say that only the last of multiple `sendkey'
18765 invocations has any effect.
18766 * docs/grub.texi (sendkey): New section.
18767
18768 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
18769
18770 * commands/i386/pc/sendkey.c (options): Fix three typos.
18771
18772 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18773
18774 Implement sendkey support.
18775
18776 * commands/i386/pc/sendkey.c: New file.
18777 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
18778 (sendkey_mod_SOURCES): New variable.
18779 (sendkey_mod_CFLAGS): Likewise.
18780 (sendkey_mod_LDFLAGS): Likewise.
18781
18782 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18783
18784 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
18785 fix warnings from Autoconf.
18786
18787 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18788
18789 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
18790 to avoid false positives with some assemblers that output things
18791 like "someprefix_func" as part of their output.
18792
18793 2010-08-15 Robert Millan <rmh@gnu.org>
18794
18795 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
18796 errors.
18797 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
18798 grub_get_libzfs_handle() errors.
18799
18800 2010-08-14 Robert Millan <rmh@gnu.org>
18801
18802 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
18803 filesystem is not ZFS.
18804
18805 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18806
18807 Fix for misspelled color names defaulting to black/black (bug
18808 reported by Doug Nazar)
18809
18810 * include/grub/normal.h (grub_parse_color_name_pair): Add return
18811 status to prototype.
18812 * normal/color.c (grub_parse_color_name_pair): Return failure
18813 status.
18814 (grub_env_write_color_normal): Ignore bad color names.
18815 (grub_env_write_color_highlight): Likewise.
18816 * normal/main.c (GRUB_MOD_INIT): Set default color names.
18817
18818 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18819
18820 "shift" command support to GRUB script.
18821
18822 * include/grub/script_sh.h (grub_script_shift): New prototype.
18823 * script/execute.c (grub_script_shift): New function.
18824 * script/main.c (grub_script_init): Register shift command.
18825 (grub_script_fini): Unregister shift command.
18826 * util/grub-script-check.c (grub_script_cmd_shift): New function.
18827
18828 * tests/grub_script_shift.in: New testcase.
18829 * conf/tests.rmk: Rules for new testcase.
18830
18831 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18832
18833 "continue" command support to GRUB script.
18834
18835 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
18836 (grub_script_break): Continue support.
18837 * script/main.c (grub_script_init): Register continue command.
18838 (grub_script_fini): Unregister continue command.
18839
18840 * tests/grub_script_continue.in: New testcase.
18841 * conf/tests.rmk: Rules for new testcase.
18842
18843 2010-08-12 BVK Chaitanya <bvk@dbook>
18844
18845 "break" command support to GRUB script.
18846
18847 * conf/common.rmk: Rule updates to grub-script-check.
18848 * include/grub/misc.h (grub_min): New function.
18849 * include/grub/script_sh.h (grub_script_init): New prototype.
18850 (grub_script_fini): New prototype.
18851 (grub_script_break): New prototype.
18852 * script/main.c (grub_script_init): New function.
18853 (grub_script_fini): New function.
18854 * script/execute.c (grub_script_break): New function.
18855 * normal/main.c: Calls to grub_script_{init,fini}.
18856 * util/grub-script-check.c (grub_script_break): New function.
18857
18858 * tests/grub_script_break.in: New testcase.
18859 * conf/tests.rmk: Rules for new test case.
18860
18861 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18862
18863 Function parameters support to GRUB script.
18864
18865 * script/yylex.l (VARIABLE): Regular expression update.
18866 * script/function.c (grub_script_function_call): Moved ...
18867 * script/execute.c (grub_script_function_call): ... to here.
18868 (grub_script_execute_arglist_to_argv): Removed.
18869 (grub_script_arglist_to_argv): New function.
18870 * script/argv.c: New file.
18871 (grub_script_argv_free): New function.
18872 (grub_script_argv_next): Likewise.
18873 (grub_script_argv_append): Likewise.
18874 (grub_script_argv_split_append): Likewise.
18875 * include/grub/script_sh.h (grub_script_argv): New struct.
18876 (grub_script_argv_free): New function.
18877 (grub_script_argv_next): Likewise.
18878 (grub_script_argv_append): Likewise.
18879 (grub_script_argv_split_append): Likewise.
18880
18881 * conf/common.rmk (normal.mod): New source script/argv.c.
18882
18883 * tests/grub_script_echo1.in: More tests.
18884 * tests/grub_script_vars1.in: Likewise.
18885 * tests/grub_script_functions.in: New test case.
18886 * conf/tests.rmk: Rules for new testcase.
18887
18888 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18889
18890 Remove grub_script_cmdblock struct.
18891
18892 * include/grub/script_sh.h: Remove grub_script_cmdblock.
18893 * script/parser.y: Likewise.
18894 * script/execute.c: Rename cmdblock suffix to cmdlist.
18895 * script/script.c: Likewise.
18896 * util/grub-script-check.c: Likewise.
18897
18898 2010-08-11 Yves Blusseau <blusseau@zetam.org>
18899
18900 * .bzrignore: add grub-macho2img
18901
18902 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18903
18904 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
18905
18906 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18907
18908 Remove the dump of sm712 initialisation sequence.
18909
18910 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
18911 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
18912 (GRUB_VGA_IO_MISC_WRITE): Likewise.
18913 (GRUB_VGA_CR_*): Added many registers.
18914 (GRUB_VGA_SR_*): Likewise.
18915 (GRUB_VGA_GR_*): Likewise.
18916 (grub_vga_write_arx): New function.
18917 (grub_video_hw_config): New struct.
18918 (grub_vga_set_geometry): New function.
18919 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
18920 GRUB_PCI_CLASS_SUBCLASS_VGA.
18921 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
18922 * video/sm712.c (grub_sm712_write_reg): New function
18923 (grub_sm712_read_reg): Likewise.
18924 (grub_sm712_sr_write): Likewise.
18925 (grub_sm712_gr_write): Likewise.
18926 (grub_sm712_cr_write): Likewise.
18927 (grub_sm712_write_arx): Likewise.
18928 (grub_sm712_cr_shadow_write): Likewise.
18929 (grub_sm712_write_dda_lookup): Likewise.
18930 (grub_video_sm712_setup): Initialise the video rather then
18931 blindly replay the dump.
18932 (main) [TEST]: Add a routine to be able to compile as standalone for
18933 tests.
18934 * video/sm712_init.c (sm712_init): Removed.
18935 (sm712_sr_seq1): New array.
18936 (sm712_sr_seq2): Likewise.
18937
18938 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18939
18940 * include/grub/vga.h: Add missing grub/pci.h include.
18941
18942 2010-08-10 Yves Blusseau <blusseau@zetam.org>
18943
18944 * util/grub-macho2img.c (main): fix typo
18945
18946 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18947
18948 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
18949 (grub_vga_gr_read): Likewise.
18950 (grub_vga_cr_write): Likewise.
18951 (grub_vga_cr_read): Likewise.
18952 (grub_vga_sr_write): Likewise.
18953 (grub_vga_sr_read): Likewise.
18954 (grub_vga_palette_read): Likewise.
18955 (grub_vga_palette_write): Likewise.
18956 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
18957 (grub_sm712_sr_read): New function.
18958 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
18959 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
18960
18961 2010-08-09 Robert Millan <rmh@gnu.org>
18962
18963 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
18964 out unused variables on non-ZFS build.
18965
18966 2010-08-08 Robert Millan <rmh@gnu.org>
18967
18968 Fix path generation for sub-filesystems in ZFS.
18969
18970 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
18971 missing slash.
18972
18973 2010-08-08 Robert Millan <rmh@gnu.org>
18974
18975 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
18976
18977 2010-08-08 Robert Millan <rmh@gnu.org>
18978
18979 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
18980 exist, issue a proper error message (rely on `ls' for translated
18981 strings).
18982
18983 2010-08-08 Robert Millan <rmh@gnu.org>
18984
18985 Fix grub-probe invocation.
18986
18987 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
18988
18989 2010-08-04 Robert Millan <rmh@gnu.org>
18990
18991 * configure.ac: Remove checks for getfsstat() and getmntany().
18992 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
18993 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
18994 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
18995 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
18996 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
18997 function.
18998 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
18999 via find_mount_point_from_dir() and getfsstat() / getmntany().
19000
19001 2010-08-04 Robert Millan <rmh@gnu.org>
19002
19003 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19004 (grub_find_zpool_from_mount_point): Merge into ...
19005 (grub_find_zpool_from_dir): ... this.
19006 * kern/emu/misc.c: Likewise.
19007
19008 * kern/emu/misc.c
19009 (grub_make_system_path_relative_to_its_root): Replace
19010 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
19011 with grub_find_zpool_from_dir().
19012 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
19013
19014 2010-08-04 Robert Millan <rmh@gnu.org>
19015
19016 Support OpenSolaris in ZFS device resolution.
19017
19018 * configure.ac: Check for getmntany().
19019 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
19020 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
19021 support.
19022
19023 2010-08-03 Robert Millan <rmh@gnu.org>
19024
19025 Fix grub-emu build.
19026
19027 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
19028 * include/grub/emu/misc.h: ... here.
19029
19030 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
19031 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
19032
19033 * util/misc.c: Remove `<grub/util/libzfs.h>'.
19034 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
19035 (grub_get_libzfs_handle): Move to ...
19036 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
19037 (grub_get_libzfs_handle): ... here.
19038
19039 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
19040
19041 * script/execute.c (grub_script_execute_cmdline): Check for NULL
19042 as command name case.
19043
19044 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
19045
19046 * disk/raid.c (insert_array): Select unique numbers for named arrays
19047 as well, for use as keys in the disk cache.
19048
19049 2010-08-01 Robert Millan <rmh@gnu.org>
19050
19051 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
19052 kFreeBSD device name, except on ZFS where the filesystem label is
19053 used.
19054 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
19055 `/boot/zfs/zpool.cache'.
19056 Set mountfrom kernel variable using ${kfreebsd_device}.
19057
19058 2010-08-01 Robert Millan <rmh@gnu.org>
19059
19060 Make it even harder to use uninitialized `libzfs_handle' (and
19061 make the interface a bit simpler).
19062
19063 * include/grub/util/misc.h (grub_util_init_libzfs)
19064 (libzfs_handle): Remove.
19065 (grub_get_libzfs_handle): New prototype.
19066
19067 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
19068 attribute.
19069 (grub_util_init_libzfs): Remove.
19070 (grub_get_libzfs_handle): New function.
19071
19072 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
19073 grub_get_libzfs_handle() to obtain a libzfs handle instead of
19074 accessing `libzfs_handle' directly.
19075
19076 2010-08-01 Robert Millan <rmh@gnu.org>
19077
19078 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19079 (grub_find_zpool_from_mount_point): New function prototypes.
19080
19081 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19082 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19083
19084 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19085 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19086 `static' attribute.
19087
19088 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19089 finding zpool from mount point into ...
19090 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19091
19092 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19093 requested path is part of a ZFS pool, use
19094 grub_find_zpool_from_mount_point() to detect its filesystem name,
19095 and generate a path with `/fsname@path' syntax.
19096
19097 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19098
19099 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
19100 (void) rather than () so that this is a proper prototype.
19101
19102 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19103
19104 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
19105
19106 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19107
19108 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
19109 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
19110
19111 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19112
19113 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
19114
19115 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19116
19117 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
19118
19119 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19120
19121 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
19122 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
19123 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
19124 disable gfxpayload.
19125 (Shell-like scripting): Add real content.
19126 (Serial terminal): Suggest `terminal_input serial; terminal_output
19127 serial' rather than putting the two commands on separate lines,
19128 since console input will be inoperative after the first command.
19129 (menuentry): Document --class, --users, and --hotkey options.
19130 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
19131 Vladimir Serbinenko).
19132
19133 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19134 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19135
19136 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
19137
19138 2010-08-01 Robert Millan <rmh@gnu.org>
19139
19140 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19141 (grub_find_zpool_from_mount_point): New function prototypes.
19142
19143 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19144 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19145
19146 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19147 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19148 `static' attribute.
19149
19150 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19151 finding zpool from mount point into ...
19152 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19153
19154 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19155 requested path is part of a ZFS pool, use
19156 grub_find_zpool_from_mount_point() to detect its filesystem name,
19157 and generate a path with `/fsname@path' syntax.
19158
19159 2010-08-01 Robert Millan <rmh@gnu.org>
19160
19161 Prevent accidental use of uninitialized libzfs_handle.
19162
19163 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
19164 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
19165 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
19166
19167 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19168
19169 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
19170 util/grub.d/10_linux.in). Fixes Debian bug #591093.
19171
19172 2010-08-01 Robert Millan <rmh@gnu.org>
19173
19174 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
19175
19176 2010-07-31 Robert Millan <rmh@gnu.org>
19177
19178 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
19179
19180 2010-07-31 Robert Millan <rmh@gnu.org>
19181
19182 * kern/emu/misc.c: Add missing license header.
19183
19184 2010-07-31 Robert Millan <rmh@gnu.org>
19185
19186 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
19187
19188 * include/grub/util/libnvpair.h: Include `<config.h>'.
19189 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
19190 declaring libnvpair prototypes ourselves.
19191 * include/grub/util/libzfs.h: Include `<config.h>'.
19192 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
19193 declaring libzfs prototypes ourselves.
19194
19195 (libzfs_handle): Moved to ...
19196 * include/grub/util/misc.h (libzfs_handle): ... here.
19197 Include `<grub/util/libzfs.h>'.
19198
19199 2010-07-30 Robert Millan <rmh@gnu.org>
19200
19201 * include/grub/emu/misc.h: Add missing license header.
19202
19203 2010-07-30 Robert Millan <rmh@gnu.org>
19204
19205 Enable `grub-probe -t device' resolution on ZFS.
19206
19207 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
19208 * include/grub/util/libnvpair.h: New file.
19209 * include/grub/util/libzfs.h: New file.
19210
19211 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
19212 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
19213 `<grub/util/libnvpair.h>'.
19214 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
19215
19216 (find_mount_point_from_dir): New static function.
19217 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
19218 function.
19219 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
19220 find_root_device_from_libzfs() before ressorting to find_root_device().
19221
19222 * include/grub/util/misc.h (grub_util_init_libzfs): New function
19223 prototype.
19224 * util/misc.c: Include `<grub/util/libzfs.h>'.
19225 (grub_util_init_libzfs): New function.
19226 [HAVE_LIBZFS] (libzfs_handle): New global variable.
19227 [HAVE_LIBZFS] (fini_libzfs): New static function.
19228 (grub_util_init_libzfs): New function.
19229 * util/grub-probe.c (main): Call grub_util_init_libzfs().
19230
19231 2010-07-30 Robert Millan <rmh@gnu.org>
19232
19233 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
19234 (xmalloc, xrealloc, xstrdup, xasprintf): Add
19235 `warn_unused_result' attribute.
19236 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
19237 (grub_xasprintf, grub_xvasprintf): Likewise.
19238 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
19239
19240 2010-07-29 Robert Millan <rmh@gnu.org>
19241
19242 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
19243 (probe): Handle `PRINT_FS_LABEL'.
19244 (main): Handle `-t fs_label'.
19245
19246 2010-07-29 Robert Millan <rmh@gnu.org>
19247
19248 * configure.ac: Remove grub-mkisofs checks.
19249
19250 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
19251
19252 * util/ieee1275/grub-install.in: Don't use empty grub_device.
19253 Reported by: Lennart Sorensen.
19254
19255 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19256
19257 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
19258 prior to terminal_input/terminal_output separation. It's been over 1.5
19259 years and those versions weren't widely deployed.
19260
19261 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
19262
19263 * disk/raid.c (insert_array): Don't count named arrays when looking
19264 for unused array numbers.
19265 Reported and tested by: Michael Guntsche.
19266
19267 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19268
19269 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
19270 implementation of this so that grub-emu links again, with a note
19271 that this should support hotplugging in the future.
19272
19273 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19274
19275 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
19276
19277 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19278
19279 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
19280 handle on failure.
19281 (grub_loopback_close): Remove empty function.
19282 (grub_loopback_dev): Remove close method.
19283
19284 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19285
19286 Disable EFI cursor when the EFI console becomes inactive.
19287
19288 * term/efi/console.c (grub_efi_console_init): New function.
19289 (grub_efi_console_fini): New function.
19290 (grub_console_term_output): Register init and fini methods.
19291
19292 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19293
19294 * tests/util/grub-shell-tester.in: Remove bashism and declare as
19295 sh script.
19296
19297 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19298
19299 * disk/loopback.c (grub_loopback): Replace filename with file.
19300 (delete_loopback): Handle new semantics.
19301 (grub_cmd_loopback): Likewise.
19302 (grub_loopback_iterate): Likewise.
19303 (grub_loopback_close): Likewise.
19304
19305 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19306
19307 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
19308 with -p "".
19309 Reported by: Tito Keitel.
19310
19311 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19312
19313 * docs/grub.texi (Naming convention): Document new naming convention.
19314
19315 2010-07-20 Vadim Solomin <vadic052@gmail.com>
19316 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19317
19318 Generate device.map in something closer to the old ordering.
19319
19320 * util/deviceiter.c (struct device): New declaration.
19321 (compare_file_names): Rename to ...
19322 (compare_devices): ... this. Sort by kernel name in preference to
19323 the stable by-id name, but keep the latter as a fallback comparison.
19324 Update header comment.
19325 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
19326 of `struct device' rather than of plain file names.
19327
19328 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
19329
19330 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
19331 on i386.
19332
19333 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19334
19335 * commands/acpi.c (setup_common_tables): Use sizeof instead of
19336 hardcoding size.
19337 (setv1table): Likewise.
19338
19339 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19340
19341 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
19342 removing the homehost if present.
19343 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
19344 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
19345 removing the homehost if present.
19346 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
19347 if possible.
19348 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
19349
19350 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
19351 parameter. Set its pointer target to 0.
19352 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
19353 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
19354 `data_offset' value from the superblock for 1.x metadata.
19355 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
19356 data on the device.
19357 (insert_array): Record the start sector of data on the device.
19358 (grub_raid_register): Pass start_sector parameters to
19359 grub_raid_list->detect and insert_array.
19360 * include/grub/raid.h (struct grub_raid_array): Add start_sector
19361 member.
19362 (struct grub_raid): Add start_sector parameter to `detect'.
19363
19364 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
19365 __attribute__ ((packed)), leaving a comment.
19366 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
19367 (grub_mdraid_detect_09): ... here and ...
19368 (grub_mdraid_detect_1x): ... here.
19369
19370 2010-07-20 Peter Henn <peter.henn@web.de>
19371
19372 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
19373 chunk size and disk size, which are already given as sector counts
19374 as distinct from the 0.90 units. Fetch the correct device number
19375 from the role table instead of using the table index.
19376
19377 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
19378
19379 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
19380 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
19381 (WriteMostly1): New macro.
19382 Set array->name to NULL for metadata format 0.90. Add support for
19383 metadata 1.x. Fix some comments.
19384 * disk/raid.c (): Add support for name based RAID arrays. Fix a
19385 few comments.
19386 * util/getroot.c (grub_util_get_grub_dev): Add support for
19387 /dev/md/name style devices.
19388
19389 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19390
19391 * .bzrignore: Ignore 20_linux_xen.
19392
19393 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
19394
19395 * util/import_unicode.py: Remove unnecessary imports.
19396
19397 2010-07-17 Aleš Nesrsta <starous@volny.cz>
19398
19399 Hotplugging and USB hub support.
19400
19401 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
19402 (grub_ohci): Likewise.
19403 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
19404 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
19405 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
19406 (GRUB_OHCI_CTRL_EDS): Likewise.
19407 (GRUB_OHCI_BULK_EDS): Likewise.
19408 (GRUB_OHCI_TDS): Likewise.
19409 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
19410 (grub_ohci_ed_phys2virt): New function.
19411 (grub_ohci_virt_to_phys): Likewise.
19412 (grub_ohci_td_phys2virt): Likewise.
19413 (grub_ohci_td_virt2phys): Likewise.
19414 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
19415 attachment.
19416 (grub_ohci_find_ed): New function.
19417 (grub_ohci_alloc_td): Likewise.
19418 (grub_ohci_free_td): Likewise.
19419 (grub_ohci_free_tds): Likewise.
19420 (grub_ohci_transfer): Use previously allocated memory.
19421 (grub_ohci_portstatus): Reset status changed bit.
19422 (grub_ohci_detect_dev): Supply status changed.
19423 (grub_ohci_fini_hw): Free memory.
19424 (grub_ohci_restore_hw): Reallocate memory.
19425 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
19426 Reset status change.
19427 (grub_uhci_detect_dev): Supply status_change.
19428 * bus/usb/usb.c (attach_hooks): New var.
19429 (grub_usb_device_attach): New function.
19430 (grub_usb_register_attach_hook_class): Likewise.
19431 (grub_usb_unregister_attach_hook_class): Likewise.
19432 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
19433 (grub_usb_add_hub): Reset connection changed bit.
19434 (attach_root_port): New function.
19435 (grub_usb_root_hub): Likewise.
19436 (poll_nonroot_hub): Likewise.
19437 (grub_usb_poll_devices): Likewise.
19438 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
19439 * disk/usbms.c (grub_usbms_open): Use device hooks.
19440 (grub_usbms_iterate) :Poll devices.
19441 (grub_usbms_finddevs): Split into ...
19442 (grub_usbms_attach): ... this ...
19443 (grub_usbms_attach): ... and this.
19444 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
19445 in detect_dev.
19446 (grub_usb_interface): New fields attached and detach_hook.
19447 (grub_usb_attach_hook_class): New type.
19448 (grub_usb_attach_desc): New struct.
19449 (grub_usb_register_attach_hook_class): New function.
19450 (grub_usb_unregister_attach_hook_class): Likewise.
19451 (grub_usb_poll_devices): Likewise.
19452 (grub_usb_device_attach): Likewise.
19453 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
19454 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
19455
19456 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19457
19458 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
19459 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
19460 delta determination style. Works with most NetBSD partitions too.
19461
19462 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19463
19464 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
19465 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
19466
19467 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19468
19469 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
19470
19471 2010-07-14 Anton Blanchard <anton@samba.org>
19472
19473 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
19474 ET_DYN files.
19475
19476 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19477
19478 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
19479
19480 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19481
19482 * kern/partition.c (grub_partition_check_containment): New function to
19483 check that a partition is physically contained in a parent. Since
19484 offsets are relative (and non-negative), this reduces to checking that
19485 the partition ends before its parent.
19486 (grub_partition_map_probe): Discard out-of-range sub-partitions.
19487 (grub_partition_iterate): Likewise.
19488 * include/grub/partition.h (grub_partition_map): Slightly more detailed
19489 comments.
19490 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
19491 partitions that start before their parent, and add debug printfs.
19492
19493 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19494
19495 * Makefile.in (.SUFFIX): Spell correctly, as ...
19496 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
19497 bare module name without `.mod', e.g. `test') tried to invoke a
19498 Modula-2 compiler.
19499
19500 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19501
19502 * README: Point to the Info manual.
19503
19504 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
19505
19506 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
19507 2nd superblock position from partition size.
19508
19509 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
19510
19511 * Makefile.in (MAINTAINER_CLEANFILES): Remove
19512 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
19513 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
19514 outputs.
19515
19516 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19517
19518 Restructure SCSI .id handling.
19519 Reported and tested by: Aleš Nesrsta.
19520
19521 * disk/ata.c (grub_atapi_close): Removed. All users updated.
19522 (grub_atapi_dev): Changed .name to "ata". New field .id.
19523 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
19524 (grub_usbms_dev): New field .id.
19525 * disk/scsi.c (grub_scsi_iterate): Generate name.
19526 (grub_scsi_open): Parse name.
19527 * include/grub/scsi.h (grub_make_scsi_id): New function.
19528 (grub_scsi_dev): Change iterate and open to number instead of naming
19529 busses. All users updated.
19530 (grub_scsi): Remove name. Add .bus.
19531
19532 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19533
19534 * commands/help.c (grub_cmd_help): Fix a typo.
19535
19536 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19537
19538 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
19539 Reported and tested by: Colin Watson.
19540
19541 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19542
19543 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
19544 in this context.
19545
19546 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
19547
19548 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
19549
19550 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
19551
19552 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
19553 indentation.
19554
19555 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19556
19557 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
19558 and disk/raid6_recover.c.
19559 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19560 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
19561
19562 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19563
19564 * term/gfxterm.c (repaint_schedulded): Rename to ...
19565 (repaint_scheduled): ... this. Update all callers.
19566 (repaint_was_schedulded): Rename to ...
19567 (repaint_was_scheduled): ... this. Update all callers.
19568
19569 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19570
19571 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
19572 which we expect to be handled by upper layers.
19573
19574 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
19575
19576 * bus/usb/usbhub.c: #include time.h header.
19577
19578 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19579
19580 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
19581 entry_name also for entries without stat blocks (e.g. ".."); fixes
19582 corruption of the first entry in a directory.
19583
19584 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19585
19586 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
19587 after setting gfxterm as the active terminal. GRUB_BACKGROUND
19588 doesn't work otherwise.
19589
19590 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19591
19592 * docs/grub.texi (Features): Update list of supported file systems.
19593 (GNU/Linux): Update for GRUB 2.
19594 (Serial terminal): Remove mention of --disable-serial, which was a
19595 GRUB Legacy configure option. Update instructions to use
19596 `terminal_input' and `terminal_output' rather than `terminal'.
19597 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
19598 configuration' and `Installing GRUB using grub-install'.
19599 (Menu entry editor): Update for GRUB 2.
19600 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
19601 Document new -a, -u, and -v options.
19602 (initrd): New section.
19603 (initrd16): New section.
19604 (linux): New section.
19605 (linux16): New section.
19606 (search): The `var' argument to `--set' is optional.
19607 (GRUB only offers a rescue shell): Go into a little more detail on
19608 drive ordering.
19609
19610 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19611
19612 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
19613
19614 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19615
19616 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
19617 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
19618
19619 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19620
19621 * util/i386/pc/grub-setup.c (setup): Rename prefix to
19622 install_prefix, in line with install_dos_part and install_bsd_part.
19623 Add new prefix variable, which is copied to install_prefix after
19624 comparing core.img in memory with the one read from disk in the
19625 no-embedding case, and use that rather than overwriting
19626 install_prefix immediately when installing to a partition.
19627 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
19628 Bicakci.
19629
19630 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19631
19632 * configure.ac: Avoid == in test command, it's not portable.
19633 * util/grub.d/30_os-prober.in: Likewise.
19634
19635 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
19636
19637 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
19638
19639 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19640
19641 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
19642 multiple (top-level) partmaps.
19643
19644 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19645
19646 * util/i386/efi/grub-install.in: Don't use empty grub_device.
19647 Reported by: Tino Keitel.
19648
19649 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19650
19651 Bidi and diacritics support.
19652
19653 * Makefile.in (widthspec.bin): New target.
19654 (widthspec.h): Likewise.
19655 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
19656 * autogen.sh: Generate unidata.c.
19657 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
19658 * commands/ls.c (grub_ls_list_devices): Likewise.
19659 (grub_ls_list_files): Likewise.
19660 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
19661 (grub_mini_cmd_lsmod): Likewise.
19662 * commands/read.c: Likewise.
19663 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
19664 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
19665 * lib/arg.c (grub_arg_show_help): Likewise.
19666 * lib/crypto.c (grub_password_get): Likewise.
19667 * normal/auth.c (grub_username_get): Likewise.
19668 * normal/misc.c (grub_normal_print_device_info): Likewise.
19669 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
19670 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
19671 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
19672 (normal/charset.c_DEPENDENCIES): New variable.
19673 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
19674 (pkglib_MODULES): Remove charset.mod.
19675 (charset_mod_SOURCES): Removed.
19676 (charset_mod_CFLAGS): Likewise.
19677 (charset_mod_LDFLAGS): Likewise.
19678 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
19679 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
19680 and term/tparm.c.
19681 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19682 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19683 (kernel_img_HEADERS): Add terminfo.h.
19684 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
19685 Fill ->font. Reverse ascii bitmaps.
19686 (grub_font_get_xheight): New function.
19687 * font/font.c (grub_font_get_string_width): Moved from here ...
19688 * gfxmenu/font.c (grub_font_get_string_width): ... here.
19689 * font/font.c (grub_font_draw_string): Moved from here ...
19690 * gfxmenu/font.c (grub_font_draw_string): ... here.
19691 * font/font.c (grub_font_dup_glyph): New function.
19692 (grub_font_blit_glyph): Likewise.
19693 (grub_font_blit_glyph_mirror): Likewise.
19694 (blit_comb): Likewise.
19695 (grub_font_construct_dry_run): Likewise.
19696 (grub_font_get_constructed_device_width): Likewise.
19697 (grub_font_construct_glyph): Likewise.
19698 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
19699 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
19700 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
19701 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
19702 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
19703 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
19704 (grub_font_get_xheight): New proto.
19705 (grub_font_get_constructed_device_width): Likewise.
19706 (grub_font_construct_glyph): Likewise.
19707 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
19708 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
19709 * include/grub/font.h (grub_font_draw_string): Moved from here ...
19710 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
19711 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
19712 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
19713 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
19714 (grub_console_getcharwidth): Likewise.
19715 * include/grub/misc.h (grub_xputs): New proto.
19716 (grub_puts): Inlined.
19717 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
19718 (grub_normal_get_line_counter): Removed.
19719 (grub_install_newline_hook): Likewise.
19720 (grub_normal_get_char_counter): New proto.
19721 (grub_normal_reset_more): Likewise.
19722 (grub_xputs_normal): Likewise.
19723 * include/grub/powerpc/ieee1275/console.h: Removed.
19724 * include/grub/sparc64/ieee1275/console.h: Likewise.
19725 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
19726 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
19727 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
19728 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
19729 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
19730 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
19731 (grub_term_input): Pass reference to self. All users updated.
19732 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
19733 Pass reference to self. New fields normal_color, highlight_color and
19734 data. All users updated.
19735 (grub_putchar): Removed.
19736 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
19737 (grub_unicode_estimate_width): New function.
19738 (grub_term_getcharwidth): Add defaults.
19739 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
19740 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
19741 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
19742 (grub_cls): Remove EXPORT_FUNC.
19743 (grub_setcolorstate): Inline.
19744 (grub_newline_hook): Removed.
19745 * include/grub/terminfo.h: Rewritten. All users updated.
19746 * include/grub/unicode.h: New file.
19747 * include/grub/video.h (grub_video_signed_rect): New type.
19748 * kern/emu/console.c (grub_console_highlight_color): Removed.
19749 (grub_console_normal_color): Likewise.
19750 (grub_console_standard_color): Made static.
19751 (grub_ncurses_putchar): Remove mapping.
19752 (grub_ncurses_getcharwidth): Removed.
19753 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19754 (grub_ncurses_setcolor): Removed.
19755 (grub_ncurses_getcolor): Likewise.
19756 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
19757 (grub_console_putchar): ... this.
19758 (grub_console_putchar): Handle argument difference.
19759 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
19760 console_init_early and console_init_lately.
19761 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
19762 * kern/misc.c (grub_puts): Removed.
19763 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
19764 (grub_vsnprintf_real): Remove str = NULL support.
19765 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
19766 * normal/charset.c (grub_utf8_to_ucs4): ... here.
19767 * kern/term.c (grub_putcode): Renamed to ...
19768 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
19769 (grub_putchar): Removed.
19770 (grub_xputs_dumb): New function.
19771 (grub_xputs): New variable.
19772 * lib/charset.c: Move from here ...
19773 * normal/charset.c: ... to here.
19774 (grub_ucs4_to_utf8): New function.
19775 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
19776 (join_types): New variable.
19777 (unpack_join): New function.
19778 (bidi_types): New variable.
19779 (unpack_bidi): New function.
19780 (get_bidi_type): Likewise.
19781 (get_join_type): Likewise.
19782 (is_mirrored): Likewise.
19783 (grub_unicode_get_comb_type): Likewise.
19784 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
19785 (is_type_after): Likewise.
19786 (grub_unicode_aglomerate_comb): Likewise.
19787 (bidi_line_wrap): Likewise.
19788 (grub_bidi_line_logical_to_visual): Likewise.
19789 (grub_bidi_logical_to_visual): Likewise.
19790 (grub_unicode_mirror_code): Likewise.
19791 (grub_unicode_shape_code): Likewise.
19792 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
19793 Don't use grub_putchar.
19794 * normal/main.c (grub_normal_init_page): Use grub_putcode.
19795 (grub_normal_reader_init): Likewise.
19796 (grub_xputs_saved): New variable.
19797 (GRUB_MOD_INIT): Set grub_xputs.
19798 (GRUB_MOD_FINI): Restore grub_xputs.
19799 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
19800 (menu_init): Avoid printing gfxmenu error.
19801 (show_menu): Use grub_normal_get_char_counter.
19802 * normal/menu_entry.c (update_screen): Fix out-of-array.
19803 (complete): Avoid NULL dereferencing.
19804 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
19805 * normal/menu_text.c (print_spaces): Removed.
19806 (grub_print_ucs4): Likewise.
19807 (grub_print_message_indented): Use grub_print_ucs4.
19808 (print_message): Use grub_putcode.
19809 (print_entry): Hanlde diacritics.
19810 * normal/term.c (term_state): New type.
19811 (grub_more_lines): Removed.
19812 (term_states): New variable.
19813 (grub_normal_line_counter): Renamed to ..
19814 (grub_normal_char_counter): ...this. All users updated.
19815 (grub_normal_get_line_counter): Renamed to ...
19816 (grub_normal_get_char_counter): ... this.
19817 (grub_normal_reset_more): New function.
19818 (process_newline): Removed.
19819 (print_more): New function.
19820 (grub_install_newline_hook): Removed.
19821 (map_code): New function.
19822 (grub_puts_terminal): Use grub_print_ucs4.
19823 (putglyph): New function.
19824 (putcode_real): Likewise.
19825 (grub_putcode): Use putcode_real.
19826 (get_maxwidth): New function.
19827 (get_startwidth): Likewise.
19828 (print_ucs4_terminal): Likewise.
19829 (find_term_state): Likewise.
19830 (put_glyphs_terminal): Likewise.
19831 (print_backlog): Likewise.
19832 (print_ucs4_real): Likewise.
19833 (grub_print_ucs4): Likewise.
19834 (grub_xputs_normal): Likewise.
19835 * term/efi/console.c (grub_console_putchar): Output diacritics.
19836 (grub_console_getcharwidth): Removed.
19837 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19838 * term/gfxterm.c (clear_char): Free chars.
19839 (scroll_up): Avoid leaking memory.
19840 (grub_gfxterm_putchar): Support diacritics.
19841 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19842 * term/i386/pc/console.c (grub_console_term_output): Declare as
19843 GRUB_TERM_CODE_TYPE_VGA.
19844 * term/i386/pc/vga.c (grub_vga_term): Declare as
19845 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
19846 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
19847 GRUB_TERM_CODE_TYPE_VGA.
19848 * term/i386/vga_common.c (map_char): Removed.
19849 (grub_console_putchar): Likewise.
19850 (grub_console_getcharwidth): Likewise.
19851 * term/ieee1275/ofconsole.c: Simplify using terminfo.
19852 (colors): Reordered to match terminfo.
19853 (grub_ofconsole_normal_color): Removed.
19854 (grub_ofconsole_writeesc): Likewise.
19855 (grub_ofconsole_highlight_color): Likewise.
19856 (grub_ofconsole_getcharwidth): Likewise.
19857 (grub_ofconsole_setcolorstate): Likewise.
19858 (grub_ofconsole_setcolor): Likewise.
19859 (grub_ofconsole_getcolor): Likewise.
19860 (grub_ofconsole_readkey): Renamed to ...
19861 (readkey): ... this. Remove escape sequence handling. Return -1 on no
19862 key.
19863 (grub_ofconsole_checkkey): Removed.
19864 (grub_ofconsole_getkey): Likewise.
19865 (grub_ofconsole_getxy): Likewise.
19866 (grub_ofconsole_gotoxy): Likewise.
19867 (grub_ofconsole_cls): Likewise.
19868 (grub_ofconsole_refresh): Likewise.
19869 (grub_ofconsole_terminfo_input): New struct.
19870 (grub_ofconsole_terminfo_output): Likewise.
19871 (grub_ofconsole_term_input): Use terminfo.
19872 (grub_ofconsole_term_output): Likewise.
19873 (grub_console_init): Split into ...
19874 (grub_console_init_early): ...this and ...
19875 (grub_console_init_lately): ...this. Use terminfo.
19876 (grub_ofconsole_putchar): Renamed to ...
19877 (put): ... this. Remove mapping.
19878 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19879 * term/serial.c: Simplify using terminfo.
19880 (xpos): Removed.
19881 (ypos): Likewise.
19882 (keep_track): Likewise.
19883 (registered): Likewise.
19884 (input_buf): Likewise.
19885 (npending): Likewise.
19886 (serial_translate_key_sequence): Likewise.
19887 (fill_input_buf): Likewise.
19888 (grub_serial_checkkey): Likewise.
19889 (grub_serial_getkey): Likewise.
19890 (grub_serial_getxy): Likewise.
19891 (grub_serial_gotoxy): Likewise.
19892 (grub_serial_putchar): Likewise.
19893 (grub_serial_cls): Likewise.
19894 (grub_serial_setcolorstate): Likewise.
19895 (grub_serial_setcursor): Likewise.
19896 (serial_hw_init): Use serial_hw_fetch.
19897 (grub_serial_terminfo_input): New variable.
19898 (grub_serial_terminfo_output): Likewise.
19899 (grub_serial_term_input): Use terminfo.
19900 (grub_serial_term_output): Likewise.
19901 * term/terminfo.c (putstr): Use put.
19902 (grub_terminfo_all_free): New function
19903 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
19904 (grub_terminfo_output_register): New function.
19905 (grub_terminfo_output_unregister): Likewise.
19906 (grub_terminfo_getxy): Likewise.
19907 (grub_terminfo_readkey): Likewise.
19908 (grub_terminfo_checkkey): Likewise.
19909 (grub_terminfo_getkey): Likewise.
19910 (grub_terminfo_input_init): Likewise.
19911 (print_terminfo): Likewise.
19912 (grub_cmd_terminfo): Handle encoding.
19913 (grub_terminfo_gotoxy): Track position.
19914 (grub_terminfo_cls): Likewise.
19915 (grub_terminfo_putchar): Likewise.
19916 (grub_terminfo_setcolorstate): Handle colors
19917 (grub_terminfo_cursor_on): This ...
19918 (grub_terminfo_cursor_off): ... and this merged into ...
19919 (grub_terminfo_setcursor): ... this.
19920 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
19921 * unicode/ArabicShaping.txt: New file (imported from Unicode).
19922 * unicode/BidiMirroring.txt: Likewise.
19923 * unicode/UnicodeData.txt: Likewise.
19924 * unicode/COPYING: Likewise.
19925 * util/grub-editenv.c (grub_putchar): Removed.
19926 (grub_xputs_real): New function.
19927 (grub_xputs): New variable.
19928 * util/grub-fstest.c (grub_putchar): Removed.
19929 (grub_xputs_real): New function.
19930 (grub_xputs): New variable.
19931 * util/grub-mkdevicemap.c (grub_putchar): Removed.
19932 (grub_xputs_real): New function.
19933 (grub_xputs): New variable.
19934 * util/grub-probe.c (grub_putchar): Removed.
19935 (grub_xputs_real): New function.
19936 (grub_xputs): New variable.
19937 * util/grub-script-check.c (grub_putchar): Removed.
19938 (grub_xputs_real): New function.
19939 (grub_xputs): New variable.
19940 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
19941 (grub_xputs_real): New function.
19942 (grub_xputs): New variable.
19943 * util/import_unicode.py: New file.
19944 * util/grub-mkfont.c (ft_errmsgs): New array.
19945 (grub_glyph_info): Make bitmap a pointer.
19946 (file_formats): New type WIDTH_SPEC.
19947 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
19948 (options): Add width-spec.
19949 (help): Likewise.
19950 (add_char): Renamed to ...
19951 (add_glyph): ... this.
19952 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
19953 (glyph_replace): New type.
19954 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
19955 (add_char): New function.
19956 (add_subst): Likewise.
19957 (process_cursive): Likewise.
19958 (add_font): Handle GSUB.
19959 (write_font_width_spec): New function.
19960 (main): Sort glyphs.
19961 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
19962 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
19963 * kern/term.c (grub_cls): Moved from here...
19964 * normal/term.c (grub_cls): ... here.
19965
19966 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19967
19968 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
19969 suitable for using within the format argument of printf when
19970 converting grub_size_t.
19971 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
19972 "x" to convert grub_size_t arguments.
19973
19974 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19975
19976 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
19977 too long captions.
19978 (list_get_minimal_size): Take selection box into account.
19979
19980 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19981
19982 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
19983 NULL font.
19984
19985 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19986
19987 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
19988 devices when iterating over /dev/disk/by-id; they will be handled
19989 later if appropriate, which they aren't always (e.g. LVM).
19990
19991 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19992
19993 * include/grub/misc.h (grub_reboot): Declare as noreturn.
19994 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
19995 fails.
19996 (grub_halt): Likewise.
19997 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
19998 reset-all fails.
19999 (grub_halt): Don't return, even if all of shut-down, power-off, and
20000 poweroff fail.
20001
20002 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20003
20004 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
20005 arguments, not three.
20006
20007 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20008
20009 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
20010 * util/grub.d/10_linux.in: Use it to check for LVM, so that
20011 LVM-on-RAID is handled correctly.
20012
20013 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20014
20015 * docs/grub.texi (Changes from GRUB Legacy): New section.
20016 (Future): Fix typo.
20017
20018 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20019
20020 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
20021 grub.d/README accidentally ends up executable for one reason or
20022 another. Ignore it.
20023
20024 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20025
20026 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
20027 (gpt_partition_map_iterate): Support non-512B sectors.
20028
20029 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20030
20031 * kern/efi/init.c (grub_efi_init): Disable watchdog.
20032 Tested by: Seth Goldberg.
20033
20034 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20035
20036 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
20037 Properly align mbi.
20038 Reported by: Seth Goldberg.
20039
20040 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20041
20042 * util/grub-mkrescue.in: Avoid module duplication.
20043
20044 2010-07-01 Sean Finney <seanius@seanius.net>
20045
20046 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
20047
20048 2010-07-01 Sean Finney <seanius@seanius.net>
20049
20050 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
20051
20052 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20053
20054 * disk/lvm.c (grub_lvm_checkvalue): New function.
20055 (grub_lvm_check_flag): Likewise.
20056
20057 2010-07-01 Robert Millan <rmh@gnu.org>
20058
20059 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
20060 Support 'p' as partition separator on kernel of FreeBSD (used
20061 with GPT labels).
20062 (grub_util_biosdisk_get_grub_dev): Likewise.
20063
20064 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20065
20066 Yeeloong firmware port.
20067
20068 * boot/mips/yeeloong/fwstart.S: New file.
20069 * bus/cs5536.c (gpiodump): New const.
20070 (set_io_space): New function.
20071 (set_iod): Likewise.
20072 (set_p2d): Likewise.
20073 (grub_cs5536_init_geode): Likewise.
20074 * commands/mips/yeeloong/lsspd.c: New file.
20075 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
20076 (serial_mod_SOURCES): New variable.
20077 (serial_mod_CFLAGS): Likewise.
20078 (serial_mod_LDFLAGS): Likewise.
20079 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
20080 term/terminfo.c and term/tparm.c.
20081 (pkglib_IMAGES): Add fwstart.img.
20082 (fwstart_img_SOURCES): New variable.
20083 (fwstart_img_CFLAGS): Likewise.
20084 (fwstart_img_ASFLAGS): Likewise.
20085 (fwstart_img_LDFLAGS): Likewise.
20086 (fwstart_img_FORMAT): Likewise.
20087 (pkglib_MODULES): Add lsspd.mod.
20088 (lsspd_mod_SOURCES): New variable.
20089 (lsspd_mod_CFLAGS): Likewise.
20090 (lsspd_mod_LDFLAGS): Likewise.
20091 (pkglib_MODULES): Add halt.mod.
20092 (halt_mod_SOURCES): New variable.
20093 (halt_mod_CFLAGS): Likewise.
20094 (halt_mod_LDFLAGS): Likewise.
20095 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
20096 (serial_mod_SOURCES): Removed.
20097 (serial_mod_CFLAGS): Likewise.
20098 (serial_mod_LDFLAGS): Likewise.
20099 * disk/ata.c (check_device): New function.
20100 (grub_ata_device_initialize): Use check_device.
20101 (grub_ata_iterate): Recheck devices.
20102 (grub_ata_open): Likewise.
20103 (grub_atapi_iterate): Likewise.
20104 (grub_atapi_open): Likewise.
20105 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
20106 (GRUB_ATA_CH1_PORT1): Likewise.
20107 (GRUB_ATA_CH0_PORT2): Likewise.
20108 (GRUB_ATA_CH1_PORT2): Likewise.
20109 * include/grub/mips/loongson.h: New file.
20110 * include/grub/mips/yeeloong/ec.h: Likewise.
20111 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
20112 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
20113 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
20114 * include/grub/misc.h (grub_halt): Declare as noreturn.
20115 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
20116 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
20117 (UART_ENABLE_FIFO_TRIGGER1): New definition.
20118 (UART_ENABLE_DTRRTS): Likewise.
20119 (UART_ENABLE_MODEM): Removed.
20120 (UART_ENABLE_OUT2): New const.
20121 * include/grub/term.h (grub_term_register_input_active): New function.
20122 (grub_term_register_output_active): Likewise.
20123 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
20124 argument.
20125 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
20126 (init_pci): New function.
20127 (grub_machine_init): Execute platform init when firmware. Init serial.
20128 (grub_halt): Implement.
20129 (grub_exit): Likewise.
20130 (grub_reboot): Likewise.
20131 * term/serial.c (serial_hw_init): Update macros.
20132 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
20133 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
20134 (image_targets): New target mipsel-yeeloong-flash.
20135 (generate_image): Support IMAGE_YEELOONG_FLASH.
20136 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
20137 (grub_video_sm712_setup): Init card.
20138 (grub_video_sm712_set_palette): Removed.
20139 * video/sm712_init.c: New file.
20140
20141 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
20142
20143 * Makefile.in (install-local): Temporarily prepend $(builddir) to
20144 PATH when running help2man and then run it on the unadorned
20145 executable names, rather than passing $(builddir)/* paths to
20146 help2man. This avoids the build directory ending up in generated
20147 manual pages.
20148
20149 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
20150
20151 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
20152 to avoid accidents when debugging with 'sh -x'.
20153 * util/grub-mkrescue.in: Likewise.
20154 * util/grub.d/00_header.in: Likewise.
20155 * util/grub.d/10_hurd.in: Likewise.
20156 * util/grub.d/10_kfreebsd.in: Likewise.
20157 * util/grub.d/10_linux.in: Likewise.
20158 * util/grub.d/10_netbsd.in: Likewise.
20159 * util/grub.d/10_windows.in: Likewise.
20160 * util/grub.d/20_linux_xen.in: Likewise.
20161 * util/grub.d/30_os-prober.in: Likewise.
20162 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20163
20164 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
20165
20166 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
20167 last character in the buffer.
20168 Reported by: Vladimir Serbinenko.
20169
20170 2010-06-29 Robert Millan <rmh@gnu.org>
20171
20172 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
20173 (Command-line and menu entry commands): Document `badram' command.
20174
20175 2010-06-28 Robert Millan <rmh@gnu.org>
20176
20177 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
20178 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
20179 command using ${GRUB_BADRAM} as parameter.
20180
20181 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20182
20183 * docs/grub.texi (Device map): New section.
20184 (Themes): New section (stub).
20185 * Makefile.in (docs/grub.info): The info documentation now builds
20186 without errors. Make sure it stays that way.
20187
20188 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20189
20190 Use normal parser for menu entries.
20191 Reported by: Thomas Frauendorfer
20192
20193 * include/grub/parser.h (grub_parser_execute): Don't export.
20194 * normal/menu.c (grub_menu_execute_entry_real): New function.
20195 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
20196
20197 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20198
20199 * docs/grub.texi (Embedded configuration): New section (replacing
20200 old "Preset Menu" stub).
20201 (Images): New section.
20202 (configfile): Note that any menu entries defined in `file' are shown
20203 immediately.
20204
20205 2010-06-28 Josh Triplett <josh@joshtriplett.org>
20206
20207 * mmap/i386/pc/mmap_helper.S: Set CF on return.
20208
20209 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20210
20211 * util/grub-install.in: Add --debug-image= option.
20212
20213 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20214
20215 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
20216 possible on Linux.
20217
20218 * util/deviceiter.c (check_device): Rename to ...
20219 (check_device_readable_unique): ... this. Update all callers.
20220 Maintain and check a list of which devices (by canonicalized name)
20221 have already been seen.
20222 (clear_seen_devices): New function.
20223 (compare_file_names) [__linux__]: New function.
20224 (grub_util_iterate_devices): Clear the list of seen devices on exit
20225 and (just in case) on entry.
20226 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
20227 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
20228 seen-devices list, superseded by general code in check_device.
20229
20230 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20231
20232 * commands/cat.c (options): New variable.
20233 (grub_cmd_cat): Parse options. If the --dos option is given, print
20234 DOS-style "\r\n" line endings as simple newlines (Debian bug
20235 #586358).
20236 (GRUB_MOD_INIT): Use extcmd.
20237 (GRUB_MOD_FINI): Likewise.
20238 * docs/grub.texi (cat): Document --dos.
20239
20240 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20241
20242 XEN with Linux grub-mkconfig support.
20243
20244 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
20245 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
20246 GRUB_CMDLINE_XEN_DEFAULT.
20247 * util/grub.d/20_linux_xen.in: New file.
20248
20249 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20250
20251 Initialise VGA video on qemu ourselves.
20252
20253 * boot/i386/qemu/boot.S: Don't call 0xc000.
20254 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
20255 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
20256 (kernel_img_HEADERS): Add pci.h.
20257 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
20258 * configure.ac: Force unifont on qemu and yeeloong.
20259 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
20260 (grub_vga_palette_write): Use correct register.
20261 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
20262 Call grub_qemu_init_cirrus.
20263 * kern/i386/qemu/init.c: New file.
20264 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
20265
20266 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
20267
20268 2010-06-26 Pavel Roskin <proski@gnu.org>
20269
20270 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
20271 13.
20272
20273 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
20274
20275 * docs/grub.texi (Simple configuration): Explain that
20276 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
20277 set to `true' to disable their respective recovery entries, not
20278 merely set.
20279
20280 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
20281
20282 Make the `source' command slightly faster.
20283
20284 * normal/main.c (grub_normal_execute): Don't re-read list files when
20285 nested.
20286
20287 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
20288
20289 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
20290 field position and mask size to red fields from mode_info, not
20291 green.
20292 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
20293 Remove redundant tag->common.framebuffer_type assignment.
20294 Reported by: Seth Goldberg.
20295
20296 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
20297
20298 Sync up other versions of the Linux loader with Robert Millan's
20299 change of 2010-01-09, "Make loader output a bit more user-friendly".
20300
20301 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
20302 grub_dprintf().
20303 (grub_cmd_linux): Likewise.
20304 (grub_cmd_initrd): Likewise.
20305 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
20306 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20307
20308 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
20309
20310 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
20311 larger than MEMORY_MAP_SIZE.
20312
20313 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
20314
20315 Fix parallel build.
20316
20317 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
20318 dependency.
20319 * script/parser.y: #include grub_script.tab.h header.
20320
20321 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20322
20323 Support >3GiB and <16MiB RAM in i386-qemu.
20324
20325 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
20326 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
20327 (grub_lower_mem): Removed.
20328 (grub_upper_mem): Likewise.
20329 (mem_size): Made static.
20330 (above_4g): New variable.
20331 (grub_machine_mmap_init): Detect small mem_size and above_4g.
20332 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
20333 support.
20334
20335 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20336
20337 Cirrus 5446 and Bochs video cards support.
20338
20339 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
20340 video_bochs.mod
20341 (video_cirrus_mod_SOURCES): New variable.
20342 (video_cirrus_mod_CFLAGS): Likewise.
20343 (video_cirrus_mod_LDFLAGS): Likewise.
20344 (video_bochs_mod_SOURCES): Likewise.
20345 (video_bochs_mod_CFLAGS): Likewise.
20346 (video_bochs_mod_LDFLAGS): Likewise.
20347 * include/grub/vga.h: New file.
20348 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
20349 (grub_video_fb_set_page_t): New type.
20350 (grub_video_fb_setup): New prototype.
20351 (grub_video_fb_swap_buffers): Likewise.
20352 (grub_video_fb_get_info_and_fini): Likewise.
20353 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
20354 (CRTC_DATA_PORT): Likewise.
20355 (CRTC_CURSOR): Likewise.
20356 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20357 (CRTC_CURSOR_ADDR_LOW): Likewise.
20358 (CRTC_CURSOR_DISABLE): Likewise.
20359 (update_cursor): Use grub_vga_cr_write.
20360 (grub_vga_text_setcursor): Likewise.
20361 * video/bochs.c: New file.
20362 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
20363 (palette): Likewise.
20364 (palette_size): Likewise.
20365 (framebuffer): New variable.
20366 (grub_video_fb_init): Use 'framebuffer'.
20367 (grub_video_fb_fini): Likewise.
20368 (grub_video_fb_get_info): Likewise.
20369 (grub_video_fb_get_palette): Likewise.
20370 (grub_video_fb_set_palette): Likewise.
20371 (grub_video_fb_set_viewport): Likewise.
20372 (grub_video_fb_get_viewport): Likewise.
20373 (grub_video_fb_map_color): Likewise.
20374 (grub_video_fb_map_rgb): Likewise.
20375 (grub_video_fb_map_rgba): Likewise.
20376 (grub_video_fb_unmap_color): Likewise.
20377 (grub_video_fb_unmap_color_int): Likewise.
20378 (grub_video_fb_fill_rect): Likewise.
20379 (grub_video_fb_blit_bitmap): Likewise.
20380 (grub_video_fb_blit_render_target): Likewise.
20381 (grub_video_fb_scroll): Likewise.
20382 (grub_video_fb_create_render_target): Likewise.
20383 (grub_video_fb_doublebuf_blit_init): Likewise.
20384 (grub_video_fb_set_active_render_target): Handle doublebuffering.
20385 (doublebuf_pageflipping_update_screen): New function.
20386 (doublebuf_pageflipping_init): Likewise.
20387 (grub_video_fb_setup): Likewise.
20388 (grub_video_fb_swap_buffers): Likewise.
20389 (grub_video_fb_get_info_and_fini): Likewise.
20390 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
20391 All users updated.
20392 (doublebuf_pageflipping_commit): Restructured into ...
20393 (doublebuf_pageflipping_set_page): ... this.
20394 (doublebuf_pageflipping_update_screen): Removed.
20395 (doublebuf_pageflipping_init): Likewise.
20396 (double_buffering_init): Likewise.
20397 (grub_video_vbe_setup): Use grub_video_fb_setup.
20398 (grub_video_vbe_swap_buffers): Removed.
20399 (grub_video_vbe_set_active_render_target): Likewise.
20400 (grub_video_vbe_get_active_render_target): Likewise.
20401 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
20402 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
20403 grub_video_fb_set_active_render_target and
20404 grub_video_fb_get_active_render_target.
20405 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
20406 (SEQUENCER_DATA_PORT): Likewise.
20407 (MAP_MASK_REGISTER): Likewise.
20408 (CRTC_ADDR_PORT): Likewise.
20409 (CRTC_DATA_PORT): Likewise.
20410 (START_ADDR_HIGH_REGISTER): Likewise.
20411 (START_ADDR_LOW_REGISTER): Likewise.
20412 (GRAPHICS_ADDR_PORT): Likewise.
20413 (GRAPHICS_DATA_PORT): Likewise.
20414 (READ_MAP_REGISTER): Likewise.
20415 (INPUT_STATUS1_REGISTER): Likewise.
20416 (INPUT_STATUS1_VERTR_BIT): Likewise.
20417 (get_map_mask): Use grub_vga_sr_read.
20418 (set_map_mask): Use grub_vga_sr_write.
20419 (set_read_map): Use grub_vga_gr_write.
20420 (set_start_address): Use grub_vga_cr_write.
20421 * video/sm712.c (framebuffer): Remove leftover fields.
20422
20423 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
20424
20425 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
20426 setting GRUB_VIDEO_BACKEND. Make it available as a user override
20427 instead. Replace the gfxterm backend check with a check that
20428 ${GRUB_PREFIX}/video.lst is non-empty.
20429 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
20430 again.
20431 (load_video): New generated function. Call it before loading
20432 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
20433 * util/grub.d/10_linux.in (linux_entry): Call load_video.
20434 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
20435 * docs/grub.texi (Simple configuration): Document
20436 GRUB_VIDEO_BACKEND.
20437
20438 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20439
20440 Use video functions in linux and xnu loaders.
20441
20442 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
20443 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
20444 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
20445 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
20446 loader/i386/pc/linux.c.
20447 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
20448 (find_line_len): Removed.
20449 (find_framebuf): Likewise.
20450 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
20451 * loader/i386/efi/xnu.c: Removed.
20452 * loader/i386/pc/xnu.c: Moved from here...
20453 * loader/i386/xnu.c: ...here.
20454
20455 Enable priorities in video drivers.
20456
20457 * include/grub/video.h (grub_video_adapter_prio_t): New type.
20458 (grub_video_adapter): New field prio.
20459 (grub_video_register): Respect prio when inserting.
20460 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
20461 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
20462 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
20463 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
20464 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
20465 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
20466 * video/sm712.c (grub_video_sm712_adapter): Likewise.
20467
20468 Fix SDL driver ID.
20469
20470 * include/grub/video.h (grub_video_driver_id_t): New value
20471 GRUB_VIDEO_DRIVER_SDL.
20472 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
20473
20474 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20475
20476 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
20477 argument to printf.
20478 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20479
20480 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20481
20482 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
20483 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20484
20485 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20486
20487 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
20488 directly, and recommend grub-install instead.
20489 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20490
20491 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20492
20493 Fix i386-pc prefix handling with nested partitions (Debian bug
20494 #585068). Note that the case where the core image is booted using
20495 multiboot and relocated from its original location still requires
20496 more work.
20497
20498 * kern/i386/pc/init.c (make_install_device): If the prefix starts
20499 with "(,", fill the boot drive in between those two characters, but
20500 expect that a full partition specification including partition map
20501 names will follow.
20502 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
20503 specified, write a prefix without the drive name but including a
20504 full partition specification.
20505
20506 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
20507
20508 * util/grub-mkconfig.in: Ignore non-option arguments, for
20509 compatibility with older versions (before 2010-06-12) which did the
20510 same. In particular, this makes it easier to ship an update-grub
20511 wrapper which is compatible with that used with GRUB Legacy (Debian
20512 bug #586056).
20513
20514 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20515
20516 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
20517 for manual page generation.
20518
20519 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20520
20521 * po/POTFILES: Remove leftover commands/handler.c.
20522
20523 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20524
20525 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
20526 left this script non-functional.
20527
20528 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20529
20530 * docs/man/grub-emu.h2m: New file.
20531
20532 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
20533
20534 * docs/grub.texi (Commands): Document reduced command set in rescue
20535 mode.
20536 (cpuid): New section.
20537
20538 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
20539
20540 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
20541 new partition naming style.
20542 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
20543
20544 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
20545
20546 Add "-o grub.iso" like cmdline options support.
20547
20548 * util/grub-install.in: Improve cmdline option parsing.
20549 * util/grub-mkconfig.in: Likewise.
20550 * util/grub-mkrescue.in: Likewise.
20551 * util/grub-reboot.in: Likewise.
20552 * util/grub-set-default.in: Likewise.
20553 * util/i386/efi/grub-install.in: Likewise.
20554 * util/ieee1275/grub-install.in: Likewise.
20555 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20556
20557 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20558
20559 * .bzrignore: Ignore 41_custom.
20560
20561 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20562
20563 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
20564
20565 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20566
20567 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
20568 prototype declarations.
20569
20570 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
20571 generating fs, partmap, and video lists.
20572 * include/grub/fs.h (grub_fs_register): Omit prototype if
20573 GRUB_LST_GENERATOR is defined.
20574 * include/grub/partition.h (grub_partition_map_register): Likewise.
20575 * include/grub/video.h (grub_video_register): Likewise.
20576
20577 2010-06-12 Javier Martín <lordhabbit@gmail.com>
20578
20579 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
20580
20581 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20582
20583 * util/grub-mkrescue.in: Support --xorriso argument.
20584
20585 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20586
20587 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
20588 Suggested by: Thomas Schmitt.
20589
20590 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20591
20592 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
20593 Suggested by: Thomas Schmitt.
20594
20595 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20596
20597 custom.cfg support.
20598
20599 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
20600 * util/grub.d/41_custom.in: New file.
20601
20602 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20603
20604 * util/grub-mkrescue.in (make_image): Remove sh module, which has
20605 been merged back into normal.
20606
20607 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20608
20609 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
20610 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
20611
20612 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20613
20614 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
20615 when generating manual pages.
20616 * docs/man/grub-bin2h.h2m: New file.
20617 * docs/man/grub-editenv.h2m: New file.
20618 * docs/man/grub-fstest.h2m: New file.
20619 * docs/man/grub-install.h2m: New file.
20620 * docs/man/grub-macho2img.h2m: New file.
20621 * docs/man/grub-mkconfig.h2m: New file.
20622 * docs/man/grub-mkdevicemap.h2m: New file.
20623 * docs/man/grub-mkfont.h2m: New file.
20624 * docs/man/grub-mkimage.h2m: New file.
20625 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
20626 * docs/man/grub-mkrelpath.h2m: New file.
20627 * docs/man/grub-mkrescue.h2m: New file.
20628 * docs/man/grub-ofpathname.h2m: New file.
20629 * docs/man/grub-pe2elf.h2m: New file.
20630 * docs/man/grub-probe.h2m: New file.
20631 * docs/man/grub-reboot.h2m: New file.
20632 * docs/man/grub-script-check.h2m: New file.
20633 * docs/man/grub-set-default.h2m: New file.
20634 * docs/man/grub-setup.h2m: New file.
20635
20636 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
20637
20638 Use FOR_* macros instead of *_iterate whenever possible.
20639
20640 * commands/handler.c: Removed.
20641 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
20642 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
20643 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20644 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
20645 (grub_probe_SOURCES): Remove kern/parser.c.
20646 (util/grub-script-check.c_DEPENDENCIES): Removed.
20647 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
20648 and grub_script_check_init.c.
20649 (grub_script_check_init.lst): Removed.
20650 (grub_script_check_init.h): Likewise.
20651 (grub_script_check_init.c): Likewise.
20652 (pkglib_MODULES): Remove handler.mod and sh.mod.
20653 (handler_mod_SOURCES): Removed.
20654 (handler_mod_CFLAGS): Likewise.
20655 (handler_mod_LDFLAGS): Likewise.
20656 (normal_mod_SOURCES): Remove normal/handler.c.
20657 Add script/main.c, script/script.c, script/execute.c,
20658 script/function.c, script/lexer.c, grub_script.tab.c
20659 and grub_script.yy.c.
20660 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20661 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20662 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
20663 (grub_setup_SOURCES): Remove kern/parser.c.
20664 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20665 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
20666 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
20667 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20668 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20669 (grub_setup_SOURCES): Remove kern/parser.c.
20670 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20671 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
20672 * include/grub/command.h (grub_command_iterate): Removed.
20673 (FOR_COMMANDS): New macro.
20674 * include/grub/dl.h (grub_dl): New member next.
20675 (grub_dl_iterate): Removed.
20676 (grub_dl_head): New variable declaration.
20677 (FOR_DL_MODULES): New macro.
20678 * include/grub/fs.h: Include list.h.
20679 (grub_fs): Make next first element.
20680 (grub_fs_list): New variable declaration.
20681 (grub_fs_register): Make inline.
20682 (grub_fs_unregister): Likewise.
20683 (grub_fs_iterate): Removed.
20684 (FOR_FILESYSTEMS): New macro.
20685 * include/grub/handler.h: Removed.
20686 * include/grub/list.h (grub_list_hook_t): Removed.
20687 (grub_list_test_t): Likewise.
20688 (grub_list_pop): Likewise.
20689 (grub_list_iterate): Likewise.
20690 (grub_list_insert): Likewise.
20691 (FOR_LIST_ELEMENTS): New macro.
20692 * include/grub/parser.h (grub_parser_class): Removed.
20693 (grub_parser_register): Likewise.
20694 (grub_parser_unregister): Likewise.
20695 (grub_parser_get_current): Likewise.
20696 (grub_parser_set_current): Likewise.
20697 (grub_register_rescue_parser): Likewise.
20698 (grub_rescue_parse_line): New function.
20699 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
20700 * include/grub/script_sh.h (grub_script_function_list): New variable
20701 declaration.
20702 (FOR_SCRIPT_FUNCTIONS): New macro.
20703 (grub_script_function_iterate): Removed.
20704 (grub_normal_parse_line): New prototype.
20705 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
20706 (FOR_DISABLED_TERM_INPUTS): Likewise.
20707 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
20708 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
20709 * include/grub/video.h (grub_video_adapter): Move 'next' to first
20710 element.
20711 (grub_video_register): Inline.
20712 (grub_video_unregister): Likewise.
20713 (grub_video_adapter_list): New variable declaration.
20714 (grub_video_iterate): Removed.
20715 (FOR_VIDEO_ADAPTERS): New macro.
20716 * kern/dl.c (grub_dl_list): Removed. All users updated.
20717 (grub_dl_iterate): Removed.
20718 * kern/fs.c (grub_fs_list): Make global.
20719 (grub_fs_register): Removed.
20720 (grub_fs_unregister): Likewise.
20721 (grub_fs_iterate): Likewise.
20722 * kern/handler.c: Removed.
20723 * kern/list.c (grub_list_pop): Removed.
20724 (grub_list_iterate): Likewise.
20725 (grub_list_insert): Likewise.
20726 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
20727 (grub_prio_list_insert): Don't use grub_list_insert.
20728 * kern/main.c (grub_register_rescue_parser): Don't call
20729 grub_register_rescue_parser.
20730 * kern/parser.c (grub_parser_class): Removed.
20731 (grub_parser_execute): Use grub_rescue_parse_line.
20732 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
20733 (grub_rescue_parser): Removed.
20734 (grub_register_rescue_parser): Likewise.
20735 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
20736 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
20737 (grub_auth_check_authentication): Likewise.
20738 * normal/completion.c (iterate_command): Removed.
20739 (grub_normal_do_completion): Use FOR_COMMANDS.
20740 * normal/handler.c: Removed.
20741 * normal/main.c (read_config_file): Remove parser changing.
20742 (grub_normal_execute): Don't call read_handler_list.
20743 (grub_normal_read_line_real): Statically allocate prompt.
20744 (grub_cmdline_run): Use grub_normal_parse_line.
20745 (GRUB_MOD_FINI): Don't call free_handler_list.
20746 * normal/menu_entry.c (run): Likewise.
20747 * script/function.c (grub_script_function_list): Make global.
20748 (grub_script_function_iterate): Removed.
20749 * script/main.c (grub_normal_parse_line): Make global.
20750 (grub_sh_parser): Removed.
20751 (GRUB_MOD_INIT): Likewise.
20752 (GRUB_MOD_FINI): Likewise.
20753 * tests/lib/functional_test.c (grub_functional_test): Use
20754 FOR_LIST_ELEMENTS.
20755 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
20756 (grub_test_run): Use FOR_LIST_ELEMENTS.
20757 * tests/lib/unit_test.c (main): Likewise.
20758 * util/deviceiter.c (grub_util_iterate_devices): Don't use
20759 grub_list_pop.
20760 * util/grub-fstest.c (grub_term_input_class): Removed.
20761 (grub_term_output_class): Likewise.
20762 * util/grub-probe.c: Likewise.
20763 * util/i386/pc/grub-setup.c: Likewise.
20764 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20765 * util/grub-script-check.c (main): Don't call grub_init_all and
20766 grub_fini_all.
20767 * video/video.c (grub_video_adapter_list): Make global.
20768 (grub_video_register): Removed.
20769 (grub_video_unregister): Likewise.
20770 (grub_video_iterate): Likewise.
20771
20772 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
20773
20774 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
20775 reported by Henrique Ferreiro.
20776
20777 2010-06-09 Robert Millan <rmh@gnu.org>
20778
20779 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
20780 ones, when both are available.
20781
20782 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20783
20784 Make --version uniform and avoid hard-coded program name.
20785
20786 * util/grub-mkimage.c (main): Use `program_name' instead of
20787 hard-coded string.
20788 * util/i386/pc/grub-setup.c (main): Likewise.
20789 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
20790 * util/grub-install.in: Save the basename of $0 in $self, and use the
20791 latter in informational messages. Use the same format for --version
20792 as the binary programs.
20793 * util/grub-mkconfig.in: Likewise.
20794 * util/grub-mkrescue.in: Likewise.
20795 * util/grub-reboot.in: Likewise.
20796 * util/grub-set-default.in: Likewise.
20797 * util/i386/efi/grub-install.in: Likewise.
20798 * util/ieee1275/grub-install.in: Likewise.
20799 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20800
20801 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20802
20803 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
20804 embedding area. Use <= instead of == when checking for non-emptiness.
20805
20806 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20807
20808 * configure.ac: Add `.' to the directories searched for unifont.
20809
20810 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20811
20812 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
20813 grub_script.yy.h.
20814
20815 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20816
20817 * docs/grub.texi (History): Expand to cover GRUB 2.
20818 (Serial terminal): Refer to `terminal_input' and `terminal_output'
20819 commands, not `terminal'.
20820 (serial): Likewise.
20821 (terminal_input): New section.
20822 (terminal_output): New section.
20823 (uppermem): New section (stub).
20824 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
20825
20826 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20827
20828 * docs/grub.texi (Security): Menu entries are unrestricted by
20829 default, not restricted to superusers as I had previously thought.
20830 Reword to account for this.
20831
20832 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20833
20834 * kern/emu/misc.c (device_mapper_null_log): New function.
20835 (grub_device_mapper_supported): New function.
20836 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
20837 prototype.
20838 * kern/emu/hostdisk.c (find_partition_start): Check whether
20839 device-mapper is supported before trying to use it.
20840 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
20841
20842 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20843
20844 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
20845 (File name syntax): Likewise.
20846 (help): --all is no longer supported in GRUB 2. Be more precise
20847 about pattern matching.
20848
20849 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20850
20851 * normal/completion.c (grub_normal_do_completion): When completing
20852 arguments to "set" and the current word contains an equals sign,
20853 skip to after the equals sign before starting completion.
20854
20855 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20856
20857 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
20858
20859 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20860
20861 * docs/grub.texi (Network): New section.
20862 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
20863 `(nd)' as in GRUB Legacy.
20864 (pxe_unload): New section.
20865
20866 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20867
20868 * docs/grub.texi (Troubleshooting): `echo' is not usually available
20869 in the rescue shell, so recommend using `set' instead. Thanks,
20870 Jordan Uggla.
20871
20872 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20873
20874 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
20875 (password): New section.
20876 (password_pbkdf2): New section.
20877 (search): New section.
20878 (Security): New section.
20879 (Troubleshooting): New section, currently very incomplete.
20880 (Invoking grub-mkpasswd-pbkdf2): New section.
20881 (Internals): New section, currently very incomplete.
20882
20883 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20884
20885 * util/grub.d/00_header.in: Add some more quoting (of
20886 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
20887 work again.
20888 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
20889
20890 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20891
20892 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
20893 to `count', fixing variable shadowing that broke the -c option.
20894
20895 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
20896
20897 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
20898 in case they contain spaces.
20899
20900 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20901
20902 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
20903 "part_" to partmap module names, in line with grub-install.
20904 Reported by: Jindřich Makovička (Debian bug #584426).
20905
20906 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20907
20908 * util/grub-mkimage.c: Make target-related error messages slightly
20909 more helpful; -O talks about "format". Explicitly point to the use
20910 of -O if no target is specified.
20911 Reported by: Didier Raboud (Debian bug #584415).
20912
20913 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
20914
20915 * INSTALL: Document several build requirements for optional features
20916 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
20917
20918 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
20919
20920 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
20921 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
20922 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
20923
20924 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20925
20926 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
20927 Thanks to Jordan Uggla for spotting this.
20928
20929 2010-06-02 Aleš Nesrsta <starous@volny.cz>
20930
20931 Finally make USB usable.
20932
20933 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
20934 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
20935 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
20936 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
20937 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
20938 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
20939 (GRUB_OHCI_FSMPS): Likewise.
20940 (GRUB_OHCI_PERIODIC_START): Likewise.
20941 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
20942 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
20943 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
20944 (GRUB_OHCI_SET_PORT_RESET): Likewise.
20945 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
20946 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
20947 (grub_ohci_transaction): Likewise.
20948 (grub_ohci_transfer): Improve condition detection algorithms.
20949 Handle toggle property. Program the transactions correctly.
20950 Improve error handling. Various important fixups.
20951 (grub_ohci_portstatus): Put register writes in right order.
20952 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
20953 (grub_uhci_transfer): Don't show "failed" message on success.
20954 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
20955 array.
20956 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
20957 determine its size.
20958 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
20959 before initialization is completed. Use IN direction for empty
20960 transfers. Use last_trans and compute toggle.
20961 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
20962 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
20963 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
20964 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
20965 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
20966 (grub_usb_device): Increase toggle to 256.
20967 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
20968 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
20969 GRUB_USBMS_SUBCLASS_SFF8070.
20970 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
20971 (grub_scsi_inquiry): New member page and alloc_length.
20972 (grub_scsi_request_sense): New structure.
20973 (grub_scsi_request_sense_data): Likewise.
20974 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
20975 control.
20976 * disk/scsi.c (grub_scsi_request_sense): New function.
20977 (grub_scsi_test_unit_ready): Likewise.
20978 (grub_scsi_inquiry): Fill new fields.
20979 (grub_scsi_read_capacity): Likewise.
20980 (grub_scsi_read10): Add request sense at the end.
20981 (grub_scsi_read12): Likewise.
20982 (grub_scsi_write10): Likewise.
20983 (grub_scsi_write12): Likewise.
20984 (grub_scsi_open): Add Test Unit Ready.
20985 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
20986 Support additional subclasses. Con't clear halt yet. Activate the
20987 proper config. Calculate LUNs correctly.
20988 (grub_usbms_transfer): Various important fixups.
20989
20990 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20991
20992 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
20993 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
20994 (grub_ohci_fini_hw): New function.
20995 (grub_ohci_restore_hw): Likewise.
20996 (GRUB_MOD_INIT(ohci)): Register preboot hook.
20997 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
20998 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
20999
21000 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21001
21002 Dedicated DMA allocations.
21003
21004 * bus/pci.c (grub_memalign_dma32): New function
21005 (grub_dma_free): Likewise.
21006 (grub_dma_get_virt): Likewise.
21007 (grub_dma_get_phys): Likewise.
21008 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
21009 (grub_ohci_pci_iter): Use dma32_alloc.
21010 (grub_ohci_transfer): Likewise.
21011 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
21012 (grub_usb_bulk_readwrite): Likewise.
21013 * include/grub/pci.h: Add declarations.
21014
21015 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21016
21017 CS5536 support.
21018
21019 * bus/cs5536.c: New file.
21020 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
21021 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
21022 (cs5536_mod_SOURCES): New variable.
21023 (cs5536_mod_CFLAGS): Likewise.
21024 (cs5536_mod_LDFLAGS): Likewise.
21025 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
21026 machine/pci.h.
21027 (kernel_img_SOURCES): Add bus/cs5536.c.
21028 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
21029 usb_keyboard.mod.
21030 (usb_mod_SOURCES): New variable.
21031 (usb_mod_CFLAGS): New variable.
21032 (usb_mod_LDFLAGS): New variable.
21033 (usbtest_mod_SOURCES): New variable.
21034 (usbtest_mod_CFLAGS): New variable.
21035 (usbtest_mod_LDFLAGS): New variable.
21036 (ohci_mod_SOURCES): New variable.
21037 (ohci_mod_CFLAGS): New variable.
21038 (ohci_mod_LDFLAGS): New variable.
21039 (usbms_mod_SOURCES): New variable.
21040 (usbms_mod_CFLAGS): New variable.
21041 (usbms_mod_LDFLAGS): New variable.
21042 (usb_keyboard_mod_SOURCES): New variable.
21043 (usb_keyboard_mod_CFLAGS): New variable.
21044 (usb_keyboard_mod_LDFLAGS): New variable.
21045 * include/grub/smbus.h: New file.
21046 * include/grub/cs5536.h: New file.
21047
21048 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21049
21050 * util/grub.d/00_header.in: Add safety check to make sure that
21051 ${locale_dir} exists before trying to probe it.
21052
21053 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21054
21055 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
21056 per the GNU Coding Standards; this is now too obscure to be worth
21057 documenting.
21058 (QNX): Likewise.
21059 (chainloader): Remove cross-reference to `SCO UnixWare'.
21060
21061 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21062
21063 * docs/grub.texi (Chain-loading): New section.
21064 (DOS/Windows): New section, borrowed from GRUB Legacy with details
21065 adjusted for GRUB 2.
21066 (SCO UnixWare): Likewise.
21067 (QNX): Likewise.
21068 (chainloader): Add reference to `Block list syntax'.
21069 (drivemap): New section.
21070 (parttool): New section.
21071
21072 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21073
21074 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
21075 the grub shell'.
21076 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
21077 (Installing GRUB using grub-install): Remove reference to the grub
21078 shell; mention `grub-mkimage' and `grub-setup' instead.
21079 (Invoking grub-install): Likewise.
21080 (Interface): Add reference to `Menu entry editor'.
21081 (serial): Remove `--device' option.
21082
21083 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21084
21085 * docs/grub.texi (Configuration): New section, documenting
21086 configuration file generation using grub-mkconfig. I've left a slot
21087 for documenting the full shell scripting format but have not yet
21088 started on writing that up.
21089 (Invoking grub-mkconfig): New section.
21090
21091 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21092
21093 * docs/grub.texi (direntry): Remove grub-terminfo reference.
21094 (GNU GRUB manual): Likewise.
21095 (General commands): Update description of `terminfo' for GRUB 2.
21096
21097 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21098
21099 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
21100 (GRUB_MOD_INIT): Fix capitalisation.
21101 * docs/grub.texi (Command-line and menu entry commands): Document
21102 gettext and gptsync commands.
21103
21104 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21105
21106 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
21107 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
21108
21109 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
21110
21111 Add btrfs probing support, currently only in the single-device case.
21112
21113 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
21114 function.
21115 (grub_guess_root_device): Call find_root_device_from_mountinfo
21116 before looking in /dev.
21117
21118 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21119
21120 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
21121 GRUB_DISK_SIZE_UNKNOWN.
21122 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
21123
21124 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
21125
21126 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
21127 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
21128 corrupted or not synced properly.
21129
21130 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21131
21132 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
21133 Reported by: Seth Goldberg.
21134
21135 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21136
21137 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
21138 addition of dest.
21139 Reported by: Seth Goldberg.
21140
21141 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21142
21143 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
21144 Reported by: Seth Goldberg.
21145
21146 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21147
21148 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
21149 64-bit address as signed on MIPS.
21150
21151 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
21152
21153 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
21154 to the empty string.
21155
21156 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
21157
21158 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
21159
21160 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
21161 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
21162 * kern/misc.c (__enable_execute_stack): Disable on
21163 GRUB_MACHINE_EMU.
21164
21165 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
21166
21167 Make grub-probe work with symbolic links under /dev/mapper as well
21168 as with real block devices. The Linux world seems to be (at best)
21169 in transition here, and GRUB shouldn't get caught in the middle.
21170
21171 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
21172 /dev/mapper.
21173
21174 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
21175
21176 * util/grub-script-check.c (main): Ensure defined behaviour on empty
21177 input files (in which case exit zero).
21178
21179 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
21180
21181 * kern/emu/misc.c (canonicalize_file_name): realpath can still
21182 return NULL for various reasons even if it has a maximum-length
21183 buffer: for example, there might be a symlink loop, or the path
21184 might exceed PATH_MAX. If this happens, return NULL.
21185
21186 2010-05-27 Robert Millan <rmh@gnu.org>
21187
21188 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
21189 partmap module to handle cross-partmap setups.
21190 Reported by Orestes Mas. Gràcies!
21191
21192 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
21193
21194 * util/grub-mkrescue.in: Initialise override_dir rather than
21195 assuming that it's unset or empty in the environment.
21196
21197 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
21198
21199 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
21200 variable index into p_index to suppress a warning with -Wshadow.
21201
21202 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
21203
21204 * INSTALL: Added flex >= 2.5.35 requirement.
21205
21206 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21207
21208 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
21209
21210 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21211
21212 cmostest support.
21213
21214 * commands/i386/cmostest.c: New file.
21215 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
21216 (cmostest_mod_SOURCES): New variable.
21217 (cmostest_mod_CFLAGS): Likewise.
21218 (cmostest_mod_LDFLAGS): Likewise.
21219 * conf/i386-pc.rmk: Likewise.
21220 * docs/grub.texi (Vendor power-on keys): New section.
21221 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
21222 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
21223 and GRUB_BUTTON_CMOS_ADDRESS.
21224 * util/grub.d/00_header.in: Handle powering-on by separate button.
21225
21226 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21227
21228 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
21229 Removed drawing_scrollbar argument. All users updated
21230 Fixes #29792.
21231 Reported by Jo Shields
21232
21233 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21234
21235 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
21236 buffer since gfxterm handles double repaint.
21237
21238 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21239
21240 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
21241 * term/gfxterm.c (real_scroll): Likewise.
21242
21243 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21244
21245 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
21246 before calling BIOS.
21247
21248 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21249
21250 * include/grub/i18n.h: Always enable grub_gettext.
21251
21252 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21253
21254 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
21255 partition naming style.
21256
21257 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
21258
21259 * util/grub-mkconfig.in: Fix handling of -o so that it works when
21260 not the first option.
21261
21262 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
21263
21264 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
21265
21266 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
21267
21268 * util/misc.c: Move inclusion of <limits.h> to ...
21269 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
21270
21271 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
21272
21273 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
21274 Fix merge error in NetBSD code.
21275 (find_partition_start) [__NetBSD__]: Likewise.
21276
21277 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
21278
21279 Fix grub-mkrescue usage unit testing.
21280
21281 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
21282
21283 2010-05-18 Christian Franke <franke@computer.org>
21284
21285 * util/grub.d/10_windows.in: Use path names instead of
21286 drive letters to prevent warning from Cygwin 1.7.
21287 Add drivemap command to menuentry if needed.
21288
21289 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
21290
21291 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
21292 gnumach and gnumach.gz.
21293
21294 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21295
21296 * include/grub/i18n.h (gettext): Inline instead of using #define.
21297 (grub_gettext): Likewise.
21298 (_): Likewise.
21299
21300 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21301
21302 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
21303 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
21304 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
21305 (main): Add a slash after pkglibdirroot.
21306
21307 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21308
21309 * util/grub-install.in: Add missing "in" keyword.
21310
21311 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21312
21313 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
21314 Reported by: Seth Goldberg.
21315
21316 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21317
21318 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
21319
21320 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21321
21322 * configure.ac: Check for Linux device-mapper support.
21323
21324 * util/hostdisk.c (device_is_mapped): New function.
21325 (find_partition_start): New function, partly broken out from
21326 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
21327 device-mapper support added.
21328 (linux_find_partition): Use find_partition_start.
21329 (convert_system_partition_to_system_disk): Add `st' argument.
21330 Support Linux /dev/mapper/* devices if device-mapper support is
21331 available; only DM-RAID devices are understood at present.
21332 (find_system_device): Add `st' argument. Pass it to
21333 convert_system_partition_to_system_disk.
21334 (grub_util_biosdisk_get_grub_dev): Pass stat result to
21335 find_system_device and convert_system_partition_to_system_disk. Use
21336 find_partition_start.
21337
21338 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
21339 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
21340 * util/deviceiter.c [__linux__]: Define MINOR.
21341 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
21342 * util/mkdevicemap.c (grub_putchar): New function.
21343 (grub_getkey): New function.
21344 (grub_refresh): New function.
21345 (main): Set debug=all if -v -v is used.
21346
21347 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21348
21349 Fix build with non-GNU libcs.
21350
21351 * util/misc.c (canonicalize_file_name): Move to ...
21352 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
21353 grub_make_system_path_relative_to_its_root.
21354
21355 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21356
21357 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
21358 we handle finding grub-mkimage. Default to finding grub-mkimage in
21359 ${bindir} with program_transform_name applied, and provide a
21360 --grub-mkimage option to override this.
21361
21362 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21363
21364 Remove grub-mkisofs.
21365
21366 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
21367 (grub_mkisofs_SOURCES): Removed.
21368 (grub_mkisofs_CFLAGS): Removed.
21369 * util/mkisofs/defaults.h: Removed.
21370 * util/mkisofs/eltorito.c: Likewise.
21371 * util/mkisofs/exclude.h: Likewise.
21372 * util/mkisofs/hash.c: Likewise.
21373 * util/mkisofs/include/: Likewise.
21374 * util/mkisofs/include/fctldefs.h: Likewise.
21375 * util/mkisofs/include/mconfig.h: Likewise.
21376 * util/mkisofs/include/prototyp.h: Likewise.
21377 * util/mkisofs/include/statdefs.h: Likewise.
21378 * util/mkisofs/iso9660.h: Likewise.
21379 * util/mkisofs/joliet.c: Likewise.
21380 * util/mkisofs/match.c: Likewise.
21381 * util/mkisofs/match.h: Likewise.
21382 * util/mkisofs/mkisofs.c: Likewise.
21383 * util/mkisofs/mkisofs.h: Likewise.
21384 * util/mkisofs/msdos_partition.h: Likewise.
21385 * util/mkisofs/multi.c: Likewise.
21386 * util/mkisofs/name.c: Likewise.
21387 * util/mkisofs/rock.c: Likewise.
21388 * util/mkisofs/tree.c: Likewise.
21389 * util/mkisofs/write.c: Likewise.
21390
21391 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21392
21393 Unify grub-mkimage accross platforms.
21394
21395 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
21396 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
21397 (grub_mkelfimage_SOURCES): Removed.
21398 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
21399 (util/grub-mkimage.c_DEPENDENCIES): .. this.
21400 (bin_UTILITIES): Add grub-mkimage.
21401 (grub_mkimage_SOURCES): New variable.
21402 (kernel_img_HEADERS): Remove machine/kernel.h.
21403 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
21404 (pkglib_PROGRAMS): Add kernel.img.
21405 (kernel_img_HEADERS): Add machine/kernel.h.
21406 (kernel_img_FORMAT): Removed.
21407 (bin_UTILITIES): Remove grub-mkimage.
21408 (grub_mkimage_SOURCES): Removed.
21409 (grub_mkimage_CFLAGS): Likewise.
21410 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21411 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
21412 (pkglib_PROGRAMS): Add kernel.img.
21413 (bin_UTILITIES): Remove grub-mkimage.
21414 (grub_mkimage_SOURCES): Removed.
21415 (grub_mkimage_CFLAGS): Likewise.
21416 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21417 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
21418 (pkglib_PROGRAMS): Add kernel.img.
21419 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
21420 (pkglib_PROGRAMS): Add kernel.img.
21421 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
21422 (grub_mkimage_SOURCES): Removed.
21423 (grub_mkimage_CFLAGS): Likewise.
21424 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21425 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
21426 (pkglib_PROGRAMS): Add kernel.img.
21427 (bin_UTILITIES): Remove grub-mkimage.
21428 (grub_mkimage_SOURCES): Removed.
21429 (grub_mkimage_CFLAGS): Likewise.
21430 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21431 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
21432 (grub_mkimage_SOURCES): Removed.
21433 (grub_mkimage_CFLAGS): Likewise.
21434 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21435 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
21436 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
21437 (grub_pe32_optional_header): ... this.
21438 (grub_pe64_optional_header): ... and this. All users updated.
21439 (GRUB_PE32_PE32_MAGIC): Split into ..
21440 (GRUB_PE32_PE32_MAGIC): .. this.
21441 (GRUB_PE32_PE64_MAGIC): .. and this.
21442 (GRUB_PE32_SIGNATURE_SIZE): New definition.
21443 * include/grub/elf.h (PT_GNU_STACK): New definition.
21444 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
21445 * include/grub/i386/efi/kernel.h: Likewise.
21446 * include/grub/i386/kernel.h: Likewise.
21447 * include/grub/i386/pc/kernel.h: Likewise.
21448 * include/grub/i386/qemu/boot.h: Likewise.
21449 * include/grub/mips/kernel.h: Likewise.
21450 * include/grub/mips/qemu-mips/kernel.h: Likewise.
21451 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21452 * include/grub/powerpc/kernel.h: Likewise.
21453 * include/grub/sparc64/ieee1275/boot.h: Likewise.
21454 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21455 * include/grub/sparc64/kernel.h: Likewise.
21456 * include/grub/x86_64/efi/kernel.h: Likewise.
21457 * include/grub/x86_64/kernel.h: Likewise.
21458 * include/grub/offsets.h: New file.
21459 * include/grub/kernel.h (grub_module_info): Split into ...
21460 (grub_module_info32): ... this.
21461 (grub_module_info64): ... and this.
21462 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
21463 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
21464 (grub_boot_blocklist): Moved from here ...
21465 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
21466 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
21467 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
21468 * include/grub/types.h (grub_target_to_host16): Removed.
21469 (grub_target_to_host32): Likewise.
21470 (grub_target_to_host64): Likewise.
21471 (grub_host_to_target16): Likewise.
21472 (grub_host_to_target32): Likewise.
21473 (grub_host_to_target64): Likewise.
21474 (grub_host_to_target_addr): Likewise.
21475
21476 Support grub-mkrescue for efi, coreboot and qemu.
21477
21478 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
21479 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
21480 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
21481 * util/grub-mkrawimage.c: Moved from here ...
21482 * util/grub-mkimage.c: ... here. All users updated.
21483 (ALIGN_ADDR): Use image_target.
21484 (TARGET_NO_FIELD): New const.
21485 (image_target_desc): New type.
21486 (image_targets): New array.
21487 (grub_target_to_host64): Use image_target.
21488 (grub_target_to_host32): Likewise.
21489 (grub_target_to_host16): Likewise.
21490 (grub_host_to_target64): Likewise.
21491 (grub_host_to_target32): Likewise.
21492 (grub_host_to_target16): Likewise.
21493 (grub_host_to_target_addr): Likewise.
21494 (generate_image): Handle multiimage.
21495 (main): Require -O parameter. All users updated.
21496 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
21497 util/efi/grub-mkimage.c
21498 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
21499 New option --rom-directory.
21500 Use xorriso.
21501 * util/i386/efi/grub-mkimage.c: Removed.
21502 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
21503 (grub_target_to_host32): Likewise.
21504 (grub_target_to_host64): Likewise.
21505 (grub_host_to_target16): Likewise.
21506 (grub_host_to_target32): Likewise.
21507 (grub_host_to_target64): Likewise.
21508 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
21509 (grub_target_to_host32): Likewise.
21510 (grub_target_to_host64): Likewise.
21511 (grub_host_to_target16): Likewise.
21512 (grub_host_to_target32): Likewise.
21513 (grub_host_to_target64): Likewise.
21514
21515 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
21516
21517 Source tree is reorganized for emu build.
21518
21519 * include/grub/util/console.h: Move from here...
21520 * include/grub/emu/console.h: ...to here.
21521 * include/grub/util/getroot.h: Move from here...
21522 * include/grub/emu/getroot.h: ...to here.
21523 * include/grub/util/hostdisk.h: Move from here...
21524 * include/grub/emu/hostdisk.h: ...to here.
21525 * util/console.c: Move from here...
21526 * kern/emu/console.c: ...to here.
21527 * util/getroot.c: Move from here...
21528 * kern/emu/getroot.c: ...to here.
21529 * util/grub-emu.c: Move from here...
21530 * kern/emu/main.c: ...to here.
21531 * util/hostdisk.c: Move from here...
21532 * kern/emu/hostdisk.c: ...to here.
21533 * util/hostfs.c: Move from here...
21534 * kern/emu/hostfs.c: ...to here.
21535 * util/mm.c: Move from here...
21536 * kern/emu/mm.c: ...to here.
21537 * util/pci.c: Move from here...
21538 * bus/emu/pci.c: ...to here.
21539 * util/sdl.c: Move from here...
21540 * video/emu/sdl.c: ...to here.
21541 * util/time.c: Move from here...
21542 * kern/emu/time.c: ...to here.
21543 * util/usb.c: Move from here...
21544 * bus/usb/emu/usb.c: ...to here.
21545
21546 * include/grub/emu/misc.h: New header for grub-emu functions.
21547 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
21548
21549 * conf/any-emu.rmk: Rule updates for above renames.
21550 * conf/common.rmk: Likewise.
21551 * conf/i386-pc.rmk: Likewise.
21552 * conf/i386-qemu.rmk: Likewise.
21553 * conf/mips.rmk: Likewise.
21554 * conf/sparc64-ieee1275.rmk: Likewise.
21555 * conf/x86-efi.rmk: Likewise.
21556
21557 * disk/lvm.h: #include updates for above renames.
21558 * util/grub-mkrelpath.c: Likewise.
21559 * util/grub-probe.c: Likewise.
21560 * util/i386/pc/grub-setup.c: Likewise.
21561 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21562 * kern/emu/console.c: Likewise.
21563 * kern/emu/getroot.c: Likewise.
21564 * kern/emu/hostdisk.c: Likewise.
21565 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
21566
21567 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
21568 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
21569 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
21570 * util/misc.c: Remove grub-emu functions.
21571
21572 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
21573
21574 Fix gfxmenu crash.
21575 Reported by: Thorsten Grützmacher.
21576
21577 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
21578 timeout hook.
21579 (circprog_set_property): Register and unregister timeout hook.
21580 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
21581 (label_destroy): Free template. and unregister hook.
21582 (label_set_state): New function.
21583 (label_set_property): Handle templates and hooks.
21584 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
21585 timeout hook.
21586 (progress_bar_set_property): Register and unregister timeout hook.
21587 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
21588 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
21589 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
21590 (update_timeout_visit): Removed.
21591 (update_timeouts): New function.
21592 (redraw_timeouts): Likewise.
21593 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
21594 (grub_gfxmenu_clear_timeout): Likewise.
21595 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
21596 (grub_gfxmenu_timeout_notify): Likewise.
21597 (grub_gfxmenu_timeout_notifications): New external variable.
21598 (grub_gfxmenu_timeout_register): New function.
21599 (grub_gfxmenu_timeout_unregister): Likewise.
21600
21601 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
21602
21603 Transform (broken) vga terminal into (working) vga video driver.
21604
21605 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
21606 video/i386/pc/vga.c.
21607 * include/grub/video.h (grub_video_driver_id):
21608 Add GRUB_VIDEO_DRIVER_VGA.
21609 * term/i386/pc/vga.c: Renamed to ...
21610 * video/i386/pc/vga.c: ...this
21611 (DEBUG_VGA): Removed.
21612 (CHAR_WIDTH): Likewise.
21613 (CHAR_HEIGHT): Likewise.
21614 (TEXT_WIDTH): Likewise.
21615 (TEXT_HEIGHT): Likewise.
21616 (DEFAULT_FG_COLOR): Likewise.
21617 (DEFAULT_BG_COLOR): Likewise.
21618 (colored_char): Likewise.
21619 (xpos): Likewise.
21620 (ypos): Likewise.
21621 (cursor_state): Likewise.
21622 (fg_color): Likewise.
21623 (bg_color): Likewise.
21624 (text_buf): Likewise.
21625 (page): Likewise.
21626 (font): Likewise.
21627 (framebuffer): New variable.
21628 (set_read_map): Disabled.
21629 (setup): New variable.
21630 (is_target): Likewise.
21631 (grub_vga_mod_init): Likewise.
21632 (grub_vga_mod_fini): Likewise.
21633 (check_vga_mem): Likewise.
21634 (write_char): Likewise.
21635 (write_cursor): Likewise.
21636 (scroll_up): Likewise.
21637 (grub_vga_putchar): Likewise.
21638 (grub_vga_getcharwidth): Likewise.
21639 (grub_vga_getwh): Likewise.
21640 (grub_vga_getxy): Likewise.
21641 (grub_vga_gotoxy): Likewise.
21642 (grub_vga_cls): Likewise.
21643 (grub_vga_setcolorstate): Likewise.
21644 (grub_vga_setcursor): Likewise.
21645 (grub_video_vga_init): New function.
21646 (grub_video_vga_setup): Likewise.
21647 (grub_video_vga_fini): Likewise.
21648 (update_target): Likewise.
21649 (grub_video_vga_blit_bitmap): Likewise.
21650 (grub_video_vga_blit_render_target): Likewise.
21651 (grub_video_vga_set_active_render_target): Likewise.
21652 (grub_video_vga_get_active_render_target): Likewise.
21653 (grub_video_vga_swap_buffers): Likewise.
21654 (grub_video_vga_set_palette): Likewise.
21655 (grub_video_vga_get_info_and_fini): Likewise.
21656 (grub_vga_term): Removed.
21657 (grub_video_vga_adapter): New variable.
21658 (GRUB_MOD_INIT): Register a video driver instead of terminal.
21659 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
21660
21661 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21662
21663 * video/readers/jpeg.c: Indented.
21664
21665 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21666
21667 Various jpeg cleanups.
21668
21669 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
21670 (grub_jpeg_decode_quan_table): Use sizeof.
21671 (grub_jpeg_decode_du): Use ARRAY_SIZE.
21672
21673 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
21674
21675 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
21676 tables. Ignore non-last ac bit.
21677 (grub_jpeg_decode_quan_table): Likewise.
21678
21679 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21680
21681 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
21682 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
21683 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21684 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
21685 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
21686 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
21687
21688 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21689
21690 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
21691 error.
21692
21693 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21694
21695 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
21696
21697 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21698
21699 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
21700 condition.
21701
21702 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21703
21704 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
21705 part.
21706
21707 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21708
21709 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
21710 pointers.
21711
21712 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21713
21714 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
21715
21716 2010-05-01 Christian Franke <franke@computer.org>
21717
21718 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
21719 Remove broken Cygwin path conversion.
21720 * util/misc.c: [__CYGWIN__] Add include and define.
21721 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
21722 for Cygwin 1.7.
21723 (make_system_path_relative_to_its_root): Simplify loop, replace early
21724 return by break.
21725 [__CYGWIN__] Add conversion to win32 path.
21726 Include "/" case in trailing slash removal.
21727
21728 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21729
21730 * kern/main.c (grub_load_config): Fix copy-pasted comment.
21731 Reported by: Seth Goldberg
21732
21733 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21734
21735 * commands/help.c (grub_cmd_help): Fix a typo.
21736 Reported by: Seth Goldberg
21737
21738 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21739
21740 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
21741 name and add N_.
21742 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
21743 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
21744 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
21745 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
21746 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
21747 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
21748 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
21749 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
21750 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
21751 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
21752 * normal/context.c (GRUB_MOD_INIT): Likewise.
21753 * normal/main.c (GRUB_MOD_INIT): Likewise.
21754 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
21755 * term/serial.c (GRUB_MOD_INIT): Likewise.
21756 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
21757
21758 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21759
21760 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
21761 extra == 0.
21762
21763 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21764
21765 * commands/iorw.c: New file.
21766 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
21767 (iorw_mod_SOURCES): New variable.
21768 (iorw_mod_CFLAGS): Likewise.
21769 (iorw_mod_LDFLAGS): Likewise.
21770
21771 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21772
21773 Hotkey support
21774
21775 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
21776 * normal/main.c (hotkey_aliases): New variable.
21777 (grub_normal_add_menu_entry): Parse "--hotkey".
21778 * normal/menu_text.c (run_menu): Handle hotkeys.
21779
21780 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21781
21782 * kern/i386/coreboot/init.c (grub_machine_init): Call
21783 grub_machine_mmap_init on qemu.
21784
21785 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21786
21787 * boot/i386/qemu/boot.S: Add a missing .code16.
21788
21789 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21790
21791 Use LBIO on coreboot.
21792
21793 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
21794 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
21795 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
21796 New declaration.
21797 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
21798 grub_machine_mmap_init on coreboot.
21799 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
21800 GRUB_LINUXBIOS_MEMBER_LINK.
21801 (grub_machine_mmap_iterate): Fix declaration.
21802 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
21803
21804 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21805
21806 Split coreboot and multiboot ports.
21807
21808 * conf/i386-multiboot.rmk: New file.
21809 * configure.ac: Add multiboot port.
21810 * include/grub/i386/multiboot/boot.h: New file.
21811 * include/grub/i386/multiboot/console.h: Likewise.
21812 * include/grub/i386/multiboot/init.h: Likewise.
21813 * include/grub/i386/multiboot/kernel.h: Likewise.
21814 * include/grub/i386/multiboot/loader.h: Likewise.
21815 * include/grub/i386/multiboot/memory.h: Likewise.
21816 * include/grub/i386/multiboot/serial.h: Likewise.
21817 * include/grub/i386/multiboot/time.h: Likewise.
21818 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
21819 * loader/multiboot.c: Likewise.
21820 * loader/multiboot_mbi2.c: Likewise.
21821 * util/grub-mkrescue.in: Generate multiboot rescue.
21822
21823 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21824
21825 * kern/parser.c (grub_parser_execute): Cope with read-only config.
21826
21827 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21828
21829 Merge handling of input and output terminals. Fix a hang.
21830
21831 * commands/terminal.c (abstract_terminal): New struct.
21832 (handle_command): New function. Based on grub_cmd_terminal_input.
21833 (grub_cmd_terminal_input): Use handle_command.
21834 (grub_cmd_terminal_output): Use handle_command.
21835
21836 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
21837
21838 Fix comment handling.
21839
21840 * tests/grub_script_comments.in: New testcase.
21841 * conf/tests.rmk: Rules for new testcase.
21842 * script/yylex.l: Updated flex rules.
21843
21844 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
21845
21846 * docs/grub.texi (play): Document that zero pitches produce rests.
21847 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
21848 if argc is 1.
21849
21850 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
21851
21852 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
21853 autogen issues.
21854
21855 2010-04-26 Christian Franke <franke@computer.org>
21856
21857 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
21858 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
21859 (grub_get_prefix): Remove function.
21860 * util/grub-emu.c (main): Replace grub_get_prefix () call by
21861 make_system_path_relative_to_its_root ().
21862 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
21863
21864 2010-04-24 Christian Franke <franke@computer.org>
21865
21866 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
21867 (kernel_img_LDFLAGS): Remove -static-libgcc.
21868
21869 2010-04-24 Christian Franke <franke@computer.org>
21870
21871 * configure.ac: Do not CHECK_BSS_START_SYMBOL
21872 and CHECK_END_SYMBOL if grub-emu is built.
21873 Unset TARGET_OBJ2ELF if grub-emu is built
21874 without module support.
21875
21876 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
21877
21878 Nilfs2 support.
21879
21880 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
21881 (grub_fstest_SOURCES): Likewise.
21882 (pkglib_MODULES): Add nilfs2.mod.
21883 (nilfs2_mod_SOURCES): New variable.
21884 (nilfs2_mod_CFLAGS): Likewise.
21885 (nilfs2_mod_LDFLAGS): Likewise.
21886 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21887 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21888 * fs/nilfs2.c: New file.
21889
21890 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
21891
21892 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
21893 is not supported.
21894
21895 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
21896
21897 Add grub-mkconfig support for NetBSD.
21898
21899 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
21900 * util/grub-mkconfig.in: export new NetBSD specific variables.
21901 * po/POTFILES-shell: added 10_netbsd.in.
21902 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
21903
21904 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
21905
21906 Fix emu build with grub-emu-pci and grub-emu-modules.
21907
21908 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
21909 functions.
21910 * include/grub/libpciaccess.h: New file.
21911 * conf/any-emu.rmk: Update kernel headers for emu build.
21912
21913 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21914
21915 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
21916
21917 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21918
21919 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
21920
21921 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21922
21923 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
21924 Retrieve chosen/bootpath if bootpath isn't hardcoded.
21925 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
21926 util/ieee1275/ofpath.c.
21927 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
21928 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
21929 * include/grub/sparc64/ieee1275/boot.h
21930 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
21931 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
21932 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
21933 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
21934 const char *.
21935 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
21936 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
21937 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
21938 install.
21939
21940 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21941
21942 * util/grub-mkconfig.in: Corrected two == equality tests.
21943 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
21944 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
21945 expect a number appended to it.
21946 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
21947 expects a number appended to it.
21948
21949 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21950
21951 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
21952
21953 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21954
21955 * util/hostdisk.c (make_device_name): Change to new partition naming.
21956
21957 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
21958
21959 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
21960
21961 2010-04-17 Christian Franke <franke@computer.org>
21962
21963 * Makefile.in: Add missing localedir setting.
21964
21965 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
21966
21967 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
21968 mistake in r2156. Noticed by Anthony Fok.
21969
21970 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
21971 @localedir@.
21972 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
21973
21974 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
21975
21976 Fix a spurious, uninitialized variable warning.
21977
21978 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
21979 Initialize variable, shdr.
21980 (grub_freebsd_load_elfmodule): Likewise.
21981 (grub_freebsd_load_elf_meta): Likewise.
21982
21983 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
21984
21985 Fix for escaped dollar in double quoted strings.
21986
21987 * script/yylex.l: Updated flex rules.
21988 * conf/tests.rmk: Rule for new testcase.
21989 * tests/grub_script_dollar.in: New testcase.
21990
21991 2010-04-13 Carles Pina i Estany <carles@pina.cat>
21992 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
21993
21994 Enclose all translated strings in grub.cfg in single quotes, and
21995 escape them appropriately (Ubuntu bug #552921).
21996
21997 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
21998 * util/grub.d/10_hurd.in: Use it.
21999 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
22000 * util/grub.d/10_linux.in (linux_entry): Likewise.
22001
22002 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22003
22004 Fix cygwin compilation.
22005
22006 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
22007 * include/grub/misc.h (__register_frame_info)
22008 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
22009 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
22010 * kern/misc.c (__register_frame_info)
22011 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
22012 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
22013
22014 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22015
22016 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
22017
22018 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22019
22020 Unify libgcc processing.
22021
22022 * Makefile.in (kernel_img_LDFLAGS): New variable.
22023 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
22024 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
22025 overwriting.
22026 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
22027 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
22028 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
22029 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
22030 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
22031 overwriting. Remove -lgcc and -static-libgcc
22032 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
22033 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
22034 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
22035 (kernel_img_LDFLAGS): Append instead of overwriting.
22036 Remove -lgcc and -static-libgcc
22037 * conf/sparc64-ieee1275.rmk: Likewise.
22038 * include/grub/powerpc/libgcc.h: Move to ...
22039 * include/grub/libgcc.h: .. this.
22040 * include/grub/libgcc.h: Don't export most of the function on x86.
22041 (__bswapsi2): New export.
22042 (__bswapdi2): Likewise.
22043 * include/grub/mips/libgcc.h: Removed.
22044 * include/grub/sparc64/libgcc.h: Likewise.
22045
22046 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22047
22048 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
22049 disk_info_msg (conflicts with gettexting into languages with cases).
22050
22051 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
22052
22053 Add grub-probe support for NetBSD.
22054
22055 * util/getroot.c (find_root_device): Convert block device to
22056 character device on NetBSD.
22057 * util/probe.c (probe): Require character device on NetBSD.
22058 * util/hostdisk.c: NetBSD specific headers.
22059 (configure_device_driver): new function to tune device driver
22060 parameters (currently only for NetBSD floppy driver).
22061 (grub_util_biosdisk_open): NetBSD specific code (get disk size
22062 via disklabel ioctl).
22063 (open_device): call configure_device_driver on NetBSD.
22064 (convert_system_partition_to_system_disk): NetBSD specific code.
22065 (device_is_wholedisk): Likewise.
22066 (grub_util_biosdisk_get_grub_dev): Likewise.
22067 (make_device_name): Fixed a typo in bsd_part_str.
22068 * configure.ac: check for opendisk() and getrawpartition() on
22069 NetBSD and set LIBUTIL.
22070 * Makefile.in: add LIBUTIL to LIBS.
22071
22072 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22073
22074 Documentation fix.
22075
22076 * util/grub-script-check.c: Better help message.
22077
22078 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22079
22080 Fix FreeBSD build.
22081
22082 * configure.ac: Flex version check.
22083 * conf/common.rmk: Add -Wno-error to sh.mod.
22084 * script/yylex.l: Remove all #pragma.
22085
22086 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22087
22088 * include/grub/util/misc.h (canonicalise_file_name): Add missing
22089 prototype.
22090 Reported by: Seth Goldberg.
22091
22092 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22093
22094 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
22095 Rename "module" to "module2".
22096 Reported by: Seth Goldberg.
22097
22098 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22099
22100 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
22101 EXPORT_FUNC.
22102 Reported by: Seth Goldberg.
22103
22104 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22105
22106 * lib/posix_wrap/locale.h: Add missing file.
22107 Reported by: Seth Goldberg.
22108
22109 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22110
22111 grub-emu module load support.
22112
22113 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
22114 NO_DYNAMIC_MODULES switched to this.
22115 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
22116 (CFLAGS): Likewise.
22117 * conf/any-emu.rmk: Generate symlist.
22118 (kernel_img_HEADERS): Add util/datetime.h.
22119 (kernel_img_HEADERS) [sdl]: Add sdl.h.
22120 (kernel_img_HEADERS) [libusb]: Add libusb.h.
22121 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
22122 kern/$(target_cpu)/cache.S.
22123 * configure.ac (grub-emu-modules): New option.
22124 * genmk.rb: Handle multiple source lists.
22125 * include/grub/sdl.h: New file.
22126 * include/grub/libusb.h: Likewise.
22127 * util/grub-emu.c (main): Hanle (host) root.
22128 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
22129 GRUB_ERR_UNKNOWN_DEVICE.
22130 * util/misc.c: Move mm functions to ...
22131 * util/mm.c: ... here. All users updated.
22132
22133 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22134
22135 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
22136 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
22137 missing files.
22138 (maintainer-clean): Remove libgcrypt-grub.
22139
22140 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22141
22142 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
22143
22144 2010-04-09 EFI Coder <eficoder@hotmail.com>
22145
22146 * normal/menu_text.c (print_message): Clean up the message and show
22147 the Fn information when on EFI
22148 * term/efi/console.c (grub_console_checkkey): Add F4 support.
22149
22150 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22151
22152 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
22153 All users updated.
22154 * normal/crypto.c (read_crypto_list): Likewise.
22155 * normal/dyncmd.c (read_command_list): Likewise.
22156 * normal/term.c (read_terminal_list): Likewise.
22157 * normal/main.c (read_lists): Use explicit prefix.
22158 (read_lists_hook): Use read_lists.
22159 (grub_normal_execute): Likewise.
22160
22161 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22162
22163 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
22164 Reported by: Thomas Schmitt.
22165 Add -no-emul-boot to grub-mkisofs parameters.
22166
22167 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22168
22169 * font/font.c: Indented.
22170
22171 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22172
22173 Elif support to GRUB script (by Deepak Vankadaru).
22174
22175 * tests/grub_script_if.in: New testcase.
22176 * conf/tests.rmk: Rule for new testcase.
22177 * script/parser.y: Grammar rules for elif.
22178
22179 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22180
22181 While and until loops support to GRUB script.
22182
22183 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
22184 (grub_script_create_cmdwhile): New function prototype.
22185 (grub_script_execute_cmdwhile): New function prototype.
22186 * script/execute.c (grub_script_execute_cmdwhile): New function.
22187 * script/parser.y (command): New commands.
22188 (whilecmd): New grammar rule.
22189 (untilcmd): New grammar rule.
22190 * script/script.c (grub_script_create_cmdwhile): New function.
22191 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
22192 function.
22193
22194 * tests/grub_script_while1.in: New testcase.
22195 * conf/tests.rmk: Rule for new testcase.
22196
22197 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22198
22199 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
22200 as *.jpg.
22201
22202 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
22203
22204 GRUB_BACKGROUND support.
22205
22206 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
22207 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
22208
22209 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22210
22211 Load fonts and modules for gfxmenu in grub-mkconfig.
22212 Idea by: Mario Vazquez
22213
22214 * util/grub.d/00_header.in: Load pf2 and image modules.
22215
22216 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22217
22218 grub-mkconfig multiple terminal support.
22219
22220 * util/grub-mkconfig.in: Handle multiple terminals correctly.
22221 * util/grub.d/00_header.in: Likewise.
22222
22223 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22224
22225 * Makefile.in: Specify files explicitly instead of using $< and $@ since
22226 we use cd $(srcdir).
22227
22228 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
22229
22230 * util/grub.d/10_linux.in: Only use the first word of
22231 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
22232 spaces in GRUB_DISTRIBUTOR.
22233 * util/grub.d/10_kfreebsd.in: Likewise.
22234 * util/grub.d/10_hurd.in: Likewise.
22235
22236 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
22237
22238 Fix unit testing framework for Qemu 0.12.
22239
22240 * tests/util/grub-shell.in: Remove -serial stdio option.
22241
22242 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
22243
22244 POSIX header file wrappers.
22245
22246 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
22247 equivalents.
22248 * lib/posix_wrap/ctype.h: Likewise.
22249 * lib/posix_wrap/errno.h: Likewise.
22250 * lib/posix_wrap/langinfo.h: Likewise.
22251 * lib/posix_wrap/limits.h: Likewise.
22252 * lib/posix_wrap/localcharset.h: Likewise.
22253 * lib/posix_wrap/stdint.h: Likewise.
22254 * lib/posix_wrap/stdio.h: Likewise.
22255 * lib/posix_wrap/stdlib.h: Likewise.
22256 * lib/posix_wrap/string.h: Likewise.
22257 * lib/posix_wrap/sys/types.h: Likewise.
22258 * lib/posix_wrap/unistd.h: Likewise.
22259 * lib/posix_wrap/wchar.h: Likewise.
22260 * lib/posix_wrap/wctype.h: Likewise.
22261 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
22262 (grub_script.yy.h): Likewise.
22263 * script/yylex.l: Remove POSIX emulation #defines.
22264 * Makefile.in (POSIX_CFLAGS): New variable.
22265 (GNULIB_UTIL_CFLAGS): Likewise.
22266
22267 Regexp support.
22268
22269 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
22270 (regexp_mod_SOURCES): New variable.
22271 (regexp_mod_CFLAGS): Likewise.
22272 (regexp_mod_LDFLAGS): Likewise.
22273 * commands/regexp.c: New file.
22274 * gnulib/regcomp.c: New file. Imported from gnulib.
22275 * gnulib/regex.c: Likewise.
22276 * gnulib/regex_internal.c: Likewise.
22277 * gnulib/regex_internal.h: Likewise.
22278 * gnulib/regexec.c: Likewise.
22279 * gnulib/regex.h: Likewise.
22280
22281 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22282
22283 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
22284 unsupported video mode types.
22285
22286 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22287
22288 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
22289
22290 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22291
22292 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
22293 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
22294
22295 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
22296
22297 Remove unused grub_vga_get_font.
22298
22299 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
22300 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
22301
22302 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22303
22304 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
22305 * include/grub/misc.h: Likewise.
22306
22307 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22308
22309 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
22310 for which failure is fatal.
22311
22312 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22313
22314 * util/grub-install.in: Use mkdir -p to create grub directory.
22315 * util/i386/efi/grub-install.in: Likewise.
22316 * util/ieee1275/grub-install.in: Likewise.
22317
22318 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22319
22320 * Makefile.in (LEX): new variable.
22321
22322 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22323
22324 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
22325 `=' and added double quotes on operands of this equality test.
22326
22327 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22328
22329 * Makefile.in (uninstall): Remove a leftover debug echo.
22330 Reported by: Grégoire Sutre
22331
22332 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22333
22334 MIPS multiboot2 support.
22335
22336 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
22337 (multiboot2_mod_SOURCES): New variable.
22338 (multiboot2_mod_CFLAGS): Likewise.
22339 (multiboot2_mod_LDFLAGS): Likewise.
22340 (multiboot2_mod_ASFLAGS): Likewise.
22341 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
22342 definition.
22343 (MULTIBOOT_ENTRY_REGISTER): Likewise.
22344 (MULTIBOOT_MBI_REGISTER): Likewise.
22345 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
22346 (MULTIBOOT_ELF32_MACHINE): Likewise.
22347 (MULTIBOOT_ELF64_MACHINE): Likewise.
22348 * include/grub/mips/multiboot.h: New file.
22349 * include/grub/video.h (grub_video_driver_id): New type
22350 GRUB_VIDEO_DRIVER_SM712.
22351 (grub_video_get_info_and_fini): Export.
22352 (grub_video_get_palette): Likewise.
22353 (grub_video_get_driver_id): Likewise.
22354 * include/multiboot2.h: Resynced with spec.
22355 * loader/i386/multiboot.c: Moved from here ...
22356 * loader/multiboot.c: ... here. All users updated.
22357 (grub_multiboot_boot): Use platform-specific macros.
22358 * loader/i386/multiboot_elfxx.c: Moved from here ...
22359 * loader/multiboot_elfxx.c: ... here. All users updated.
22360 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
22361 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
22362 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
22363
22364 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
22365
22366 Import gnulib argp module.
22367
22368 * gnulib/argp-ba.c: New file.
22369 * gnulib/argp-eexst.c: Likewise.
22370 * gnulib/argp-fmtstream.c: Likewise.
22371 * gnulib/argp-fmtstream.h: Likewise.
22372 * gnulib/argp-fs-xinl.c: Likewise.
22373 * gnulib/argp-help.c: Likewise.
22374 * gnulib/argp-namefrob.h: Likewise.
22375 * gnulib/argp-parse.c: Likewise.
22376 * gnulib/argp-pin.c: Likewise.
22377 * gnulib/argp-pv.c: Likewise.
22378 * gnulib/argp-pvh.c: Likewise.
22379 * gnulib/argp-version-etc.c: Likewise.
22380 * gnulib/argp-version-etc.h: Likewise.
22381 * gnulib/argp-xinl.c: Likewise.
22382 * gnulib/argp.h: Likewise.
22383
22384 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22385
22386 * kern/device.c (grub_device_iterate): Clear errors after failed
22387 opening device.
22388
22389 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22390
22391 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
22392 returned by firmware.
22393
22394 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
22395
22396 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
22397 compilation on coreboot and qemu
22398
22399 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22400
22401 * include/multiboot2.h: Resync with spec.
22402
22403 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22404
22405 Multiboot2 tag support
22406
22407 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
22408 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
22409 Remove loader/multiboot_loader.c.
22410 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
22411 (grub_multiboot2_real_boot): Likewise.
22412 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
22413 (grub_get_multiboot_mmap_count): New proto.
22414 (grub_fill_multiboot_mmap): Likewise.
22415 (grub_multiboot_set_video_mode): Likewise.
22416 (grub_multiboot_set_console): Likewise.
22417 (grub_multiboot_load): Likewise.
22418 (grub_multiboot_load_elf): Likewise.
22419 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
22420 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
22421 * include/multiboot.h: Resynced with specification.
22422 * include/multiboot2.h: Resynced with specification.
22423 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
22424 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
22425 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
22426 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
22427 users updated.
22428 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
22429 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
22430 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
22431 Removed.
22432 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
22433 Moved from here...
22434 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
22435 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22436 Moved from here...
22437 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
22438 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
22439 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
22440 All users updated.
22441 * loader/i386/multiboot_mbi2.c: New file.
22442
22443 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22444
22445 Resync with gnulib.
22446
22447 * Makefile.in (GNULIB_CFLAGS): New variable.
22448 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
22449 (grub_script_check_CFLAGS): New variable.
22450 * gnulib/alloca.h: Resync with gnulib.
22451 * gnulib/error.c: Likewise.
22452 * gnulib/error.h: Likewise.
22453 * gnulib/fnmatch.c: Likewise.
22454 * gnulib/fnmatch_loop.c: Likewise.
22455 * gnulib/getdelim.c: Likewise.
22456 * gnulib/getline.c: Likewise.
22457 * gnulib/getopt.c: Likewise.
22458 * gnulib/getopt1.c: Likewise.
22459 * gnulib/getopt_int.h: Likewise.
22460 * gnulib/gettext.h: Likewise.
22461 * gnulib/progname.c: Likewise.
22462 * gnulib/progname.h: Likewise.
22463
22464 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
22465
22466 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
22467 which is the case with --disabled-nls.
22468
22469 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
22470 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
22471 * util/misc.c: Likewise.
22472 * util/mkisofs/mkisofs.c: Likewise.
22473 * util/mkisofs/mkisofs.h: Likewise.
22474
22475 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22476
22477 Simplify Apple CC support.
22478
22479 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
22480 Add 0 byte at the end not to have a symbol with empty target.
22481 * mmap/i386/pc/mmap_helper.S: Likewise.
22482 * genmk.rb: Ignore errors 2030 and 2050.
22483 * kern/i386/pc/startup.S: Use LOCAL when possible.
22484
22485 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
22486
22487 Testcase and the fix for final semicolon on cmdline.
22488
22489 * tests/grub_script_final_semicolon.in: New testcase.
22490 * conf/tests.rmk: Rules for the new testcase.
22491 * script/parser.y: Grammar fix.
22492
22493 2010-03-26 BVK Chaitanya <bvk@localhost>
22494
22495 Blank lines testcase for GRUB script.
22496
22497 * tests/grub_script_blanklines.in: New testcase.
22498 * conf/tests.rmk: Rules for the new testcase.
22499
22500 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22501
22502 Don't use __FILE__.
22503
22504 * genmk.rb: Add -DGRUB_FILE to all C targets.
22505 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
22506 * include/grub/list.h: Likewise.
22507 * include/grub/misc.h: Likewise.
22508 * include/grub/mm.h: Likewise.
22509 * include/grub/test.h: Likewise.
22510 * kern/mm.c: Likewise.
22511 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
22512
22513 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22514
22515 Sunpc partitions support.
22516
22517 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
22518 (grub_fstest_SOURCES): Likewise.
22519 (pkglib_MODULES): Add part_sunpc.mod.
22520 (part_sunpc_mod_SOURCES): New variable.
22521 (part_sunpc_mod_CFLAGS): Likewise.
22522 (part_sunpc_mod_LDFLAGS): Likewise.
22523 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
22524 * partmap/sunpc.c: New file.
22525
22526 2010-03-26 BVK Chaitanya <bvk@localhost>
22527
22528 For loop support to GRUB script.
22529
22530 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
22531 (grub_script_create_cmdfor): New function prototype.
22532 (grub_script_execute_cmdfor): New function prototype.
22533 * script/execute.c (grub_script_execute_cmdfor): New function.
22534 * script/parser.y (command): New for command.
22535 (forcmd): New grammar rule.
22536 * script/script.c (grub_script_create_cmdfor): New function.
22537 * util/grub-script-check.c (grub_script_execute_cmdfor): New
22538 function.
22539 * tests/grub_script_for1.in: New testcase.
22540 * conf/tests.rmk: Rules for new testcase.
22541
22542 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22543
22544 Nested partitions
22545
22546 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
22547 'partition' is NULL, grub_partition_get_start already does that.
22548 * commands/loadenv.c (check_blocklists): Likewise.
22549 (write_blocklists): Likewise.
22550 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
22551 (grub_fstest_SOURCES): Likewise.
22552 (pkglib_MODULES): Add part_bsd.mod.
22553 (part_bsd_mod_SOURCES): New variable.
22554 (part_bsd_mod_CFLAGS): Likewise.
22555 (part_bsd_mod_LDFLAGS): Likewise.
22556 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
22557 (grub_emu_SOURCES): Likewise.
22558 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22559 * include/grub/bsdlabel.h: New file.
22560 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
22561 'get_name'.
22562 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
22563 (grub_partition_map_list): New variable.
22564 (grub_partition_map_register): Inline.
22565 (grub_partition_map_unregister): Likewise.
22566 (FOR_PARTITION_MAPS): New macro.
22567 (grub_partition_map_iterate): Removed.
22568 (grub_partition_get_start): Handle nested partitions.
22569 * include/grub/msdos_partition.h: Remove bsd-related entries.
22570 (grub_pc_partition): Remove.
22571 * kern/disk.c (grub_disk_close): Free partition data.
22572 (grub_disk_adjust_range): Handle nested partitions.
22573 * kern/partition.c (grub_partition_map_probe): New function.
22574 (grub_partition_probe): Parse name to number, handle subpartitions.
22575 (get_partmap): New function.
22576 (grub_partition_iterate): Handle subpartitions.
22577 (grub_partition_get_name): Likewise.
22578 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
22579 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
22580 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
22581 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
22582 Set 'number'.
22583 (acorn_partition_map_probe): Remove.
22584 (acorn_partition_map_get_name): Likewise.
22585 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
22586 Set 'number'.
22587 Set 'index' to 0 since there can be only one partition entry per sector.
22588 (amiga_partition_map_probe): Remove.
22589 (amiga_partition_map_get_name): Likewise.
22590 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
22591 Set 'number'.
22592 Set 'offset' and 'index' to real positions of partitions.
22593 (apple_partition_map_probe): Remove.
22594 (apple_partition_map_get_name): Likewise.
22595 * partmap/bsdlabel.c: New file.
22596 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
22597 Set 'number'.
22598 Allocate 'data' so it can be correctly freed.
22599 Set 'index' to offset inside sector.
22600 (gpt_partition_map_probe): Remove.
22601 (gpt_partition_map_get_name): Likewise.
22602 * partmap/msdos.c (grub_partition_parse): Remove.
22603 (pc_partition_map_iterate): Don't force raw access.
22604 Set 'number'.
22605 Make 'ext_offset' a local variable.
22606 (pc_partition_map_probe): Remove.
22607 (pc_partition_map_get_name): Remove.
22608 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
22609 Set 'number'.
22610 (sun_partition_map_probe): Remove.
22611 (sun_partition_map_get_name): Likewise.
22612 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
22613 (grub_pcpart_type): Likewise.
22614 * util/hostdisk.c (open_device): Handle new numbering scheme.
22615 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
22616 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
22617 * util/grub-probe.c (probe_partmap): Handle nested paritions.
22618 * util/grub-install.in: Insert all subpartition modules.
22619 * util/ieee1275/grub-install.in: Likewise.
22620
22621 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
22622
22623 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
22624 grammar.
22625
22626 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
22627
22628 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
22629
22630 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
22631
22632 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
22633 match where 'make install' puts them.
22634 * util/i386/efi/grub-install.in: Likewise.
22635
22636 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
22637
22638 * .bzrignore: Add gentrigtables, grub-script-check,
22639 grub_script_check_init.c, grub_script_check_init.h, and
22640 trigtables.c.
22641
22642 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
22643
22644 * kern/parser.c: Indented.
22645
22646 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22647
22648 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
22649
22650 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22651
22652 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
22653 alpha_mask_size == 0 case.
22654
22655 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
22656
22657 GRUB shell lexer and parser improvements.
22658
22659 * conf/any-emu.rmk: Build rule updates.
22660 * conf/common.rmk: Likewise.
22661 * conf/i386-coreboot.rmk: Likewise.
22662 * conf/i386-efi.rmk: Likewise.
22663 * conf/i386-ieee1275.rmk: Likewise.
22664 * conf/i386-pc.rmk: Likewise.
22665 * conf/powerpc-ieee1275.rmk: Likewise.
22666 * conf/x86_64-efi.rmk: Likewise.
22667
22668 * configure.ac: Configure check for flex.
22669
22670 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
22671 types.
22672 (grub_lexer_param): Struct member updates.
22673 (grub_parser_param): Likewise.
22674 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
22675 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
22676 (grub_script_lexer_init): Prototype update.
22677 (grub_script_lexer_record_start): Likewise.
22678 (grub_script_lexer_record_stop): Likewise.
22679 (grub_script_lexer_yywrap): New function prototype.
22680 (grub_script_lexer_fini): Likewise.
22681 (grub_script_execute_argument_to_string): Removed by...
22682 (grub_script_execute_argument_to_argv): ...better version.
22683
22684 * script/execute.c (ROUND_UPTO): New macro.
22685 (grub_script_execute_cmdline): Out of memory fixes.
22686 (grub_script_execute_menuentry): Likewise.
22687 (grub_script_execute_argument_to_string): Removed. Update all
22688 users by...
22689 (grub_script_execute_argument_to_argv): ...better version.
22690 * script/function.c (grub_script_function_create): Use
22691 grub_script_execute_argument_to_argv instead of
22692 grub_script_execute_argument_to_string.
22693
22694 * script/lexer.c (check_varstate): Removed.
22695 (check_textstate): Removed.
22696 (grub_script_lexer_record_start): Likewise.
22697 (grub_script_lexer_record_stop): Likewise.
22698 (recordchar): Replaced with...
22699 (grub_script_lexer_record): ...new function.
22700 (nextchar): Removed.
22701 (grub_script_lexer_init): Rewritten.
22702 (grub_script_yylex): Rewritten.
22703 (append_newline): New function.
22704 (grub_script_lexer_yywrap): New function.
22705 (grub_script_lexer_fini): New function.
22706 (grub_script_yyerror): Sets error flag.
22707
22708 * script/yylex.l: New file.
22709 (grub_lexer_yyfree): Wrapper for flex yyffre.
22710 (grub_lexer_yyalloc): Likewise.
22711 (grub_lexer_yyrealloc): Likewise.
22712 * script/parser.y: Refactored.
22713
22714 * script/script.c (grub_script_arg_add): Out of memory fixes.
22715 (grub_script_add_arglist): Likewise.
22716 (grub_script_create_cmdline): Likewise.
22717 (grub_script_create_cmdmenu): Likewise.
22718 (grub_script_add_cmd): Likewise.
22719 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
22720 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
22721 unnecessary code.
22722
22723 * tests/grub_script_echo1.in: New testcase.
22724 * tests/grub_script_vars1.in: New testcase.
22725 * tests/grub_script_echo_keywords.in: New testcase.
22726
22727 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22728
22729 Remove some redundancy in build system.
22730
22731 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
22732 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
22733 (TARGET_LDFLAGS): Add -nostdlib.
22734 (TARGET_IMG_LDFLAGS): Likewise.
22735 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
22736 anything since mmap isn't available.
22737 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
22738 Add util/time.c.
22739 (pkglib_MODULES): Remove reboot.mod.
22740 (reboot_mod_SOURCES): Removed.
22741 (reboot_mod_CFLAGS): Likewise.
22742 (reboot_mod_LDFLAGS): Likewise.
22743 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
22744 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
22745 (DEFSYMFILES): Add kernel_syms.lst.
22746 (kernel_img_HEADERS): Add common headers.
22747 (symlist.c): New target.
22748 (kernel_syms.lst): Likewise.
22749 (pkglib_MODULES): Add memdisk.mod.
22750 (memdisk_mod_SOURCES): New variable.
22751 (memdisk_mod_CFLAGS): Likewise.
22752 (memdisk_mod_LDFLAGS): Likewise.
22753 (pkglib_MODULES): Add reboot.mod.
22754 (reboot_mod_SOURCES): New variable.
22755 (reboot_mod_CFLAGS): Likewise.
22756 (reboot_mod_LDFLAGS): Likewise.
22757 (pkglib_MODULES): Add date.mod.
22758 (date_mod_SOURCES): New variable.
22759 (date_mod_CFLAGS): Likewise.
22760 (date_mod_LDFLAGS): Likewise.
22761 (pkglib_MODULES): Add datehook.mod.
22762 (datehook_mod_SOURCES): New variable.
22763 (datehook_mod_CFLAGS): Likewise.
22764 (datehook_mod_LDFLAGS): Likewise.
22765 (pkglib_MODULES): Add lsmmap.mod.
22766 (lsmmap_mod_SOURCES): New variable.
22767 (lsmmap_mod_CFLAGS): Likewise.
22768 (lsmmap_mod_LDFLAGS): Likewise.
22769 (pkglib_MODULES): Add boot.mod.
22770 (boot_mod_SOURCES): New variable.
22771 (boot_mod_CFLAGS): Likewise.
22772 (boot_mod_LDFLAGS): Likewise.
22773 * conf/i386-coreboot.rmk: Removed redundant parts.
22774 * conf/i386-ieee1275.rmk: Likewise.
22775 * conf/i386-pc.rmk: Likewise.
22776 * conf/mips-yeeloong.rmk: Likewise.
22777 * conf/mips.rmk: Likewise.
22778 * conf/powerpc-ieee1275.rmk: Likewise.
22779 * conf/sparc64-ieee1275.rmk: Likewise.
22780 * conf/x86_64-efi.rmk: Likewise.
22781 * conf/i386-coreboot.rmk: Moved qemu parts ..
22782 * conf/i386-qemu.rmk: ... here
22783 * conf/i386-efi.rmk: Moved common parts to...
22784 * conf/x86-efi.rmk: ... here.
22785 * conf/i386.rmk: Added modules common to all x86 variants.
22786 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
22787 * disk/memdisk.c: Remove grub/machine/kernel.h.
22788 * gensymlist.sh.in: Include symbol.h.
22789 * hook/datehook.c: Correct module name.
22790 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
22791 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
22792 * include/grub/i386/efi/serial.h: New file.
22793 * include/grub/x86_64/efi/serial.h: Likewise.
22794 * util/time.c: Likewise.
22795 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
22796
22797 2010-03-14 Colin King <colin.king@ubuntu.com>
22798 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22799
22800 Shrink the pre-partition-table part of boot.img by eight bytes.
22801
22802 * boot/i386/pc/boot.S (ERR): New macro.
22803 (chs_mode): Use ERR.
22804 (geometry_error): Likewise.
22805 (hd_probe_error): Remove. This is only used once, so we wrwite
22806 it inline instead.
22807 (read_error): Instead of printing read_error_string, just set up
22808 %si and fall through to ...
22809 (error_message): ... this new function, also used by ERR.
22810
22811 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22812
22813 Speed up consecutive hostdisk operations on the same device.
22814
22815 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
22816 (grub_util_biosdisk_open): Initialise disk->data.
22817 (struct linux_partition_cache): New structure.
22818 (linux_find_partition): Cache partition start positions; these are
22819 expensive to compute on every read and write.
22820 (open_device): Cache open file descriptor in disk->data, so that we
22821 don't have to reopen it and flush the buffer cache for consecutive
22822 operations on the same device.
22823 (grub_util_biosdisk_close): New function.
22824 (grub_util_biosdisk_dev): Set `close' member.
22825
22826 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
22827 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
22828 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22829 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
22830 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
22831
22832 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22833
22834 Compile parts of grub-emu as modules.
22835
22836 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
22837 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
22838 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
22839 (all-local): Add $(GRUB_EMU).
22840 (install-local): Install $(GRUB_EMU).
22841 (uninstall): Uninstall $(GRUB_EMU).
22842 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
22843 * kern/dl.c: Likewise.
22844 * commands/sleep.c: Not include machine/time.h.
22845 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
22846 (COMMON_CFLAGS): Likewise.
22847 (sbin_UTILITIES): Remove grub-emu.
22848 (grub_emu_SOURCES): Removed.
22849 (kernel_img_RELOCATABLE): New variable.
22850 (pkglib_PROGRAMS): Add kernel.img.
22851 (kernel_img_SOURCES): New variable
22852 (kernel_img_CFLAGS): Likewise.
22853 (kernel_img_LDFLAGS): Likewise.
22854 (TARGET_NO_STRIP): Likewise.
22855 (TARGET_NO_DYNAMIC_MODULES): Likewise.
22856 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
22857 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
22858 (grub-emu): New target.
22859 (GRUB_EMU): New variable.
22860 * configure.ac: Whitelist -emu as possible x86_64 architecture.
22861 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
22862 * loader/xnu.c: Likewise.
22863 * include/grub/pci.h: Likewise.
22864 * genemuinit.sh: New file.
22865 * genemuinitheader.sh: Likewise.
22866 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
22867 Support TARGET_NO_DYNAMIC_MODULES.
22868 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
22869 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
22870 * disk/loopback.c: Likewise.
22871 * font/font_cmd.c: Likewise.
22872 * partmap/acorn.c: Likewise.
22873 * partmap/amiga.c: Likewise.
22874 * partmap/apple.c: Likewise.
22875 * partmap/gpt.c: Likewise.
22876 * partmap/msdos.c: Likewise.
22877 * partmap/sun.c: Likewise.
22878 * parttool/msdospart.c: Likewise.
22879 * term/gfxterm.c: Likewise.
22880 * video/bitmap.c: Likewise.
22881 * video/readers/jpeg.c: Likewise.
22882 * video/readers/png.c: Likewise.
22883 * video/readers/tga.c: Likewise.
22884 * video/video.c: Likewise.
22885 * util/grub-emu.c (read_command_list): Removed.
22886 (main): Don't call util_init_nls.
22887 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
22888 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
22889
22890 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22891
22892 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
22893 date.mod, datehook.mod.
22894 (datetime_mod_SOURCES): New variable.
22895 (datetime_mod_CFLAGS): Likewise.
22896 (datetime_mod_LDFLAGS): Likewise.
22897 (date_mod_SOURCES): Likewise.
22898 (date_mod_CFLAGS): Likewise.
22899 (date_mod_LDFLAGS): Likewise.
22900 (datehook_mod_SOURCES): Likewise.
22901 (datehook_mod_CFLAGS): Likewise.
22902 (datehook_mod_LDFLAGS): Likewise.
22903 * conf/sparc64-ieee1275.rmk: Likewise.
22904 * lib/ieee1275/datetime.c: New file.
22905
22906 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22907
22908 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
22909 (ieee1275_fb_mod_SOURCES): New variable.
22910 (ieee1275_fb_mod_CFLAGS): Likewise.
22911 (ieee1275_fb_mod_LDFLAGS): Likewise.
22912 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
22913 New proto.
22914 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
22915 (HEAP_MAX_ADDR): Likewise.
22916 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
22917 type.
22918 Correct stop condition.
22919 (grub_ieee1275_devices_iterate): New function.
22920 * video/ieee1275.c: New file.
22921
22922 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22923
22924 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
22925
22926 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
22927 as scratch.
22928 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
22929 SCRATCH_PAD_DISKBOOT as scratch.
22930 (bootit): Pass Openfirmware pointer in %o4.
22931 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
22932 of 0x200000.
22933 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
22934 with util/grub-mkrawimage.c.
22935 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
22936 * include/grub/aout.h (AOUT_MID_SUN): New definition.
22937 (grub_aout_get_type) [GRUB_UTIL]: Removed.
22938 (grub_aout_load) [GRUB_UTIL]: Likewise.
22939 * include/grub/kernel.h (grub_modules_get_end): New proto.
22940 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
22941 (SCRATCH_PAD_BOOT): New definition.
22942 (SCRATCH_PAD_DISKBOOT): Likewise.
22943 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
22944 * include/grub/sparc64/ieee1275/ieee1275.h
22945 (grub_ieee1275_original_stack): New variable
22946 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
22947 New definition
22948 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
22949 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
22950 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
22951 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
22952 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
22953 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
22954 (grub_platform_image_format_t): New type.
22955 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
22956 * kern/main.c (grub_modules_get_end)
22957 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
22958 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
22959 (codestart): Switch stacks.
22960 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
22961 variable.
22962 (grub_heap_init): Use grub_modules_get_end.
22963 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
22964 stack.
22965 * util/grub-mkrawimage.c (generate_image): Support sparc64.
22966 (main): Likewise.
22967 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
22968
22969 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
22970
22971 * util/grub-mkrescue.in: Base ISO UUID on UTC.
22972
22973 2010-03-08 Matt Kraai <kraai@ftbfs.org>
22974
22975 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
22976 bug #559005).
22977
22978 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
22979
22980 * genmoddep.awk: Output all missing symbols and not only first.
22981
22982 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22983
22984 * NEWS: Put the date of 1.98 release.
22985
22986 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22987
22988 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
22989 ft2build.h.
22990
22991 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22992
22993 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
22994 completition in the middle of string.
22995
22996 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22997
22998 * util/grub-mkrescue.in: Use mktemp with explicit template.
22999
23000 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23001
23002 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
23003
23004 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23005
23006 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
23007 right pointer.
23008
23009 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
23010
23011 Fix FreeBSD compilation.
23012
23013 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
23014 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
23015
23016 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
23017
23018 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
23019
23020 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23021
23022 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
23023
23024 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23025
23026 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
23027
23028 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
23029
23030 Support relative image path in theme file.
23031
23032 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
23033 (image_set_property): Handle theme_dir and relative path.
23034
23035 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23036
23037 * configure.ac: Alias amd64 to x86_64.
23038
23039 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23040
23041 * NEWS: mention multiboot on EFI.
23042
23043 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23044
23045 * kern/main.c (grub_load_modules): Handle errors from init functions of
23046 embeded modules.
23047
23048 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23049
23050 * normal/autofs.c (autoload_fs_module): Handle errors.
23051
23052 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23053
23054 Disable linux.mod on qemu-mips since it's not functional and leads
23055 to compilation failure.
23056
23057 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
23058 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
23059 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
23060 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
23061 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
23062 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
23063 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
23064 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
23065 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
23066 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
23067 Reported by: BVK Chaitanya
23068
23069 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
23070
23071 * INSTALL: Add gettext as a dependency and add qemu to a new section
23072 "Prerequisites for make-check".
23073
23074 2010-03-04 Christian Franke <franke@computer.org>
23075
23076 * util/grub-pe2elf.c: Add missing include "progname.h".
23077
23078 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23079
23080 * normal/crypto.c (read_crypto_list): Fix a typo.
23081 Reported by: Seth Goldberg.
23082
23083 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23084
23085 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
23086 Reported by: Seth Goldberg.
23087
23088 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23089
23090 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
23091 ascii.bitmaps.
23092
23093 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23094
23095 * genmk.rb: Remove terminal*.lst in make clean.
23096 Reported by: Seth Goldberg.
23097
23098 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23099
23100 * util/i386/efi/grub-install.in: Copy gettext files.
23101
23102 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23103
23104 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
23105
23106 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23107
23108 Wait for user entry basing on presence of output rather than on errors.
23109
23110 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
23111 (grub_install_newline_hook): Likewise.
23112 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
23113 * normal/menu.c (show_menu): Check line_counter to determine presence
23114 of output.
23115 * normal/term.c (grub_normal_line_counter): New variable.
23116 (grub_normal_get_line_counter): New function.
23117 (grub_install_newline_hook): Likewise.
23118
23119 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23120
23121 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
23122
23123 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23124
23125 * configure.ac: Update version to 1.98.
23126
23127 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
23128
23129 * util/grub.d/10_linux.in (linux_entry): Don't default to
23130 gfxpayload=keep if Linux doesn't support video handover.
23131
23132 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
23133
23134 Don't compile video modules on yeeloong since video subsystem is part
23135 of kernel.
23136
23137 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
23138 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
23139 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
23140 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
23141 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
23142 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
23143 * include/grub/bitmap_scale.h: Likewise.
23144 * include/grub/bufio.h: Likewise.
23145 * include/grub/font.h: Likewise.
23146 * include/grub/gfxterm.h: Likewise.
23147 * include/grub/video.h: Likewise.
23148 * include/grub/vbe.h: Don't include video_fb.h.
23149 * video/i386/pc/vbe.c: Include video_fb.h.
23150 * commands/i386/pc/vbetest.c: Include video.h.
23151
23152 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
23153
23154 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
23155 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
23156 default entry if GRUB_SAVEDEFAULT=true. This allows using
23157 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
23158 saving a new default on every boot.
23159
23160 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23161
23162 * normal/crypto.c (read_crypto_list): Fix a memory leak.
23163 * normal/term.c (read_terminal_list): Likewise.
23164 * normal/main.c (grub_normal_init_page): Likewise.
23165 (grub_normal_read_line_real): Likewise.
23166
23167 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23168
23169 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
23170 memory leak.
23171 Reported by: Seth Goldberg.
23172
23173 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
23174
23175 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
23176 duplicate declaration of `start'.
23177
23178 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23179
23180 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
23181 filename.
23182 Reported by: Georgy Buranov
23183
23184 2010-02-20 Carles Pina i Estany <carles@pina.cat>
23185
23186 * util/grub-mkrawimage.c (usage): Change string formatting to
23187 improve gettext.
23188
23189 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
23190
23191 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
23192 backspace keys.
23193
23194 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23195
23196 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
23197 Reported by: Michael Suchanek.
23198
23199 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
23200
23201 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
23202 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
23203
23204 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
23205
23206 Remove any reference to non-free fonts.
23207
23208 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
23209 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
23210 uses non-free components.
23211 * font/font.c (grub_font_get_name): Remove example name.
23212 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
23213 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
23214 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
23215 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
23216
23217 2010-02-16 Georgy Buranov <gburanov@gmail.com>
23218
23219 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
23220
23221 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23222
23223 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
23224 Double divisor.
23225 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
23226 features.
23227 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
23228
23229 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23230
23231 * gensymlist.sh.in: Use TARGET_CC instead of CC.
23232
23233 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23234
23235 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
23236 * docs/grub.texi (Command-line and menu entry commands): Document play
23237 command.
23238
23239 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23240
23241 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
23242 parse arguments as inline tempo and notes. Move code for playing notes
23243 to...
23244 (play): ... new function.
23245
23246 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23247
23248 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
23249 grub_uint16_t instead of short.
23250 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
23251 disk from little endian to cpu endianness.
23252
23253 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
23254
23255 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
23256 GRUB_TICKS_PER_SECOND instead of 120.
23257
23258 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23259
23260 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
23261 escape sequence after \e.
23262
23263 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23264
23265 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
23266 non-ASCII characters.
23267
23268 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23269
23270 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
23271 set root in single quotes to prevent \, from being unescaped.
23272
23273 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23274
23275 Prevent unknown commands from stopping menuentry execution.
23276
23277 * script/execute.c (grub_script_execute_cmdline): Print error after
23278 unknown command.
23279
23280 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23281
23282 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
23283 Reported by: Pavel Pisa.
23284
23285 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23286
23287 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
23288
23289 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23290
23291 Merge grub_ieee1275_map_physical into grub_map and rename to
23292 grub_ieee1275_map
23293
23294 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
23295 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
23296 Remove.
23297 * kern/ieee1275/openfw.c (grub_map): Rename to ...
23298 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
23299 necessary.
23300 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
23301
23302 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23303
23304 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
23305 opening and not after.
23306
23307 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23308
23309 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
23310 constants.
23311
23312 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23313
23314 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
23315 (alloc_phys): Use ALIGN_UP instead of align_addr.
23316
23317 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23318
23319 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
23320
23321 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23322
23323 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
23324
23325 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23326
23327 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
23328 verbose dprintf.
23329
23330 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23331
23332 Fix over-4GiB seek on sparc64.
23333
23334 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
23335 Replace pos_i and pos_lo with pos. All users updated.
23336 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23337 New constant.
23338 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23339 Likewise.
23340 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
23341 and pos_lo.
23342
23343 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23344
23345 * util/grub-mkrawimage.c (main): Call set_program_name.
23346
23347 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23348
23349 Properly align 64-bit targets.
23350
23351 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
23352 (generate_image): Use ALIGN_ADDR.
23353
23354 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23355
23356 Properly create cross-endian images.
23357
23358 * include/grub/types.h (grub_host_to_target_addr): New macro
23359 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
23360
23361 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23362
23363 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
23364
23365 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23366
23367 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
23368
23369 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
23370 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
23371 (grub_linux_boot): Divide by 64K when on VESA.
23372
23373 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23374
23375 Support GRUB_GFXPAYLOAD_LINUX.
23376
23377 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
23378 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
23379
23380 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23381
23382 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
23383 to show messages instead of discarding them.
23384 Process errors after executing command and not before. Keep old method
23385 too as precaution.
23386
23387 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
23388
23389 * configure.ac: Check for ft2build.h.
23390
23391 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23392
23393 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
23394
23395 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23396
23397 * genkernsyms.sh.in: Use TARGET_CC.
23398
23399 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
23400
23401 * NEWS: Update.
23402
23403 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23404
23405 * include/grub/multiboot2.h: Remove leftover file.
23406 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
23407 * include/grub/partition.h [GRUB_UTIL]: Likewise.
23408
23409 2010-02-07 Yves Blusseau <blusseau@zetam.org>
23410
23411 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
23412
23413 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23414
23415 Fix warnings in grub-emu when compiling with maximum warning options.
23416
23417 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
23418 (grub_arch_modules_addr): Return 0 and not NULL.
23419 * util/misc.c (ENABLE_RELOCATABLE): New definition.
23420 (xstrdup): Use newstr instead of dup.
23421 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
23422 of disk to dsk to avoid shadowing.
23423 (find_free_slot): Fix prototype.
23424 * util/getroot.c (grub_util_is_dmraid): Make static.
23425 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
23426 Add missing prototype.
23427 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
23428
23429 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23430
23431 * loader/i386/linux.c (grub_linux_setup_video): Handle error
23432 appropriately.
23433
23434 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23435
23436 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
23437 code out.
23438
23439 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23440
23441 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
23442 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
23443 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
23444 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
23445 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
23446 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
23447
23448 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23449
23450 * include/grub/err.h (grub_err_printf): Don't export.
23451
23452 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23453
23454 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
23455
23456 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23457
23458 * include/grub/i18n.h (grub_gettext_dummy): Removed.
23459 * kern/misc.c (grub_gettext_dummy): Make static.
23460
23461 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23462
23463 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
23464 by non-valid ones.
23465 * kern/term.c (grub_putchar): Likewise.
23466
23467 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23468
23469 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
23470 buggy hook call and memory leak.
23471
23472 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23473
23474 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
23475
23476 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23477
23478 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
23479
23480 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23481
23482 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
23483 modevar.
23484 Return grub_errno on allocation error.
23485
23486 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23487
23488 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
23489
23490 2010-02-06 Yves Blusseau <blusseau@zetam.org>
23491
23492 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
23493 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
23494
23495 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23496
23497 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
23498 non-pxe disk.
23499 (grub_pxefs_open): Likewise.
23500
23501 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23502
23503 * util/grub.d/10_hurd.in: Add --class information to menuentries.
23504 * util/grub.d/10_kfreebsd.in: Likewise.
23505 * util/grub.d/10_linux.in: Likewise.
23506
23507 2010-02-06 Colin D Bennett <colin@gibibit.com>
23508
23509 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
23510 (gfxmenu_mod_SOURCES): New variable.
23511 (gfxmenu_mod_CFLAGS): Likewise.
23512 (gfxmenu_mod_LDFLAGS): Likewise.
23513 * include/grub/term.h (grub_term_set_current_output): Declare
23514 argument as const.
23515 * docs/gfxmenu-theme-example.txt: New file.
23516 * gfxmenu/gfxmenu.c: Likewise.
23517 * gfxmenu/gui_box.c: Likewise.
23518 * gfxmenu/gui_canvas.c: Likewise.
23519 * gfxmenu/gui_circular_progress.c: Likewise.
23520 * gfxmenu/gui_image.c: Likewise.
23521 * gfxmenu/gui_label.c: Likewise.
23522 * gfxmenu/gui_list.c: Likewise.
23523 * gfxmenu/gui_progress_bar.c: Likewise.
23524 * gfxmenu/gui_string_util.c: Likewise.
23525 * gfxmenu/gui_util.c: Likewise.
23526 * gfxmenu/icon_manager.c: Likewise.
23527 * gfxmenu/model.c: Likewise.
23528 * gfxmenu/named_colors.c: Likewise.
23529 * gfxmenu/theme_loader.c: Likewise.
23530 * gfxmenu/view.c: Likewise.
23531 * gfxmenu/widget-box.c: Likewise.
23532 * include/grub/gfxmenu_model.h: Likewise.
23533 * include/grub/gfxmenu_view.h: Likewise.
23534 * include/grub/gfxwidgets.h: Likewise.
23535 * include/grub/gui.h: Likewise.
23536 * include/grub/gui_string_util.h: Likewise.
23537 * include/grub/icon_manager.h: Likewise.
23538
23539 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23540
23541 Agglomerate scrolling in gfxterm.
23542
23543 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
23544 (grub_virtual_screen_setup): Initialise 'total_screen'.
23545 (write_char): Split to ...
23546 (paint_char): ... this ...
23547 (write_char): ... and this.
23548 (paint_char): Handle delayed scrolling.
23549 (draw_cursor): Likewise.
23550 (scroll_up): Split to ...
23551 (real_scroll): ... this ...
23552 (scroll_up): ... and this.
23553 (real_scroll): Handle multi-line scroll and draw below-the-bottom
23554 characters.
23555 (grub_gfxterm_refresh): Call real_scroll.
23556
23557 2010-02-06 Colin D Bennett <colin@gibibit.com>
23558
23559 * include/grub/misc.h (grub_iscntrl): New inline function.
23560 (grub_isalnum): Likewise.
23561 (grub_strtol): Likewise.
23562
23563 2010-02-06 Colin D Bennett <colin@gibibit.com>
23564
23565 * normal/menu_text.c (get_entry_number): Move from here ...
23566 * normal/menu.c (get_entry_number): ... moved here.
23567 * include/grub/menu.h (grub_menu_get_default_entry_index):
23568 New prototype.
23569 * normal/menu.c (grub_menu_get_default_entry_index): New function.
23570 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
23571 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
23572 (grub_menu_viewer_should_return): Likewise.
23573 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
23574 * normal/menu_text.c (run_menu): Enable menu switching.
23575 * normal/menu_viewer.c (should_return): New variable.
23576 (menu_viewer_changed): Likewise.
23577 (grub_menu_viewer_show_menu): Handle menu viewer changes.
23578 (grub_menu_viewer_should_return): New function.
23579 (menuviewer_write_hook): Likewise.
23580 (grub_menu_viewer_init): Likewise.
23581
23582 2010-02-06 Colin D Bennet <colin@gibibit.com>
23583 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23584
23585 Support for gfxterm in a window.
23586
23587 * include/grub/gfxterm.h: New file.
23588 * include/grub/video.h (struct grub_video_rect): New declaration.
23589 (grub_video_rect_t): Likewise.
23590 * term/gfxterm.c (struct grub_gfxterm_window): New type.
23591 (refcount): New variable.
23592 (render_target): Likewise.
23593 (window): Likewise.
23594 (repaint_callback): Likewise.
23595 (grub_virtual_screen_setup): Use 'render_target'.
23596 (init_window): New function.
23597 (grub_gfxterm_init_window): Likewise.
23598 (grub_gfxterm_init): Check reference counter.
23599 Use init_window.
23600 (destroy_window): New function.
23601 (grub_gfxterm_destroy_window): Likewise.
23602 (grub_gfxterm_fini): Check reference counter.
23603 Use destroy_window.
23604 (redraw_screen_rect): Restore viewport.
23605 Use 'render_target' and 'window'.
23606 Call 'repaint_callback'.
23607 (write_char): Use 'render_target'.
23608 (draw_cursor): Likewise.
23609 (scroll_up): Restore viewport.
23610 Use 'render_target' and 'window'.
23611 Call 'repaint_callback'.
23612 (grub_gfxterm_cls): Likewise.
23613 (grub_gfxterm_refresh): Use 'window'.
23614 (grub_gfxterm_set_repaint_callback): New function.
23615 (grub_gfxterm_background_image_cmd): Use 'window'.
23616 (grub_gfxterm_get_term): New function.
23617 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
23618
23619 2010-02-06 Colin D Bennett <colin@gibibit.com>
23620
23621 Bitmap scaling support.
23622
23623 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
23624 (bitmap_scale_mod_SOURCES): New variable.
23625 (bitmap_scale_mod_CFLAGS): Likewise.
23626 (bitmap_scale_mod_LDFLAGS): Likewise.
23627 * include/grub/bitmap_scale.h: New file.
23628 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
23629 (background_image_cmd_options): New variable.
23630 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
23631 (cmd): Rename and change type to ...
23632 (background_image_cmd_handle): ... this. All users updated.
23633 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
23634 * video/bitmap_scale.c: New file.
23635
23636 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23637
23638 SDL support.
23639
23640 * Makefile.in (LIBSDL): New variable.
23641 (enable_grub_emu_sdl): Likewise.
23642 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
23643 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
23644 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
23645 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
23646 * util/sdl.c: New file.
23647
23648 2010-02-06 Colin D Bennett <colin@gibibit.com>
23649 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23650
23651 Double buffering support.
23652
23653 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
23654 * include/grub/video.h: Update comment.
23655 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
23656 New type.
23657 (grub_video_fb_doublebuf_blit_init): New prototype.
23658 * term/gfxterm.c (scroll_up): Support double buffering.
23659 (grub_gfxterm_refresh): Likewise.
23660 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
23661 (grub_video_fb_doublebuf_blit_init): Likewise.
23662 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
23663 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
23664 'displayed_page', 'render_page' and 'update_screen'.
23665 (grub_video_vbe_fini): Free offscreen buffer.
23666 (doublebuf_pageflipping_commit): New function.
23667 (doublebuf_pageflipping_update_screen): Likewise.
23668 (doublebuf_pageflipping_init): Likewise.
23669 (double_buffering_init): Likewise.
23670 (grub_video_vbe_setup): Enable doublebuffering.
23671 (grub_video_vbe_swap_buffers): Implement.
23672 (grub_video_vbe_set_active_render_target): Handle double buffering.
23673 (grub_video_vbe_get_active_render_target): Likewise.
23674 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
23675 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
23676 (grub_video_vbe_enable_double_buffering): Likewise.
23677 (grub_video_vbe_swap_buffers): Use update_screen.
23678 (grub_video_set_mode): Use double buffering.
23679
23680 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23681
23682 * maintainance/gentrigtables.py: Remove.
23683 * lib/trig.c: Likewise.
23684
23685 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
23686
23687 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
23688 `trigtables.c'.
23689 (trigtables.c): New rule.
23690 (gentrigtables): Likewise.
23691 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
23692
23693 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23694
23695 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
23696 integer constants.
23697
23698 2010-02-06 Colin D Bennet <colin@gibibit.com>
23699
23700 Trigonometry support.
23701
23702 * include/grub/trig.h: New file.
23703 * lib/trig.c: Likewise.
23704 * maintainance/gentrigtables.py: Likewise.
23705 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
23706 (trig_mod_SOURCES): New variable.
23707 (trig_mod_CFLAGS): Likewise.
23708 (trig_mod_LDFLAGS): Likewise.
23709
23710 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23711
23712 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
23713 disk devices.
23714
23715 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23716
23717 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
23718 error.
23719
23720 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23721
23722 * util/hostdisk.c (open_device): Don't use partition device when reading
23723 before the partition.
23724 (grub_util_biosdisk_read): Don't read from partition and before the
23725 partition in single operation.
23726 (grub_util_biosdisk_write): Don't write to partition and before the
23727 partition in single operation.
23728
23729 2010-02-03 Torsten Landschoff <torsten@debian.org>
23730
23731 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23732 last sectors.
23733
23734 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23735
23736 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
23737 CDROM reads.
23738 (grub_biosdisk_write): Refuse to write to CDROM.
23739
23740 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23741
23742 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
23743
23744 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23745
23746 * font/font.c (find_glyph): Check that bmp_idx is available before
23747 using it.
23748 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
23749 with (font == NULL).
23750
23751 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
23752
23753 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
23754
23755 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
23756
23757 * include/grub/script_sh.h (sourcecode): Add const qualifier.
23758 * util/grub-script-check.c (getline): Fix empty lines case.
23759
23760 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
23761
23762 * Makefile.in (check): Exit with fail status when one of the tests
23763 fails.
23764 * tests/example_functional_test.c (example_test): Fix reversed assert.
23765 * tests/example_unit_test.c (example_test): Likewise.
23766
23767 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
23768
23769 * util/grub.d/10_linux.in: This script does not use any of the
23770 contents of gettext.sh, only the external command `gettext', so stop
23771 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
23772 the same prefix as GRUB.)
23773 * util/grub.d/10_kfreebsd.in: Likewise.
23774
23775 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23776
23777 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
23778 of the line.
23779
23780 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23781
23782 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23783 last sectors.
23784
23785 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23786
23787 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
23788 having a 4KiB and not 32KiB buffer size.
23789
23790 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23791
23792 * util/hostfs.c: Include `<errno.h>'.
23793 (grub_hostfs_read): Handle errors from fseeko() and fread().
23794
23795 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23796
23797 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
23798 loop when using read hooks on files whose size isn't sector-aligned.
23799
23800 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23801
23802 Remove unused parameter.
23803
23804 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
23805 (grub_iso9660_open): Remove initialization of `data->length'.
23806
23807 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23808
23809 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
23810 memleak conditions.
23811
23812 2010-01-27 Carles Pina i Estany <carles@pina.cat>
23813
23814 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
23815 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
23816
23817 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23818
23819 * util/bin2h.c (usage): Fix warning (space after backslash).
23820
23821 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23822
23823 * font/font.c: Include `grub/fontformat.h.
23824 Remove font file format constants.
23825 (grub_font_load): Use the new macros.
23826 * include/grub/fontformat.h: New file.
23827 * util/grub-mkfont.c: Include `grub/fontformat.c'.
23828 (write_font_pf2): Use the new macros.
23829
23830 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23831
23832 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
23833 does.
23834
23835 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23836
23837 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
23838
23839 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
23840 (_start): Macroify `0x7F'.
23841
23842 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
23843 (make_install_device): Use "(pxe)" as fallback prefix when booting
23844 via PXE.
23845
23846 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
23847
23848 * configure.ac: Reset LIBS after check for libgcc symbols.
23849
23850 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
23851
23852 * util/hostdisk.c (open_device): Add trailing newline to debug
23853 message.
23854
23855 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
23856
23857 * configure.ac: Check for `limits.h'.
23858 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
23859
23860 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
23861
23862 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
23863 capitalize error strings.
23864
23865 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
23866
23867 * util/grub.d/10_hurd.in: Add a recovery mode.
23868
23869 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
23870
23871 * configure.ac: Check for libgcc symbols with -nostdlib.
23872
23873 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
23874
23875 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
23876
23877 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23878
23879 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
23880 stack since heap may be unavailable at that point.
23881 (grub_ofconsole_gotoxy): Likewise.
23882
23883 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23884
23885 * configure.ac: Check for _restgpr_14_x.
23886 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
23887 and _savegpr_* prototypes.
23888
23889 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
23890
23891 Use generic grub_reboot() for i386-efi.
23892
23893 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
23894 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
23895 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
23896
23897 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23898
23899 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
23900 presence of "prefix" variable as it breaks when normal.mod is
23901 embedded.
23902
23903 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23904
23905 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
23906 stack since heap is unavailable at that point.
23907
23908 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23909
23910 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
23911 (grub_freebsd_bootinfo): Rewritten.
23912 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
23913
23914 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23915
23916 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
23917
23918 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
23919
23920 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
23921 domain now.
23922
23923 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
23924
23925 * util/misc.c (make_system_path_relative_to_its_root): Change the work
23926 around for handling "/" to the correct fix. Fix a memory leak. Use
23927 xstrdup instead of strdup.
23928
23929 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23930
23931 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
23932
23933 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23934
23935 Optimise glyph lookup by Basic Multilingual Plane lookup array.
23936
23937 * font/font.c (struct grub_font): New member 'bmp_idx'.
23938 (font_init): Initialise 'bmp_idx'.
23939 (load_font_index): Fill 'bmp_idx'.
23940 (find_glyph): Make inline. Use bmp_idx for BMP characters.
23941
23942 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23943
23944 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
23945 unnecessary calls.
23946
23947 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23948
23949 Move context handling out of the kernel.
23950
23951 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
23952 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
23953 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
23954 * conf/i386-efi.rmk: Likewise.
23955 * conf/i386-ieee1275.rmk: Likewise.
23956 * conf/i386-pc.rmk: Likewise.
23957 * conf/powerpc-ieee1275.rmk: Likewise.
23958 * conf/sparc64-ieee1275.rmk: Likewise.
23959 * conf/x86_64-efi.rmk: Likewise.
23960 * include/grub/env.h: Include grub/menu.h.
23961 (grub_env_var_type): Removed.
23962 (grub_env_var): Replaced field 'type' with 'global'.
23963 (grub_env_find): New prototype.
23964 (grub_env_context_open): Remove EXPORT_FUNC.
23965 (grub_env_context_close): Likewise.
23966 (grub_env_export): Likewise.
23967 (grub_env_set_data_slot): Removed.
23968 (grub_env_get_data_slot): Likewise.
23969 (grub_env_unset_data_slot): Likewise.
23970 (grub_env_unset_menu): New prototype.
23971 (grub_env_set_menu): Likewise.
23972 (grub_env_get_menu): Likewise.
23973 * include/grub/env_private.h: New file.
23974 * include/grub/normal.h (grub_context_init): New prototype.
23975 (grub_context_fini): Likewise.
23976 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
23977 * normal/context.c (grub_cmd_export): ... to here.
23978 * kern/env.c: Include env_private.h.
23979 (HASHSZ): Moved to include/grub/env_private.h.
23980 (grub_env_context): Likewise.
23981 (grub_env_sorted_var): Likewise.
23982 (current_context): Renamed from this ...
23983 (grub_current_context): ...to this. 'static' removed. All users updated.
23984 (grub_env_find): Removed 'static'.
23985 (grub_env_context_open): Moved to normal/context.c.
23986 (grub_env_context_close): Likewise.
23987 (grub_env_export): Likewise.
23988 (mangle_data_slot_name): Removed.
23989 (grub_env_set_data_slot): Likewise.
23990 (grub_env_get_data_slot): Likewise.
23991 (grub_env_unset_data_slot): Likewise.
23992 * kern/main.c (grub_set_root_dev): Don't export root.
23993 It will be done later.
23994 (grub_main): Don't export prefix.
23995 It will be done later.
23996 * normal/context.c: New file.
23997 * normal/main.c (free_menu): Use grub_env_unset_menu.
23998 (grub_normal_add_menu_entry): Use grub_env_get_menu.
23999 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
24000 (GRUB_MOD_INIT(normal)): Call grub_context_init.
24001 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
24002
24003 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24004
24005 setpci support.
24006
24007 * commands/setpci.c: New file.
24008 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
24009 (setpci_mod_SOURCES): New variable.
24010 (setpci_mod_CFLAGS): Likewise.
24011 (setpci_mod_LDFLAGS): Likewise.
24012
24013 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24014
24015 Byte-addressable PCI configuration space.
24016
24017 * bus/pci.c (grub_pci_make_address): Use byte address instead of
24018 dword address.
24019 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
24020 GRUB_PCI_REG_CACHELINE.
24021 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
24022 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
24023 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
24024 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
24025 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
24026 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
24027 grub_pci_make_address.
24028 (lock_rom_area): Likewise.
24029 * commands/lspci.c (grub_lspci_iter): Use macroses
24030 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
24031 of grub_pci_make_address.
24032 * disk/ata.c (grub_ata_pciinit): Likewise.
24033 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
24034 (GRUB_PCI_REG_VENDOR): Likewise.
24035 (GRUB_PCI_REG_DEVICE): Likewise.
24036 (GRUB_PCI_REG_COMMAND): Likewise.
24037 (GRUB_PCI_REG_STATUS): Likewise.
24038 (GRUB_PCI_REG_REVISION): Likewise.
24039 (GRUB_PCI_REG_CLASS): Likewise.
24040 (GRUB_PCI_REG_CACHELINE): Likewise.
24041 (GRUB_PCI_REG_LAT_TIMER): Likewise.
24042 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
24043 (GRUB_PCI_REG_BIST): Likewise.
24044 (GRUB_PCI_REG_ADDRESSES): Likewise.
24045 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24046 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24047 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24048 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24049 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24050 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24051 (GRUB_PCI_REG_CIS_POINTER): Likewise.
24052 (GRUB_PCI_REG_SUBVENDOR): Likewise.
24053 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
24054 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
24055 (GRUB_PCI_REG_CAP_POINTER): Likewise.
24056 (GRUB_PCI_REG_IRQ_LINE): Likewise.
24057 (GRUB_PCI_REG_IRQ_PIN): Likewise.
24058 (GRUB_PCI_REG_MIN_GNT): Likewise.
24059 (GRUB_PCI_REG_MAX_LAT): Likewise.
24060 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
24061 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
24062 * video/efi_uga.c (find_framebuf): Likewise.
24063 * video/sm712.c (grub_video_sm712_setup): Likewise.
24064 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
24065 space.
24066
24067 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24068
24069 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
24070 can be reliably determined to be supported.
24071
24072 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24073
24074 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
24075 that VESA is supported.
24076 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
24077 supported.
24078
24079 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24080
24081 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
24082
24083 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24084
24085 * util/misc.c (make_system_path_relative_to_its_root): Work around
24086 special-casing of "/", as previous incarnation of this routine did.
24087
24088 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24089
24090 Fix any-emu compilation.
24091
24092 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
24093 * grub_bin2h_SOURCES: New variable.
24094
24095 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24096
24097 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
24098
24099 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24100
24101 * util/grub.d/00_header.in: Fix handling of locale_dir.
24102
24103 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24104
24105 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
24106 as possible unifont location (Gentoo).
24107 Reported by: Alexander Brüning
24108
24109 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24110
24111 Don't try to generate lists for kernel.img.
24112
24113 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
24114 (pkglib_MODULES): Remove kernel.img.
24115 (kernel_img_EXPORTS): Removed.
24116 (kernel_img_RELOCATABLE): New variable.
24117 * conf/x86_64-efi.rmk: Likewise.
24118 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
24119
24120 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24121
24122 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
24123 grub_xasprintf or grub_snprintf.
24124 (grub_vsprintf): Likewise.
24125 (grub_snprintf): New proto.
24126 (grub_vsnprintf): Likewise.
24127 (grub_xasprintf): Likewise.
24128 (grub_xvasprintf): Likewise.
24129 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
24130 (grub_sprintf): Removed.
24131 (grub_vsnprintf): New function.
24132 (grub_snprintf): Likewise.
24133 (grub_xvasprintf): Likewise.
24134 (grub_xasprintf): Likewise.
24135 (grub_vsprintf): Renamed to ...
24136 (grub_vsnprintf_real): ...this. New argument max_len.
24137
24138 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
24139
24140 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
24141 fix grub-script-check warning.
24142
24143 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24144
24145 * include/grub/font.h (grub_font_load): Fix prototype.
24146
24147 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24148
24149 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
24150
24151 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24152
24153 * include/grub/x86_64/at_keyboard.h: New file.
24154
24155 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24156
24157 * loader/mips/linux.c: Include missing grub/i18n.h.
24158
24159 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24160
24161 * normal/menu.c (notify_execution_failure): Clarify error message.
24162
24163 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24164
24165 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
24166 return value (and revert all return statements). Update users.
24167
24168 2010-01-20 Dan Merillat <debian@dan.merillat.org>
24169
24170 * kern/device.c (grub_device_iterate): Allocate new part_ent
24171 structure based on sizeof (*p) rather than sizeof (p->next), to
24172 account for structure padding.
24173
24174 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
24175 disk is NULL, which might happen for LVM physical volumes with no
24176 LVM signature.
24177
24178 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24179
24180 * loader/mips/linux.c (grub_cmd_initrd)
24181 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
24182
24183 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24184
24185 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
24186 (grub_video_video_init, grub_video_bitmap_init)
24187 (grub_font_manager_init, grub_term_gfxterm_init)
24188 (grub_at_keyboard_init): New extern declarations.
24189 (grub_machine_init): Initialize gfxterm and at_keyboard.
24190
24191 * kern/main.c (grub_main): Revert grub_printf delay kludge.
24192
24193 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
24194 `gfxterm.mod' into core image.
24195
24196 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24197 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24198 (kernel_img_FORMAT): Copy to ...
24199
24200 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24201 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24202 (kernel_img_FORMAT): ... here, and ...
24203
24204 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24205 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24206 (kernel_img_FORMAT): ... here.
24207
24208 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
24209 and input (at_keyboard) terminals in kernel.
24210 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
24211
24212 (pkglib_MODULES): Remove `pci.mod'.
24213 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
24214 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
24215 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
24216 (at_keyboard_mod_LDFLAGS): Remove variables.
24217
24218 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
24219
24220 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
24221
24222 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
24223
24224 * include/grub/mips/libgcc.h: Only export symbols for functions
24225 that libgcc provides.
24226
24227 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
24228
24229 MIPS support.
24230
24231 * bus/bonito.c: New file.
24232 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
24233 GRUB_PCI_NUM_DEVICES.
24234 * term/i386/pc/serial.c: Move to ...
24235 * term/serial.c: ... here. All users updated.
24236 * util/i386/pc/grub-mkimage.c: Move to ...
24237 * util/grub-mkrawimage.c: ... here. All users updated.
24238 * term/i386/pc/at_keyboard.c: Move to ...
24239 * term/at_keyboard.c: ... here. All users updated.
24240 * conf/mips-qemu-mips.rmk: New file.
24241 * conf/mips-yeeloong.rmk: Likewise.
24242 * conf/mips.rmk: Likewise.
24243 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
24244 mipsel-qemu-mips.
24245 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
24246 to port addresses.
24247 (grub_ata_pciinit): Support CS5536.
24248 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
24249 * font/font_cmd.c (loadfont_command): Open file before passing it to
24250 grub_font_load.
24251 (pseudo_file_read): New function.
24252 (pseudo_file_close): Likewise.
24253 (pseudo_fs): New structure.
24254 (load_font_module): New function.
24255 (GRUB_MOD_INIT(font_manager)): Load embedded font.
24256 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
24257 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
24258 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
24259 * include/grub/i386/at_keyboard.h: Split into ...
24260 * include/grub/at_keyboard.h: ... this ...
24261 * include/grub/i386/at_keyboard.h: ... and this.
24262 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
24263 New prototype.
24264 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
24265 updated.
24266 (grub_elf64_size): Likewise.
24267 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
24268 filename.
24269 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
24270 * include/grub/i386/coreboot/serial.h: Rewritten.
24271 * include/grub/i386/ieee1275/serial.h: Include
24272 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
24273 * include/grub/i386/pc/serial.h: Moved from here ...
24274 * include/grub/serial.h: ... to here. All users updated.
24275 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
24276 (GRUB_PCI_NUM_BUS): Likewise.
24277 (GRUB_PCI_NUM_DEVICES): Likewise.
24278 (grub_pci_device_map_range): Add missing volatile keyword.
24279 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
24280 * include/grub/mips/at_keyboard.h: New file.
24281 * include/grub/mips/cache.h: Likewise.
24282 * include/grub/mips/io.h: Likewise.
24283 * include/grub/mips/kernel.h: Likewise.
24284 * include/grub/mips/libgcc.h: Likewise.
24285 * include/grub/mips/pci.h: Likewise.
24286 * include/grub/mips/qemu-mips/boot.h: Likewise.
24287 * include/grub/mips/qemu-mips/kernel.h: Likewise.
24288 * include/grub/mips/qemu-mips/loader.h: Likewise.
24289 * include/grub/mips/qemu-mips/memory.h: Likewise.
24290 * include/grub/mips/qemu-mips/serial.h: Likewise.
24291 * include/grub/mips/qemu-mips/time.h: Likewise.
24292 * include/grub/mips/relocator.h: Likewise.
24293 * include/grub/mips/time.h: Likewise.
24294 * include/grub/mips/types.h: Likewise.
24295 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
24296 * include/grub/mips/yeeloong/boot.h: Likewise.
24297 * include/grub/mips/yeeloong/kernel.h: Likewise.
24298 * include/grub/mips/yeeloong/loader.h: Likewise.
24299 * include/grub/mips/yeeloong/memory.h: Likewise.
24300 * include/grub/mips/yeeloong/pci.h: Likewise.
24301 * include/grub/mips/yeeloong/serial.h: Likewise.
24302 * include/grub/mips/yeeloong/time.h: Likewise.
24303 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
24304 * kern/elf.c (grub_elf32_size): New parameter. All users
24305 updated.
24306 (grub_elf64_size): Likewise.
24307 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
24308 Load modules before saying "Welcome to GRUB!".
24309 Call grub_refresh after saying "Welcome to GRUB!".
24310 * kern/mips/cache.S: New file.
24311 * kern/mips/cache_flush.S: Likewise.
24312 * kern/mips/dl.c: Likewise.
24313 * kern/mips/init.c: Likewise.
24314 * kern/mips/qemu-mips/init.c: Likewise.
24315 * kern/mips/startup.S: Likewise.
24316 * kern/mips/yeeloong/init.c: Likewise.
24317 * kern/term.c (grub_putcode): Handle NULL terminal.
24318 (grub_getcharwidth): Likewise.
24319 (grub_getkey): Likewise.
24320 (grub_checkkey): Likewise.
24321 (grub_getkeystatus): Likewise.
24322 (grub_getxy): Likewise.
24323 (grub_getwh): Likewise.
24324 (grub_gotoxy): Likewise.
24325 (grub_cls): Likewise.
24326 (grub_setcolorstate): Likewise.
24327 (grub_setcolor): Likewise.
24328 (grub_getcolor): Likewise.
24329 (grub_refresh): Likewise.
24330 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
24331 (write_jump): Add hatch nop.
24332 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
24333 * lib/mips/setjmp.S: New file.
24334 * loader/mips/linux.c: Likewise.
24335 * term/i386/pc/at_keyboard.c: Move from here ...
24336 * term/at_keyboard.c: ... to here.
24337 * term/i386/pc/serial.c: Moved from here ...
24338 * term/serial.c: ... to here. All users updated.
24339 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
24340 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
24341 (serial_translate_key_sequence): Avoid deadlock.
24342 (grub_serial_getkey): Handle backspace.
24343 (grub_serial_putchar): Fix newline handling.
24344 * util/i386/pc/grub-mkimage.c: Move from here ...
24345 * util/grub-mkrawimage.c: ... to here. All users updated.
24346 (generate_image): New parameters 'font_path' and 'format'.
24347 Support embedding font.
24348 Use grub_host_to_target* instead of grub_cpu_to_le*.
24349 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
24350 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
24351 (options): New option "--font".
24352 (usage): Likewise.
24353 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
24354 (main): Handle "--font".
24355 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
24356 (grub_virtual_screen_setup): Set bg_color_display.
24357 (redraw_screen_rect): Use bg_color_display instead of incorrect
24358 bg_color.
24359 (grub_gfxterm_cls): Likewise.
24360 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
24361 Support embedding config file.
24362 (add_segments): Likewise.
24363 (options): New option "--config".
24364 (main): Handle "--config".
24365 * video/sm712.c: New file.
24366
24367 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24368
24369 Fix parallel builds.
24370
24371 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
24372 font.c depend on ascii.h).
24373
24374 2010-01-12 Carles Pina i Estany <carles@pina.cat>
24375
24376 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
24377
24378 2010-01-11 Carles Pina i Estany <carles@pina.cat>
24379
24380 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
24381 By default: disabled.
24382 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
24383 parameter.
24384
24385 2010-01-10 Carles Pina i Estany <carles@pina.cat>
24386
24387 * font/font.c: Update copyright years.
24388 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
24389
24390 2010-01-10 Carles Pina i Estany <carles@pina.cat>
24391
24392 * font/font.c: Include `ascii.h'.
24393 (ASCII_BITMAP_SIZE): New macro.
24394 (ascii_font_glyph): Define.
24395 (ascii_glyph_lookup): New function.
24396 (grub_font_get_string_width): Change comment. If glyph not found, use
24397 ascii_glyph_lookup.
24398 (grub_font_get_glyph_with_fallback): If glyph not available returns
24399 ascii_glyph_lookup.
24400 * util/grub-mkfont.c (file_formats): New enum.
24401 (options): Add `ascii-bitmaps' new option.
24402 (usage): Add `asii-bitmaps' new option.
24403 (write_font_ascii_bitmap): New function.
24404 (write_font): Rename to ...
24405 (write_font_p2): ... this. Remove print_glyphs call.
24406 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
24407 used. Call print_glyphs.
24408 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
24409
24410 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24411
24412 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
24413 (grub_bin2h_SOURCES): New variable.
24414 * util/bin2h.c: New file.
24415
24416 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24417
24418 * include/multiboot.h: Resynced with spec.
24419 * include/multiboot2.h: Likewise.
24420 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
24421 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
24422
24423 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24424
24425 * include/grub/term.h (grub_term_register_input,
24426 grub_term_register_output): Check return of terminal init()
24427 routines, and abort if errors are raised.
24428
24429 * commands/terminal.c: Update copyright year.
24430
24431 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24432
24433 * commands/terminal.c (grub_cmd_terminal_input)
24434 (grub_cmd_terminal_output): Check return of terminal init()
24435 routines, and abort if errors are raised.
24436
24437 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24438
24439 * include/grub/i386/bsd.h: Fix include pathes.
24440
24441 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24442
24443 Add missing *BSD copyright headers.
24444
24445 * include/grub/aout.h: Add BSD licence.
24446 * include/grub/i386/bsd.h: Parts under different licences moved to ...
24447 * include/grub/i386/freebsd_linker.h: ... here,
24448 * include/grub/i386/freebsd_reboot.h: ... here,
24449 * include/grub/i386/netbsd_bootinfo.h: ... here,
24450 * include/grub/i386/netbsd_reboot.h: ... here,
24451 * include/grub/i386/openbsd_bootarg.h: ... here,
24452 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
24453 licence to each file.
24454
24455 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24456
24457 * acinclude.m4: Remove `nop' assembly instruction; it's not
24458 implemented by all architectures.
24459
24460 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24461
24462 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
24463 ELILO. This is no longer necessary.
24464
24465 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
24466
24467 Added new tool, grub-scrit-check to verify grub.cfg syntax.
24468
24469 * util/grub-script-check.c: grub-script-check tool.
24470 * conf/common.rmk: Make rules for grub-script-check.
24471
24472 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24473
24474 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
24475 spotting it back in 2008. Shame on me for forgetting he did.
24476
24477 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
24478
24479 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24480
24481 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
24482 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
24483 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
24484 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
24485 (GRUB_VIDEO_TYPE_EFI): Rename to ...
24486 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
24487
24488 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
24489
24490 * include/grub/test.h: Add license header.
24491 * tests/example_functional_test.c: Likewise.
24492 * tests/example_unit_test.c: Likewise.
24493 * tests/lib/functional_test.c: Likewise.
24494 * tests/lib/test.c: Likewise.
24495 * tests/lib/unit_test.c: Likewise.
24496
24497 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
24498
24499 Use flag-based instead of hook-based video mode selection and "auto"
24500 keyword.
24501
24502 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
24503 (grub_video_set_mode): Changed prototype. All users updated.
24504 (grub_video_check_mode_flag): New inline function.
24505 * video/video.c (parse_modespec): New function.
24506 (grub_video_set_mode): Parse flags and keywords.
24507
24508 2010-01-17 Carles Pina i Estany <carles@pina.cat>
24509
24510 * util/misc.c (grub_util_info): Fix the order of the parameters in a
24511 fprintf call.
24512
24513 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
24514
24515 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
24516
24517 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24518
24519 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
24520 string.
24521 * util/grub-emu.c (usage): Likewise.
24522 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
24523 * util/i386/efi/grub-mkimage.c (usage): Likewise.
24524 * util/i386/pc/grub-mkimage.c (usage): Likewise.
24525 * util/i386/pc/grub-setup.c (usage): Likewise.
24526
24527 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24528
24529 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
24530 the message.
24531 (grub_util_info): Likewise.
24532 (grub_util_error): Likewise.
24533 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
24534 and/or new lines in `grub_util_warna', `grub_util_info',
24535 `grub_util_error' calls.
24536 * util/getroot.c: Likewise.
24537 * util/grub-editenv.c: Likewise.
24538 * util/grub-emu.c: Likewise.
24539 * util/grub-fstest.c: Likewise.
24540 * util/grub-mkdevicemap.c: Likewise.
24541 * util/grub-mkfont.c: Likewise.
24542 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24543 * util/grub-mkrelpath.c: Likewise.
24544 * util/grub-pe2elf.c: Likewise.
24545 * util/grub-probe.c: Likewise.
24546 * util/hostdisk.c: Likewise.
24547 * util/i386/efi/grub-mkimage.c: Likewise.
24548 * util/i386/pc/grub-mkimage.c: Likewise.
24549 * util/i386/pc/grub-setup.c: Likewise.
24550 * util/ieee1275/ofpath.c: Likewise.
24551 * util/mkisofs/eltorito.c: Likewise.
24552 * util/mkisofs/rock.c: Likewise.
24553 * util/mkisofs/write.c: Likewise.
24554 * util/raid.c: Likewise.
24555 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
24556 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24557
24558 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24559
24560 Enable multiboot on non-pc.
24561
24562 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
24563 multiboot.mod and multiboot2.mod to ...
24564 * conf/i386.rmk (pkglib_MODULES): ... here.
24565 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
24566 Moved to ...
24567 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
24568 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
24569 Moved to ...
24570 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
24571 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
24572 Moved to ...
24573 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
24574 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
24575 Moved to ...
24576 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
24577 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
24578 relocator.mod.
24579 (ata_mod_SOURCES): Removed.
24580 (ata_mod_CFLAGS): Likewise.
24581 (ata_mod_LDFLAGS): Likewise.
24582 (relocator_mod_SOURCES): Removed.
24583 (relocator_mod_CFLAGS): Likewise.
24584 (relocator_mod_ASFLAGS): Likewise.
24585 (relocator_mod_LDFLAGS): Likewise.
24586 Include i386.mk.
24587 * include/grub/x86_64/multiboot.h: New file.
24588 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
24589 Terminate EFI.
24590
24591 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24592
24593 Video multiboot support.
24594
24595 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
24596 New prototype.
24597 * include/multiboot.h: Resynced with multiboot specification.
24598 * include/multiboot2.h: Likewise.
24599 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
24600 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
24601 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
24602 (HAS_VGA_TEXT): Likewise.
24603 (accepts_video): New variable.
24604 (grub_multiboot_set_accepts_video): New function.
24605 (grub_multiboot_get_mbi_size): Account for video structures.
24606 (set_video_mode): New function.
24607 (retrieve_video_parameters): Likewise.
24608 (grub_multiboot_make_mbi): Fill video fields.
24609
24610 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24611
24612 Video driver ids.
24613
24614 * include/grub/video.h (grub_video_driver_id): New type.
24615 (grub_video_adapter): New member 'id'. All users updated.
24616 (grub_video_get_driver_id): New proto.
24617 * video/video.c (grub_video_get_driver_id): New function.
24618
24619 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24620
24621 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
24622 `var=val'.
24623
24624 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24625
24626 * normal/cmdline.c (print_completion): Gettextizze.
24627
24628 2001-01-14 Carles Pina i Estany <carles@pina.cat>
24629
24630 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
24631
24632 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24633
24634 * gettext/gettext.c (grub_gettext_translate): Push and pop
24635 grub_errno.
24636 (grub_gettext_delete_list): Change comment style.
24637 * kern/err.c (grub_error): Gettextizze.
24638 (grub_fatal): Gettextizze.
24639
24640 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24641
24642 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
24643 (grub_linux16_real_boot): ... this.
24644 * kern/i386/loader.S: Likewise.
24645 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
24646 (grub_linux16_boot): New function. Switches to text mode and calls
24647 grub_linux16_real_boot().
24648
24649 * loader/i386/bsd.c: Include `<grub/video.h>'.
24650 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
24651 text mode before calling grub_unix_real_boot().
24652
24653 * loader/i386/multiboot.c: Include `<grub/video.h>'.
24654 (grub_multiboot_boot): Switch to text mode before calling
24655 grub_relocator32_boot().
24656
24657 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
24658 (grub_chainloader_boot): Switch to text mode before calling
24659 grub_chainloader_real_boot().
24660
24661 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24662 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24663
24664 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
24665 non-empty value.
24666
24667 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24668 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24669
24670 * util/grub.d/00_header.in: Define a "savedefault" function for use
24671 in menu entries.
24672 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
24673
24674 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24675 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24676
24677 * util/grub-mkconfig_lib.in (save_default_entry): Only set
24678 saved_entry if boot_once is unset.
24679 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
24680 previous saved entry (i.e. grub-reboot).
24681
24682 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24683
24684 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
24685
24686 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24687
24688 * util/grub.d/00_header.in: Use `set var=val' rather than plain
24689 `var=val'.
24690 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
24691
24692 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24693
24694 * util/grub-reboot.in: Fix --version output.
24695 * util/grub-set-default.in: Likewise.
24696
24697 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24698
24699 * util/grub.d/00_header.in: Silently ignore zero-sized environment
24700 blocks.
24701
24702 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24703
24704 * util/grub.d/00_header.in: Quote the value assigned to `default',
24705 in case it contains spaces.
24706
24707 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24708
24709 * util/grub.d/30_os-prober.in: Fix merge error that moved a
24710 `save_default_entry' call from the macosx case to the linux case.
24711
24712 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
24713 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
24714
24715 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
24716 in `chosen' environment variable.
24717 * normal/menu_text.c (get_entry_number): Check if the variable
24718 matches the title of a menu entry.
24719 (run_menu): Pass menu to get_entry_number.
24720
24721 * util/grub-reboot.in: New file.
24722 * util/grub-set-default.in: New file.
24723 * conf/common.rmk (grub-reboot): New utility.
24724 (grub-set-default): New utility.
24725
24726 * util/grub-mkconfig_lib.in (save_default_entry): New function.
24727 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
24728 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
24729 move it to `saved_entry' for the next boot. Load environment on
24730 initialisation.
24731 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
24732 * util/grub.d/10_hurd.in: Likewise.
24733 * util/grub.d/10_linux.in (linux_entry): Likewise.
24734 * util/grub.d/10_windows.in: Likewise.
24735 * util/grub.d/30_os-prober.in: Likewise.
24736
24737 * util/grub-install.in: Create environment block.
24738 * util/i386/efi/grub-install.in: Likewise.
24739 * util/ieee1275/grub-install.in: Likewise.
24740 * util/sparc64/ieee1275/grub-install.in: Likewise.
24741
24742 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
24743
24744 Unit testing framework for GRUB.
24745
24746 * Makefile.in: Test framework build rules for 'make check'.
24747 * conf/tests.rmk: Build rules for individual tests and framework.
24748
24749 * include/grub/test.h: Header file for whitebox tests.
24750 * tests/lib/functional_test.c: Framework support for whitebox
24751 functional tests.
24752 * tests/lib/test.c: Common whitebox testing code for unit and
24753 functional tests.
24754 * tests/lib/unit_test.c: Framework support for whitebox unit
24755 tests.
24756
24757 * tests/util/grub-shell-tester.in: Support utility for grub-script
24758 tests.
24759 * tests/util/grub-shell.in: Utility to execute grub-script
24760 commands in a Qemu instance.
24761
24762 * tests/example_functional_test.c: Example whitebox functional
24763 test.
24764 * tests/example_grub_script_test.in: Example grub-script test.
24765 * tests/example_scripted_test.in: Example scripted test.
24766 * tests/example_unit_test.c: Example whitebox unit test.
24767
24768 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
24769
24770 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
24771 Add loader/i386/multiboot_mbi.c.
24772 (multiboot2_mod_SOURCES): Likewise.
24773 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
24774 (multiboot2_mod_SOURCES): Likewise.
24775 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
24776 (grub_multiboot_make_mbi): Likewise.
24777 (grub_multiboot_free_mbi): Likewise.
24778 (grub_multiboot_init_mbi): Likewise.
24779 (grub_multiboot_add_module): Likewise.
24780 (grub_multiboot_set_bootdev): Likewise.
24781 * loader/i386/multiboot.c (mbi): Removed.
24782 (mbi_dest): Likewise.
24783 (alloc_mbi): New variable.
24784 (grub_multiboot_payload_size): Removed. All users updated.
24785 (grub_multiboot_pure_size): New variable.
24786 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
24787 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
24788 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
24789 (grub_fill_multiboot_mmap): Likewise.
24790 (grub_multiboot_get_bootdev): Likewise.
24791 (grub_multiboot): Use multiboot_mbi functions.
24792 * loader/i386/multiboot_mbi.c: New file.
24793
24794 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24795
24796 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
24797 it would result in module crash.
24798
24799 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24800
24801 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
24802 (grub_ofconsole_getwh): Split to ...
24803 (grub_ofconsole_getwh): ... this.
24804 (grub_ofconsole_dimensions): ...and this.
24805 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
24806
24807 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
24808
24809 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
24810
24811 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24812
24813 * loader/i386/pc/multiboot2.c: Removed stalled file.
24814
24815 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24816
24817 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
24818 Reported by: Grégoire Sutre
24819
24820 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
24821
24822 * util/misc.c (canonicalize_file_name): New function.
24823 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
24824 instead of realpath().
24825
24826 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
24827
24828 * util/grub-install.in (usage): Clarify meaning of --root-directory,
24829 and make it clearer that it's optional. Based on confusion
24830 witnessed on IRC.
24831
24832 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24833
24834 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
24835 in premature implicit newline.
24836
24837 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24838
24839 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
24840 which resulted in garbled command line at the end of screen.
24841
24842 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24843
24844 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
24845 initialization with similar approach as with other Linux loaders.
24846
24847 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24848
24849 Fix i386-ieee1275 build.
24850
24851 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
24852 and grub_term_height() for video_{width,height} initialization.
24853
24854 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24855
24856 Fix grub-emu build.
24857
24858 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
24859
24860 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24861 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24862
24863 Support for multiple terminals.
24864
24865 * Makefile.in (pkglib_DATA): terminal.lst.
24866 (terminal.lst): New target.
24867 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
24868 (GRUB_MOD_INIT(handler)): Likewise.
24869 (GRUB_MOD_FINI(handler)): Likewise.
24870 * commands/help.c (grub_cmd_help): Handle multiple terminals.
24871 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
24872 * commands/sleep.c (do_print): Use grub_term_restore_pos.
24873 (grub_cmd_sleep): Use grub_term_save_pos.
24874 * commands/terminal.c: New file.
24875 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
24876 commands/terminal.c and lib/charset.c.
24877 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
24878 (pkglib_MODULES): Add terminal.mod.
24879 (terminal_mod_SOURCES): New variable.
24880 (terminal_mod_CFLAGS): Likewise.
24881 (terminal_mod_LDFLAGS): Likewise.
24882 * genhandlerlist.sh: Don't handle terminals.
24883 * genmk.rb: Generate terminal-*.lst.
24884 * genterminallist.sh: New file.
24885 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
24886 (grub_is_valid_utf8): Likewise.
24887 (grub_utf8_to_ucs4_alloc): Likewise.
24888 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
24889 (grub_menu_register_viewer): Changed argument.
24890 (grub_menu_try_text): New proto.
24891 (grub_gfxmenu_try_hook): New declaration.
24892 * include/grub/normal.h (grub_normal_exit_level): New declaration.
24893 (grub_menu_init_page): Additional argument term.
24894 (grub_normal_init_page): Likewise.
24895 (grub_cmdline_get): Arguments simplified.
24896 (grub_utf8_to_ucs4_alloc): Removed.
24897 (grub_print_ucs4): Additional argument term.
24898 (grub_getstringwidth): Likewise.
24899 (grub_print_message_indented): Likewise.
24900 (grub_menu_text_register_instances): New proto.
24901 (grub_show_menu): Likewise.
24902 (read_terminal_list): Likewise.
24903 (grub_set_more): Likewise.
24904 * include/grub/parser.h: Include handler.h.
24905 * include/grub/reader.h: Rewritten.
24906 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
24907 (GRUB_TERM_WIDTH): Changed to function.
24908 (GRUB_TERM_HEIGHT): Likewise.
24909 (GRUB_TERM_BORDER_WIDTH): Likewise.
24910 (GRUB_TERM_BORDER_HEIGHT): Likewise.
24911 (GRUB_TERM_NUM_ENTRIES): Likewise.
24912 (GRUB_TERM_ENTRY_WIDTH): Likewise.
24913 (GRUB_TERM_CURSOR_X): Likewise.
24914 (grub_term_input_class): Likewise.
24915 (grub_term_output_class): Likewise.
24916 (grub_term_outputs_disabled): New declaration.
24917 (grub_term_inputs_disabled): Likewise.
24918 (grub_term_outputs): Likewise.
24919 (grub_term_inputs): Likewise.
24920 (grub_term_register_input): Rewritten.
24921 (grub_term_register_output): Likewise.
24922 (grub_term_unregister_input): Likewise.
24923 (grub_term_unregister_output): Likewise.
24924 (FOR_ACTIVE_TERM_INPUTS): New macro.
24925 (FOR_DISABLED_TERM_INPUTS): Likewise.
24926 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24927 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24928 * include/grub/terminfo.h: Add oterm argument to all protypes.
24929 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
24930 Use grub_rescue_run.
24931 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
24932 All users updated.
24933 * kern/reader.c: Removed. All users updated.
24934 * kern/rescue_reader.c (grub_rescue_init): Removed.
24935 (grub_rescue_reader): Likewise.
24936 (grub_register_rescue_reader): Likewise.
24937 (grub_rescue_run): New function based on kern/reader.c.
24938 * kern/term.c: Adapted for multiterm.
24939 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
24940 (grub_is_valid_utf8): Likewise.
24941 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
24942 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
24943 right terminal.
24944 * loader/i386/linux.c (grub_linux_boot): Likewise.
24945 * normal/auth.c (grub_username_get): New function.
24946 (grub_auth_check_authentication): Use grub_username_get.
24947 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
24948 * normal/color.c: Adapt for multiterm.
24949 * normal/main.c (read_config_file): Don't use grub_reader_loop.
24950 (grub_normal_init_page): Additional argument term.
24951 (read_lists): Call read_terminal_lists.
24952 (grub_enter_normal_mode): Call grub_cmdline_run.
24953 Handle grub_normal_exit_level.
24954 (grub_cmd_normal): Make reentrant.
24955 (grub_cmd_normal_exit): New function.
24956 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
24957 * normal/menu.c: Adapt for multiterm.
24958 * normal/menu_entry.c: Likewise.
24959 * normal/menu_text.c: Likewise.
24960 * normal/menu_viewer.c: Removed. All users updated.
24961 * normal/term.c: New file.
24962 * util/console.c: Change order of includes to workaround a bug in
24963 ncurses headers.
24964 * term/terminfo.c: New argument oterm on all exported functions.
24965 All users updated.
24966 * util/grub-editenv.c (grub_term_input_class): Removed.
24967 (grub_term_output_class): Likewise.
24968
24969 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24970
24971 Make loader output a bit more user-friendly.
24972
24973 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
24974 is being loaded. Likewise for the Hurd.
24975
24976 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
24977 that kernel of FreeBSD ${version} is being loaded.
24978
24979 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
24980 grub_dprintf().
24981 (grub_cmd_initrd): Likewise.
24982 * util/grub.d/10_linux.in (linux_entry): Print message indicating
24983 that Linux ${version} is being loaded. Likewise for initrd.
24984
24985 2010-01-09 Carles Pina i Estany <carles@pina.cat>
24986
24987 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
24988
24989 2010-01-08 Carles Pina i Estany <carles@pina.cat>
24990
24991 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
24992 (GRUB_MOD_INIT): Gettextizze.
24993 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
24994 (GRUB_MOD_INIT): Gettextizze.
24995 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
24996 (grub_cmd_linux): Capitalise Linux.
24997 (GRUB_MOD_INIT): Gettextizze.
24998 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
24999 (grub_cmd_linux): Capitalise Linux.
25000 (GRUB_MOD_INIT): Gettextizze.
25001 * loader/i386/linux.c: Include `<grub/i18n.h>'.
25002 (grub_cmd_linux): Capitalise Linux.
25003 (GRUB_MOD_INIT): Gettextizze.
25004 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
25005 (GRUB_MOD_INIT): Gettextizze.
25006 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
25007 (grub_cmd_linux): Capitalise Linux.
25008 (GRUB_MOD_INIT): Gettextizze.
25009 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
25010 (grub_cpu_xnu_init): Gettextizze.
25011 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
25012 (GRUB_MOD_INIT): Gettextizze.
25013 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
25014 (GRUB_MOD_INIT): Gettextizze.
25015 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
25016 (grub_linux_load64): Capitalise Linux.
25017 (GRUB_MOD_INIT): Gettextizze.
25018 * loader/xnu.c: Include `<grub/i18n.h>'.
25019 (GRUB_MOD_INIT): Gettextizze.
25020 * po/POTFILES: Add `loader/efi/appleloader.c',
25021 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
25022 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
25023 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
25024 `loader/i386/xnu.c', `loader/multiboot_loader.c',
25025 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
25026 and `loader/xnu.c'.
25027
25028 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
25029
25030 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
25031
25032 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
25033
25034 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
25035 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
25036 * util/mkisofs/mkisofs.c (main): Readjust --version output.
25037
25038 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25039
25040 Reset Multiboot 2 support. New loader implements the draft in
25041 /branches/multiboot2 and shares as much code as possible with the
25042 production Multiboot 1 implementation.
25043
25044 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
25045 * loader/multiboot2.c: Likewise.
25046 * loader/i386/multiboot_helper.S: Likewise.
25047 * include/multiboot2.h: Replace with latest version from the draft
25048 in /branches/multiboot2.
25049
25050 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
25051 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
25052 and `loader/multiboot2.c'.
25053 (pkglib_MODULES): Add `multiboot2.mod'.
25054 (multiboot2_mod_SOURCES): New variable.
25055 (multiboot2_mod_LDFLAGS): Likewise.
25056 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
25057
25058 * conf/i386-pc.rmk: Likewise.
25059
25060 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
25061 (multiboot_mod_SOURCES): Remove variable.
25062 (multiboot_mod_LDFLAGS): Likewise.
25063 (multiboot_mod_CFLAGS): Likewise.
25064
25065 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
25066 `<multiboot2.h>' instead of `<multiboot.h>'.
25067 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
25068 (MULTIBOOT_HEADER_MAGIC): New macros.
25069
25070 * loader/multiboot_loader.c (module_version_status): Remove variable.
25071 (find_multi_boot2_header): Remove function.
25072 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
25073 logic. Always check for the Multiboot version we're compiling for.
25074 (grub_cmd_module_loader): Likewise.
25075 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
25076 command instead of `multiboot'.
25077
25078 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25079
25080 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
25081 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
25082 all users.
25083
25084 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25085 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25086
25087 Fix breakage introduced with previous commit.
25088
25089 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
25090 commands.
25091 * normal/handler.c (read_handler_list): Revert part of previous commit
25092 affecting this file.
25093 * normal/main.c (read_lists): Move read_handler_list() call back to ...
25094 (grub_normal_execute): ... here.
25095
25096 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25097
25098 Merge prefix-redefinition-fix branch.
25099
25100 * normal/autofs.c (read_fs_list): Make function capable of being
25101 run multiple times, gracefuly replacing the previous data
25102 structures.
25103 * normal/dyncmd.c (read_command_list): Likewise.
25104 * normal/handler.c (read_handler_list): Likewise.
25105 * normal/main.c (read_lists): New function. Calls all the
25106 list reading functions.
25107 (grub_normal_execute): Use read_lists() instead of calling all
25108 list reading functions explicitly. Register read_lists() as a
25109 variable hook attached to ${prefix}.
25110
25111 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25112
25113 Merge crypto branch.
25114
25115 * Makefile.in (pkglib_DATA): Add crypto.lst.
25116 (crypto.lst): New target.
25117 * commands/hashsum.c: New file.
25118 * commands/password.c (check_password): Use grub_crypto_memcmp.
25119 * commands/password_pbkdf2.c: New file.
25120 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
25121 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
25122 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
25123 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
25124 -I$(srcdir)/lib/libgcrypt_wrap.
25125 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
25126 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
25127 password_pbkdf2.mod.
25128 (crypto_mod_SOURCES): New variable.
25129 (crypto_mod_CFLAGS): Likewise.
25130 (crypto_mod_LDFLAGS): Likewise.
25131 (hashsum_mod_SOURCES): New variable.
25132 (hashsum_mod_CFLAGS): Likewise.
25133 (hashsum_mod_LDFLAGS): Likewise.
25134 (pbkdf2_mod_SOURCES): New variable.
25135 (pbkdf2_mod_CFLAGS): Likewise.
25136 (pbkdf2_mod_LDFLAGS): Likewise.
25137 (password_pbkdf2_mod_SOURCES): New variable.
25138 (password_pbkdf2_mod_CFLAGS): Likewise.
25139 (password_pbkdf2_mod_LDFLAGS): Likewise.
25140 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
25141 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
25142 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
25143 Include conf/gcry.rmk.
25144 * include/grub/auth.h: Rewritten.
25145 * include/grub/crypto.h: New file.
25146 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
25147 * include/grub/normal.h (read_crypto_list): New prototype.
25148 * lib/crypto.c: New file.
25149 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
25150 * lib/pbkdf2.c: Likewise.
25151 * normal/auth.c (grub_auth_strcmp): Removed.
25152 (grub_iswordseparator): Likewise.
25153 (grub_auth_strword): Likewise.
25154 (is_authenticated): Use grub_strword.
25155 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
25156 and grub_strword. Pass entered password to authentication callback.
25157 * normal/crypto.c: New file.
25158 * normal/main.c: Call read_crypto_list.
25159 * util/grub-mkpasswd-pbkdf2.c: New file.
25160 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
25161
25162 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
25163
25164 Fix descent and ascent calculation.
25165
25166 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
25167 (options): New option "asce".
25168 (usage): Likewise.
25169 (add_char): Ignore invalid glyphs for descent calculation.
25170 Calculate ascent from actual content.
25171 (print_glyphs): Use 'asce'.
25172 (write_font): Likewise. Allow ascent override.
25173 (main): Handle "asce" option.
25174
25175 2010-01-06 Carles Pina i Estany <carles@pina.cat>
25176
25177 * kern/err.c: Include `<grub/i18n.h>'.
25178 (grub_print_error): Add full stop. Gettextizze.
25179 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
25180 (grub_bsd_load_elf): Capitalise ELF.
25181 (grub_cmd_freebsd_loadenv): Add `s' in error string.
25182 (grub_cmd_freebsd_module): Likewise.
25183 (grub_cmd_freebsd_module_elf): Likewise.
25184 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
25185
25186 2010-01-06 Carles Pina i Estany <carles@pina.cat>
25187
25188 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
25189 * commands/search_file.c (HELP_MESSAGE): New macro.
25190 * commands/search_label.c (HELP_MESSAGE): Likewise.
25191 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
25192 * po/POTFILES: Add `commands/search_file.c',
25193 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
25194 `commands/search.c'.
25195
25196 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25197
25198 * config.rpath: Update from Gnulib.
25199
25200 2010-01-05 Yves Blusseau <blusseau@zetam.org>
25201
25202 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
25203
25204 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
25205
25206 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
25207
25208 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
25209
25210 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
25211 arguments to fread so that we get a return value in bytes, rather
25212 than something that will normally be rounded down to 0.
25213 Adjust error handling to avoid producing garbage when size_t is not
25214 the same size as long long.
25215
25216 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
25217
25218 * util/mkisofs/write.c (padblock_write): Check return value of
25219 fread.
25220
25221 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25222
25223 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
25224 floppy images now.
25225
25226 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
25227
25228 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25229
25230 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
25231 instead of manual alignment.
25232 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
25233 verbose). Avoid attempts to read past end of the device
25234 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
25235 but GRUB_DISK_CACHE_SIZE may exceed that).
25236
25237 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25238
25239 * commands/crc.c (grub_cmd_crc): Abort on read errors.
25240 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
25241 it to upper layer.
25242
25243 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25244
25245 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
25246 New constant.
25247 (grub_efi_piwg_device_path): New structure
25248 (grub_efi_piwg_device_path_t): New type.
25249 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
25250 (devpath_1): Transform to a structure. All users updated.
25251 (devpath_2): Likewise.
25252 (devpath_3): Likewise.
25253 (devpath_4): Likewise.
25254 (devpath_5): Likewise.
25255
25256 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25257
25258 * loader/efi/appleloader.c: Restored. Update all users.
25259
25260 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25261
25262 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
25263
25264 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
25265 (struct boot_blocklist): Move from here ...
25266 * include/grub/i386/pc/boot.h [ASM_FILE]
25267 (struct grub_boot_blocklist): ... to here. Update all users.
25268 (setup): Only initialize `start' member of `first_block'
25269 structure. Add assert() calls to verify the other members.
25270
25271 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
25272 (generate_image): Fix broken blocklist length initialization.
25273 Add assert() call to verify blocklist `segment' field.
25274
25275 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25276
25277 * loader/efi/appleloader.c: Remove. Update all users.
25278
25279 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25280
25281 * boot/i386/pc/boot.S: Update copyright year.
25282 * boot/i386/pc/cdboot.S: Likewise.
25283 * boot/i386/pc/diskboot.S: Likewise.
25284 * boot/i386/pc/lnxboot.S: Likewise.
25285 * boot/i386/pc/pxeboot.S: Likewise.
25286 * bus/pci.c: Likewise.
25287 * commands/cmp.c: Likewise.
25288 * commands/help.c: Likewise.
25289 * commands/hexdump.c: Likewise.
25290 * commands/i386/pc/halt.c: Likewise.
25291 * commands/i386/pc/play.c: Likewise.
25292 * commands/i386/pc/vbeinfo.c: Likewise.
25293 * commands/ls.c: Likewise.
25294 * commands/test.c: Likewise.
25295 * disk/dmraid_nvidia.c: Likewise.
25296 * disk/i386/pc/biosdisk.c: Likewise.
25297 * disk/ieee1275/nand.c: Likewise.
25298 * disk/ieee1275/ofdisk.c: Likewise.
25299 * disk/lvm.c: Likewise.
25300 * disk/raid.c: Likewise.
25301 * disk/raid6_recover.c: Likewise.
25302 * disk/scsi.c: Likewise.
25303 * fs/affs.c: Likewise.
25304 * fs/cpio.c: Likewise.
25305 * fs/ext2.c: Likewise.
25306 * fs/hfs.c: Likewise.
25307 * fs/iso9660.c: Likewise.
25308 * fs/ntfs.c: Likewise.
25309 * fs/sfs.c: Likewise.
25310 * fs/udf.c: Likewise.
25311 * fs/ufs.c: Likewise.
25312 * fs/xfs.c: Likewise.
25313 * gencmdlist.sh: Likewise.
25314 * genmk.rb: Likewise.
25315 * include/grub/disk.h: Likewise.
25316 * include/grub/efi/api.h: Likewise.
25317 * include/grub/efi/efi.h: Likewise.
25318 * include/grub/efi/pe32.h: Likewise.
25319 * include/grub/elf.h: Likewise.
25320 * include/grub/fs.h: Likewise.
25321 * include/grub/i386/at_keyboard.h: Likewise.
25322 * include/grub/i386/pc/memory.h: Likewise.
25323 * include/grub/i386/pc/vbe.h: Likewise.
25324 * include/grub/i386/pci.h: Likewise.
25325 * include/grub/i386/tsc.h: Likewise.
25326 * include/grub/ieee1275/ieee1275.h: Likewise.
25327 * include/grub/ntfs.h: Likewise.
25328 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
25329 * include/grub/sparc64/libgcc.h: Likewise.
25330 * include/grub/symbol.h: Likewise.
25331 * include/grub/types.h: Likewise.
25332 * include/multiboot2.h: Likewise.
25333 * io/gzio.c: Likewise.
25334 * kern/device.c: Likewise.
25335 * kern/disk.c: Likewise.
25336 * kern/efi/efi.c: Likewise.
25337 * kern/efi/mm.c: Likewise.
25338 * kern/elf.c: Likewise.
25339 * kern/file.c: Likewise.
25340 * kern/i386/dl.c: Likewise.
25341 * kern/i386/pc/init.c: Likewise.
25342 * kern/i386/pc/startup.S: Likewise.
25343 * kern/ieee1275/ieee1275.c: Likewise.
25344 * kern/ieee1275/init.c: Likewise.
25345 * kern/main.c: Likewise.
25346 * kern/mm.c: Likewise.
25347 * kern/powerpc/dl.c: Likewise.
25348 * kern/sparc64/dl.c: Likewise.
25349 * kern/x86_64/dl.c: Likewise.
25350 * lib/hexdump.c: Likewise.
25351 * loader/efi/appleloader.c: Likewise.
25352 * loader/i386/ieee1275/linux.c: Likewise.
25353 * loader/i386/pc/chainloader.c: Likewise.
25354 * loader/i386/pc/linux.c: Likewise.
25355 * loader/i386/pc/multiboot2.c: Likewise.
25356 * loader/ieee1275/multiboot2.c: Likewise.
25357 * loader/multiboot2.c: Likewise.
25358 * loader/multiboot_loader.c: Likewise.
25359 * loader/powerpc/ieee1275/linux.c: Likewise.
25360 * normal/completion.c: Likewise.
25361 * normal/menu_entry.c: Likewise.
25362 * partmap/apple.c: Likewise.
25363 * util/grub.d/10_hurd.in: Likewise.
25364 * util/hostfs.c: Likewise.
25365 * video/readers/png.c: Likewise.
25366
25367 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
25368
25369 * include/grub/misc.h (GNUC_PREREQ): New macro.
25370 (ATTRIBUTE_ERROR): New macro.
25371 * include/grub/list.h (grub_bad_type_cast_real): Use
25372 ATTRIBUTE_ERROR.
25373
25374 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25375
25376 * normal/menu_text.c (print_message): Change messages.
25377
25378 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25379
25380 * normal/menu_entry.c (store_completion): Gettextizze.
25381
25382 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25383
25384 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
25385
25386 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25387
25388 * po/POTFILES: Sort correctly.
25389
25390 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25391
25392 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
25393 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
25394 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
25395 full stop.
25396 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
25397 summary. Gettextizze the strings.
25398 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
25399 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
25400 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
25401 full stop.
25402 (GRUB_MOD_INIT): Remove command name from summary.
25403 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
25404 summary.
25405 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
25406 * term/i386/pc/serial.c (options): Add full stops.
25407 (GRUB_MOD_INIT): Remove command name from the summary.
25408
25409 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25410
25411 * commands/acpi.c: Gettextizze help strings and/or options. Include
25412 `grub/i18n.h' if needed.
25413 * commands/blocklist.c: Likewise.
25414 * commands/boot.c: Likewise.
25415 * commands/cat.c: Likewise.
25416 * commands/cmp.c: Likewise.
25417 * commands/configfile.c: Likewise.
25418 * commands/crc.c: Likewise.
25419 * commands/date.c: Likewise.
25420 * commands/echo.c: Likewise.
25421 * commands/efi/fixvideo.c: Likewise.
25422 * commands/efi/loadbios.c: Likewise.
25423 * commands/gptsync.c: Likewise.
25424 * commands/halt.c: Likewise.
25425 * commands/handler.c: Likewise.
25426 * commands/hdparm.c: Likewise.
25427 * commands/hexdump.c: Likewise.
25428 * commands/i386/cpuid.c: Likewise.
25429 * commands/i386/pc/drivemap.c: Likewise.
25430 * commands/i386/pc/halt.c: Likewise.
25431 * commands/i386/pc/pxecmd.c: Likewise.
25432 * commands/i386/pc/vbeinfo.c: Likewise.
25433 * commands/i386/pc/vbetest.c: Likewise.
25434 * commands/ieee1275/suspend.c: Likewise.
25435 * commands/keystatus.c: Likewise.
25436 * commands/loadenv.c: Likewise.
25437 * commands/ls.c: Likewise.
25438 * commands/lsmmap.c: Likewise.
25439 * commands/lspci.c: Likewise.
25440 * commands/memrw.c: Likewise.
25441 * commands/minicmd.c: Likewise.
25442 * commands/parttool.c: Likewise.
25443 * commands/password.c: Likewise.
25444 * commands/probe.c: Likewise.
25445 * commands/read.c: Likewise.
25446 * commands/reboot.c: Likewise.
25447 * commands/search.c: Likewise.
25448 * commands/sleep.c: Likewise.
25449 * commands/test.c: Likewise.
25450 * commands/true.c: Likewise.
25451 * commands/usbtest.c: Likewise.
25452 * commands/videotest.c: Likewise.
25453 * commands/xnu_uuid.c: Likewise.
25454 * disk/loopback.c: Likewise.
25455 * hello/hello.c: Likewise.
25456 * loader/i386/bsd.c: Likewise.
25457 * term/i386/pc/serial.c: Likewise.
25458 * po/POTFILES: Add new files.
25459
25460 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
25461
25462 * term/i386/pc/at_keyboard.c
25463 (keyboard_controller_wait_untill_ready): Rename to ...
25464 (keyboard_controller_wait_until_ready): ... this. Update all users.
25465
25466 2010-01-01 Carles Pina i Estany <carles@pina.cat>
25467
25468 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
25469 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
25470 string using string width.
25471 * normal/menu_text.c (grub_print_message_indented): Use
25472 grub_print_spaces and not print_spaces.
25473 (print_timeout): Likewise.
25474 (print_spaces): Move to...
25475 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
25476
25477 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
25478
25479 Import from Gnulib.
25480
25481 * gnulib/getdelim.c: New file.
25482 * gnulib/getline.c: Likewise.
25483
25484 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
25485
25486 * include/grub/list.h (grub_assert_fail): Removed.
25487 (grub_bad_type_cast_real): New function.
25488 (grub_bad_type_cast): New macro.
25489 (GRUB_AS_LIST): Use grub_bad_type_cast.
25490 (GRUB_AS_LIST_P): Likewise.
25491 (GRUB_AS_NAMED_LIST): Likewise.
25492 (GRUB_AS_NAMED_LIST_P): Likewise.
25493 (GRUB_AS_PRIO_LIST): Likewise.
25494 (GRUB_AS_PRIO_LIST_P): Likewise.
25495 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
25496
25497 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
25498
25499 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
25500 Fix syntax error.
25501
25502 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
25503
25504 * configure.ac: Check for TARGET_CFLAGS initialization before we
25505 initialize it ourselves (sigh).
25506 Move a few modifications to TARGET_CFLAGS to be unconditional
25507 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
25508 eh_frame)
25509
25510 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
25511 * term/i386/pc/at_keyboard.c
25512 (keyboard_controller_wait_untill_ready): Likewise.
25513 (keyboard_controller_led): Rename `led_status' paramter to avoid
25514 name conflict.
25515
25516 2009-12-28 Carles Pina i Estany <carles@pina.cat>
25517
25518 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
25519 quotes.
25520
25521 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25522
25523 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
25524
25525 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25526
25527 * normal/menu_text.c (grub_print_message_indented): Prevent
25528 past-the-end-of-array dereference.
25529
25530 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25531
25532 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
25533 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
25534
25535 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25536
25537 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
25538 * normal/main.c (grub_normal_read_line): Remove a space from the
25539 default prompt.
25540
25541 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25542
25543 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
25544 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25545 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25546 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25547 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25548 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25549 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25550
25551 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25552
25553 * video/readers/jpeg.c (cmd): Declare.
25554 (grub_cmd_jpegtest): Use `grub_command_t' type.
25555 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25556 Assign to `cmd'.
25557 (GRUB_MOD_FINI): Use `cmd' to unregister.
25558 * video/readers/png.c (cmd): Declare.
25559 (grub_cmd_pngtest): Use `grub_command_t' type.
25560 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25561 Assign to `cmd'.
25562 (GRUB_MOD_FINI): Use `cmd' to unregister.
25563 * video/readers/tga.c (cmd): Declare.
25564 (grub_cmd_tgatest): Use `grub_command_t' type.
25565 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25566 Assign to `cmd'.
25567 (GRUB_MOD_FINI): Use `cmd' to unregister.
25568
25569 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25570
25571 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
25572 stops.
25573 * kern/corecmd.c (grub_register_core_commands): Likewise.
25574 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
25575 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25576 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
25577 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25578 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25579 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
25580 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25581 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
25582 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25583 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25584 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25585 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25586 * normal/handler.c (insert_handler): Likewise.
25587 * normal/main.c (GRUB_MOD_INIT): Likewise.
25588 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25589
25590 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25591
25592 * commands/help.c (grub_cmd_help): Print the command name before the
25593 summary.
25594 (GRUB_MOD_INIT): Remove command name from the summary.
25595 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
25596 string as summary.
25597 * lib/arg.c (find_long): Print the command name before the summary.
25598 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
25599 summary.
25600 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
25601 * commands/cat.c (GRUB_MOD_INIT): Likewise.
25602 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
25603 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25604 * commands/crc.c (GRUB_MOD_INIT): Likewise.
25605 * commands/date.c (GRUB_MOD_INIT): Likewise.
25606 * commands/echo.c (GRUB_MOD_INIT): Likewise.
25607 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
25608 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25609 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25610 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
25611 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
25612 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
25613 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
25614 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25615 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
25616 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
25617 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
25618 * commands/ls.c (GRUB_MOD_INIT): Likewise.
25619 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25620 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25621 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25622 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
25623 * commands/password.c (GRUB_MOD_INIT): Likewise.
25624 * commands/probe.c (GRUB_MOD_INIT): Likewise.
25625 * commands/read.c (GRUB_MOD_INIT): Likewise.
25626 * commands/search.c (GRUB_MOD_INIT): Likewise.
25627 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
25628 * commands/test.c (GRUB_MOD_INIT): Likewise.
25629 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
25630 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25631 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25632 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
25633 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25634 * lib/arg.c (GRUB_MOD_INIT): Likewise.
25635 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
25636 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25637 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25638 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25639 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25640 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
25641 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
25642 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
25643
25644 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25645
25646 Use search command for preliminar UUID search.
25647
25648 * commands/search.c: Split into ...
25649 * commands/search_wrap.c: ...this
25650 * commands/search.c: ...and this.
25651 * commands/search_file.c: New file.
25652 * commands/search_label.c: New file.
25653 * commands/search_uuid.c: New file.
25654 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
25655 Add commands/search_wrap.c, commands/search_file.c,
25656 commands/search_label.c and commands/search_uuid.c.
25657 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
25658 (search_mod_SOURCES): Set to commands/search_wrap.c.
25659 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
25660 search_label.mod.
25661 (search_fs_file_mod_SOURCES): New variable.
25662 (search_fs_file_mod_CFLAGS): Likewise.
25663 (search_fs_file_mod_LDFLAGS): Likewise.
25664 (search_label_mod_SOURCES): Likewise.
25665 (search_label_mod_CFLAGS): Likewise.
25666 (search_label_mod_LDFLAGS): Likewise.
25667 (search_fs_uuid_mod_SOURCES): New variable.
25668 (search_fs_uuid_mod_CFLAGS): Likewise.
25669 (search_fs_uuid_mod_LDFLAGS): Likewise.
25670 (fs_file_mod_SOURCES): Removed.
25671 (fs_file_mod_CFLAGS): Likewise.
25672 (fs_file_mod_LDFLAGS): Likewise.
25673 (fs_uuid_mod_SOURCES): Removed.
25674 (fs_uuid_mod_CFLAGS): Likewise.
25675 (fs_uuid_mod_LDFLAGS): Likewise.
25676 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
25677 Set to util/grub-install.in.
25678 * disk/fs_file.c: Removed.
25679 * disk/fs_uuid.c: Likewise.
25680 * include/grub/search.h: New file.
25681 * util/grub-install.in: Handle sparc64.
25682 Create and use load.cfg.
25683 * util/sparc64/ieee1275/grub-install.in: Removed.
25684
25685 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25686
25687 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
25688 Ignore return status if CF is cleared.
25689 (grub_biosdisk_get_diskinfo_standard): Likewise.
25690
25691 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25692
25693 * term/i386/pc/at_keyboard.c
25694 (keyboard_controller_wait_untill_ready): New function.
25695 (grub_keyboard_controller_write, grub_keyboard_controller_read)
25696 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
25697 for keyboard polling, rather than duplicate the same loop. This
25698 saves a few bytes in code size.
25699
25700 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25701
25702 Support for (pxe[:server[:gateway]]) syntax and
25703 use environment variable for PXE.
25704
25705 * commands/i386/pc/pxecmd.c (options): Removed.
25706 (print_ip): Removed.
25707 (grub_cmd_pxe): Removed
25708 (grub_cmd_pxe_unload): New function.
25709 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
25710 (grub_pxe_your_ip): Made static.
25711 (grub_pxe_default_server_ip): Likewise.
25712 (grub_pxe_default_gateway_ip): Likewise.
25713 (grub_pxe_blksize): Likewise.
25714 (parse_ip): New function.
25715 (grub_pxe_open): Support server and gateway specification.
25716 (grub_pxe_close): Free disk->data.
25717 (grub_pxefs_open): Use disk->data.
25718 (grub_pxefs_read): Likewise.
25719 (grub_env_write_readonly): New function.
25720 (set_mac_env): Likewise.
25721 (set_env_limn_ro): Likewise.
25722 (parse_dhcp_vendor): Likewise.
25723 (grub_pxe_detect): Set the environment variables.
25724 (set_ip_env): New function.
25725 (write_ip_env): Likewise.
25726 (grub_env_write_pxe_default_server): Likewise.
25727 (grub_env_write_pxe_default_gateway): Likewise.
25728 (grub_env_write_pxe_blocksize): Likewise.
25729 (GRUB_MOD_INIT(pxe)): Set environment variables.
25730 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
25731 (grub_pxe_mac_addr_t): ... this. All users updated.
25732 (grub_pxe_your_ip): Removed.
25733 (grub_pxe_server_ip): Likewise.
25734 (grub_pxe_gateway_ip): Likewise.
25735 (grub_pxe_blksize): Likewise.
25736
25737 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25738
25739 * commands/help.c: Include `<grub/i18n.h>'.
25740 (grub_cmd_help): Gettextizze.
25741 (GRUB_MOD_INIT): Likewise.
25742 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
25743 (GRUB_MOD_INIT): Gettextizze.
25744 * commands/search.c: Include `<grub/i18n.h>'.
25745 (options): Gettextizze.
25746 (GRUB_MOD_INIT): Gettextizze.
25747 * lib/arg.c: Include `<grub/i18n.h>'.
25748 (help_options): Gettextizze.
25749 (find_long): Likewise.
25750 (grub_arg_show_help): Likewise.
25751 * normal/dyncmd.c: Include `<grub/i18n.h>'.
25752 (read_command_list): Gettextizze.
25753 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
25754 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
25755
25756 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25757
25758 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
25759 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
25760 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
25761 (led_status): New variable.
25762 (keyboard_controller_led): New function.
25763 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
25764 update led status for caps lock, num lock and scroll lock.
25765
25766 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
25767
25768 * util/hostdisk.c (open_device): Fix a comment.
25769
25770 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25771
25772 * util/grub-install.in (host_os): New variable.
25773 * util/i386/efi/grub-install.in (host_os): Likewise.
25774
25775 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25776
25777 * util/mkisofs/write.c (padblock_write): Abort when given an
25778 excedingly large embed image, instead of silently truncating it.
25779
25780 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25781
25782 * include/multiboot.h: Indentation fixes.
25783
25784 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25785
25786 * include/multiboot.h (struct multiboot_aout_symbol_table)
25787 (struct multiboot_elf_section_header_table): New structure
25788 declarations (stolen from GRUB Legacy).
25789 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
25790 table information.
25791
25792 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
25793 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
25794 type aliases.
25795
25796 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25797
25798 * include/multiboot.h: Make comments src2texi-friendly.
25799
25800 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25801
25802 For consistency with [multiboot]/docs/boot.S.
25803
25804 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
25805 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
25806 (MULTIBOOT_MAGIC2): Rename from this ...
25807 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
25808
25809 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25810
25811 * include/multiboot.h: Remove `<grub/types.h>'.
25812 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
25813 types. Update all users.
25814
25815 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25816
25817 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
25818 `couldn't' and `can not' by `cannot'.
25819 * commands/i386/pc/drivemap.c: Likewise.
25820 * disk/ata.c: Likewise.
25821 * disk/ieee1275/nand.c: Likewise.
25822 * fs/affs.c: Likewise.
25823 * fs/fat.c: Likewise.
25824 * fs/hfs.c: Likewise.
25825 * fs/hfsplus.c: Likewise.
25826 * fs/iso9660.c: Likewise.
25827 * fs/jfs.c: Likewise.
25828 * fs/minix.c: Likewise.
25829 * fs/reiserfs.c: Likewise.
25830 * fs/sfs.c: Likewise.
25831 * fs/udf.c: Likewise.
25832 * fs/ufs.c: Likewise.
25833 * fs/xfs.c: Likewise.
25834 * loader/powerpc/ieee1275/linux.c: Likewise.
25835 * loader/sparc64/ieee1275/linux.c: Likewise.
25836 * util/grub-probe.c: Likewise.
25837 * util/misc.c: Likewise.
25838
25839 2009-12-24 Carles Pina i Estany <carles@pina.cat>
25840
25841 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
25842 grub_errno calls.
25843 * commands/acpi.c: Likewise.
25844 * commands/blocklist.c: Likewise.
25845 * commands/efi/loadbios.c: Likewise.
25846 * commands/i386/pc/drivemap.c: Likewise.
25847 * commands/loadenv.c: Likewise.
25848 * commands/memrw.c: Likewise.
25849 * commands/password.c: Likewise.
25850 * commands/videotest.c: Likewise.
25851 * disk/ata.c: Likewise.
25852 * disk/ata_pthru.c: Likewise.
25853 * disk/dmraid_nvidia.c: Likewise.
25854 * disk/ieee1275/nand.c: Likewise.
25855 * disk/ieee1275/ofdisk.c: Likewise.
25856 * disk/loopback.c: Likewise.
25857 * disk/lvm.c: Likewise.
25858 * disk/mdraid_linux.c: Likewise.
25859 * disk/raid.c: Likewise.
25860 * disk/raid6_recover.c: Likewise.
25861 * disk/scsi.c: Likewise.
25862 * efiemu/main.c: Likewise.
25863 * efiemu/mm.c: Likewise.
25864 * efiemu/pnvram.c: Likewise.
25865 * efiemu/symbols.c: Likewise.
25866 * font/font.c: Likewise.
25867 * fs/cpio.c: Likewise.
25868 * fs/hfsplus.c: Likewise.
25869 * fs/iso9660.c: Likewise.
25870 * fs/jfs.c: Likewise.
25871 * fs/minix.c: Likewise.
25872 * fs/ntfs.c: Likewise.
25873 * fs/ntfscomp.c: Likewise.
25874 * fs/reiserfs.c: Likewise.
25875 * fs/ufs.c: Likewise.
25876 * fs/xfs.c: Likewise.
25877 * gettext/gettext.c: Likewise.
25878 * include/grub/auth.h: Likewise.
25879 * kern/elf.c: Likewise.
25880 * kern/file.c: Likewise.
25881 * kern/ieee1275/init.c: Likewise.
25882 * kern/ieee1275/mmap.c: Likewise.
25883 * kern/ieee1275/openfw.c: Likewise.
25884 * kern/powerpc/dl.c: Likewise.
25885 * kern/sparc64/dl.c: Likewise.
25886 * lib/arg.c: Likewise.
25887 * loader/i386/bsd.c: Likewise.
25888 * loader/i386/bsdXX.c: Likewise.
25889 * loader/i386/efi/linux.c: Likewise.
25890 * loader/i386/efi/xnu.c: Likewise.
25891 * loader/i386/ieee1275/linux.c: Likewise.
25892 * loader/i386/linux.c: Likewise.
25893 * loader/i386/multiboot.c: Likewise.
25894 * loader/i386/pc/linux.c: Likewise.
25895 * loader/i386/pc/multiboot2.c: Likewise.
25896 * loader/i386/xnu.c: Likewise.
25897 * loader/ieee1275/multiboot2.c: Likewise.
25898 * loader/macho.c: Likewise.
25899 * loader/machoXX.c: Likewise.
25900 * loader/multiboot2.c: Likewise.
25901 * loader/multiboot_loader.c: Likewise.
25902 * loader/powerpc/ieee1275/linux.c: Likewise.
25903 * loader/sparc64/ieee1275/linux.c: Likewise.
25904 * loader/xnu.c: Likewise.
25905 * loader/xnu_resume.c: Likewise.
25906 * mmap/i386/pc/mmap.c: Likewise.
25907 * normal/menu_viewer.c: Likewise.
25908 * partmap/acorn.c: Likewise.
25909 * partmap/amiga.c: Likewise.
25910 * partmap/apple.c: Likewise.
25911 * script/lexer.c: Likewise.
25912 * term/gfxterm.c: Likewise.
25913 * term/i386/pc/serial.c: Likewise.
25914 * term/i386/pc/vga.c: Likewise.
25915 * term/ieee1275/ofconsole.c: Likewise.
25916 * term/terminfo.c: Likewise.
25917 * video/bitmap.c: Likewise.
25918 * video/efi_gop.c: Likewise.
25919 * video/efi_uga.c: Likewise.
25920 * video/fb/video_fb.c: Likewise.
25921 * video/i386/pc/vbe.c: Likewise.
25922 * video/readers/tga.c: Likewise.
25923 * video/video.c: Likewise.
25924
25925 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
25926
25927 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
25928 * commands/lspci.c: Likewise.
25929 * commands/probe.c: Likewise.
25930 * commands/xnu_uuid.c: Likewise.
25931 * conf/i386-coreboot.rmk: Likewise.
25932 * conf/i386-efi.rmk: Likewise.
25933 * conf/i386-ieee1275.rmk: Likewise.
25934 * conf/i386-pc.rmk: Likewise.
25935 * conf/powerpc-ieee1275.rmk: Likewise.
25936 * conf/sparc64-ieee1275.rmk: Likewise.
25937 * conf/x86_64-efi.rmk: Likewise.
25938 * fs/i386/pc/pxe.c: Likewise.
25939 * gettext/gettext.c: Likewise.
25940 * include/grub/efi/graphics_output.h: Likewise.
25941 * include/grub/i386/pc/memory.h: Likewise.
25942 * kern/env.c: Likewise.
25943 * kern/i386/qemu/startup.S: Likewise.
25944 * lib/i386/pc/biosnum.c: Likewise.
25945 * lib/i386/relocator.c: Likewise.
25946 * lib/i386/relocator_asm.S: Likewise.
25947 * lib/relocator.c: Likewise.
25948 * loader/i386/bsd.c: Likewise.
25949 * loader/i386/multiboot.c: Likewise.
25950 * loader/i386/pc/chainloader.c: Likewise.
25951 * loader/i386/xnu.c: Likewise.
25952 * loader/xnu.c: Likewise.
25953 * normal/main.c: Likewise.
25954 * normal/menu_text.c: Likewise.
25955 * util/getroot.c: Likewise.
25956 * util/grub-mkconfig_lib.in: Likewise.
25957 * util/grub.d/00_header.in: Likewise.
25958 * util/i386/pc/grub-mkimage.c: Likewise.
25959 * util/mkisofs/eltorito.c: Likewise.
25960 * util/mkisofs/exclude.h: Likewise.
25961 * util/mkisofs/hash.c: Likewise.
25962 * util/mkisofs/iso9660.h: Likewise.
25963 * util/mkisofs/joliet.c: Likewise.
25964 * util/mkisofs/mkisofs.c: Likewise.
25965 * util/mkisofs/mkisofs.h: Likewise.
25966 * util/mkisofs/multi.c: Likewise.
25967 * util/mkisofs/name.c: Likewise.
25968 * util/mkisofs/rock.c: Likewise.
25969 * util/mkisofs/tree.c: Likewise.
25970 * util/mkisofs/write.c: Likewise.
25971 * video/efi_gop.c: Likewise.
25972
25973 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
25974
25975 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
25976 size counting.
25977
25978 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25979
25980 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
25981 * genmk.rb (class SCRIPT): Modify the target file instead of source.
25982
25983 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25984
25985 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
25986 (GRUB_MOD_INIT(memrw)): Update help line.
25987
25988 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25989
25990 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
25991 Use grub_extcmd_t. All users updated.
25992 (options): New variable.
25993 (grub_cmd_read): Restructure for readability. Support "-v" option.
25994 (grub_cmd_write): Restructure for readability.
25995
25996 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25997
25998 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
25999
26000 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
26001
26002 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
26003 with the actual contents of the correspondending make variable.
26004 * util/grub-mkrescue.in (pkglib_DATA): New variable.
26005 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
26006 specifying `*.lst' and `efiemu??.o'
26007
26008 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
26009
26010 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
26011 after function name.
26012 Noticed by Rene Engelhard <rene@debian.org>.
26013
26014 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26015
26016 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
26017 (options): New variable.
26018 (iospace): Likewise.
26019 (grub_lspci_iter): List IO spaces if "-i" was given.
26020 (grub_cmd_lspci): Parse options.
26021 (GRUB_MOD_INIT(lspci)): Use extcmd.
26022 (GRUB_MOD_FINI(lspci)): Likewise.
26023
26024 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
26025
26026 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
26027 `function' keyword.
26028 Patch by Tony Mancill <tmancill@debian.org>.
26029
26030 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26031
26032 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
26033 (grub_uhci_portstatus): Likewise.
26034 (grub_uhci_portstatus): Add necessary delay.
26035 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
26036
26037 2009-12-21 Carles Pina i Estany <carles@pina.cat>
26038
26039 * commands/acpi.c (options): Fix capitalizations and/or full stops.
26040 (GRUB_MOD_INIT): Likewise.
26041 * commands/boot.c (GRUB_MOD_INIT): Likewise.
26042 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
26043 * commands/echo.c (options): Fix capitalizations and/or full stops.
26044 * commands/efi/loadbios.c (enable_rom_area): Likewise.
26045 (enable_rom_area): Likewise.
26046 (GRUB_MOD_INIT): Likewise.
26047 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
26048 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
26049 * commands/handler.c (GRUB_MOD_INIT): Likewise.
26050 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
26051 * commands/hexdump.c (options): Likewise.
26052 * commands/i386/cpuid.c (options): Likewise.
26053 (GRUB_MOD_INIT): Likewise.
26054 * commands/i386/pc/drivemap.c (options): Likewise.
26055 (GRUB_MOD_INIT): Likewise.
26056 * commands/i386/pc/halt (options): Likewise.
26057 (GRUB_MOD_INIT): Likewise.
26058 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
26059 * commands/i386/pc/pxecmd.c (options): Likewise.
26060 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
26061 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
26062 * commands/keystatus.c (options): Likewise.
26063 (GRUB_MOD_INIT): Likewise.
26064 * commands/loadenv.c (options): Likewise.
26065 * commands/ls.c (options): Likewise.
26066 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
26067 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
26068 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
26069 * commands/parttool.c (helpmsg): Likewise.
26070 * commands/probe.c (options): Likewise.
26071 * commands/read.c (GRUB_MOD_INIT): Likewise.
26072 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
26073 * commands/search.c (options): Likewise.
26074 * commands/sleep.c (options): Likewise.
26075 * commands/test.c (GRUB_MOD_INIT): Likewise.
26076 * commands/true.c (GRUB_MOD_INIT): Likewise.
26077 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
26078 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
26079 * lib/arg.c (help_options): Likewise.
26080 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
26081 `$(XGETTEXT)'.
26082 * po/POTFILES: Add `commands/loadenv.c'.
26083
26084 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
26085
26086 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
26087 instead of specifying them explicit.
26088
26089 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26090
26091 * NEWS: Add grub-probe support for GNU/Hurd.
26092
26093 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26094
26095 * NEWS: gettext was added after 1.97.
26096
26097 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26098
26099 * util/mkisofs/msdos_partition.h: New file (based on
26100 include/grub/msdos_partition.h).
26101 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
26102 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
26103 (ld_options, main): Recognize --protective-msdos-label.
26104 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
26105 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
26106 (padblock_write): If `use_protective_msdos_label' is set, patch a
26107 protective DOS-style label in the output image.
26108
26109 * util/grub-mkrescue.in: Use --protective-msdos-label.
26110
26111 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26112
26113 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
26114 boot.
26115
26116 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26117
26118 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
26119 variables.
26120 (ld_options, main): Recognize `--embedded-boot'.
26121 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
26122 declarations.
26123 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
26124 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
26125 (padblock_write): Likewise. Rewrite to support embedded boot image.
26126
26127 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
26128 for BIOS-based disk boot instead of only ElTorito.
26129
26130 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26131
26132 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
26133 build (not needed for bootstrap).
26134
26135 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26136
26137 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
26138 from i386-pc build (not needed for bootstrap).
26139 Rewrite a pair of strings.
26140
26141 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26142
26143 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
26144
26145 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
26146
26147 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
26148
26149 2009-12-21 Andreas Born <futur.andy@googlemail.com>
26150
26151 * kern/env.c (grub_env_context_open): Mark exported variable for
26152 reexport.
26153
26154 2009-12-21 Andreas Born <futur.andy@googlemail.com>
26155
26156 * kern/env.c (grub_env_export): Create nonexistent variables before
26157 exporting.
26158
26159 2009-12-20 Carles Pina i Estany <carles@pina.cat>
26160
26161 * include/grub/auth.h: Include `<grub/i18n.h>'.
26162 (GRUB_GET_PASSWORD): Gettextizze string.
26163 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
26164 menu_text.c.
26165 (grub_utf8_to_ucs4_alloc): Fix indentation.
26166 (grub_print_ucs4): Likewise.
26167 (grub_getstringwidth): Likewise.
26168 (print_message_indented): New declaration.
26169 * normal/auth.c: Include `<grub/i18n.h>'.
26170 (grub_auth_check_authentication): Gettexttize string.
26171 * normal/cmdline.c: Include `<grub/i18n.h>'.
26172 (grub_cmdline_get): Gettextizze.
26173 * normal/color.c: Include `<grub/i18n.h>'.
26174 (grub_parse_color_name_pair): Gettexttize strings.
26175 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
26176 string (use `print_message_indented').
26177 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
26178 `include/grub/normal.h'.
26179 (print_message_indented): Renamed to ...
26180 (grub_print_message_indented): ... this. Remove `static' qualifer (now
26181 used in normal/main.c).
26182 (print_message): Use `grub_print_message_indented' instead of
26183 `print_message_indented'.
26184 (print_timeout): Likewise.
26185 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
26186 (grub_normal_print_device_info): Gettexttize strings.
26187 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
26188
26189 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26190
26191 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
26192 of arguments. Return number of tokens and not arguments. All users
26193 updated.
26194
26195 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26196
26197 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
26198 non-MSDOS paritions.
26199
26200 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
26201
26202 * include/grub/types.h (UNUSED): Removed since it conflicts with
26203 NetBSD headers. All users changed to direct __attribute__ ((unused)).
26204 Reported by Grégoire Sutre.
26205
26206 2009-12-19 Carles Pina i Estany <carles@pina.cat>
26207
26208 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
26209 (grub_print_ucs4_alloc): Likewise.
26210 (grub_getstringwidth): Likewise.
26211 * normal/main.c (grub_normal_init_page): Gettextize version string.
26212 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
26213 (getstringwidth): Renamed to ...
26214 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
26215 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
26216 (grub_print_ucs4): Remove `static' qualifer (now used in
26217 normal/main.c).
26218 * po/POTFILES: Add normal/main.c.
26219
26220 2009-12-19 Carles Pina i Estany <carles@pina.cat>
26221
26222 * normal/menu_text.c (STANDARD_MARGIN): New macro.
26223 (print_message_indented): Add `margin_left' and `margin_right'
26224 parameters.
26225 (print_message): Update `print_message_indented' calls. Adds '\n' to the
26226 strings.
26227 (print_timeout): Use `print_message_indented' to print the message.
26228 Deletes `second_stage' parameter.
26229 (run_menu): Update `print_timeout' calls.
26230
26231 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26232
26233 Fix console palette on OpenFirmware.
26234
26235 * term/ieee1275/ofconsole.c (MAX): Removed.
26236 (colors): Redone based on VGA palette.
26237 (grub_ofconsole_setcolor): Discard brightness bit since only 8
26238 colors are supported.
26239 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
26240
26241 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26242
26243 Fix potential EfiEmu double prepare.
26244
26245 * efiemu/main.c (prepared): New variable
26246 (grub_efiemu_unload): Set prepare to '0'.
26247 (grub_efiemu_prepare): Return if already prepared. Set prepared.
26248
26249 set_virtual_address_map support.
26250
26251 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
26252 prototype.
26253 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
26254 prototype.
26255 (grub_efiemu_crc32): Likewise.
26256 (grub_efiemu_crc64): Likewise.
26257 (grub_efiemu_set_virtual_address_map): Likewise.
26258 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
26259 New definition.
26260 (grub_autoefi_set_virtual_address_map): Likewise.
26261 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
26262 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
26263 Restructure flow to accomodate it.
26264 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
26265 (grub_efiemu_crc): Recompute CRC32.
26266 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
26267 (efiemu_ptv_relocated): ... this. Made global. All users updated.
26268 * efiemu/symbols.c (relocated_handle): New variable.
26269 (grub_efiemu_free_syms): Free relocated_handle.
26270 (grub_efiemu_alloc_syms): Allocate relocated_handle.
26271 (grub_efiemu_write_sym_markers): New function.
26272 (grub_efiemu_set_virtual_address_map): Likewise.
26273
26274 Newer XNU parameters.
26275
26276 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
26277 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
26278 (grub_xnu_fill_devicetree): New prototype.
26279 (grub_xnu_heap_real_start): New variable.
26280 * loader/xnu.c (get_name_ptr): New function.
26281 (grub_xnu_load_driver): Fill namelen and name.
26282
26283 64-bit xnu support.
26284
26285 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
26286 and 'loader/macho64.c'.
26287 * conf/i386-pc.rmk: Likewise.
26288 * conf/x86_64-efi.rmk: Likewise.
26289 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
26290 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
26291 * include/grub/macho.h (grub_macho_segment64): New structure.
26292 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
26293 (grub_macho_size32): ... to this.
26294 (grub_macho32_get_entry_point): Renamed from ...
26295 (grub_macho_get_entry_point32): ... to this.
26296 (grub_macho_contains_macho64): New prototype.
26297 (grub_macho_size64): Likewise.
26298 (grub_macho_get_entry_point64): Likewise.
26299 (grub_macho32_load): Renamed from ...
26300 (grub_macho_load32): ... to this.
26301 (grub_macho32_filesize): Renamed from ...
26302 (grub_macho_filesize32): ... to this.
26303 (grub_macho32_readfile): Renamed from ...
26304 (grub_macho_readfile32): ... to this.
26305 (grub_macho_filesize64): New prototype.
26306 (grub_macho_readfile64): Likewise.
26307 (grub_macho_parse32): Likewise.
26308 (grub_macho_parse64): Likewise.
26309 * loader/macho.c: Split into ...
26310 * loader/machoXX.c: ... and this. Replace 32 with XX.
26311 * loader/macho32.c: New file.
26312 * loader/macho64.c: Likewise.
26313 * loader/xnu.c (grub_xnu_is_64bit): New variable.
26314 (grub_cmd_xnu_kernel): Make 32-bit only.
26315 (grub_cmd_xnu_kernel64): New function.
26316 (grub_xnu_load_driver): Support Mach-O 64.
26317 (grub_cmd_xnu_mkext): Likewise.
26318 * util/grub.d/30_os-prober.in (osx_entry): New function.
26319 Generate entries for 64-bit boot too.
26320
26321 Eliminate ad-hoc tree format in XNU and EfiEmu.
26322
26323 * efiemu/main.c (grub_efiemu_prepare): Update comment.
26324 * efiemu/pnvram.c: Rewritten to use environment variables.
26325 All users updated.
26326
26327 Inline utf16_to_utf8.
26328
26329 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
26330 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
26331 All users updated.
26332 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
26333
26334 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
26335 * commands/usbtest.c (grub_usb_get_string): ... move here.
26336 (usb_print_str): Fix error handling.
26337 * include/grub/usb.h (grub_usb_get_string): Remove.
26338
26339 UTF-8 to UTF-16 transformation.
26340
26341 * conf/common.rmk (pkglib_MODULES): Add charset.mod
26342 (charset_mod_SOURCES): New variable.
26343 (charset_mod_CFLAGS): Likewise.
26344 (charset_mod_LDFLAGS): Likewise.
26345 * include/grub/utf.h: New file.
26346 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
26347
26348 Support for device properties.
26349
26350 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
26351 (grub_xnu_devprop_device_header): Likewise.
26352 (grub_xnu_devprop_device_descriptor): Likewise.
26353 (grub_xnu_devprop_add_device): New prototype.
26354 (grub_xnu_devprop_remove_device): Likewise.
26355 (grub_xnu_devprop_remove_property): Likewise.
26356 (grub_xnu_devprop_add_property_utf8): Likewise.
26357 (grub_xnu_devprop_add_property_utf16): Likewise.
26358 (grub_cpu_xnu_init): Likewise.
26359 (grub_cpu_xnu_fini): Likewise.
26360 (grub_cpu_xnu_unload): Likewise.
26361 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
26362 (property_descriptor): Likewise.
26363 (devices): New variable.
26364 (grub_xnu_devprop_remove_property): New function.
26365 (grub_xnu_devprop_add_device): Likewise.
26366 (grub_xnu_devprop_remove_device): Likewise.
26367 (grub_xnu_devprop_add_property): Likewise.
26368 (grub_xnu_devprop_add_property_utf8): Likewise.
26369 (grub_xnu_devprop_add_property_utf16): Likewise.
26370 (hextoval): Likewise.
26371 (grub_cpu_xnu_fill_devprop): Likewise.
26372 (grub_cmd_devprop_load): Likewise.
26373 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
26374 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
26375 (cmd_devprop_load): New variable.
26376 (grub_cpu_xnu_init): New function.
26377 (grub_cpu_xnu_fini): Likewise.
26378 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
26379 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
26380 (grub_cmd_xnu_devtree): Likewise.
26381 (hextoval): New function.
26382 (unescape): Likewise.
26383 (grub_xnu_fill_devicetree): Likewise.
26384
26385 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
26386 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
26387
26388 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26389
26390 Workaround for broken ATI VBE.
26391
26392 * video/i386/pc/vbe.c (last_set_mode): New variable.
26393 (grub_vbe_set_video_mode): Set 'last_set_mode'.
26394 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
26395 (grub_video_vbe_setup): Don't check for reserved flag.
26396
26397 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
26398
26399 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
26400 the `find' command.
26401
26402 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
26403
26404 UUID support for HFS.
26405
26406 * fs/hfs.c (grub_hfs_uuid): New function.
26407 (grub_hfs_fs): New value .uuid.
26408 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
26409
26410 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
26411
26412 Fix a segfault with parsing unknown long options.
26413
26414 * util/grub-mkrelpath.c (options): Zero terminate it.
26415
26416 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26417
26418 * include/grub/misc.h (grub_puts): New declaration.
26419 (grub_puts_): Likewise.
26420 * kern/misc.c (grub_puts): New definition.
26421 (grub_puts_): Likewise.
26422
26423 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26424
26425 * util/grub-probe.c (probe): Improve error message.
26426
26427 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26428
26429 * loader/i386/multiboot_elfxx.c
26430 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
26431 initialization.
26432
26433 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26434
26435 Relocator framework
26436
26437 * loader/i386/xnu_helper.S: Removed. All users updated.
26438 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
26439 (relocator_mod_SOURCES): New variable.
26440 (relocator_mod_CFLAGS): Likewise.
26441 (relocator_mod_LDFLAGS): Likewise.
26442 (relocator_mod_ASFLAGS): Likewise.
26443 * conf/x86_64.rmk: Likewise.
26444 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
26445 (grub_multiboot_payload_entry_offset): Likewise.
26446 (grub_multiboot_forward_relocator): Likewise.
26447 (grub_multiboot_forward_relocator_end): Likewise.
26448 (grub_multiboot_backward_relocator): Likewise.
26449 (grub_multiboot_backward_relocator_end): Likewise.
26450 (grub_multiboot_payload_eip): New variable.
26451 (grub_multiboot_payload_orig): Likewise.
26452 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
26453 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
26454 * include/grub/i386/memory.h
26455 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
26456 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
26457 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
26458 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
26459 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
26460 * include/grub/i386/relocator.h: New file.
26461 * include/grub/x86_64/relocator.h: Likewise.
26462 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
26463 (XNU_RELOCATOR): New macro.
26464 (grub_xnu_launcher_start): Remove.
26465 (grub_xnu_launcher_end): Likewise.
26466 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
26467 (grub_xnu_heap_real_start): Remove.
26468 (grub_xnu_heap_start): Change to void *. All users updated.
26469 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
26470 * lib/i386/relocator.c: New file.
26471 * lib/i386/relocator_asm.S: Likewise.
26472 * lib/i386/relocator_backward.S: Likewise.
26473 * lib/mips/relocator.c: Likewise.
26474 * lib/mips/relocator_asm.S: Likewise.
26475 * lib/relocator.c: Likewise.
26476 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
26477 (entry): Removed.
26478 (playground): Likewise.
26479 (grub_multiboot_payload_orig): New variable.
26480 (grub_multiboot_payload_dest): Likewise.
26481 (grub_multiboot_payload_size): Likewise.
26482 (grub_multiboot_payload_eip): Likewise.
26483 (grub_multiboot_payload_esp): Likewise.
26484 (grub_multiboot_boot): Use grub_relocator32_boot.
26485 (grub_multiboot_unload): Free relocators.
26486 (grub_multiboot): Setup stack. Use relocators.
26487 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
26488 (grub_multiboot_load_elfXX): Use relocators.
26489 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
26490 (grub_multiboot_payload_size): Likewise.
26491 (grub_multiboot_payload_dest): Likewise.
26492 (grub_multiboot_payload_entry_offset): Likewise.
26493 (grub_multiboot_forward_relocator): Likewise.
26494 (grub_multiboot_backward_relocator): Likewise.
26495 (grub_multiboot_real_boot): Likewise.
26496 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
26497 (grub_xnu_entry_point): Likewise.
26498 (grub_xnu_arg1): Likewise.
26499 (grub_xnu_stack): Likewise.
26500 (grub_xnu_launch): Removed.
26501 (grub_xnu_boot_resume): New function.
26502 (grub_xnu_boot): Use relocators.
26503 * loader/i386/xnu_helper.S: Removed.
26504 * loader/xnu.c (grub_xnu_heap_start): New variable.
26505 (grub_xnu_heap_size): Likewise.
26506 (grub_xnu_heap_malloc): Use relocators.
26507 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
26508
26509 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26510
26511 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
26512 anything.
26513
26514 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26515
26516 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
26517 GRUB_ERR_NONE before calling grub_env_set.
26518
26519 2009-12-12 Robert Millan <rmh@aybabtu.com>
26520
26521 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
26522 * genmk.rb (video): New variable.
26523 (CLEANFILES, VIDEOFILES): Add #{video}.
26524 (#{video}): New target rule.
26525 * genvideolist.sh: New file.
26526 * Makefile.in (pkglib_DATA): Add video.lst.
26527 (video.lst): New target rule.
26528 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
26529 `video.lst'.
26530 * util/grub.d/30_os-prober.in: Replace `vbe' with
26531 ${GRUB_VIDEO_BACKEND}.
26532
26533 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
26534
26535 * THANKS: Add David Miller.
26536
26537 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
26538
26539 libpciaccess support.
26540
26541 * Makefile.in (LIBPCIACCESS): New variable.
26542 (enable_grub_emu_pci): Likewise.
26543 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
26544 util/pci.c and commands/lspci.c.
26545 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
26546 * configure.ac (grub-emu-pci): New option.
26547 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
26548 (grub_pci_device_unmap_range): Likewise.
26549 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
26550 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
26551 (grub_pci_address_t) [!GRUB_UTIL]: New type.
26552 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
26553 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
26554 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
26555 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
26556 * include/grub/pciutils.h: New file.
26557 * util/pci.c: Likewise.
26558
26559 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
26560
26561 * util/misc.c: Don't include <errno.h> twice.
26562
26563 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
26564
26565 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
26566 name in an error message.
26567 (grub_biosdisk_rw): Likewise.
26568
26569 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26570
26571 Eliminate NTFS 4Gib barrier.
26572
26573 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
26574 (read_run_data): Likewise.
26575 (grub_ntfs_read_run_list): Likewise.
26576 (grub_ntfs_read_block): Likewise.
26577 (grub_ntfs_iterate_dir): Likewise.
26578 (read_mft): Likewise.
26579 (read_data): Likewise.
26580 Use COM_LOG_LEN.
26581 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
26582 to avoid 64-bit division
26583 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
26584 (grub_ntfs_rlst): Use grub_disk_addr_t.
26585
26586 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26587
26588 Eliminate grub-fstest 4Gib barrier.
26589
26590 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
26591 (read_file): Fix error reporting.
26592
26593 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26594
26595 Eliminate hexdump 4Gib barrier.
26596
26597 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
26598 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
26599
26600 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26601
26602 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
26603 Fixes amarsh bug.
26604
26605 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
26606
26607 Remove miscellaneous files in distclean target.
26608
26609 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
26610
26611 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
26612
26613 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
26614 if they're already set. This resolves the conflict between my
26615 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
26616 fixing the --grub-probe option again.
26617 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
26618 change on 2009-10-06, so that we now once again source
26619 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26620
26621 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
26622
26623 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
26624 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
26625 `util/devicemap.c'.
26626
26627 2009-12-08 Carles Pina i Estany <carles@pina.cat>
26628
26629 * include/grub/misc.h (grub_printf_): New declaration.
26630 * kern/misc.c (grub_printf_): New definition.
26631 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
26632 instead of `grub_printf' and `_'.
26633 * normal/menu_entry.c (store_completion): Likewise.
26634 (run): Likewise.
26635 (grub_menu_entry_run): Likewise.
26636 * normal/menu_text.c (grub_wait_after_message): Likewise.
26637 (notify_booting): Likewise.
26638 (notify_fallback): Likewise.
26639 (notify_execution_failure): Likewise.
26640
26641 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
26642
26643 * configure.ac: Check for vasprintf.
26644 * util/misc.c (asprintf): Move allocation from here ...
26645 (vasprintf): ... to here. New function.
26646 (xasprintf): New function.
26647 * include/grub/util/misc.h (vasprintf, xasprintf): Add
26648 prototypes.
26649 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26650 * util/grub-mkfont.c (write_font): Likewise.
26651 * util/grub-probe.c (probe): Likewise.
26652 * util/hostdisk.c (make_device_name): Likewise.
26653
26654 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
26655
26656 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
26657 anything even prefixed with 'cdrom' as a cdrom.
26658
26659 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
26660
26661 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
26662 mount points.
26663
26664 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26665
26666 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
26667 grub_gettext_msg_list.
26668 (grub_gettext_gettranslation_from_position): Return const char *
26669 and not char *.
26670 (grub_gettext_translate): Add the translated strings into a list,
26671 returns from the list if existing there.
26672 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
26673 (grub_gettext_delete_list): Delete the list.
26674 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
26675 lang environment variable is changed.
26676 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
26677
26678 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26679
26680 Rename kernel.mod to kernel.img.
26681
26682 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
26683 (kernel_mod_EXPORTS): Rename to ...
26684 (kernel_img_EXPORTS): ... this.
26685 (kernel_mod_SOURCES): Rename to ...
26686 (kernel_img_SOURCES): ... this.
26687 (kernel_mod_HEADERS): Rename to ...
26688 (kernel_img_HEADERS): ... this. All users updated.
26689 (kernel_mod_CFLAGS): Rename to ...
26690 (kernel_img_CFLAGS): ... this.
26691 (kernel_mod_ASFLAGS): Rename to ...
26692 (kernel_img_ASFLAGS): ... this.
26693 (kernel_mod_LDFLAGS): Rename to ...
26694 (kernel_img_LDFLAGS): ... this.
26695 * conf/x86_64-efi.rmk: Likewise.
26696 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
26697 (read_kernel_image): ... this. All users updated.
26698 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
26699
26700 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26701
26702 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
26703 (print_spaces): New function.
26704 (grub_print_ucs4): New function.
26705 (getstringwidth): New function.
26706 (print_message_indented): New function.
26707 (print_message): Gettexttize strings using print_message_indented.
26708 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
26709 width.
26710 (get_entry_number): Gettextize and uses dynamic terminal width.
26711 (notify_booting, notify_fallback, notify_execution_failure):
26712 Gettextize.
26713 * normal/menu_entry.c (store_completion): Cleanup the gettextized
26714 string.
26715 (run): Likewise.
26716 (grub_menu_entry_run): Likewise.
26717 * PO/POTFILES: Add normal/menu_entry.c.
26718
26719 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26720
26721 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
26722
26723 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26724
26725 * util/grub-install.in: Install gettext .mo files.
26726 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
26727
26728 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26729
26730 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
26731 grub_dprintf.
26732
26733 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
26734
26735 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
26736 non-firmware-dependant one in realmode.S takes precedence.
26737
26738 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
26739
26740 * commands/halt.c: Replace misc arch-specific headers with
26741 `<grub/misc.h>'.
26742 * commands/reboot.c: Likewise.
26743 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
26744 `<grub/misc.h>'.
26745 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
26746 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
26747 (kernel_img_SOURCES): ... to here.
26748
26749 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
26750 * include/grub/i386/pc/init.h: Likewise.
26751 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
26752 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26753
26754 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
26755
26756 * include/grub/i386/halt.h: Remove.
26757 * include/grub/i386/reboot.h: Likewise.
26758
26759 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
26760
26761 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
26762
26763 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
26764 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
26765 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
26766 "progname.h"
26767 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26768 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26769 (usage): Add missing comma in printf.
26770
26771 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
26772
26773 Use the same reboot approach on i386 coreboot and qemu as we do on
26774 BIOS.
26775
26776 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
26777 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
26778 * kern/i386/reboot.c: Remove.
26779 * include/grub/i386/reboot.h (grub_reboot): Export function.
26780 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
26781 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
26782 0xf000:0xfff0 instead of 0xffff:0x0000.
26783 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
26784 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
26785
26786 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
26787
26788 Fix $srcdir != $objdir build.
26789
26790 * Makefile.in (po/%.po): Rewrite as ...
26791 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
26792
26793 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
26794
26795 Fix GNU/Hurd grub-install crash.
26796 * util/grub-probe.c (probe): Try to access `path' only when it is not
26797 NULL.
26798
26799 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26800
26801 Correct module naming.
26802
26803 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26804 (GRUB_MOD_INIT(efi_uga)): ... to this
26805 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26806 (GRUB_MOD_FINI(efi_uga)): ... to this
26807 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26808 (GRUB_MOD_INIT(efi_gop)): ... to this
26809 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26810 (GRUB_MOD_FINI(efi_gop)): ... to this
26811
26812 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
26813
26814 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
26815 translatable.
26816 (usage): Translate `arg' strings using gettext().
26817 Thanks to Jordi Mallach for the suggestion.
26818
26819 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26820
26821 GOP support. Based on patch from Bean
26822 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26823
26824 * video/efi_gop.c: New file.
26825 * include/grub/efi/graphics_output.h: Likewise.
26826 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
26827 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26828 variables.
26829 * conf/x86_64-efi.rmk: Likewise.
26830
26831 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26832
26833 Rename efi_fb to efi_uga.
26834
26835 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26836 'efi_uga.mod'.
26837 (efi_fb_mod_SOURCES): Rename this ...
26838 (efi_uga_mod_SOURCES): ... to this.
26839 (efi_fb_mod_CFLAGS): Rename this ...
26840 (efi_uga_mod_CFLAGS): ... to this.
26841 (efi_fb_mod_LDFLAGS): Rename this ...
26842 (efi_uga_mod_LDFLAGS): ... to this.
26843 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26844 'efi_uga.mod'.
26845 (efi_fb_mod_SOURCES): Rename this ...
26846 (efi_uga_mod_SOURCES): ... to this.
26847 (efi_fb_mod_CFLAGS): Rename this ...
26848 (efi_uga_mod_CFLAGS): ... to this.
26849 (efi_fb_mod_LDFLAGS): Rename this ...
26850 (efi_uga_mod_LDFLAGS): ... to this.
26851 * video/efi_fb.c: Move this ...
26852 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
26853
26854 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26855
26856 * po/README: New file. Explain our PO file workflow.
26857
26858 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26859
26860 * po/ChangeLog: Remove. Move relevant entries back to ...
26861 * ChangeLog: ... here.
26862 * po/ca.po: Remove (now handled by TLP).
26863 * po/id.po: Likewise.
26864 * po/zh_CN.po: Likewise.
26865 * Makefile.in (LINGUAS): Initialize in a way that supports
26866 empty set.
26867
26868 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26869
26870 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
26871 reliing on po/LINGUAS.
26872 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
26873 (po/%.po): ... this.
26874
26875 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26876
26877 * util/i386/efi/grub-mkimage.c: Include "progname.h".
26878 (main): Use `program_name' instead of nonexistent `progname'.
26879
26880 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26881
26882 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26883 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
26884
26885 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26886
26887 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
26888 commit.
26889 * conf/i386-efi.rmk: Likewise.
26890 * conf/i386-ieee1275.rmk: Likewise.
26891 * conf/powerpc-ieee1275.rmk: Likewise.
26892 * conf/sparc64-ieee1275.rmk: Likewise.
26893 * conf/x86_64-efi.rmk: Likewise.
26894
26895 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26896
26897 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
26898
26899 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26900
26901 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
26902
26903 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26904
26905 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
26906 (grub_mkdevicemap_SOURCES): New variable.
26907 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
26908 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
26909 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
26910 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
26911 (grub_mkdevicemap_SOURCES): Remove.
26912 * conf/i386-efi.rmk: Likewise.
26913 * conf/i386-ieee1275.rmk: Likewise.
26914 * conf/i386-pc.rmk: Likewise.
26915 * conf/powerpc-ieee1275.rmk: Likewise.
26916 * conf/sparc64-ieee1275.rmk: Likewise.
26917 * conf/x86_64-efi.rmk: Likewise.
26918 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
26919 (usage): Fix strings to use `program_name'.
26920 (main): Initialize gettext.
26921 * util/grub-editenv.c: Likewise.
26922 * util/grub-emu.c: Likewise.
26923 * util/grub-fstest.c: Likewise.
26924 * util/grub-mkdevicemap.c: Likewise.
26925 * util/grub-mkfont.c: Likewise.
26926 * util/grub-mkrelpath.c: Likewise.
26927 * util/grub-pe2elf.c: Likewise.
26928 * util/grub-probe.c: Likewise.
26929 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
26930 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26931 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26932
26933 * util/misc.c: Include `"progname.h"'.
26934 (progname): Remove variable.
26935 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
26936
26937 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26938
26939 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
26940 printf and print a newline after the menuentry header line.
26941 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26942
26943 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26944
26945 autoconf >= 2.60 support $(localedir).
26946
26947 * INSTALL: Note that autoconf 2.60 is required.
26948 * configure.ac (AC_PREREQ): Bump to 2.60.
26949 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
26950 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
26951
26952 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
26953
26954 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
26955 aclocal is run.
26956
26957 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26958
26959 * normal/main.c (grub_normal_read_line): Fix off-by-one
26960 buffer overflow.
26961
26962 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26963
26964 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
26965 "parser.grub" in grub_command_execute() call.
26966
26967 2009-11-24 Carles Pina i Estany <carles@pina.cat>
26968
26969 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
26970 * conf/i386-efi.rmk: Likewise.
26971 * conf/i386-ieee1275.rmk: Likewise.
26972 * conf/i386-pc.rmk: Likewise.
26973 * conf/powerpc-ieee1275.rmk: Likewise.
26974 * conf/sparc64-ieee1275.rmk: Likewise.
26975 * conf/x86_64-efi.rmk: Likewise.
26976 * gettext/gettex.c: Include <grub/i18n.h>.
26977 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
26978 here ...
26979 * include/grub/i18n.h: ... to here
26980 * include/grub/i18n.h: ... to here.
26981 * kern/misc.c: Include <grub/i18n.h>
26982 (grub_gettext_dummy): Move above user.
26983
26984 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26985
26986 * util/Makefile.in (install-local): Convert a `for' into a normal
26987 shell expansion.
26988
26989 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
26990
26991 * autogen.sh: Add automake call.
26992 * config.guess: Remove.
26993 * config.sub: Likewise.
26994 * install-sh: Likewise.
26995
26996 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26997
26998 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
26999
27000 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27001
27002 * util/Makefile.in (install-local): Convert a make `$(foreach)'
27003 function to a normal shell `for'.
27004
27005 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27006
27007 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27008
27009 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27010
27011 * util/grub-mkrelpath.c: New file.
27012 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
27013 (grub_mkrelpath_SOURCES): New variable.
27014 * include/grub/util/misc.h: New function prototype.
27015 * util/misc.c (make_system_path_relative_to_its_root): New function.
27016
27017 * util/grub-mkconfig_lib.in (bindir): New variable.
27018 (grub_mkrelpath): Likewise.
27019 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
27020
27021 * util/probe.c (probe): Make the file path relative to its root.
27022 Change a info message to use the GRUB path. Enable again the
27023 check if we can read the file with GRUB facilities.
27024
27025 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
27026 to its root.
27027
27028 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27029
27030 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
27031 platform.
27032
27033 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27034
27035 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
27036 strncmp().
27037
27038 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27039
27040 * util/getroot.c (grub_util_is_dmraid): New function.
27041 (grub_util_get_dev_abstraction): Treat dmraid and multipath
27042 devices as normal ones, not as LVM.
27043
27044 2009-11-23 Carles Pina i Estany <carles@pina.cat>
27045
27046 * conf/common.rmk: Add grub-gettext_lib target and updates
27047 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
27048 LDFLAGS.
27049 * gettext/gettext.c: New file. (Reads mo files).
27050 * include/grub/file.h (grub_file_pread): New prototype.
27051 * include/grub/i18n.h (_): New prototype.
27052 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
27053 prototypes.
27054 * kern/misc.c (grub_gettext_dummy): New function.
27055 * normal/menu_text.c: Include <grub/i18n.h>.
27056 * normal/menu_text.c (print_timeout): Gettexttize string.
27057 * normal/menu_text.c (print_message): Gettexttize string.
27058 * po/POTFILES: Add `normal/menu_text.c'.
27059 * po/ca.po: Add new translations.
27060 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
27061 gettext module and defines locale_dir and lang in grub.cfg.
27062 * NEWS: Add gettext support.
27063
27064 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27065
27066 * util/hostdisk.c: Include `<grub/i18n.h>'.
27067 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
27068 (make_device_name): Rewrite using asprintf.
27069 (convert_system_partition_to_system_disk): Replace 0 with NULL.
27070 (find_system_device): If a device is not found, generate one just
27071 by reusing the OS path name.
27072 (read_device_map): Make it permissible for device.map not to exist.
27073
27074 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27075
27076 * script/sh/execute.c: Move from here ...
27077 * script/execute.c: ... to here. Update all users.
27078 * script/sh/function.c: Move from here ...
27079 * script/function.c: ... to here. Update all users.
27080 * script/sh/lexer.c: Move from here ...
27081 * script/lexer.c: ... to here. Update all users.
27082 * script/sh/main.c: Move from here ...
27083 * script/main.c: ... to here. Update all users.
27084 * script/sh/parser.y: Move from here ...
27085 * script/parser.y: ... to here. Update all users.
27086 * script/sh/script.c: Move from here ...
27087 * script/script.c: ... to here. Update all users.
27088
27089 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27090
27091 * configure.ac: Detect all `emu' platforms. Define
27092 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
27093 --enable-grub-emu logic. Disable include/grub/machine
27094 symlink on `emu' platforms.
27095
27096 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
27097 * gensymlist.sh.in: Likewise.
27098
27099 * include/grub/i386/coreboot/machine.h: Remove file.
27100 * include/grub/i386/efi/machine.h: Likewise.
27101 * include/grub/i386/ieee1275/machine.h: Likewise.
27102 * include/grub/i386/pc/machine.h: Likewise.
27103 * include/grub/i386/qemu/machine.h: Likewise.
27104 * include/grub/powerpc/ieee1275/machine.h: Likewise.
27105 * include/grub/sparc64/ieee1275/machine.h: Likewise.
27106 * include/grub/x86_64/efi/machine.h: Likewise.
27107
27108 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
27109 * commands/halt.c: Likewise.
27110 * commands/reboot.c: Likewise.
27111 * include/grub/autoefi.h: Likewise.
27112 * include/grub/i386/at_keyboard.h: Likewise.
27113 * include/grub/i386/kernel.h: Likewise.
27114 * include/grub/i386/loader.h: Likewise.
27115 * include/grub/i386/pc/memory.h: Likewise.
27116 * kern/dl.c: Likewise.
27117 * kern/i386/coreboot/init.c: Likewise.
27118 * loader/i386/bsd.c: Likewise.
27119 * loader/i386/linux.c: Likewise.
27120 * loader/multiboot_loader.c: Likewise.
27121 * term/i386/pc/serial.c: Likewise.
27122 * term/usb_keyboard.c: Likewise.
27123
27124 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
27125 `<grub/machine/machine.h>'
27126 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
27127 * util/misc.c: Remove `<grub/machine/machine.h>' and
27128 `<grub/machine/time.h>'.
27129
27130 * Makefile.in (enable_grub_emu): Remove variable.
27131 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
27132
27133 * conf/any-emu.rmk: New file.
27134 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
27135 (grub_emu_init.c): Move from here ...
27136 * conf/any-emu.rmk: ... to here.
27137
27138 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
27139 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
27140 * conf/any-emu.rmk: ... to here.
27141
27142 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27143
27144 * include/grub/parser.h (grub_parser_register): Document need
27145 of `name' parameter.
27146 * normal/main.c (grub_normal_read_line): Simplify prompt string.
27147 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
27148 "sh" to "grub".
27149
27150 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27151
27152 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
27153 `$(XGETTEXT)'.
27154 * include/grub/i18n.h (N_): New macro.
27155 * util/mkisofs/mkisofs.h: Likewise.
27156 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
27157 around N_().
27158 (usage): Use gettext() to translate help strings when printing them.
27159
27160 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27161
27162 Based on patch from Bean
27163 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
27164
27165 * video/efi_fb.c: New file.
27166 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
27167 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
27168 variables.
27169 * conf/x86_64-efi.rmk: Likewise.
27170
27171 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
27172
27173 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
27174 * util/i386/pc/grub-setup.c: Likewise.
27175
27176 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
27177
27178 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
27179 <hurd/fs.h>
27180 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
27181 file_get_storage_info to implement grub_guess_root_device.
27182
27183 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
27184
27185 * Makefile.in (target): Use make's builtin $(shell) function
27186 instead of calling directly $(SHELL) to create the locale directories,
27187 inside the $(foreach) function.
27188
27189 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
27190
27191 * util/grub-mkrescue.in: Print an error and usage if output option
27192 has not been given.
27193
27194 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
27195
27196 Patch from Loïc Minier <loic.minier@ubuntu.com>.
27197 * util/grub.d/30_os-prober.in: Cope with Linux entries where
27198 root and /boot are on different devices.
27199
27200 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27201
27202 Fix build for srcdir != objdir.
27203
27204 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
27205 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
27206 $(srcdir).
27207 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
27208 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
27209 reference for input.
27210
27211 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27212
27213 * util/grub-mkrescue.in: Use source directory direcly (without copiing
27214 or hardlinking it). Remove -J option, Joliet is not compatible with
27215 multiple source directories.
27216
27217 2009-11-21 Carles Pina i Estany <carles@pina.cat>
27218 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27219
27220 * util/grub-mkrescue.in: Recognize `--override-directory' option.
27221 (process_input_dir): New function. Process an arbitrary input
27222 directory.
27223 Misc adjustments to support both "override mode" and system-wide mode.
27224
27225 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
27226
27227 * configure.ac (UNIFONT_BDF): Rename to ...
27228 (FONT_SOURCE): ... this. Update all users.
27229
27230 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
27231
27232 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
27233 to the list of unifont files to look for.
27234
27235 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27236
27237 Patch from Joe Auricchio <jauricchio@gmail.com>
27238 * commands/minicmd.c (grub_mini_cmd_clear): New function.
27239 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
27240 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
27241
27242 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
27243
27244 * Makefile.in (install-local): Add a missing backslash.
27245
27246 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
27247
27248 * include/grub/x86_64/io.h: New file.
27249
27250 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27251
27252 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
27253 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
27254 Include `"progname.h"'.
27255 (main): Initialize gettext.
27256 * util/i386/pc/grub-setup.c: Gettexttize.
27257 * util/i386/pc/grub-mkimage.c: Likewise.
27258
27259 * Makefile.in (po/*.po): Redefine as ...
27260 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
27261
27262 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
27263
27264 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27265
27266 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
27267 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
27268 (program_name): Remove.
27269 (main): Initialize gettext support.
27270 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
27271 Include `<libintl.h>'.
27272 (_): New macro.
27273
27274 * util/mkisofs/eltorito.c: Gettexttize.
27275 * util/mkisofs/joliet.c: Likewise.
27276 * util/mkisofs/mkisofs.c: Likewise.
27277 * util/mkisofs/multi.c: Likewise.
27278 * util/mkisofs/rock.c: Likewise.
27279 * util/mkisofs/tree.c: Likewise.
27280 * util/mkisofs/write.c: Likewise.
27281
27282 * po/POTFILES: Update with new files.
27283
27284 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27285
27286 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
27287 * util/mkisofs/iso9660.h: Likewise.
27288 * util/mkisofs/joliet.c: Likewise.
27289 * util/mkisofs/mkisofs.c: Likewise.
27290 * util/mkisofs/mkisofs.h: Likewise.
27291 * util/mkisofs/rock.c: Likewise.
27292 * util/mkisofs/tree.c: Likewise.
27293 * util/mkisofs/write.c: Likewise.
27294
27295 * util/mkisofs/eltorito.c (rcsid): Remove.
27296 * util/mkisofs/hash.c: Likewise.
27297 * util/mkisofs/joliet.c: Likewise.
27298 * util/mkisofs/name.c: Likewise.
27299 * util/mkisofs/rock.c: Likewise.
27300 * util/mkisofs/tree.c: Likewise.
27301 * util/mkisofs/write.c: Likewise.
27302
27303 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27304
27305 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
27306 instead of static allocation.
27307 * util/mkisofs/match.h: Likewise.
27308
27309 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27310
27311 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
27312 and `util/grub.d/10_linux.in'.
27313 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
27314 translatable Shell files.
27315
27316 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27317
27318 * Makefile.in ($(srcdir)/aclocal.m4): New target.
27319
27320 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27321
27322 * INSTALL: Document Automake is needed for bootstrap.
27323 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
27324 * util/grub.d/10_kfreebsd.in (bindir): New variable.
27325 Add gettext initialization.
27326 (kfreebsd_entry): Make menuentry output translatable.
27327
27328 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27329
27330 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
27331 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
27332 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
27333 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
27334 (LINGUAS): Auto-generate using `po/LINGUAS'.
27335 * po/LINGUAS: New file.
27336
27337 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27338
27339 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
27340 other things).
27341 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
27342 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
27343 bindtextdomain() calls for gettext initialization.
27344
27345 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27346
27347 * gnulib/progname.c: New file (imported from Gnulib).
27348 * gnulib/progname.h: Likewise.
27349 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27350 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
27351 (usage): Replace `progname' with `program_name'.
27352 (main): Use set_program_name() for program name initialization.
27353
27354 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27355
27356 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
27357 from here ...
27358 * Makefile.in (CPPFLAGS): ... to here.
27359
27360 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27361
27362 * aclocal.m4: Move from here ...
27363 * acinclude.m4: ... to here.
27364 * autogen.sh: Add call to `aclocal'.
27365 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
27366
27367 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27368
27369 * Makefile.in (CLEANFILES): Add `po/*.mo'.
27370 (LINGUAS): New variable.
27371 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
27372 (install-local): Install MO files.
27373 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
27374 * include/grub/i18n.h: New file.
27375 * po/POTFILES: New file.
27376 * po/ca.po: New file.
27377 * util/grub.d/10_linux.in (bindir): New variable.
27378 Add gettext initialization.
27379 (linux_entry): Make menuentry output translatable.
27380 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
27381 (usage): Make --help output translatable.
27382 (main): Initialize gettext.
27383
27384 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27385
27386 * import_gcry.py: New file (written by Vladimir with minor
27387 adjustments).
27388 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
27389 ciphers.
27390 * INSTALL: Document that Python is required for bootstrap.
27391
27392 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27393
27394 Import ciphers from libgcrypt 1.4.4.
27395
27396 * lib/libgcrypt/cipher/ChangeLog
27397 * lib/libgcrypt/cipher/ac.c
27398 * lib/libgcrypt/cipher/arcfour.c
27399 * lib/libgcrypt/cipher/bithelp.h
27400 * lib/libgcrypt/cipher/blowfish.c
27401 * lib/libgcrypt/cipher/camellia-glue.c
27402 * lib/libgcrypt/cipher/camellia.c
27403 * lib/libgcrypt/cipher/camellia.h
27404 * lib/libgcrypt/cipher/cast5.c
27405 * lib/libgcrypt/cipher/cipher.c
27406 * lib/libgcrypt/cipher/crc.c
27407 * lib/libgcrypt/cipher/des.c
27408 * lib/libgcrypt/cipher/dsa.c
27409 * lib/libgcrypt/cipher/ecc.c
27410 * lib/libgcrypt/cipher/elgamal.c
27411 * lib/libgcrypt/cipher/hash-common.c
27412 * lib/libgcrypt/cipher/hash-common.h
27413 * lib/libgcrypt/cipher/hmac-tests.c
27414 * lib/libgcrypt/cipher/md.c
27415 * lib/libgcrypt/cipher/md4.c
27416 * lib/libgcrypt/cipher/md5.c
27417 * lib/libgcrypt/cipher/primegen.c
27418 * lib/libgcrypt/cipher/pubkey.c
27419 * lib/libgcrypt/cipher/rfc2268.c
27420 * lib/libgcrypt/cipher/rijndael-tables.h
27421 * lib/libgcrypt/cipher/rijndael.c
27422 * lib/libgcrypt/cipher/rmd.h
27423 * lib/libgcrypt/cipher/rmd160.c
27424 * lib/libgcrypt/cipher/rsa.c
27425 * lib/libgcrypt/cipher/seed.c
27426 * lib/libgcrypt/cipher/serpent.c
27427 * lib/libgcrypt/cipher/sha1.c
27428 * lib/libgcrypt/cipher/sha256.c
27429 * lib/libgcrypt/cipher/sha512.c
27430 * lib/libgcrypt/cipher/tiger.c
27431 * lib/libgcrypt/cipher/twofish.c
27432 * lib/libgcrypt/cipher/whirlpool.c
27433
27434 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27435
27436 Fix build for systems without error().
27437
27438 * gnulib/error.c: New file (imported from Gnulib).
27439 * gnulib/error.h: Likewise.
27440 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
27441 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
27442 (this variable is now used by error()).
27443
27444 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27445
27446 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
27447 instead of relying that char is signed.
27448
27449 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
27450
27451 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
27452 blocksize different from specified.
27453 (grub_pxefs_read): Likewise.
27454
27455 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27456
27457 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
27458
27459 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
27460 (grub_ata_readwrite): Likewise. Update 2 format strings.
27461 (grub_atapi_read): Likewise.
27462
27463 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
27464 * conf/i386.rmk (pkglib_MODULES): ... to here ...
27465 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
27466 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
27467 (ata_mod_LDFLAGS): Move from here ...
27468 * conf/i386.rmk: ... to here ...
27469 * conf/x86_64-efi.rmk: ... and here.
27470 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
27471 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
27472
27473 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27474
27475 Relicense multiboot.h, with RMS' blessing.
27476
27477 * include/multiboot.h: Change to X11 license.
27478
27479 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
27480
27481 Support --version in grub-mkisofs.
27482
27483 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
27484 (OPTION_VERSION): New macro.
27485 (ld_options): Recognize --version.
27486 (usage): Move `program_name' from here ...
27487 (program_name): ... to here. Add `static' qualifier.
27488 (main): Recognize `OPTION_VERSION'.
27489
27490 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
27491
27492 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
27493 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
27494
27495 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27496
27497 Fix help2man generation for mkisofs.
27498
27499 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
27500 (usage): Send output to stdout (rather than stderr).
27501
27502 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27503
27504 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
27505 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27506 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
27507 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27508 (bin_SCRIPTS): Add `grub-mkfloppy'.
27509 (grub_mkfloppy_SOURCES): New variable.
27510
27511 * util/grub-mkrescue.in: New file.
27512 * util/i386/pc/grub-mkfloppy.in: New file.
27513
27514 * util/i386/coreboot/grub-mkrescue.in: Remove.
27515 * util/i386/pc/grub-mkrescue.in: Remove.
27516
27517 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27518
27519 * include/grub/multiboot.h (struct grub_multiboot_header): Move
27520 from here ...
27521 * include/multiboot.h (struct multiboot_header): ... to here. Update
27522 all users.
27523 * include/grub/multiboot.h (struct grub_multiboot_info): Move
27524 from here ...
27525 * include/multiboot.h (struct multiboot_info): ... to here. Update
27526 all users.
27527 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
27528 from here ...
27529 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
27530 Update all users.
27531 * include/grub/multiboot.h (struct grub_mod_list): Move
27532 from here ...
27533 * include/multiboot.h (struct multiboot_mod_list): ... to here.
27534 Update all users.
27535
27536 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27537
27538 * include/multiboot2.h (multiboot_word): Rename from this ...
27539 (multiboot2_word): ... to this. Update all users.
27540 (multiboot_header): Rename from this ...
27541 (multiboot2_header): ... to this. Update all users.
27542 (multiboot_tag_header): Rename from this ...
27543 (multiboot2_tag_header): ... to this. Update all users.
27544 (multiboot_tag_start): Rename from this ...
27545 (multiboot2_tag_start): ... to this. Update all users.
27546 (multiboot_tag_name): Rename from this ...
27547 (multiboot2_tag_name): ... to this. Update all users.
27548 (multiboot_tag_module): Rename from this ...
27549 (multiboot2_tag_module): ... to this. Update all users.
27550 (multiboot_tag_memory): Rename from this ...
27551 (multiboot2_tag_memory): ... to this. Update all users.
27552 (multiboot_tag_unused): Rename from this ...
27553 (multiboot2_tag_unused): ... to this. Update all users.
27554 (multiboot_tag_end): Rename from this ...
27555 (multiboot2_tag_end): ... to this. Update all users.
27556
27557 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27558
27559 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
27560 this platform we should support Multiboot1 first.
27561
27562 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
27563 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
27564 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
27565
27566 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27567
27568 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
27569 of write calls (converting them to fwrite() if they aren't already).
27570 (get_torito_desc): Likewise.
27571 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
27572
27573 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27574
27575 * util/i386/pc/grub-install.in: Move from here ...
27576 * util/grub-install.in: ... to here. Update all users.
27577
27578 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
27579
27580 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
27581
27582 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27583
27584 Support for El Torito without floppy emulation.
27585
27586 * util/mkisofs/eltorito.c: Include `<errno.h>'.
27587 (init_boot_catalog): Improve error handling.
27588 (get_torito_desc): Don't use floppy emulation unless requested by
27589 user. Patch boot information table when requested via
27590 `-boot-info-table'.
27591 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
27592 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
27593 (use_boot_info_table): New variables.
27594 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
27595 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
27596 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
27597 `--eltorito-emul-floppy'.
27598 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
27599 and `OPTION_ELTORITO_EMUL_FLOPPY'.
27600 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
27601 (use_boot_info_table, get_731): New prototypes.
27602 * util/mkisofs/write.c (get_731): New function.
27603
27604 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
27605
27606 Fix the generation of the man page.
27607
27608 * util/pc/i386/grub-install.in: Source
27609 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
27610
27611 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27612
27613 Large file support for grub-mkisofs.
27614
27615 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
27616 * util/mkisofs/mkisofs.c (next_extent, last_extent)
27617 (session_start): Upgrade type to `uint64_t'. Update all users.
27618 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
27619 (struct directory_entry): Upgrade type of `starting_block' and
27620 `size' to `uint64_t'. Update all users.
27621 (struct deferred): Remove unused structure.
27622 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
27623 Update all users.
27624 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
27625 file is larger than `UINT32_MAX'.
27626 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
27627 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
27628 return value.
27629 (struct deferred_write): Upgrade type of `extent' and `size' to
27630 `uint64_t'. Update all users.
27631 (last_extent_written): Upgrade type to `uint64_t'. Update all
27632 users.
27633 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
27634 Update all users. Upgrade type of `remain' to `int64_t' and
27635 `use' to `size_t'. Use error() to handle fread() errors.
27636 (write_files): Rely on write_one_file() rather than calling
27637 xfwrite() directly.
27638
27639 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
27640
27641 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
27642
27643 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27644
27645 * util/mkisofs/fnmatch.c: Remove.
27646 * util/mkisofs/getopt1.c: Likewise.
27647 * util/mkisofs/getopt.c: Likewise.
27648 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
27649 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
27650 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
27651 `gnulib/getopt1.c' and `gnulib/getopt.c'.
27652 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
27653
27654 * configure.ac: Detect `mingw32msvc' host_os.
27655 Check for lstat(), getuid() and getgid().
27656
27657 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
27658 instances of `u_char' with `uint8_t'.
27659
27660 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
27661 [!HAVE_GETUID] (getuid): New function (stub).
27662 [!HAVE_GETGID] (getgid): Likewise.
27663 [!HAVE_LSTAT] (lstat): Likewise.
27664 [!S_IROTH] (S_IROTH): New macro (dummy).
27665 [!S_IRGRP] (S_IRGRP): Likewise.
27666
27667 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27668
27669 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
27670 conditional expression).
27671
27672 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27673
27674 Import from Gnulib.
27675
27676 * gnulib/fnmatch.c: New file.
27677 * gnulib/fnmatch.h: Likewise.
27678 * gnulib/fnmatch_loop.c: Likewise.
27679 * gnulib/getopt.c: Likewise.
27680 * gnulib/getopt.h: Likewise.
27681 * gnulib/getopt1.c: Likewise.
27682 * gnulib/getopt_int.h: Likewise.
27683 * gnulib/gettext.h: Likewise.
27684
27685 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27686
27687 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
27688 * normal/handler.c (read_handler_list): Likewise.
27689
27690 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27691
27692 Misc cleanup.
27693
27694 * kern/command.c (grub_register_command_prio): Use
27695 grub_zalloc() instead of explicitly zeroing data.
27696 * kern/list.c: Include `<grub/mm.h>'.
27697 (grub_named_list_find): Replace `0' with `NULL'.
27698 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
27699 (fs_module_list): Change type to `grub_named_list_t'. Update all
27700 users.
27701 * normal/dyncmd.c (read_command_list): Add space between function
27702 call and parenthesis.
27703 * normal/handler.c (read_handler_list): Likewise.
27704
27705 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27706
27707 * normal/auth.c (punishment_delay): Moved from here ...
27708 (grub_auth_strcmp): ... to here (inside function).
27709
27710 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27711
27712 * include/grub/list.h (struct grub_named_list): Remove `const'
27713 qualifier from `name'.
27714 (struct grub_prio_list): Likewise.
27715
27716 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27717
27718 * normal/auth.c: Include `<grub/time.h>'.
27719 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
27720
27721 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27722
27723 * normal/auth.c (punishment_delay): New variable.
27724 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
27725 (grub_auth_check_authentication): Punish failed login attempts with
27726 an incremental (2^N) delay.
27727
27728 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27729
27730 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
27731 path with $(srcdir).
27732
27733 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27734
27735 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
27736
27737 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27738
27739 * util/i386/coreboot/grub-mkrescue.in: New file.
27740 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
27741 variables.
27742
27743 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
27744 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
27745 * configure.ac: Add header and function checks to satisfy grub-mkisofs
27746 requirements.
27747 * util/mkisofs/defaults.h: New file.
27748 * util/mkisofs/eltorito.c: Likewise.
27749 * util/mkisofs/exclude.h: Likewise.
27750 * util/mkisofs/fnmatch.c: Likewise.
27751 * util/mkisofs/getopt.c: Likewise.
27752 * util/mkisofs/getopt1.c: Likewise.
27753 * util/mkisofs/hash.c: Likewise.
27754 * util/mkisofs/include/fctldefs.h: Likewise.
27755 * util/mkisofs/include/mconfig.h: Likewise.
27756 * util/mkisofs/include/prototyp.h: Likewise.
27757 * util/mkisofs/include/statdefs.h: Likewise.
27758 * util/mkisofs/iso9660.h: Likewise.
27759 * util/mkisofs/joliet.c: Likewise.
27760 * util/mkisofs/match.c: Likewise.
27761 * util/mkisofs/match.h: Likewise.
27762 * util/mkisofs/mkisofs.c: Likewise.
27763 * util/mkisofs/mkisofs.h: Likewise.
27764 * util/mkisofs/multi.c: Likewise.
27765 * util/mkisofs/name.c: Likewise.
27766 * util/mkisofs/rock.c: Likewise.
27767 * util/mkisofs/tree.c: Likewise.
27768 * util/mkisofs/write.c: Likewise.
27769
27770 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27771
27772 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
27773 being insecure.
27774
27775 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27776
27777 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
27778 `grub-mkimage' (and use $0 when possible).
27779
27780 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27781
27782 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
27783 error message for excessively large memory map.
27784
27785 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27786
27787 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
27788 executable bit.
27789
27790 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27791
27792 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
27793 message for coreboot users.
27794
27795 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
27796
27797 Fix build with GNU gold.
27798
27799 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
27800 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
27801 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
27802 link addresses.
27803 * aclocal.m4: Likewise.
27804
27805 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
27806
27807 * configure.ac (AC_PREREQ): Bump to 2.59d.
27808 * INSTALL: Make it more clear when Autoconf and Ruby are
27809 needed and when to run `./autogen.sh'.
27810
27811 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27812
27813 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
27814 OSes.
27815
27816 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27817
27818 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
27819
27820 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27821
27822 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
27823 giving it to GNU Mach.
27824
27825 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27826
27827 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
27828 GNU partition number to get internal GRUB partition number.
27829
27830 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27831
27832 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
27833 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
27834
27835 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
27836
27837 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
27838 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
27839 case.
27840
27841 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
27842
27843 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
27844
27845 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27846
27847 Fix build problem.
27848
27849 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
27850 `-isystem=$(srcdir)/include'.
27851
27852 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27853
27854 * util/i386/pc/grub-install.in: Remove hint that device.map should be
27855 checked (grub-install doesn't currently rely on it).
27856
27857 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
27858
27859 Revert SVN r2660.
27860
27861 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
27862 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27863 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
27864 * conf/i386-ieee1275.rmk: Likewise.
27865 * conf/i386-pc.rmk: Likewise.
27866 * conf/powerpc-ieee1275.rmk: Likewise.
27867 * conf/sparc64-ieee1275.rmk: Likewise.
27868 * conf/x86_64-efi.rmk: Likewise.
27869
27870 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27871
27872 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
27873
27874 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27875
27876 * include/grub/misc.h: Stop checking for APPLE_CC.
27877
27878 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27879
27880 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
27881 doesn't cause an infinite call loop.
27882
27883 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
27884
27885 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
27886 strings.
27887
27888 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27889
27890 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
27891 variable.
27892 * Makefile.in: Likewise.
27893
27894 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27895
27896 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
27897
27898 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27899
27900 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
27901
27902 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27903
27904 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
27905
27906 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27907
27908 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
27909 from here ...
27910 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
27911
27912 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27913
27914 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
27915 in $(MAKEINFO) invocation. This makes it clear in output that
27916 errors are being ignored.
27917
27918 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27919
27920 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
27921 from here ...
27922 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27923 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
27924 * conf/i386-ieee1275.rmk: Likewise.
27925 * conf/i386-pc.rmk: Likewise.
27926 * conf/powerpc-ieee1275.rmk: Likewise.
27927 * conf/sparc64-ieee1275.rmk: Likewise.
27928 * conf/x86_64-efi.rmk: Likewise.
27929
27930 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27931
27932 * util/grub-editenv.c (main): If only a command is given, use
27933 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
27934 (usage): FILENAME is now optional and has a default.
27935
27936 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27937
27938 Improve grub-mkconfig performance when there are several menu
27939 entries on a single filesystem.
27940
27941 * util/grub.d/10_linux.in (linux_entry): Cache the output of
27942 prepare_grub_to_access_device.
27943 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27944 * util/grub.d/30_os-prober.in: Likewise.
27945
27946 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27947
27948 * util/grub.d/10_freebsd.in: Remove.
27949 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
27950 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
27951
27952 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27953
27954 * docs/grub.cfg: Fix example usage of *BSD loaders.
27955
27956 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27957
27958 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
27959 grub_util_error() call.
27960
27961 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27962
27963 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
27964 `reserved_first_sector' member.
27965 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
27966 `reserved_first_sector' to 1.
27967 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
27968 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
27969 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
27970 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
27971 filesystems which begin at first sector.
27972 (options): New option --skip-fs-probe.
27973 (main): Handle --skip-fs-probe and pass it to setup().
27974
27975 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27976
27977 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
27978 (memset): Fix function prototype.
27979
27980 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27981 2009-10-25 Vasily Averin <vvs@parallels.com>
27982
27983 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
27984 `dirent.direntlen == 0'.
27985
27986 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27987
27988 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
27989 `cpio'.
27990 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
27991
27992 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27993
27994 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
27995 `__trampoline_setup' and `__ucmpdi2'.
27996 * include/grub/powerpc/libgcc.h: Only export symbols for functions
27997 that libgcc provides.
27998
27999 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28000
28001 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
28002 * include/grub/sparc64/libgcc.h (memset): Likewise.
28003 * include/grub/misc.h (memset, memcmp): New function prototypes.
28004
28005 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28006
28007 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
28008 `cpio'.
28009 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
28010
28011 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28012
28013 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
28014 * docs/grub.cfg: Compensate for recent change in multiboot
28015 loader (since 2009-08-14 it won't pass filename to payload).
28016 * util/grub.d/10_hurd.in: Likewise.
28017
28018 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
28019
28020 * config.guess: Update to latest version from config git
28021 repository.
28022 * config.sub: Likewise.
28023
28024 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
28025
28026 Fix build on sparc64.
28027
28028 * configure.ac: Perform checks for libgcc symbols before
28029 adding `-nostdlib' to LDFLAGS.
28030
28031 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
28032
28033 Let user specify OpenBSD root device.
28034
28035 * loader/i386/bsd.c (openbsd_root): New variable.
28036 (openbsd_opts): New option 'root'.
28037 (OPENBSD_ROOT_ARG): New macro.
28038 (grub_openbsd_boot): Use 'openbsd_root'.
28039 (grub_cmd_openbsd): Fill 'openbsd_root'.
28040
28041 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
28042
28043 * NEWS: Misc adjustments.
28044
28045 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
28046
28047 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
28048
28049 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
28050
28051 * configure.ac: Bump version to 1.97.
28052
28053 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
28054
28055 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
28056 -mno-3dnow on x86 architectures. Some toolchains enable these
28057 features by default, but they rely on registers that aren't enabled
28058 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
28059
28060 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
28061
28062 Make entry text a bit more readable.
28063
28064 * util/grub.d/10_linux.in: Add `with' before `Linux'.
28065
28066 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28067
28068 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
28069
28070 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28071
28072 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
28073 operations.
28074
28075 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28076
28077 * configure.ac: Add missing dollar.
28078
28079 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28080
28081 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
28082
28083 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
28084 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
28085 exports.
28086 * include/grub/sparc64/libgcc.h: Likewise. Use
28087 preprocessor conditionals.
28088
28089 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28090
28091 * conf/common.rmk (grub-dumpbios): Remove rule.
28092 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
28093 * util/grub-dumpbios.in: Remove file.
28094
28095 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28096
28097 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
28098 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
28099
28100 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
28101 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
28102 users.
28103
28104 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
28105 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
28106 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
28107 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
28108 users.
28109
28110 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
28111
28112 * term/tparm.c: Switch to GPLv3.
28113
28114 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28115
28116 * include/grub/i386/cpuid.h: Add header protection.
28117
28118 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28119
28120 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
28121
28122 * include/grub/i386/cpuid.h: New file.
28123 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
28124 (has_longmode): Rename to ...
28125 (grub_cpuid_has_longmode): ... this. Update all users. Remove
28126 `static' attribute.
28127 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
28128 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
28129 on a CPU that doesn't implement AMD64 instruction set.
28130
28131 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
28132
28133 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
28134 that version.texi is rebuilt on version number changes.
28135
28136 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
28137
28138 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
28139 Fixes bug #27602.
28140
28141 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
28142
28143 * util/i386/pc/grub-install.in: Source
28144 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
28145 that the --grub-probe option will work.
28146 * util/sparc64/ieee1275/grub-install.in: Likewise.
28147
28148 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
28149
28150 * configure.ac: Bump version to 1.97~beta4.
28151
28152 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
28153
28154 Resync grub-mkdevicemap in x86_64-efi.
28155
28156 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
28157 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
28158 `util/devicemap.c'.
28159
28160 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
28161
28162 * util/grub-editenv.c (create_envblk_file): Write new block with a
28163 .new suffix and then rename it into place, to ensure atomic
28164 creation.
28165
28166 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
28167
28168 Do not automatically install headers.
28169
28170 * Makefile.in (include_DATA): Remove. Update all users.
28171
28172 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
28173
28174 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
28175 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
28176
28177 * util/osdetect.lua: Remove.
28178 * script/lua/lauxlib.c: Likewise.
28179 * script/lua/ldebug.c: Likewise.
28180 * script/lua/grub_main.c: Likewise.
28181 * script/lua/lauxlib.h: Likewise.
28182 * script/lua/ldebug.h: Likewise.
28183 * script/lua/ltablib.c: Likewise.
28184 * script/lua/liolib.c: Likewise.
28185 * script/lua/lstrlib.c: Likewise.
28186 * script/lua/lualib.h: Likewise.
28187 * script/lua/ldo.c: Likewise.
28188 * script/lua/ldump.c: Likewise.
28189 * script/lua/ldo.h: Likewise.
28190 * script/lua/loslib.c: Likewise.
28191 * script/lua/lundump.c: Likewise.
28192 * script/lua/grub_lib.c: Likewise.
28193 * script/lua/ldblib.c: Likewise.
28194 * script/lua/lundump.h: Likewise.
28195 * script/lua/lmem.c: Likewise.
28196 * script/lua/grub_lib.h: Likewise.
28197 * script/lua/lmathlib.c: Likewise.
28198 * script/lua/lstate.c: Likewise.
28199 * script/lua/ltm.c: Likewise.
28200 * script/lua/lvm.c: Likewise.
28201 * script/lua/lmem.h: Likewise.
28202 * script/lua/lstate.h: Likewise.
28203 * script/lua/ltm.h: Likewise.
28204 * script/lua/ltable.c: Likewise.
28205 * script/lua/lvm.h: Likewise.
28206 * script/lua/llex.c: Likewise.
28207 * script/lua/lgc.c: Likewise.
28208 * script/lua/grub_lua.h: Likewise.
28209 * script/lua/loadlib.c: Likewise.
28210 * script/lua/lfunc.c: Likewise.
28211 * script/lua/lopcodes.c: Likewise.
28212 * script/lua/lparser.c: Likewise.
28213 * script/lua/ltable.h: Likewise.
28214 * script/lua/llex.h: Likewise.
28215 * script/lua/lgc.h: Likewise.
28216 * script/lua/lfunc.h: Likewise.
28217 * script/lua/lbaselib.c: Likewise.
28218 * script/lua/lopcodes.h: Likewise.
28219 * script/lua/lparser.h: Likewise.
28220 * script/lua/lzio.c: Likewise.
28221 * script/lua/linit.c: Likewise.
28222 * script/lua/lobject.c: Likewise.
28223 * script/lua/llimits.h: Likewise.
28224 * script/lua/lstring.c: Likewise.
28225 * script/lua/lzio.h: Likewise.
28226 * script/lua/lapi.c: Likewise.
28227 * script/lua/lcode.c: Likewise.
28228 * script/lua/lua.h: Likewise.
28229 * script/lua/lobject.h: Likewise.
28230 * script/lua/lstring.h: Likewise.
28231 * script/lua/lapi.h: Likewise.
28232 * script/lua/lcode.h: Likewise.
28233 * script/lua/luaconf.h: Likewise.
28234
28235 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
28236
28237 * docs/grub.texi (Command-line and menu entry commands): Document
28238 date and echo commands.
28239
28240 2009-09-24 Pavel Roskin <proski@gnu.org>
28241
28242 * include/grub/kernel.h (struct grub_module_header): Remove
28243 `grub_module_header_types'. Make `type' unsigned. Make `size'
28244 32-bit on all platforms.
28245 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
28246 8-bit field. Use grub_host_to_target32() for `size'.
28247 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
28248 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
28249 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
28250
28251 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28252
28253 Fix "lost keypress" bug in at_keyboard.
28254
28255 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
28256 Checks for readyness of input buffer (without flushing it).
28257 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
28258 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
28259
28260 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28261
28262 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
28263 size check within GRUB_MACHINE_PCBIOS section.
28264
28265 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28266
28267 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
28268 return value.
28269 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
28270 KEYBOARD_ISREADY check.
28271 (grub_at_keyboard_checkkey): Rename to ...
28272 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
28273 Remove gratuitous cast.
28274
28275 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
28276
28277 * configure.ac: Call AC_PROG_MKDIR_P.
28278 * Makefile.in (docs/stamp-vti): Create docs directory. Create
28279 version.texi in $(builddir) rather than $(srcdir).
28280 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
28281 to makeinfo's @include search path.
28282
28283 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
28284
28285 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
28286
28287 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
28288
28289 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
28290 for `*.dpkg-new'.
28291
28292 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
28293
28294 Build info documentation. Some code borrowed from Automake.
28295
28296 * configure.ac: Check for makeinfo.
28297 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
28298 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
28299 docs/version.texi.
28300 (MOSTLYCLEANFILES): Add vti.tmp.
28301 (docs/version.texi, docs/stamp-vti): Update automatically.
28302 (docs/grub.info): Build info documentation. Use --force and ignore
28303 errors for now.
28304 (all-local): Add $(INFOS).
28305 (install-local): Install info files.
28306 (uninstall): Uninstall info files.
28307 * docs/version.texi: Remove from revision control. This file is
28308 automatically generated on build now.
28309 * gendistlist.sh: Add `*.info'.
28310
28311 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
28312
28313 * kern/term.c: Fix indentation.
28314
28315 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
28316
28317 * util/hostdisk.c: Fix a comment.
28318
28319 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
28320
28321 Fix regression introduced in r2539.
28322
28323 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
28324 to 0xA1.
28325
28326 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
28327
28328 * util/grub.d/30_os-prober.in: Don't throw away stderr from
28329 os-prober. Under normal operation, it does not print anything to
28330 stderr; if it does, we need to debug it, and throwing away stderr
28331 makes that excessively difficult.
28332
28333 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
28334
28335 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
28336
28337 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28338
28339 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
28340 AC_LANG_PROGRAM from autoconf.
28341 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
28342 prototypes (fixes warning).
28343
28344 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
28345 `--disable-werror' was used.
28346
28347 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28348
28349 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
28350 uninitialized `lastaddr'.
28351
28352 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
28353
28354 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
28355
28356 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
28357
28358 * commands/test.c (get_fileinfo): Return immediately if
28359 grub_fs_probe fails.
28360
28361 2009-09-14 José Martínez <xosemp@gmail.com>
28362
28363 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
28364
28365 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
28366
28367 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
28368 output.
28369
28370 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
28371
28372 * configure.ac: Remove --enable-grub-pe2elf. Only build
28373 grub-pe2elf when needed by the build system itself.
28374 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
28375
28376 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28377
28378 * configure.ac: Bump version to 1.97~beta3.
28379 * docs/version.texi: Likewise.
28380
28381 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28382
28383 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
28384 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
28385 from here ...
28386 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
28387 (grub_linux_setup_video): ... to here (with some adjustments).
28388
28389 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28390
28391 Fix memory corruption issue (spotted by Colin Watson).
28392
28393 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
28394 causing returned size to be stored in an incorrect memory location.
28395 Fix use of uninitialized value when storing the returned size.
28396
28397 2009-09-12 Yves Blusseau <blusseau@zetam.org>
28398
28399 Change clean rules to properly remove files
28400
28401 * genmk.rb: add new clean rules
28402 * Makefile.in (clean): add the new targets
28403 (mostlyclean): likewise
28404
28405 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
28406
28407 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
28408 to grub_uint64_t.
28409 * fs/ntfs.c (init_file): Understand 64-bit sizes for
28410 non-resident files.
28411
28412 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
28413
28414 * configure.ac: Don't look for help2man when cross-compiling. Fixes
28415 part of bug #27349.
28416
28417 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
28418
28419 * util/grub-mkconfig.in: Make the created config mode 400 and
28420 print a warning if it fails.
28421
28422 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
28423
28424 * util/grub.d/40_custom.in: Ask user to type custom entries below
28425 comment, rather than below 'exec tail' line.
28426
28427 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
28428
28429 * util/grub.d/40_custom.in: Make sure that the explanatory text is
28430 visible in grub.cfg.
28431
28432 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
28433
28434 * util/grub.d/40_custom.in: Make it a little clearer how to use this
28435 file.
28436
28437 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
28438
28439 * docs/grub.cfg: Add an example menu entry for memtest86+.
28440
28441 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
28442
28443 * config.guess: Update to latest version from config git.
28444 * config.sub: Likewise.
28445
28446 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
28447
28448 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
28449 unknown-command case. Fixes bug #27320.
28450
28451 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
28452
28453 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
28454 `help' if the command exists.
28455
28456 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
28457
28458 * INSTALL: Require GCC 4.1.3 or later.
28459
28460 2009-09-06 Yves Blusseau <blusseau@zetam.org>
28461
28462 * Makefile.in (RMKFILES): add i386-qemu.rmk
28463 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
28464 $(srcdir)/stamp-h.in
28465
28466 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
28467
28468 * util/grub-probe.c (probe): Comment out buggy codepath, which
28469 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
28470 should be re-enabled after 1.97.
28471
28472 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
28473
28474 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
28475 find searches for.
28476
28477 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
28478
28479 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
28480 unnecessary calls to grub_error.
28481
28482 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
28483
28484 * NEWS: Mention `keystatus' and Unicode fonts.
28485
28486 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
28487
28488 * configure.ac: Bump version to 1.97~beta2.
28489 * docs/version.texi: Likewise.
28490
28491 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28492
28493 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
28494 containing unwind information in some cases where it previously did
28495 not. Use -fno-dwarf2-cfi-asm if available to restore the old
28496 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
28497 discussion.
28498
28499 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
28500
28501 Embedding loadenv module into grub-emu
28502
28503 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
28504 commands/loadenv.c
28505 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
28506 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
28507 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
28508 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
28509 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
28510 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
28511
28512 2009-09-03 Magnus Granberg <zorry@ume.nu>
28513
28514 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
28515 include -fPIE in the default specs.
28516 * configure.ac: Check if pie_possible is yes and add -fno-PIE
28517 to TARGET_CFLAGS.
28518
28519 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
28520
28521 * INSTALL: Note that GNU Bison 2.3 or later is required.
28522
28523 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28524
28525 * kern/i386/pc/startup.S: Fix typo.
28526
28527 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
28528
28529 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
28530 according to GCS.
28531
28532 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28533
28534 * docs/grub.texi (Naming convention): Describe one-based partition
28535 numbering.
28536 (Device syntax): Likewise.
28537 (File name syntax): Likewise.
28538 (Block list syntax): Likewise.
28539 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
28540 menu.lst.
28541 (File name syntax): Likewise.
28542 (Command-line and menu entry commands): Document acpi, blocklist,
28543 crc, export, insmod, keystatus, ls, set, and unset commands.
28544
28545 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28546
28547 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
28548 to avoid implying that only one of --shift, --ctrl, or --alt may be
28549 used.
28550
28551 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28552
28553 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
28554 rather than comparing against S_IFREG, which will almost never work.
28555
28556 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
28557
28558 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
28559 (write_blocklists): Likewise.
28560
28561 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
28562
28563 * script/lua/grub_lua.h (fputs): Supply a format string as the first
28564 argument to grub_printf.
28565
28566 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
28567
28568 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
28569 non GNU test.
28570
28571 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28572
28573 * kern/file.c (grub_file_read): Spelling fix
28574
28575 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28576
28577 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
28578 loading of headers in some cases.
28579
28580 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
28581
28582 * configure.ac: Bump version to 1.97~beta1.
28583 * docs/version.texi: Likewise.
28584
28585 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
28586
28587 * include/grub/i386/xnu.h: Add license header.
28588 include grub/err.h explicitly.
28589
28590 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28591
28592 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
28593 to `ufs' in the vfs.root.mountfrom kernel parameter.
28594
28595 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28596
28597 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
28598
28599 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
28600 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
28601
28602 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
28603 `ARRAY_SIZE' macro.
28604
28605 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28606
28607 * kern/file.c (grub_file_read): Check offset.
28608 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
28609 * fs/jfs.c (grub_jfs_read_file): Likewise.
28610 * fs/ntfs.c (grub_ntfs_read): Likewise.
28611 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
28612 * fs/minix.c (grub_minix_read_file): Correct offset check.
28613 * fs/ufs.c (grub_ufs_read_file): Likewise.
28614
28615 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28616
28617 * term/i386/pc/console.c (bios_data_area): Cast
28618 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
28619
28620 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28621
28622 1-bit optimised blitters.
28623
28624 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
28625 prototype.
28626 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28627 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28628 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28629 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28630 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28631 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28632 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
28633 function.
28634 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28635 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28636 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28637 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28638 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28639 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28640 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
28641 when possible.
28642 * video/video.c (grub_video_get_blit_format): Return
28643 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
28644
28645 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28646
28647 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
28648 the first argument to grub_printf.
28649
28650 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28651 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
28652
28653 Add `getkeystatus' terminal method. Add a new `keystatus' command
28654 to query it.
28655
28656 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
28657 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
28658 modifier key bitmasks.
28659 (struct grub_term_input): Add `getkeystatus' member.
28660 (grub_getkeystatus): Add prototype.
28661 * kern/term.c (grub_getkeystatus): New function.
28662
28663 * include/grub/i386/pc/memory.h
28664 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
28665 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
28666 Data Area layout.
28667 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
28668 (grub_console_term_input): Set `getkeystatus' member.
28669 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
28670 constants.
28671 (grub_usb_keyboard_getreport): Likewise.
28672 (grub_usb_keyboard_checkkey): Likewise.
28673 (grub_usb_keyboard_getkeystatus): New function.
28674 (grub_usb_keyboard_term): Set `getkeystatus' member.
28675
28676 * commands/keystatus.c: New file.
28677 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
28678 (keystatus_mod_SOURCES): New variable.
28679 (keystatus_mod_CFLAGS): Likewise.
28680 (keystatus_mod_LDFLAGS): Likewise.
28681 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
28682 commands/keystatus.c.
28683 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28684 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28685 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28686 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28687 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28688 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28689
28690 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28691
28692 Split befs.mod and afs.mod into *_be.mod and *.mod
28693
28694 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
28695 (grub_fstest_SOURCES): Likewise.
28696 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
28697 (afs_be_mod_SOURCES): New variable.
28698 (afs_be_mod_CFLAGS): Likewise.
28699 (afs_be_mod_LDFLAGS): Likewise.
28700 (befs_be_mod_SOURCES): Likewise.
28701 (befs_be_mod_CFLAGS): Likewise.
28702 (befs_be_mod_LDFLAGS): Likewise.
28703 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
28704 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28705 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28706 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28707 (grub_emu_SOURCES): Likewise.
28708 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28709 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28710 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28711 * fs/afs_be.c: New file.
28712 * fs/befs_be.c: New file.
28713 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
28714 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
28715 (U16): Replaced with ...
28716 (grub_afs_to_cpu16): ...this. All users updated.
28717 (U32): Replaced with ...
28718 (grub_afs_to_cpu32): ...this. All users updated.
28719 (U64): Replaced with ...
28720 (grub_afs_to_cpu64): ...this. All users updated.
28721 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
28722 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
28723 (grub_afs_validate_sblock): Check only one endianness.
28724 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28725 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28726 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28727 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28728 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28729 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28730 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28731 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28732
28733 2009-08-26 Bean <bean123ch@gmail.com>
28734
28735 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
28736 64-bit number.
28737 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
28738 (grub_xfs_inode_block): Change return type to grub_uint64_t.
28739 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
28740
28741 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28742
28743 NetBSD memory map support.
28744
28745 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
28746 (grub_netbsd_btinfo_mmap_header): New structure.
28747 (grub_netbsd_btinfo_mmap_entry): Likewise.
28748 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
28749
28750 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28751
28752 Enable bsd.mod on coreboot.
28753
28754 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
28755 (bsd_mod_SOURCES): New variable.
28756 (bsd_mod_CFLAGS): Likewise.
28757 (bsd_mod_LDFLAGS): Likewise.
28758 (bsd_mod_ASFLAGS): Likewise.
28759 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
28760 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
28761
28762 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28763
28764 Cleanup NetBSD root support.
28765
28766 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
28767 grub_bsd_get_device.
28768 Fix typo.
28769
28770 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
28771
28772 * util/grub.d/00_header.in: Move check for the video backend of
28773 gfxterm from here ...
28774 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
28775 a suitable video backend.
28776
28777 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28778
28779 Fix breakage in grub-setup.
28780
28781 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
28782 "msdos_partition_map".
28783
28784 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28785
28786 Fix breakage in normal/auth.c.
28787
28788 * normal/auth.c (grub_iswordseparator): New function.
28789
28790 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28791
28792 Authentication support.
28793
28794 * commands/password.c: New file.
28795 * conf/common.rmk (pkglib_MODULES): Add password.mod.
28796 (password_mod_SOURCES): New variable.
28797 (password_mod_CFLAGS): Likewise.
28798 (password_mod_LDFLAGS): Likewise.
28799 (normal_mod_SOURCES): Add normal/auth.c.
28800 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
28801 normal/auth.c.
28802 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28803 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28804 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28805 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28806 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28807 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28808 * include/grub/auth.h: New file.
28809 * include/grub/err.h (grub_err_t): New enum value
28810 GRUB_ERR_ACCESS_DENIED.
28811 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
28812 'users'.
28813 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
28814 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
28815 users updated.
28816 * normal/auth.c: New file.
28817 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
28818 (grub_cmdline_run): Don't allow to go to command line without
28819 authentication.
28820 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
28821 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
28822 menuentry without superuser rights.
28823 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
28824 user isn't a superuser.
28825
28826 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28827
28828 Save space by inlining misc.c functions.
28829
28830 * kern/misc.c (grub_iswordseparator): Made static.
28831 * kern/misc.c (grub_strcat): Moved from here ...
28832 * include/grub/misc.h (grub_strcat): ... here. Inlined.
28833 * kern/misc.c (grub_strncat): Moved from here ...
28834 * include/grub/misc.h (grub_strncat): ... here. Inlined.
28835 * kern/misc.c (grub_strcasecmp): Moved from here ...
28836 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
28837 * kern/misc.c (grub_strncasecmp): Moved from here ...
28838 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
28839 * kern/misc.c (grub_isalpha): Moved from here ...
28840 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
28841 * kern/misc.c (grub_isdigit): Moved from here ...
28842 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
28843 * kern/misc.c (grub_isgraph): Moved from here ...
28844 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
28845 * kern/misc.c (grub_tolower): Moved from here ...
28846 * include/grub/misc.h (grub_tolower): ... here. Inlined.
28847
28848 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28849
28850 * script/sh/function.c (grub_script_function_find): Cut error message
28851 not to flood terminal.
28852 * script/sh/lexer.c (grub_script_yylex): Remove command line length
28853 limit.
28854 * script/sh/script.c (grub_script_arg_add): Duplicate string.
28855
28856 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
28857
28858 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
28859 `report' grub_uint8_t *.
28860 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
28861 Use a 50-millisecond timeout rather than just repeating
28862 grub_usb_keyboard_getreport 50 times.
28863 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
28864
28865 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28866
28867 Rename *_partition_map to part_*
28868
28869 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
28870 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
28871 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
28872 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
28873 All users updated.
28874 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
28875 All users updated.
28876 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
28877 * util/grub-probe.c (probe_partmap): Don't transform partition name
28878 to get module name.
28879
28880 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28881
28882 Fix OpenBSD and NetBSD support.
28883
28884 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
28885 memory address conflict.
28886 (OPENBSD_MMAP_ACPI): New definition.
28887 (OPENBSD_MMAP_NVS): Likewise.
28888 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
28889 and OPENBSD_MMAP_NVS.
28890 Add memory map terminator
28891 Explicit cast when calling grub_unix_real_boot.
28892 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
28893
28894 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28895
28896 Let user specify NetBSD root device.
28897
28898 * loader/i386/bsd.c (netbsd_root): New variable.
28899 (netbsd_opts): New option 'root'.
28900 (NETBSD_ROOT_ARG): New macro.
28901 (grub_netbsd_boot): Use 'netbsd_root'.
28902 (grub_bsd_unload): Free 'netbsd_root'.
28903 (grub_cmd_netbsd): Fill 'netbsd_root'.
28904
28905 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28906
28907 Support for 64-bit NetBSD.
28908
28909 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
28910 point when booting non-FreeBSD.
28911
28912 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28913
28914 Support --no-smp and --no-acpi for NetBSD.
28915
28916 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
28917 (NETBSD_AB_NOACPI): Likewise.
28918 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
28919 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
28920
28921 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28922
28923 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
28924 errors.
28925 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
28926 errors. Call grub_error when needed.
28927
28928 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28929
28930 * commands/search.c (search_fs): Try searching without autoload first.
28931 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
28932 filesystem module explicitly for faster booting.
28933
28934 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28935
28936 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
28937
28938 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28939
28940 * util/grub.d/30_os-prober.in: Disable os-prober if
28941 `GRUB_DISABLE_OS_PROBER' was set to true.
28942
28943 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
28944
28945 * partmap/pc.c: Rename to ...
28946 * partmap/msdos.c: ... this. Update all users.
28947 (grub_pc_partition_map): Rename to ...
28948 (grub_msdos_partition_map): ... this. Update all users.
28949
28950 * parttool/pcpart.c: Rename to ...
28951 * parttool/msdospart.c: ... this. Update all users.
28952
28953 * include/grub/pc_partition.h: Rename to ...
28954 * include/grub/msdos_partition.h: ... this. Update all users.
28955 (grub_pc_partition_bsd_entry): Rename to ...
28956 (grub_msdos_partition_bsd_entry): ... this. Update all users.
28957 (grub_pc_partition_disk_label): Rename to ...
28958 (grub_msdos_partition_disk_label): ... this. Update all users.
28959 (grub_pc_partition_entry): Rename to ...
28960 (grub_msdos_partition_entry): ... this. Update all users.
28961 (grub_pc_partition_mbr): Rename to ...
28962 (grub_msdos_partition_mbr): ... this. Update all users.
28963 (grub_pc_partition): Rename to ...
28964 (grub_msdos_partition): ... this. Update all users.
28965 (grub_pc_partition_is_empty): Rename to ...
28966 (grub_msdos_partition_is_empty): ... this. Update all users.
28967 (grub_pc_partition_is_extended): Rename to ...
28968 (grub_msdos_partition_is_extended): ... this. Update all users.
28969 (grub_pc_partition_is_bsd): Rename to ...
28970 (grub_msdos_partition_is_bsd): ... this. Update all users.
28971
28972 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
28973 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
28974 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
28975 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
28976 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
28977 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
28978 (gpt_mod_LDFLAGS): Rename to ...
28979 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
28980 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
28981 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
28982 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
28983 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
28984 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
28985 (part_gpt_mod_LDFLAGS): ... this.
28986 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
28987 `pcpart.mod' to `msdospart.mod'.
28988 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
28989 to ...
28990 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
28991 (msdospart_mod_LDFLAGS): ... this.
28992
28993 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28994
28995 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
28996 (openbsd_opts): Likewise.
28997 (netbsd_opts): Likewise.
28998 (freebsd_flags): Added 0 terminator.
28999 (openbsd_flags): Likewise.
29000 (netbsd_flags): Likewise.
29001 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
29002 (grub_cmd_freebsd): Transformed into extended command.
29003 (grub_cmd_openbsd): Likewise.
29004 (grub_cmd_netbsd): Likewise.
29005 (cmd_freebsd): Changed type to grub_extcmd_t.
29006 (cmd_openbsd): Likewise.
29007 (cmd_netbsd): Likewise.
29008 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
29009 grub_cmd_openbsd as extended commands.
29010 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
29011 cmd_netbsd and cmd_openbsd
29012
29013 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
29014
29015 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
29016
29017 2009-08-21 Pavel Roskin <proski@gnu.org>
29018
29019 * Makefile.in (install-local): When checking if a file is in the
29020 build directory, use "test -e" to detect symlinks.
29021
29022 * Makefile.in (install-local): Remove all files in
29023 $(DESTDIR)$(pkglibdir) before installing new files there.
29024
29025 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
29026
29027 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
29028 grub-mkelfimage.
29029
29030 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
29031
29032 * util/grub-mkconfig.in: Don't use gfxterm by default if not
29033 explicitly specified by the user.
29034
29035 2009-08-18 Pavel Roskin <proski@gnu.org>
29036
29037 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
29038 grub_uint8_t pointer for data.
29039 * include/grub/fbutil.h (struct grub_video_fbblit_info):
29040 Likewise.
29041 * video/fb/fbutil.c: Remove unnecessary casts.
29042
29043 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
29044
29045 VBE cleanup.
29046
29047 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
29048 (grub_vbe_set_video_mode): Save active mode info
29049 only after setting the mode.
29050 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
29051 second argument.
29052
29053 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
29054
29055 Rename variables for clarity.
29056
29057 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
29058 (active_vbe_mode_info): ... this. All users updated.
29059 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
29060 All users updated.
29061 (initial_mode): Rename to ...
29062 (initial_vbe_mode): ... this. All users updated.
29063 (mode_in_use): Rename to ..
29064 (vbe_mode_in_use): ... this. All users updated.
29065 (mode_list): Rename to ..
29066 (vbe_mode_list): ... this. All users updated.
29067 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
29068 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
29069 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
29070 'mode_list_size' to 'vbe_mode_list_size'.
29071 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
29072 'best_mode_info' to 'best_vbe_mode_info' and
29073 'best_mode' to 'best_vbe_mode'
29074
29075 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
29076
29077 Remove duplicate grub_video_fb_get_video_ptr.
29078
29079 * include/grub/fbutil.h (get_data_ptr): Rename to ...
29080 (grub_video_fb_get_video_ptr): ... this.
29081 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
29082 * video/fb/fbutil.c: Add comment about addressing.
29083 (get_data_ptr): Rename to ...
29084 (grub_video_fb_get_video_ptr): ... this. All users updated.
29085 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
29086
29087 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29088
29089 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
29090 grub_dprintf() that was just added.
29091
29092 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29093
29094 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
29095 (DEFAULT_VIDEO_MODE): Remove macros.
29096 (grub_linux_boot): Remove assumption that Linux has FB support,
29097 and use "text" as default video mode.
29098
29099 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
29100
29101 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
29102 grub_dprintf.
29103 * fs/fat.c (grub_fat_read_data): Likewise.
29104
29105 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29106
29107 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
29108 payload.
29109 (grub_module): Likewise.
29110
29111 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29112
29113 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
29114 mbi->cmdline but free playground.
29115
29116 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29117
29118 Handle group offset on UFS1.
29119
29120 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
29121 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
29122
29123 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29124
29125 Split ufs.mod into ufs1.mod and ufs2.mod.
29126
29127 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
29128 (grub_fstest_SOURCES): Likewise.
29129 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
29130 (ufs_mod_SOURCES): Remove.
29131 (ufs_mod_CFLAGS): Likewise.
29132 (ufs_mod_LDFLAGS): Likewise.
29133 (ufs1_mod_SOURCES): New variable.
29134 (ufs1_mod_CFLAGS): Likewise.
29135 (ufs1_mod_LDFLAGS): Likewise.
29136 (ufs2_mod_SOURCES): New variable.
29137 (ufs2_mod_CFLAGS): Likewise.
29138 (ufs2_mod_LDFLAGS): Likewise.
29139 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
29140 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29141 Likewise.
29142 (grub_emu_SOURCES): Likewise.
29143 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29144 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29145 (grub_setup_SOURCES): Likewise.
29146 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29147 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
29148 (grub_setup_SOURCES): Likewise.
29149 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29150 Likewise.
29151 * fs/ufs2.c: New file.
29152 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
29153
29154 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29155
29156 Framebuffer split.
29157
29158 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
29159 subsystem at the end.
29160 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
29161 (video_fb_mod_SOURCES): New variable.
29162 (video_fb_mod_CFLAGS): Likewise.
29163 (video_fb_mod_LDFLAGS): Likewise.
29164 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
29165 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
29166 * video/i386/pc/vbeblit.c: Moved from here ...
29167 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
29168 * video/i386/pc/vbefill.c: Moved from here ...
29169 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
29170 * video/i386/pc/vbeutil.c: Moved from here ...
29171 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
29172 * include/grub/i386/pc/vbeblit.h: Moved from here ...
29173 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
29174 * include/grub/i386/pc/vbefill.h: Moved from here ...
29175 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
29176 * include/grub/i386/pc/vbeutil.h: Moved from here ...
29177 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
29178 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
29179 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
29180 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
29181 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
29182 (grub_video_adapter): Added 'get_info_and_fini'.
29183 (grub_video_get_info_and_fini): New prototype.
29184 (grub_video_set_mode): make modestring const char *.
29185 * loader/i386/linux.c (grub_linux_setup_video): Use
29186 grub_video_get_info_and_fini.
29187 (grub_linux_boot): Move modesetting just before booting.
29188 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
29189 grub_video_get_info_and_fini.
29190 * video/i386/pc/vbe.c: Moved framebuffer part ...
29191 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
29192 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
29193 grub_video_fbstd_colors and grub_video_fb_set_palette.
29194 (grub_video_vbe_init): Clear 'framebuffer' variable and use
29195 grub_video_fb_init.
29196 (grub_video_vbe_fini): Use grub_video_fb_fini.
29197 (grub_video_vbe_setup): Use framebuffer.render_target instead of
29198 render_target and use grub_video_fb_set_active_render_target and
29199 grub_video_fb_set_palette.
29200 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
29201 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
29202 (grub_video_vbe_adapter): Use framebuffer.
29203 * video/video.c (grub_video_get_info_and_fini): New function.
29204 (grub_video_set_mode): Make modestring const char *.
29205 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
29206 values are already initialised.
29207
29208 2009-08-14 Pavel Roskin <proski@gnu.org>
29209
29210 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
29211 ABS and APPLE_CC.
29212 * boot/i386/pc/diskboot.S: Likewise.
29213 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
29214 sectors allow compilation on MacOSX.
29215 * conf/i386-pc.rmk: Enable unconditional compilation of
29216 lnxboot.img.
29217
29218 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
29219
29220 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
29221 * util/grub.d/00_header.in: Enter interruptible sleep if
29222 GRUB_HIDDEN_TIMEOUT is set.
29223
29224 2009-08-13 Yves Blusseau <blusseau@zetam.org>
29225
29226 * include/grub/symbol.h: Add the LOCAL macro.
29227 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
29228 starting with "L_".
29229
29230 2009-08-13 Pavel Roskin <proski@gnu.org>
29231
29232 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
29233 any modern compilers we support.
29234
29235 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
29236 Use local labels starting with "L_" so that Apple assembler
29237 knows they are local.
29238
29239 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
29240
29241 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
29242 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
29243 (bsd_kernel_types): ... this enum.
29244
29245 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
29246 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
29247 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
29248
29249 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
29250 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
29251 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
29252 messages.
29253
29254 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29255
29256 * util/grub-dumpdevtree: Moved from here ...
29257 * util/i386/efi/grub-dumpdevtree: ... to here.
29258 (hexify): New function. Converts a string to its hex version.
29259 Generate hex versions of "efi" and "device-properties" by calling
29260 hexify() on the ASCII strings rather than by hardcoding numbers.
29261
29262 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29263
29264 * fs/jfs.c: Update copyright year.
29265
29266 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
29267
29268 * util/grub.d/00_header.in: Fix a comment.
29269 * util/grub.d/10_linux.in: Likewise.
29270 * util/grub.d/10_windows.in: Likewise.
29271 * util/grub.d/10_hurd.in: Likewise.
29272
29273 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
29274
29275 * util/grub-mkconfig.in: Allow the user to specify the used font
29276 with GRUB_FONT.
29277
29278 2009-08-08 Pavel Roskin <proski@gnu.org>
29279
29280 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
29281 available, xfs.mod needs it now.
29282
29283 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
29284 the "g" modifier in sed when the intention is to strip something
29285 once. This fixes comparison of kernels with multiple dashes.
29286
29287 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
29288 on it. Add missing space before closing bracket. Fix
29289 misleading formatting.
29290
29291 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29292
29293 * docs/grub.texi: Major overhaul. Remove all sections that are
29294 specific to GRUB Legacy, or mostly composed of Legacy-specific
29295 information.
29296
29297 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29298
29299 * docs/version.texi: New file. Provides version information for
29300 grub.texi.
29301
29302 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29303
29304 * docs/grub.texi: Update CVS information to SVN.
29305 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
29306
29307 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29308
29309 * util/grub-mkconfig.in: Remove a wrong `fi'.
29310
29311 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29312
29313 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
29314 (grub_jfs_uuid): New function.
29315 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
29316
29317 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29318
29319 * util/grub-mkconfig_lib.in (font_path): Move the functionality
29320 of it to ...
29321 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
29322 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
29323
29324 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29325
29326 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
29327 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
29328 Update all users.
29329
29330 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
29331 not just "vmlinu[zx]".
29332 Moved from here ...
29333 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
29334 all users.
29335
29336 * util/grub.d/10_linux.in (find_latest): Moved from here ...
29337 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
29338 all users.
29339
29340 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29341
29342 * util/grub.d/10_freebsd.in: Use an absolute device path for
29343 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
29344
29345 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
29346
29347 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
29348 handling of multiple abstraction modules.
29349
29350 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
29351
29352 Fix a bug resulting in black screen when loading Linux using a
29353 packed video mode.
29354
29355 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
29356 function.
29357
29358 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
29359 (grub_vbe_bios_getset_dac_palette_width): New function.
29360 (grub_vbe_bios_get_dac_palette_width)
29361 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
29362 grub_vbe_bios_getset_dac_palette_width()).
29363
29364 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
29365 check for return status.
29366 (grub_vbe_get_video_mode_info): When getting information for a packed
29367 mode (<= 8 bpp), obtain DAC palette width using
29368 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
29369 {red,green,blue}_mark_size.
29370
29371 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
29372
29373 * commands/search.c (options): Fix help output to match actual code.
29374
29375 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
29376
29377 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
29378 of homegrown code.
29379
29380 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29381
29382 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
29383 on XFS or ReiserFS.
29384
29385 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29386
29387 Support Apple partition map with sector size different from 512 bytes.
29388
29389 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
29390 (apple_partition_map_iterate): Respect 'aheader.blocksize'
29391 and 'apart.partmap_size'.
29392
29393 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29394 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
29395
29396 Fix cpuid command.
29397
29398 * commands/i386/cpuid.c (options): New variable.
29399 (grub_cmd_cpuid): Return real error.
29400 (GRUB_MOD_INIT(cpuid)): Declare options.
29401
29402 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
29403
29404 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
29405 valid.
29406
29407 2009-07-31 Bean <bean123ch@gmail.com>
29408
29409 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
29410 log2_inode.
29411 (grub_fshelp_node): Move inode field to the end.
29412 (grub_xfs_data): Remove inode field.
29413 (grub_xfs_inode_block): Calculate inode size using sblock.
29414 (grub_xfs_inode_offset): Likewise.
29415 (grub_xfs_read_inode): Calculate inode size using sblock.
29416 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
29417 (grub_xfs_iterate_dir): Calculate inode size using sblock.
29418 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
29419 to match inode size.
29420 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
29421 not accessible when data is null.
29422 (grub_xfs_open): Likewise.
29423
29424 2009-07-31 Bean <bean123ch@gmail.com>
29425
29426 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
29427 Don't change pv->disk if it's already set.
29428
29429 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
29430 (grub_raid_register): ... here.
29431 (grub_raid_rescan): Removed.
29432
29433 * include/grub/raid.h (grub_raid_rescan): Removed.
29434
29435 * util/grub-fstest.c: Remove include file <grub/raid.h>.
29436 (fstest): Replace grub_raid_rescan with module fini function followed
29437 by init function.
29438
29439 * util/grub-probe.c: Add include file <grub/raid.h>.
29440 (probe_raid_level): New function.
29441 (probe): Detect abstraction by walking the disk device, support two
29442 level of abstraction (LVM on RAID) when detecting partition map.
29443
29444 2009-07-31 Pavel Roskin <proski@gnu.org>
29445
29446 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
29447 to grub_zalloc(), it was erroneous.
29448 Reported by Bean <bean123ch@gmail.com>
29449
29450 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
29451
29452 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
29453 embedding zone, not only the first one.
29454
29455 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
29456
29457 * term/gfxterm.c (clear_char): New function.
29458 (grub_virtual_screen_setup): Use clear_char.
29459 (scroll_up): Likewise.
29460 (grub_virtual_screen_cls): Likewise.
29461
29462 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
29463
29464 * util/deviceiter.c (get_acceleraid_disk_name): New static
29465 function.
29466 (grub_util_iterate_devices): Handle Accelraid devices.
29467 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
29468
29469 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
29470
29471 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
29472 separator for the suggested gfxpayload string (';' collides with the
29473 parser and needs escaping).
29474
29475 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
29476
29477 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
29478 Clear direction flag before jumping to OS.
29479 (grub_multiboot2_real_boot): Likewise.
29480
29481 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29482
29483 * util/i386/pc/grub-install: Fix parsing of --disk-module
29484 option.
29485
29486 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29487
29488 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
29489 when embedding.
29490
29491 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
29492
29493 * util/grub-mkconfig.in (package_version): New variable.
29494 Use it do display the version.
29495
29496 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29497
29498 * kern/file.c (grub_file_open): Revert to previous check with
29499 grub_errno.
29500
29501 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29502
29503 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
29504 from help line. It's out of sync with code.
29505
29506 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29507
29508 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
29509 entries on failed boot.
29510
29511 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29512
29513 * kern/file.c (grub_file_open): Fix an error check.
29514
29515 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
29516
29517 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
29518 partition map couldn't be identified.
29519
29520 2009-07-23 Pavel Roskin <proski@gnu.org>
29521
29522 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
29523 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
29524 case of little endian words becomes just an optimization.
29525 Respect const modifier.
29526 (md5_final): Use code that doesn't depend on endianness.
29527
29528 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
29529 to avoid loss of upper bits if align is unsigned and shorter
29530 than addr.
29531
29532 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29533
29534 UUID support for UFS
29535
29536 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
29537 (grub_ufs_uuid): New function.
29538 (grub_ufs_fs): add .uuid
29539
29540 2009-07-21 Pavel Roskin <proski@gnu.org>
29541
29542 * kern/dl.c (grub_dl_check_header): Make static.
29543
29544 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
29545
29546 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
29547 add drivemap for Vista. It breaks Windows 7.
29548
29549 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29550
29551 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
29552 128 bytes
29553
29554 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29555
29556 Add BFS support
29557
29558 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
29559 (grub_fstest_SOURCES): Likewise.
29560 (pkglib_MODULES): Add befs.mod.
29561 (befs_mod_SOURCES): New variable.
29562 (befs_mod_CFLAGS): Likewise.
29563 (befs_mod_LDFLAGS): Likewise.
29564 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29565 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29566 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29567 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29568 (grub_setup_SOURCES): Likewise.
29569 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29570 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29571 (grub_setup_SOURCES): Likewise.
29572 * fs/befs.c: New file.
29573 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
29574 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
29575 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
29576 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
29577 (B_KEY_INDEX_ALIGN): New declaration.
29578 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
29579 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
29580 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
29581 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
29582 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
29583 (grub_afs_mount) [MODE_BFS]: Likewise.
29584 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
29585 (grub_afs_fs): Use GRUB_AFS_FSNAME
29586 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
29587 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
29588 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
29589 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
29590
29591 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
29592
29593 * util/getroot.c (find_root_device): Add support for MacOSX.
29594 * util/hostdisk.c: Likewise.
29595
29596 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29597
29598 * font/font.c (find_glyph): Check whether a font is present to avoid
29599 segmentation fault.
29600
29601 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
29602
29603 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
29604
29605 2009-07-20 Pavel Roskin <proski@gnu.org>
29606
29607 * configure.ac: Trim excessively wordy excuses.
29608
29609 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29610
29611 Add symlink, mtime and label support to AtheFS.
29612
29613 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
29614 (grub_afs_iterate_dir): Handle symlinks.
29615 (grub_afs_open): Use grub_afs_read_symlink.
29616 (grub_afs_dir): Likewise.
29617 Pass mtime.
29618 (grub_afs_label): New function.
29619 (grub_afs_fs): Add grub_afs_label.
29620 (grub_afs_read_symlink): New function.
29621
29622 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29623
29624 Fix AtheFS support.
29625
29626 * fs/afs.c: Fix comments style.
29627 (grub_afs_blockrun): Declare as packed.
29628 (grub_afs_datastream): Likewise.
29629 (grub_afs_bnode): Likewise.
29630 (grub_afs_btree): Likewise.
29631 (grub_afs_sblock): Likewise.
29632 Declare `name' as char.
29633 (grub_afs_inode): Declare as packed.
29634 Change void *vnode to grub_uint32_t unused.
29635 (grub_afs_iterate_dir): Check that key_size is positive.
29636 (grub_afs_mount): Don't read superblock twice.
29637 (grub_afs_dir): Don't free node in case of error,
29638 grub_fshelp_find_file already handles this.
29639 (grub_afs_open): Likewise.
29640
29641 2009-07-19 Pavel Roskin <proski@gnu.org>
29642
29643 * Makefile.in: Remove LIBLZO and enable_lzo.
29644 * conf/i386-pc.rmk: Remove lzo support.
29645 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
29646 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
29647 support.
29648 * kern/i386/pc/lzo1x.S: Remove.
29649 * kern/i386/pc/startup.S: Remove lzo support.
29650 * util/i386/pc/grub-mkimage.c: Likewise.
29651
29652 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
29653
29654 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
29655 * fs/xfs.c (grub_xfs_dir): Likewise.
29656 * fs/afs.c (grub_afs_dir): Likewise.
29657 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
29658 (grub_iso9660_open): Likewise.
29659 * fs/jfs.c (grub_jfs_open): Likewise.
29660 * fs/ext2.c (grub_ext2_dir): Likewise.
29661 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
29662 * script/sh/lexer.c (grub_script_yylex): Likewise.
29663
29664 2009-07-16 Pavel Roskin <proski@gnu.org>
29665
29666 * configure.ac: Never add "-c" to CFLAGS.
29667
29668 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
29669
29670 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
29671 grub_cv_cc_efiemu should be used.
29672
29673 * configure.ac: Typo fixes.
29674
29675 * kern/mm.c (grub_zalloc): New function.
29676 (grub_debug_zalloc): Likewise.
29677 * include/grub/mm.h: Declare grub_zalloc() and
29678 grub_debug_zalloc().
29679 * util/misc.c (grub_zalloc): New function.
29680 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
29681 instead of grub_malloc(), remove unneeded initializations.
29682 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
29683 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
29684 * commands/parttool.c (grub_cmd_parttool): Likewise.
29685 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
29686 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
29687 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
29688 * disk/usbms.c (grub_usbms_finddevs): Likewise.
29689 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
29690 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
29691 (grub_cmd_efiemu_pnvram): Likewise.
29692 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
29693 * fs/iso9660.c (grub_iso9660_mount): Likewise.
29694 (grub_iso9660_iterate_dir): Likewise.
29695 * fs/jfs.c (grub_jfs_opendir): Likewise.
29696 * fs/ntfs.c (list_file): Likewise.
29697 (grub_ntfs_mount): Likewise.
29698 * kern/disk.c (grub_disk_open): Likewise.
29699 * kern/dl.c (grub_dl_load_core): Likewise.
29700 * kern/elf.c (grub_elf_file): Likewise.
29701 * kern/env.c (grub_env_context_open): Likewise.
29702 (grub_env_set): Likewise.
29703 (grub_env_set_data_slot): Likewise.
29704 * kern/file.c (grub_file_open): Likewise.
29705 * kern/fs.c (grub_fs_blocklist_open): Likewise.
29706 * loader/i386/multiboot.c (grub_module): Likewise.
29707 * loader/xnu.c (grub_xnu_create_key): Likewise.
29708 (grub_xnu_create_value): Likewise.
29709 * normal/main.c (grub_normal_add_menu_entry): Likewise.
29710 (read_config_file): Likewise.
29711 * normal/menu_entry.c (make_screen): Likewise.
29712 * partmap/sun.c (sun_partition_map_iterate): Likewise.
29713 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
29714 * script/sh/script.c (grub_script_parse): Likewise.
29715 * video/bitmap.c (grub_video_bitmap_create): Likewise.
29716 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
29717 * video/readers/png.c (grub_png_output_byte): Likewise.
29718 (grub_video_reader_png): Likewise.
29719
29720 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29721
29722 Enable all targets that can be built by default
29723
29724 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
29725 grub-mkfont and grub-fstest if they can be built
29726
29727 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29728
29729 Fix hang and segmentation fault in grub-emu-usb
29730
29731 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
29732 * util/usb.c (grub_libusb_devices): likewise
29733 (grub_libusb_init): rename to ...
29734 (GRUB_MOD_INIT (libusb)):...this
29735 (grub_libusb_fini): rename to ..
29736 (GRUB_MOD_FINI (libusb)):...this
29737 * disk/usbms.c (grub_usbms_transfer): fix retry logic
29738 * include/grub/disk.h (grub_raid_init): removed, it's useless
29739 (grub_raid_fini): likewise
29740 (grub_lvm_init): likewise
29741 (grub_lvm_fini): likewise
29742 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
29743 by grub_init_all
29744
29745 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29746
29747 Fix libusb
29748
29749 * Makefile.in (LIBUSB): new macro
29750 * genmk.rb (Utility/print_tail): new method
29751 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
29752 (top level): call util.print_tail at the end.
29753
29754 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29755
29756 Make FreeBSD accept zpool.cache
29757
29758 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
29759 type is /boot/zfs/zpool.cache
29760
29761 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29762
29763 Fix 64-bit efiemu
29764
29765 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
29766 correct wrong typedef
29767 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
29768
29769 2009-07-15 Pavel Roskin <proski@gnu.org>
29770
29771 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
29772 * kern/disk.c (struct grub_disk_cache): Likewise.
29773
29774 * commands/probe.c (options): Typo fix.
29775
29776 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
29777 Increase to 0x5a to accommodate FAT32. Adjust other offsets
29778 accordingly.
29779 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
29780
29781 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
29782 the end of "Error" to make the message more readable.
29783
29784 * boot/i386/pc/boot.S (kernel_segment): Remove.
29785 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
29786 for destination.
29787
29788 * boot/i386/pc/boot.S (boot_version): Remove.
29789 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
29790 Remove.
29791
29792 * include/grub/i386/pc/boot.h: Sort all offsets.
29793 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
29794 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
29795 * boot/i386/pc/boot.S: Assert location of every offset listed in
29796 include/grub/i386/pc/boot.h.
29797
29798 2009-07-13 Pavel Roskin <proski@gnu.org>
29799
29800 * include/grub/i386/coreboot/machine.h: Rename
29801 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
29802 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
29803 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
29804
29805 * kern/dl.c: Force native word size to suppress warnings when
29806 compiling grub-emu.
29807
29808 * kern/device.c (grub_device_iterate): Change struct part_ent to
29809 hold the name, not a pointer to it. Use one grub_malloc() per
29810 partition, not two. Free partition_name if grub_malloc() fails.
29811 Set ents to NULL only before grub_partition_iterate() is called.
29812
29813 2009-07-11 Bean <bean123ch@gmail.com>
29814
29815 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
29816 childname.
29817
29818 2009-07-10 Bean <bean123ch@gmail.com>
29819 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
29820
29821 * kern/ieee1275/openfw.c (grub_children_iterate)
29822 (grub_devalias_iterate): Fix size evaluation for property or path
29823 strings, which was broken since r2132.
29824
29825 2009-07-07 Pavel Roskin <proski@gnu.org>
29826
29827 * commands/search.c (search_file): Merge into ...
29828 (search_fs): ... this. Accept search type as argument.
29829 (grub_cmd_search): Pass search type to search_fs().
29830
29831 * include/grub/util/console.h: New file.
29832 * util/console.c: Use it instead of grub/machine/console.h.
29833 * util/grub-emu.c: Likewise.
29834
29835 * lib/arg.c (find_long_option): Remove.
29836 (find_long): Add `len' argument, make `s' const char *.
29837 (grub_arg_parse): Parse long options in place, not in a
29838 temporary buffer.
29839
29840 2009-07-06 Pavel Roskin <proski@gnu.org>
29841
29842 * commands/search.c (search_fs): Fix potential NULL pointer
29843 dereference.
29844
29845 * commands/search.c (search_fs): Replace QUID macro with quid_fn
29846 function pointer.
29847
29848 2009-07-06 Daniel Mierswa <impulze@impulze.org>
29849
29850 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
29851 comparison.
29852
29853 2009-07-05 Pavel Roskin <proski@gnu.org>
29854
29855 * include/grub/i386/linux.h (struct linux_kernel_params):
29856 Restore padding3, it's still needed.
29857
29858 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
29859 FreeBSD.
29860 * util/osdetect.lua: Likewise.
29861
29862 2009-07-05 Bean <bean123ch@gmail.com>
29863
29864 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
29865
29866 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
29867 (grub_lua_getenv): Likewise.
29868 (grub_lua_setenv): Likewise.
29869 (save_errno): New function.
29870 (push_result): Likewise.
29871 (grub_lua_enum_device): Likewise.
29872 (grub_lua_enum_file): Likewise.
29873 (grub_lua_file_open): Likewise.
29874 (grub_lua_file_close): Likewise.
29875 (grub_lua_file_seek): Likewise.
29876 (grub_lua_file_read): Likewise.
29877 (grub_lua_file_getline): Likewise.
29878 (grub_lua_file_getsize): Likewise.
29879 (grub_lua_file_getpos): Likewise.
29880 (grub_lua_file_eof): Likewise.
29881 (grub_lua_file_exist): Likewise.
29882 (grub_lua_add_menu): Likewise.
29883
29884 * script/lua/grub_lua.h (isupper): New inline function.
29885 (islower): Likewise.
29886 (ispunct): Likewise.
29887 (isxdigit): Likewise.
29888 (strcspn): Change to normal function.
29889 (strpbkr): New function declaration.
29890 (memchr): Likewise.
29891
29892 * script/lua/grub_main.c (scan_str): New function.
29893 (strcspn): Likewise.
29894 (strpbrk): Likewise.
29895 (memchr): Likewise.
29896
29897 * script/lua/linit.c (lualibs): Enable the string library.
29898
29899 * util/osdetect.lua: New file.
29900
29901 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
29902
29903 * include/grub/i386/linux.h (struct linux_kernel_params): Add
29904 `capabilities' member.
29905
29906 2009-07-02 Pavel Roskin <proski@gnu.org>
29907
29908 * genparttoollist.sh: Add missing newline at the end.
29909
29910 2009-07-01 Pavel Roskin <proski@gnu.org>
29911
29912 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
29913
29914 * util/hostdisk.c (open_device): Remove `const' from
29915 `sysctl_size', as sysctlbyname() can change it (in this case it
29916 doesn't actually happen).
29917
29918 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
29919 using signed long int constants.
29920
29921 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
29922 constant to avoid a warning on FreeBSD.
29923
29924 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
29925 where it's needed.
29926
29927 * Makefile.in: Install include/grub/machine symlink.
29928
29929 * Makefile.in: When installing symlinks, use "cp -fR", which
29930 works on FreeBSD and MacOSX.
29931 From Yves Blusseau <cl7m42e02@sneakemail.com>
29932
29933 * kern/dl.c (grub_dl_resolve_symbol): Make static.
29934 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
29935
29936 * util/misc.c: Move grub_reboot() and grub_halt() ...
29937 * util/grub-emu.c: ... here. Make main_env static.
29938 * include/grub/util/misc.h: Remove main_env.
29939
29940 * kern/mm.c: Use correct format to print size_t.
29941
29942 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
29943 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
29944 * kern/powerpc/dl.c: Likewise.
29945 * kern/sparc64/dl.c: Likewise.
29946 * kern/x86_64/dl.c: Likewise.
29947
29948 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29949
29950 Fix grub-emu build on sparc64-ieee1275.
29951
29952 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
29953 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
29954
29955 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29956
29957 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
29958 (grub_reboot, grub_halt): New functions.
29959
29960 * util/i386/pc/misc.c: Delete. Update all users.
29961 * util/sparc64/ieee1275/misc.c: Likewise.
29962 * util/powerpc/ieee1275/misc.c: Likewise.
29963
29964 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29965
29966 * conf/i386.rmk (setjmp_mod_SOURCES)
29967 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
29968 * conf/common.rmk (setjmp_mod_SOURCES)
29969 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
29970 to use $(target_cpu).
29971 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
29972 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
29973 * conf/powerpc-ieee1275.rmk: Likewise.
29974 * conf/sparc64-ieee1275.rmk: Likewise.
29975
29976 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
29977 $(target_cpu) for kern/$(target_cpu)/dl.c.
29978 * conf/i386-efi.rmk: Likewise.
29979 * conf/i386-ieee1275.rmk: Likewise.
29980 * conf/x86_64-efi.rmk: Likewise.
29981 * conf/i386-coreboot.rmk: Likewise.
29982 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
29983 $(target_cpu) for kern/$(target_cpu)/dl.c and for
29984 kern/$(target_cpu)/cache.S.
29985 * conf/sparc64-ieee1275.rmk: Likewise.
29986
29987 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29988
29989 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
29990 type to `grub_uint8_t', and adjust `padding9' accordingly.
29991
29992 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29993
29994 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
29995
29996 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
29997 assembly in final jump, using register constraints.
29998
29999 (grub_linux_boot): For text mode, initialize `have_vga' using
30000 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
30001
30002 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
30003 right before the final jump.
30004
30005 Set `video_mode' to 0x3.
30006
30007 Document initialization of `video_page', `video_mode' and
30008 `video_ega_bx'.
30009
30010 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30011
30012 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
30013 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
30014 and set GRUB_LINUX_FLAG_QUIET appropriately.
30015
30016 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30017
30018 Fix build on Debian / sparc.
30019
30020 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
30021
30022 2009-06-28 Pavel Roskin <proski@gnu.org>
30023
30024 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
30025 fix a warning.
30026
30027 * util/grub.d/10_linux.in: Match SUSE style initrd names.
30028
30029 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30030
30031 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
30032 `err'.
30033
30034 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30035
30036 Revert r2338.
30037
30038 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
30039 file can't be opened. grub_file_open() is already supposed to set
30040 grub_errno / grub_errmsg appropriately.
30041 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30042
30043 2009-06-27 Pavel Roskin <proski@gnu.org>
30044 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30045
30046 * include/grub/dl.h: Include grub/elf.h.
30047 (struct grub_dl): Add symtab field.
30048 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
30049 GRUB_MODULES_MACHINE_READONLY.
30050 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
30051 of the header for read-only modules.
30052 (grub_dl_unload): Free mod->symtab for read-only modules.
30053 * kern/i386/dl.c: Use mod->symtab.
30054 * kern/powerpc/dl.c: Likewise.
30055 * kern/sparc64/dl.c: Likewise.
30056 * kern/x86_64/dl.c: Likewise.
30057
30058 * conf/i386-qemu.rmk: New file.
30059 * kern/i386/qemu/startup.S: Likewise.
30060 * kern/i386/qemu/mmap.c: Likewise.
30061 * boot/i386/qemu/boot.S: Likewise.
30062 * include/grub/i386/qemu/time.h: Likewise.
30063 * include/grub/i386/qemu/serial.h: Likewise.
30064 * include/grub/i386/qemu/kernel.h: Likewise.
30065 * include/grub/i386/qemu/console.h: Likewise.
30066 * include/grub/i386/qemu/boot.h: Likewise.
30067 * include/grub/i386/qemu/init.h: Likewise.
30068 * include/grub/i386/qemu/machine.h: Likewise.
30069 * include/grub/i386/qemu/loader.h: Likewise.
30070 * include/grub/i386/qemu/memory.h: Likewise.
30071
30072 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
30073 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
30074 [qemu] (pkglib_IMAGES): Add `boot.img'.
30075 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
30076 [qemu] (boot_img_FORMAT): New variables.
30077 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
30078 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
30079 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
30080 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30081 [qemu] (kernel_img_FORMAT): New variables.
30082
30083 * configure.ac: Recognise `i386-qemu'.
30084
30085 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
30086 (for no compression).
30087 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
30088 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
30089 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
30090 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
30091 ifdefs).
30092
30093 2009-06-27 Pavel Roskin <proski@gnu.org>
30094
30095 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
30096 read.
30097 * efiemu/prepare32.c: Likewise.
30098 * efiemu/prepare64.c: Likewise.
30099
30100 2009-06-26 Pavel Roskin <proski@gnu.org>
30101
30102 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
30103 * include/grub/elf.h: Define symbols without "32" or "64" based
30104 on GRUB_TARGET_WORDSIZE.
30105 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
30106 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
30107 ELF definitions.
30108 * efiemu/loadcore64.c: Likewise.
30109 * loader/i386/bsd32.c: Likewise.
30110 * loader/i386/bsd64.c: Likewise.
30111 * kern/dl.c: Remove own ELF definitions.
30112 * util/i386/efi/grub-mkimage.c: Likewise.
30113
30114 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
30115
30116 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
30117 segment 0x0 unconditionally, because the reference generated by
30118 GAS is an absolute address.
30119
30120 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30121
30122 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
30123 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
30124
30125 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30126
30127 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
30128 indexes. Check for -f explicitly.
30129 (search_file): Improve error message.
30130 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
30131
30132 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30133
30134 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
30135 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
30136
30137 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30138
30139 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
30140 * conf/i386-ieee1275.rmk: Likewise.
30141 * conf/i386-coreboot.rmk: Likewise.
30142
30143 * kern/i386/pc/startup.S (grub_stop): Remove function.
30144 * kern/i386/ieee1275/startup.S: Likewise.
30145 * kern/i386/coreboot/startup.S: Likewise.
30146 * kern/i386/misc.S (grub_stop): New function.
30147
30148 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30149
30150 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
30151 * kern/i386/realmode.S (real_to_prot): ... to here.
30152
30153 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30154
30155 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
30156 with `kernel.img'.
30157 (kernel_elf_SOURCES): Rename to ...
30158 (kernel_img_SOURCES): ... this.
30159 (kernel_elf_HEADERS): Rename to ...
30160 (kernel_img_HEADERS): ... this. Update all users.
30161 (kernel_elf_ASFLAGS): Rename to ...
30162 (kernel_img_ASFLAGS): ... this.
30163 (kernel_elf_CFLAGS): Rename to ...
30164 (kernel_img_CFLAGS): ... this.
30165 (kernel_elf_LDFLAGS): Rename to ...
30166 (kernel_img_LDFLAGS): ... this.
30167 * conf/i386-coreboot.rmk: Likewise.
30168 * conf/powerpc-ieee1275.rmk: Likewise.
30169
30170 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
30171 with "kernel.img".
30172
30173 2009-06-21 Pavel Roskin <proski@gnu.org>
30174
30175 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
30176 to match nested functions.
30177 * loader/sparc64/ieee1275/linux.c: Likewise.
30178
30179 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
30180
30181 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30182
30183 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
30184 all i386 platforms.
30185
30186 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30187
30188 Fix asm file handling on ELF, and remove workarounds.
30189
30190 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
30191 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
30192 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
30193 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
30194
30195 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
30196
30197 Load BSD ELF modules
30198
30199 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
30200 and loader/i386/bsd64.c
30201 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
30202 (FREEBSD_MODTYPE_ELF_MODULE): New definition
30203 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
30204 (grub_freebsd_load_elfmodule32): New declaration
30205 (grub_freebsd_load_elfmoduleobj64): Likewise
30206 (grub_freebsd_load_elf_meta32): Likewise
30207 (grub_freebsd_load_elf_meta64): Likewise
30208 (grub_freebsd_add_meta): Likewise
30209 (grub_freebsd_add_meta_module): Likewise
30210 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
30211 (grub_freebsd_add_meta_module): Likewise and move module-specific
30212 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
30213 (grub_cmd_freebsd): Add elf-kernel specific parts
30214 based on grub_freebsd_add_meta_module
30215 (grub_cmd_freebsd_module): Add type parsing moved from
30216 grub_freebsd_add_meta_module
30217 (grub_cmd_freebsd_module_elf): New function
30218 (cmd_freebsd_module_elf): New variable
30219 (GRUB_MOD_INIT): Register freebsd_module_elf
30220 * loader/i386/bsd32.c: New file
30221 * loader/i386/bsd64.c: Likewise
30222 * loader/i386/bsdXX.c: Likewise
30223 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
30224 (grub_elf64_load): Likewise
30225 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
30226 All users updated
30227 (grub_elf64_load_hook_t): Likewise
30228
30229 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
30230
30231 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
30232 variable.
30233 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
30234 don't write a menu entry for recovery mode.
30235
30236 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30237
30238 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
30239 after it's no longer needed.
30240
30241 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30242
30243 * include/grub/i386/loader.h (grub_linux_prot_size)
30244 (grub_linux_tmp_addr, grub_linux_real_addr)
30245 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
30246 GRUB_MACHINE_PCBIOS.
30247 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
30248 common grub_util_info() call to ...
30249 (generate_image): ... here.
30250 Fix use of uninitialized memory, comparison of signed with
30251 unsigned integers and memory leak.
30252 Remove bogus module address message.
30253
30254 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
30255
30256 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
30257 grub_raid_register
30258 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
30259
30260 2009-06-19 Pavel Roskin <proski@gnu.org>
30261
30262 * configure.ac: Remove stray AC_MSG_CHECKING.
30263
30264 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
30265
30266 * disk/scsi.c (grub_scsi_open): use continue instead of big if
30267
30268 2009-06-18 Pavel Roskin <proski@gnu.org>
30269
30270 * conf/common.rmk: Add fs_file.mod.
30271 * disk/fs_file.c: New file.
30272 * include/grub/disk.h (enum grub_disk_dev_id): Add
30273 GRUB_DISK_DEVICE_FILE_ID.
30274
30275 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30276
30277 Fix build with Apple's toolchain. Part 2
30278
30279 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
30280 a fake start
30281
30282 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30283
30284 Fix build with Apple's toolchain. Part 1
30285
30286 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
30287 for long calls
30288 * configure.ac: remove a leftover AC_MSG_RESULT
30289 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
30290 Apple's toolchain
30291
30292 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30293
30294 Fix warnings
30295
30296 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
30297 (decomp_block): initialize ch
30298 use grub_memcpy instead of memcpy
30299
30300 2009-06-17 Pavel Roskin <proski@gnu.org>
30301
30302 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
30303 version, use declarations needed to use vga_text as the startup
30304 console.
30305
30306 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
30307 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
30308 the kernel.
30309 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
30310 and grub_at_keyboard_fini(), it's done on module load and
30311 unload.
30312
30313 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
30314
30315 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
30316 file can't be found.
30317 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30318
30319 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30320
30321 Fix newline handling
30322
30323 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
30324 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
30325 (grub_script_yylex): don't segfault on unterminated script
30326 newline terminates command and variable
30327
30328 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30329
30330 avoid double grub_adjust_range call. Bug reported by David Simner
30331
30332 * kern/disk.c (grub_disk_write): change to raw disk access before
30333 calling disk_read
30334
30335 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
30336
30337 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
30338 spaces, for the benefit of help2man.
30339 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30340
30341 2009-06-16 Pavel Roskin <proski@gnu.org>
30342
30343 * kern/i386/halt.c: Include grub/machine/init.h.
30344 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
30345
30346 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
30347
30348 * util/grub.d/30_os-prober.in: Use ${root} in the generated
30349 drivemap menuentry.
30350
30351 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
30352
30353 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
30354 `echo' command.
30355
30356 2009-06-16 Pavel Roskin <proski@gnu.org>
30357
30358 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
30359 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
30360 save %dx, we only need %dl and we never change it.
30361 * boot/i386/pc/cdboot.S: Don't set the root drive.
30362 * boot/i386/pc/pxeboot.S: Likewise.
30363 * include/grub/i386/pc/boot.h: Remove
30364 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
30365 GRUB_BOOT_MACHINE_DRIVE_CHECK.
30366 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
30367 * kern/i386/pc/init.c (make_install_device): Remove references
30368 to grub_root_drive.
30369 * kern/i386/pc/startup.S: Likewise.
30370 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
30371
30372 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30373
30374 xnu_uuid command
30375
30376 * commands/xnu_uuid.c: new file
30377 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
30378 (xnu_uuid_mod_SOURCES): new variable
30379 (xnu_uuid_mod_CFLAGS): likewise
30380 (xnu_uuid_mod_LDFLAGS): likewise
30381 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30382 * conf/i386-ieee1275.rmk: likewise
30383 * conf/i386-pc.rmk: likewise
30384 * conf/powerpc-ieee1275.rmk: likewise
30385 * conf/sparc64-ieee1275.rmk: likewise
30386 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
30387
30388 2009-06-16 Pavel Roskin <proski@gnu.org>
30389
30390 * configure.ac: Avoid '==' in test command, it's not portable.
30391
30392 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30393
30394 Probe command
30395
30396 * commands/probe.c: new file
30397 * conf/common.rmk (pkglib_MODULES): add probe.mod
30398 (probe_mod_SOURCES): new variable
30399 (probe_mod_CFLAGS): likewise
30400 (probe_mod_LDFLAGS): likewise
30401 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30402 * conf/i386-ieee1275.rmk: likewise
30403 * conf/i386-pc.rmk: likewise
30404 * conf/powerpc-ieee1275.rmk: likewise
30405 * conf/sparc64-ieee1275.rmk: likewise
30406
30407 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
30408
30409 Fix handling of string like \"hello\" and "a
30410 b"
30411
30412 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
30413 (grub_script_yylex): fix parsing of quoting, escaping and newline
30414
30415 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
30416
30417 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
30418 handling
30419
30420 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
30421
30422 * util/grub-mkconfig.in: Fix parsing of --output option.
30423
30424 2009-06-12 Pavel Roskin <proski@gnu.org>
30425
30426 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
30427 genmk.rb don't need to be generated or installed.
30428
30429 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
30430
30431 * commands/i386/pc/drivemap_int13h.S: add more comments
30432
30433 2009-06-11 Pavel Roskin <proski@gnu.org>
30434
30435 * Makefile.in (uninstall): Uninstall manuals.
30436
30437 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
30438 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
30439 and update-grub_lib in two places.
30440 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
30441
30442 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
30443 a compiler warning.
30444
30445 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
30446 `entry_lo' to fix variable shadowing.
30447
30448 2009-06-11 Christian Franke <franke@computer.org>
30449
30450 * kern/misc.c (__enable_execute_stack): Add missing return type
30451 to prevent gcc warning.
30452
30453 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30454
30455 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
30456
30457 2009-06-11 Pavel Roskin <proski@gnu.org>
30458
30459 * Makefile.in: Don't rely on any scripts being executable.
30460 Always use $(SHELL) to run shell scripts.
30461
30462 * configure.ac: Always define ___main if using -nostdlib. This
30463 fixes tests on Cygwin.
30464
30465 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
30466
30467 UDF fix
30468
30469 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
30470 is in bytes and not in blocks
30471
30472 2009-06-11 Pavel Roskin <proski@gnu.org>
30473
30474 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
30475 warning.
30476
30477 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30478
30479 * util/grub.d/30_os-prober.in: Fix a comment. Source
30480 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
30481 to set the root device. Place drivemap command in the generated
30482 chain entry.
30483
30484 2009-06-11 Pavel Roskin <proski@gnu.org>
30485
30486 * configure.ac: Remove host_m32. Issues with 64-bit utilities
30487 have long been resolved.
30488
30489 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
30490
30491 * util/grub.d/10_linux.in: Capitalise "Linux".
30492
30493 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
30494
30495 2009-06-11 Pavel Roskin <proski@gnu.org>
30496
30497 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
30498 fix a gcc warning and ensure that the function won't ever exit.
30499
30500 * kern/i386/ieee1275/init.c: Add missing prototype for
30501 grub_stop_floppy().
30502
30503 * loader/ieee1275/multiboot2.c [__i386__]: Include
30504 grub/cpu/multiboot.h.
30505
30506 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
30507 casts to short - they are not portable and cause warnings. Fix
30508 use of uninitialized values in input_buf. Use ARRAY_SIZE.
30509
30510 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
30511
30512 Drivemap fixes
30513
30514 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
30515 new function
30516 (grub_get_root_biosnumber_saved): new variable
30517 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
30518 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
30519 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
30520 %dx after the call if necessary
30521 * conf/common.rmk (pkglib_MODULES): remove boot.mod
30522 (boot_mod_SOURCES): remove
30523 (boot_mod_CFLAGS): remove
30524 (boot_mod_LDFLAGS): remove
30525 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
30526 (boot_mod_SOURCES): new variable
30527 (boot_mod_CFLAGS): likewise
30528 (boot_mod_LDFLAGS): likewise
30529 * conf/i386-efi.rmk: likewise
30530 * conf/i386-ieee1275.rmk: likewise
30531 * conf/i386-pc.rmk: likewise
30532 * conf/powerpc-ieee1275.rmk: likewise
30533 * conf/sparc64-ieee1275.rmk: likewise
30534 * conf/x86_64-efi.rmk: likewise
30535 * include/grub/i386/pc/biosnum.h: new file
30536 * lib/i386/pc/biosnum.c: likewise
30537 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
30538 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
30539 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
30540
30541 2009-06-10 Pavel Roskin <proski@gnu.org>
30542
30543 * io/gzio.c (test_header): Don't reuse one buffer for all data.
30544 Use separate variables. Read only the file size at the end, but
30545 not the checksum that we don't use.
30546
30547 * kern/file.c (grub_file_read): Use void pointer for the buffer.
30548 Adjust all callers.
30549
30550 * kern/ieee1275/openfw.c: Remove libc includes.
30551 * kern/ieee1275/cmain.c: Likewise.
30552 * include/grub/ieee1275/ieee1275.h: Likewise.
30553
30554 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
30555 compiler warnings.
30556
30557 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30558
30559 * Makefile.in: Remove all trailing whitespace.
30560 * conf/i386-pc.rmk: Likewise.
30561 * conf/powerpc-ieee1275.rmk: Likewise.
30562 * conf/sparc64-ieee1275.rmk: Likewise.
30563 * docs/grub.texi: Likewise.
30564 * docs/texinfo.tex: Likewise.
30565 * disk/fs_uuid.c: Likewise.
30566 * disk/lvm.c: Likewise.
30567 * disk/scsi.c: Likewise.
30568 * disk/ata.c: Likewise.
30569 * disk/ieee1275/ofdisk.c: Likewise.
30570 * disk/i386/pc/biosdisk.c: Likewise.
30571 * disk/host.c: Likewise.
30572 * disk/raid.c: Likewise.
30573 * disk/efi/efidisk.c: Likewise.
30574 * disk/usbms.c: Likewise.
30575 * disk/memdisk.c: Likewise.
30576 * disk/loopback.c: Likewise.
30577 * kern/powerpc/dl.c: Likewise.
30578 * kern/device.c: Likewise.
30579 * kern/dl.c: Likewise.
30580 * kern/sparc64/dl.c: Likewise.
30581 * kern/ieee1275/ieee1275.c: Likewise.
30582 * kern/term.c: Likewise.
30583 * kern/fs.c: Likewise.
30584 * kern/i386/dl.c: Likewise.
30585 * kern/i386/pc/startup.S: Likewise.
30586 * kern/i386/pc/init.c: Likewise.
30587 * kern/i386/pc/mmap.c: Likewise.
30588 * kern/i386/pc/lzo1x.S: Likewise.
30589 * kern/i386/ieee1275/init.c: Likewise.
30590 * kern/i386/realmode.S: Likewise.
30591 * kern/i386/tsc.c: Likewise.
30592 * kern/partition.c: Likewise.
30593 * kern/corecmd.c: Likewise.
30594 * kern/file.c: Likewise.
30595 * kern/efi/efi.c: Likewise.
30596 * kern/efi/init.c: Likewise.
30597 * kern/efi/mm.c: Likewise.
30598 * kern/main.c: Likewise.
30599 * kern/err.c: Likewise.
30600 * kern/env.c: Likewise.
30601 * kern/disk.c: Likewise.
30602 * kern/generic/millisleep.c: Likewise.
30603 * kern/generic/rtc_get_time_ms.c: Likewise.
30604 * kern/misc.c: Likewise.
30605 * kern/parser.c: Likewise.
30606 * genmk.rb: Likewise.
30607 * configure.ac: Likewise.
30608 * boot/i386/pc/diskboot.S: Likewise.
30609 * boot/i386/pc/pxeboot.S: Likewise.
30610 * boot/i386/pc/boot.S: Likewise.
30611 * boot/i386/pc/lnxboot.S: Likewise.
30612 * boot/i386/pc/cdboot.S: Likewise.
30613 * parttool/pcpart.c: Likewise.
30614 * video/readers/tga.c: Likewise.
30615 * video/video.c: Likewise.
30616 * video/bitmap.c: Likewise.
30617 * lib/envblk.c: Likewise.
30618 * lib/i386/setjmp.S: Likewise.
30619 * fs/xfs.c: Likewise.
30620 * fs/afs.c: Likewise.
30621 * fs/fat.c: Likewise.
30622 * fs/ntfs.c: Likewise.
30623 * fs/udf.c: Likewise.
30624 * fs/affs.c: Likewise.
30625 * fs/iso9660.c: Likewise.
30626 * fs/hfs.c: Likewise.
30627 * fs/fshelp.c: Likewise.
30628 * fs/ext2.c: Likewise.
30629 * fs/jfs.c: Likewise.
30630 * fs/reiserfs.c: Likewise.
30631 * fs/hfsplus.c: Likewise.
30632 * fs/minix.c: Likewise.
30633 * fs/cpio.c: Likewise.
30634 * fs/sfs.c: Likewise.
30635 * fs/ufs.c: Likewise.
30636 * efiemu/prepare.c: Likewise.
30637 * efiemu/loadcore_common.c: Likewise.
30638 * efiemu/runtime/efiemu.sh: Likewise.
30639 * efiemu/runtime/efiemu.S: Likewise.
30640 * efiemu/runtime/efiemu.c: Likewise.
30641 * efiemu/pnvram.c: Likewise.
30642 * efiemu/main.c: Likewise.
30643 * efiemu/i386/pc/cfgtables.c: Likewise.
30644 * efiemu/i386/loadcore64.c: Likewise.
30645 * efiemu/i386/loadcore32.c: Likewise.
30646 * efiemu/loadcore.c: Likewise.
30647 * efiemu/symbols.c: Likewise.
30648 * efiemu/mm.c: Likewise.
30649 * include/grub/autoefi.h: Likewise.
30650 * include/grub/datetime.h: Likewise.
30651 * include/grub/term.h: Likewise.
30652 * include/grub/hfs.h: Likewise.
30653 * include/grub/lvm.h: Likewise.
30654 * include/grub/i386/tsc.h: Likewise.
30655 * include/grub/i386/linux.h: Likewise.
30656 * include/grub/i386/xnu.h: Likewise.
30657 * include/grub/i386/efiemu.h: Likewise.
30658 * include/grub/i386/pc/biosdisk.h: Likewise.
30659 * include/grub/i386/pc/memory.h: Likewise.
30660 * include/grub/i386/pc/vbe.h: Likewise.
30661 * include/grub/parttool.h: Likewise.
30662 * include/grub/video.h: Likewise.
30663 * include/grub/memory.h: Likewise.
30664 * include/grub/fs.h: Likewise.
30665 * include/grub/partition.h: Likewise.
30666 * include/grub/xnu.h: Likewise.
30667 * include/grub/efi/api.h: Likewise.
30668 * include/grub/efi/pe32.h: Likewise.
30669 * include/grub/efi/memory.h: Likewise.
30670 * include/grub/multiboot.h: Likewise.
30671 * include/grub/usbdesc.h: Likewise.
30672 * include/grub/multiboot2.h: Likewise.
30673 * include/grub/acpi.h: Likewise.
30674 * include/grub/efiemu/efiemu.h: Likewise.
30675 * include/grub/disk.h: Likewise.
30676 * include/grub/ieee1275/ieee1275.h: Likewise.
30677 * include/grub/net.h: Likewise.
30678 * include/grub/machoload.h: Likewise.
30679 * include/grub/macho.h: Likewise.
30680 * include/multiboot.h: Likewise.
30681 * genmoddep.awk: Likewise.
30682 * normal/main.c: Likewise.
30683 * normal/menu_entry.c: Likewise.
30684 * normal/menu_viewer.c: Likewise.
30685 * normal/completion.c: Likewise.
30686 * normal/cmdline.c: Likewise.
30687 * normal/misc.c: Likewise.
30688 * normal/datetime.c: Likewise.
30689 * bus/usb/usbtrans.c: Likewise.
30690 * bus/usb/ohci.c: Likewise.
30691 * bus/usb/uhci.c: Likewise.
30692 * bus/usb/usb.c: Likewise.
30693 * mmap/efi/mmap.c: Likewise.
30694 * mmap/i386/pc/mmap_helper.S: Likewise.
30695 * mmap/i386/pc/mmap.c: Likewise.
30696 * mmap/i386/mmap.c: Likewise.
30697 * mmap/i386/uppermem.c: Likewise.
30698 * mmap/mmap.c: Likewise.
30699 * commands/acpi.c: Likewise.
30700 * commands/echo.c: Likewise.
30701 * commands/blocklist.c: Likewise.
30702 * commands/loadenv.c: Likewise.
30703 * commands/usbtest.c: Likewise.
30704 * commands/boot.c: Likewise.
30705 * commands/parttool.c: Likewise.
30706 * commands/search.c: Likewise.
30707 * commands/cat.c: Likewise.
30708 * commands/i386/pc/play.c: Likewise.
30709 * commands/i386/pc/drivemap.c: Likewise.
30710 * commands/i386/pc/vbeinfo.c: Likewise.
30711 * commands/i386/pc/acpi.c: Likewise.
30712 * commands/i386/pc/vbetest.c: Likewise.
30713 * commands/ls.c: Likewise.
30714 * commands/cmp.c: Likewise.
30715 * commands/test.c: Likewise.
30716 * commands/efi/acpi.c: Likewise.
30717 * commands/gptsync.c: Likewise.
30718 * commands/help.c: Likewise.
30719 * partmap/amiga.c: Likewise.
30720 * partmap/apple.c: Likewise.
30721 * partmap/acorn.c: Likewise.
30722 * partmap/pc.c: Likewise.
30723 * partmap/sun.c: Likewise.
30724 * partmap/gpt.c: Likewise.
30725 * script/sh/lexer.c: Likewise.
30726 * script/sh/function.c: Likewise.
30727 * font/font.c: Likewise.
30728 * font/font_cmd.c: Likewise.
30729 * loader/powerpc/ieee1275/linux.c: Likewise.
30730 * loader/efi/chainloader.c: Likewise.
30731 * loader/multiboot_loader.c: Likewise.
30732 * loader/macho.c: Likewise.
30733 * loader/i386/multiboot.c: Likewise.
30734 * loader/i386/linux.c: Likewise.
30735 * loader/i386/pc/linux.c: Likewise.
30736 * loader/i386/pc/multiboot2.c: Likewise.
30737 * loader/i386/pc/chainloader.c: Likewise.
30738 * loader/i386/pc/xnu.c: Likewise.
30739 * loader/i386/bsd_trampoline.S: Likewise.
30740 * loader/i386/efi/linux.c: Likewise.
30741 * loader/i386/multiboot_elfxx.c: Likewise.
30742 * loader/i386/bsd_helper.S: Likewise.
30743 * loader/i386/bsd.c: Likewise.
30744 * loader/i386/linux_trampoline.S: Likewise.
30745 * loader/i386/xnu_helper.S: Likewise.
30746 * loader/i386/xnu.c: Likewise.
30747 * loader/i386/bsd_pagetable.c: Likewise.
30748 * loader/i386/multiboot_helper.S: Likewise.
30749 * loader/xnu.c: Likewise.
30750 * loader/xnu_resume.c: Likewise.
30751 * io/gzio.c: Likewise.
30752 * term/efi/console.c: Likewise.
30753 * term/terminfo.c: Likewise.
30754 * term/ieee1275/ofconsole.c: Likewise.
30755 * term/i386/pc/serial.c: Likewise.
30756 * term/i386/pc/vesafb.c: Likewise.
30757 * term/i386/pc/vga.c: Likewise.
30758 * term/usb_keyboard.c: Likewise.
30759 * term/gfxterm.c: Likewise.
30760 * aclocal.m4: Likewise.
30761 * util/lvm.c: Likewise.
30762 * util/grub.d/30_os-prober.in: Likewise.
30763 * util/grub.d/10_hurd.in: Likewise.
30764 * util/console.c: Likewise.
30765 * util/grub-macho2img.c: Likewise.
30766 * util/grub-probe.c: Likewise.
30767 * util/hostfs.c: Likewise.
30768 * util/i386/pc/grub-mkimage.c: Likewise.
30769 * util/i386/pc/grub-setup.c: Likewise.
30770 * util/i386/efi/grub-mkimage.c: Likewise.
30771 * util/grub-mkconfig.in: Likewise.
30772 * util/raid.c: Likewise.
30773 * util/resolve.c: Likewise.
30774 * util/grub-mkdevicemap.c: Likewise.
30775 * util/grub-emu.c: Likewise.
30776 * util/getroot.c: Likewise.
30777 * util/hostdisk.c: Likewise.
30778 * util/usb.c: Likewise.
30779 * util/grub-editenv.c: Likewise.
30780 * util/misc.c: Likewise.
30781
30782 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30783
30784 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
30785 `genparttoollist.sh'.
30786 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
30787 Add `*.sh' to the list find searches for and change `mdate.sh'
30788 to `mdate-sh'.
30789
30790 2009-06-10 Pavel Roskin <proski@gnu.org>
30791
30792 * include/grub/multiboot2.h: Provide compatibility defines for
30793 multiboot2.h.
30794 * include/multiboot2.h: Include stdint.h only if needed, using
30795 angle brackets.
30796 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
30797 grub/multiboot2.h.
30798 * loader/ieee1275/multiboot2.c: Likewise.
30799 * loader/multiboot2.c: Likewise.
30800 * loader/multiboot_loader.c: Likewise.
30801
30802 * configure.ac: Use -nostdlib when probing for the target. It
30803 should not be required to have libc for the target.
30804
30805 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
30806 they fail without libc headers for the target.
30807 * include/grub/powerpc/libgcc.h: Use weak attribute for all
30808 exports.
30809 * include/grub/sparc64/libgcc.h: Likewise. Don't use
30810 preprocessor conditionals.
30811
30812 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
30813 build system doesn't need to be aware of the tar.c internals.
30814
30815 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
30816
30817 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
30818
30819 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
30820
30821 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
30822 disk limit to 26 for IDE, Virtio, Xen and SCSI.
30823
30824 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
30825
30826 * util/i386/pc/grub-install.in: Change the error message if UUIDs
30827 aren't available if ata.mod gets used.
30828
30829 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
30830
30831 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
30832 initialising controller.
30833 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30834
30835 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30836
30837 * util/i386/pc/grub-install.in: Add a parameter --disk-module
30838 to choose between ata and biosdisk module on i386-pc.
30839
30840 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
30841
30842 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
30843 Subclass and Programming Interface fields in terms of the 3 byte
30844 Class Code register.
30845 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30846
30847 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
30848 interface is OHCI. Add grub_dprintf for symmetry with
30849 bus/usb/uhci.c.
30850 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
30851 interface is UHCI. Add interf variable for programming
30852 interface. Print interface with class/subclass.
30853
30854 * bus/usb/ohci.c: Set interf with correct field.
30855
30856 * bus/usb/uhci.c: Remove unneeded doubled lines.
30857 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
30858 Remove whitespace inside comment.
30859
30860 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
30861
30862 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
30863 as fallback an equivalent option without depth.
30864
30865 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30866
30867 Not fail if unable to retrieve C/H/S on LBA disks
30868
30869 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
30870 if unable to retrieve C/H/S on LBA disks
30871
30872 2009-06-08 Pavel Roskin <proski@gnu.org>
30873
30874 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
30875 about aliasing.
30876
30877 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30878
30879 * Makefile.in (uninstall): Remove all $lib_DATA files.
30880
30881 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30882
30883 Bugfix: install on partitionless device
30884
30885 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
30886 is a whole disk
30887
30888 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30889
30890 * Makefile.in (uninstall): Remove all $include_DATA files.
30891
30892 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30893
30894 * commands/true.c: New file. Implement the true and false commands.
30895 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
30896 (true_mod_SOURCES): New variable.
30897 (true_mod_CFLAGS): Likewise.
30898 (true_mod_LDFLAGS): Likewise.
30899
30900 2009-06-05 Colin D Bennett <colin@gibibit.com>
30901
30902 Optimized font character lookup using binary search instead of linear
30903 search. Fonts now are required to have the character index ordered by
30904 code point.
30905
30906 * font/font.c (load_font_index): Verify that fonts have ordered
30907 character indices.
30908 (find_glyph): Use binary search instead of linear search to find a
30909 character in a font.
30910
30911 2009-06-05 Michael Scherer <misc@mandriva.org>
30912
30913 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
30914 uses case sensitive btree.
30915 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
30916 only for case insensitive filesystems.
30917
30918 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
30919
30920 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
30921 * conf/common.rmk (search_mod_CFLAGS): likewise
30922
30923 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30924
30925 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
30926 compensate a compiler bug
30927
30928 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30929
30930 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
30931 instead of '\b'
30932
30933 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30934
30935 Definitions for creating asm symbols with Apple's CC
30936
30937 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
30938 [APPLE_CC] (VARIABLE): likewise
30939
30940 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30941
30942 Disable lnxboot.img when compiled
30943 with Apple's CC
30944
30945 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
30946 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
30947 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
30948 [! APPLE_CC] (CODE_LENG): skip
30949 [! APPLE_CC] (setup_sects): likewise
30950 [! APPLE_CC]: skip filling
30951
30952 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30953
30954 Address in trampolines based on 32-bit registers when compiled
30955 with Apple's CC
30956
30957 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
30958 for addresses
30959 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
30960
30961 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30962
30963 Avoid aliases when compiling with Apple's CC for PCBIOS machine
30964
30965 * kern/misc.c [APPLE_CC] (memcpy): new function
30966 [APPLE_CC] (memmove): likewise
30967 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
30968 (memcpy): define alias conditionally on !APPLE_CC
30969 (memset): likewise
30970 (abort): likewise
30971 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
30972 APPLE_CC are defined
30973 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
30974 (grub_assert_fail): make prototype conditional
30975
30976 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30977
30978 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
30979
30980 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
30981 grub-macho2img
30982 (CLEANFILES): add grub-macho2img
30983 (grub_macho2img_SOURCES): new variable
30984 * kern/i386/pc/startup.S (bss_start): new variable
30985 (bss_end): likewise
30986 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
30987 * util/grub-macho2img.c: new file
30988
30989 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30990
30991 Use objconv when compiling with Apple's CC
30992
30993 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
30994 (efiemu64.o): likewise
30995 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
30996 when compiling with Apple's CC
30997 (efiemu64_s.o): likewise
30998 * configure.ac: check for objconv when compiling with Apple's CC
30999 * genmk.rb: use objconv for modules when compiled with Apple's CC
31000
31001 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31002
31003 Define segment as well as section when compiling with
31004 Apple's CC
31005
31006 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
31007 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
31008 (efiemu_convert_pointer): likewise
31009 (efiemu_set_virtual_address_map): likewise
31010 (efiemu_convert_pointer): likewise
31011 (efiemu_getcrc32): likewise
31012 (init_crc32_table): likewise
31013 (reflect): likewise
31014 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
31015 (GRUB_MOD_DEP): likewise
31016
31017 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31018
31019 Allow a compilation without -mcmodel=large
31020
31021 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
31022 when compiled without -mcmodel=large
31023 (filter_memory_map): remove memory post 4 GiB when compiled
31024 without -mcmodel=large
31025 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
31026 TARGET_CFLAGS when -mcmodel=large isn't supported
31027
31028 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31029
31030 Remove nested functions in efiemu core
31031
31032 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
31033
31034 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31035
31036 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
31037
31038 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
31039 temporary storage
31040 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
31041 using Apple's CC
31042 (grub_cpu_is_tsc_supported): likewise
31043 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
31044
31045 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31046
31047 Absolute addressing through constant with Apple's cc
31048
31049 * kern/i386/pc/startup.S: Define necessary constants
31050 and address through it when using ABS with Apple's CC
31051 * boot/i386/pc/diskboot.S: likewise
31052 * boot/i386/pc/boot.S: likewise
31053 * boot/i386/pc/lnxboot.S: likewise
31054 * boot/i386/pc/cdboot.S: likewise
31055 * mmap/i386/pc/mmap_helper.S: likewise
31056 * commands/i386/pc/drivemap_int13h.S: likewise
31057
31058 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31059
31060 Check if compiler is apple cc
31061
31062 * Makefile.in (ASFLAGS): new variable
31063 (TARGET_ASFLAGS): likewise
31064 (TARGET_MODULE_FORMAT): likewise
31065 (TARGET_APPLE_CC): likewise
31066 (OBJCONV): likewise
31067 (TARGET_IMG_CFLAGS): likewise
31068 (TARGET_CPPFLAGS): add includedir
31069 * configure.ac: call grub_apple_cc and grub_apple_target_cc
31070 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
31071 Check for linker script only if compiler isn't Apple's CC
31072 (TARGET_MODULE_FORMAT): set
31073 (TARGET_APPLE_CC): likewise
31074 (TARGET_ASFLAGS): likewise
31075 (ASFLAGS): likewise
31076 Check for objcopy only if compiler isn't Apple's CC
31077 Check for BSS symbol only if compiler isn't Apple's CC
31078 * genmk.rb: adapt nm options if we use Apple's utils
31079 * aclocal.m4 (grub_apple_cc): new test
31080 (grub_apple_target_cc): likewise
31081
31082 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31083
31084 Simplify sed expressions and improve awk
31085
31086 * Makefile.in (install-local): simplify sed expression
31087 * gencmdlist.sh: likewise
31088 * genmoddep.awk: avoid adding module as a dependency of itself
31089
31090 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31091
31092 Add missing start symbols
31093
31094 * boot/i386/pc/boot.S: add start
31095 * boot/i386/pc/pxeboot.S: likewise
31096
31097 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31098
31099 Fix wrong assumptions with grub-mkimage on EFI
31100
31101 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
31102 (relocate_addresses): consider both r_addend and value at offset
31103 (make_mods_section): zerofill modinfo and header
31104 (convert_elf): write prefix here
31105
31106 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31107
31108 Use .asciz instead of .string
31109
31110 * i386/pc/diskboot.S: use .asciz instead of .string
31111 * i386/pc/boot.S: likewise
31112 * include/grub/dl.h (GRUB_MOD_DEP): likewise
31113 (GRUB_MOD_NAME): likewise
31114
31115 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31116
31117 gfxpayload support
31118
31119 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
31120 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
31121 (grub_video_setup): remove
31122 (grub_video_set_mode): new prototype
31123 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
31124 (vid_mode): remove
31125 (linux_vesafb_res): compile only on PCBIOS
31126 (grub_linux_boot): support gfxpayload
31127 * loader/i386/pc/xnu.c (video_hook): new function
31128 (grub_xnu_set_video): support gfxpayload
31129 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
31130 (DEFAULT_VIDEO_HEIGHT): likewise
31131 (DEFAULT_VIDEO_FLAGS): likewise
31132 (DEFAULT_VIDEO_MODE): new definition
31133 (video_hook): new function
31134 (grub_gfxterm_init): use grub_video_set_mode
31135 * util/grub.d/30_os-prober.in: remove explicit modesetting before
31136 loading xnu
31137 * video/video.c (grub_video_setup): removed
31138 (grub_video_set_mode): new function based on grub_gfxterm_init and
31139 grub_video_setup
31140
31141 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31142
31143 Avoid calling biosdisk in drivemap
31144
31145 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
31146 (revparse_biosdisk): likewise
31147 (list_mappings): derive name from id directly
31148 (grub_cmd_drivemap): use tryparse_diskstring
31149
31150 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31151
31152 Script fixes
31153
31154 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
31155 (grub_lexer_param): add tokenonhold
31156 (grub_script_create_cmdline): remove cmdline. All callers updated
31157 (grub_script_function_create): make functionname
31158 grub_script_arg. All callers updated
31159 (grub_script_execute_argument_to_string): new prototype
31160 * kern/parser.c (state_transitions): reorder
31161 (grub_parser_cmdline_state): fix a bug and make more compact
31162 * script/sh/execute.c (grub_script_execute_argument_to_string):
31163 make global
31164 (grub_script_execute_cmdline): use new format
31165 * script/sh/function.c (grub_script_function_create): make functionname
31166 grub_script_arg. All callers updated
31167 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
31168 (grub_script_yylex): remove
31169 (grub_script_yylex2): renamed to ...
31170 (grub_script_yylex): ...renamed
31171 parse the expressions like a${b}c
31172 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
31173 (GRUB_PARSER_TOKEN_VAR): remove
31174 (GRUB_PARSER_TOKEN_NAME): likewise
31175 ("if"): declare as typeless
31176 ("while"): likewise
31177 ("function"): likewise
31178 ("else"): likewise
31179 ("then"): likewise
31180 ("fi"): likewise
31181 (text): remove
31182 (argument): likewise
31183 (script): accept empty scripts and make exit on error
31184 (arguments): use GRUB_PARSER_TOKEN_ARG
31185 (function): likewise
31186 (command): move error handling to script
31187 (menuentry): move grub_script_lexer_ref before
31188 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
31189 argument. All callers updated
31190
31191 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31192
31193 Prevent GRUB from probing floppies during boot.
31194
31195 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
31196 * commands/search.c (options): Add --no-floppy.
31197 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
31198 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
31199 --no-floppy when searching for UUIDs.
31200
31201 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31202
31203 Simplify the code duplication in commands/search.c.
31204
31205 * commands/search.c (search_label, search_fs_uuid): Merge into ...
31206 (search_fs): ... this. Update all users.
31207
31208 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
31209
31210 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
31211
31212 2009-05-28 Pavel Roskin <proski@gnu.org>
31213
31214 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
31215 Remove the original symlink explicitly.
31216
31217 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
31218 just one slash. That's how grub_fshelp_find_file() does it.
31219
31220 2009-05-26 Pavel Roskin <proski@gnu.org>
31221
31222 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
31223 to `str'.
31224
31225 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
31226 possibly unused.
31227
31228 2009-05-25 Christian Franke <franke@computer.org>
31229
31230 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
31231 register.
31232 (grub_atapi_identify): Add wait after drive select.
31233 (grub_ata_identify): Do more strict status register check before
31234 calling grub_atapi_identify (). Suppress error message if status
31235 register is 0x00 after command failure. Add status register
31236 check after PIO read to avoid bogus identify due to stuck DRQ.
31237 Thanks to Pavel Roskin for testing.
31238 (grub_device_initialize): Remove unsafe status register check.
31239 Thanks to 'phcoder' for problem report and patch.
31240 Prevent sign extension in debug message.
31241
31242 2009-05-23 Colin D Bennett <colin@gibibit.com>
31243
31244 Cleaned up `include/grub/normal.h'. Grouped prototypes by
31245 definition file, and functions defined in `normal/menu.c' have had
31246 their prototypes moved to `include/grub/menu.h' for consistency.
31247
31248 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
31249 from normal.h.
31250 (grub_menu_get_entry): Likewise.
31251 (grub_menu_get_timeout): Likewise.
31252 (grub_menu_set_timeout): Likewise.
31253 (grub_menu_execute_entry): Likewise.
31254 (grub_menu_execute_with_fallback): Likewise.
31255 (grub_menu_entry_run): Likewise.
31256
31257 * include/grub/normal.h: Re-ordered and grouped function
31258 prototypes by file that the function is defined in.
31259 (grub_menu_execute_callback): Removed; moved to menu.h.
31260 (grub_menu_get_entry): Likewise.
31261 (grub_menu_get_timeout): Likewise.
31262 (grub_menu_set_timeout): Likewise.
31263 (grub_menu_execute_entry): Likewise.
31264 (grub_menu_execute_with_fallback): Likewise.
31265 (grub_menu_entry_run): Likewise.
31266 (grub_menu_addentry): Renamed from this ...
31267 (grub_normal_add_menu_entry): ... to this.
31268
31269 * normal/main.c (grub_menu_addentry): Renamed from this ...
31270 (grub_normal_add_menu_entry): ... to this.
31271
31272 * script/sh/execute.c (grub_script_execute_menuentry): Update
31273 reference to renamed grub_menu_addentry function.
31274
31275 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
31276
31277 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
31278
31279 2009-05-22 Pavel Roskin <proski@gnu.org>
31280
31281 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
31282 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
31283 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
31284 compiling for the i386 targets, but not for the utilities.
31285
31286 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
31287 to grub_uint8_t.
31288 (grub_root_drive): Likewise.
31289 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
31290 remove alignment.
31291 (grub_root_drive): Change size to byte.
31292 (grub_start_addr): Remove.
31293 (grub_end_addr): Likewise.
31294 (grub_apm_bios_info): Likewise.
31295
31296 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
31297
31298 * normal/i386: Remove.
31299 * normal/powerpc: Likewise.
31300 * normal/sparc64: Likewise.
31301 * normal/x86_64: Likewise.
31302
31303 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
31304
31305 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
31306 * loader/i386/linux_trampoline.S: Fix indentation
31307 * loader/i386/xnu_helper.S: Likewise
31308
31309 2009-05-18 Colin D Bennett <colin@gibibit.com>
31310
31311 Display error messages when parsing a Lua statement fails.
31312 Previously, executing a syntactically invalid statement like
31313 ")foo" or "bar;" would silently fail.
31314
31315 * script/lua/grub_main.c (handle_lua_error): New function.
31316 (grub_lua_parse_line): Improved reporting of Lua parser and
31317 execution errors.
31318
31319 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31320
31321 Remove -Werror which causes build to fail on some systems
31322
31323 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
31324 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
31325 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
31326
31327 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31328
31329 trampoline for linux on 64-bit platform
31330
31331 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
31332 loader/i386/efi/linux_trampoline.S
31333 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
31334 declaration
31335 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
31336 here
31337 * loader/i386/linux_trampoline.S: moved here
31338 * loader/i386/efi/linux.c (allocate_pages): reserve space for
31339 trampoline
31340 (jumpvector): removed
31341 (grub_linux_trampoline_start): new declaration
31342 (grub_linux_trampoline_end): likewise
31343 (grub_linux_boot): use trampoline when on 64-bit platform
31344 * loader/i386/linux.c: likewise
31345
31346 2009-05-16 Pavel Roskin <proski@gnu.org>
31347
31348 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
31349 const to avoid a warning.
31350 (grub_lua_setenv): Likewise.
31351 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
31352 lmsg to fix a warning.
31353
31354 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
31355
31356 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
31357 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31358 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
31359 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31360 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31361 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31362 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31363 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31364
31365 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
31366
31367 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
31368
31369 2009-05-16 Bean <bean123ch@gmail.com>
31370
31371 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
31372 (lua_mod_SOURCES): New variable.
31373 (lua_mod_CFLAGS): Likewise.
31374 (lua_mod_LDFLAGS): Likewise.
31375
31376 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
31377 (setjmp_mod_SOURCES): New variable.
31378 (setjmp_mod_CFLAGS): Likewise.
31379 (setjmp_LDFLAGS): Likewise.
31380
31381 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
31382 (setjmp_mod_SOURCES): New variable.
31383 (setjmp_mod_CFLAGS): Likewise.
31384 (setjmp_LDFLAGS): Likewise.
31385
31386 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31387 (setjmp_mod_SOURCES): New variable.
31388 (setjmp_mod_CFLAGS): Likewise.
31389 (setjmp_LDFLAGS): Likewise.
31390
31391 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31392 (setjmp_mod_SOURCES): New variable.
31393 (setjmp_mod_CFLAGS): Likewise.
31394 (setjmp_LDFLAGS): Likewise.
31395
31396 * normal/i386/setjmp.S: Moved from here ...
31397 * lib/i386/setjmp.S: ... Moved here
31398 * normal/x86_64/setjmp.S: Moved from here ...
31399 * lib/x86_64/setjmp.S: ... Moved here
31400 * normal/powerpc/setjmp.S: Moved from here ...
31401 * lib/powerpc/setjmp.S: ... Moved here
31402 * normal/sparc64/setjmp.S: Moved from here ...
31403 * lib/sparc64/setjmp.S: ... Moved here
31404
31405 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
31406 returns_twice in mingw.
31407
31408 * script/lua/grub_lib.c: New file.
31409 * script/lua/grub_lib.h: Likewise.
31410 * script/lua/grub_lua.h: Likewise.
31411 * script/lua/grub_main.c: Likewise.
31412 * script/lua/lapi.c: Likewise.
31413 * script/lua/lapi.h: Likewise.
31414 * script/lua/lauxlib.c: Likewise.
31415 * script/lua/lauxlib.h: Likewise.
31416 * script/lua/lbaselib.c: Likewise.
31417 * script/lua/lcode.c: Likewise.
31418 * script/lua/lcode.h: Likewise.
31419 * script/lua/ldblib.c: Likewise.
31420 * script/lua/ldebug.c: Likewise.
31421 * script/lua/ldebug.h: Likewise.
31422 * script/lua/ldo.c: Likewise.
31423 * script/lua/ldo.h: Likewise.
31424 * script/lua/ldump.c: Likewise.
31425 * script/lua/lfunc.c: Likewise.
31426 * script/lua/lfunc.h: Likewise.
31427 * script/lua/lgc.c: Likewise.
31428 * script/lua/lgc.h: Likewise.
31429 * script/lua/linit.c: Likewise.
31430 * script/lua/liolib.c: Likewise.
31431 * script/lua/llex.c: Likewise.
31432 * script/lua/llex.h: Likewise.
31433 * script/lua/llimits.h: Likewise.
31434 * script/lua/lmathlib.c: Likewise.
31435 * script/lua/lmem.c: Likewise.
31436 * script/lua/lmem.h: Likewise.
31437 * script/lua/loadlib.c: Likewise.
31438 * script/lua/lobject.c: Likewise.
31439 * script/lua/lobject.h: Likewise.
31440 * script/lua/lopcodes.c: Likewise.
31441 * script/lua/lopcodes.h: Likewise.
31442 * script/lua/loslib.c: Likewise.
31443 * script/lua/lparser.c: Likewise.
31444 * script/lua/lparser.h: Likewise.
31445 * script/lua/lstate.c: Likewise.
31446 * script/lua/lstate.h: Likewise.
31447 * script/lua/lstring.c: Likewise.
31448 * script/lua/lstring.h: Likewise.
31449 * script/lua/lstrlib.c: Likewise.
31450 * script/lua/ltable.c: Likewise.
31451 * script/lua/ltable.h: Likewise.
31452 * script/lua/ltablib.c: Likewise.
31453 * script/lua/ltm.c: Likewise.
31454 * script/lua/ltm.h: Likewise.
31455 * script/lua/lua.h: Likewise.
31456 * script/lua/luaconf.h: Likewise.
31457 * script/lua/lualib.h: Likewise.
31458 * script/lua/lundump.c: Likewise.
31459 * script/lua/lundump.h: Likewise.
31460 * script/lua/lvm.c: Likewise.
31461 * script/lua/lvm.h: Likewise.
31462 * script/lua/lzio.c: Likewise.
31463 * script/lua/lzio.h: Likewise.
31464
31465 2009-05-16 Bean <bean123ch@gmail.com>
31466
31467 * include/grub/kernel.h (grub_module_header_types): Add type
31468 OBJ_TYPE_CONFIG.
31469
31470 * kern/main.c (grub_load_config): New function.
31471 (grub_main): Call grub_load_config to read boot config.
31472
31473 * grub-mkimage (generate_image): New parameter config_path.
31474 (options): New option --config.
31475 (main): Parse --config option, and pass it to generate_image.
31476
31477 2009-05-14 Christian Franke <franke@computer.org>
31478
31479 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
31480 This fixes build on Cygwin.
31481
31482 2009-05-14 Pavel Roskin <proski@gnu.org>
31483
31484 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
31485 jump. This saves two bytes, so the typical case of 2 swapped
31486 drives would fit 32 bytes.
31487
31488 2009-05-13 Pavel Roskin <proski@gnu.org>
31489
31490 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
31491 grub_uint32_t to avoid a warning.
31492
31493 * loader/i386/linux.c (allocate_pages): When assigning
31494 real_mode_mem, cast through grub_size_t to fix a warning. The
31495 code already makes sure that the value would fit a pointer.
31496 (grub_linux_setup_video): Cast render_target->data to
31497 grub_size_t to fix a warning.
31498
31499 2009-05-13 Javier Martín <lordhabbit@gmail.com>
31500
31501 * commands/i386/pc/drivemap.c: New file - implement drivemap
31502 command.
31503 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
31504 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
31505
31506 2009-05-13 Pavel Roskin <proski@gnu.org>
31507
31508 * util/i386/pc/grub-setup.c (setup): Remove unused variable
31509 embedding_area_exists.
31510
31511 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
31512
31513 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
31514 it easier to understand / work with.
31515 Improve warning messages for cases where there's no embedding area,
31516 or when it is too small (or core.img too large).
31517
31518 2009-05-13 Pavel Roskin <proski@gnu.org>
31519
31520 * loader/i386/pc/multiboot2.c: Add necessary includes for
31521 grub_multiboot2_real_boot().
31522
31523 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
31524 PX record is always little-endian. We only need the lower 2
31525 bytes of the mode.
31526
31527 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
31528 facilitate code reuse.
31529 (grub_cpio_mount): Use "struct head", not a char buffer. This
31530 fixes a warning reported by gcc 4.4.
31531
31532 * kernel/disk.c (grub_disk_read): Use void pointer for the
31533 buffer.
31534 (grub_disk_write): Use const void pointer for the buffer.
31535 Adjust all callers. Remove unnecessary casts.
31536
31537 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
31538
31539 * util/i386/pc/grub-install.in: Update copyright year.
31540
31541 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31542
31543 gptsync
31544
31545 * commands/gptsync.c: new file
31546 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
31547 (gptsync_mod_SOURCES): new variable
31548 (gptsync_mod_CFLAGS): likewise
31549 (gptsync_mod_LDFLAGS): likewise
31550 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
31551 new definition
31552 (GRUB_PC_PARTITION_TYPE_HFS): likewise
31553 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
31554 * conf/i386-ieee1275.rmk: likewise
31555 * conf/i386-pc.rmk: likewise
31556 * conf/powerpc-ieee1275.rmk: likewise
31557
31558 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31559
31560 Fixed grub-emu
31561
31562 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
31563 (grub_dl_ref): likewise
31564
31565 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
31566
31567 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
31568 split in two functions (one for msdos and one for gpt).
31569
31570 2009-05-08 Pavel Roskin <proski@gnu.org>
31571
31572 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
31573 not modified.
31574
31575 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
31576 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
31577 Initialize them with -1. Add sanity check for bad1. Eliminate
31578 nerr variable.
31579
31580 2009-05-08 David S. Miller <davem@davemloft.net>
31581
31582 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
31583
31584 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
31585
31586 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
31587 existence.
31588
31589 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
31590
31591 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31592 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
31593
31594 2009-05-05 David S. Miller <davem@davemloft.net>
31595
31596 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
31597
31598 2009-05-05 Pavel Roskin <proski@gnu.org>
31599
31600 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
31601 of grub_dl_ref() and grub_dl_unref().
31602 * commands/parttool.c: Remove preprocessor conditionals around
31603 grub_dl_ref() and grub_dl_unref().
31604 * fs/affs.c: Likewise.
31605 * fs/afs.c: Likewise.
31606 * fs/cpio.c: Likewise.
31607 * fs/ext2.c: Likewise.
31608 * fs/fat.c: Likewise.
31609 * fs/hfs.c: Likewise.
31610 * fs/hfsplus.c: Likewise.
31611 * fs/iso9660.c: Likewise.
31612 * fs/jfs.c: Likewise.
31613 * fs/minix.c: Likewise.
31614 * fs/ntfs.c: Likewise.
31615 * fs/reiserfs.c: Likewise.
31616 * fs/sfs.c: Likewise.
31617 * fs/udf.c: Likewise.
31618 * fs/ufs.c: Likewise.
31619 * fs/xfs.c: Likewise.
31620 * include/grub/dl.h: Likewise.
31621 * loader/xnu.c: Likewise.
31622
31623 2009-05-04 Pavel Roskin <proski@gnu.org>
31624
31625 * commands/acpi.c: Remove unused variable my_mod.
31626 * partmap/amiga.c: Likewise.
31627 * partmap/apple.c: Likewise.
31628 * partmap/gpt.c: Likewise.
31629 * partmap/pc.c: Likewise.
31630 * partmap/sun.c: Likewise.
31631 * term/gfxterm.c: Likewise.
31632 * term/i386/pc/vesafb.c: Likewise.
31633 * term/i386/pc/vga.c: Likewise.
31634
31635 2009-05-04 David S. Miller <davem@davemloft.net>
31636
31637 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
31638 pointer args to grub_ieee1275_get_property().
31639
31640 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
31641
31642 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
31643 devices, and do not traverse down under controller nodes.
31644
31645 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
31646 (grub_ofdisk_open): Use it to un-escape "," characters.
31647 * kern/disk.c (find_part_sep): New.
31648 (grub_disk_open): Use it to find the first non-escaped ','
31649 character in the disk name.
31650 * util/ieee1275/devicemap.c (escape_of_path): New.
31651 (grub_util_emit_devicemap_entry): Use it.
31652 * util/sparc64/ieee1275/grub-install.in: Update script to
31653 strip partition specifiers properly by not triggering on
31654 '\' escaped ',' characters.
31655
31656 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31657
31658 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
31659 to 0x300.
31660 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
31661 resolutions.
31662 (linux_vesafb_modes): Add a lot of additional modes to the list (based
31663 on documentation from Wikipedia).
31664
31665 2009-05-04 Pavel Roskin <proski@gnu.org>
31666
31667 * disk/ata.c: Spelling fixes.
31668 * disk/raid.c: Likewise.
31669 * disk/usbms.c: Likewise.
31670 * disk/dmraid_nvidia.c: Likewise.
31671 * kern/ieee1275/openfw.c: Likewise.
31672 * kern/ieee1275/init.c: Likewise.
31673 * kern/ieee1275/cmain.c: Likewise.
31674 * boot/i386/pc/cdboot.S: Likewise.
31675 * video/readers/png.c: Likewise.
31676 * video/i386/pc/vbe.c: Likewise.
31677 * fs/udf.c: Likewise.
31678 * fs/hfs.c: Likewise.
31679 * fs/reiserfs.c: Likewise.
31680 * efiemu/runtime/efiemu.c: Likewise.
31681 * efiemu/main.c: Likewise.
31682 * efiemu/mm.c: Likewise.
31683 * include/grub/elf.h: Likewise.
31684 * include/grub/xnu.h: Likewise.
31685 * include/grub/usbdesc.h: Likewise.
31686 * include/grub/usb.h: Likewise.
31687 * include/grub/script_sh.h: Likewise.
31688 * include/grub/lib/LzmaEnc.h: Likewise.
31689 * include/grub/efiemu/efiemu.h: Likewise.
31690 * include/grub/command.h: Likewise.
31691 * normal/menu.c: Likewise.
31692 * normal/main.c: Likewise.
31693 * normal/datetime.c: Likewise.
31694 * bus/usb/uhci.c: Likewise.
31695 * mmap/i386/uppermem.c: Likewise.
31696 * mmap/mmap.c: Likewise.
31697 * commands/acpi.c: Likewise.
31698 * commands/test.c: Likewise.
31699 * partmap/apple.c: Likewise.
31700 * font/font.c: Likewise.
31701 * loader/sparc64/ieee1275/linux.c: Likewise.
31702 * loader/macho.c: Likewise.
31703 * loader/i386/bsd_trampoline.S: Likewise.
31704 * loader/i386/bsd.c: Likewise.
31705 * loader/xnu.c: Likewise.
31706 * term/i386/pc/vesafb.c: Likewise.
31707 * term/usb_keyboard.c: Likewise.
31708 * util/resolve.c: Likewise.
31709 * util/getroot.c: Likewise.
31710
31711 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31712
31713 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
31714
31715 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31716
31717 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
31718 build error.
31719
31720 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31721
31722 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
31723 parameter only available on BIOS.
31724
31725 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31726
31727 Removed wrong semicolon in declaration
31728
31729 * grub/misc.h (grub_dprintf): remove semicolon
31730
31731 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31732
31733 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
31734 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
31735 is done by grub_cmd_linux() now).
31736 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
31737 restore video to text mode.
31738 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
31739 indicates lack of "vga=" parameter. "vga=0" is mapped to
31740 `GRUB_LINUX_VID_MODE_NORMAL'.
31741
31742 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31743
31744 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
31745 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
31746 and `normal/script.c'. Add `kern/rescue_reader.c',
31747 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
31748 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
31749 `grub_script.tab.c'.
31750
31751 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31752 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31753 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31754 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31755 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31756
31757 * Makefile.in: Remove duplicated 2008 in Copyright line.
31758
31759 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31760
31761 * util/misc.c (grub_util_warn): New function. Emits a warning
31762 unconditionally.
31763 * include/grub/util/misc.h (grub_util_warn): New declaration.
31764
31765 * util/i386/pc/grub-install.in: Understand --force and pass it down
31766 to grub-setup.
31767
31768 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
31769 down to setup().
31770 (setup): Improve error messages and add warnings when requested to
31771 install in odd layouts. Refuse to install using blocklists unless
31772 --force was set.
31773
31774 2009-05-04 martin f. krafft <madduck@madduck.net>
31775
31776 * disk/raid.c (grub_raid_scan_device): Improve debug message.
31777
31778 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31779
31780 Updated copyright year
31781
31782 * fs/hfsplus.c: updated copyright year
31783
31784 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31785
31786 HFS+ UUID
31787
31788 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
31789 in the space previously used by unused3
31790 (grub_hfsplus_uuid): new function
31791 (grub_hfsplus_fs): added uuid field
31792
31793 2009-05-03 Pavel Roskin <proski@gnu.org>
31794
31795 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
31796 suppress warnings. It's no longer needed.
31797 * disk/host.c: Likewise.
31798 * disk/ata_pthru.c: Likewise.
31799 * disk/loopback.c: Likewise.
31800 * hook/datehook.c: Likewise.
31801 * parttool/pcpart.c: Likewise.
31802 * fs/i386/pc/pxe.c: Likewise.
31803 * fs/ntfscomp.c: Likewise.
31804 * efiemu/main.c: Likewise.
31805 * mmap/mmap.c: Likewise.
31806 * commands/crc.c: Likewise.
31807 * commands/hexdump.c: Likewise.
31808 * commands/hdparm.c: Likewise.
31809 * commands/acpi.c: Likewise.
31810 * commands/echo.c: Likewise.
31811 * commands/minicmd.c: Likewise.
31812 * commands/blocklist.c: Likewise.
31813 * commands/memrw.c: Likewise.
31814 * commands/loadenv.c: Likewise.
31815 * commands/usbtest.c: Likewise.
31816 * commands/lsmmap.c: Likewise.
31817 * commands/boot.c: Likewise.
31818 * commands/parttool.c: Likewise.
31819 * commands/configfile.c: Likewise.
31820 * commands/search.c: Likewise.
31821 * commands/ieee1275/suspend.c: Likewise.
31822 * commands/cat.c: Likewise.
31823 * commands/i386/pc/pxecmd.c: Likewise.
31824 * commands/i386/pc/play.c: Likewise.
31825 * commands/i386/pc/halt.c: Likewise.
31826 * commands/i386/pc/vbeinfo.c: Likewise.
31827 * commands/i386/pc/vbetest.c: Likewise.
31828 * commands/lspci.c: Likewise.
31829 * commands/date.c: Likewise.
31830 * commands/handler.c: Likewise.
31831 * commands/ls.c: Likewise.
31832 * commands/test.c: Likewise.
31833 * commands/cmp.c: Likewise.
31834 * commands/efi/loadbios.c: Likewise.
31835 * commands/efi/fixvideo.c: Likewise.
31836 * commands/halt.c: Likewise.
31837 * commands/help.c: Likewise.
31838 * commands/reboot.c: Likewise.
31839 * hello/hello.c: Likewise.
31840 * script/sh/main.c: Likewise.
31841 * loader/xnu.c: Likewise.
31842 * term/terminfo.c: Likewise.
31843 * term/i386/pc/serial.c: Likewise.
31844 * term/usb_keyboard.c: Likewise.
31845
31846 2009-05-03 David S. Miller <davem@davemloft.net>
31847
31848 * normal/menu.c: Include grub/parser.h
31849
31850 2009-05-03 Pavel Roskin <proski@gnu.org>
31851
31852 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
31853 not char*.
31854 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
31855 Suggested by Javier Martín <lordhabbit@gmail.com>
31856
31857 * util/i386/pc/grub-mkrescue.in: Allow for the case when
31858 efiemu??.o doesn't exist.
31859 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
31860 copying.
31861
31862 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
31863
31864 FreeBSD 64-bit support
31865
31866 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
31867 and loader/i386/bsd_trampoline.S
31868 (bsd_mod_ASFLAGS): new variable
31869 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
31870 (FREEBSD_MODTYPE_KERNEL64): likewise
31871 (grub_bsd64_trampoline_start): likewise
31872 (grub_bsd64_trampoline_end): likewise
31873 (grub_bsd64_trampoline_selfjump): likewise
31874 (grub_bsd64_trampoline_gdt): likewise
31875 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
31876 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
31877 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
31878 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
31879 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
31880 of "attrib" member
31881 * loader/i386/bsd_pagetable.c: new file
31882 * loader/i386/bsd_trampoline.S: likewise
31883 * loader/i386/bsd.c (ALIGN_QWORD): new macro
31884 (ALIGN_VAR): likewise
31885 (entry_hi): new variable
31886 (kern_end_mdofs): likewise
31887 (is_64bit): likewise
31888 (grub_freebsd_add_meta): use ALIGN_VAR
31889 (grub_e820_mmap): new declaration
31890 (grub_freebsd_add_mmap): new function
31891 (grub_freebsd_add_meta_module): support 64 bit kernels
31892 (grub_freebsd_list_modules): use ALIGN_VAR
31893 (gdt_descriptor): new declaration
31894 (grub_freebsd_boot): support 64 bit kernels
31895 (grub_bsd_elf64_hook): new function
31896 (grub_bsd_load_elf): support elf64
31897
31898 2009-05-03 Bean <bean123ch@gmail.com>
31899
31900 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
31901 after we get the result of if statement.
31902
31903 2009-05-03 Bean <bean123ch@gmail.com>
31904
31905 * Makefile.in (enable_efiemu): New variable.
31906
31907 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
31908 set.
31909 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
31910 path.
31911 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
31912 path, add -mno-red-zone option.
31913 (efiemu64_s.o): Likewise.
31914 (efiemu64.o): Use macro $^ for source file.
31915
31916 * configure.ac (--enable-efiemu): New option.
31917
31918 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
31919
31920 xnu support
31921
31922 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
31923 (pkglib_MODULES): add xnu.mod
31924 (xnu_mod_SOURCES): new variable
31925 (xnu_mod_CFLAGS): likewise
31926 (xnu_mod_LDFLAGS): likewise
31927 (xnu_mod_ASFLAGS): likewise
31928 * conf/i386-pc.rmk: likewise
31929 * conf/x86_64-efi.rmk: likewise
31930 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
31931 new declaration
31932 * include/grub/i386/macho.h: new file
31933 * include/grub/i386/xnu.h: likewise
31934 * include/grub/macho.h: likewise
31935 * include/grub/machoload.h: likewise
31936 * include/grub/x86_64/macho.h: likewise
31937 * include/grub/x86_64/xnu.h: likewise
31938 * include/grub/xnu.h: likewise
31939 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
31940 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
31941 * loader/i386/efi/xnu.c: new file
31942 * loader/i386/pc/xnu.c: likewise
31943 * loader/i386/xnu.c: likewise
31944 * loader/i386/xnu_helper.S: likewise
31945 * loader/macho.c: likewise
31946 * loader/xnu.c: likewise
31947 * loader/xnu_resume.c: likewise
31948 * util/grub-dumpdevtree: likewise
31949 * include/grub/i386/pit.h: include grub/err.h
31950 (grub_pit_wait): export
31951 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
31952
31953 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31954
31955 Efiemu
31956
31957 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
31958 _linux_efi, linux_efi.
31959 new files in grub-emu
31960 new targets efiemu32.o and efiemu64.o
31961 * loader/linux_normal_efiemu.c: likewise
31962 * loader/i386/efi/linux.c: added preliminary efiemu support
31963 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
31964 files to copy
31965 * include/grub/autoefi.h: new file
31966 * include/grub/i386/efiemu.h: likewise
31967 * include/grub/i386/pc/efiemu.h: likewise
31968 * include/grub/efi/api.h: add LL suffix when necessary
31969 new definitions relating to tables
31970 * include/grub/efiemu/efiemu.h: new file
31971 * include/grub/efiemu/runtime.h: likewise
31972 * efiemu/prepare.c: likewise
31973 * efiemu/loadcore_common.c: likewise
31974 * efiemu/loadcore64.c: likewise
31975 * efiemu/runtime/efiemu.sh: likewise
31976 * efiemu/runtime/efiemu.S: likewise
31977 * efiemu/runtime/efiemu.c: likewise
31978 * efiemu/runtime/config.h: likewise
31979 * efiemu/prepare32.c: likewise
31980 * efiemu/main.c: likewise
31981 * efiemu/modules/pnvram.c: likewise
31982 * efiemu/modules/i386: likewise
31983 * efiemu/modules/i386/pc: likewise
31984 * efiemu/modules/acpi.c: likewise
31985 * efiemu/i386/pc/cfgtables.c: likewise
31986 * efiemu/i386/loadcore64.c: likewise
31987 * efiemu/i386/loadcore32.c: likewise
31988 * efiemu/prepare64.c: likewise
31989 * efiemu/loadcore.c: likewise
31990 * efiemu/symbols.c: likewise
31991 * efiemu/mm.c: likewise
31992 * efiemu/loadcore32.c: likewise
31993
31994 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31995
31996 ACPI spoofing
31997
31998 * commands/acpi.c: new file
31999 * commands/i386/pc/acpi.c: likewise
32000 * commands/efi/acpi.c: likewise
32001 * include/grub/acpi.h: likewise
32002 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
32003 (acpi_mod_SOURCES): new variable
32004 (acpi_mod_CFLAGS): likewise
32005 (acpi_mod_LDFLAGS): likewise
32006 * conf/i386-efi.rmk: likewise
32007 * conf/x86_64-efi.rmk: likewise
32008
32009 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32010
32011 Missing part from mmap patch
32012
32013 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
32014 (grub_mmap_unregister)
32015 (grub_mmap_free_and_unregister): use grub_mmap_register
32016
32017 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32018
32019 Mmap services
32020
32021 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
32022 * loader/i386/linux.c (find_mmap_size): likewise
32023 (allocate_pages): likewise
32024 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
32025 (grub_fill_multiboot_mmap): likewise
32026 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
32027 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
32028 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
32029 (OPENBSD_MMAP_RESERVED): likewise
32030 * include/grub/i386/pc/memory.h: include grub/memory.h
32031 (grub_lower_mem): removed
32032 (grub_upper_mem): likewise
32033 (GRUB_MACHINE_MEMORY_ACPI): new definition
32034 (GRUB_MACHINE_MEMORY_NVS): likewise
32035 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
32036 (GRUB_MACHINE_MEMORY_HOLE): likewise
32037 (grub_machine_mmap_register): likewise
32038 (grub_machine_mmap_unregister): likewise
32039 (grub_machine_get_upper): likewise
32040 (grub_machine_get_lower): likewise
32041 (grub_machine_get_post64): likewise
32042 * include/grub/i386/efi/memory.h: new file
32043 * include/grub/x86_64/efi/memory.h: likewise
32044 * include/grub/efi/memory.h: likewise
32045 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
32046 (mmap_mod_SOURCES): new variable
32047 (mmap_mod_LDFLAGS): likewise
32048 (mmap_mod_ASFLAGS): likewise
32049 * conf/i386-coreboot.rmk: likewise
32050 * conf/i386-ieee1275.rmk: likewise
32051 * conf/i386-efi.rmk: likewise
32052 * conf/x86_64-efi.rmk: likewise
32053 * include/grub/types.h (UINT_TO_PTR): new macro
32054 (PTR_TO_UINT32): likewise
32055 (PTR_TO_UINT64): likewise
32056 * include/grub/memory.h: new file
32057 * mmap/i386/pc/mmap.c: likewise
32058 * mmap/i386/pc/mmap_helper.S: likewise
32059 * mmap/i386/uppermem.c: likewise
32060 * mmap/mmap.c: likewise
32061 * mmap/efi/mmap.c: likewise
32062 * kern/i386/coreboot/init.c (grub_machine_init): don't use
32063 grub_upper_mem
32064 * kern/i386/pc/init.c (grub_lower_mem): removed variable
32065 (grub_upper_mem): likewise
32066 (grub_machine_init): don't use grub_upper_mem,
32067 make grub_lower_mem local
32068 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
32069 grub_mmap_iterate and grub_mmap_get_upper
32070 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
32071
32072 2009-05-02 Bean <bean123ch@gmail.com>
32073
32074 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
32075 script/sh/parser.y.
32076 (pkglib_MODULES): Add normal.mod and sh.mod.
32077 (normal_SOURCES): New variable.
32078 (normal_mod_CFLAGS): Likewise.
32079 (normal_mod_LDFLAGS): Likewise.
32080 (sh_mod_SOURCES): Likewise.
32081 (sh_mod_CFLAGS): Likewise.
32082 (sh_mod_LDFLAGS): Likewise.
32083
32084 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
32085 script/sh/lexer.c_DEPENDENCIES.
32086 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
32087 kern/rescue_reader.c and kern/rescue_parser.c.
32088 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
32089 (grub_emu_SOURCES): Change source files.
32090 (pkglib_MODULES): Remove normal.mod.
32091 (normal_SOURCES): Removed.
32092 (normal_mod_CFLAGS): Likewise.
32093 (normal_mod_LDFLAGS): Likewise.
32094 * conf/i386-coreboot.rmk: Likewise.
32095 * conf/i386-efi.rmk: Likewise.
32096 * conf/i386-ieee1276.rmk: Likewise.
32097 * conf/powerpc-ieee1275.rmk: Likewise.
32098 * conf/sparc64-ieee1275.rmk: Likewise.
32099 * conf/x86_64-efi.rmk: Likewise.
32100
32101 * include/grub/command.h (grub_command_execute): New inline function.
32102
32103 * include/grub/menu.h (grub_menu_entry): Removed commands field.
32104
32105 * include/grub/normal.h: Remove <grub/setjmp.h>.
32106 (grub_fs_module_list): Moved to normal/autofs.c.
32107 (grub_exit_env): Removed.
32108 (grub_command_execute): Likewise.
32109 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
32110 parameter script.
32111 (read_command_list): New function declaration.
32112 (read_fs_list): Likewise.
32113
32114 * include/parser.h: Include <grub/reader.h>.
32115 (grub_parser_split_cmdline): Change type of getline parameter.
32116 (grub_parser): New structure.
32117 (grub_parser_class): New variable.
32118 (grub_parser_execute): New function declaration.
32119 (grub_register_rescue_parser): Likewise.
32120 (grub_parser_register): New inline function.
32121 (grub_parser_unregister): Likewise.
32122 (grub_parser_get_current): Likewise.
32123 (grub_parser_set_current): Likewise.
32124
32125 * include/grub/reader.h: New file.
32126 * kern/reader.c: Likewise.
32127 * kern/rescue_parser.c: Likewise.
32128 * kern/rescue_reader.c: Likewise.
32129 * normal/autofs.c: Likewise.
32130 * normal/dyncmd.c: Likewise.
32131
32132 * include/grub/rescue.h: Removed.
32133 * normal/command.h: Likewise.
32134
32135 * include/grub/script.h: Moved to ...
32136 * include/grub/script_sh.h: ... Moved here.
32137 * normal/execute.c: Moved to ...
32138 * script/sh/execute.c: ... Moved here.
32139 * normal/function.c: Moved to ...
32140 * script/sh/function.c: ... Moved here.
32141 * normal/lexer.c: Moved to ...
32142 * script/sh/lexer.c: ... Moved here.
32143 * normal/parser.y: Moved to ...
32144 * script/sh/parser.y: ... Moved here.
32145 * normal/script.c: Moved to ...
32146 * script/sh/script.c: ... Moved here.
32147
32148 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
32149 <grub/reader.h>.
32150 (grub_exit_env): Removed.
32151 (fs_module_list): Moved to normal/autofs.c.
32152 (grub_file_getline): Don't handle comment here.
32153 (free_menu): Skip removed field entry->commands.
32154 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
32155 script parameter.
32156 (read_config_file): Removed nested parameter, change getline function.
32157 (grub_enter_normal_mode): Removed.
32158 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
32159 (read_command_list): Likewise.
32160 (autoload_fs_module): Moved to normal/autofs.c.
32161 (read_fs_list): Likewise.
32162 (reader_nested): New variable.
32163 (grub_normal_execute): Run parser.sh to switch to sh parser.
32164 (grub_cmd_rescue): Removed.
32165 (cmd_normal): Removed.
32166 (grub_cmd_normal): Unregister itself at the beginning. Don't register
32167 rescue command.
32168 (grub_cmdline_run): New function.
32169 (grub_normal_reader_init): Likewise.
32170 (grub_normal_read_line): Likewise.
32171 (grub_env_write_pager): Likewise.
32172 (cmdline): New variable.
32173 (grub_normal_reader): Likewise.
32174 (GRUB_MOD_INIT): Register normal reader and set as current, register
32175 pager hook, register normal command with grub_register_command_prio,
32176 so that it won't show up in command.lst.
32177 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
32178 grub_fs_autoload_hook.
32179
32180 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
32181 (grub_menu_execute_entry): Replace grub_script_execute with
32182 grub_parser_execute, change parameter to grub_command_execute.
32183
32184 * normal/menu_text.c: Remove <grub/script.h>.
32185
32186 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
32187 and <grub/parser.h>.
32188 (run): Change editor_getline to use new parser interface. Change
32189 parameter to grub_command_execute.
32190
32191 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
32192 <grub/reader.h> and <grub/parser.h>.
32193 (grub_load_normal_mode): Execute normal command.
32194 (grub_main): Call grub_register_core_commands,
32195 grub_register_rescue_parser and grub_register_rescue_reader, use
32196 grub_reader_loop to enter input loop.
32197
32198 * kern/parser.c (grub_parser_split_cmdline): Change type of
32199 getline parameter.
32200 (grub_parser_class): New variable.
32201 (grub_parser_execute): New function.
32202
32203 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
32204 * loader/multiboot2.c: Likewise.
32205 * loader/sparc64/ieee1275/linux.c: Likewise.
32206
32207 * util/grub-emu.c (read_command_list): New dummy function.
32208
32209 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32210
32211 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
32212 count to 16 for CCISS and IDA.
32213
32214 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32215
32216 * normal/menu_text.c (grub_wait_after_message): Print a newline
32217 after waiting for user input.
32218
32219 * loader/i386/linux.c: Include `<grub/normal.h>'.
32220 (grub_cmd_linux): Improve the error message about `ask' mode, by
32221 waiting for user input so it's not missed (we can do this, since
32222 user requested interaction).
32223
32224 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32225
32226 Added missing lst to grub-mkrescue
32227
32228 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
32229 and ${input_dir}/parttool.lst
32230
32231 2009-04-30 David S. Miller <davem@davemloft.net>
32232
32233 * util/hostdisk.c (device_is_wholedisk): New function.
32234 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
32235 zero only if device_is_wholedisk() returns true.
32236
32237 * util/hostdisk.c (convert_system_partition_to_system_disk):
32238 Handle virtual disk devices named /dev/vdiskX as found on sparc
32239 and powerpc.
32240
32241 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
32242 lettered partition specifier is found, convert to numbered.
32243
32244 2009-04-29 David S. Miller <davem@davemloft.net>
32245
32246 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
32247 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32248
32249 * normal/command.c: Add missing newline at end of file.
32250
32251 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
32252 warnings.
32253 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
32254 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
32255 grub_ofdisk_read): Likewise, and deal similarly with the fact that
32256 ihandles have a 32-bit type but need to be stored in a "void *".
32257
32258 2009-04-28 Pavel Roskin <proski@gnu.org>
32259
32260 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
32261 not disk. Adjust all dependencies.
32262 (grub_fs_uuid_close): Use grub_device_close(), not
32263 grub_disk_close().
32264
32265 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
32266 parent's partition, don't copy it by reference, as it gets freed
32267 on close.
32268
32269 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32270
32271 Preboot hooks support
32272
32273 * commands/boot.c (struct grub_preboot_t): new declaration
32274 (preboots_head): new variable
32275 (preboots_tail): likewise
32276 (grub_loader_register_preboot_hook): new function
32277 (grub_loader_unregister_preboot_hook): likewise
32278 (grub_loader_set): launch preboot hooks
32279 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
32280 (grub_loader_register_preboot_hook): new declaration
32281 (grub_loader_unregister_preboot_hook): likewise
32282
32283 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32284
32285 Warning fix
32286
32287 * disk/scsi.c (grub_scsi_open): added missing cast when
32288 calling grub_dprintf
32289
32290 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
32291
32292 Bug and warning fixes
32293
32294 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
32295 declaration
32296 * commands/test.c (test_parse): fixed bug with file tests and corrected
32297 declaration of find_file
32298
32299 2009-04-26 Pavel Roskin <proski@gnu.org>
32300
32301 * Makefile.in: Don't install empty manual pages if help2man is
32302 missing. Use help2man option for output, not shell redirection.
32303
32304 2009-04-26 David S. Miller <davem@davemloft.net>
32305
32306 * util/grub-mkdevicemap.c (make_device_map): Add missing
32307 NESTED_FUNC_ATTR to process_device().
32308
32309 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32310
32311 Test command
32312
32313 * commands/test.c: rewritten to use bash-like test
32314
32315 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32316
32317 Parttool autoloading and improvements
32318
32319 * Makefile.in (pkglib_DATA): add parttool.lst
32320 (parttool.lst): new target
32321 * genmk.rb: generate parttool-*
32322 (CLEANFILES): add #{parttool}
32323 (PARTTOOLFILES): new variable
32324 * genparttoollist.sh: new file
32325 * parttool/pcpart.c (grub_pcpart_boot): more feedback
32326 (grub_pcpart_type): likewise
32327 * commands/parttool.c (helpmsg): new variable
32328 (grub_cmd_parttool): output help if not enough arguments are supplied
32329 autoload modules
32330 (GRUB_MOD_INIT(parttool)): use helpmsg
32331
32332 2009-04-24 David S. Miller <davem@davemloft.net>
32333
32334 Avoiding opening same device multiple times in device iterator.
32335
32336 * kern/device.c: (grub_device_iterate): Define struct part_ent,
32337 and use it to build a list of partitions in iterate_disk() and
32338 iterate_partition().
32339
32340 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
32341 on disk->data.
32342
32343 * disk/ieee1275/nand.c (grub_nand_iterate): Return
32344 grub_devalias_iterate() result instead of unconditional 0.
32345 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
32346 Also, capture hook return value, either directly or via
32347 grub_children_iterate(), and propagate to caller.
32348 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
32349 grub_children_iterate): Return value is now 'int' instead of
32350 'grub_err_t'.
32351 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
32352 like a proper iterator, stopping when hooks return non-zero.
32353 (grub_devalias_iterate): Likewise.
32354
32355 2009-04-23 David S. Miller <davem@davemloft.net>
32356
32357 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
32358
32359 2009-04-22 David S. Miller <davem@davemloft.net>
32360
32361 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
32362 is larger than address_cells, use that value for address_cells too.
32363
32364 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
32365 IEEE1275_MAX_PATH_LEN): Define.
32366 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
32367 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
32368 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
32369 'devtype'. Explicitly NULL terminate devalias expansion.
32370
32371 * util/sparc64/ieee1275/misc.c: New file.
32372 * util/sparc64/ieee1275/grub-setup.c: New file.
32373 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
32374 * util/sparc64/ieee1275/grub-mkimage.c: New file.
32375 * util/sparc64/ieee1275/grub-install.in: New file.
32376 * util/ieee1275/ofpath.c: New file.
32377 * util/ieee1275/devicemap.c: New file.
32378 * util/devicemap.c: New file.
32379 * util/deviceiter.c: New file.
32380 * kern/sparc64/ieee1275/init.c: New file.
32381 * include/grub/util/ofpath.h: New file.
32382 * include/grub/util/deviceiter.h: New file.
32383 * util/grub-mkdevicemap.c: Include deviceiter.h.
32384 Implement using grub_util_emit_devicemap_entry and
32385 grub_util_iterate_devices.
32386 * conf/i386-corebook.rmk: Build util/deviceiter.c and
32387 util/devicemap.c into grub-mkdevicemap
32388 * conf/i386-efi.rmk: Likewise.
32389 * conf/i386-ieee1275.rmk: Likewise.
32390 * conf/i386-pc.rmk: Likewise.
32391 * conf/powerpc-ieee1275.rmk: Likewise.
32392 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
32393 images and installation utilities. Build kernel as image
32394 instead of as elf binary. Use common rules as much as possible.
32395
32396 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
32397
32398 Correct GPT definition
32399
32400 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
32401 of "attrib" member
32402
32403 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
32404
32405 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
32406
32407 2009-04-19 David S. Miller <davem@davemloft.net>
32408
32409 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
32410 (grub_rescue_cmd_linux): Rename to...
32411 (grub_cmd_linux): and fix prototype.
32412 (grub_rescue_cmd_initrd): Rename to...
32413 (grub_cmd_initrd): and fix prototype.
32414 (cmd_linux, cmd_initrd): New.
32415 (GRUB_MOD_INIT(linux)): Use grub_register_command().
32416 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
32417
32418 2009-04-17 Pavel Roskin <proski@gnu.org>
32419
32420 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
32421 format.
32422 (grub_ohci_transfer): Likewise.
32423
32424 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
32425
32426 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
32427 return without a value. Fix inconsistent indentation.
32428
32429 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
32430 match struct grub_fs.
32431
32432 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
32433 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
32434 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32435 * commands/lspci.c (grub_lspci_iter): Likewise.
32436
32437 2009-04-16 Bean <bean123ch@gmail.com>
32438
32439 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
32440 value.
32441
32442 2009-04-15 Pavel Roskin <proski@gnu.org>
32443
32444 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
32445 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
32446 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
32447 definitions.
32448
32449 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32450
32451 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
32452 that no multiple data or metadata areas are supported and `Unknown
32453 metadata header'.
32454
32455 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32456
32457 Move loader out of the kernel
32458
32459 * kern/loader.c: moved to ...
32460 * commands/boot.c: ... moved here
32461 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
32462 * commands/boot.c (grub_cmd_boot): moved here. All users updated
32463 * include/grub/kernel.h (grub_machine_fini): export
32464 * include/grub/loader.h (grub_loader_is_loaded): update declaration
32465 (grub_loader_set): likewise
32466 (grub_loader_unset): likewise
32467 (grub_loader_boot): likewise
32468 * conf/common.rmk: new module boot.mod
32469 (pkglib_MODULES): add boot.mod
32470 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
32471 (grub_emu_SOURCES): likewise
32472 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
32473 (grub_emu_SOURCES): likewise
32474 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
32475 (grub_emu_SOURCES): likewise
32476 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
32477 (grub_emu_SOURCES): likewise
32478 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
32479 (grub_emu_SOURCES): likewise
32480 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
32481 (grub_emu_SOURCES): likewise
32482 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
32483 (grub_emu_SOURCES): likewise
32484
32485 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32486
32487 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
32488
32489 * kern/misc.c (grub_itoa): Removed function
32490 (grub_ltoa): likewise
32491 (grub_vsprintf): use grub_lltoa
32492
32493 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32494
32495 Restore grub-emu
32496
32497 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
32498 * conf/i386-coreboot.rmk: likewise
32499 * conf/i386-ieee1275.rmk: likewise
32500 * conf/powerpc-ieee1275.rmk: likewise
32501
32502 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32503
32504 * INSTALL: Add that `./autogen.sh' needs to be run before
32505 `./configure.'.
32506
32507 2009-04-14 Bean <bean123ch@gmail.com>
32508
32509 * Makefile.in (pkglib_DATA): Add handler.lst.
32510 (handler.lst): New rule.
32511
32512 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
32513 * conf/i386-coreboot.rmk: Likewise.
32514 * conf/i386-ieee1275.rmk: Likewise.
32515 * conf/i386-efi.rmk: Likewise.
32516 * conf/x86_64-efi.rmk: Likewise.
32517 * conf/powerpc-ieee1275.rmk: Likewise.
32518 * conf/sparc64-ieee1275.rmk: Likewise.
32519
32520 * genhandlerlist.sh: New file.
32521
32522 * genmk.rb: Add rules to generate handler.lst.
32523
32524 * include/grub/normal.h (grub_file_getline): New function definition.
32525 (read_handler_list): Likewise.
32526 (free_handler_list): Likewise.
32527
32528 * include/grub/term.h (grub_term_register_input): Add name parameter
32529 for auto generation of handler.lst.
32530 (grub_term_register_output): Likewise.
32531
32532 * normal/handler.c: New file.
32533
32534 * normal/main.c (get_line): Renamed to grub_file_getline.
32535 (read_config_file): Use the newly renamed grub_file_getline.
32536 (read_command_list): Likewise.
32537 (read_fs_list): Likewise.
32538 (grub_normal_execute): Call read_handler_list to parse handler.lst.
32539 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
32540
32541 * term/efi/console.c (grub_console_init): Add name parameter for auto
32542 generation of handler.lst.
32543 * term/gfxterm.c: Likewise.
32544 * term/i386/pc/at_keyboard.c: Likewise.
32545 * term/i386/pc/console.c: Likewise.
32546 * term/i386/pc/serial.c: Likewise.
32547 * term/i386/pc/vesafb.c: Likewise.
32548 * term/i386/pc/vga.c: Likewise.
32549 * term/i386/pc/vga_text.c: Likewise.
32550 * term/ieee1275/ofconsole.c: Likewise.
32551 * term/usb_keyboard.c: Likewise.
32552
32553 2009-04-14 Bean <bean123ch@gmail.com>
32554
32555 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
32556 properly with null character.
32557
32558 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32559
32560 * configure: Remove.
32561 * config.h.in: Likewise.
32562 * stamp-h.in: Likewise.
32563 * DISTLIST: Likewise.
32564 * conf/common.mk: Likewise.
32565 * conf/i386-coreboot.mk: Likewise.
32566 * conf/i386-efi.mk: Likewise.
32567 * conf/i386-ieee1275.mk: Likewise.
32568 * conf/i386.mk: Likewise.
32569 * conf/i386-pc.mk: Likewise.
32570 * conf/powerpc-ieee1275.mk: Likewise.
32571 * conf/sparc64-ieee1275.mk: Likewise.
32572 * conf/x86_64-efi.mk: Likewise.
32573
32574 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
32575 develop on GRUB.
32576
32577 2009-04-14 John Stanley <jpsinthemix@verizon.net>
32578 David S. Miller <davem@davemloft.net>
32579
32580 * util/hostdisk.c (make_device_name): Fix buffer length
32581 calculations.
32582
32583 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32584
32585 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
32586 <sys/param.h> and <sys/sysctl.h>.
32587 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
32588 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
32589 opening the device and reset them afterwards.
32590
32591 2009-04-13 Pavel Roskin <proski@gnu.org>
32592
32593 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
32594 Reported by John Stanley <jpsinthemix@verizon.net>
32595
32596 2009-04-13 Robert Millan <rmh@aybabtu.com>
32597
32598 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
32599 that name for menuentries when appropriate.
32600
32601 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32602
32603 * util/grub.d/10_freebsd.in: Add a missing `fi'.
32604
32605 2009-04-13 Robert Millan <rmh@aybabtu.com>
32606
32607 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
32608 to Linux, simply abort telling the user it's no longer supported.
32609
32610 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32611
32612 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
32613 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
32614 `freebsd_loadenv' only when devices.hints exist.
32615
32616 2009-04-13 Pavel Roskin <proski@gnu.org>
32617
32618 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
32619
32620 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32621
32622 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
32623 partition number.
32624 (grub_drive): Likewise.
32625
32626 2009-04-13 David S. Miller <davem@davemloft.net>
32627
32628 * kern/sparc64/ieee1275/ieee1275.c: New file.
32629 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
32630 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
32631 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
32632 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
32633 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
32634 grub_ieee1275_alloc_physmem): Declare new exported functions.
32635
32636 * include/grub/sparc64/ieee1275/loader.h: New file.
32637 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32638 * include/grub/sparc64/kernel.h: Likewise.
32639 * loader/sparc64/ieee1275/linux.c: Likewise.
32640
32641 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
32642 (grub_fstest_SOURCES): Likewise.
32643
32644 * util/hostdisk.c (make_device_name): Do not make any assumptions
32645 about the length of drive names.
32646
32647 * kern/dl.c (grub_dl_load_file): Close file immediately when
32648 we are done using it.
32649
32650 2009-04-12 David S. Miller <davem@davemloft.net>
32651
32652 * kern/misc.c (grub_ltoa): Fix cast when handling negative
32653 values. Noticed by Pavel Roskin.
32654
32655 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
32656 target compiler.
32657
32658 * genmk.rb: Add more flexible image type specification, also
32659 pass --strip-unneeded to objcopy.
32660 * conf/i386-pc.rmk: Use *_FORMAT.
32661 * conf/i386-pc.mk: Rebuilt.
32662
32663 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
32664 (OFDISK_HASH_SZ): Define.
32665 (ofdisk_hash): New hash table.
32666 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
32667 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
32668 instead of device phandle which is not unique.
32669
32670 * kern/sparc64/ieee1275/init.c: Delete, replace with...
32671 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
32672 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
32673 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
32674 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
32675 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
32676 GRUB_KERNEL_MACHINE_DATA_END): Define.
32677 (grub_kernel_image_size, grub_total_module_size): Declare.
32678
32679 2009-04-12 Pavel Roskin <proski@gnu.org>
32680
32681 * configure.ac: Change the logic when we check for target tools.
32682 Do it when the target is specified and it's different from the
32683 specified value of the host.
32684
32685 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
32686
32687 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
32688 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
32689 GNU/kFreeBSD. Check if a device is a character device. Use
32690 DIOCGMEDIASIZE to get the size.
32691 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
32692 support for GNU/kFreeBSD.
32693 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
32694 is a character device instead of a block device. Add support for
32695 FreeBSD device names.
32696
32697 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
32698 is a character device instead of a block device.
32699
32700 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
32701 is a character device instead of a block device.
32702
32703 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
32704
32705 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
32706 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
32707 FreeBSD. Check if a device is a character device. Use
32708 DIOCGMEDIASIZE to get the size.
32709 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
32710 support for FreeBSD.
32711 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
32712 is a character device instead of a block device. Add support for
32713 FreeBSD device names.
32714
32715 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
32716 a character device instead of a block device.
32717 (grub_util_check_char_device): New function.
32718
32719 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
32720 a character device instead of a block device.
32721
32722 * include/grub/util/getroot.h (grub_util_check_char_device): New
32723 prototype.
32724
32725 2009-04-11 David S. Miller <davem@davemloft.net>
32726
32727 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
32728 static libgcc.
32729 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
32730 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
32731 function, if present.
32732 (__bswapdi2): Likewise.
32733
32734 * include/grub/sparc64/ieee1275/boot.h: New file.
32735 * boot/sparc64/ieee1275/boot.S: Likewise.
32736 * boot/sparc64/ieee1275/diskboot.S: Likewise.
32737
32738 * kern/misc.c (grub_ltoa): New function.
32739 (grub_vsprintf): Use it to format 'long' integers.
32740
32741 2009-04-10 David S. Miller <davem@davemloft.net>
32742
32743 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
32744 slots are of type grub_ieee1275_cell_t.
32745 (grub_nand_read): Likewise.
32746 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
32747 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
32748 macros are used to compare values in arg/ret block of the call.
32749 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
32750 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
32751 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
32752 grub_ieee1275_instance_to_path, grub_ieee1275_write,
32753 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
32754 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
32755 grub_ieee1275_close, grub_ieee1275_set_property,
32756 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
32757 grub_ieee1275_cell_t.
32758 * kern/ieee1275/openfw.c (grub_map): Likewise.
32759 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
32760 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
32761
32762 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
32763 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
32764 (grub_devalias_iterate): Likewise.
32765
32766 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
32767
32768 UFS improvements
32769
32770 * fs/ufs.c (INODE_NBLOCKS): new definition
32771 (struct grub_ufs_dirent): added fields for non-BSD dirents
32772 (grub_ufs_get_file_block): fixed double indirect handling
32773 (grub_ufs_lookup_symlink): use more robust way to determine whether
32774 symlink is inline
32775 (grub_ufs_find_file): support for non-BSD dirents
32776 (grub_ufs_dir): support for non-BSD dirents
32777
32778 2009-04-10 Bean <bean123ch@gnail.com>
32779
32780 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
32781 attribute, otherwise the size would be wrong for i386 platform.
32782
32783 * include/grub/pci.h (grub_pci_read_word): New inline function.
32784 (grub_pci_read_byte): Likewise.
32785 (grub_pci_write): Likewise.
32786 (grub_pci_write_word): Likewise.
32787 (grub_pci_write_byte): Likewise.
32788
32789 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
32790
32791 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
32792 (find_framebuf): Scan pci to locate the frame buffer address.
32793
32794 * commands/efi/fixvideo.c: New file.
32795
32796 * commands/efi/loadbios.c: Likewise.
32797
32798 * commands/memrw.c: Likewise.
32799
32800 * util/grub-dumpbios.in: Likewise.
32801
32802 * conf/common.rmk (grub-dumpbios): New utility.
32803 (pkglib_MODULES): New module memrw.mod.
32804 (memrw_mod_SOURCE): New macro.
32805 (memrw_mod_CFLAGS): Likewise.
32806 (memrw_mod_LDFLAGS): Likewise.
32807
32808 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
32809 fixvideo.mod.
32810 (loadbios_mod_SOURCE): New macro.
32811 (loadbios_mod_CFLAGS): Likewise.
32812 (loadbios_mod_LDFLAGS): Likewise.
32813 (fixvideo_mod_SOURCE): Likewise.
32814 (fixvideo_mod_CFLAGS): Likewise.
32815 (fixvideo_mod_LDFLAGS): Likewise.
32816
32817 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
32818 fixvideo.mod.
32819 (loadbios_mod_SOURCE): New macro.
32820 (loadbios_mod_CFLAGS): Likewise.
32821 (loadbios_mod_LDFLAGS): Likewise.
32822 (fixvideo_mod_SOURCE): Likewise.
32823 (fixvideo_mod_CFLAGS): Likewise.
32824 (fixvideo_mod_LDFLAGS): Likewise.
32825
32826 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
32827
32828 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
32829
32830 2009-04-07 David S. Miller <davem@davemloft.net>
32831
32832 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
32833 support for R_SPARC_OLO10 relocations. Fix compile warning for
32834 R_SPARC_WDISP30 case.
32835 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
32836
32837 2009-04-06 Pavel Roskin <proski@gnu.org>
32838
32839 * include/grub/misc.h (ARRAY_SIZE): New macro.
32840 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
32841 New macro.
32842 * loader/i386/linux.c (allocate_pages): Use free_pages().
32843 (grub_linux_unload): Don't use free_pages().
32844 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
32845 wrong index. Treat all other modes as text modes.
32846 (grub_cmd_linux): Initialize vid_mode unconditionally to
32847 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
32848
32849 * commands/help.c (print_command_help): Use cmd->prio, not
32850 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
32851
32852 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
32853
32854 Parttool
32855
32856 * parttool/pcpart.c: new file
32857 * commands/parttool.c: likewise
32858 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
32859 (parttool_mod_SOURCES): new variable
32860 (parttool_mod_CFLAGS): likewise
32861 (parttool_mod_LDFLAGS): likewise
32862 (pcpart_mod_SOURCES): likewise
32863 (pcpart_mod_CFLAGS): likewise
32864 (pcpart_mod_LDFLAGS): likewise
32865 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
32866 and parttool/pcpart.c
32867 * conf/i386-efi.rmk: likewise
32868 * conf/i386-ieee1275.rmk: likewise
32869 * conf/i386-pc.rmk: likewise
32870 * conf/powerpc-ieee1275.rmk: likewise
32871 * conf/sparc64-ieee1275.rmk: likewise
32872 * conf/x86_64-ieee1275.rmk: likewise
32873
32874 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32875
32876 Support for mtime and further expandability of dir command
32877
32878 * include/grub/lib/datetime.h: moved to ...
32879 * include/grub/datetime.h: ... moved here and added
32880 declaration of grub_unixtime2datetime. All users updated
32881 * include/grub/fs.h: new syntax for dir and mtime functions in
32882 struct grub_fs
32883 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
32884 and GRUB_FSHELP_FLAGS_MASK
32885 * commands/ls.c (grub_ls_list_files): Write mtime in long format
32886 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
32887 (grub_ext2_mtime): new function
32888 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
32889 (grub_hfsplus_mtime): new function
32890 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
32891 (GRUB_UFS_ATTR_FILE): likewise
32892 (GRUB_UFS_ATTR_LNK): likewise
32893 (struct grub_ufs_sblock): new fields mtime
32894 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
32895 all users updated
32896 (grub_ufs_dir): mtime support
32897 (grub_ufs_mtime): new function
32898 * fs/affs.c (grub_affs_dir): use new dir syntax
32899 * fs/afs.c (grub_afs_dir): likewise
32900 * fs/cpio.c (grub_cpio_dir): likewise
32901 * fs/fat.c (grub_fat_find_dir): likewise
32902 * fs/hfs.c (grub_hfs_dir): likewise
32903 * fs/iso9660.c (grub_iso9660_dir): likewise
32904 * fs/jfs.c (grub_jfs_dir): likewise
32905 * fs/minix.c (grub_minix_dir): likewise
32906 * fs/ntfs.c (grub_ntfs_dir): likewise
32907 * fs/reiserfs.c (grub_reiserfs_dir): likewise
32908 * fs/sfs.c (grub_sfs_dir): likewise
32909 * fs/xfs.c (grub_xfs_dir): likewise
32910 * util/hostfs.c (grub_hostfs_dir): likewise
32911 * lib/datetime.c: moved to ...
32912 * normal/datetime.c: ... moved here
32913 (grub_unixtime2datetime): new function
32914 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
32915 * normal/completion.c (iterate_dir): use new dir syntax
32916 * normal/misc.c (grub_normal_print_device_info): tell the
32917 last modification time of a volume
32918 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
32919 * conf/common.rmk: added lib/datetime.c to ls.mod
32920 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
32921 (normal_mod_SOURCES): likewise
32922 (datetime_mod_SOURCES): Removed lib/datetime.c
32923 * conf/i386-efi.rmk: likewise
32924 * conf/i386-ieee1275.rmk: likewise
32925 * conf/i386-pc.rmk: likewise
32926 * conf/powerpc-ieee1275.rmk: likewise
32927 * conf/sparc64-ieee1275.rmk: likewise
32928 * conf/x86_64-efi.rmk: likewise
32929
32930 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32931
32932 Trim trailing spaces in FAT label and support mtools-like labels
32933
32934 * fs/fat.c (grub_fat_iterate_dir): New function based
32935 on grub_fat_find_dir
32936 (grub_fat_find_dir): use grub_fat_iterate_dir
32937 (grub_fat_label): likewise
32938
32939 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
32940
32941 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
32942 and command.h
32943 remove extraneous kernel_elf_HEADERS
32944
32945 2009-04-04 Bean <bean123ch@gnail.com>
32946
32947 * include/grub/util/misc.h: Add dummy function fsync for mingw.
32948
32949 * util/misc.c: Likewise.
32950
32951 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
32952
32953 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
32954 instead of grub_printf.
32955
32956 2009-04-03 Robert Millan <rmh@aybabtu.com>
32957
32958 * loader/i386/linux.c (grub_linux_setup_video): Fill
32959 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
32960 values from `mode info' structure instead of hardcoded
32961 values.
32962
32963 2009-04-01 Pavel Roskin <proski@gnu.org>
32964
32965 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
32966 unused now.
32967 * genmk.rb: Likewise.
32968 * configure.ac: Likewise.
32969
32970 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
32971
32972 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
32973 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
32974
32975 2009-04-01 David S. Miller <davem@davemloft.net>
32976
32977 * normal/sparc64/setjmp.S: Fix setjmp implementation.
32978 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
32979 (grub_setjmp): Mark with 'returns_twice' attribute.
32980 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
32981 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
32982 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
32983
32984 2009-04-01 Robert Millan <rmh@aybabtu.com>
32985
32986 Reapply fix from 2008-07-28 which was accidentally reverted; also
32987 perform the same fix to a similar check in same function.
32988
32989 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
32990 with the same number are found, just use issue a warning with
32991 grub_dprintf(), as this error has been reported to be non-fatal.
32992
32993 2009-03-31 Pavel Roskin <proski@gnu.org>
32994
32995 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
32996 for cross-compilation.
32997
32998 2009-03-30 Robert Millan <rmh@aybabtu.com>
32999
33000 Fix i386-ieee1275 build.
33001
33002 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
33003 Remove declaration.
33004
33005 2009-03-30 Pavel Roskin <proski@gnu.org>
33006
33007 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
33008 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
33009 zero-terminated, rely only on the strlen value. Fix comparison
33010 of strings differing in length.
33011
33012 2009-03-30 Robert Millan <rmh@aybabtu.com>
33013
33014 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
33015 checking for abi version. Improve error messages on BIOS to notify
33016 user about `linux16' command.
33017
33018 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
33019
33020 Leak fixes
33021
33022 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
33023 in case of collision
33024 * disk/scsi.c (grub_scsi_open): free scsi in case of error
33025
33026 2009-03-29 Robert Millan <rmh@aybabtu.com>
33027
33028 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
33029 set `vid_mode' accordingly.
33030 (grub_linux_boot): Process `vid_mode' and set video mode.
33031
33032 2009-03-29 Robert Millan <rmh@aybabtu.com>
33033
33034 * util/grub.d/10_linux.in (linux_entry): New function.
33035 Factorize generation of Linux boot entries.
33036
33037 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
33038
33039 Make the format of Environment Block plain text. The boot loader
33040 part is not tested well yet.
33041
33042 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
33043 (buffer): Removed.
33044 (envblk): Likewise.
33045 (usage): Remove "info" and "clear". Add "unset". Update the
33046 description of "set", as this does not delete variables any
33047 longer.
33048 (create_envblk_file): Complete rewrite.
33049 (open_envblk_file): Likewise.
33050 (cmd_info): Removed.
33051 (cmd_list): Likewise.
33052 (cmd_set): Likewise.
33053 (cmd_clear): Likewise.
33054 (list_variables): New function.
33055 (write_envblk): Likewise.
33056 (set_variables): Likewise.
33057 (unset_variables): Likewise.
33058 (main): Complete rewrite.
33059
33060 * commands/loadenv.c (buffer): Removed.
33061 (envblk): Likewise.
33062 (open_envblk_file): New function.
33063 (read_envblk_file): Complete rewrite.
33064 (grub_cmd_load_env): Likewise.
33065 (grub_cmd_list_env): Likewise.
33066 (struct blocklist): New struct.
33067 (free_blocklists): New function.
33068 (check_blocklists): Likewise.
33069 (write_blocklists): Likewise.
33070 (grub_cmd_save_env): Complete rewrite.
33071
33072 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
33073 a plain text signature.
33074 (GRUB_ENVBLK_MAXLEN): Removed.
33075 (struct grub_envblk): Complete rewrite.
33076 (grub_envblk_find): Removed.
33077 (grub_envblk_insert): Likewise.
33078 (grub_envblk_open): New prototype.
33079 (grub_envblk_set): Likewise.
33080 (grub_envblk_delete): Put const to VALUE.
33081 (grub_envblk_iterate): Put const to NAME and VALUE.
33082 (grub_envblk_close): New prototype.
33083 (grub_envblk_buffer): New inline function.
33084 (grub_envblk_size): Likewise.
33085
33086 * lib/envblk.c: Include grub/mm.h.
33087 (grub_env_find): Removed.
33088 (grub_envblk_open): New function.
33089 (grub_envblk_close): Likewise.
33090 (escaped_value_len): Likewise.
33091 (find_next_line): Likewise.
33092 (grub_envblk_insert): Removed.
33093 (grub_envblk_set): New function.
33094 (grub_envblk_delete): Complete rewrite.
33095 (grub_envblk_iterate): Likewise.
33096
33097 2009-03-28 Robert Millan <rmh@aybabtu.com>
33098
33099 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
33100 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
33101 variables. Use 16-bit loader.
33102 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
33103 loader.
33104 * kern/i386/loader.S (grub_linux_boot): Rename to ...
33105 (grub_linux16_boot): ... this. Update all users.
33106 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
33107 (grub_linux_boot): ... this. Update all users.
33108
33109 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
33110 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
33111 commands to `linux16' and `initrd16'.
33112 (GRUB_MOD_FINI(linux)): Rename to ...
33113 (GRUB_MOD_FINI(linux16)): ... this.
33114
33115 2009-03-24 Pavel Roskin <proski@gnu.org>
33116
33117 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
33118 not just for compilation.
33119
33120 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
33121
33122 Move multiboot helper out of kernel
33123
33124 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
33125 `loader/i386/multiboot_helper.S'.
33126 * conf/i386-coreboot.rmk: Likewise
33127 * conf/i386-ieee1275.rmk: Likewise
33128
33129 * kern/i386/loader.S: Move multiboot helpers from here...
33130 * loader/i386/multiboot_helper.S: ...moved here
33131 * include/grub/i386/loader.h: Move declarations of multiboot
33132 helpers from here...
33133 * include/grub/i386/multiboot.h: ...moved here
33134 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
33135
33136 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33137
33138 * kern/env.c (grub_env_context_open): Added an argument to specify
33139 whether a new context inherits exported variables from current
33140 one. This is useful when making a sandbox to interpret a config
33141 file.
33142 All callers updated.
33143
33144 * include/grub/env.h (grub_env_context_open): Updated the prototype.
33145
33146 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33147
33148 * kern/env.c (grub_env_context_close): Fix memory leaks.
33149
33150 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33151
33152 * normal/main.c (grub_normal_execute): Added an argument
33153 BATCH to specify if an interactive interface should be provided
33154 after reading a config file.
33155 All callers updated.
33156 (read_command_list): Prevent being executed twice.
33157 (read_fs_list): Likewise.
33158
33159 * include/grub/normal.h (grub_normal_execute): Updated the
33160 prototype.
33161
33162 2009-03-22 Pavel Roskin <proski@gno.org>
33163
33164 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
33165 _start.
33166 * kern/i386/pc/startup.S: Likewise.
33167 * kern/i386/efi/startup.S: Likewise.
33168 * kern/i386/ieee1275/startup.S: Likewise.
33169 * kern/i386/coreboot/startup.S: Likewise.
33170 * kern/x86_64/efi/startup.S: Likewise.
33171
33172 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
33173 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
33174 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
33175
33176 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
33177
33178 Bugfixes in multiboot for bugs uncovered by solaris kernel.
33179
33180 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
33181 limit detection.
33182 Use vaddr of correct segment for entry_point.
33183
33184 2009-03-21 Bean <bean123ch@gmail.com>
33185
33186 * commands/blocklist.c: Add include file <grub/command.h>, remove
33187 <grub/normal.h> and <grub/arg.h>.
33188 (grub_cmd_blocklist): Use the new command interface.
33189 (GRUB_MOD_INIT): Likewise.
33190 (GRUB_MOD_FINI): Likewise.
33191 * commands/boot.c: Likewise.
33192 * commands/cat.c: Likewise.
33193 * commands/cmp.c: Likewise.
33194 * commands/configfile.c: Likewise.
33195 * commands/crc.c: Likewise.
33196 * commands/echo.c: Likewise.
33197 * commands/halt.c: Likewise.
33198 * commands/handler.c: Likewise.
33199 * commands/hdparm.c: Likewise.
33200 * commands/help.c: Likewise.
33201 * commands/hexdump.c: Likewise.
33202 * commands/loadenv.c: Likewise.
33203 * commands/ls.c: Likewise.
33204 * commands/lsmmap.c: Likewise.
33205 * commands/lspci.c: Likewise.
33206 * commands/loadenv.c: Likewise.
33207 * commands/read.c: Likewise.
33208 * commands/reboot.c: Likewise.
33209 * commands/search.c: Likewise.
33210 * commands/sleep.c: Likewise.
33211 * commands/test.c: Likewise.
33212 * commands/usbtest.c: Likewise.
33213 * commands/videotest.c: Likewise.
33214 * commands/i386/cpuid.c: Likewise.
33215 * commands/i386/pc/halt.c: Likewise.
33216 * commands/i386/pc/play.c: Likewise.
33217 * commands/i386/pc/pxecmd.c: Likewise.
33218 * commands/i386/pc/vbeinfo.c: Likewise.
33219 * commands/i386/pc/vbetest.c: Likewise.
33220 * commands/ieee1275/suspend.c: Likewise.
33221 * disk/loopback.c: Likewise.
33222 * font/font_cmd.c: Likewise.
33223 * hello/hello.c: Likewise.
33224 * loader/efi/appleloader.c: Likewise.
33225 * loader/efi/chainloader.c: Likewise.
33226 * loader/i386/bsd.c: Likewise.
33227 * loader/i386/efi/linux.c: Likewise.
33228 * loader/i386/ieee1275/linux.c: Likewise.
33229 * loader/i386/linux.c: Likewise.
33230 * loader/i386/pc/chainloader.c: Likewise.
33231 * loader/i386/pc/linux.c: Likewise.
33232 * loader/powerpc/ieee1275/linux.c: Likewise.
33233 * loader/multiboot_loader.c: Likewise.
33234 * term/gfxterm.c: Likewise.
33235 * term/i386/pc/serial.c: Likewise.
33236 * term/terminfo.c: Likewise.
33237
33238 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
33239 * term/i386/pc/vga.c: Likewise.
33240 * video/readers/jpeg.c: Likewise.
33241 * video/readers/png.c: Likewise.
33242 * video/readers/tga.c: Likewise.
33243
33244 * util/grub-fstest (cmd_loopback): Removed.
33245 (cmd_blocklist): Likewise.
33246 (cmd_ls): Likewise.
33247 (grub_register_command): Likewise.
33248 (grub_unregister_command): Likewise.
33249 (execute_command): Use grub_command_find to locate command and execute
33250 it.
33251
33252 * include/grub/efi/chainloader.h: Removed.
33253 * loader/efi/chainloader_normal.c: Likewise.
33254 * loader/i386/bsd_normal.c: Likewise.
33255 * loader/i386/pc/chainloader_normal.c: Likewise.
33256 * loader/i386/pc/multiboot_normal.c: Likewise.
33257 * loader/linux_normal.c: Likewise.
33258 * loader/multiboot_loader_normal.c: Likewise.
33259 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
33260
33261 * gencmdlist.sh: Scan new registration command grub_register_extcmd
33262 and grub_register_command_p1.
33263
33264 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
33265 kern/command.c, lib/arg.c and commands/extcmd.c.
33266 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
33267 (minicmd_mod_SOURCES): New variable.
33268 (minicmd_mod_CFLAGS): Likewise.
33269 (minicmd_mod_LDFLAGS): Likewise.
33270 (extcmd_mod_SOURCES): Likewise.
33271 (extcmd_mod_CFLAGS): Likewise.
33272 (extcmd_mod_LDFLAGS): Likewise.
33273 (boot_mod_SOURCES): Removed.
33274 (boot_mod_CFLAGS): Likewise.
33275 (boot_mod_LDFLAGS): Likewise.
33276
33277 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
33278 kern/corecmd.c.
33279 (kernel_img_HEADERS): Add command.h.
33280 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
33281 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
33282 and lib/arg.c.
33283 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
33284 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
33285 remove the corresponding normal mode command.
33286 (normal_mod_SOURCES): Remove normal/arg.c.
33287 * conf/i386-coreboot.rmk: Likewise.
33288 * conf/i386-efi.rmk: Likewise.
33289 * conf/i386-ieee1275.rmk: Likewise.
33290 * conf/powerpc-ieee1275.rmk: Likewise.
33291 * conf/x86_64-efi.rmk: Likewise.
33292
33293 * include/grub/arg.h: Move from here ...
33294 * include/grub/lib/arg.h: ... to here.
33295
33296 * normal/arg.c: Move from here ...
33297 * lib/arg.c: ... to here.
33298
33299 * commands/extcmd.c: New file.
33300 * commands/minicmd.c: Likewise.
33301 * include/grub/command.h: Likewise.
33302 * include/grub/extcmd.h: Likewise.
33303 * kern/command.c: Likewise.
33304 * kern/corecmd.c: Likewise.
33305
33306 * kern/list.c (grub_list_iterate): Return int instead of void.
33307 (grub_list_insert): New function.
33308 (grub_prio_list_insert): Likewise.
33309
33310 * kern/rescue.c (grub_rescue_command): Removed.
33311 (grub_rescue_command_list): Likewise.
33312 (grub_rescue_register_command): Likewise.
33313 (grub_rescue_unregister_command): Likewise.
33314 (grub_rescue_cmd_boot): Move to minicmd.c
33315 (grub_rescue_cmd_help): Likewise.
33316 (grub_rescue_cmd_info): Likewise.
33317 (grub_rescue_cmd_boot): Likewise.
33318 (grub_rescue_cmd_testload): Likewise.
33319 (grub_rescue_cmd_dump): Likewise.
33320 (grub_rescue_cmd_rmmod): Likewise.
33321 (grub_rescue_cmd_lsmod): Likewise.
33322 (grub_rescue_cmd_exit): Likewise.
33323 (grub_rescue_print_devices): Moved to corecmd.c.
33324 (grub_rescue_print_files): Likewise.
33325 (grub_rescue_cmd_ls): Likewise.
33326 (grub_rescue_cmd_insmod): Likewise.
33327 (grub_rescue_cmd_set): Likewise.
33328 (grub_rescue_cmd_unset): Likewise.
33329 (attempt_normal_mode): Use grub_command_find to get normal module.
33330 (grub_enter_rescue_mode): Use grub_register_core_commands to register
33331 commands, remove grub_rescue_register_command calls.
33332
33333 * normal/command.c (grub_register_command): Removed.
33334 (grub_unregister_command): Likewise.
33335 (grub_command_find): Likewise.
33336 (grub_iterate_commands): Likewise.
33337 (rescue_command): Likewise.
33338 (export_command): Moved to corecmd.c.
33339 (set_command): Removed.
33340 (unset_command): Likewise.
33341 (insmod_command): Likewise.
33342 (rmmod_command): Likewise.
33343 (lsmod_command): Likewise.
33344 (grub_command_init): Likewise.
33345
33346 * normal/completion.c (iterate_command): Use cmd->prio to check for
33347 active command.
33348 (complete_arguments): Use grub_extcmd_t structure to find options.
33349 (grub_normal_do_completion): Change function grub_iterate_commands to
33350 grub_command_iterate.
33351
33352 * normal/execute.c (grub_script_execute_cmd): No need to parse
33353 argument here.
33354
33355 * normal/main.c (grub_dyncmd_dispatcher): New function.
33356 (read_command_list): Register unload commands as dyncmd.
33357 (grub_cmd_normal): Use new command interface, register rescue,
33358 unregister normal at entry, register normal, unregister rescue at exit.
33359
33360 * include/grub/list.h (grub_list_test_t): New type.
33361 (grub_list_iterate): Return int instead of void.
33362 (grub_list_insert): New function.
33363 (GRUB_AS_NAMED_LIST_P): New macro.
33364 (GRUB_AS_PRIO_LIST): Likewise.
33365 (GRUB_AS_PRIO_LIST_P): Likewise.
33366 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
33367 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
33368 (grub_prio_list): New structure.
33369 (grub_prio_list_insert): New function.
33370 (grub_prio_list_remove): New inline function.
33371
33372 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
33373 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
33374 (GRUB_COMMAND_FLAG_MENU): Likewise.
33375 (GRUB_COMMAND_FLAG_BOTH): Likewise.
33376 (GRUB_COMMAND_FLAG_TITLE): Likewise.
33377 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
33378 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
33379 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
33380 (grub_command): Likewise.
33381 (grub_register_command): Likewise.
33382 (grub_command_find): Likewise.
33383 (grub_iterate_commands): Likewise.
33384 (grub_command_init): Likewise.
33385 (grub_arg_parse): Likewise.
33386 (grub_arg_show_help): Likewise.
33387
33388 * include/grub/rescue.h (grub_rescue_register_command): Removed.
33389 (grub_rescue_unregister_command): Likewise.
33390
33391 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
33392 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
33393 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
33394
33395 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
33396 grub_rescue_cmd_initrd.
33397 * include/grub/i386/loader.h: Likewise.
33398 * include/grub/x86_64/loader.h: Likewise.
33399
33400 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
33401
33402 2009-03-21 Bean <bean123ch@gmail.com>
33403
33404 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
33405 instead of stat in mingw environment.
33406
33407 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
33408
33409 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
33410
33411 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
33412 AC_CONFIG_LINKS.
33413
33414 2009-03-21 Bean <bean123ch@gmail.com>
33415
33416 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
33417 out of range error.
33418
33419 2009-03-18 Michel Dänzer <michel@daenzer.net>
33420
33421 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
33422 checking inode flags for EXT4_EXTENTS_FLAG.
33423
33424 2009-03-18 Robert Millan <rmh@aybabtu.com>
33425
33426 * loader/i386/linux.c: Include `<grub/video.h>' and
33427 `<grub/i386/pc/vbe.h>'..
33428 (grub_linux_setup_video): New function. Loosely based on the EFI one.
33429 (grub_linux32_boot): Attempt to configure video settings with
33430 grub_linux_setup_video().
33431 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
33432 to avoid grub_console_fini() which would step out of graphical mode
33433 unconditionally.
33434
33435 2009-03-14 Robert Millan <rmh@aybabtu.com>
33436
33437 Fix build on powerpc.
33438 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
33439
33440 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
33441
33442 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
33443 background image command.
33444
33445 2009-03-12 Colin D Bennett <colin@gibibit.com>
33446
33447 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
33448 (grub_gfxterm_putchar): Extract pairs of identical calls to
33449 draw_cursor out of conditional blocks.
33450
33451 2009-03-11 Pavel Roskin <proski@gnu.org>
33452
33453 * fs/hfs.c (grub_hfs_strncasecmp): New function.
33454 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
33455
33456 2009-03-11 Robert Millan <rmh@aybabtu.com>
33457
33458 * loader/i386/multiboot_elfxx.c
33459 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
33460
33461 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
33462
33463 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
33464 `kern/handler.c'.
33465
33466 2009-03-11 Robert Millan <rmh@aybabtu.com>
33467
33468 * loader/i386/multiboot.c (code_size): New variable.
33469 (grub_multiboot): Define offsets by adding to `code_size' rather
33470 than subtracting from `grub_multiboot_payload_size'. Provide
33471 4-byte alignment to MBI and others by increasing
33472 `boot_loader_name_length' appropriately.
33473
33474 * loader/i386/multiboot_elfxx.c
33475 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
33476
33477 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
33478
33479 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
33480 `fs/ext2.c'.
33481
33482 2009-03-08 Robert Millan <rmh@aybabtu.com>
33483
33484 Make loader/i386/linux.c usable on i386-pc again.
33485
33486 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
33487 memory to heap.
33488 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
33489 `#error' stanza.
33490
33491 2009-03-07 Bean <bean123ch@gmail.com>
33492
33493 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
33494 allocation.
33495
33496 2009-03-06 Robert Millan <rmh@aybabtu.com>
33497
33498 Fix display issue on terminals with screen size other than 80x25
33499 (e.g. gfxterm with resolution higher than 640x480).
33500
33501 * normal/main.c (grub_normal_init_page): Display title text in a
33502 position relative to the center of the terminal instead of relying
33503 on a hardcoded offset.
33504
33505 2009-03-04 Robert Millan <rmh@aybabtu.com>
33506
33507 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
33508 installed.
33509
33510 * Makefile.in (host_kernel): New variable.
33511 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
33512 scripts instead of just the windows one.
33513 * configure.ac: Initialize and AC_SUBST `host_kernel'.
33514
33515 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33516
33517 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
33518 `kern/handler.c'.
33519 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33520 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33521 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33522 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33523 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33524 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33525
33526 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33527
33528 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
33529 or if there's no space for the disk label and print the partition number on a
33530 invalid magic.
33531
33532 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33533
33534 * util/misc.c: Include <time.h>.
33535 (grub_millisleep): New function.
33536
33537 2009-03-04 Bean <bean123ch@gmail.com>
33538
33539 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
33540 another option -mno-red-zone.
33541
33542 * commands/handler.c: Change module description.
33543
33544 * kern/handler.c: Add missing space at the end of description line.
33545
33546 * kern/list.c: Likewise.
33547
33548 2009-03-03 Robert Millan <rmh@aybabtu.com>
33549
33550 Move more components to the relocation area, and fix mbi pointer
33551 handling to use the destination rather than the origin (thanks to
33552 Vladimir Serbinenko for spotting).
33553
33554 * loader/i386/multiboot.c (mbi_dest): New variable.
33555 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
33556 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
33557 relocation area.
33558
33559 2009-03-01 Bean <bean123ch@gmail.com>
33560
33561 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
33562 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
33563 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
33564 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
33565
33566 * loader/i386/efi/linux.c (acpi_guid): New variable.
33567 (acpi_guid): Likewise.
33568 (EBDA_SEG_ADDR): New constant.
33569 (LOW_MEM_ADDR): Likewise.
33570 (FAKE_EBDA_SEG): Likewise.
33571 (fake_bios_data): New function.
33572 (grub_linux_boot): Call fake_bios_data.
33573
33574 2009-03-01 Bean <bean123ch@gmail.com>
33575
33576 * commands/terminal.c: Removed.
33577
33578 * commands/handler.c: New file.
33579
33580 * include/grub/list.h: Likewise.
33581
33582 * include/grub/handler.h: Likewise.
33583
33584 * kern/list.c: Likewise.
33585
33586 * kern/handler.c: Likewise.
33587
33588 * kern/term.h: Include header file <grub/handler.h>.
33589 (grub_term_input): Move next field to the beginning.
33590 (grub_term_output): Likewise.
33591 (grub_term_input_class): New variable.
33592 (grub_term_output_class): Likewise.
33593 (grub_term_register_input): Changed to inline function.
33594 (grub_term_register_output): Likewise.
33595 (grub_term_unregister_input): Likewise.
33596 (grub_term_unregister_output): Likewise.
33597 (grub_term_set_current_input): Likewise.
33598 (grub_term_set_current_output): Likewise.
33599 (grub_term_get_current_input): Likewise.
33600 (grub_term_get_current_output): Likewise.
33601 (grub_term_iterate_input): Removed.
33602 (grub_term_iterate_output): Likewise.
33603
33604 * kern/term.c (grub_term_list_input): Removed.
33605 (grub_term_list_output): Likewise.
33606 (grub_term_input_class): New variable.
33607 (grub_term_output_class): Likewise.
33608 (grub_cur_term_input): Change variable as macro.
33609 (grub_cur_term_output): Likewise.
33610 (grub_term_register_input): Removed.
33611 (grub_term_register_output): Likewise.
33612 (grub_term_unregister_input): Likewise.
33613 (grub_term_unregister_output): Likewise.
33614 (grub_term_set_current_input): Likewise.
33615 (grub_term_set_current_output): Likewise.
33616 (grub_term_iterate_input): Likewise.
33617 (grub_term_iterate_output): Likewise.
33618 (grub_term_get_current_input): Likewise.
33619 (grub_term_get_current_output): Likewise.
33620
33621 * util/grub-editenv.c: Include header file <grub/handler.h>.
33622 (grub_term_get_current_input): Removed.
33623 (grub_term_get_current_output): Likewise.
33624 (grub_term_input_class): New variable.
33625 (grub_term_output_class): Likewise.
33626
33627 * util/grub-fstest.c (grub_term_get_current_input): Removed.
33628 (grub_term_get_current_output): Likewise.
33629 (grub_term_input_class): New variable.
33630 (grub_term_output_class): Likewise.
33631
33632 * util/grub-probe.c (grub_term_get_current_input): Removed.
33633 (grub_term_get_current_output): Likewise.
33634 (grub_term_input_class): New variable.
33635 (grub_term_output_class): Likewise.
33636
33637 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
33638 (grub_term_get_current_output): Likewise.
33639 (grub_term_input_class): New variable.
33640 (grub_term_output_class): Likewise.
33641
33642 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
33643 (terminal_mod_SOURCES): Likewise.
33644 (terminal_mod_CFLAGS): Likewise.
33645 (terminal_mod_LDFLAGS): Likewise.
33646
33647 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
33648 handler.c.
33649 (kernel_img_SOURCES): Add list.c and handler.c.
33650 (kernel_img_HEADERS): Add list.h and handler.h.
33651
33652 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33653 handler.c.
33654 (kernel_mod_SOURCES): Add list.c and handler.c.
33655 (kernel_mod_HEADERS): Add list.h and handler.h.
33656
33657 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
33658 handler.c.
33659 (kernel_elf_SOURCES): Add list.c and handler.c.
33660 (kernel_elf_HEADERS): Add list.h and handler.h.
33661
33662 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33663 handler.c.
33664 (kernel_elf_SOURCES): Add list.c and handler.c.
33665 (kernel_elf_HEADERS): Add list.h and handler.h.
33666
33667 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33668 handler.c.
33669 (kernel_mod_SOURCES): Add list.c and handler.c.
33670 (kernel_mod_HEADERS): Add list.h and handler.h.
33671
33672 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33673 handler.c.
33674 (kernel_elf_SOURCES): Add list.c and handler.c.
33675 (kernel_elf_HEADERS): Add list.h and handler.h.
33676
33677 2009-02-27 Robert Millan <rmh@aybabtu.com>
33678
33679 Factorize elf32 / elf64 code in Multiboot loader. This will
33680 prevent it from getting out of sync again.
33681
33682 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
33683 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
33684 grub_multiboot_load_elf64): Move from here ...
33685 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
33686 grub_multiboot_load_elf): ... to here (new file).
33687
33688 2009-02-27 Robert Millan <rmh@aybabtu.com>
33689
33690 * util/grub.d/10_linux.in: Rename "single-user mode" to
33691 "recovery mode".
33692
33693 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
33694
33695 Don't leak in SCSI code.
33696 * disk/scsi.c (grub_scsi_close): free `scsi'.
33697
33698 2009-02-27 Robert Millan <rmh@aybabtu.com>
33699
33700 * loader/i386/pc/multiboot.c: Move from here ...
33701 * loader/i386/multiboot.c: ... to here. Update all users.
33702
33703 2009-02-27 Robert Millan <rmh@aybabtu.com>
33704
33705 Patch from Alexandre Bique <bique.alexandre@gmail.com>
33706 * util/i386/pc/grub-setup.c (setup): Fix directory path.
33707
33708 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
33709
33710 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
33711 b-tree.
33712
33713 2009-02-27 Robert Millan <rmh@aybabtu.com>
33714
33715 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
33716 `0x' qualifier as 0 when base is specified as parameter).
33717
33718 2009-02-24 Bean <bean123ch@gmail.com>
33719
33720 * configure.ac: Check for -mcmodel=large in x86_64 target.
33721
33722 * include/grub/efi/api.h (efi_call_10): New macro.
33723 (efi_wrap_10): New function.
33724
33725 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
33726 (GRUB_PE32_REL_BASED_HIGH): Likewise.
33727 (GRUB_PE32_REL_BASED_LOW): Likewise.
33728 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
33729 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
33730 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
33731 (GRUB_PE32_REL_BASED_SECTION): Likewise.
33732 (GRUB_PE32_REL_BASED_REL): Likewise.
33733 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
33734 (GRUB_PE32_REL_BASED_DIR64): Likewise.
33735 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
33736
33737 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
33738 issue.
33739
33740 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
33741 (efi_wrap_10): New function.
33742
33743 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
33744
33745 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
33746 MB/MBP model (NV chipset).
33747 (devdata_devs): Add devpath_5 to the list.
33748
33749 * load/i386/efi/linux.c (video_base): Remove variable.
33750 (RGB_MASK): New macro.
33751 (RGB_MAGIC): Likewise.
33752 (LINE_MIN): Likewise.
33753 (LINE_MAX): Likewise.
33754 (FBTEST_STEP): Likewise.
33755 (FBTEST_COUNT): Likewise.
33756 (fb_list): New variable.
33757 (grub_find_video_card): Remove function.
33758 (find_framebuf): New function.
33759 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
33760 line length.
33761
33762 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
33763 problem for x86_64.
33764
33765 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
33766
33767 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
33768
33769 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
33770 coding tool name.
33771
33772 2009-02-22 Robert Millan <rmh@aybabtu.com>
33773
33774 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
33775 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
33776 in our relocation, instead of using it directly from heap. Also
33777 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
33778
33779 2009-02-21 Robert Millan <rmh@aybabtu.com>
33780
33781 Implement USB keyboard support (based on patch by Marco Gerards)
33782
33783 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
33784 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
33785 (usb_keyboard_mod_LDFLAGS): New variables.
33786
33787 * term/usb_keyboard.c: New file.
33788
33789 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
33790
33791 Corrected wrong declaration
33792
33793 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
33794
33795 2009-02-14 Christian Franke <franke@computer.org>
33796
33797 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
33798 (grub_lspci_iter): Print class code and programming interface byte.
33799
33800 2009-02-14 Christian Franke <franke@computer.org>
33801
33802 * gendistlist.sh: Ignore `.svn' directories.
33803
33804 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
33805
33806 * fs/fat.c: Add 2009 to Copyright line.
33807
33808 2009-02-14 Christian Franke <franke@computer.org>
33809
33810 * commands/hdparm.c: New file. Provides `hdparm' command
33811 which sends ATA commands via grub_disk_ata_pass_through ().
33812
33813 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
33814
33815 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
33816 and <grub/cpu/io.h> to include/grub/ata.h.
33817 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
33818 (GRUB_CDROM_SECTOR_SIZE): Remove.
33819 (GRUB_ATA_*): Move to include/grub/ata.h.
33820 (GRUB_ATAPI_*): Likewise.
33821 (enum grub_ata_commands): Likewise.
33822 (enum grub_ata_timeout_milliseconds): Likewise.
33823 (struct grub_ata_device): Likewise.
33824 (grub_ata_regset): Likewise.
33825 (grub_ata_regget): Likewise.
33826 (grub_ata_regset2): Likewise.
33827 (grub_ata_regget2): Likewise.
33828 (grub_ata_check_ready): Likewise.
33829 (grub_ata_wait_not_busy): Remove static, exported in
33830 include/grub/ata.h.
33831 (grub_ata_wait_drq): Likewise.
33832 (grub_ata_pio_read): Likewise.
33833
33834 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
33835 function for hdparm.mod.
33836
33837 * include/grub/ata.h: New file, contains declarations from
33838 disk/ata.c.
33839 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
33840
33841 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
33842 (grub_disk_ata_pass_through): New exported variable.
33843
33844 * kern/disk.c (grub_disk_ata_pass_through): New variable.
33845
33846 2009-02-13 Colin D Bennett <colin@gibibit.com>
33847
33848 Support multiple fallback entries, and provide an API to support
33849 executing default+fallback menu entries. Renamed the `terminal' menu
33850 viewer to `text'.
33851
33852 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
33853 variable declaration.
33854 (grub_menu_execute_callback): New structure declaration.
33855 (grub_menu_execute_callback_t): New typedef.
33856 (grub_menu_execute_with_fallback): New function declaration.
33857 (grub_menu_get_entry): Likewise.
33858 (grub_menu_get_timeout): Likewise.
33859 (grub_menu_set_timeout): Likewise.
33860
33861 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
33862
33863 * normal/menu.c (grub_wait_after_message): Moved to
33864 `normal/menu_text.c'.
33865 (draw_border): Likewise.
33866 (print_message): Likewise.
33867 (print_entry): Likewise.
33868 (print_entries): Likewise.
33869 (grub_menu_init_page): Likewise.
33870 (get_entry_number): Likewise.
33871 (print_timeout): Likewise.
33872 (run_menu): Likewise.
33873 (grub_menu_execute_entry): Likewise.
33874 (show_text_menu): Likewise.
33875 (get_and_remove_first_entry_number): New function.
33876 (grub_menu_execute_with_fallback): Likewise.
33877 (get_entry): Renamed to ...
33878 (grub_menu_get_entry): .. this and made it global.
33879 (get_timeout): Renamed to ...
33880 (grub_menu_get_timeout): ... this and made it global.
33881 (set_timeout): Renamed to ...
33882 (grub_menu_set_timeout): ... this and made it global.
33883 (grub_normal_terminal_menu_viewer): Renamed to ...
33884 (grub_normal_text_menu_viewer): ... this.
33885
33886 * normal/menu_text.c: New file. Extracted text-menu-specific code
33887 from normal/menu.c.
33888
33889 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
33890 (normal_mod_SOURCES): Likewise.
33891
33892 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33893 (normal_mod_SOURCES): Likewise.
33894
33895 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33896 (normal_mod_SOURCES): Likewise.
33897
33898 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
33899 (normal_mod_SOURCES): Likewise.
33900
33901 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33902 (normal_mod_SOURCES): Likewise.
33903
33904 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33905 (normal_mod_SOURCES): Likewise.
33906
33907 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33908 (normal_mod_SOURCES): Likewise.
33909
33910 2009-02-11 Robert Millan <rmh@aybabtu.com>
33911
33912 * util/grub.d/00_header.in: Update old reference to `font' command.
33913
33914 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
33915
33916 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
33917
33918 Based on patch from Javier Martín.
33919
33920 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33921
33922 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
33923 to avoid false positives with FAT.
33924 (grub_fstest_SOURCES): Likewise.
33925 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33926 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33927 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33928 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33929 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33930 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33931
33932 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33933
33934 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
33935 bpb.version_specific.fat12_or_fat16.fstype and
33936 bpb.version_specific.fat32.fstype.
33937
33938 2009-02-08 Robert Millan <rmh@aybabtu.com>
33939
33940 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
33941
33942 2009-02-08 Robert Millan <rmh@aybabtu.com>
33943
33944 * Makefile.in (host_os, host_cpu): New variables.
33945 (target_os): Remove. Update all users.
33946
33947 2009-02-08 Marco Gerards <marco@gnu.org>
33948
33949 * Makefile.in (enable_grub_emu_usb): New variable.
33950 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
33951 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
33952 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
33953 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
33954 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
33955 `usbtest.mod' and `usbms.mod'.
33956 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
33957 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
33958 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
33959 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
33960 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
33961 variables.
33962
33963 * disk/usbms.c: New file.
33964
33965 * include/grub/usb.h: Likewise.
33966
33967 * include/grub/usbtrans.h: Likewise.
33968
33969 * include/grub/usbdesc.h: Likewise.
33970
33971 * bus/usb/usbtrans.c: Likewise.
33972
33973 * bus/usb/ohci.c: Likewise.
33974
33975 * bus/usb/uhci.c: Likewise.
33976
33977 * bus/usb/usbhub.c: Likewise.
33978
33979 * bus/usb/usb.c: Likewise.
33980
33981 * commands/usbtest.c: Likewise.
33982
33983 * util/usb.c: Likewise.
33984
33985 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
33986
33987 * configure.ac: Test for libusb presence.
33988
33989 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
33990
33991 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
33992
33993 * kern/mm.c: Add more comments.
33994
33995 2009-02-08 Robert Millan <rmh@aybabtu.com>
33996
33997 Patch from Javier Martín.
33998 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
33999 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
34000
34001 2009-02-08 Robert Millan <rmh@aybabtu.com>
34002
34003 * fs/cpio.c: Split tar functionality to ...
34004 * fs/tar.c: ... here (new file). Update all users.
34005
34006 2009-02-07 Robert Millan <rmh@aybabtu.com>
34007
34008 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
34009 backward-incompatible features.
34010
34011 Based on patch from Javier Martín, with some adjustments.
34012
34013 2009-02-07 Michael Scherer <misc@mandriva.org>
34014
34015 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
34016
34017 2009-02-07 Robert Millan <rmh@aybabtu.com>
34018
34019 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
34020 position of `disk/lvm.c' to ensure grub_init_all() always picks it
34021 after the RAID stuff.
34022
34023 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
34024
34025 Fixes problem when running vbetest command as reported by
34026 Vladimir Serbinenko <phcoder@gmail.com>.
34027
34028 * (grub_vbe_set_video_mode): Fixed problem with text modes.
34029
34030 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
34031
34032 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
34033 /dev/md/NpN style mdraid devices.
34034
34035 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
34036
34037 * util/unifont2pff.rb: Remove.
34038
34039 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
34040
34041 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
34042 `#'.
34043
34044 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
34045
34046 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
34047 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34048 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34049 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34050 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34051 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34052 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34053
34054 2009-02-02 Christian Franke <franke@computer.org>
34055
34056 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
34057
34058 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
34059
34060 * INSTALL: Note that we now require at least autoconf 2.59 and
34061 that LZO is optional.
34062
34063 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34064
34065 Base on patch on bug #24154 created by Tomas Tintera
34066 <trosos@seznam.cz>.
34067
34068 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
34069
34070 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34071
34072 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
34073 <bero@arklinux.org>.
34074
34075 * normal/parser.y (script_init): Add missing semicolon.
34076
34077 2009-01-31 Colin D Bennett <colin@gibibit.com>
34078
34079 * normal/main.c: Add include to grub/menu_viewer.h.
34080 (free_menu_entry_classes): Added.
34081 (grub_normal_menu_addentry): Added class property handling.
34082 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
34083 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
34084
34085 * normal/menu_viewer.c: New file.
34086
34087 * normal/menu.c (run_menu_entry): Renamed to ...
34088 (grub_menu_execute_entry): ... this and made it as global.
34089 (grub_menu_run): Renamed to ...
34090 (show_text_menu): ... this and made it local.
34091 (show_text_menu): Adapt to new function names.
34092 (grub_normal_terminal_menu_viewer): New global variable.
34093
34094 * include/grub/menu.h: New file.
34095
34096 * include/grub/menu_viewer.h: New file.
34097
34098 * include/grub/normal.h: Added include to grub/menu.h.
34099 (grub_menu_entry): Moved to include/grub/menu.h.
34100 (grub_menu_entry_t): Likewise.
34101 (grub_menu): Likewise.
34102 (grub_menu_t): Likewise.
34103 (grub_normal_terminal_menu_viewer): Added.
34104 (grub_menu_execute_entry): Likewise.
34105 (grub_menu_run): Removed.
34106
34107 * DISTLIST: Added include/grub/menu.h.
34108 Added include/grub/menu_viewer.h.
34109 Added normal/menu_viewer.c.
34110
34111 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
34112
34113 * normal/execute.c (grub_script_execute_menuentry): Changed to use
34114 arglist for menutitle arguments.
34115
34116 * normal/main.c (grub_normal_menu_addentry): Likewise.
34117
34118 * normal/parser.y (menuentry): Likewise.
34119
34120 * normal/script.c (grub_script_create_cmdmenu): Likewise.
34121
34122 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
34123 (grub_script_create_cmdmenu): Likewise.
34124
34125 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
34126
34127 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
34128 changes.
34129
34130 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
34131
34132 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
34133
34134 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
34135
34136 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34137
34138 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34139
34140 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34141
34142 2009-01-30 Christian Franke <franke@computer.org>
34143
34144 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
34145 in option help text.
34146
34147 2009-01-27 Pavel Roskin <proski@gnu.org>
34148
34149 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
34150
34151 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34152
34153 * commands/lsmmap.c: Add include to grub/machine/memory.h.
34154
34155 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
34156
34157 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
34158 unregister function.
34159
34160 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34161
34162 * disk/scsi.c (grub_scsi_read): Fix sign problem.
34163
34164 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
34165
34166 * util/grub-mkfont.c (usage): Fix typo.
34167
34168 * util/elf/grub-mkimage.c (load_modules): Fix warning.
34169
34170 2009-01-26 Daniel Mierswa <impulze@impulze.org>
34171
34172 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
34173
34174 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
34175
34176 * kern/misc.c (grub_strcasecmp): New function.
34177 (grub_strcasecmp): Use grub_size_t instead of int for length.
34178 Fix return value.
34179 * include/grub/misc.h: Update function prototypes.
34180
34181 2009-01-26 Robert Millan <rmh@aybabtu.com>
34182
34183 * configure.ac: Fix cross-compilation check.
34184
34185 2009-01-22 Christian Franke <franke@computer.org>
34186
34187 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
34188 (precision) digit string. Allow `.format2' without `format1' (width).
34189 Limit input chars for `%s' output to `format2' if specified. This is
34190 compatible with standard printf ().
34191
34192 2009-01-22 Christian Franke <franke@computer.org>
34193
34194 * disk/ata.c (grub_ata_wait_status): Replace by ...
34195 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
34196 other status bits may be invalid while BSY is asserted.
34197 (grub_ata_check_ready): New function.
34198 (grub_ata_cmd): Removed.
34199 (grub_ata_wait_drq): New function.
34200 (grub_ata_strncpy): Remove inline.
34201 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
34202 and error check now done by grub_ata_wait_drq ().
34203 (grub_ata_pio_write): Likewise.
34204 (grub_atapi_identify): Set DEV before check for !BSY. Use
34205 grub_ata_wait_drq () to wait for data.
34206 (grub_ata_device_initialize): Add status register check to
34207 detect missing SATA slave devices. Add debug messages.
34208 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
34209 (grub_atapi_packet): Set DEV before check for !BSY. Replace
34210 transfer loop by grub_ata_pio_write ().
34211 (grub_ata_identify): Set DEV before check for !BSY. Use
34212 grub_ata_wait_drq () to wait for data.
34213 (grub_ata_setaddress): Set DEV before check for !BSY.
34214 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
34215 read/write in one loop. Fix invalid command on write. Fix incomplete
34216 command on (size % batch) == 0. Add missing error check after write of
34217 last block. Add debug messages.
34218 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
34219
34220 2009-01-19 Christian Franke <franke@computer.org>
34221
34222 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
34223 (GRUB_ATAPI_IREASON_*): Likewise.
34224 (grub_ata_pio_write): Fix timeout error return.
34225 (grub_atapi_identify): Add grub_ata_wait () after cmd.
34226 (grub_atapi_wait_drq): New function.
34227 (grub_atapi_packet): New parameter `size'.
34228 Use grub_atapi_wait_drq () and direct write instead of
34229 grub_ata_pio_write ().
34230 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
34231 reads the number of bytes requested by the device for each DRQ
34232 assertion.
34233 (grub_atapi_write): Remove old implementation, return not
34234 implemented instead.
34235
34236 2009-01-19 Christian Franke <franke@computer.org>
34237
34238 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
34239 of 512 to calculate data size.
34240 (grub_scsi_read12): Likewise.
34241 (grub_scsi_write10): Likewise.
34242 (grub_scsi_write12): Likewise.
34243 (grub_scsi_read): Adjust size according to blocksize.
34244 Add checks for invalid blocksize and unaligned transfer.
34245
34246 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
34247
34248 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
34249
34250 * term/gfxterm.c (write_char): Fix background rendering for wide
34251 width glyphs.
34252
34253 2009-01-19 Robert Millan <rmh@aybabtu.com>
34254
34255 * config.guess: Update to latest version from config git.
34256 * config.sub: Likewise.
34257
34258 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
34259
34260 * Makefile.in: Change font compilation to use new grub-mkfont instead
34261 of java version.
34262
34263 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
34264 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34265 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34266 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34267 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34268 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34269 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34270 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34271 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34272
34273 2009-01-16 Christian Franke <franke@computer.org>
34274
34275 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
34276 (enum grub_ata_timeout_milliseconds): New enum.
34277 (grub_ata_wait_status): Add parameter milliseconds.
34278 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
34279 recovery from timed-out commands.
34280 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
34281 return grub_errno instead of REG_ERROR.
34282 (grub_ata_pio_write): Add parameter milliseconds.
34283 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
34284 Pass milliseconds to grub_ata_wait_status () and
34285 grub_ata_pio_read ().
34286 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
34287 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
34288 grub_ata_wait_status (). Fix IDENTIFY timeout check.
34289 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
34290 It is not suitable for device detection, because DEV bit is ignored,
34291 the command may run too long, and not all devices set the signature
34292 properly.
34293 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
34294 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
34295 Fix device selection, DEV bit must be set first to address the registers
34296 of the correct device.
34297 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
34298 grub_ata_pio_read/write ().
34299 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
34300 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
34301
34302 2009-01-13 Carles Pina i Estany <carles@pina.cat>
34303
34304 * util/grub-editenv.c (main): Use fseeko(), not fseek().
34305
34306 2009-01-13 Bean <bean123ch@gmail.com>
34307
34308 * util/grub-mkfont.c (write_font): forget to remove some debug code.
34309
34310 2009-01-13 Bean <bean123ch@gmail.com>
34311
34312 * Makefile.in: (enable_grub_mkfont): New variable.
34313 (freetype_cflags): Likewise.
34314 (freetype_libs): Likewise.
34315
34316 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
34317 (grub_mkfont_SOURCES): New variable.
34318 (grub_mkfont_CFLAGS): Likewise.
34319 (grub_mkfont_LDFLAGS): Likewise.
34320
34321 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
34322 library if `--enable-grub-mkfont' is requested.
34323 (enable_grub_mkfont): New variable.
34324 (freetype_cflags): Likewise.
34325 (freetype_libs): Likewise.
34326
34327 * util/grub-mkfont.c: New file.
34328
34329 2009-01-12 Christian Franke <franke@computer.org>
34330
34331 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
34332 mode check. Fix setting of compat_use[].
34333
34334 2009-01-10 Robert Millan <rmh@aybabtu.com>
34335
34336 Update a few copyright years which we forgot to do in 2008 (only for
34337 files whose changes made in 2008 were copyright-significant)
34338
34339 * Makefile.in: Add 2008 to Copyright line.
34340 * disk/ieee1275/ofdisk.c: Likewise.
34341 * disk/efi/efidisk.c: Likewise.
34342 * kern/dl.c: Likewise.
34343 * kern/sparc64/ieee1275/init.c: Likewise.
34344 * kern/mm.c: Likewise.
34345 * kern/efi/mm.c: Likewise.
34346 * boot/i386/pc/boot.S: Likewise.
34347 * genfslist.sh: Likewise.
34348 * fs/iso9660.c: Likewise.
34349 * fs/hfs.c: Likewise.
34350 * fs/jfs.c: Likewise.
34351 * fs/minix.c: Likewise.
34352 * fs/ufs.c: Likewise.
34353 * gensymlist.sh.in: Likewise.
34354 * genkernsyms.sh.in: Likewise.
34355 * include/grub/misc.h: Likewise.
34356 * include/grub/types.h: Likewise.
34357 * include/grub/symbol.h: Likewise.
34358 * include/grub/elf.h: Likewise.
34359 * include/grub/kernel.h: Likewise.
34360 * include/grub/disk.h: Likewise.
34361 * include/grub/dl.h: Likewise.
34362 * include/grub/i386/linux.h: Likewise.
34363 * include/grub/i386/pc/biosdisk.h: Likewise.
34364 * include/grub/efi/api.h: Likewise.
34365 * include/grub/efi/pe32.h: Likewise.
34366 * include/grub/util/misc.h: Likewise.
34367 * normal/execute.c: Likewise.
34368 * normal/arg.c: Likewise.
34369 * normal/completion.c: Likewise.
34370 * normal/lexer.c: Likewise.
34371 * normal/parser.y: Likewise.
34372 * normal/misc.c: Likewise.
34373 * commands/i386/pc/vbeinfo.c: Likewise.
34374 * commands/hexdump.c: Likewise.
34375 * commands/terminal.c: Likewise.
34376 * commands/ls.c: Likewise.
34377 * commands/help.c: Likewise.
34378 * partmap/pc.c: Likewise.
34379 * loader/efi/chainloader.c: Likewise.
34380 * loader/multiboot_loader.c: Likewise.
34381 * loader/i386/pc/multiboot2.c: Likewise.
34382 * term/efi/console.c: Likewise.
34383 * term/i386/pc/serial.c: Likewise.
34384 * util/lvm.c: Likewise.
34385 * util/console.c: Likewise.
34386 * util/i386/efi/grub-mkimage.c: Likewise.
34387 * util/raid.c: Likewise.
34388
34389 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
34390
34391 * commands/videotest.c: Removed include to grub/machine/memory.h.
34392
34393 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
34394 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
34395 (video_mod_SOURCES): Removed.
34396 (video_mod_CFLAGS): Likewise.
34397 (video_mod_LDFLAGS): Likewise.
34398 (gfxterm_mod_SOURCES): Likewise.
34399 (gfxterm_mod_CFLAGS): Likewise.
34400 (gfxterm_mod_LDFLAGS): Likewise.
34401 (videotest_mod_SOURCES): Likewise.
34402 (videotest_mod_CFLAGS): Likewise.
34403 (videotest_mod_LDFLAGS): Likewise.
34404 (bitmap_mod_SOURCES): Likewise.
34405 (bitmap_mod_CFLAGS): Likewise.
34406 (bitmap_mod_LDFLAGS): Likewise.
34407 (tga_mod_SOURCES): Likewise.
34408 (tga_mod_CFLAGS): Likewise.
34409 (tga_mod_LDFLAGS): Likewise.
34410 (jpeg_mod_SOURCES): Likewise.
34411 (jpeg_mod_CFLAGS): Likewise.
34412 (jpeg_mod_LDFLAGS): Likewise.
34413 (png_mod_SOURCES): Likewise.
34414 (png_mod_CFLAGS): Likewise.
34415 (png_mod_LDFLAGS): Likewise.
34416
34417 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
34418 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
34419 (video_mod_SOURCES): Added.
34420 (video_mod_CFLAGS): Likewise.
34421 (video_mod_LDFLAGS): Likewise.
34422 (videotest_mod_SOURCES): Likewise.
34423 (videotest_mod_CFLAGS): Likewise.
34424 (videotest_mod_LDFLAGS): Likewise.
34425 (bitmap_mod_SOURCES): Likewise.
34426 (bitmap_mod_CFLAGS): Likewise.
34427 (bitmap_mod_LDFLAGS): Likewise.
34428 (tga_mod_SOURCES): Likewise.
34429 (tga_mod_CFLAGS): Likewise.
34430 (tga_mod_LDFLAGS): Likewise.
34431 (jpeg_mod_SOURCES): Likewise.
34432 (jpeg_mod_CFLAGS): Likewise.
34433 (jpeg_mod_LDFLAGS): Likewise.
34434 (png_mod_SOURCES): Likewise.
34435 (png_mod_CFLAGS): Likewise.
34436 (png_mod_LDFLAGS): Likewise.
34437 (gfxterm_mod_SOURCES): Likewise.
34438 (gfxterm_mod_CFLAGS): Likewise.
34439 (gfxterm_mod_LDFLAGS): Likewise.
34440
34441 * term/gfxterm.c: Removed include to grub/machine/memory.h,
34442 grub/machine/console.h.
34443
34444 2009-01-04 Jerone Young <jerone@gmail.com>
34445
34446 Make on screen instructions clearer
34447
34448 Based on patch created by Jidanni <jidanni@jidanni.org>
34449
34450 * normal/menu.c: print clearer instructions on the screen
34451
34452 2009-01-02 Colin D Bennett <colin@gibibit.com>
34453
34454 New font engine.
34455
34456 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
34457 build system and fixed gfxterm.c to work with different sized fonts.
34458
34459 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34460
34461 * configure: Re-generated.
34462
34463 * DISTLIST: Removed font/manager.c.
34464 Added font/font.c.
34465 Added font/font_cmd.c.
34466
34467 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
34468 compilation.
34469
34470 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34471
34472 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
34473
34474 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34475
34476 * normal/menu.c: Likewise.
34477
34478 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
34479 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34480
34481 * include/grub/font.h: Replaced with new file.
34482
34483 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
34484 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
34485 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
34486 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
34487 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34488 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
34489 fg_red, fg_green, fg_blue, fg_alpha.
34490 (grub_video_adapter): Removed blit_glyph.
34491 (grub_video_blit_glyph): Removed.
34492
34493 * font/manager.c: Removed file.
34494
34495 * font/font.c: New file.
34496
34497 * font/font_cmd.c: Likewise.
34498
34499 * video/video.c (grub_video_blit_glyph): Removed.
34500
34501 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
34502 (grub_video_vbe_map_rgba): Likewise.
34503 (grub_video_vbe_unmap_color_int): Likewise.
34504 (grub_video_vbe_blit_glyph): Removed.
34505 (grub_video_vbe_adapter): Removed blit_glyph.
34506
34507 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
34508 (get_pixel): Likewise.
34509 (set_pixel): Likewise.
34510
34511 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34512
34513 * term/gfxterm.c: Adapted to new font engine.
34514
34515 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34516
34517 * term/i386/pc/vga.c: Likewise.
34518
34519 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34520
34521 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34522
34523 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34524
34525 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34526
34527 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34528
34529 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34530
34531 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34532
34533 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34534
34535 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34536
34537 * util/grub.d/00_header.in: Changed to use new loadfont command.
34538
34539 * util/grub-mkconfig_lib.in: Changed font extension.
34540
34541 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
34542
34543 * util/getroot.c (grub_util_get_grub_dev): Add support for
34544 /dev/md/dNNpNN style partitionable mdraid devices.
34545
34546 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
34547
34548 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
34549 at a time limit of the PXE TFTP API correctly.
34550 (grub_pxefs_close): Likewise.
34551
34552 2008-11-29 Robert Millan <rmh@aybabtu.com>
34553
34554 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
34555 grub_ata_device_initialize() calls.
34556
34557 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
34558
34559 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
34560 iteration failed.
34561 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
34562
34563 2008-11-28 Robert Millan <rmh@aybabtu.com>
34564
34565 Fix build on powerpc-ieee1275. Based on patch created by
34566 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
34567 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34568 `kern/ieee1275/mmap.c'.
34569 * include/grub/powerpc/ieee1275/memory.h: New file.
34570
34571 Provide grub-install on coreboot.
34572 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
34573 (grub_install_SOURCES): New variable.
34574 * util/i386/pc/grub-install.in: Add a few condition checks to make it
34575 usable on coreboot.
34576
34577 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
34578
34579 * util/grub-fstest.c (grub_term_get_current_input): Change return type
34580 to `grub_term_input_t'.
34581 (grub_term_get_current_output): Change return type to
34582 `grub_term_output_t'.
34583
34584 2008-11-22 Robert Millan <rmh@aybabtu.com>
34585
34586 Fix breakage on coreboot due to declaration mismatch.
34587 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
34588 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
34589 grub_vga_text_cls().
34590
34591 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34592 comments. Avoid copying one more byte than necessary (just in case).
34593
34594 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
34595 to 0x200000 (avoids trouble with some OFW implementations, and matches
34596 with the one in Yaboot).
34597 Reported by Manoel Abranches
34598
34599 2008-11-20 Robert Millan <rmh@aybabtu.com>
34600
34601 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
34602 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
34603
34604 * util/grub-mkconfig_lib.in (grub_warn): New function.
34605 (convert_system_path_to_grub_path): Use grub_warn() when issuing
34606 warnings, to obtain consistent formatting.
34607 * util/grub.d/00_header.in: Likewise.
34608 * util/update-grub_lib.in: Likewise.
34609
34610 * loader/i386/linux.c (allocate_pages): Fix a warning.
34611 Move comment text to `#error' stanza.
34612
34613 Harmonize ieee1275's grub_available_iterate() with the generic
34614 grub_machine_mmap_iterate() interface (fixes a recently-introduced
34615 build problem on i386-ieee1275):
34616 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
34617 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
34618 parameter `type'. Update all users of this function.
34619 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
34620 `kern/ieee1275/mmap.c'.
34621 * kern/ieee1275/init.c
34622 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
34623 with ...
34624 (grub_machine_mmap_iterate): ... this.
34625 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
34626 return type to `grub_err_t'. Update all implementations of this
34627 function prototype.
34628 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
34629 Likewise.
34630
34631 Add `lsmmap' command (lists firmware-provided memory map):
34632 * commands/lsmmap.c: New file.
34633 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
34634 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
34635 variables.
34636 * conf/powerpc-ieee1275.rmk: Likewise.
34637 * conf/i386-coreboot.rmk: Likewise.
34638 * conf/i386-ieee1275.rmk: Likewise.
34639
34640 2008-11-19 Robert Millan <rmh@aybabtu.com>
34641
34642 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
34643 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
34644 constraints to initrd allocation (based on code from
34645 loader/i386/pc/linux.c). Without them, initrd was allocated too high
34646 for Linux to find it.
34647
34648 2008-11-14 Robert Millan <rmh@aybabtu.com>
34649
34650 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
34651 order to cope with duplicate slashes.
34652
34653 2008-11-14 Robert Millan <rmh@aybabtu.com>
34654
34655 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
34656 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
34657 don't want to mess with lower memory, because it is used in the Linux
34658 loader.
34659
34660 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34661 an appropriate place in lower memory, between 0x10000 and 0x90000,
34662 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
34663 is in our heap (probably as a result of it being corrupted during
34664 decompression). Add #error instance with comment to explain why this
34665 loader isn't currently usable on PC/BIOS.
34666
34667 2008-11-14 Robert Millan <rmh@aybabtu.com>
34668
34669 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34670 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
34671
34672 2008-11-12 Robert Millan <rmh@aybabtu.com>
34673
34674 Make loader/i386/linux.c buildable on i386-pc (although disabled).
34675
34676 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
34677 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
34678 from here ...
34679 * include/grub/i386/pc/memory.h: ... to here.
34680
34681 2008-11-12 Robert Millan <rmh@aybabtu.com>
34682
34683 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
34684 split).
34685
34686 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
34687 (grub_console_cur_color, grub_console_real_putchar)
34688 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34689 (grub_console_setcolorstate, grub_console_setcolor)
34690 (grub_console_getcolor): Move from here ...
34691 * include/grub/i386/vga_common.h: ... to here (new file).
34692
34693 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
34694 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
34695 `<grub/i386/io.h>'.
34696 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
34697 `<grub/i386/vga_common.h>'.
34698
34699 2008-11-12 Robert Millan <rmh@aybabtu.com>
34700
34701 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
34702 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
34703 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
34704 variables.
34705 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34706 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
34707
34708 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
34709 grub_console_init() with call to grub_vga_text_init().
34710 (grub_machine_fini): Replace call to
34711 grub_console_fini() with call to grub_vga_text_fini() and
34712 grub_at_keyboard_fini().
34713
34714 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
34715 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34716 (grub_console_setcolorstate, grub_console_setcolor)
34717 (grub_console_getcolor): New function prototypes.
34718
34719 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
34720 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
34721 (grub_vga_text_setcursor): Static-ize.
34722 (grub_vga_text_term): New structure.
34723 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
34724
34725 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
34726 (grub_console_cur_color, grub_console_standard_color)
34727 (grub_console_normal_color, grub_console_highlight_color)
34728 (map_char, grub_console_putchar, grub_console_getcharwidth)
34729 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
34730 (grub_console_getcolor): Move from here ...
34731 * term/i386/vga_common.c: ... to here (same function names).
34732
34733 2008-11-12 Robert Millan <rmh@aybabtu.com>
34734
34735 Use newly-added Multiboot support in coreboot.
34736
34737 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34738 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
34739
34740 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
34741 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
34742 (codestart): Store the MBI in `startup_multiboot_info' when we're
34743 being loaded using Multiboot.
34744
34745 * kern/i386/coreboot/init.c (grub_machine_init): Move
34746 grub_at_keyboard_init() call to beginning of function (useful for
34747 debugging). Call grub_machine_mmap_init() before attempting to use
34748 grub_machine_mmap_iterate().
34749 (grub_lower_mem, grub_upper_mem): Move from here ...
34750 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
34751 here (new file).
34752
34753 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
34754 function prototype.
34755
34756 2008-11-12 Robert Millan <rmh@aybabtu.com>
34757
34758 Fix a regression introduced by the at_keyboard.mod split. Because
34759 some terminals are default on some platforms and non-default on
34760 others, the first terminal being registered determines which is
34761 going to be default.
34762
34763 * kern/term.c (grub_term_register_input): If this is the first
34764 terminal being registered, set it as the current one.
34765 (grub_term_register_output): Likewise.
34766
34767 * term/efi/console.c (grub_console_init): Do not call
34768 grub_term_set_current_output() or grub_term_set_current_input().
34769 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
34770 * term/i386/pc/console.c (grub_console_init): Likewise.
34771 (grub_console_fini): Do not call grub_term_set_current_input()
34772 (but leave grub_term_set_current_output() to restore text mode).
34773
34774 2008-11-10 Robert Millan <rmh@aybabtu.com>
34775
34776 * util/grub.d/00_header.in: Add backward compatibility check for
34777 versions of terminal.mod that don't understand `terminal_input' or
34778 `terminal_output'.
34779
34780 2008-11-09 Robert Millan <rmh@aybabtu.com>
34781
34782 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
34783 `terminal_input' / `terminal_output', not `terminal'.
34784
34785 2008-11-08 Robert Millan <rmh@aybabtu.com>
34786
34787 * Makefile.in (include_DATA): Fix srcdir=. assumption.
34788 (DISTCLEANFILES): Add `build_env.mk'.
34789
34790 2008-11-08 Robert Millan <rmh@aybabtu.com>
34791
34792 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
34793 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34794 members. Update all users.
34795 * util/console.c (grub_ncurses_term): Split in ...
34796 (grub_ncurses_term_input): ... this, and ...
34797 (grub_ncurses_term_output): ... this. Update all users.
34798 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
34799
34800 2008-11-08 Robert Millan <rmh@aybabtu.com>
34801
34802 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
34803 (PKGDATA): Add $(pkgdata_SRCDIR).
34804 (pkglib_BUILDDIR): New variable.
34805 (pkgdata_SRCDIR): New variable.
34806 (build_env.mk): New target.
34807 (include_DATA): New variable.
34808 (install-local): Install $(include_DATA) files in $(includedir).
34809
34810 2008-11-07 Pavel Roskin <proski@gnu.org>
34811
34812 * gendistlist.sh: Use C locale for sorting to ensure consistent
34813 output on all systems.
34814
34815 * util/grub.d/00_header.in: Remove incorrect space before
34816 "serial".
34817
34818 2008-11-07 Robert Millan <rmh@aybabtu.com>
34819
34820 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
34821 per specification.
34822 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
34823 * loader/multiboot_loader.c (find_multi_boot2_header): New function
34824 (based on find_multi_boot1_header).
34825 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
34826 using find_multi_boot2_header(), and abort if neither Multiboot or
34827 Multiboot headers were found.
34828
34829 2008-11-07 Robert Millan <rmh@aybabtu.com>
34830
34831 Modularize at_keyboard.mod:
34832
34833 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
34834 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
34835 (at_keyboard_mod_LDFLAGS): New variables.
34836
34837 Actual terminal split:
34838
34839 * include/grub/term.h (struct grub_term): Split in ...
34840 (struct grub_term_input): ... this, and ...
34841 (struct grub_term_output): ... this. Update all users.
34842 (grub_term_set_current): Split in ...
34843 (grub_term_set_current_input): ... this, and ...
34844 (grub_term_set_current_output): ... this.
34845 (grub_term_get_current): Split in ...
34846 (grub_term_get_current_input): ... this, and ...
34847 (grub_term_get_current_output): ... this.
34848 (grub_term_register): Split in ...
34849 (grub_term_register_input): ... this, and ...
34850 (grub_term_register_output): ... this.
34851 (grub_term_unregister): Split in ...
34852 (grub_term_unregister_input): ... this, and ...
34853 (grub_term_unregister_output): ... this.
34854 (grub_term_iterate): Split in ...
34855 (grub_term_iterate_input): ... this, and ...
34856 (grub_term_iterate_output): ... this.
34857
34858 * kern/term.c (grub_term_list): Split in ...
34859 (grub_term_list_input): ... this, and ...
34860 (grub_term_list_output): ... this. Update all users.
34861 (grub_cur_term): Split in ...
34862 (grub_cur_term_input): ... this, and ...
34863 (grub_cur_term_output): ... this. Update all users.
34864 (grub_term_set_current): Split in ...
34865 (grub_term_set_current_input): ... this, and ...
34866 (grub_term_set_current_output): ... this.
34867 (grub_term_get_current): Split in ...
34868 (grub_term_get_current_input): ... this, and ...
34869 (grub_term_get_current_output): ... this.
34870 (grub_term_register): Split in ...
34871 (grub_term_register_input): ... this, and ...
34872 (grub_term_register_output): ... this.
34873 (grub_term_unregister): Split in ...
34874 (grub_term_unregister_input): ... this, and ...
34875 (grub_term_unregister_output): ... this.
34876 (grub_term_iterate): Split in ...
34877 (grub_term_iterate_input): ... this, and ...
34878 (grub_term_iterate_output): ... this.
34879
34880 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
34881 a check for input and one for output (and only attempt to get keys
34882 from user when input works).
34883
34884 * util/grub-probe.c (grub_term_get_current): Split in ...
34885 (grub_term_get_current_input): ... this, and ...
34886 (grub_term_get_current_output): ... this.
34887 * util/grub-fstest.c: Likewise.
34888 * util/i386/pc/grub-setup.c: Likewise.
34889 * util/grub-editenv.c: Likewise.
34890
34891 Portability adjustments:
34892
34893 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
34894 `term/i386/pc/at_keyboard.c'.
34895 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
34896 grub_keyboard_controller_init() (now handled by terminal .init).
34897 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
34898 grub_at_keyboard_init().
34899 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
34900 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
34901 at_keyboard.mod via input terminal interface).
34902 * include/grub/i386/coreboot/console.h: Convert into a stub for
34903 `<grub/i386/pc/console.h>'.
34904
34905 Migrate full terminals to new API:
34906
34907 * term/efi/console.c (grub_console_term): Split into ...
34908 (grub_console_term_input): ... this, and ...
34909 (grub_console_term_output): ... this. Update all users.
34910 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
34911 (grub_ofconsole_init): Split into ...
34912 (grub_ofconsole_init_input): ... this, and ...
34913 (grub_ofconsole_init_output): ... this.
34914 (grub_ofconsole_term): Split into ...
34915 (grub_ofconsole_term_input): ... this, and ...
34916 (grub_ofconsole_term_output): ... this. Update all users.
34917 * term/i386/pc/serial.c (grub_serial_term): Split into ...
34918 (grub_serial_term_input): ... this, and ...
34919 (grub_serial_term_output): ... this. Update all users.
34920 * term/i386/pc/console.c (grub_console_term): Split into ...
34921 (grub_console_term_input): ... this, and ...
34922 (grub_console_term_output): ... this. Update all users.
34923 (grub_console_term_input): Only enable it on PC/BIOS platform.
34924 (grub_console_init): Remove grub_keyboard_controller_init() call.
34925
34926 Migrate input terminals to new API:
34927
34928 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
34929 `i386' and `i386/pc' to enable build on x86_64 (this driver is
34930 i386-specific anyway).
34931 (grub_console_checkkey): Rename to ...
34932 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
34933 users.
34934 (grub_keyboard_controller_orig): New variable.
34935 (grub_console_getkey): Rename to ...
34936 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
34937 users.
34938 (grub_keyboard_controller_init): Static-ize. Save original
34939 controller value so that it can be restored ...
34940 (grub_keyboard_controller_fini): ... here (new function).
34941 (grub_at_keyboard_term): New structure.
34942 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
34943 functions.
34944
34945 Migrate output terminals to new API:
34946
34947 * term/i386/pc/vga.c (grub_vga_term): Change type to
34948 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34949 members. Update all users.
34950 * term/gfxterm.c (grub_video_term): Change type to
34951 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34952 members. Update all users.
34953 * include/grub/i386/pc/console.h (grub_console_checkkey)
34954 (grub_console_getkey): Do not export (no longer needed by gfxterm,
34955 etc).
34956
34957 Migrate `terminal' command and userland tools to new API:
34958
34959 * commands/terminal.c (grub_cmd_terminal): Split into ...
34960 (grub_cmd_terminal_input): ... this, and ...
34961 (grub_cmd_terminal_output): ... this.
34962 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
34963 `terminal_input' and `terminal_output'.
34964 * util/grub.d/00_header.in: Adjust `terminal' calls to new
34965 `terminal_input' / `terminal_output' API.
34966 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
34967 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
34968 provided ${GRUB_TERMINAL}, convert it).
34969
34970 2008-11-04 Robert Millan <rmh@aybabtu.com>
34971
34972 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
34973 for FreeBSD.
34974 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
34975
34976 2008-11-03 Bean <bean123ch@gmail.com>
34977
34978 * kern/elf.c (grub_elf32_load): Revert to previous code.
34979 (grub_elf64_load): Likewise.
34980
34981 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
34982
34983 2008-11-01 Robert Millan <rmh@aybabtu.com>
34984
34985 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
34986 (TARGET_CPPFLAGS): Likewise.
34987 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
34988
34989 2008-11-01 Carles Pina i Estany <carles@pina.cat>
34990
34991 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
34992
34993 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34994
34995 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
34996 addition of objects until the code is not going to be able to fail.
34997
34998 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34999
35000 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
35001 (add a missing NULL check, and correct them by moving the pointer
35002 operations after the actual check).
35003
35004 2008-10-29 Robert Millan <rmh@aybabtu.com>
35005
35006 * util/i386/pc/grub-install.in: Handle empty string as output from
35007 make_system_path_relative_to_its_root().
35008
35009 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
35010
35011 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
35012 circular metadata worst case scenario. If the metadata is circular
35013 then copy the wrap in place.
35014 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
35015 project lib/format_text/layout.h
35016 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
35017
35018 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
35019
35020 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
35021
35022 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
35023
35024 * util/update-grub_lib.in: Mention filename in warning message.
35025
35026 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
35027
35028 * NEWS: Update for rename of update-grub to grub-mkconfig.
35029
35030 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
35031
35032 * util/update-grub_lib.in: Copy to ...
35033 * util/grub-mkconfig_lib.in: ... this. Update all users.
35034 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
35035 * util/update-grub.in: Rename to ...
35036 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
35037 option. Add `--output' option to allow users to specify the generated
35038 configuration file. Default to stdout.
35039 (update_grub_dir): Rename to ...
35040 (grub_mkconfig_dir): ... this.
35041 (grub_cfg): Default to an empty string.
35042 * conf/common.rmk (update-grub): Rename to ...
35043 (grub-mkconfig): ... this.
35044 (update-grub_lib): Copy to ...
35045 (grub-mkconfig_lib): ... this.
35046 (update-grub_SCRIPTS): Copy to ...
35047 (grub-mkconfig_SCRIPTS): ... this. Update all users.
35048 (update-grub_DATA): Rename to ...
35049 (grub-mkconfig_DATA): ... this.
35050
35051 2008-09-28 Robert Millan <rmh@aybabtu.com>
35052
35053 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
35054 to `modified'. Add the real `created' field.
35055 (grub_iso9660_uuid): Use `modified' rather than `created' for
35056 constructing the UUID.
35057
35058 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
35059
35060 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
35061 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
35062
35063 2008-09-28 Bean <bean123ch@gmail.com>
35064
35065 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
35066 Thanks to Christian Franke for finding this bug.
35067
35068 2008-09-25 Robert Millan <rmh@aybabtu.com>
35069
35070 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
35071 instances of grub_util_get_disk_name() (see previous commit).
35072
35073 2008-09-25 Robert Millan <rmh@aybabtu.com>
35074
35075 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
35076 `util/i386/get_disk_name.c'.
35077 * conf/i386-efi.rmk: Likewise.
35078 * conf/x86_64-efi.rmk: Likewise.
35079 * conf/i386-coreboot.rmk: Likewise.
35080 * conf/i386-ieee1275.rmk: Likewise.
35081 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
35082 `util/ieee1275/get_disk_name.c'.
35083 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
35084 * util/ieee1275/get_disk_name.c: Remove file.
35085 * util/i386/get_disk_name.c: Remove file.
35086 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
35087 "hd%d" for device.map entries, rather than using
35088 grub_util_get_disk_name().
35089
35090 2008-09-24 Carles Pina i Estany <carles@pina.cat>
35091
35092 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
35093 warning.
35094 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
35095
35096 2008-09-24 Carles Pina i Estany <carles@pina.cat>
35097
35098 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
35099 Changed to 0x5100.
35100 (GRUB_TERM_PPAGE): Changed to 0x4900.
35101
35102 2008-09-24 Robert Millan <rmh@aybabtu.com>
35103
35104 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
35105 macros (they were i386-pc specific).
35106 * include/grub/sparc64/ieee1275/console.h: Likewise.
35107 * include/grub/efi/console.h: Likewise.
35108
35109 2008-09-22 Bean <bean123ch@gmail.com>
35110
35111 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
35112 resident and in attribute list.
35113
35114 * include/grub/ntfs.h (BMP_LEN): Removed.
35115
35116 2008-09-22 Bean <bean123ch@gmail.com>
35117
35118 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
35119 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
35120
35121 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
35122 error occurs, as grub_disk_open will call grub_disk_close, which will
35123 call p->close (scsi).
35124
35125 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
35126
35127 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
35128 (AC_PREREQ): Bumped to 2.59.
35129 (AC_TRY_COMPILE): Replace obsolete macro with ...
35130 (AC_COMPILE_IFELSE): ... this.
35131 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
35132 (AC_LINK_IFELSE): ... this.
35133
35134 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
35135
35136 * autogen.sh: Add a call to `gendistlist.sh'.
35137
35138 2008-09-19 Christian Franke <franke@computer.org>
35139
35140 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
35141 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
35142 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
35143 Export __enable_execute_stack() to modules.
35144 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
35145 New function.
35146
35147 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
35148
35149 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
35150 Sort the list.
35151
35152 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
35153
35154 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
35155 #include <grub/util/hostdisk.h>.
35156
35157 2008-09-08 Robert Millan <rmh@aybabtu.com>
35158
35159 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
35160 segments when their filesz is zero (grub_file_read() interprets
35161 zero-size as "read until EOF", which results in memory corruption).
35162 Use `lowest_segment' rather than 0 for calculating the current
35163 segment load address.
35164
35165 2008-09-08 Robert Millan <rmh@aybabtu.com>
35166
35167 * util/hostdisk.c (open_device): Replace a grub_util_info() call
35168 with grub_dprintf("hostdisk", ...), as it was so verbose that it
35169 clobbered useful information.
35170
35171 2008-09-08 Robert Millan <rmh@aybabtu.com>
35172
35173 * include/grub/util/biosdisk.h: Move to ...
35174 * include/grub/util/hostdisk.h: ... here. Update all users.
35175 * util/biosdisk.c: Move to ...
35176 * util/hostdisk.c: ... here. Update all users.
35177
35178 2008-09-07 Robert Millan <rmh@aybabtu.com>
35179
35180 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
35181 variables.
35182 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
35183 and length can be stored directly in the `mbi->mmap_addr' and
35184 `mbi->mmap_length' struct fields.
35185
35186 2008-09-07 Robert Millan <rmh@aybabtu.com>
35187
35188 * conf/i386.rmk: New file. Provides declaration for building
35189 `cpuid.mod'.
35190 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
35191 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
35192 variables.
35193 Include `conf/i386.mk'.
35194 * conf/i386-efi.rmk: Likewise.
35195 * conf/x86_64-efi.rmk: Likewise.
35196 * conf/i386-coreboot.rmk: Likewise.
35197 * conf/i386-ieee1275.rmk: Likewise.
35198
35199 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
35200
35201 Based on patch created by Colin D Bennett <colin@gibibit.com>.
35202 Adds optimization support for BGR based modes.
35203
35204 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
35205 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35206 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35207 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35208 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35209 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35210 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35211 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35212 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35213 (grub_video_i386_vbeblit_index_index): Likewise.
35214 (grub_video_i386_vbeblit_replace_directN): Added.
35215 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35216 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35217 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35218 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35219 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35220 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
35221 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
35222 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35223 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35224 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35225 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35226 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35227 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
35228
35229 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
35230 (grub_video_i386_vbefill_R8G8B8): Likewise.
35231 (grub_video_i386_vbefill_index): Likewise.
35232 (grub_video_i386_vbefill_direct32): Added.
35233 (grub_video_i386_vbefill_direct24): Likewise.
35234 (grub_video_i386_vbefill_direct16): Likewise.
35235 (grub_video_i386_vbefill_direct8): Likewise.
35236
35237 * include/grub/video.h (grub_video_blit_format): Removed
35238 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
35239 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
35240 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
35241 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
35242 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
35243
35244 * video/video.c (grub_video_get_blit_format): Updated to use new
35245 blit formats. Added handling for 16 bit color modes.
35246
35247 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
35248 fillers.
35249 (common_blitter): Updated to use new blitters.
35250
35251 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
35252 Removed.
35253 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35254 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35255 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35256 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35257 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35258 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35259 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35260 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35261 (grub_video_i386_vbeblit_index_index): Likewise.
35262 (grub_video_i386_vbeblit_replace_directN): Added.
35263 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35264 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35265 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35266 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35267 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35268 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
35269 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
35270 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35271 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35272 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35273 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35274 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35275 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
35276
35277 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
35278 (grub_video_i386_vbefill_R8G8B8): Likewise.
35279 (grub_video_i386_vbefill_index): Likewise.
35280 (grub_video_i386_vbefill_direct32): Added.
35281 (grub_video_i386_vbefill_direct24): Likewise.
35282 (grub_video_i386_vbefill_direct16): Likewise.
35283 (grub_video_i386_vbefill_direct8): Likewise.
35284
35285 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
35286 types.
35287
35288 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
35289 types.
35290
35291 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
35292 blitter types.
35293
35294 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
35295 types.
35296
35297 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
35298
35299 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
35300 RAID level 1.
35301
35302 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
35303
35304 * fs/iso9660.c (grub_iso9660_date): New structure.
35305 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
35306 (grub_iso9660_uuid): New function.
35307
35308 2008-09-05 Bean <bean123ch@gmail.com>
35309
35310 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
35311
35312 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
35313 insensitive bit for names in Win32 and Win32 & DOS namespace.
35314
35315 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
35316
35317 * include/grub/types.h (LONG_MAX): Likewise.
35318
35319 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
35320
35321 * util/getroot.c: Include <config.h>.
35322 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
35323 add support for /dev/md/N devices and handle LVM double dash escaping.
35324
35325 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
35326
35327 * config.guess: Update to latest version from config git.
35328 * config.sub: Likewise.
35329
35330 2008-09-03 Robert Millan <rmh@aybabtu.com>
35331
35332 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
35333 `disk->total_sectors'.
35334
35335 2008-09-01 Colin D Bennett <colin@gibibit.com>
35336
35337 * include/grub/normal.h: Fixed incorrect comment for
35338 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
35339
35340 2008-09-01 Colin D Bennett <colin@gibibit.com>
35341
35342 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
35343 values with defines.
35344
35345 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
35346 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
35347 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
35348 (GRUB_VBE_MODEATTR_COLOR): Likewise.
35349 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
35350 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
35351 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
35352 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
35353 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
35354 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
35355 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
35356 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
35357 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
35358 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
35359 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
35360 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
35361 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
35362 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
35363 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
35364
35365 2008-08-31 Robert Millan <rmh@aybabtu.com>
35366
35367 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
35368 declaration.
35369 (grub_multiboot): Fix a few warnings.
35370
35371 2008-08-31 Robert Millan <rmh@aybabtu.com>
35372
35373 * loader/i386/pc/multiboot.c: Update comment not to say that
35374 boot_device support is unimplemented.
35375
35376 2008-08-31 Robert Millan <rmh@aybabtu.com>
35377
35378 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
35379 or memory map support are unimplemented.
35380
35381 2008-08-31 Colin D Bennett <colin@gibibit.com>
35382
35383 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
35384
35385 2008-08-31 Colin D Bennett <colin@gibibit.com>
35386
35387 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
35388 total video memory in 'vbeinfo' output; show color format details for
35389 each video mode.
35390
35391 2008-08-30 Pavel Roskin <proski@gnu.org>
35392
35393 * util/genmoddep.c: Remove for real this time.
35394 * DISTLIST: Remove util/genmoddep.c.
35395
35396 2008-08-30 Robert Millan <rmh@aybabtu.com>
35397
35398 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
35399 as required by Multiboot spec (it was already 4-byte aligned, but
35400 only by chance).
35401
35402 2008-08-29 Pavel Roskin <proski@gnu.org>
35403
35404 * kern/powerpc/ieee1275/crt0.S: Rename to ...
35405 * kern/powerpc/ieee1275/startup.S: ... this.
35406 * conf/powerpc-ieee1275.rmk: Adjust for the above.
35407 * DISTLIST: Likewise.
35408
35409 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
35410 grub/cpu/kernel.h. Add start label for consistency with other
35411 platforms. Add grub_prefix immediately after start. Add jump
35412 to the code after grub_prefix.
35413 * include/grub/powerpc/kernel.h: Provide valid values for
35414 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
35415
35416 2008-08-29 Bean <bean123ch@gmail.com>
35417
35418 * configure.ac: Change host_os to cygwin for mingw.
35419 (asprintf): New check for function.
35420
35421 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
35422 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
35423
35424 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
35425 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
35426 sync, sleep and grub_util_get_disk_size for mingw.
35427
35428 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
35429 to get size in mingw.
35430 (open_device): Use flag O_BINARY if it's defined.
35431 (find_root_device): Add dummy code for mingw.
35432
35433 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
35434 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
35435 (get_scsi_disk_name): Return 0 for mingw.
35436
35437 * util/hostfs.c: #include <grub/util/misc.h>.
35438 (grub_hostfs_open): Use "rb" flag to open file, use
35439 grub_util_get_disk_size to get disk size for mingw.
35440
35441 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
35442 (asprintf): New function if HAVE_ASPRINTF is not set.
35443 (sync): New function for mingw.
35444 (sleep): Likewise.
35445 (grub_util_get_disk_size): Likewise.
35446
35447 2008-08-28 Pavel Roskin <proski@gnu.org>
35448
35449 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35450 kern/time.c.
35451
35452 2008-08-28 Robert Millan <rmh@aybabtu.com>
35453
35454 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
35455
35456 2008-08-28 Robert Millan <rmh@aybabtu.com>
35457
35458 Change find_grub_drive() syntax so it doesn't prevent it from
35459 detecting NULL names as errors.
35460
35461 * util/biosdisk.c (find_grub_drive): Move free slot search code
35462 from here ...
35463 (find_free_slot): ... to here.
35464 (read_device_map): Use find_free_slot() to search for free slots.
35465
35466 2008-08-27 Marco Gerards <marco@gnu.org>
35467
35468 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
35469 (scsi_mod_SOURCES): New variable.
35470 (scsi_mod_CFLAGS): Likewise
35471 (scsi_mod_LDFLAGS): Likewise.
35472
35473 * disk/scsi.c: New file.
35474
35475 * include/grub/scsi.h: Likewise.
35476
35477 * include/grub/scsicmd.h: Likewise.
35478
35479 * disk/ata.c: Include <grub/scsi.h>.
35480 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
35481 instead.
35482 (grub_ata_iterate): Skip ATAPI devices.
35483 (grub_ata_open): Only handle ATAPI devices.
35484 (struct grub_atapi_read): Removed.
35485 (grub_atapi_readsector): Likewise.
35486 (grub_ata_read): No longer handle ATAPI devices.
35487 (grub_ata_write): Likewise.
35488 (grub_atapi_iterate): New function.
35489 (grub_atapi_read): Likewise.
35490 (grub_atapi_write): Likewise.
35491 (grub_atapi_open): Likewise.
35492 (grub_atapi_close): Likewise.
35493 (grub_atapi_dev): New variable.
35494 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
35495 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
35496
35497 * include/grub/disk.h (enum grub_disk_dev_id): Add
35498 `GRUB_DISK_DEVICE_SCSI_ID'.
35499
35500 2008-08-26 Robert Millan <rmh@aybabtu.com>
35501
35502 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
35503 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
35504 descriptive.
35505
35506 2008-08-23 Bean <bean123ch@gmail.com>
35507
35508 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
35509 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35510 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
35511 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
35512 dm_nv.mod.
35513 (raid5rec_mod_SOURCES): New macro.
35514 (raid5rec_mod_CFLAGS): Likewise.
35515 (raid5rec_mod_LDFLAGS): Likewise.
35516 (raid6rec_mod_SOURCES): Likewise.
35517 (raid6rec_mod_CFLAGS): Likewise.
35518 (raid6rec_mod_LDFLAGS): Likewise.
35519 (mdraid_mod_SOURCES): Likewise.
35520 (mdraid_mod_CFLAGS): Likewise.
35521 (mdraid_mod_LDFLAGS): Likewise.
35522 (dm_nv_mod_SOURCES): Likewise.
35523 (dm_nv_mod_CFLAGS): Likewise.
35524 (dm_nv_mod_LDFLAGS): Likewise.
35525
35526 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
35527 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35528 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35529
35530 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
35531 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35532
35533 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35534
35535 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35536
35537 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35538
35539 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35540
35541 * disk/raid5_recover.c: New file.
35542
35543 * disk/raid6_recover.c: Likewise.
35544
35545 * disk/mdraid_linux.c: Likewise.
35546
35547 * disk/dmraid_nvidia.c: Likewise.
35548
35549 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
35550 ULONG_MAX.
35551
35552 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
35553 calculate the size of raid device.
35554 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
35555 different layout of raid5.
35556 (grub_raid_scan_device): Remove code specific to mdraid.
35557 (grub_raid_list): New variable.
35558 (free_array): New function.
35559 (grub_raid_register): Likewise.
35560 (grub_raid_unregister): Likewise.
35561 (grub_raid_rescan): Likewise.
35562 (GRUB_MOD_INIT): Don't iterate device here.
35563 (GRUB_MOD_FINI): Use free_array to release resource.
35564
35565 * include/grub/raid.h: Remove macro and structure specific to mdraid.
35566 (grub_raid5_recover_func_t): New function variable type.
35567 (grub_raid6_recover_func_t): Likewise.
35568 (grub_raid5_recover_func): New variable.
35569 (grub_raid6_recover_func): Likewise.
35570 (grub_raid_register): New function.
35571 (grub_raid_unregister): Likewise.
35572 (grub_raid_rescan): Likewise.
35573 (grub_raid_block_xor): Likewise.
35574
35575 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
35576 (CMD_CRC): New macro.
35577 (part): Removed.
35578 (read_file): Handle device as well as file.
35579 (cmd_crc): New function.
35580 (fstest): Handle multiple disks.
35581 (options): Remove part, raw and long, add root and diskcount.
35582 (usage): Add crc, remove -p, -r, -l, add -r and -c.
35583 (main): Find the first non option entry and ignore subsequent options,
35584 add handling for the new options, support multiple disks.
35585
35586 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
35587
35588 2008-08-23 Bean <bean123ch@gmail.com>
35589
35590 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
35591
35592 * genfslist.sh: Ignore kernel.mod.
35593
35594 * genpartmaplist.sh: Likewise.
35595
35596 2008-08-23 Robert Millan <rmh@aybabtu.com>
35597
35598 * util/getroot.c (find_root_device): Skip anything that starts with
35599 a dot, not just directories. This avoids things like /dev/.tmp.md0.
35600
35601 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
35602
35603 * util/update-grub.in (GRUB_GFXMODE): Export variable.
35604 * util/grub.d/00_header.in: Allow the administrator to change default
35605 gfxmode via ${GRUB_GFXMODE}.
35606
35607 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
35608
35609 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
35610
35611 2008-08-21 Robert Millan <rmh@aybabtu.com>
35612
35613 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
35614 loader.
35615 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
35616 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
35617
35618 2008-08-20 Carles Pina i Estany <carles@pina.cat>
35619
35620 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
35621 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
35622
35623 2008-08-19 Robert Millan <rmh@aybabtu.com>
35624
35625 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
35626 (struct grub_virtual_screen): Remove `cursor_color'.
35627 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
35628 initialization.
35629 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
35630
35631 2008-08-18 Robert Millan <rmh@aybabtu.com>
35632
35633 Unify (identical) linux_normal.c files.
35634 * loader/i386/efi/linux_normal.c: Move from here ...
35635 * loader/linux_normal.c: ... to here. Update all users.
35636 * loader/i386/pc/linux_normal.c: Delete. Update all users.
35637 * loader/i386/ieee1275/linux_normal.c: Likewise.
35638
35639 2008-08-18 Robert Millan <rmh@aybabtu.com>
35640
35641 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
35642 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
35643 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
35644 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
35645 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
35646 New macros.
35647 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
35648 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
35649 (GRUB_LINUX_CL_END_OFFSET): ... to here.
35650 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
35651 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
35652 (GRUB_EFI_CL_END_OFFSET): Rename to ...
35653 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
35654 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
35655 Initialize `params->video_cursor_x' and `params->video_cursor_y'
35656 portably using grub_getxy().
35657 Replace `-EFI' with `-bzImage' in boot message.
35658
35659 2008-08-17 Robert Millan <rmh@aybabtu.com>
35660
35661 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
35662
35663 2008-08-17 Robert Millan <rmh@aybabtu.com>
35664
35665 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
35666
35667 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
35668 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
35669 (grub_machine_mmap_iterate): New function declaration.
35670 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
35671 structure.
35672 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
35673 macros.
35674
35675 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
35676 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
35677 Move e820 parsing from here ...
35678 * kern/i386/pc/mmap.c: New file.
35679 (grub_machine_mmap_iterate): ... to here.
35680
35681 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
35682 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
35683 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
35684 (grub_available_iterate): Redeclare to return `void', and redeclare
35685 its hook to use grub_uint64_t as addr and size parameters, and rename
35686 to ...
35687 (grub_machine_mmap_iterate): ... this. Update all users.
35688
35689 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
35690 to make it more readable. Rename to ...
35691 (grub_machine_mmap_iterate): ... this.
35692
35693 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
35694 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
35695 (grub_multiboot): Allocate an extra region after the payload, and fill
35696 it with a Multiboot memory map. Adjust a.out loader to calculate size
35697 with the extra space.
35698 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
35699 with the extra space.
35700
35701 2008-08-17 Carles Pina i Estany <carles@pina.cat>
35702
35703 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
35704
35705 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
35706
35707 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
35708 mdate-sh to the list `find' searches for.
35709 * DISTLIST: Regenerated.
35710
35711 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
35712
35713 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
35714 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
35715 genmoddep.awk, gensymlist.sh.in.
35716 (DISTDIRS): Add bus, docs, hook, lib.
35717 * DISTLIST: Regenerated.
35718 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
35719
35720 2008-08-16 Robert Millan <rmh@aybabtu.com>
35721
35722 * disk/raid.c (grub_raid_init): Handle/report errors set by
35723 grub_device_iterate().
35724 * disk/lvm.c (grub_lvm_init): Likewise.
35725
35726 2008-08-15 Bean <bean123ch@gmail.com>
35727
35728 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35729 and datehook.mod.
35730 (datetime_mod_SOURCES): New macro.
35731 (datetime_mod_CFLAGS): Likewise.
35732 (datetime_mod_LDFLAGS): Likewise.
35733 (date_mod_SOURCES): Likewise.
35734 (date_mod_CFLAGS): Likewise.
35735 (date_mod_LDFLAGS): Likewise.
35736 (datehook_mod_SOURCES): Likewise.
35737 (datehook_mod_CFLAGS): Likewise.
35738 (datehook_mod_LDFLAGS): Likewise.
35739
35740 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35741 and datehook.mod.
35742 (datetime_mod_SOURCES): New macro.
35743 (datetime_mod_CFLAGS): Likewise.
35744 (datetime_mod_LDFLAGS): Likewise.
35745 (date_mod_SOURCES): Likewise.
35746 (date_mod_CFLAGS): Likewise.
35747 (date_mod_LDFLAGS): Likewise.
35748 (datehook_mod_SOURCES): Likewise.
35749 (datehook_mod_CFLAGS): Likewise.
35750 (datehook_mod_LDFLAGS): Likewise.
35751
35752 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35753 and datehook.mod.
35754 (datetime_mod_SOURCES): New macro.
35755 (datetime_mod_CFLAGS): Likewise.
35756 (datetime_mod_LDFLAGS): Likewise.
35757 (date_mod_SOURCES): Likewise.
35758 (date_mod_CFLAGS): Likewise.
35759 (date_mod_LDFLAGS): Likewise.
35760 (datehook_mod_SOURCES): Likewise.
35761 (datehook_mod_CFLAGS): Likewise.
35762 (datehook_mod_LDFLAGS): Likewise.
35763
35764 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35765 and datehook.mod.
35766 (datetime_mod_SOURCES): New macro.
35767 (datetime_mod_CFLAGS): Likewise.
35768 (datetime_mod_LDFLAGS): Likewise.
35769 (date_mod_SOURCES): Likewise.
35770 (date_mod_CFLAGS): Likewise.
35771 (date_mod_LDFLAGS): Likewise.
35772 (datehook_mod_SOURCES): Likewise.
35773 (datehook_mod_CFLAGS): Likewise.
35774 (datehook_mod_LDFLAGS): Likewise.
35775
35776 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35777 and datehook.mod.
35778 (datetime_mod_SOURCES): New macro.
35779 (datetime_mod_CFLAGS): Likewise.
35780 (datetime_mod_LDFLAGS): Likewise.
35781 (date_mod_SOURCES): Likewise.
35782 (date_mod_CFLAGS): Likewise.
35783 (date_mod_LDFLAGS): Likewise.
35784 (datehook_mod_SOURCES): Likewise.
35785 (datehook_mod_CFLAGS): Likewise.
35786 (datehook_mod_LDFLAGS): Likewise.
35787
35788 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
35789
35790 * commands/date.c: New file.
35791
35792 * hook/datehook.c: Likewise.
35793
35794 * include/grub/lib/datetime.h: Likewise.
35795
35796 * include/grub/i386/cmos.h: Likewise.
35797
35798 * lib/datetime.c: Likewise.
35799
35800 * lib/i386/datetime.c: Likewise.
35801
35802 * lib/efi/datetime.c: Likewise.
35803
35804 2008-08-14 Robert Millan <rmh@aybabtu.com>
35805
35806 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
35807 (grub_mkelfimage_SOURCES): New variable.
35808 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
35809
35810 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
35811 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
35812 * conf/powerpc-ieee1275.rmk: Likewise.
35813 * conf/i386-ieee1275.rmk: Likewise.
35814
35815 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
35816 * kern/i386/coreboot/init.c: Likewise.
35817
35818 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
35819 with `<grub/cpu/kernel.h>'.
35820 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
35821 to ...
35822 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
35823 * kern/i386/coreboot/startup.S: Likewise.
35824
35825 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
35826 (GRUB_MOD_GAP): Remove.
35827 * include/grub/powerpc/kernel.h: New file.
35828 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
35829 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35830 * include/grub/i386/kernel.h: New file.
35831 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
35832 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
35833 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35834
35835 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
35836 `grub-mkelfimage'.
35837 Use --directory when invoking grub_mkimage.
35838
35839 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
35840 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
35841 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
35842 and GRUB_KERNEL_CPU_PREFIX.
35843
35844 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
35845
35846 * include/grub/err.h (grub_err_printf): New function prototype.
35847 * util/misc.c (grub_err_printf): New function.
35848 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
35849 grub_printf.
35850 * kern/err.c (grub_print_error): Use grub_err_printf.
35851
35852 2008-08-13 Robert Millan <rmh@aybabtu.com>
35853
35854 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
35855
35856 2008-08-13 Robert Millan <rmh@aybabtu.com>
35857
35858 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
35859 boot entry.
35860
35861 2008-08-12 Robert Millan <rmh@aybabtu.com>
35862
35863 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
35864 of the relocation code from here ...
35865 (grub_multiboot): ... to here.
35866 (forward_relocator, backward_relocator): Move from here ...
35867 * kern/i386/loader.S (grub_multiboot_forward_relocator)
35868 (grub_multiboot_backward_relocator): ... to here.
35869 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
35870 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
35871 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
35872 (grub_multiboot_forward_relocator_end)
35873 (grub_multiboot_backward_relocator)
35874 (grub_multiboot_backward_relocator_end): New variables.
35875
35876 2008-08-12 Bean <bean123ch@gmail.com>
35877
35878 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
35879
35880 2008-08-11 Robert Millan <rmh@aybabtu.com>
35881
35882 * kern/i386/linuxbios/startup.S: Move from here ...
35883 * kern/i386/coreboot/startup.S: ... to here.
35884
35885 * kern/i386/linuxbios/init.c: Move from here ...
35886 * kern/i386/coreboot/init.c: ... to here.
35887
35888 * kern/i386/linuxbios/table.c: Move from here ...
35889 * kern/i386/coreboot/mmap.c: ... to here.
35890
35891 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
35892
35893 2008-08-11 Robert Millan <rmh@aybabtu.com>
35894
35895 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
35896 errors. Leave it to the upper layer to handle them.
35897
35898 2008-08-09 Christian Franke <franke@computer.org>
35899
35900 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
35901 * conf/common.rmk: Install `grub-pe2elf' only if requested.
35902 Install `grub.d/10_windows' only on Cygwin.
35903 * configure.ac: Add subst of `target_os'.
35904 Check `target_os' also before setting TARGET_OBJ2ELF.
35905 Add `--enable-grub-pe2elf'.
35906
35907 2008-08-08 Robert Millan <rmh@aybabtu.com>
35908
35909 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35910 (grub_last_time): Change type to grub_uint64_t.
35911 (grub_disk_open): Migrate code from to using grub_get_time_ms().
35912 (grub_disk_close): Likewise.
35913
35914 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35915 (run_menu): Migrate code from to using grub_get_time_ms().
35916
35917 * util/misc.c (grub_get_time_ms): New function.
35918
35919 2008-08-08 Marco Gerards <marco@gnu.org>
35920
35921 * disk/ata.c (grub_ata_regget): Change return type to
35922 `grub_uint8_t'.
35923 (grub_ata_regget2): Likewise.
35924 (grub_ata_wait_status): New function.
35925 (grub_ata_wait_busy): Removed function, updated all users to use
35926 `grub_ata_wait_status'.
35927 (grub_ata_wait_drq): Likewise.
35928 (grub_ata_cmd): New function.
35929 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
35930 error handling.
35931 (grub_ata_pio_write): Add error handling.
35932 (grub_atapi_identify): Likewise.
35933 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
35934 handling.
35935 (grub_ata_identify): Use `grub_ata_cmd' and improve error
35936 handling. Actually use the detected registers. Reorder the
35937 detection logic such that it is easier to read.
35938 (grub_ata_pciinit): Do not assign the same ID to each controller.
35939 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
35940 handling.
35941 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
35942
35943 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
35944
35945 2008-08-08 Marco Gerards <marco@gnu.org>
35946
35947 * NEWS: Update.
35948
35949 2008-08-07 Bean <bean123ch@gmail.com>
35950
35951 * include/grub/x86_64/pci.h: New file.
35952
35953 2008-08-07 Christian Franke <franke@computer.org>
35954
35955 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
35956 (TIMER2_GATE): Likewise.
35957 (grub_pit_wait): Add enable/disable of the timer2 gate
35958 bit of port 0x61. This fixes a possible infinite loop.
35959
35960 2008-08-07 Bean <bean123ch@gmail.com>
35961
35962 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
35963 kern/i386/tsc.c and kern/i386/pit.c.
35964
35965 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
35966 x86_64 platform.
35967
35968 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
35969 <grub/i386/tsc.h>.
35970
35971 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
35972
35973 2008-08-07 Bean <bean123ch@gmail.com>
35974
35975 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
35976
35977 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
35978
35979 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
35980 multiple inclusion. Add #include <grub/types.h>.
35981
35982 2008-08-06 Christian Franke <franke@computer.org>
35983
35984 * conf/common.rmk: Build and install `10_windows'.
35985 * util/grub.d/10_windows.in: New script.
35986
35987 2008-08-06 Pavel Roskin <proski@gnu.org>
35988
35989 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
35990
35991 2008-08-06 Robert Millan <rmh@aybabtu.com>
35992
35993 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
35994 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
35995
35996 2008-08-06 Bean <bean123ch@gmail.com>
35997
35998 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
35999 (grub_pxefs_fs_int): Remove dummy definition.
36000 (grub_pxefs_open): Use data->block_size to store the current block
36001 size setting.
36002 (grub_pxefs_read): Use block size stored in data->block_size. As the
36003 value of grub_pxe_blksize can be changed after the file is opened.
36004
36005 2008-08-06 Bean <bean123ch@gmail.com>
36006
36007 * fs/i386/pc/pxe.c (curr_file): new variable.
36008 (grub_pxefs_open): Simply the handling of pxe file system. Don't
36009 require the dummy internal file system anymore.
36010 (grub_pxefs_read): Removed.
36011 (grub_pxefs_close): Likewise.
36012 (grub_pxefs_fs_int): Likewise.
36013 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
36014 connection when we switch file.
36015 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
36016
36017 2008-08-06 Robert Millan <rmh@aybabtu.com>
36018
36019 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
36020 `halt.mod'.
36021 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
36022 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
36023
36024 * kern/i386/halt.c: New file.
36025 * kern/i386/reboot.c: Likewise.
36026 * include/grub/i386/reboot.h: Likewise.
36027 * include/grub/i386/halt.h: Likewise.
36028
36029 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
36030 Include `<grub/cpu/halt.h>'.
36031 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
36032 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
36033
36034 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
36035 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
36036 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
36037 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
36038 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
36039 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
36040 from here ...
36041 * include/grub/i386/at_keyboard.h: ... to here.
36042
36043 2008-08-05 Robert Millan <rmh@aybabtu.com>
36044
36045 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
36046 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
36047 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
36048 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36049 `kern/generic/millisleep.c'.
36050
36051 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
36052 instead of grub_get_rtc().
36053 (grub_tsc_init): Initialize `tsc_boot_time'.
36054
36055 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
36056 (grub_machine_init): Use grub_tsc_init() rather than
36057 installing an RTC-based handler via grub_install_get_time_ms().
36058
36059 * kern/i386/pit.c: New file.
36060 * include/grub/i386/pit.h: Likewise.
36061
36062 2008-08-05 Bean <bean123ch@gmail.com>
36063
36064 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
36065
36066 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
36067 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
36068 (pxe_mod_SOURCES): New macro.
36069 (pxe_mod_CFLAGS): Likewise.
36070 (pxe_mod_LDFLAGS): Likewise.
36071 (pxecmd_mod_SOURCES): Likewise.
36072 (pxecmd_mod_CFLAGS): Likewise.
36073 (pxecmd_mod_LDFLAGS): Likewise.
36074
36075 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
36076 (grub_pxe_call): Likewise.
36077
36078 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
36079
36080 * commands/i386/pc/pxecmd.c: New file.
36081
36082 * fs/i386/pc/pxe.c: Likewise.
36083
36084 * include/grub/i386/pc/pxe.h: Likewise.
36085
36086 2008-08-05 Bean <bean123ch@gmail.com>
36087
36088 * util/console.c (grub_console_cur_color): New variable.
36089 (grub_console_standard_color): Likewise.
36090 (grub_console_normal_color): Likewise.
36091 (grub_console_highlight_color): Likewise.
36092 (color_map): Likewise.
36093 (use_color): Likewise.
36094 (NUM_COLORS): New macro.
36095 (grub_ncurses_setcolorstate): Handle color properly.
36096 (grub_ncurses_setcolor): Don't change color here, just remember the
36097 settings, color will be set in grub_ncurses_setcolorstate.
36098 (grub_ncurses_getcolor): New function.
36099 (grub_ncurses_init): Initialize color pairs.
36100 (grub_ncurses_term): New member grub_ncurses_getcolor.
36101
36102 2008-08-05 Colin D Bennett <colin@gibibit.com>
36103
36104 High resolution timer support. Implemented for x86 CPUs using TSC.
36105 Extracted generic grub_millisleep() so it's linked in only as needed.
36106 This requires a Pentium compatible CPU; if the RDTSC instruction is
36107 not supported, then it falls back on the generic grub_get_time_ms()
36108 implementation that uses the machine's RTC.
36109
36110 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
36111 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36112 `kern/generic/millisleep.c'.
36113
36114 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
36115 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
36116
36117 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
36118 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
36119
36120 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36121
36122 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
36123 `kern/generic/millisleep.c'.
36124
36125 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36126
36127 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
36128
36129 * kern/generic/rtc_get_time_ms.c: New file.
36130
36131 * kern/generic/millisleep.c: New file.
36132
36133 * kern/misc.c: Don't include
36134 <kern/time.h> anymore.
36135 (grub_millisleep_generic): Removed.
36136
36137 * commands/sleep.c (grub_interruptible_millisleep): Uses
36138 grub_get_time_ms() instead of grub_get_rtc().
36139
36140 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
36141 function.
36142 (grub_cpu_is_cpuid_supported): New inline function.
36143 (grub_cpu_is_tsc_supported): New inline function.
36144 (grub_tsc_init): New function prototype.
36145 (grub_tsc_get_time_ms): New function prototype.
36146
36147 * kern/i386/tsc.c (grub_get_time_ms): New file.
36148
36149 * include/grub/time.h: Include <grub/types.h.
36150 (grub_millisleep_generic): Removed.
36151 (grub_get_time_ms): New prototype.
36152 (grub_install_get_time_ms): New prototype.
36153 (grub_rtc_get_time_ms): New prototype.
36154
36155 * kern/time.c (grub_get_time_ms): New function.
36156 (grub_install_get_time_ms): New function.
36157
36158 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
36159 <grub/time.h> anymore.
36160 (grub_millisleep): Removed.
36161 (grub_machine_init): Call grub_tsc_init.
36162
36163 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
36164 get_time_ms() implementation.
36165
36166 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
36167 (ieee1275_get_time_ms): New function.
36168 (grub_machine_init): Install get_time_ms() implementation.
36169
36170 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
36171 (grub_machine_init): Call grub_tsc_init().
36172 (grub_millisleep): Removed.
36173
36174 * kern/ieee1275/init.c (grub_millisleep): Removed.
36175 (grub_machine_init): Install ieee1275_get_time_ms()
36176 implementation.
36177 (ieee1275_get_time_ms): New function.
36178 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
36179 real work.
36180
36181 2008-08-05 Marco Gerards <marco@gnu.org>
36182
36183 * disk/ata.c: Include <grub/pci.h>.
36184 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
36185 (grub_ata_initialize): Rewritten.
36186 (grub_ata_device_initialize): New function.
36187
36188 2008-08-04 Pavel Roskin <proski@gnu.org>
36189
36190 * kern/main.c: Include grub/mm.h.
36191
36192 2008-08-04 Robert Millan <rmh@aybabtu.com>
36193
36194 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
36195 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
36196 corruption problem).
36197
36198 2008-08-04 Robert Millan <rmh@aybabtu.com>
36199
36200 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
36201 warnings introduced in my last commit.
36202
36203 2008-08-03 Robert Millan <rmh@aybabtu.com>
36204
36205 Make PCI available on all i386 architectures.
36206
36207 * include/grub/i386/pc/pci.h: Move from here ...
36208 * include/grub/i386/pci.h: ... to here.
36209
36210 * include/grub/i386/pc/pci.h: Remove.
36211 * include/grub/i386/efi/pci.h: Remove.
36212 * include/grub/x86_64/efi/pci.h: Remove.
36213
36214 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
36215 `<grub/cpu/pci.h>'.
36216
36217 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
36218 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
36219 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
36220
36221 * conf/i386-ieee1275.rmk: Likewise.
36222
36223 2008-08-03 Robert Millan <rmh@aybabtu.com>
36224
36225 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
36226 (grub_console_setcursor): Make it possible to set cursor off.
36227
36228 2008-08-03 Robert Millan <rmh@aybabtu.com>
36229
36230 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
36231 of modules instead of assuming which platform provides what.
36232 * util/update-grub.in: Likewise.
36233
36234 2008-08-03 Robert Millan <rmh@aybabtu.com>
36235
36236 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
36237 instead of `grub_install_dos_part' to determine whether a drive needs
36238 to be prepended to prefix (`grub_install_dos_part' is not reliable,
36239 because it can be overridden when loading GRUB via Multiboot).
36240
36241 2008-08-02 Robert Millan <rmh@aybabtu.com>
36242
36243 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
36244
36245 2008-08-02 Robert Millan <rmh@aybabtu.com>
36246
36247 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
36248 of informational grub_dprintf() calls.
36249
36250 2008-08-02 Robert Millan <rmh@aybabtu.com>
36251
36252 * disk/memdisk.c (memdisk_size): Don't initialize.
36253 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
36254
36255 * include/grub/i386/pc/kernel.h
36256 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
36257 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
36258 (grub_memdisk_image_size, grub_arch_memdisk_addr)
36259 (grub_arch_memdisk_size): Remove.
36260
36261 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
36262 field (was only used to transfer a constant). Add `type' field to
36263 support multiple module types.
36264 (grub_module_iterate): New function.
36265
36266 * kern/device.c (grub_device_open): Do not hide error messages
36267 when grub_disk_open() fails. Use grub_print_error() instead.
36268
36269 * kern/i386/pc/init.c (grub_arch_modules_addr)
36270 (grub_arch_memdisk_size): Remove functions.
36271 (grub_arch_modules_addr): Return the module address in high memory
36272 (now that it isn't copied anymore).
36273
36274 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
36275 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
36276 decompression routine (grub_total_module_size already includes that
36277 now). Don't copy modules back to low memory.
36278
36279 * kern/main.c: Include `<grub/mm.h>'.
36280 (grub_load_modules): Split out (and use) ...
36281 (grub_module_iterate): ... this function, which iterates through
36282 module objects and runs a hook.
36283 Comment out grub_mm_init_region() call, as it would cause non-ELF
36284 modules to be overwritten.
36285
36286 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
36287 the memdisk image in its own region, make it part of the module list.
36288 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
36289 (main): Parse --memdisk|-m option, and pass user-provided path as
36290 parameter to generate_image().
36291 (add_segments): Pass `memdisk_path' down to load_modules().
36292 (load_modules): Embed memdisk image in module section when requested.
36293 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
36294 `header.type' instead of `header.offset'.
36295
36296 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
36297 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
36298 (memdisk_mod_LDFLAGS): New variables.
36299 * conf/i386-coreboot.rmk: Likewise.
36300 * conf/i386-ieee1275.rmk: Likewise.
36301
36302 2008-08-02 Robert Millan <rmh@aybabtu.com>
36303
36304 * loader/i386/pc/multiboot.c (playground, forward_relocator)
36305 (backward_relocator): New variables. Used to allocate and relocate
36306 the payload, respectively.
36307 (grub_multiboot_load_elf32): Load into heap instead of requested
36308 address, install the appropriate relocator code in each bound of
36309 the payload, and set the entry point such that
36310 grub_multiboot_real_boot() will jump to one of them.
36311
36312 * kern/i386/loader.S (grub_multiboot_payload_size)
36313 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36314 (grub_multiboot_payload_entry_offset): New variables.
36315 (grub_multiboot_real_boot): Set cpu context to what the relocator
36316 expects, and jump to the relocator instead of the payload.
36317
36318 * include/grub/i386/loader.h (grub_multiboot_payload_size)
36319 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36320 (grub_multiboot_payload_entry_offset): Export.
36321
36322 2008-08-01 Bean <bean123ch@gmail.com>
36323
36324 * normal/menu_entry.c (editor_getline): Don't return the original
36325 string as result, as it will be released by lexer once it has done
36326 using it.
36327
36328 2008-08-01 Robert Millan <rmh@aybabtu.com>
36329
36330 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
36331 within menuentries, not before them.
36332 util/grub.d/10_hurd.in: Likewise.
36333
36334 2008-08-01 Bean <bean123ch@gmail.com>
36335
36336 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
36337 (bufio_mod_SOURCES): New macro.
36338 (bufio_mod_CFLAGS): Likewise.
36339 (bufio_mod_LDFLAGS): Likewise.
36340
36341 * include/grub/bufio.h: New file.
36342
36343 * io/bufio.c: Likewise.
36344
36345 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
36346 (grub_video_reader_png): Use grub_buffile_open to open file.
36347
36348 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
36349 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
36350
36351 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
36352 (grub_video_reader_tga): Use grub_buffile_open to open file.
36353
36354 * font/manager.c: Include <grub/bufio.h>.
36355 (add_font): Use grub_buffile_open to open file.
36356
36357 2008-07-31 Robert Millan <rmh@aybabtu.com>
36358
36359 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
36360 ELF segments, use a macro for arbitrarily accessing any of them instead
36361 of preparing a pointer that allows access to one at a time.
36362 (grub_multiboot_load_elf64): Likewise.
36363
36364 2008-07-31 Bean <bean123ch@gmail.com>
36365
36366 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
36367 GRUB_KERNEL_MACHINE_DATA_END.
36368
36369 2008-07-30 Robert Millan <rmh@aybabtu.com>
36370
36371 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
36372 Increase from 0x50 to 0x60.
36373 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
36374 use UUIDs to identify the root drive for them. If that's not
36375 possible, abort.
36376 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
36377 check, for cross-disk installs.
36378
36379 2008-07-30 Robert Millan <rmh@aybabtu.com>
36380
36381 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
36382 is non-empty, use it to set the `prefix' environment variable instead
36383 of the usual approach.
36384 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
36385 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
36386 environment variable instead of dummy make_install_device().
36387
36388 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
36389 (start): Insert a data section, with `grub_prefix' variable.
36390 * kern/i386/linuxbios/startup.S: Likewise.
36391
36392 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
36393 New variable reference.
36394 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
36395 New macro. Defines offset of `grub_prefix' within startup.S (relative
36396 to `start').
36397 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
36398 section within startup.S (relative to `start').
36399 * include/grub/i386/coreboot/kernel.h: Likewise.
36400
36401 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
36402 Overwrite grub_prefix with its contents, at the beginning of the
36403 first segment.
36404 (main): Understand -p|--prefix.
36405
36406 2008-07-30 Robert Millan <rmh@aybabtu.com>
36407
36408 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
36409
36410 2008-07-30 Robert Millan <rmh@aybabtu.com>
36411
36412 * term/i386/pc/vga_text.c (grub_console_cls): Use
36413 grub_console_gotoxy() to go back to beginning of the screen.
36414 Found by Patrick Georgi <patrick.georgi@coresystems.de>
36415
36416 2008-07-29 Christian Franke <franke@computer.org>
36417
36418 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
36419 Add conversion of emulated mount points on Cygwin.
36420
36421 2008-07-29 Christian Franke <franke@computer.org>
36422
36423 * util/update-grub.in: Add a check for admin
36424 group on Cygwin.
36425 Remove old `grub.cfg.new' before creation.
36426 Add `-f' to `mv' to handle the different filesystem
36427 semantics of Windows.
36428
36429 2008-07-29 Bean <bean123ch@gmail.com>
36430
36431 * normal/main.c (get_line): Fix buffer overflow bug.
36432
36433 2008-07-28 Robert Millan <rmh@aybabtu.com>
36434
36435 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
36436 (struct grub_apple_header): New struct. Describes the layout of
36437 the partmap header.
36438 (apple_partition_map_iterate): Check the header magic as well as the
36439 partition magic (which was already being checked).
36440
36441 2008-07-28 Pavel Roskin <proski@gnu.org>
36442
36443 * genmk.rb: Add a warning to the beginning of the output that
36444 it's a generated file and should not be edited.
36445
36446 2008-07-28 Robert Millan <rmh@aybabtu.com>
36447
36448 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36449 with the same number are found, just use issue a warning with
36450 grub_dprintf(), as this error has been reported to be non-fatal.
36451
36452 2008-07-27 Robert Millan <rmh@aybabtu.com>
36453
36454 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
36455 information.
36456
36457 2008-07-27 Bean <bean123ch@gmail.com>
36458
36459 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
36460 (grub_fat_find_dir): Ignore case when comparing filename.
36461
36462 2008-07-27 Bean <bean123ch@gmail.com>
36463
36464 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
36465 smallino, as it's more descriptive, and i8count can be confused with
36466 the other field count.
36467 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
36468 inode type.
36469
36470 2008-07-27 Bean <bean123ch@gmail.com>
36471
36472 * commands/crc.c: New file.
36473
36474 * lib/crc.c: Likewise.
36475
36476 * include/grub/lib/crc.h: Likewise.
36477
36478 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
36479
36480 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
36481 (hexdump): Move this function to ...
36482
36483 * lib/hexdump.c: ... here.
36484
36485 * include/grub/hexdump.h: Renamed to ...
36486
36487 * include/grub/lib/hexdump.h: ... this.
36488
36489 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
36490
36491 * util/grub-editenv.c: Likewise.
36492
36493 * include/envblk.h: Renamed to ...
36494
36495 * include/lib/envblk.h: ... this.
36496
36497 * util/envblk.c: Renamed to ...
36498
36499 * lib/envblk.c: ... this.
36500
36501 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
36502 lib/hexdump.c.
36503 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
36504 (pkglib_MODULES): Add crc.mod.
36505 (hexdump_mod_SOURCES): Add lib/hexdump.c.
36506 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
36507 (crc_mod_SOURCES): New macro.
36508 (crc_mod_CFLAGS): Likewise.
36509 (crc_mod_LDFLAGS): Likewise.
36510
36511 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
36512
36513 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36514
36515 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36516
36517 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36518
36519 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36520
36521 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
36522
36523 * commands/help.c: Include <grub/term.h>.
36524 (TERM_WIDTH): Removed. Updated all users.
36525
36526 2008-07-27 Pavel Roskin <proski@gnu.org>
36527
36528 * util/getroot.c (find_root_device): Rephrase a comment to avoid
36529 spurious warnings about a comment within a comment.
36530
36531 2008-07-25 Robert Millan <rmh@aybabtu.com>
36532
36533 * util/getroot.c (find_root_device): Skip devices that match
36534 /dev/dm-[0-9]. This lets the real device be found for any type of
36535 abstraction (LVM, EVMS, RAID..).
36536 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
36537 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
36538 device is found first, find_root_device() will now skip it.
36539
36540 2008-07-24 Pavel Roskin <proski@gnu.org>
36541
36542 * include/grub/types.h: Use __builtin_bswap32() and
36543 __builtin_bswap64() with gcc 4.3 and newer.
36544
36545 2008-07-24 Christian Franke <franke@computer.org>
36546
36547 * util/i386/pc/grub-install.in: If `--debug' is specified,
36548 pass `--verbose' to grub-setup.
36549 Abort script if make_system_path_relative_to_its_root() fails.
36550
36551 2008-07-24 Bean <bean123ch@gmail.com>
36552
36553 * configure.ac: Fixed a bug caused by the previous cygwin patch,
36554 variable `target_platform' should be `platform'.
36555
36556 2008-07-24 Bean <bean123ch@gmail.com>
36557
36558 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
36559 (grub_png_init_fixed_block): New function.
36560 (grub_png_decode_image_data): Handle fixed huffman code compression.
36561
36562 2008-07-24 Bean <bean123ch@gmail.com>
36563
36564 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
36565 (grub_pe2elf_SOURCES): New macro.
36566 (CLEANFILES): Add grub-pe2elf.
36567
36568 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
36569 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
36570 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
36571 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
36572 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
36573 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
36574 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
36575 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
36576 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
36577 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
36578 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
36579 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
36580 (GRUB_PE32_DT_FUNCTION): Likewise.
36581 (GRUB_PE32_REL_I386_DIR32): Likewise.
36582 (GRUB_PE32_REL_I386_REL32): Likewise.
36583 (grub_pe32_symbol): New structure.
36584 (grub_pe32_reloc): Likewise.
36585
36586 * util/grub-pe2elf.c: New file.
36587
36588 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
36589 start symbol in non pc platform.
36590
36591 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
36592
36593 The following patches are from Christian Franke.
36594
36595 * include/grub/dl.h: Remove .previous, gas supports this only
36596 for ELF format.
36597
36598 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
36599 Remove .type, gas supports this only for ELF format.
36600
36601 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
36602 nullbytes in symbol table. This fixes an infinite loop if table is
36603 zero filled.
36604
36605 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
36606 TARGET_IMG_LDFLAGS and EXEEXT.
36607
36608 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
36609 TARGET_IMG_LDFLAGS_AC.
36610 (grub_CHECK_STACK_ARG_PROBE): New function.
36611
36612 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
36613
36614 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
36615
36616 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
36617 to set TARGET_IMG_LD* accordingly.
36618 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
36619 Add call to grub_CHECK_STACK_ARG_PROBE.
36620 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
36621
36622 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
36623
36624 * genmk.rb: Add EXEEXT to CLEANFILES.
36625
36626 2008-07-23 Robert Millan <rmh@aybabtu.com>
36627
36628 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
36629 define the codes for arrows and lines used for the menu).
36630 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
36631 as well.
36632
36633 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
36634 fonts, because the latter are too slow.
36635
36636 2008-07-21 Bean <bean123ch@gmail.com>
36637
36638 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
36639 a20. Run keyboard test last, as it will cause macbook to halt.
36640
36641 2008-07-18 Pavel Roskin <proski@gnu.org>
36642
36643 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
36644 load foreign architecture modules correctly anyway. Keep
36645 support for loading host architecture modules, whether we
36646 compile them or not.
36647
36648 2008-07-17 Pavel Roskin <proski@gnu.org>
36649
36650 * configure.ac: Use -m32 or -m64 regardless of whether we had to
36651 change target_cpu. The compiler default can mismatch target_cpu
36652 in any case.
36653
36654 * disk/efi/efidisk.c: Fix format warnings on x86_64.
36655 * kern/efi/efi.c: Likewise.
36656
36657 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
36658 target compiler is functional.
36659 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
36660 are set up.
36661
36662 * configure.ac: Default to efi platform for x86_64-apple. Allow
36663 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
36664 adjustments from the rest, only do them if target is not
36665 explicitly given. Merge other adjustments with the final sanity
36666 check. Remove an extraneous check for supported CPU. Be
36667 specific which CPU and which platform is not supported.
36668
36669 * configure.ac: Default to pc platform for x86_64.
36670
36671 2008-07-17 Robert Millan <rmh@aybabtu.com>
36672
36673 Partial LinuxBIOS -> Coreboot rename.
36674
36675 * conf/i386-linuxbios.rmk: Renamed to ...
36676 * conf/i386-coreboot.rmk: ... this.
36677 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
36678 * configure.ac: Accept "coreboot" as input platform (but maintain
36679 compatibility with "linuxbios").
36680 * include/grub/i386/linuxbios: Renamed to ...
36681 * include/grub/i386/coreboot: ... this.
36682
36683 2008-07-17 Bean <bean123ch@gmail.com>
36684
36685 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
36686 (appleldr_mod_SOURCE): New variable.
36687 (appleldr_mod_CFLAGS): Likewise.
36688 (appleldr_mod_LDFLAGS): Likewise.
36689 (pci_mod_SOURCES): Likewise.
36690 (pci_mod_CFLAGS): Likewise.
36691 (pci_mod_LDFLAGS): Likewise.
36692 (lspci_mod_SOURCES): Likewise.
36693 (lspci_mod_CFLAGS): Likewise.
36694 (lspci_mod_LDFLAGS): Likewise.
36695
36696 * conf/x86_64-efi.rmk: New file.
36697
36698 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
36699 macro.
36700 (grub_efidisk_write): Likewise.
36701
36702 * include/efi/api.h (efi_call_0): New macro.
36703 (efi_call_1): Likewise.
36704 (efi_call_2): Likewise.
36705 (efi_call_3): Likewise.
36706 (efi_call_4): Likewise.
36707 (efi_call_5): Likewise.
36708 (efi_call_6): Likewise.
36709
36710 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
36711 grub_rescue_cmd_chainloader.
36712
36713 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
36714 (grub_pe32_optional_header): Change some fields based on i386 or
36715 x86_64 platform.
36716 (GRUB_PE32_PE32_MAGIC): Likewise.
36717
36718 * include/grub/efi/uga_draw.h: New file.
36719
36720 * include/grub/elf.h (STN_ABS): New constant.
36721 (R_X86_64_NONE): Relocation constant for x86_64.
36722 (R_X86_64_64): Likewise.
36723 (R_X86_64_PC32): Likewise.
36724 (R_X86_64_GOT32): Likewise.
36725 (R_X86_64_PLT32): Likewise.
36726 (R_X86_64_COPY): Likewise.
36727 (R_X86_64_GLOB_DAT): Likewise.
36728 (R_X86_64_JUMP_SLOT): Likewise.
36729 (R_X86_64_RELATIVE): Likewise.
36730 (R_X86_64_GOTPCREL): Likewise.
36731 (R_X86_64_32): Likewise.
36732 (R_X86_64_32S): Likewise.
36733 (R_X86_64_16): Likewise.
36734 (R_X86_64_PC16): Likewise.
36735 (R_X86_64_8): Likewise.
36736 (R_X86_64_PC8): Likewise.
36737
36738 * include/grub/i386/efi/pci.h: New file.
36739
36740 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
36741 Change it value based on platform.
36742 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
36743 (GRUB_E820_RAM): Likewise.
36744 (GRUB_E820_RESERVED): Likewise.
36745 (GRUB_E820_ACPI): Likewise.
36746 (GRUB_E820_NVS): Likewise.
36747 (GRUB_E820_EXEC_CODE): Likewise.
36748 (GRUB_E820_MAX_ENTRY): Likewise.
36749 (grub_e820_mmap): New structure.
36750 (linux_kernel_header): Change the efi field according to different
36751 kernel version, also field from linux_kernel_header.
36752
36753 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
36754
36755 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
36756 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
36757 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
36758 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
36759 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
36760 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
36761 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
36762 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
36763 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
36764 (GRUB_PCI_ADDR_IO_MASK): Likewise.
36765
36766 * include/grub/x86_64/efi/kernel.h: New file.
36767
36768 * include/grub/x86_64/efi/loader.h: Likewise.
36769
36770 * include/grub/x86_64/efi/machine.h: Likewise.
36771
36772 * include/grub/x86_64/efi/pci.h: Likewise.
36773
36774 * include/grub/x86_64/efi/time.h: Likewise.
36775
36776 * include/grub/x86_64/linux.h: Likewise.
36777
36778 * include/grub/x86_64/setjmp.h: Likewise.
36779
36780 * include/grub/x86_64/time.h: Likewise.
36781
36782 * include/grub/x86_64/types.h: Likewise.
36783
36784 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
36785 GRUB_TARGET_SIZEOF_VOID_P.
36786
36787 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
36788 (grub_efi_locate_handle): Likewise.
36789 (grub_efi_open_protocol): Likewise.
36790 (grub_efi_set_text_mode): Likewise.
36791 (grub_efi_stall): Likewise.
36792 (grub_exit): Likewise.
36793 (grub_reboot): Likewise.
36794 (grub_halt): Likewise.
36795 (grub_efi_exit_boot_services): Likewise.
36796 (grub_get_rtc): Likewise.
36797
36798 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
36799 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
36800 (grub_efi_allocate_pages): Wrap efi calls.
36801 (grub_efi_free_pages): Wrap efi calls.
36802 (grub_efi_get_memory_map): Wrap efi calls.
36803
36804 * kern/x86_64/dl.c: New file.
36805
36806 * kern/x86_64/efi/callwrap.S: Likewise.
36807
36808 * kern/x86_64/efi/startup.S: Likewise.
36809
36810 * loader/efi/appleloader.c: Likewise.
36811
36812 * loader/efi/chainloader.c (cmdline): New variable.
36813 (grub_chainloader_unload): Wrap efi calls.
36814 (grub_chainloader_boot): Likewise.
36815 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
36816 command line.
36817
36818 * loader/efi/chainloader_normal.c (chainloader_command):
36819 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
36820 command line.
36821
36822 * loader/i386/efi/linux.c (allocate_pages): Change allocation
36823 method.
36824 (grub_e820_add_region): New function.
36825 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
36826 booting.
36827 (grub_find_video_card): New function.
36828 (grub_linux_setup_video): New function.
36829 (grub_rescue_cmd_linux): Probe for video information.
36830
36831 * normal/x86_64/setjmp.S: New file.
36832
36833 * term/efi/console.c (map_char): New function.
36834 (grub_console_putchar): Map unicode char.
36835 (grub_console_checkkey): Wrap efi calls.
36836 (grub_console_getkey): Likewise.
36837 (grub_console_getwh): Likewise.
36838 (grub_console_gotoxy): Likewise.
36839 (grub_console_cls): Likewise.
36840 (grub_console_setcolorstate): Likewise.
36841 (grub_console_setcursor): Likewise.
36842
36843 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
36844
36845 2008-07-16 Pavel Roskin <proski@gnu.org>
36846
36847 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
36848 format strings.
36849
36850 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
36851 pointer, not an integer. This fixes a warning and prevents
36852 precision loss on 64-bit systems.
36853 (relocate_addresses): Remove unneeded cast.
36854
36855 2008-07-15 Pavel Roskin <proski@gnu.org>
36856
36857 * kern/i386/ieee1275/init.c: Include grub/cache.h.
36858
36859 * term/ieee1275/ofconsole.c: Disable code unused on i386.
36860
36861 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
36862 Fix comparison between signed and unsigned.
36863
36864 * include/grub/i386/ieee1275/console.h: Declare
36865 grub_console_init() and grub_console_fini().
36866
36867 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
36868 It's empty and unused.
36869
36870 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
36871 beginning to avoid warnings with some compilers.
36872
36873 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
36874 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
36875
36876 2008-07-14 Pavel Roskin <proski@gnu.org>
36877
36878 * kern/env.c (grub_register_variable_hook): Don't copy empty
36879 string, it leaks memory. Pass "" to grub_env_set(), it should
36880 handle constant strings.
36881
36882 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
36883 * commands/cmp.c (grub_cmd_cmp): Likewise.
36884 * kern/dl.c (grub_dl_flush_cache): Likewise.
36885 (grub_dl_load_core): Likewise.
36886 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
36887 (grub_elf64_load_phdrs): Likewise.
36888
36889 2008-07-13 Pavel Roskin <proski@gnu.org>
36890
36891 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
36892 between signed and unsigned.
36893 (LzmaEnc_Finish): Fix warning about an unused parameter.
36894
36895 2008-07-13 Bean <bean123ch@gmail.com>
36896
36897 * Makefile.in (enable_lzo): New rule.
36898
36899 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
36900
36901 * configure.ac (ENABLE_LZO): New option --enable-lzo.
36902
36903 * boot/i386/pc/lnxboot.S: #include <config.h>.
36904
36905 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
36906 its value according to the compression algorithm used, lzo or lzma.
36907
36908 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
36909 compression algorithm according to configure macro.
36910
36911 * kern/i386/pc/startup.S (codestart): Likewise.
36912
36913 * kern/i386/pc/lzma_decode.S: New file.
36914
36915 * include/grub/lib/LzFind.h: Likewise.
36916
36917 * include/grub/lib/LzHash.h: Likewise.
36918
36919 * include/grub/lib/LzmaDec.h: Likewise.
36920
36921 * include/grub/lib/LzmaEnc.h: Likewise.
36922
36923 * include/grub/lib/LzmaTypes.h: Likewise.
36924
36925 * lib/LzFind.c: Likewise.
36926
36927 * lib/LzmaDec.c: Likewise.
36928
36929 * lib/LzmaEnc.c: Likewise.
36930
36931 2008-07-13 Bean <bean123ch@gmail.com>
36932
36933 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
36934 (grub_ext4_extent_header): New structure.
36935 (grub_ext4_extent): Likewise.
36936 (grub_ext4_extent_idx): Likewise.
36937 (grub_ext4_find_leaf): New function.
36938 (grub_ext2_read_block): Handle extents.
36939
36940 2008-07-12 Robert Millan <rmh@aybabtu.com>
36941
36942 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
36943
36944 2008-07-11 Robert Millan <rmh@aybabtu.com>
36945
36946 * util/grub.d/40_custom.in: New file. Example on how to add custom
36947 entries to /etc/grub.d.
36948 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
36949 40_custom (implicitly, by merging all the grub.d rules).
36950
36951 2008-07-11 Pavel Roskin <proski@gnu.org>
36952
36953 * commands/read.c (grub_getline): Fix invalid memory access.
36954 Don't add newline to the variable value.
36955
36956 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
36957 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
36958 (serial_hw_get_port): Check validity of the port number.
36959 (grub_cmd_serial): Check return value of serial_hw_get_port().
36960
36961 2008-07-07 Pavel Roskin <proski@gnu.org>
36962
36963 * boot/i386/pc/diskboot.S (notification_string): Replace
36964 "Loading kernel" with just "loading". This is shorter, less
36965 confusing and saves a few bytes for possible future changes.
36966
36967 2008-07-05 Pavel Roskin <proski@gnu.org>
36968
36969 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
36970 size for ATAPI devices, they are undefined. Output sector
36971 number in decimal form.
36972
36973 * disk/ata.c: Use named constants for status bits.
36974
36975 2008-07-04 Pavel Roskin <proski@gnu.org>
36976
36977 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
36978 grub_addr_t before casting it to the void pointer to fix a
36979 warning. Non-addressable regions are discarded earlier.
36980 (grub_arch_modules_addr): Cast _end to grub_addr_t.
36981 * kern/i386/linuxbios/table.c: Include grub/misc.h.
36982 (check_signature): Don't shadow table_header.
36983 (grub_linuxbios_table_iterate): Cast numeric constants to
36984 grub_linuxbios_table_header_t.
36985 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
36986 grub_stop().
36987
36988 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
36989 prevent warnings.
36990
36991 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
36992 pointer, which can cause warnings. Support 64-bit addresses.
36993
36994 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
36995 of sizeof(long). This fixes PowerPC image generation on x86_64.
36996
36997 2008-07-04 Robert Millan <rmh@aybabtu.com>
36998
36999 This fixes a performance issue when pc & gpt partmap iterators
37000 didn't abort iteration even after our hook found what it was
37001 looking for (often causing expensive probes of non-existent drives).
37002
37003 Some callers relied on previous buggy behaviour, since they would
37004 raise an error when their own hooks caused early abortion of its
37005 iteration.
37006
37007 * kern/device.c (grub_device_open): Improve error message.
37008 * disk/lvm.c (grub_lvm_open): Likewise.
37009 * disk/raid.c (grub_raid_open): Likewise.
37010
37011 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
37012 when hook requests it, independently of grub_errno.
37013 (pc_partition_map_probe): Do not fail when find_func() caused
37014 early abortion of pc_partition_map_iterate().
37015
37016 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
37017 when hook requests it, independently of grub_errno.
37018 (gpt_partition_map_probe): Do not fail when find_func() caused
37019 early abortion of gpt_partition_map_iterate().
37020
37021 * kern/partition.c (grub_partition_iterate): Abort parent iteration
37022 when hook requests it, independently of grub_errno. Do not fail when
37023 part_map_iterate_hook() caused early abortion of p->iterate().
37024
37025 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
37026 when grub_partition_iterate() returned with non-zero.
37027
37028 2008-07-03 Pavel Roskin <proski@gnu.org>
37029
37030 * disk/ata.c (grub_ata_pio_write): Check status before writing,
37031 like we do in grub_ata_pio_read().
37032 (grub_ata_readwrite): Always write individual sectors. Fix the
37033 sector count for the remainder.
37034 (grub_ata_write): Enable writing to ATA devices. Correctly
37035 report error for ATAPI devices.
37036
37037 2008-07-02 Pavel Roskin <proski@gnu.org>
37038
37039 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
37040 warning.
37041
37042 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
37043 for every read sector, we already increment it for the whole
37044 batch. This fixes reading more than 256 sectors at once.
37045
37046 * util/grub-editenv.c (cmd_info): Cast argument to long
37047 explicitly. ptrdiff_t reduces to int on i386.
37048
37049 * util/grub-editenv.c (main): Be specific which parameter is
37050 missing.
37051
37052 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
37053 (memdisk): Make memdisk_orig_addr a pointer.
37054
37055 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
37056 for file offsets, use grub_off_t instead. Fix printf format
37057 warnings.
37058
37059 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
37060 there. Real unexpected warnings should not drown in the noise
37061 about known problems.
37062
37063 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
37064 grub_disk_addr_t for memory addresses.
37065
37066 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
37067 explicitly to fix a warning.
37068
37069 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
37070
37071 * Makefile.in (MODULE_LDFLAGS): New variable.
37072 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
37073 the linker accepts --build-id=none.
37074 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
37075 MODULE_LDFLAGS.
37076 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
37077
37078 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
37079 those in Linux XFS code. Provide a way to access 64-bit parent
37080 inode.
37081 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
37082 the end of struct grub_xfs_dir_header.
37083
37084 2008-07-02 Bean <bean123ch@gmail.com>
37085
37086 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
37087 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37088 and GRUB_IEEE1275_FLAG_NO_ANSI.
37089
37090 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
37091 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37092 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
37093
37094 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
37095 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
37096
37097 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
37098 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
37099
37100 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
37101 esc sequence on non ANSI terminal.
37102 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
37103
37104 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
37105 beginning of file.
37106
37107 2008-07-02 Bean <bean123ch@gmail.com>
37108
37109 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
37110 (grub_editenv_SOURCES): New variable.
37111 (pkglib_MODULES): Add loadenv.mod.
37112 (loadenv_mod_SOURCES): New variable.
37113 (loadenv_mod_CFLAGS): Likewise.
37114 (loadenv_mod_LDFLAGS): Likewise.
37115
37116 * include/grub/envblk.h: New file.
37117
37118 * util/envblk.c: New file.
37119
37120 * util/grub-editenv.c: New file.
37121
37122 * commands/loadenv.c: New file.
37123
37124 2008-07-01 Pavel Roskin <proski@gnu.org>
37125
37126 * include/multiboot2.h (struct multiboot_tag_module): Use char,
37127 not unsigned char. This fixes warnings and is consistent with
37128 other tags.
37129
37130 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
37131
37132 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
37133
37134 * term/tparm.c (analyze): Always set *popcount.
37135
37136 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
37137 cast to fix a warning.
37138
37139 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
37140 cast to suppress a warning.
37141
37142 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
37143 grub_fshelp_read_file() expects.
37144
37145 * fs/fat.c: Fix UUID calculation on big-endian systems. We
37146 write uuid as a 32-bit value in CPU byte order, so declare and
37147 use it as such.
37148
37149 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
37150 long if the format specifier expects it.
37151 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
37152 * partmap/pc.c (pc_partition_map_iterate): Likewise.
37153 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
37154 long to fix a warning.
37155 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
37156 grub_dprintf() arguments to fix warnings.
37157
37158 2008-06-30 Pavel Roskin <proski@gnu.org>
37159
37160 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
37161 install_bsd_part immediately before core.img is embedded or
37162 modified on disk. This fixes core.img verification if core.img
37163 cannot be embedded.
37164
37165 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
37166 core_path to calculate the blocklist.
37167 Patch from Javier Martín <lordhabbit@gmail.com>
37168
37169 2008-06-29 Robert Millan <rmh@aybabtu.com>
37170
37171 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
37172 block to disk block.
37173 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
37174 Patch from Niels Böhm <bitbucket@arcor.de>
37175
37176 2008-06-29 Robert Millan <rmh@aybabtu.com>
37177
37178 * util/update-grub_lib.in (font_path): Search for fonts in
37179 /boot/grub first, which is more likely to be readable (we aren't
37180 deciding where fonts live, just looking for them).
37181
37182 2008-06-26 Pavel Roskin <proski@gnu.org>
37183
37184 * util/biosdisk.c (read_device_map): Don't leave dead map
37185 entries for devices failing stat() check.
37186
37187 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
37188 core_path_dev for the core.img path on the target device.
37189
37190 2008-06-26 Robert Millan <rmh@aybabtu.com>
37191
37192 * disk/fs_uuid.c: New file.
37193 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
37194 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
37195 (fs_uuid_mod_LDFLAGS): New variables.
37196 * include/grub/disk.h (grub_disk_dev_id): Add
37197 `GRUB_DISK_DEVICE_UUID_ID'.
37198 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
37199 implement iterate().
37200
37201 2008-06-26 Robert Millan <rmh@aybabtu.com>
37202
37203 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
37204 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
37205 Linux image includes no initrd.
37206
37207 2008-06-21 Javier Martín <lordhabbit@gmail.com>
37208
37209 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
37210 call to resolve the core image location that effectively appended the
37211 name twice.
37212
37213 2008-06-21 Robert Millan <rmh@aybabtu.com>
37214
37215 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
37216 call from here ...
37217
37218 * util/grub.d/10_hurd.in: ... to here ...
37219 * util/grub.d/10_linux.in: ... and here.
37220
37221 2008-06-19 Robert Millan <rmh@aybabtu.com>
37222
37223 * kern/main.c (grub_main): Export `prefix' variable immediately
37224 after it has been set by grub_machine_set_prefix().
37225
37226 2008-06-19 Robert Millan <rmh@aybabtu.com>
37227
37228 * commands/search.c (search_label, search_fs_uuid, search_file): Print
37229 search result when not saving to variable, not the other way around.
37230 When saving to variable, abort iteration as soon as a match is found.
37231
37232 2008-06-19 Robert Millan <rmh@aybabtu.com>
37233
37234 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
37235 check for partition that provides /boot/grub. Its logic is flawed,
37236 as it prevents prepare_grub_to_access_device() from being called
37237 multiple times.
37238
37239 2008-06-19 Robert Millan <rmh@aybabtu.com>
37240
37241 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
37242 "insmod" command directly when abstraction modules are needed,
37243 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
37244 since it had already been processed).
37245
37246 2008-06-19 Pavel Roskin <proski@gnu.org>
37247
37248 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
37249 changed. This is needed in case GRUB_LIBDIR changes.
37250 * conf/i386-ieee1275.rmk: Likewise.
37251 * conf/i386-linuxbios.rmk: Likewise.
37252 * conf/i386-pc.rmk: Likewise.
37253 * conf/powerpc-ieee1275.rmk: Likewise.
37254
37255 2008-06-18 Pavel Roskin <proski@gnu.org>
37256
37257 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
37258 kernel_elf_symlist.c to symlist.c for consistency with other
37259 architectures. Update all users.
37260 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37261
37262 2008-06-18 Robert Millan <rmh@aybabtu.com>
37263
37264 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
37265 it in prefix.
37266
37267 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
37268 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
37269 a RAID device, run setup() for all members independently on whether
37270 LVM abstraction is being used.
37271 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
37272 If grub-mkimage has set `*install_dos_part == -2', don't override this
37273 value.
37274 Perform *install_dos_part adjustments independently on whether
37275 we're embedding or not.
37276 Clarify error message when image is too big for embedding.
37277 Remove duplicate *install_dos_part stanza.
37278
37279 2008-06-17 Robert Millan <rmh@aybabtu.com>
37280
37281 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
37282 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
37283 variables.
37284 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
37285 values in grub_ofconsole_normal_color and
37286 grub_ofconsole_highlight_color (they're not directly related to
37287 background and foreground).
37288 (grub_ofconsole_setcolorstate): Extract background and foreground
37289 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
37290
37291 2008-06-17 Robert Millan <rmh@aybabtu.com>
37292
37293 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
37294 /boot/grub for the check in last commit, not /boot (they could be
37295 different partitions).
37296
37297 2008-06-16 Robert Millan <rmh@aybabtu.com>
37298
37299 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
37300 asked to setup access for the same partition that provides /boot,
37301 don't bother using UUIDs since our root already has the value we
37302 want.
37303
37304 2008-06-16 Robert Millan <rmh@aybabtu.com>
37305
37306 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
37307 I2O devices.
37308 Patch from Sven Mueller <sven@debian.org>.
37309
37310 2008-06-16 Robert Millan <rmh@aybabtu.com>
37311
37312 * util/update-grub.in: Check for $EUID instead of $UID.
37313 Reported by Vincent Zweije.
37314
37315 2008-06-16 Bean <bean123ch@gmail.com>
37316
37317 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
37318 (grub_ext2_read_block): Likewise.
37319 (grub_ext2_read_inode): Likewise.
37320 (grub_ext2_mount): Likewise.
37321 (grub_ext2_close): Likewise.
37322 (grub_ext3_get_journal): Removed.
37323
37324 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
37325 (grub_reiserfs_read_symlink): Likewise.
37326 (grub_reiserfs_mount): Likewise.
37327 (grub_reiserfs_open): Likewise.
37328 (grub_reiserfs_read): Likewise.
37329 (grub_reiserfs_close): Likewise.
37330 (grub_reiserfs_get_journal): Removed.
37331
37332 * fs/fshelp.c (grub_fshelp_read): Removed.
37333 (grub_fshelp_map_block): Likewise.
37334
37335 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
37336 (grub_fshelp_journal): Likewise.
37337 (grub_fshelp_read): Likewise.
37338 (grub_fshelp_map_block): Likewise.
37339
37340 2008-06-16 Pavel Roskin <proski@gnu.org>
37341
37342 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
37343 floating point anymore.
37344 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
37345
37346 2008-06-15 Pavel Roskin <proski@gnu.org>
37347
37348 * commands/ls.c (grub_ls_list_files): Use integer calculations
37349 for human readable format, avoid floating point use.
37350 * kern/misc.c (grub_ftoa): Remove.
37351 (grub_vsprintf): Remove floating point support.
37352
37353 2008-06-15 Robert Millan <rmh@aybabtu.com>
37354
37355 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
37356 devices.
37357 Reported by Max Vozeler.
37358
37359 2008-06-15 Robert Millan <rmh@aybabtu.com>
37360
37361 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
37362 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
37363 skipped later.
37364 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
37365 the beginning of the prefix.
37366
37367 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
37368 It is assumed that if we have a memdisk, grub-mkimage has set
37369 grub_prefix to include the "(memdisk)" drive in it.
37370
37371 2008-06-15 Robert Millan <rmh@aybabtu.com>
37372
37373 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
37374 Initialize keyboard controller after registering the terminal, so that
37375 grub_printf() can be called from grub_keyboard_controller_init().
37376
37377 2008-06-15 Robert Millan <rmh@aybabtu.com>
37378
37379 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
37380 extent-btree which is written as big endian on disk.
37381 Reported by Alain Greppin <al@chilibi.org>.
37382
37383 2008-06-14 Robert Millan <rmh@aybabtu.com>
37384
37385 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
37386 * util/i386/pc/grub-install.in (modules): Likewise.
37387
37388 2008-06-13 Pavel Roskin <proski@gnu.org>
37389
37390 * commands/ls.c (grub_ls_list_files): Fix format warnings.
37391
37392 2008-06-13 Bean <bean123ch@gmail.com>
37393
37394 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
37395
37396 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
37397
37398 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
37399 to indicate sparse block.
37400
37401 2008-06-12 Pavel Roskin <proski@gnu.org>
37402
37403 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
37404 number, grub_fshelp_read() does it for us.
37405
37406 * fs/fshelp.c (grub_fshelp_read): New function. Implement
37407 linear disk read with journal translation.
37408 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
37409 * include/grub/fshelp.h: Declare grub_fshelp_read().
37410
37411 2008-06-09 Pavel Roskin <proski@gnu.org>
37412
37413 * fs/minix.c (grub_minix_mount): Handle error reading
37414 superblock.
37415
37416 2008-06-08 Robert Millan <rmh@aybabtu.com>
37417
37418 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
37419 don't append the RAID prefix afterwards.
37420 Reported by Clint Adams.
37421
37422 2008-06-08 Robert Millan <rmh@aybabtu.com>
37423
37424 Based on description from Pavel:
37425 * kern/disk.c (grub_disk_check_range): Rename to ...
37426 (grub_disk_adjust_range): ... this. Add a comment explaining the
37427 tasks performed by this function.
37428
37429 2008-06-08 Robert Millan <rmh@aybabtu.com>
37430
37431 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
37432 `num_serial' (for consistency with other variables).
37433 (struct grub_ntfs_data): Add `uuid' member.
37434 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
37435 (grub_ntfs_uuid): New function.
37436 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
37437
37438 2008-06-07 Pavel Roskin <proski@gnu.org>
37439
37440 * util/biosdisk.c (open_device): Revert last change to the
37441 function, it broke installation. The sector needs to be
37442 different dependent on which device is opened.
37443
37444 2008-06-06 Robert Millan <rmh@aybabtu.com>
37445
37446 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
37447 rest of GRUB, and breakage doesn't happen if its value were modified.
37448
37449 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37450 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
37451 a constant (same value).
37452 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
37453 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
37454
37455 2008-06-06 Robert Millan <rmh@aybabtu.com>
37456
37457 * util/biosdisk.c (open_device): Do not modify sector offset when
37458 accessing a partition. kern/disk.c already handles this for us.
37459
37460 2008-06-06 Robert Millan <rmh@aybabtu.com>
37461
37462 * util/grub-emu.c (grub_machine_init): Move code in this function from
37463 here ...
37464 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
37465 segfault in case grub_printf() is called).
37466
37467 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
37468 grub_probe. Update all users not to explicitly add it again.
37469 (grub_device): New variable; contains corresponding device for grubdir.
37470 (fs_module, partmap_module, devabstraction_module): Pass
37471 `--device ${grub_device}' to grub_probe to avoid traversing /dev
37472 every time.
37473
37474 2008-06-05 Robert Millan <rmh@aybabtu.com>
37475
37476 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
37477 is found, print it (same layout as with labels).
37478
37479 2008-06-04 Robert Millan <rmh@aybabtu.com>
37480
37481 * util/biosdisk.c (get_drive): Rename to ...
37482 (find_grub_drive): ... this. Update all users.
37483
37484 (get_os_disk): Rename to ...
37485 (convert_system_partition_to_system_disk): ... this. Update all users.
37486
37487 (find_drive): Rename to ...
37488 (find_system_device): ... this. Update all users.
37489
37490 2008-06-04 Robert Millan <rmh@aybabtu.com>
37491
37492 * util/biosdisk.c (get_os_disk): Handle IDA devices.
37493 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37494 (make_device_map): Likewise.
37495
37496 2008-06-01 Robert Millan <rmh@aybabtu.com>
37497
37498 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
37499 before dereferencing it.
37500
37501 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
37502 union with fat12/fat16-specific ones. Add some new fields, including
37503 `num_serial' for both versions.
37504 (struct grub_fat_data): Add `uuid' member.
37505 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
37506 names. Initialize `data->uuid' using `num_serial'.
37507 (grub_fat_uuid): New function.
37508 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
37509
37510 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
37511 (grub_reiserfs_uuid): New function.
37512 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
37513 member.
37514
37515 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
37516 (grub_xfs_uuid): New function.
37517 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
37518
37519 2008-06-01 Robert Millan <rmh@aybabtu.com>
37520
37521 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
37522 code that is backward compatible with pre-uuid search command.
37523
37524 2008-05-31 Robert Millan <rmh@aybabtu.com>
37525
37526 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
37527 floppies after everything else, to ensure floppy drive isn't accessed
37528 unnecessarily (patch from Bean).
37529
37530 2008-05-31 Robert Millan <rmh@aybabtu.com>
37531
37532 * commands/search.c (search_label, search_fs_uuid, search_file): Do
37533 not print device names when we were asked to set a variable.
37534
37535 2008-05-31 Robert Millan <rmh@aybabtu.com>
37536
37537 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
37538 using "cursor-on" and "cursor-off" commands (understood at least by
37539 the Open Firmware flavour on OLPC).
37540
37541 2008-05-31 Michael Gorven <michael@gorven.za.net>
37542
37543 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
37544 on and off sequences.
37545
37546 2008-05-31 Robert Millan <rmh@aybabtu.com>
37547
37548 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
37549 * util/update-grub.in: Likewise.
37550
37551 2008-05-30 Pavel Roskin <proski@gnu.org>
37552
37553 * util/biosdisk.c (linux_find_partition): Simplify logic and
37554 make the code more universal. Keep special processing for
37555 devfs, but use a simple rule for all other devices. If the
37556 device ends with a number, append 'p' and the partition number.
37557 Otherwise, append only the partition number.
37558
37559 2008-05-30 Robert Millan <rmh@aybabtu.com>
37560
37561 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
37562 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
37563 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
37564 the `root' parameter to Linux.
37565
37566 2008-05-30 Robert Millan <rmh@aybabtu.com>
37567
37568 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
37569 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
37570 --fs_uuid with --fs-uuid.
37571 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
37572 all filesystems support them).
37573
37574 2008-05-30 Robert Millan <rmh@aybabtu.com>
37575
37576 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
37577 grub_printf() flags, since we're printing in units of 2 bytes.
37578
37579 2008-05-30 Robert Millan <rmh@aybabtu.com>
37580
37581 * util/grub.d/00_header.in: Remove obsolete comment referencing
37582 convert_system_path_to_grub_path().
37583 * util/update-grub.in: Likewise.
37584 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
37585 (convert_system_path_to_grub_path): Add a warning message explaining
37586 that this function is deprecated. Rely on is_path_readable_by_grub()
37587 for the readability checks.
37588 (font_path): Use is_path_readable_by_grub() for the readability
37589 check rather than convert_system_path_to_grub_path().
37590
37591 2008-05-30 Robert Millan <rmh@aybabtu.com>
37592
37593 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
37594 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
37595 converting it first.
37596 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
37597 grub.cfg for access to font file, and afterwards call it again to set
37598 the root device.
37599
37600 2008-05-30 Robert Millan <rmh@aybabtu.com>
37601
37602 * commands/search.c (options): Add --fs_uuid option.
37603 (search_fs_uuid): New function.
37604 (grub_cmd_search): Fix --set argument passing.
37605 Use search_fs_uuid() when requested via --fs_uuid.
37606 (grub_search_init): Update help message.
37607 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
37608 and redeclare it as an array of 16-bit words.
37609 (grub_ext2_uuid): New function.
37610 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
37611 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
37612 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
37613 (GRUB_DEVICE_BOOT_UUID): New variables.
37614 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
37615 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
37616 whenever possible.
37617 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
37618 just assume `root' variable has the right value.
37619 * util/grub.d/10_linux.in: Likewise.
37620 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
37621 via PRINT_FS_UUID.
37622 (main): Recognise `-t fs_uuid' argument.
37623
37624 2008-05-30 Robert Millan <rmh@aybabtu.com>
37625
37626 * util/biosdisk.c (map): Redefine structure to hold information
37627 about GRUB drive name.
37628 (get_drive): Reimplement without assuming (and verifying) BIOS-like
37629 drive names.
37630 (call_hook): Remove.
37631 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
37632 member. Assume drive has partitions.
37633 (grub_util_biosdisk_open): Access device names via `.device' struct
37634 member.
37635 (open_device): Likewise.
37636 (find_drive): Likewise.
37637 (read_device_map): Adjust map[] usage to match the new struct
37638 definition. Don't check for duplicates (still possible, but not cheap
37639 anymore).
37640 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
37641 (make_device_name): Remove assumption of BIOS-like drive names.
37642
37643 2008-05-30 Pavel Roskin <proski@gnu.org>
37644
37645 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
37646 compiling execute.c doesn't need grub_script.tab.h anymore.
37647 (normal/command.c_DEPENDENCIES): Likewise.
37648 (normal/function.c_DEPENDENCIES): Likewise.
37649 * conf/i386-ieee1275.rmk: Likewise.
37650 * conf/i386-linuxbios.rmk: Likewise.
37651 * conf/i386-pc.rmk: Likewise.
37652 * conf/powerpc-ieee1275.rmk: Likewise.
37653 * conf/sparc64-ieee1275.rmk: Likewise.
37654
37655 2008-05-29 Pavel Roskin <proski@gnu.org>
37656
37657 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
37658 when scanning metadata for volume group name.
37659
37660 * include/grub/script.h: Don't include grub_script.tab.h. It's
37661 a generated file, which may only be included from the files with
37662 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
37663 use union YYSTYPE, as the later allows forward declaration.
37664 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
37665
37666 2008-05-29 Robert Millan <rmh@aybabtu.com>
37667
37668 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
37669 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
37670 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
37671 (grub_console_checkkey): Add grub_dprintf() call to report unknown
37672 scan codes.
37673
37674 2008-05-29 Robert Millan <rmh@aybabtu.com>
37675
37676 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
37677 control key combinations.
37678
37679 2008-05-29 Robert Millan <rmh@aybabtu.com>
37680
37681 * util/powerpc/ieee1275/grub-install.in: Move from here ...
37682 * util/ieee1275/grub-install.in: ... to here.
37683 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
37684 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
37685 (grub_install_SOURCES): Likewise.
37686
37687 2008-05-29 Robert Millan <rmh@aybabtu.com>
37688
37689 * fs/affs.c: Update copyright year.
37690 * fs/ext2.c: Likewise.
37691 * fs/fshelp.c: Likewise.
37692 * fs/hfsplus.c: Likewise.
37693 * fs/ntfs.c: Likewise.
37694 * fs/xfs.c: Likewise.
37695 * include/grub/fshelp.h: Likewise.
37696 * util/grub-mkdevicemap.c: Likewise.
37697
37698 2008-05-28 Robert Millan <rmh@aybabtu.com>
37699
37700 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
37701 might need to be fatfs to support some firmware implementations
37702 (e.g. OFW or EFI).
37703
37704 2008-05-28 Robert Millan <rmh@aybabtu.com>
37705
37706 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
37707 devices.
37708 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37709 (make_device_map): Likewise.
37710
37711 2008-05-20 Bean <bean123ch@gmail.com>
37712
37713 * fs/fshelp.c (grub_fshelp_map_block): New function.
37714 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
37715 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
37716
37717 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
37718 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
37719 (grub_fshelp_journal): New structure.
37720 (grub_fshelp_map_block): New function prototype.
37721 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
37722 (grub_fshelp_map_block): Likewise.
37723
37724 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
37725 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
37726 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
37727 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
37728 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
37729 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
37730 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
37731 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
37732 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
37733 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
37734 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
37735 (grub_ext2_sblock): New members for journal support.
37736 (grub_ext3_journal_header): New structure.
37737 (grub_ext3_journal_revoke_header): Likewise.
37738 (grub_ext3_journal_block_tag): Likewise.
37739 (grub_ext3_journal_sblock): Likewise.
37740 (grub_fshelp_node): New members logfile and journal.
37741 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
37742 grub_fshelp_map_block to get real block number.
37743 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
37744 number.
37745 (grub_ext2_read_inode): Likewise.
37746 (grub_ext3_get_journal): New function.
37747 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
37748 (grub_ext2_close): Release memory used by journal.
37749
37750 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
37751 (REISERFS_MAGIC_DESC_BLOCK): New macro.
37752 (grub_reiserfs_transaction_header): Renamed to
37753 grub_reiserfs_description_block, replace field data with real_blocks.
37754 (grub_reiserfs_commit_block): New structure.
37755 (grub_reiserfs_data): New member journal.
37756 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
37757 number.
37758 (grub_reiserfs_read_symlink): Likewise.
37759 (grub_reiserfs_iterate_dir): Likewise.
37760 (grub_reiserfs_open): Likewise.
37761 (grub_reiserfs_read): Likewise.
37762 (grub_reiserfs_get_journal): New function.
37763 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
37764 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
37765 using grub_reiserfs_get_journal.
37766 (grub_reiserfs_close): Release memory used by journal.
37767
37768 * fs/affs.c (grub_affs_read_block): Change block type to
37769 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
37770
37771 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
37772
37773 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
37774
37775 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
37776
37777 * fs/udf.c (grub_udf_read_block): Change block type to
37778 grub_disk_addr_t. Use type cast to avoid warning.
37779
37780 * fs/xfs.c (grub_xfs_read_block): Likewise.
37781
37782 2008-05-16 Christian Franke <franke@computer.org>
37783
37784 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
37785 to ensure that break with ESC will always work.
37786 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
37787 Remove ESC from keyboard queue.
37788
37789 2008-05-16 Christian Franke <franke@computer.org>
37790
37791 * util/biosdisk.c: [__CYGWIN__] Add includes.
37792 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
37793 (get_os_disk): Move variable declarations to OS specific
37794 parts to avoid warning.
37795 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
37796 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
37797 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
37798 Cygwin.
37799 * util/getroot.c: [__CYGWIN__] Add includes.
37800 (strip_extra_slashes): Fix "/" case.
37801 [__CYGWIN__] (get_win32_path): New function.
37802 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
37803 [__CYGWIN__] (find_root_device): Disable.
37804 [__CYGWIN__] (get_bootsec_serial): New function.
37805 [__CYGWIN__] (find_cygwin_root_device): Likewise.
37806 [__linux__] (grub_guess_root_device): Add early returns to simplify
37807 structure.
37808 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
37809 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
37810 check for Linux only.
37811
37812 2008-05-15 Bean <bean123ch@gmail.com>
37813
37814 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
37815 keyboard hang problem in apple's intel mac.
37816
37817 2008-05-09 Robert Millan <rmh@aybabtu.com>
37818
37819 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
37820 devices.
37821 * util/grub-mkdevicemap.c (get_virtio_disk_name)
37822 (make_device_map): Likewise.
37823 Reported by Aurelien Jarno <aurel32@debian.org>
37824
37825 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
37826
37827 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
37828 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
37829 (make_device_map): Output entries for xvd type disks.
37830
37831 2008-05-07 Robert Millan <rmh@aybabtu.com>
37832
37833 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
37834 devices.
37835 * util/grub-mkdevicemap.c (get_cciss_disk_name)
37836 (make_device_map): Likewise.
37837 Reported by Roland Dreier <rdreier@cisco.com>
37838
37839 2008-05-07 Robert Millan <rmh@aybabtu.com>
37840
37841 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
37842 grub_strstr() call. Correct a few mistakes in failure path handling.
37843
37844 2008-05-06 Robert Millan <rmh@aybabtu.com>
37845
37846 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
37847 Do not print a trailing slash (therefore, the root directory is an
37848 empty string).
37849 (convert_system_path_to_grub_path): Do not remove trailing slash
37850 from make_system_path_relative_to_its_root() output.
37851
37852 * util/i386/pc/grub-install.in: Add trailing slash to output from
37853 make_system_path_relative_to_its_root().
37854
37855 2008-05-06 Robert Millan <rmh@aybabtu.com>
37856
37857 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
37858 ensures that output lines aren't intermangled with those sent to
37859 stderr (via grub_util_info()).
37860 * util/grub-probe.c (grub_refresh): Likewise.
37861 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
37862
37863 2008-05-05 Christian Franke <franke@computer.org>
37864
37865 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
37866 Add Cygwin device names.
37867 (get_ide_disk_name) [__CYGWIN__]: Likewise.
37868 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
37869 (check_device): Return error instead of success on empty name.
37870 (make_device_map): Move label inside linux specific code to
37871 prevent compiler warning.
37872
37873 2008-04-30 Robert Millan <rmh@aybabtu.com>
37874
37875 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
37876 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
37877 first boot option.
37878 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
37879
37880 2008-04-29 Robert Millan <rmh@aybabtu.com>
37881
37882 * docs/grub.cfg: New file (example GRUB configuration).
37883
37884 2008-04-26 Robert Millan <rmh@aybabtu.com>
37885
37886 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
37887 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
37888 and `disk/ieee1275/nand.c'.
37889
37890 2008-04-25 Bean <bean123ch@gmail.com>
37891
37892 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
37893 i386-linuxbios.
37894
37895 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
37896 change the buffer size to 4096 for cdrom device.
37897
37898 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
37899 and nand.mod.
37900 (_linux_mod_SOURCES): New variable.
37901 (_linux_mod_CFLAGS): Likewise.
37902 (_linux_mod_LDFLAGS): Likewise.
37903 (linux_mod_SOURCES): Likewise.
37904 (linux_mod_CFLAGS): Likewise.
37905 (linux_mod_LDFLAGS): Likewise.
37906 (nand_mod_SOURCES): Likewise.
37907 (nand_mod_CFLAGS): Likewise.
37908 (nand_mod_LDFLAGS): Likewise.
37909
37910 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
37911 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
37912 type property. (nand device in olpc don't have this property)
37913
37914 * include/grub/disk.h (grub_disk_dev_id): New macro
37915 GRUB_DISK_DEVICE_NAND_ID.
37916
37917 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
37918 function prototype.
37919 (grub_rescue_cmd_initrd): Likewise.
37920
37921 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
37922 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
37923 ofw_cif_handler and ofw_idt, adjust padding number.
37924
37925 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
37926 GRUB_MACHINE_IEEE1275 is defined.
37927
37928 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
37929 Use NESTED_FUNC_ATTR attribute on the hook parameter.
37930
37931 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
37932 on nested function heap_init.
37933 (grub_upper_mem): New variable for i386-ieee1275.
37934 (grub_get_extended_memory): New function for i386-ieee1275.
37935 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
37936
37937 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
37938 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
37939 property.
37940
37941 * loader/i386/ieee1275/linux.c: New file.
37942
37943 * loader/i386/ieee1275/linux_normal.c: New file.
37944
37945 * disk/ieee1275/nand.c: New file.
37946
37947 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
37948
37949 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
37950 value.
37951 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
37952
37953 2008-04-18 Robert Millan <rmh@aybabtu.com>
37954
37955 Restructures early code path on ieee1275 to unify grub_main() as
37956 the first C function that is executed in every platform.
37957
37958 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
37959 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
37960 cmain().
37961 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
37962 * kern/ieee1275/cmain.c (cmain): Rename to ...
37963 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
37964 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
37965 at the beginning.
37966
37967 2008-04-18 Robert Millan <rmh@aybabtu.com>
37968
37969 * util/update-grub.in: Fix syntax error when setting
37970 `GRUB_PRELOAD_MODULES'.
37971 Reported by Stephane Chazelas <stephane@artesyncp.com>
37972
37973 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
37974
37975 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
37976 section into account, newer toolchains generate unique build ids
37977 * configure.ac: remove the test for --build-id=none acceptance,
37978 we want build ids to be preserved
37979 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
37980 far from other sections don't cause the raw binary images grow
37981 size
37982
37983 2008-04-15 Robert Millan <rmh@aybabtu.com>
37984
37985 * disk/lvm.c: Update copyright year.
37986 * kern/misc.c: Likewise.
37987
37988 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37989
37990 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
37991 there is no memory left for physical volume name.
37992
37993 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37994
37995 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
37996 volume name mapping to support bigger than 9 character names properly.
37997
37998 2008-04-13 Robert Millan <rmh@aybabtu.com>
37999
38000 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
38001 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
38002
38003 2008-04-13 Christian Franke <franke@computer.org>
38004
38005 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
38006 to create a floppy emulation boot CD when non emulation mode
38007 does not work.
38008 Enable Joliet CD filesystem extension.
38009
38010 2008-04-13 Robert Millan <rmh@aybabtu.com>
38011
38012 * kern/misc.c (grub_strncat): Fix off-by-one error.
38013 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
38014
38015 * kern/env.c (grub_env_context_close): Clear current context, not
38016 previous one.
38017 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
38018
38019 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
38020
38021 2008-04-13 Robert Millan <rmh@aybabtu.com>
38022
38023 Improve robustness when handling LVM.
38024
38025 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
38026 (and leave `*p' unmodified).
38027 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
38028 through it.
38029 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
38030 iterating through it.
38031 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
38032 through it.
38033 (grub_lvm_scan_device): Check the return value (and fail gracefully
38034 when due) on each grub_lvm_getvalue() or grub_strstr() call.
38035 Don't assume `vg->pvs != NULL' when iterating through it.
38036
38037 2008-04-13 Robert Millan <rmh@aybabtu.com>
38038
38039 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
38040 * genmk.rb (partmap): New variable.
38041 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
38042 (#{partmap}): New target rule.
38043 * genpartmaplist.sh: New file.
38044 * Makefile.in (pkglib_DATA): Add partmap.lst.
38045 (partmap.lst): New target rule.
38046 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
38047 modules (including all partition maps), instead of preloading them.
38048
38049 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
38050
38051 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
38052 `linux-boot-prober' (if installed) to detect other operating
38053 systems which are installed on the computer and add them to
38054 the boot menu.
38055 * conf/common.rmk: Build and install 30_os-prober.
38056
38057 2008-04-12 Robert Millan <rmh@aybabtu.com>
38058
38059 * kern/powerpc/ieee1275/init.c: Move from here ...
38060 * kern/ieee1275/init.c: ... to here. Update all users.
38061
38062 * kern/powerpc/ieee1275/cmain.c: Move from here ...
38063 * kern/ieee1275/cmain.c: ... to here. Update all users.
38064
38065 * kern/powerpc/ieee1275/openfw.c: Move from here ...
38066 * kern/ieee1275/openfw.c: ... to here. Update all users.
38067
38068 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
38069 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
38070
38071 2008-04-10 Pavel Roskin <proski@gnu.org>
38072
38073 * configure.ac: Always use "_cv_" in cache variables for
38074 compatibility with Autoconf 2.62.
38075
38076 2008-04-07 Robert Millan <rmh@aybabtu.com>
38077
38078 Revert grub/machine/init.h addition by Pavel (since it breaks on
38079 i386-ieee1275 and others):
38080 * util/i386/pc/misc.c: Remove grub/machine/init.h.
38081 * util/powerpc/ieee1275/misc.c: Likewise.
38082
38083 2008-04-07 Robert Millan <rmh@aybabtu.com>
38084
38085 * util/grub-probe.c (probe): Improve error message.
38086
38087 2008-04-07 Robert Millan <rmh@aybabtu.com>
38088
38089 * util/biosdisk.c (read_device_map): Skip devices that don't exist
38090 (this prevents the presence of a bogus entry from ruining the whole
38091 thing).
38092
38093 2008-04-06 Pavel Roskin <proski@gnu.org>
38094
38095 * util/biosdisk.c: Include grub/util/biosdisk.h.
38096 * util/grub-fstest.c (execute_command): Make static.
38097 * util/grub-mkdevicemap.c (check_device): Likewise.
38098 * util/i386/pc/misc.c: Include grub/machine/init.h.
38099 * util/powerpc/ieee1275/misc.c: Likewise.
38100 * util/lvm.c: Include grub/util/lvm.h.
38101 * util/misc.c: Include grub/kernel.h, grub/misc.h and
38102 grub/cache.h.
38103 * util/raid.c: Include grub/util/raid.h.
38104 (grub_util_getdiskname): Make static.
38105
38106 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
38107 grub_hostfs_fini(), as they are called from grub_init_all() and
38108 grub_fini_all() respectively. This fixes an infinite loop in
38109 grub-fstest due to double registration of hostfs.
38110 Reported by Christian Franke <Christian.Franke@t-online.de>
38111
38112 2008-04-05 Pavel Roskin <proski@gnu.org>
38113
38114 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
38115 all 8 functions. Otherwise, probe function 0 only.
38116
38117 2008-04-04 Pavel Roskin <proski@gnu.org>
38118
38119 * commands/lspci.c (grub_lspci_iter): Print the bus number
38120 correctly.
38121
38122 * commands/lspci.c (grub_pci_classes): Fix typos.
38123 (grub_lspci_iter): Don't print func twice. Print vendor ID
38124 before device ID, as it's normally done.
38125
38126 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
38127 Fix signedness warnings.
38128 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
38129 Likewise.
38130 * util/ieee1275/get_disk_name.c: Include config.h so that
38131 _GNU_SOURCE is defined and getline() is declared. Mark an
38132 unused argument as such. Fix a signedness warning.
38133
38134 2008-04-02 Pavel Roskin <proski@gnu.org>
38135
38136 * genkernsyms.sh.in: Use more robust assignments for CC and
38137 srcdir. Quote srcdir.
38138 * gensymlist.sh.in: Likewise. Assert at the compile time that
38139 the symbol table is not empty.
38140
38141 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
38142 * fs/cpio.c (grub_cpio_read): Likewise.
38143
38144 2008-04-01 Pavel Roskin <proski@gnu.org>
38145
38146 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
38147 * disk/host.c (grub_host_open): Likewise.
38148 * disk/loopback.c (grub_loopback_open): Likewise.
38149 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
38150 disk->id as in disk/host.c, not a multi-character constant.
38151
38152 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
38153 later is obsolete, potentially dangerous and sets a bad example.
38154 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
38155 * util/misc.c (grub_util_get_image_size): Likewise.
38156
38157 * disk/loopback.c (options): Improve help for "--partitions".
38158
38159 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
38160 options to align them with the short options, e.g. "echo -e".
38161
38162 2008-03-31 Bean <bean123ch@gmail.com>
38163
38164 * video/reader/png.c (grub_png_data): New member is_16bit and
38165 image_data.
38166 (grub_png_decode_image_header): Detect 16 bit png image.
38167 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
38168 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
38169 (grub_video_reader_png): Release memory occupied by image_data.
38170
38171 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
38172 4096 bytes.
38173 (grub_nfs_mount): Skip the test for sector per cluster.
38174
38175 * include/grub/ntfs.h (MAX_SPC): Removed.
38176
38177 2008-03-31 Bean <bean123ch@gmail.com>
38178
38179 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
38180 (grub_probe_SOURCES): Add fs/afs.c.
38181 (grub_fstest_SOURCES): Likewise.
38182 (afs_mod_SOURCES): New variable.
38183 (afs_mod_CFLAGS): Likewise.
38184 (afs_mod_LDFLAGS): Likewise.
38185
38186 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
38187 (grub_emu_SOURCES): Likewise.
38188
38189 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38190
38191 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38192
38193 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38194
38195 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38196
38197 * fs/afs.c: New file.
38198
38199 2008-03-30 Pavel Roskin <proski@gnu.org>
38200
38201 * disk/host.c: Include grub/misc.h to fix a warning.
38202 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
38203 warnings about implicit declarations.
38204
38205 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
38206 variable.
38207 * include/grub/i386/loader.h: Change declaration of
38208 grub_linux_boot() to match what grub_loader_set() expects.
38209 * util/getroot.c (grub_guess_root_device): Return const char* to
38210 fix a warning.
38211 * util/grub-probe.c (probe): Fix a warning about uninitialized
38212 abstraction_name variable.
38213 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
38214 second argument as unused to fix a warning.
38215
38216 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
38217 missing grub_error() call.
38218
38219 * util/update-grub_lib.in: Define datarootdir, since Autoconf
38220 2.60 and newer uses it to define datadir.
38221
38222 * commands/sleep.c: Fix warning about implicit declaration.
38223 * disk/memdisk.c: Likewise.
38224 * loader/aout.c: Likewise.
38225 * loader/i386/bsd_normal.c: Likewise.
38226 * util/grub-probe.c: Likewise.
38227
38228 * commands/i386/cpuid.c (has_longmode): Make static.
38229 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
38230 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
38231
38232 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
38233 GDT. This is more robust, as %ds can change.
38234 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
38235 calling real_to_prot().
38236 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
38237
38238 2008-03-28 Pavel Roskin <proski@gnu.org>
38239
38240 * kern/i386/pc/startup.S: Assert that uncompressed functions
38241 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
38242 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
38243 code, as they push parts of the code (error handlers) beyond
38244 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
38245 code as correctness and size.
38246
38247 2008-03-28 Pavel Roskin <proski@gnu.org>
38248
38249 * kern/i386/pc/startup.S
38250 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
38251 data block address to the real mode, keep offset minimal. This
38252 works around a bug in AWARD BIOS on old Athlon systems, which
38253 makes CD detection hang.
38254
38255 2008-03-26 Pavel Roskin <proski@gnu.org>
38256
38257 * normal/color.c (grub_parse_color_name_pair): Make `name' a
38258 const.
38259 * include/grub/normal.h: Add grub_parse_color_name_pair()
38260 declaration.
38261
38262 2008-03-24 Bean <bean123ch@gmail.com>
38263
38264 * disk/i386/pc/biosdisk.c (cd_start): Removed.
38265 (cd_count): Removed.
38266 (cd_drive): New variable.
38267 (grub_biosdisk_get_drive): Don't check for (cdN) device.
38268 (grub_biosdisk_call_hook): Likewise.
38269 (grub_biosdisk_iterate): Change cdrom detection method.
38270 (grub_biosdisk_open): Replace cd_start with cd_drive.
38271 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
38272 detect cdrom device.
38273
38274 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
38275 Removed.
38276 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
38277 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
38278 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
38279 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
38280 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
38281 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
38282 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
38283 (grub_biosdisk_cdrp): New structure.
38284 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
38285
38286 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
38287
38288 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
38289 device.
38290
38291 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
38292 New function.
38293
38294 2008-03-20 Robert Millan <rmh@aybabtu.com>
38295
38296 Remove 2 TiB limit in ata.mod.
38297 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
38298 (grub_ata_dumpinfo): Print sector count with 0x%llx.
38299 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
38300 grub_uint64_t instead of grub_uint32_t.
38301
38302 2008-03-05 Bean <bean123ch@gmail.com>
38303
38304 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
38305 (grub_multiboot): Set boot device.
38306
38307 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
38308
38309 2008-03-02 Bean <bean123ch@gmail.com>
38310
38311 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
38312 symlink_buffer.
38313
38314 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
38315
38316 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
38317 texinfo.tex.
38318
38319 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
38320 modified.
38321
38322 * docs/fdl.texi: New file.
38323
38324 * docs/mdate-sh: New file. Copied from gnulib.
38325 * docs/texinfo.tex: Likewise.
38326
38327 * config.guess: Updated from gnulib.
38328 * install-sh: Likewise.
38329
38330 2008-02-28 Robert Millan <rmh@aybabtu.com>
38331
38332 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
38333 (aout_mod_SOURCES): New variable.
38334 (aout_mod_CFLAGS): Likewise.
38335 (aout_mod_LDFLAGS): Likewise.
38336
38337 * conf/i386-ieee1275.rmk: Likewise.
38338
38339 2008-02-28 Robert Millan <rmh@aybabtu.com>
38340
38341 * util/update-grub.in: Reorganise terminal validity check. Accept
38342 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
38343 Based on suggestion by Franklin PIAT.
38344
38345 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
38346
38347 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
38348 function.
38349 * util/getroot.c (grub_util_check_block_device): New function that
38350 returns the given argument if it is a block device and returns NULL else.
38351 * util/grub-probe.c (argument_is_device): New variable.
38352 (probe): Promote device_name from a variable to an argument. Receive
38353 device_name from grub_util_check_block_device() if path is NULL and from
38354 grub_guess_root_device() else. Do not free() device_name anymore.
38355 (options): Introduce new parameter '-d, --device'.
38356 (main): Add description of the new parameter to the help screen.
38357 Rename path variable to argument. Set argument_is_device if the '-d'
38358 option is given. Pass argument to probe() depending on
38359 argument_is_device.
38360
38361 2008-02-24 Bean <bean123ch@gmail.com>
38362
38363 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
38364 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
38365 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
38366 (GRUB_ISO9660_VOLDESC_PART): Likewise.
38367 (GRUB_ISO9660_VOLDESC_END): Likewise.
38368 (grub_iso9660_primary_voldesc): New member escape.
38369 (grub_iso9660_data): New member joliet.
38370 (grub_iso9660_convert_string): New function.
38371 (grub_iso9660_mount): Detect joliet extension.
38372 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
38373 (grub_iso9660_iso9660_label): Likewise.
38374
38375 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
38376 (grub_setup_SOURCES): Add fs/udf.c.
38377 (grub_fstest_SOURCES): Likewise.
38378 (udf_mod_SOURCES): New variable.
38379 (udf_mod_CFLAGS): Likewise.
38380 (udf_mod_LDFLAGS): Likewise.
38381
38382 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
38383 (grub_emu_SOURCES): Likewise.
38384
38385 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38386
38387 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38388
38389 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38390
38391 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38392
38393 * fs/udf.c: New file.
38394
38395 2008-02-24 Robert Millan <rmh@aybabtu.com>
38396
38397 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
38398 (normal/lexer.c_DEPENDENCIES): New variables.
38399 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38400 (normal/lexer.c_DEPENDENCIES): Likewise.
38401 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
38402 (normal/lexer.c_DEPENDENCIES): Likewise.
38403 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
38404 (normal/lexer.c_DEPENDENCIES): Likewise.
38405 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38406 (normal/lexer.c_DEPENDENCIES): Likewise.
38407 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38408 (normal/lexer.c_DEPENDENCIES): Likewise.
38409
38410 2008-02-23 Robert Millan <rmh@aybabtu.com>
38411
38412 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
38413 since they were intended to be in hex. This didn't break previously
38414 because of a bug in gpt_partition_map_iterate() (see below).
38415
38416 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
38417 when checking the validity of GPT header.
38418 Remove `partno', since it always provides the same information as `i'.
38419
38420 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
38421
38422 * include/grub/efi/time.h: Fix a wrong comment.
38423
38424 2008-02-19 Pavel Roskin <proski@gnu.org>
38425
38426 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
38427 message.
38428
38429 2008-02-19 Bean <bean123ch@gmail.com>
38430
38431 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
38432 (aout_mod_SOURCES): New variable.
38433 (aout_mod_CFLAGS): Likewise.
38434 (aout_mod_LDFLAGS): Likewise.
38435 (_bsd_mod_SOURCES): New variable.
38436 (_bsd_mod_CFLAGS): Likewise.
38437 (_bsd_mod_LDFLAGS): Likewise.
38438 (bsd_mod_SOURCES): New variable.
38439 (bsd_mod_CFLAGS): Likewise.
38440 (bsd_mod_LDFLAGS): Likewise.
38441
38442 * include/grub/aout.h: New file.
38443
38444 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
38445
38446 * include/grub/i386/bsd.h: New file.
38447
38448 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
38449 to make it public.
38450
38451 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
38452 function is called, so that it's possible to change it inside the hook.
38453 (grub_elf64_load): Likewise.
38454 (grub_elf_file): Don't close the file if elf header is not found.
38455 (grub_elf_close): Close the file if grub_elf_file fails (The new
38456 grub_elf_file won't close it).
38457 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
38458 (grub_elf64_size): Likewise.
38459
38460 * kern/i386/loader.S (grub_unix_real_boot): New function.
38461
38462 * loader/aout.c: New file.
38463
38464 * loader/i386/bsd.c: New file.
38465
38466 * loader/i386/bsd_normal.c: New file.
38467
38468 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
38469
38470 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
38471 can test other formats.
38472
38473 2008-02-19 Robert Millan <rmh@aybabtu.com>
38474
38475 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
38476 (grub_gpt_partition_type_empty): Redefine with macro from
38477 `<grub/gpt_partition.h>'.
38478 (gpt_partition_map_iterate): Adjust partition type comparison.
38479
38480 Export `entry' as partmap-specific `part.data' struct.
38481 (grub_gpt_header, grub_gpt_partentry): Move from here ...
38482
38483 * include/grub/gpt_partition.h (grub_gpt_header)
38484 (grub_gpt_partentry): ... to here (new file).
38485
38486 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
38487
38488 (grub_gpt_partition_type_bios_boot): New const variable, defined
38489 with macro from `<grub/gpt_partition.h>'.
38490
38491 (setup): Replace `first_start' with `embed_region', which keeps
38492 track of the embed region (and is partmap-agnostic).
38493
38494 Replace find_first_partition_start() with find_usable_region(),
38495 which finds a usable region for embedding using partmap-specific
38496 knowledge (supports PC/MSDOS and GPT).
38497
38498 Fix all assumptions that the embed region start at sector 1, using
38499 `embed_region.start' from now on. Similarly, use `embed_region.end'
38500 rather than `first_start' to calculate available size.
38501
38502 In grub_util_info() message, replace "into after the MBR" with an
38503 indication of the specific sector our embed region starts at.
38504
38505 2008-02-19 Robert Millan <rmh@aybabtu.com>
38506
38507 * DISTLIST: Replace `commands/ieee1275/halt.c' and
38508 `commands/ieee1275/reboot.c' with `commands/halt.c' and
38509 `commands/reboot.c'.
38510 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38511 (halt_mod_SOURCES): Likewise.
38512 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38513 (halt_mod_SOURCES): Likewise.
38514
38515 2008-02-17 Christian Franke <franke@computer.org>
38516
38517 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
38518
38519 2008-02-17 Robert Millan <rmh@aybabtu.com>
38520
38521 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38522 set `first_start' to 0 for non-PC/MSDOS partition maps.
38523
38524 2008-02-16 Robert Millan <rmh@aybabtu.com>
38525
38526 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38527 do not assume partition map is PC/MSDOS before performing checks that
38528 are specific to that layout.
38529
38530 2008-02-13 Robert Millan <rmh@aybabtu.com>
38531
38532 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
38533 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
38534 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
38535
38536 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
38537
38538 * configure.ac: Only a cosmetic change on the handling of
38539 -fno-stack-protector.
38540
38541 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
38542
38543 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
38544 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
38545 reboot.c.
38546 (grub_install_SOURCES): Add halt.mod and reboot.mod.
38547 (halt_mod_SOURCES): New variable.
38548 (halt_mod_CFLAGS): Likewise.
38549 (halt_mod_LDFLAGS): Likewise.
38550 (reboot_mod_SOURCES): Likewise.
38551 (reboot_mod_CFLAGS): Likewise.
38552 (reboot_mod_LDFLAGS): Likewise.
38553
38554 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
38555 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
38556 reboot.c.
38557 (halt_mod_SOURCES): Likewise.
38558 (reboot_mod_SOURCES): Likewise.
38559
38560 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
38561 commands/i386/pc/reboot.c by commands/reboot.c.
38562 (reboot_mod_SOURCES): Likewise.
38563
38564 * commands/i386/pc/reboot.c: merge this file ...
38565
38566 * commands/ieee1275/reboot.c: ... and this file ...
38567
38568 * commands/reboot.c: ... to this file.
38569 Add some precompiler directive to include the correct header for
38570 each machine.
38571
38572 * commands/ieee1275/halt.c: move this file ...
38573
38574 * commands/halt.c: ... to here.
38575 Add some precompiler directive to include the correct header for
38576 each machine.
38577
38578 * include/grub/efi/efi.h (grub_reboot): New function declaration.
38579 (grub_halt): Likewise.
38580
38581 * kern/efi/efi.c (grub_reboot): New function.
38582 (grub_halt): Likewise.
38583
38584 2008-02-12 Robert Millan <rmh@aybabtu.com>
38585
38586 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
38587 /dev (like it is done for /dev/mapper). This doesn't provide support
38588 for EVMS, but at least it is now easy to identify the problem when it
38589 arises.
38590
38591 2008-02-11 Robert Millan <rmh@aybabtu.com>
38592
38593 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
38594 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
38595 comparing it with -1, not 0.
38596
38597 2008-02-10 Robert Millan <rmh@aybabtu.com>
38598
38599 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
38600 `disk/lvm.c'.
38601 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38602 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
38603
38604 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
38605 `disk/lvm.c' to the end of the list.
38606 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38607 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38608
38609 2008-02-10 Robert Millan <rmh@aybabtu.com>
38610
38611 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
38612 grub_print_error() instead. This will let user know why we're entering
38613 rescue mode.
38614 Based on suggestions from Sam Morris.
38615
38616 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
38617
38618 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
38619 on remaining N args, instead of "--" arg N times.
38620
38621 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
38622
38623 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
38624 (fill_with_default_glyph): Changed to use unknown_glyph for fill
38625 pattern for unknown glyphs.
38626
38627 2008-02-09 Robert Millan <rmh@aybabtu.com>
38628
38629 * configure.ac: Probe for `help2man'.
38630 * Makefile.in (builddir): New variable.
38631 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
38632 or otherwise add a few flags/options to it.
38633 (install-local): For every executable utility or script that is
38634 installed, invoke $(HELP2MAN) to install a manpage based on --help
38635 output.
38636
38637 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
38638 that it doesn't prevent --help from working in build tree.
38639
38640 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
38641 with `bug-grub@gnu.org'.
38642 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
38643 * util/update-grub.in (usage): New function.
38644 Implement proper argument check, with support for --help and --version
38645 (as well as existing -y).
38646
38647 2008-02-09 Christian Franke <franke@computer.org>
38648
38649 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
38650 avoid overwriting previous output.
38651 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
38652
38653 2008-02-09 Robert Millan <rmh@aybabtu.com>
38654
38655 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
38656 drawing the menu.
38657
38658 2008-02-09 Robert Millan <rmh@aybabtu.com>
38659
38660 * commands/sleep.c: New file.
38661 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
38662 (sleep_mod_SOURCES): New variable.
38663 (sleep_mod_CFLAGS): Likewise.
38664 (sleep_mod_LDFLAGS): Likewise.
38665
38666 2008-02-09 Robert Millan <rmh@aybabtu.com>
38667
38668 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
38669 situations in which we can deduce the RAID size and the superblock
38670 doesn't match it.
38671
38672 2008-02-09 Robert Millan <rmh@aybabtu.com>
38673
38674 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
38675 and return a grub_diskmemberlist_t composed of LVM physical volumes.
38676 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
38677
38678 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
38679 and return a grub_diskmemberlist_t composed of physical array members.
38680 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
38681
38682 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
38683 prototype.
38684 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
38685 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
38686 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
38687
38688 * util/grub-probe.c (probe): Move partmap probing code from here ...
38689 (probe_partmap): ... to here.
38690 (probe): Use probe_partmap() once for the disk we're probing, and
38691 additionally, when such disk contains a memberlist() struct member,
38692 once for each disk that is contained in the structure returned by
38693 memberlist().
38694
38695 2008-02-09 Robert Millan <rmh@aybabtu.com>
38696
38697 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
38698 environment variable to 'all' in order to obtain debug output from
38699 non-util/ code.
38700 * util/i386/pc/grub-setup.c (main): Likewise.
38701
38702 2008-02-08 Robert Millan <rmh@aybabtu.com>
38703
38704 * disk/raid.c (grub_raid_scan_device): Check for
38705 `array->device[sb.this_disk.number]' rather than for
38706 `array->device[sb.this_disk.number]->name', since the latter is not
38707 guaranteed to be accessible.
38708
38709 2008-02-08 Robert Millan <rmh@aybabtu.com>
38710
38711 * disk/raid.c: Update copyright.
38712 * fs/cpio.c: Likewise.
38713 * include/grub/raid.h: Likewise.
38714 * loader/i386/pc/multiboot.c: Likewise.
38715 * util/hostfs.c: Likewise.
38716
38717 2008-02-08 Robert Millan <rmh@aybabtu.com>
38718
38719 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
38720 to a grub_disk_t array.
38721 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
38722 `device[x]'.
38723 (grub_raid_scan_device): Replace `device[x].name' accesses with
38724 `device[x]->name'. Simplify initialization of `array->device[x]'.
38725
38726 2008-02-08 Robert Millan <rmh@aybabtu.com>
38727
38728 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
38729 grub_dprintf() calls.
38730 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
38731 error message.
38732
38733 2008-02-07 Christian Franke <franke@computer.org>
38734
38735 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
38736 instead of fseek and ftell to support large files.
38737 (grub_hostfs_read): Likewise.
38738
38739 2008-02-07 Robert Millan <rmh@aybabtu.com>
38740
38741 Patch from Jeroen Dekkers.
38742 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
38743 failure, since successfully reading all array members might not be
38744 required.
38745
38746 2008-02-06 Robert Millan <rmh@aybabtu.com>
38747
38748 * util/grub-probe.c (probe): Simplify partmap probing (with the
38749 assumption that the first word up to the underscore equals to
38750 the module name).
38751
38752 2008-02-06 Christian Franke <franke@computer.org>
38753
38754 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
38755 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
38756 last block of a cpio or tar stream.
38757 Check for "TRAILER!!!" instead of any empty data
38758 block to detect last block of a cpio stream.
38759 (grub_cpio_dir): Fix constness of variable np.
38760 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
38761 cpio or tar trailer is detected. This fixes a crash
38762 on open of a non existing file.
38763
38764 2008-02-05 Bean <bean123ch@gmail.com>
38765
38766 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
38767 address of entry.
38768 (grub_multiboot_load_elf64): Likewise.
38769 (grub_multiboot): Initialize mbi structure.
38770
38771 * util/grub-fstest.c: Don't include unused header file script.h.
38772
38773 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
38774 of file.
38775 (grub_fstest_SOURCES): Likewise.
38776
38777 2008-02-05 Robert Millan <rmh@aybabtu.com>
38778
38779 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
38780 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
38781 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
38782 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
38783
38784 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
38785 (translation_table): Replace hardcoded values with macros
38786 provided by `<grub/term.h>'.
38787
38788 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
38789 (keyboard_map): Correct/add a few values, with macros provided
38790 by `<grub/term.h>'.
38791 (keyboard_map_shift): Zero values that don't differ from their
38792 `keyboard_map' equivalents.
38793 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
38794 Discard the second scan code that is always sent by Caps lock.
38795 Only use `keyboard_map_shift' when it provides a non-zero value,
38796 otherwise fallback to `keyboard_map'.
38797
38798 2008-02-04 Bean <bean123ch@gmail.com>
38799
38800 * Makefile.in (enable_grub_fstest): New variable.
38801
38802 * conf/common.rmk (grub_fstest_init.lst): New rule.
38803 (grub_fstest_init.h): Likewise.
38804 (grub_fstest_init.c): Likewise.
38805 (util/grub-fstest.c_DEPENDENCIES): New variable.
38806 (grub_fstest_SOURCES): Likewise.
38807
38808 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
38809
38810 * util/grub-fstest.c: New file.
38811
38812 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38813
38814 Make grub-setup handle a separate root device.
38815
38816 * util/i386/pc/grub-setup.c (setup): Always open the root device,
38817 so that the root device can be compared with the destination
38818 device.
38819 When embedding the core image, if the root and destination devices
38820 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
38821 0xFF.
38822 When not embedding, set ROOT_DRIVE to 0xFF.
38823
38824 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38825
38826 Add support for having a grub directory in a different drive. This
38827 is still only the data handling part.
38828
38829 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
38830 (codestart): Save %dh in GRUB_ROOT_DRIVE.
38831 (grub_root_drive): New variable.
38832
38833 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
38834 instead of GRUB_BOOT_DRIVE to construct a device name. Set
38835 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
38836 as it was.
38837
38838 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
38839
38840 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
38841 macro.
38842 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
38843
38844 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
38845 is bogus, because PXE booting does not specify any drive
38846 correctly.
38847
38848 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
38849 am not sure if this is really correct.
38850
38851 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
38852 is always identical to the boot drive when booting from a CD.
38853
38854 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
38855 longer.
38856 (root_drive): New variable.
38857 (real_start): Unconditionally set %dh to ROOT_DRIVE.
38858 (setup_sectors): Push %dx right after popping it, because %dh will
38859 be modified later.
38860 (copy_buffer): Restore %dx.
38861
38862 2008-02-03 Robert Millan <rmh@aybabtu.com>
38863
38864 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
38865 use `cdboot.img' for cdrom images.
38866
38867 2008-02-03 Robert Millan <rmh@aybabtu.com>
38868
38869 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
38870 only setup gfxterm when `font' command has succeeded.
38871
38872 2008-02-03 Robert Millan <rmh@aybabtu.com>
38873
38874 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
38875 (grub_rescue_cmd_multiboot_loader)
38876 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
38877
38878 2008-02-03 Pavel Roskin <proski@gnu.org>
38879
38880 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
38881 %edx and %esi from stack only after grub_gate_a20() is called.
38882 grub_gate_a20() clobbers %edx.
38883
38884 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38885
38886 * configure.ac (AC_INIT): Bumped to 1.96.
38887
38888 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
38889 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
38890 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
38891 video/readers/png.c.
38892
38893 2008-02-03 Bean <bean123ch@gmail.com>
38894
38895 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
38896 (cdboot_img_SOURCES): New variable.
38897 (cdboot_img_ASFLAGS): New variable.
38898 (cdboot_img_LDFLAGS): New variable.
38899
38900 * boot/i386/pc/cdboot.S: New file.
38901
38902 * disk/i386/pc/biosdisk.c (cd_start): New variable.
38903 (cd_count): Likewise.
38904 (grub_biosdisk_get_drive): Add support for cd device.
38905 (grub_biosdisk_call_hook): Likewise.
38906 (grub_biosdisk_iterate): Likewise.
38907 (grub_biosdisk_open): Likewise.
38908 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
38909 (grub_biosdisk_rw): Support reading from cd device.
38910 (GRUB_MOD_INIT): Iterate cd devices.
38911
38912 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
38913 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
38914 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
38915
38916 * kern/i386/pc/init.c (make_install_device): Check for cd device.
38917
38918 2008-02-02 Robert Millan <rmh@aybabtu.com>
38919
38920 * commands/read.c: New file.
38921 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
38922 (read_mod_SOURCES): New variable.
38923 (read_mod_CFLAGS): Likewise.
38924 (read_mod_LDFLAGS): Likewise.
38925
38926 2008-02-02 Robert Millan <rmh@aybabtu.com>
38927
38928 * normal/main.c (grub_normal_execute): Check for `menu->size' when
38929 determining whether menu has to be displayed.
38930
38931 2008-02-02 Marco Gerards <marco@gnu.org>
38932
38933 * bus/pci.c: New file.
38934
38935 * include/grub/pci.h: Likewise.
38936
38937 * include/grub/i386/pc/pci.h: Likewise.
38938
38939 * commands/lspci.c: Likewise.
38940
38941 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
38942 `lspci.mod'.
38943 (pci_mod_SOURCES): New variable.
38944 (pci_mod_CFLAGS): Likewise.
38945 (pci_mod_LDFLAGS): Likewise.
38946 (lspci_mod_SOURCES): Likewise.
38947 (lspci_mod_CFLAGS): Likewise.
38948 (lspci_mod_LDFLAGS): Likewise.
38949
38950 2008-02-02 Bean <bean123ch@gmail.com>
38951
38952 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
38953 (grub_ufs_get_file_block): Fix indirect block calculation problem.
38954
38955 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
38956 (grub_xfs_btree_node): New structure.
38957 (grub_xfs_btree_root): New structure.
38958 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
38959 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
38960 (GRUB_XFS_EXTENT_BLOCK): Likewise.
38961 (GRUB_XFS_EXTENT_SIZE): Likewise.
38962 (grub_xfs_read_block): Support btree format type.
38963 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
38964 Use directory block as basic unit.
38965
38966 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
38967
38968 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
38969 __attribute__ ((__regparm__ (1))).
38970
38971 2008-02-01 Robert Millan <rmh@aybabtu.com>
38972
38973 Correct a mistake in previous commit.
38974
38975 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
38976 top.
38977 (normal/command.c_DEPENDENCIES): New variable.
38978
38979 2008-02-01 Robert Millan <rmh@aybabtu.com>
38980
38981 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
38982 top.
38983 (normal/command.c_DEPENDENCIES): New variable.
38984 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
38985 * conf/i386-ieee1275.rmk: Likewise.
38986 * conf/i386-linuxbios.rmk: Likewise.
38987 * conf/i386-pc.rmk: Likewise.
38988 * conf/sparc64-ieee1275.rmk: Likewise.
38989 * conf/powerpc-ieee1275.rmk: Likewise.
38990 (grub_emu_SOURCES): Add `fs/fshelp.c'.
38991
38992 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
38993
38994 2008-02-01 Robert Millan <rmh@aybabtu.com>
38995
38996 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
38997 call at beginning of function.
38998
38999 2008-01-31 Pavel Roskin <proski@gnu.org>
39000
39001 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
39002 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
39003 (grub_mkrescue_SOURCES): Likewise.
39004 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
39005
39006 2008-01-30 Robert Millan <rmh@aybabtu.com>
39007
39008 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
39009 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
39010 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
39011 (grub_probe_SOURCES): ... to here.
39012
39013 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
39014 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
39015 * conf/i386-ieee1275.rmk: Likewise.
39016 * conf/i386-linuxbios.rmk: Likewise.
39017 * conf/powerpc-ieee1275.rmk: Likewise.
39018
39019 2008-01-30 Tristan Gingold <gingold@free.fr>
39020
39021 * kern/rescue.c: Silently accept empty lines.
39022
39023 2008-01-29 Bean <bean123ch@gmail.com>
39024
39025 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
39026 (real_code_2): Code cleanup and change comment style.
39027 (move_memory): Avoid using 32-bit address mode.
39028
39029 2008-01-29 Bean <bean123ch@gmail.com>
39030
39031 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
39032 (png_mod_SOURCES): New variable.
39033 (png_mod_CFLAGS): Likewise.
39034 (png_mod_LDFLAGS): Likewise.
39035
39036 * video/readers/png.c: New file.
39037
39038 2008-01-28 Robert Millan <rmh@aybabtu.com>
39039
39040 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
39041 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
39042 `ifndef GRUB_MOD_GAP' hack.
39043 * util/elf/grub-mkimage.c (add_segments): Likewise.
39044
39045 2008-01-27 Robert Millan <rmh@aybabtu.com>
39046
39047 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
39048 `GRUB_MOD_GAP' for platforms in which it's not defined.
39049 * util/elf/grub-mkimage.c (add_segments): Likewise.
39050
39051 2008-01-27 Robert Millan <rmh@aybabtu.com>
39052
39053 Get grub-emu to build again (including parallel builds).
39054
39055 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
39056 Split into ...
39057 (util/grub-emu.c_DEPENDENCIES): ... this, ...
39058 (normal/execute.c_DEPENDENCIES): ... this, ...
39059 (grub-emu_DEPENDENCIES): ... and this.
39060
39061 * conf/i386-efi.rmk: Likewise.
39062 * conf/i386-linuxbios.rmk: Likewise.
39063 * conf/i386-ieee1275.rmk: Likewise.
39064 * conf/powerpc-ieee1275.rmk: Likewise.
39065 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
39066
39067 2008-01-27 Robert Millan <rmh@aybabtu.com>
39068
39069 * NEWS: Add a few items.
39070
39071 2008-01-27 Robert Millan <rmh@aybabtu.com>
39072
39073 Fix parallel builds with grub-emu. Based on earlier commit for
39074 grub-probe and grub-setup.
39075
39076 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39077 (util/grub-emu.c_DEPENDENCIES): ... this.
39078 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39079 (util/grub-emu.c_DEPENDENCIES): ... this.
39080 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39081 (util/grub-emu.c_DEPENDENCIES): ... this.
39082 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39083 (util/grub-emu.c_DEPENDENCIES): ... this.
39084 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39085 (util/grub-emu.c_DEPENDENCIES): ... this.
39086
39087 2008-01-27 Pavel Roskin <proski@gnu.org>
39088
39089 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
39090 to create a gap between _end and the modules added to the image
39091 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
39092 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
39093 * util/elf/grub-mkimage.c (add_segments): Likewise.
39094
39095 2008-01-26 Pavel Roskin <proski@gnu.org>
39096
39097 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
39098 just return an error.
39099
39100 2008-01-26 Bean <bean123ch@gmail.com>
39101
39102 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
39103 (grub_reiserfs_get_item): Save offset of the next item.
39104 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
39105
39106 2008-01-25 Robert Millan <rmh@aybabtu.com>
39107
39108 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
39109 make all filesystem sources appear together (possibly fixing omissions
39110 while at it).
39111 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39112 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39113 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39114 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39115
39116 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
39117 add `kern/file.c'.
39118 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
39119 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39120 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
39121 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39122
39123 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
39124 (probe): Add a sanity check to make sure of our ability to read
39125 requested files when probing for filesystem type.
39126
39127 * genmk.rb: Update copyright year (2007).
39128
39129 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
39130 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
39131 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
39132 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
39133 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
39134 : Remove function prototypes.
39135
39136 2008-01-25 Robert Millan <rmh@aybabtu.com>
39137
39138 Revert my previous commits (based on wrong assumption of how grub_errno
39139 works).
39140
39141 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
39142 * kern/file.c (grub_file_open): Likewise.
39143
39144 2008-01-24 Pavel Roskin <proski@gnu.org>
39145
39146 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
39147 that hang if GRUB tries to setup colors.
39148 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
39149 colors for firmwares that don't support it.
39150 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
39151 Recognize Open Hack'Ware, set flags to work around its
39152 limitations.
39153
39154 2008-01-24 Robert Millan <rmh@aybabtu.com>
39155
39156 * kern/file.c (grub_file_open): Do not account previous failures of
39157 unrelated functions when grub_errno is checked for.
39158 Reported by Oleg Strikov.
39159
39160 2008-01-24 Bean <bean123ch@gmail.com>
39161
39162 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
39163 (grub_ufs_sblock): New member volume name.
39164 (grub_ufs_find_file): Fix string copy bug.
39165 (grub_ufs_label): Implement this function properly.
39166
39167 * fs/hfs.c (grub_hfs_cnid_type): New enum.
39168 (grub_hfs_iterate_records): Use the correct file number for extents
39169 and catalog file. Fix problem in next index calculation.
39170 (grub_hfs_find_node): Replace recursive function call with loop.
39171 (grub_hfs_iterate_dir): Replace recursive function call with loop.
39172
39173 2008-01-23 Robert Millan <rmh@aybabtu.com>
39174
39175 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
39176 `<grub/symbol.h>' and `<grub/multiboot.h>'.
39177 (grub_multiboot2_real_boot): New function prototype.
39178
39179 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
39180 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
39181
39182 * kern/i386/ieee1275/init.c (grub_os_area_addr)
39183 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
39184
39185 2008-01-23 Robert Millan <rmh@aybabtu.com>
39186
39187 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
39188 #ifdef'ed out grub_printf().
39189
39190 2008-01-23 Robert Millan <rmh@aybabtu.com>
39191
39192 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
39193 grub_dprintf calls, since they make "debug=all" mode unusable.
39194 (grub_console_checkkey): Likewise.
39195
39196 2008-01-23 Robert Millan <rmh@aybabtu.com>
39197
39198 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
39199 `term/i386/pc/at_keyboard.c'.
39200 (pkglib_MODULES): Add `serial.mod'.
39201 (serial_mod_SOURCES): New variable.
39202 (serial_mod_CFLAGS): Likewise.
39203 (serial_mod_LDFLAGS): Likewise.
39204
39205 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
39206 `<grub/powerpc/ieee1275/console.h>'.
39207 (grub_keyboard_controller_init): New function prototype.
39208 (grub_console_checkkey): Likewise.
39209 (grub_console_getkey): Likewise.
39210
39211 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
39212 keyboard on i386.
39213
39214 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
39215 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
39216
39217 2008-01-23 Robert Millan <rmh@aybabtu.com>
39218
39219 * kern/i386/pc/init.c (make_install_device): When memdisk image is
39220 present, "(memdisk)/boot/grub" becomes the default prefix.
39221
39222 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
39223 a memdisk tarball with all the modules. Add --overlay=DIR option that
39224 allows users to overlay additional files into the image.
39225
39226 2008-01-23 Robert Millan <rmh@aybabtu.com>
39227
39228 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
39229 and `machine/memory.h'.
39230 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
39231 (_multiboot_mod_SOURCES): New variable.
39232 (_multiboot_mod_CFLAGS): Likewise.
39233 (_multiboot_mod_LDFLAGS): Likewise.
39234 (multiboot_mod_SOURCES): Likewise.
39235 (multiboot_mod_CFLAGS): Likewise.
39236 (multiboot_mod_LDFLAGS): Likewise.
39237
39238 * include/grub/i386/ieee1275/loader.h: New file.
39239
39240 * include/grub/i386/ieee1275/machine.h: Likewise.
39241
39242 * include/grub/i386/ieee1275/memory.h: Likewise.
39243
39244 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
39245 variable declaration.
39246 (grub_os_area_size): Likewise.
39247
39248 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
39249 (grub_lower_mem, grub_upper_mem): New variables.
39250 (grub_stop_floppy): New function (just to make
39251 grub_multiboot2_real_boot() happy).
39252
39253 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
39254 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
39255 (grub_stop): New function.
39256 Include `"../realmode.S"' and `"../loader.S"'.
39257
39258 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
39259 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
39260
39261 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
39262 rely on grub_multiboot2_real_boot() for final boot.
39263
39264 2008-01-22 Robert Millan <rmh@aybabtu.com>
39265
39266 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
39267 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
39268 device that doesn't look like an SD card.
39269 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
39270 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
39271 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
39272 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
39273 found.
39274
39275 2008-01-22 Robert Millan <rmh@aybabtu.com>
39276
39277 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
39278 avoid claiming over our own code.
39279
39280 2008-01-22 Bean <bean123ch@gmail.com>
39281
39282 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
39283 (jpeg_mod_SOURCES): New variable.
39284 (jpeg_mod_CFLAGS): Likewise.
39285 (jpeg_mod_LDFLAGS): Likewise.
39286
39287 * video/readers/jpeg.c : New file.
39288
39289 2008-01-22 Bean <bean123ch@gmail.com>
39290
39291 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
39292 there are no more items.
39293
39294 2008-01-21 Robert Millan <rmh@aybabtu.com>
39295
39296 * kern/mm.c (grub_mm_init_region): Improve debug message.
39297
39298 2008-01-21 Robert Millan <rmh@aybabtu.com>
39299
39300 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
39301 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
39302 address.
39303 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
39304 a C macro.
39305 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
39306 Indicates start of upper memory.
39307 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
39308 (generate_image): Abort when image size is big enough to corrupt
39309 upper memory.
39310
39311 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
39312 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
39313 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39314 instead of hardcoding 0xA0000.
39315 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
39316 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39317 instead of hardcoding 0xA0000.
39318
39319 2008-01-21 Robert Millan <rmh@aybabtu.com>
39320
39321 * disk/memdisk.c (memdisk_size): New variable.
39322 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
39323 `memdisk_size'.
39324 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
39325 image to dynamic memory.
39326 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
39327 `memdisk_size'. Free memdisk block.
39328
39329 2008-01-21 Robert Millan <rmh@aybabtu.com>
39330
39331 Fix detection of very small filesystems (like tar).
39332
39333 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
39334 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
39335 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
39336 a problem with this disk).
39337
39338 2008-01-21 Robert Millan <rmh@aybabtu.com>
39339
39340 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
39341 on grub_biosdisk_rw_standard() error.
39342
39343 2008-01-21 Robert Millan <rmh@aybabtu.com>
39344
39345 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
39346 recent changes.
39347 * kern/elf.c: Likewise.
39348 * kern/ieee1275/ieee1275.c: Likewise.
39349 * kern/powerpc/ieee1275/openfw.c: Likewise.
39350 * term/ieee1275/ofconsole.c: Likewise.
39351
39352 2008-01-21 Robert Millan <rmh@aybabtu.com>
39353
39354 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
39355
39356 * include/grub/kernel.h (grub_arch_memdisk_addr)
39357 (grub_arch_memdisk_size): Moved from here ...
39358
39359 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
39360 (grub_arch_memdisk_size): ... to here.
39361
39362 2008-01-21 Robert Millan <rmh@aybabtu.com>
39363
39364 Mostly based on bugfix from Bean.
39365
39366 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
39367 attribute with hook() parameter.
39368 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
39369 declaration.
39370 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
39371 attribute with hook() parameter.
39372 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
39373 declaration.
39374
39375 2008-01-21 Robert Millan <rmh@aybabtu.com>
39376
39377 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
39378 (pkglib_MODULES): Add `memdisk.mod'.
39379 (memdisk_mod_SOURCES): New variable.
39380 (memdisk_mod_CFLAGS): Likewise.
39381 (memdisk_mod_LDFLAGS): Likewise.
39382
39383 * disk/memdisk.c: New file.
39384
39385 * include/grub/disk.h (grub_disk_dev_id): Add
39386 `GRUB_DISK_DEVICE_MEMDISK_ID'.
39387
39388 * include/grub/i386/pc/kernel.h
39389 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
39390 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
39391 (grub_kernel_image_size): New variable declaration.
39392 (grub_total_module_size): Likewise.
39393 (grub_memdisk_image_size): Likewise.
39394
39395 * include/grub/i386/pc/memory.h
39396 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
39397
39398 * include/grub/kernel.h: Include `<grub/symbol.h>'.
39399 (grub_arch_memdisk_addr): New variable declaration.
39400 (grub_arch_memdisk_size): Likewise.
39401
39402 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
39403 (grub_arch_memdisk_size): Likewise.
39404
39405 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
39406 (codestart): Replace hardcoded `0x100000' with
39407 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
39408
39409 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
39410 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
39411 not NULL, append the contents of the file it refers to, at the end of
39412 the compressed kernel image. Initialize `grub_memdisk_image_size'
39413 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
39414 (options): Add "memdisk"|'m' option.
39415 (main): Parse --memdisk|-m option, and pass user-provided path as
39416 parameter to generate_image().
39417
39418 2008-01-20 Robert Millan <rmh@aybabtu.com>
39419
39420 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
39421 grub_dprintf() calls from here ...
39422 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
39423
39424 2008-01-20 Robert Millan <rmh@aybabtu.com>
39425
39426 Fix detection of "real mode" when /options/real-mode? doesn't exist.
39427
39428 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
39429 declaration.
39430 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
39431 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
39432 `GRUB_IEEE1275_FLAG_REAL_MODE'.
39433 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
39434 property).
39435 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
39436 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
39437
39438 2008-01-19 Robert Millan <rmh@aybabtu.com>
39439
39440 Get rid of confusing function (superseded by
39441 `grub_ieee1275_get_integer_property')
39442 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
39443 prototype.
39444 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
39445 function.
39446 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
39447 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
39448 in native endianness from grub_ieee1275_get_integer_property().
39449
39450 2008-01-19 Robert Millan <rmh@aybabtu.com>
39451
39452 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
39453 command after "shut-down", since implementations differ on which
39454 the command for halt is.
39455
39456 2008-01-19 Robert Millan <rmh@aybabtu.com>
39457
39458 * include/grub/i386/linuxbios/console.h: Add header protection.
39459 (grub_keyboard_controller_init): New function prototype.
39460 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
39461 (KEYBOARD_COMMAND_READ): Likewise.
39462 (KEYBOARD_COMMAND_WRITE): Likewise.
39463 (KEYBOARD_SCANCODE_SET1): Likewise.
39464 (grub_keyboard_controller_write): New function.
39465 (grub_keyboard_controller_read): Likewise.
39466 (grub_keyboard_controller_init): Likewise.
39467
39468 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
39469 (grub_console_init): On coreboot/LinuxBIOS, call
39470 grub_keyboard_controller_init().
39471
39472 2008-01-19 Robert Millan <rmh@aybabtu.com>
39473
39474 PowerPC changes provided by Pavel Roskin.
39475
39476 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
39477 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
39478 don't rely on cmain() doing it.
39479 * kern/i386/ieee1275/startup.S (_start): Store %eax in
39480 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
39481
39482 2008-01-16 Robert Millan <rmh@aybabtu.com>
39483
39484 * include/grub/i386/linuxbios/memory.h
39485 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
39486 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
39487 receive `table_header' as argument. Instead, probe for it in the
39488 known memory ranges where it can be present.
39489 (grub_available_iterate): Do not pass a fixed `table_header' address
39490 to grub_linuxbios_table_iterate().
39491
39492 2008-01-15 Robert Millan <rmh@aybabtu.com>
39493
39494 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
39495 * conf/i386-ieee1275.rmk: New file.
39496 * include/grub/i386/ieee1275/console.h: Likewise.
39497 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
39498 * include/grub/i386/ieee1275/kernel.h: Likewise.
39499 * include/grub/i386/ieee1275/time.h: Likewise.
39500 * kern/i386/ieee1275/init.c: Likewise.
39501 * kern/i386/ieee1275/startup.S: Likewise.
39502
39503 2008-01-15 Robert Millan <rmh@aybabtu.com>
39504
39505 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
39506 when pointers are 32-bit (but still do set it to one when they are
39507 64-bit).
39508
39509 2008-01-15 Robert Millan <rmh@aybabtu.com>
39510
39511 * include/grub/ieee1275/ieee1275.h
39512 (grub_ieee1275_get_integer_property): New function prototype.
39513
39514 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
39515 (grub_ieee1275_get_integer_property): New function. Wraps around
39516 grub_ieee1275_get_property() to handle endianness.
39517
39518 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
39519 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
39520 where appropriate.
39521 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
39522 (grub_map): Likewise.
39523 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
39524
39525 2008-01-15 Bean <bean123ch@gmail.com>
39526
39527 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
39528 (grub_script_execute_cmdline): Reset grub_errno.
39529
39530 * normal/main.c (read_config_file): Reset grub_errno.
39531
39532 * normal/parse.y (script_init): New.
39533 (script): Move function and menuentry here.
39534 (delimiter): New.
39535 (command): Add delimiter at the end of command.
39536 (commands): Adjust to match the new command.
39537 (commandblock): Remove grub_script_lexer_record_start.
39538 (menuentry): Add grub_script_lexer_record_start, use the new commands.
39539 (if): Use the new commands.
39540
39541 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
39542
39543 2008-01-15 Robert Millan <rmh@aybabtu.com>
39544
39545 * normal/menu.c (run_menu): Move timeout message from here ...
39546 (print_timeout): ... to here.
39547 (run_menu): Use print_timeout() once during initial draw to print
39548 the whole message, and again in every clock tick to update only
39549 the number of seconds.
39550
39551 2008-01-15 Robert Millan <rmh@aybabtu.com>
39552
39553 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
39554 actual size of `available' from grub_ieee1275_get_property(), and
39555 restrict parsing to that bound.
39556
39557 2008-01-15 Christian Franke <franke@computer.org>
39558
39559 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
39560 (argp_program_version): Remove variable.
39561 (argp_program_bug_address): Likewise.
39562 (options): Convert from struct argp_option to struct option.
39563 (struct arguments): Remove.
39564 (parse_opt): Remove.
39565 (usage): New function.
39566 (main): Replace struct args members by simple variables.
39567 Replace argp_parse() by getopt_long().
39568 Add switch to evaluate options.
39569 Add missing "(...)" around root_dev in prefix string.
39570
39571 2008-01-14 Robert Millan <rmh@aybabtu.com>
39572
39573 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
39574 for grub_ieee1275_exit(), in order to improve portability.
39575
39576 2008-01-14 Robert Millan <rmh@aybabtu.com>
39577
39578 * util/grub.d/10_linux.in (prefix): Define.
39579 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
39580
39581 2008-01-13 Pavel Roskin <proski@gnu.org>
39582
39583 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
39584 grub_errno if no errors have been detected.
39585
39586 2008-01-12 Robert Millan <rmh@aybabtu.com>
39587
39588 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
39589 (grub_util_get_dev_abstraction): New function prototype.
39590
39591 * util/getroot.c: Include `<grub/util/getroot.h>'
39592 (grub_util_get_grub_dev): Move detection of abstraction type to ...
39593 (grub_util_get_dev_abstraction): ... here (new function).
39594
39595 * util/grub-probe.c: Convert PRINT_* to an enum. Add
39596 `PRINT_ABSTRACTION'.
39597 (probe): Probe for abstraction type when requested.
39598 (main): Understand `--target=abstraction'.
39599
39600 * util/i386/efi/grub-install.in: Add abstraction module to core
39601 image when it is found to be necessary.
39602 * util/i386/pc/grub-install.in: Likewise.
39603 * util/powerpc/ieee1275/grub-install.in: Likewise.
39604
39605 * util/update-grub_lib.in (font_path): Return system path without
39606 converting to GRUB path.
39607 * util/update-grub.in: Convert system path returned by font_path()
39608 to a GRUB path. Use `grub-probe -t abstraction' to determine what
39609 abstraction module is needed for loading fonts (if any). Export
39610 that as `GRUB_PRELOAD_MODULES'.
39611 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
39612 insmod commands).
39613
39614 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
39615
39616 Remove some unused code from reiserfs.
39617
39618 * fs/reiserfs.c (struct grub_reiserfs_key)
39619 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
39620 (struct grub_reiserfs_node_body): Removed.
39621 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39622 Likewise.
39623 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39624 Likewise.
39625 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39626 Likewise.
39627 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39628 Likewise.
39629 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39630 Likewise.
39631 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
39632 Likewise.
39633 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39634 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39635 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39636
39637 2008-01-10 Robert Millan <rmh@aybabtu.com>
39638
39639 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
39640 Determines if a file is garbage left by packaging systems, etc.
39641 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
39642 for processing /etc/grub.d scripts.
39643 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
39644 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
39645 as a condition for processing Linux images.
39646
39647 2008-01-10 Pavel Roskin <proski@gnu.org>
39648
39649 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
39650 to compile reiserfs.c on PowerPC.
39651
39652 2008-01-10 Robert Millan <rmh@aybabtu.com>
39653
39654 * kern/device.c (grub_device_iterate): Do not abort device iteration
39655 when one of the devices cannot be opened.
39656 * kern/disk.c (grub_disk_open): Do not account previous failures of
39657 unrelated functions when grub_errno is checked for.
39658
39659 2008-01-08 Robert Millan <rmh@aybabtu.com>
39660
39661 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
39662 `! grub_linux_is_bzimage', change order of address comparison to make
39663 it more intuitive, and improve "too big zImage" error message.
39664
39665 2008-01-08 Robert Millan <rmh@aybabtu.com>
39666
39667 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
39668 `$(update-grub_DATA)'.
39669 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
39670 targets.
39671
39672 2008-01-07 Robert Millan <rmh@aybabtu.com>
39673
39674 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
39675 which instruction is modified by grub-setup during installation
39676 (since it wasn't obvious by only looking at this file).
39677
39678 2008-01-07 Robert Millan <rmh@aybabtu.com>
39679
39680 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
39681 listing actual TODO items.
39682
39683 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39684
39685 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
39686 correctly.
39687 (grub_reiserfs_get_key_offset): Likewise.
39688 (grub_reiserfs_set_key_offset): Likewise.
39689 (grub_reiserfs_set_key_type): Likewise.
39690 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
39691
39692 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
39693 better to remove the bitfield version completely.
39694
39695 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39696
39697 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
39698 allocated from the heap, due to the fshelp implementation.
39699 (grub_reiserfs_dir): Free NODE, due to the same reason.
39700
39701 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39702
39703 Mostly from Vincent Pelletier:
39704
39705 * fs/reiserfs.c: New file.
39706
39707 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
39708 (reiserfs_mod_SOURCES): New variable.
39709 (reiserfs_mod_CFLAGS): Likewise.
39710 (reiserfs_mod_LDFLAGS): Likewise.
39711
39712 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
39713 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
39714 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
39715 normal/color.c.
39716
39717 2008-01-06 Robert Millan <rmh@aybabtu.com>
39718
39719 * normal/color.c: Remove `<grub/env.h>'.
39720
39721 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
39722
39723 * include/grub/normal.h: Include <grub/env.h>.
39724
39725 2008-01-05 Robert Millan <rmh@aybabtu.com>
39726
39727 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
39728 usage example with `(hd0,1)'.
39729 Reported by Samuel Thibault.
39730
39731 2008-01-05 Robert Millan <rmh@aybabtu.com>
39732
39733 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
39734 (grub_linux_boot_zimage): Rename to ...
39735 (grub_linux_boot): ... this.
39736 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
39737 (grub_linux_boot_zimage): Conditionalize zImage copy.
39738
39739 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
39740 (grub_linux_boot_bzimage): Remove prototype.
39741 (grub_linux_boot_zimage): Rename to ...
39742 (grub_linux_boot): ... this.
39743
39744 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
39745 (grub_linux_boot): Remove function.
39746
39747 2008-01-05 Robert Millan <rmh@aybabtu.com>
39748
39749 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
39750 (grub_env_write_color_highlight): Likewise.
39751 (grub_wait_after_message): Likewise.
39752
39753 * normal/color.c: New file.
39754
39755 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39756 (normal_mod_DEPENDENCIES): Likewise.
39757
39758 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39759 (normal_mod_DEPENDENCIES): Likewise.
39760
39761 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39762 (normal_mod_DEPENDENCIES): Likewise.
39763
39764 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39765 (normal_mod_DEPENDENCIES): Likewise.
39766
39767 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
39768 for waiting after a message is printed.
39769 * normal/main.c (read_config_file): Likewise.
39770 (grub_normal_init): Register grub_env_write_color_normal() and
39771 grub_env_write_color_highlight() hooks. Mark `color_normal' and
39772 `color_highlight' variables as global.
39773
39774 * normal/menu.c (grub_wait_after_message): New function.
39775 (grub_color_menu_normal): New variable. Replaces ...
39776 (GRUB_COLOR_MENU_NORMAL): ... this macro.
39777 (grub_color_menu_highlight): New variable. Replaces ...
39778 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
39779 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
39780 `GRUB_TERM_COLOR_STANDARD'.
39781 (print_message): Use `grub_setcolorstate' to reload colors. Rename
39782 `normal_code' and `highlight_code' to `old_color_normal' and
39783 `old_color_highlight', respectively.
39784 (grub_menu_init_page): Update colors when drawing the menu, based on
39785 `menu_color_normal' and `menu_color_highlight' variables.
39786 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
39787 a message is printed.
39788
39789 2008-01-05 Robert Millan <rmh@aybabtu.com>
39790
39791 * kern/env.c (grub_env_context_open): Propagate hooks for global
39792 variables to new context.
39793
39794 * kern/main.c (grub_set_root_dev): Export `root' variable.
39795
39796 2008-01-05 Robert Millan <rmh@aybabtu.com>
39797
39798 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
39799 discs unconditionally, since udev and others have options to provide
39800 them.
39801
39802 2008-01-05 Robert Millan <rmh@aybabtu.com>
39803
39804 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
39805
39806 2008-01-04 Christian Franke <franke@computer.org>
39807
39808 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
39809 of eisa_mmap.
39810
39811 2008-01-03 Pavel Roskin <proski@gnu.org>
39812
39813 * kern/i386/linuxbios/init.c: Put "void" to all function
39814 declarations with no arguments.
39815 * kern/powerpc/ieee1275/init.c: Likewise.
39816 * term/i386/pc/at_keyboard.c: Likewise.
39817 * term/i386/pc/vga_text.c: Likewise.
39818 * util/grub-mkdevicemap.c: Likewise.
39819
39820 2008-01-02 Robert Millan <rmh@aybabtu.com>
39821
39822 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
39823 message when loaded image is out of bounds.
39824 (grub_multiboot_load_elf64): Likewise.
39825
39826 2008-01-02 Pavel Roskin <proski@gnu.org>
39827
39828 * util/grub.d/10_linux.in: Try version without ".old" when
39829 looking for initrd. It's better to use initrd from the newer
39830 kernel of the same version than no initrd at all.
39831
39832 2008-01-01 Robert Millan <rmh@aybabtu.com>
39833
39834 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
39835
39836 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
39837
39838 * include/grub/video.h: Added grub_video_unmap_color and
39839 grub_video_get_active_render_target.
39840 (grub_video_adapter): Added unmap_color and get_active_render_target.
39841
39842 * video/video.c: Added grub_video_unmap_color and
39843 grub_video_get_active_render_target.
39844 (grub_video_get_info): Changed method to accept NULL pointer as an
39845 argument to allow detection of active video adapter.
39846
39847 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
39848 grub_video_vbe_unmap_color_int.
39849 Added grub_video_vbe_unmap_color and
39850 grub_video_vbe_get_active_render_target.
39851 (grub_video_vbe_adapter): Added unmap_color and
39852 get_active_render_target.
39853
39854 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
39855 with grub_video_vbe_unmap_color_int.
39856
39857 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
39858 (DEFAULT_NORMAL_COLOR): Likewise.
39859 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
39860 (DEFAULT_FG_COLOR): Removed.
39861 (DEFAULT_BG_COLOR): Likewise.
39862 (DEFAULT_CURSOR_COLOR): Changed value.
39863 (grub_virtual_screen): Added standard_color_setting,
39864 normal_color_setting, highlight_color_setting and term_color.
39865 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
39866 (bitmap_width): Added.
39867 (bitmap_height): Likewise.
39868 (bitmap): Likewise.
39869 (set_term_color): Likewise.
39870 (grub_virtual_screen_setup): Changed to use new terminal coloring
39871 settings.
39872 (grub_gfxterm_init): Added init for bitmap.
39873 (grub_gfxterm_fini): Added destroy for bitmap.
39874 (redraw_screen_rect): Updated to use background bitmap and new
39875 terminal coloring.
39876 (scroll_up): Added optimization for case when there is no bitmap.
39877 (grub_gfxterm_cls): Fixed to use correct background color.
39878 (grub_virtual_screen_setcolorstate): Changed to use new terminal
39879 coloring.
39880 (grub_virtual_screen_setcolor): Likewise.
39881 (grub_virtual_screen_getcolor): Added.
39882 (grub_gfxterm_background_image_cmd): Likewise.
39883 (grub_video_term): Added setcolor and getcolor.
39884 (MOD_INIT): Added registration of background_image command.
39885 (MOD_TERM): Added unregistration for background_image command.
39886
39887 2007-12-30 Pavel Roskin <proski@gnu.org>
39888
39889 * loader/multiboot_loader.c: Fix multiboot command
39890 unregistration. Fix all typos in the word "multiboot".
39891
39892 2007-12-29 Pavel Roskin <proski@gnu.org>
39893
39894 * util/grub.d/10_linux.in: Refactor search for initrd. Add
39895 support for initrd names used in Fedora.
39896
39897 2007-12-26 Bean <bean123ch@gmail.com>
39898
39899 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
39900 (cpio_mod_SOURCES): New variable.
39901 (cpio_mod_CFLAGS): Likewise.
39902 (cpio_mod_LDFLAGS): Likewise.
39903
39904 * fs/cpio.c: New file.
39905
39906 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
39907
39908 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39909
39910 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39911
39912 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39913
39914 2007-12-25 Robert Millan <rmh@aybabtu.com>
39915
39916 * include/grub/term.h (struct grub_term): Add `getcolor' function.
39917 (grub_getcolor): New function.
39918
39919 * kern/term.c (grub_getcolor): New function.
39920 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
39921 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
39922 (print_entry): Set normal and highlight colors to
39923 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
39924 respectively, before printing and restore them to old
39925 values afterwards.
39926 (grub_menu_init_page): Likewise. Fill an additional colored space
39927 that would otherwise be left blank.
39928
39929 * term/efi/console.c (grub_console_getcolor): New function.
39930 (struct grub_console_term.getcolor): New variable.
39931 * term/i386/pc/console.c (grub_console_getcolor): New function.
39932 (struct grub_console_term.getcolor): New variable.
39933 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
39934 (struct grub_console_term.getcolor): New variable.
39935
39936 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
39937 (struct grub_console_term.setcolor): Remove variable.
39938 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
39939 (struct grub_console_term.setcolor): Remove variable.
39940 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
39941 (struct grub_console_term.setcolor): Remove variable.
39942 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
39943 (struct grub_console_term.setcolor): Remove variable.
39944
39945 2007-12-25 Robert Millan <rmh@aybabtu.com>
39946
39947 * configure.ac: Search for possible unifont.hex locations, and
39948 define UNIFONT_HEX if found.
39949
39950 * Makefile.in (UNIFONT_HEX): Define variable.
39951 (DATA): Rename to ...
39952 (PKGLIB): ... this. Update all users.
39953 (PKGDATA): New variable.
39954 (pkgdata_IMAGES): Rename to ...
39955 (pkglib_IMAGES): ... this. Update all users.
39956 (pkgdata_MODULES): Rename to ...
39957 (pkglib_MODULES): ... this. Update all users.
39958 (pkgdata_PROGRAMS): Rename to ...
39959 (pkglib_PROGRAMS): ... this. Update all users.
39960 (pkgdata_DATA): Rename to ...
39961 (pkglib_DATA): ... this. Update all users.
39962 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
39963 (unicode.pff, ascii.pff): New rules.
39964 (all-local): Add `$(PKGDATA)' dependency.
39965 (install-local): Process `$(PKGDATA)'.
39966
39967 * util/update-grub_lib.in (font_path): Search for *.pff files in
39968 a few more locations, including `${pkgdata}'.
39969
39970 2007-12-23 Robert Millan <rmh@aybabtu.com>
39971
39972 Patch from Bean <bean123ch@gmail.com>:
39973 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
39974 `size'.
39975
39976 2007-12-21 Bean <bean123ch@gmail.com>
39977
39978 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
39979 (ntfscomp_mod_SOURCES): New variable.
39980 (ntfscomp_mod_CFLAGS): Likewise.
39981 (ntfscomp_mod_LDFLAGS): Likewise.
39982
39983 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
39984 (grub_probe_SOURCES): Likewise.
39985 (grub_emu_SOURCES): Likewise.
39986
39987 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39988 (grub_emu_SOURCES): Likewise.
39989
39990 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39991 (grub_emu_SOURCES): Likewise.
39992
39993 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39994 (grub_emu_SOURCES): Likewise.
39995
39996 * fs/ntfs.c (grub_ntfscomp_func): New variable.
39997 (read_run_list): Renamed to grub_ntfs_read_run_list.
39998 (decomp_nextvcn): Moved to ntfscomp.c.
39999 (decomp_getch): Likewise.
40000 (decomp_get16): Likewise.
40001 (decomp_block): Likewise.
40002 (read_block): Likewise.
40003 (read_data): Partially moved to ntfscomp.c.
40004 (fixup): Change unsigned to grub_uint16_t.
40005 (read_mft): Change unsigned long to grub_uint32_t.
40006 (read_attr): Likewise.
40007 (read_data): Likewise.
40008 (read_run_data): Likewise.
40009 (read_run_list): Likewise.
40010 (read_mft): Likewise.
40011
40012 * fs/ntfscomp.c: New file.
40013
40014 * include/grub/ntfs.h: New file.
40015
40016 2007-12-16 Robert Millan <rmh@aybabtu.com>
40017
40018 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
40019 IDE disk check, since Linux is known to support 20 IDE disks.
40020 Reported by Colin Watson.
40021
40022 2007-12-15 Bean <bean123ch@gmail.com>
40023
40024 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
40025 (lnxboot_img_SOURCES): New variable.
40026 (lnxboot_img_ASFLAGS): Likewise.
40027 (lnxboot_img_LDFLAGS): Likewise.
40028
40029 * boot/i386/pc/lnxboot.S: New file.
40030
40031 2007-11-24 Pavel Roskin <proski@gnu.org>
40032
40033 * configure.ac: Test if '--build-id=none' is supported by the
40034 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
40035 objcopy to generate incorrect binary files (binutils
40036 2.17.50.0.18-1 as shipped by Fedora 8).
40037 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
40038 linking, so that build ID doesn't break the test.
40039
40040 2007-11-24 Pavel Roskin <proski@gnu.org>
40041
40042 * include/grub/i386/time.h: use "void" in the argument list
40043 of grub_cpu_idle().
40044 * include/grub/powerpc/time.h: Likewise.
40045 * include/grub/sparc64/time.h: Likewise.
40046
40047 2007-11-18 Christian Franke <franke@computer.org>
40048
40049 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
40050 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
40051 This fixes the problem that function keys did not work in grub-emu.
40052
40053 2007-11-18 Christian Franke <franke@computer.org>
40054
40055 * disk/host.c (grub_host_open): Remove attribute unused from
40056 name parameter. Add check for "host". This fixes the problem
40057 that grub-emu does not find partitions.
40058
40059 2007-11-18 Christian Franke <franke@computer.org>
40060
40061 * util/hostfs.c (is_dir): New function.
40062 (grub_hostfs_dir): Handle missing dirent.d_type case.
40063 (grub_hostfs_read): Add missing fseek().
40064 (grub_hostfs_label): Clear label pointer. This fixes a crash
40065 of grub-emu on "ls (host)".
40066
40067 2007-11-18 Christian Franke <franke@computer.org>
40068
40069 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
40070 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
40071 to 64 bit boundary by default.
40072
40073 2007-11-18 Bean <bean123ch@gmail.com>
40074
40075 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
40076 (hexdump_mod_SOURCES): New variable.
40077 (hexdump_mod_CFLAGS): Likewise.
40078 (hexdump_mod_LDFLAGS): Likewise.
40079
40080 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40081
40082 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40083
40084 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40085
40086 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40087
40088 * include/grub/hexdump.h: New file.
40089
40090 * commands/hexdump.c: New file.
40091
40092 2007-11-10 Robert Millan <rmh@aybabtu.com>
40093
40094 * commands/i386/pc/play.c (beep_off): Switch order of arguments
40095 in grub_outb() calls.
40096 (beep_on): Likewise.
40097
40098 2007-11-10 Christian Franke <franke@computer.org>
40099
40100 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
40101 (grub_menu_run): Likewise.
40102
40103 2007-11-10 Robert Millan <rmh@aybabtu.com>
40104
40105 * include/grub/i386/efi/machine.h: New file.
40106 * include/grub/i386/linuxbios/machine.h: Likewise.
40107 * include/grub/i386/pc/machine.h: Likewise.
40108 * include/grub/powerpc/ieee1275/machine.h: Likewise.
40109 * include/grub/sparc64/ieee1275/machine.h: Likewise.
40110
40111 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
40112 (serial_hw_io_addr): New variable.
40113 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
40114 instead of `(unsigned short *) 0x400'.
40115
40116 2007-11-10 Bean <bean123ch@gmail.com>
40117
40118 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
40119
40120 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40121
40122 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
40123 (vga_mod_SOURCES): Added.
40124 (vga_mod_CFLAGS): Likewise.
40125 (vga_mod_LDFLAGS): Likewise.
40126
40127 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
40128 grub_outb() calls.
40129 (set_map_mask): Likewise.
40130 (set_read_map): Likewise.
40131 (set_read_address): Likewise.
40132 (vga_font): Removed variable.
40133 (get_vga_glyph): Removed function.
40134 (invalidate_char): Likewise.
40135 (write_char): Changed to use grub_font_get_glyph() for font
40136 information.
40137 (grub_vga_putchar): Likewise.
40138 (grub_vga_getcharwidth): Likewise.
40139
40140 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40141
40142 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
40143 flags.
40144 (pxeboot_img_LDFLAGS): Likewise.
40145 (diskboot_img_LDFLAGS): Likewise.
40146 (kernel_img_LDFLAGS): Likewise.
40147
40148 2007-11-06 Robert Millan <rmh@aybabtu.com>
40149
40150 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
40151 in grub_outb() calls.
40152 (serial_hw_init): Likewise.
40153
40154 2007-11-05 Robert Millan <rmh@aybabtu.com>
40155
40156 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
40157 spaces. Skip non-regular files.
40158
40159 2007-11-05 Robert Millan <rmh@aybabtu.com>
40160
40161 * kern/disk.c (grub_disk_firmware_fini)
40162 (grub_disk_firmware_is_tainted): New variables.
40163
40164 * include/grub/disk.h (grub_disk_firmware_fini)
40165 (grub_disk_firmware_is_tainted): Likewise.
40166
40167 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
40168 (grub_disk_biosdisk_fini): ... to here.
40169 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
40170 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
40171 is set. Register grub_disk_biosdisk_fini() in
40172 `grub_disk_firmware_fini'.
40173
40174 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
40175 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
40176 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
40177 to finish existing firmware disk interface.
40178
40179 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
40180 (ata_mod_SOURCES): New variable.
40181 (ata_mod_CFLAGS): Likewise.
40182 (ata_mod_LDFLAGS): Likewise.
40183
40184 2007-11-05 Robert Millan <rmh@aybabtu.com>
40185
40186 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
40187 (grub_ata_wait): Reimplement using grub_millisleep().
40188
40189 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
40190 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
40191
40192 2007-11-03 Marco Gerards <marco@gnu.org>
40193
40194 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
40195 (CRTC_ADDR_PORT): New macro.
40196 (CRTC_DATA_PORT): Likewise.
40197 (CRTC_CURSOR): Likewise.
40198 (CRTC_CURSOR_ADDR_HIGH): Likewise.
40199 (CRTC_CURSOR_ADDR_LOW): Likewise.
40200 (update_cursor): New function.
40201 (grub_console_real_putchar): Call `update_cursor'.
40202 (grub_console_gotoxy): Likewise.
40203 (grub_console_cls): Set the default color when clearing the
40204 screen.
40205 (grub_console_setcursor): Implemented.
40206
40207 2007-11-03 Marco Gerards <marco@gnu.org>
40208
40209 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
40210 become activate.
40211 (grub_ata_pio_write): Likewise.
40212
40213 (grub_atapi_identify): Wait after issuing an ATA command.
40214 (grub_atapi_packet): Likewise.
40215 (grub_ata_identify): Likewise.
40216 (grub_ata_readwrite): Likewise.
40217
40218 2007-11-03 Marco Gerards <marco@gnu.org>
40219
40220 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
40221 (grub_ata_pio_write): Likewise.
40222 (grub_ata_readwrite): Use `grub_error', instead of
40223 returning `grub_errno'.
40224
40225 2007-11-03 Marco Gerards <marco@gnu.org>
40226
40227 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
40228 grub_ata_pio_write once for every single sector, instead of for
40229 multiple sectors.
40230
40231 2007-10-31 Robert Millan <rmh@aybabtu.com>
40232
40233 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
40234
40235 * conf/i386-linuxbios.rmk: New file.
40236
40237 * kern/i386/pc/hardware.c: Likewise.
40238 * term/i386/pc/at_keyboard.c: Likewise.
40239 * term/i386/pc/vga_text.c: Likewise.
40240
40241 * include/grub/i386/linuxbios/boot.h: Likewise.
40242 * include/grub/i386/linuxbios/console.h: Likewise.
40243 * include/grub/i386/linuxbios/init.h: Likewise.
40244 * include/grub/i386/linuxbios/kernel.h: Likewise.
40245 * include/grub/i386/linuxbios/loader.h: Likewise.
40246 * include/grub/i386/linuxbios/memory.h: Likewise.
40247 * include/grub/i386/linuxbios/serial.h: Likewise.
40248 * include/grub/i386/linuxbios/time.h: Likewise.
40249
40250 * kern/i386/linuxbios/init.c: Likewise.
40251 * kern/i386/linuxbios/startup.S: Likewise.
40252 * kern/i386/linuxbios/table.c: Likewise.
40253
40254 2007-10-31 Marco Gerards <marco@gnu.org>
40255
40256 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
40257 (ata_mod_SOURCES): New variable.
40258 (ata_mod_CFLAGS): Likewise.
40259 (ata_mod_LDFLAGS): Likewise.
40260
40261 * disk/ata.c: New file.
40262
40263 * include/grub/disk.h (grub_disk_dev_id): Add
40264 `GRUB_DISK_DEV_ATA_ID'.
40265
40266 2007-10-31 Robert Millan <rmh@aybabtu.com>
40267
40268 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
40269 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
40270
40271 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
40272 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
40273
40274 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
40275 `<grub/types.h>'.
40276
40277 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
40278
40279 2007-10-27 Robert Millan <rmh@aybabtu.com>
40280
40281 * include/grub/types.h (ULONG_MAX): Define macro.
40282
40283 2007-10-22 Robert Millan <rmh@aybabtu.com>
40284
40285 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
40286 `"../realmode.S"'.
40287 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
40288
40289 2007-10-22 Robert Millan <rmh@aybabtu.com>
40290
40291 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
40292 (pkgdata_MODULES): Add `biosdisk.mod'.
40293 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
40294 variables.
40295
40296 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
40297 (grub_biosdisk_init): Replace with ...
40298 (GRUB_MOD_INIT(biosdisk)): ... this.
40299 (grub_biosdisk_fini): Replace with ...
40300 (GRUB_MOD_FINI(biosdisk)): ... this.
40301
40302 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
40303 (grub_machine_init): Remove call to grub_biosdisk_init().
40304 (grub_machine_fini): Remove call to grub_machine_fini().
40305
40306 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
40307
40308 2007-10-22 Robert Millan <rmh@aybabtu.com>
40309
40310 * include/grub/time.h: New file.
40311 * include/grub/i386/time.h: Likewise.
40312 * include/grub/powerpc/time.h: Likewise.
40313 * include/grub/sparc64/time.h: Likewise.
40314
40315 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
40316 instances to ...
40317 (KERNEL_MACHINE_TIME_HEADER): ... this.
40318 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40319 instances to ...
40320 (KERNEL_MACHINE_TIME_HEADER): ... this.
40321 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40322 instances to ...
40323 (KERNEL_MACHINE_TIME_HEADER): ... this.
40324
40325 * kern/i386/efi/init.c: Include `<grub/time.h>'.
40326 (grub_millisleep): New function.
40327 * kern/i386/pc/init.c: Include `<grub/time.h>'.
40328 (grub_millisleep): New function.
40329 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
40330 Remove `grub/machine/time.h' include.
40331 (grub_millisleep): New function.
40332 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
40333 Remove `grub/machine/time.h' include.
40334 (grub_millisleep): New function.
40335
40336 * include/grub/misc.h (grub_div_roundup): New function.
40337
40338 * kern/misc.c: Include `<grub/time.h>'.
40339 (grub_millisleep_generic): New function.
40340
40341 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
40342 Add `time.h'.
40343 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
40344 Add `time.h'.
40345 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
40346 `machine/time.h'. Add `time.h'.
40347 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40348
40349 2007-10-21 Robert Millan <rmh@aybabtu.com>
40350
40351 * include/grub/misc.h (grub_max): New function.
40352
40353 2007-10-21 Robert Millan <rmh@aybabtu.com>
40354
40355 * util/misc.c (grub_util_info): Call fflush() before returning.
40356
40357 2007-10-20 Robert Millan <rmh@aybabtu.com>
40358
40359 * genmk.rb (Image): Copy `extra_flags' from here ...
40360 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
40361
40362 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
40363 to `argc' and `args' arguments.
40364
40365 2007-10-17 Robert Millan <rmh@aybabtu.com>
40366
40367 * kern/i386/loader.S: New file.
40368
40369 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
40370 * kern/i386/loader.S (grub_linux_prot_size)... to here.
40371 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
40372 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
40373 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
40374 * kern/i386/loader.S (grub_linux_real_addr)... to here.
40375 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
40376 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
40377 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
40378 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
40379 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
40380 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
40381 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
40382 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
40383
40384 * kern/i386/realmode.S: New file.
40385
40386 * kern/i386/pc/startup.S (protstack): Moved from here ...
40387 * kern/i386/realmode.S (protstack)... to here.
40388 * kern/i386/pc/startup.S (gdt): Moved from here ...
40389 * kern/i386/realmode.S (gdt)... to here.
40390 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
40391 * kern/i386/realmode.S (prot_to_real)... to here.
40392
40393 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
40394 `kern/i386/realmode.S'.
40395
40396 2007-10-17 Robert Millan <rmh@aybabtu.com>
40397
40398 * include/grub/i386/loader.h: New file.
40399
40400 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
40401 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40402 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40403 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40404 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
40405 * include/grub/i386/loader.h (grub_linux_prot_size)
40406 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40407 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40408 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40409 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
40410
40411 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
40412
40413 2007-10-15 Robert Millan <rmh@aybabtu.com>
40414
40415 * normal/misc.c (grub_normal_print_device_info): Do not probe for
40416 filesystem when dev->disk is unset.
40417 Do probe for filesystem even when dev->disk->has_partitions is set.
40418 In case a filesystem is found, always report it.
40419 In case it isn't, if dev->disk->has_partitions is set, report that
40420 a partition table was found instead of reporting that no filesystem
40421 could be identified.
40422
40423 2007-10-12 Robert Millan <rmh@aybabtu.com>
40424
40425 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
40426 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
40427
40428 * include/grub/types.h (grub_host_to_target16): New macro.
40429 (grub_host_to_target32): Likewise.
40430 (grub_host_to_target64): Likewise.
40431 (grub_target_to_host16): Likewise.
40432 (grub_target_to_host32): Likewise.
40433 (grub_target_to_host64): Likewise.
40434
40435 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
40436 Renamed from to ...
40437 (GRUB_MOD_ALIGN): ...this. Update all users.
40438
40439 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
40440 grub_host_to_target32.
40441 Replace grub_be_to_cpu32 with grub_target_to_host32.
40442 (load_modules): Likewise.
40443 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
40444 Replace grub_be_to_cpu32 with grub_target_to_host32.
40445 Replace grub_cpu_to_be16 with grub_host_to_target16.
40446 Replace grub_cpu_to_be32 grub_host_to_target32.
40447
40448 2007-10-12 Robert Millan <rmh@aybabtu.com>
40449
40450 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
40451 * util/elf/grub-mkimage.c: ... here.
40452
40453 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
40454 `util/powerpc/ieee1275/grub-mkimage.c'.
40455
40456 2007-10-07 Robert Millan <rmh@aybabtu.com>
40457
40458 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
40459 and make it easier to figure out.
40460 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
40461 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
40462 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
40463 leave us with less than HEAP_MIN_SIZE total heap.
40464 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
40465
40466 2007-10-03 Robert Millan <rmh@aybabtu.com>
40467
40468 * include/grub/i386/io.h: New file.
40469 * commands/i386/pc/play.c (inb): Removed.
40470 (outb): Removed.
40471 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40472 with grub_outb().
40473 * term/i386/pc/serial.c (inb): Removed.
40474 (outb): Removed.
40475 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40476 with grub_outb().
40477 * term/i386/pc/vga.c (inb): Removed.
40478 (outb): Removed.
40479 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40480 with grub_outb().
40481
40482 2007-10-02 Robert Millan <rmh@aybabtu.com>
40483
40484 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
40485 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40486 Reported by Marcin Kurek.
40487
40488 2007-09-07 Robert Millan <rmh@aybabtu.com>
40489
40490 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
40491 SmartFirmware version updates (as released by Sven Luther), and avoid
40492 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
40493 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
40494 known broken.
40495
40496 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40497
40498 From Hitoshi Ozeki:
40499 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
40500 when merging two regions.
40501
40502 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40503
40504 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
40505 * normal/completion.c (grub_normal_do_completion): Likewise.
40506 Reported by Hitoshi Ozeki.
40507
40508 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40509
40510 Do not use devices at boot in chainloading.
40511
40512 * loader/i386/pc/chainloader.c (boot_drive): New variable.
40513 (boot_part_addr): Likewise.
40514 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
40515 with BOOT_DRIVE and BOOT_PART_ADDR.
40516 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
40517 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
40518
40519 2007-08-29 Robert Millan <rmh@aybabtu.com>
40520
40521 Patch from Simon Peter <dn.tlp@gmx.net>:
40522 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
40523 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
40524 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
40525 util/i386/pc/grub-setup.c_DEPENDENCIES.
40526 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
40527 util/grub-probe.c_DEPENDENCIES.
40528 * conf/powerpc-ieee1275.rmk: Likewise.
40529
40530 2007-08-28 Robert Millan <rmh@aybabtu.com>
40531
40532 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
40533 to tell grub-mkdevicemap how to name devices.
40534 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
40535 feature).
40536
40537 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
40538 util/i386/get_disk_name.c.
40539 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
40540 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
40541 util/ieee1275/get_disk_name.c.
40542
40543 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
40544
40545 * DISTLIST: Add util/i386/get_disk_name.c and
40546 util/ieee1275/get_disk_name.c.
40547
40548 * util/grub-mkdevicemap.c: Replace device naming logic with
40549 grub_util_get_disk_name() calls.
40550
40551 2007-08-20 Robert Millan <rmh@aybabtu.com>
40552
40553 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
40554 (so that it works for both plural and singular quantities).
40555
40556 2007-08-05 Robert Millan <rmh@aybabtu.com>
40557
40558 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
40559 so that [xz] isn't taken into account when determining order.
40560
40561 2007-08-02 Marco Gerards <marco@gnu.org>
40562
40563 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
40564 `include/multiboot2.h', `include/grub/elfload.h',
40565 `include/multiboot.h', `include/grub/multiboot.h',
40566 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
40567 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
40568 `kern/elf.c', `loader/multiboot_loader.c',
40569 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
40570 `loader/i386/pc/multiboot2.c',
40571 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
40572 `util/i386/pc/grub-mkrescue.in'. Remove
40573 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
40574 `include/grub/i386/pc/util/biosdisk.h' and
40575 `include/grub/powerpc/ieee1275/multiboot.h'.
40576
40577 2007-08-02 Bean <bean123ch@gmail.com>
40578
40579 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
40580 (ntfs_mod_SOURCES): New variable.
40581 (ntfs_mod_CFLAGS): Likewise.
40582 (ntfs_mod_LDFLAGS): Likewise.
40583
40584 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
40585 (grub_probe_SOURCES): Likewise.
40586 (grub_emu_SOURCES): Likewise.
40587
40588 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40589 (grub_emu_SOURCES): Likewise.
40590
40591 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40592 (grub_emu_SOURCES): Likewise.
40593
40594 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
40595
40596 * fs/ntfs.c: New file.
40597
40598 2007-08-02 Bean <bean123ch@gmail.com>
40599
40600 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
40601
40602 * file.h (grub_file): Likewise.
40603
40604 * fshelp.h (grub_fshelp_read_file): Likewise.
40605
40606 * util/i386/pc/grub-setup.c (setup): Likewise.
40607 (save_first_sector): Likewise.
40608 (save_blocklists): Likewise.
40609
40610 * fs/affs.c (grub_affs_read_file): Likewise.
40611
40612 * fs/ext2.c (grub_ext2_read_file): Likewise.
40613
40614 * fs/fat.c (grub_fat_read_data): Likewise.
40615
40616 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
40617
40618 * fs/hfs.c (grub_hfs_read_file): Likewise.
40619
40620 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
40621
40622 * fs/jfs.c (grub_jfs_read_file): Likewise.
40623
40624 * fs/minix.c (grub_minix_read_file): Likewise.
40625
40626 * fs/sfs.c (grub_sfs_read_file): Likewise.
40627
40628 * fs/ufs.c (grub_ufs_read_file): Likewise.
40629
40630 * fs/xfs.c (grub_xfs_read_file): Likewise.
40631
40632 * command/blocklist.c (read_blocklist): Likewise.
40633 (print_blocklist): Likewise.
40634
40635 2007-08-02 Marco Gerards <marco@gnu.org>
40636
40637 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
40638 `util/hostfs.c'.
40639
40640 * disk/host.c: New file.
40641
40642 * util/hostfs.c: Likewise.
40643
40644 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
40645 return `GRUB_ERR_BAD_FS'.
40646 * fs/sfs.c (grub_sfs_mount): Likewise.
40647 * fs/xfs.c (grub_xfs_mount): Likewise.
40648
40649 * include/grub/disk.h (enum grub_disk_dev_id): Add
40650 `GRUB_DISK_DEVICE_HOST_ID'.
40651
40652 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
40653
40654 2007-07-24 Jerone Young <jerone@gmail.com>
40655
40656 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
40657 modules for compilation.
40658 * conf/powerpc-ieee1275.rmk: Likewise.
40659
40660 * include/multiboot.h: Move multiboot definitions to one file. Rename
40661 many definitions to not get grub specific.
40662 * include/multiboot2.h: Create header with multiboot 2 definitions.
40663 * include/grub/multiboot.h: Header for grub specific function
40664 prototypes and definitions.
40665 * include/grub/multiboot2.h: Likewise.
40666 * include/grub/multiboot_loader.h: Likewise.
40667 * include/grub/i386/pc/multiboot.h: Removed.
40668 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
40669
40670 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
40671 and 2 to allow for one multiboot and module commands.
40672 * loader/multiboot2.c: Add multiboot2 functionality.
40673 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
40674 and definition names.
40675 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
40676 2 functions.
40677 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
40678 ieee1275 specific multiboot2 code.
40679
40680 * kern/i386/pc/startup.S: Change headers and definition names for
40681 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
40682
40683 2007-07-22 Robert Millan <rmh@aybabtu.com>
40684
40685 * geninitheader.sh: Process file specified in first parameter rather
40686 than hardcoding grub_modules_init.lst.
40687 * geninit.sh: Likewise. Also, construct header name dynamically rather
40688 than hardcoding grub_modules_init.h.
40689
40690 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
40691 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
40692 grub_probe_init.[ch] and grub_setup_init.[ch].
40693
40694 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
40695 grub_modules_init.h with grub_emu_init.h.
40696 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
40697 grub_probe_init.[ch] files.
40698 * conf/i386-efi.rmk: Likewise.
40699 * conf/i386-pc.rmk: Likewise.
40700 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
40701 grub_setup_init.[ch] files.
40702
40703 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
40704 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
40705 to initialize modules rather than a list of hardcoded functions.
40706 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
40707 grub_init_all() to initialize modules rather than a list of hardcoded
40708 functions.
40709
40710 2007-07-22 Robert Millan <rmh@aybabtu.com>
40711
40712 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
40713 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
40714
40715 2007-07-22 Robert Millan <rmh@aybabtu.com>
40716
40717 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
40718 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
40719 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
40720 flag when running on SmartFirmware.
40721 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
40722 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
40723 was set.
40724
40725 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40726 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
40727 rather than decreasing it.
40728
40729 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
40730 there's not enough space to do it, fail in the same way as when it
40731 can't be done because there are no partitions.
40732
40733 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
40734 when nvsetenv failed.
40735
40736 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40737
40738 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
40739 because this rule is automatically generated.
40740 (grub-mkrescue): Removed for the same reason as above.
40741
40742 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40743
40744 Migrate to GNU General Public License Version 3.
40745
40746 * COPYING: Replaced with the plain text version of GPLv3.
40747
40748 * config.guess: Updated from gnulib.
40749 * config.sub: Likewise.
40750
40751 * geninit.sh: Output a GPLv3 copyright notice.
40752 * geninitheader.sh: Likewise.
40753 * genmodsrc.sh: Likewise.
40754 * gensymlist.sh.in: Likewise.
40755
40756 * boot/i386/pc/boot.S: Upgraded to GPLv3.
40757 * boot/i386/pc/diskboot.S: Likewise.
40758 * boot/i386/pc/pxeboot.S: Likewise.
40759 * commands/blocklist.c: Likewise.
40760 * commands/boot.c: Likewise.
40761 * commands/cat.c: Likewise.
40762 * commands/cmp.c: Likewise.
40763 * commands/configfile.c: Likewise.
40764 * commands/echo.c: Likewise.
40765 * commands/help.c: Likewise.
40766 * commands/ls.c: Likewise.
40767 * commands/search.c: Likewise.
40768 * commands/terminal.c: Likewise.
40769 * commands/test.c: Likewise.
40770 * commands/videotest.c: Likewise.
40771 * commands/i386/cpuid.c: Likewise.
40772 * commands/i386/pc/halt.c: Likewise.
40773 * commands/i386/pc/play.c: Likewise.
40774 * commands/i386/pc/reboot.c: Likewise.
40775 * commands/i386/pc/vbeinfo.c: Likewise.
40776 * commands/i386/pc/vbetest.c: Likewise.
40777 * commands/ieee1275/halt.c: Likewise.
40778 * commands/ieee1275/reboot.c: Likewise.
40779 * commands/ieee1275/suspend.c: Likewise.
40780 * disk/loopback.c: Likewise.
40781 * disk/lvm.c: Likewise.
40782 * disk/raid.c: Likewise.
40783 * disk/efi/efidisk.c: Likewise.
40784 * disk/i386/pc/biosdisk.c: Likewise.
40785 * disk/ieee1275/ofdisk.c: Likewise.
40786 * font/manager.c: Likewise.
40787 * fs/affs.c: Likewise.
40788 * fs/ext2.c: Likewise.
40789 * fs/fat.c: Likewise.
40790 * fs/fshelp.c: Likewise.
40791 * fs/hfs.c: Likewise.
40792 * fs/hfsplus.c: Likewise.
40793 * fs/iso9660.c: Likewise.
40794 * fs/jfs.c: Likewise.
40795 * fs/minix.c: Likewise.
40796 * fs/sfs.c: Likewise.
40797 * fs/ufs.c: Likewise.
40798 * fs/xfs.c: Likewise.
40799 * hello/hello.c: Likewise.
40800 * include/grub/acorn_filecore.h: Likewise.
40801 * include/grub/arg.h: Likewise.
40802 * include/grub/bitmap.h: Likewise.
40803 * include/grub/boot.h: Likewise.
40804 * include/grub/cache.h: Likewise.
40805 * include/grub/device.h: Likewise.
40806 * include/grub/disk.h: Likewise.
40807 * include/grub/dl.h: Likewise.
40808 * include/grub/elfload.h: Likewise.
40809 * include/grub/env.h: Likewise.
40810 * include/grub/err.h: Likewise.
40811 * include/grub/file.h: Likewise.
40812 * include/grub/font.h: Likewise.
40813 * include/grub/fs.h: Likewise.
40814 * include/grub/fshelp.h: Likewise.
40815 * include/grub/gzio.h: Likewise.
40816 * include/grub/hfs.h: Likewise.
40817 * include/grub/kernel.h: Likewise.
40818 * include/grub/loader.h: Likewise.
40819 * include/grub/lvm.h: Likewise.
40820 * include/grub/misc.h: Likewise.
40821 * include/grub/mm.h: Likewise.
40822 * include/grub/net.h: Likewise.
40823 * include/grub/normal.h: Likewise.
40824 * include/grub/parser.h: Likewise.
40825 * include/grub/partition.h: Likewise.
40826 * include/grub/pc_partition.h: Likewise.
40827 * include/grub/raid.h: Likewise.
40828 * include/grub/rescue.h: Likewise.
40829 * include/grub/script.h: Likewise.
40830 * include/grub/setjmp.h: Likewise.
40831 * include/grub/symbol.h: Likewise.
40832 * include/grub/term.h: Likewise.
40833 * include/grub/terminfo.h: Likewise.
40834 * include/grub/tparm.h: Likewise.
40835 * include/grub/types.h: Likewise.
40836 * include/grub/video.h: Likewise.
40837 * include/grub/efi/api.h: Likewise.
40838 * include/grub/efi/chainloader.h: Likewise.
40839 * include/grub/efi/console.h: Likewise.
40840 * include/grub/efi/console_control.h: Likewise.
40841 * include/grub/efi/disk.h: Likewise.
40842 * include/grub/efi/efi.h: Likewise.
40843 * include/grub/efi/pe32.h: Likewise.
40844 * include/grub/efi/time.h: Likewise.
40845 * include/grub/i386/linux.h: Likewise.
40846 * include/grub/i386/setjmp.h: Likewise.
40847 * include/grub/i386/types.h: Likewise.
40848 * include/grub/i386/efi/kernel.h: Likewise.
40849 * include/grub/i386/efi/loader.h: Likewise.
40850 * include/grub/i386/efi/time.h: Likewise.
40851 * include/grub/i386/pc/biosdisk.h: Likewise.
40852 * include/grub/i386/pc/boot.h: Likewise.
40853 * include/grub/i386/pc/chainloader.h: Likewise.
40854 * include/grub/i386/pc/console.h: Likewise.
40855 * include/grub/i386/pc/init.h: Likewise.
40856 * include/grub/i386/pc/kernel.h: Likewise.
40857 * include/grub/i386/pc/loader.h: Likewise.
40858 * include/grub/i386/pc/memory.h: Likewise.
40859 * include/grub/i386/pc/multiboot.h: Likewise.
40860 * include/grub/i386/pc/serial.h: Likewise.
40861 * include/grub/i386/pc/time.h: Likewise.
40862 * include/grub/i386/pc/vbe.h: Likewise.
40863 * include/grub/i386/pc/vbeblit.h: Likewise.
40864 * include/grub/i386/pc/vbefill.h: Likewise.
40865 * include/grub/i386/pc/vbeutil.h: Likewise.
40866 * include/grub/i386/pc/vga.h: Likewise.
40867 * include/grub/ieee1275/ieee1275.h: Likewise.
40868 * include/grub/ieee1275/ofdisk.h: Likewise.
40869 * include/grub/powerpc/libgcc.h: Likewise.
40870 * include/grub/powerpc/setjmp.h: Likewise.
40871 * include/grub/powerpc/types.h: Likewise.
40872 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
40873 * include/grub/powerpc/ieee1275/console.h: Likewise.
40874 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
40875 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
40876 * include/grub/powerpc/ieee1275/loader.h: Likewise.
40877 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
40878 * include/grub/powerpc/ieee1275/time.h: Likewise.
40879 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
40880 * include/grub/sparc64/libgcc.h: Likewise.
40881 * include/grub/sparc64/setjmp.h: Likewise.
40882 * include/grub/sparc64/types.h: Likewise.
40883 * include/grub/sparc64/ieee1275/console.h: Likewise.
40884 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
40885 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
40886 * include/grub/sparc64/ieee1275/time.h: Likewise.
40887 * include/grub/util/biosdisk.h: Likewise.
40888 * include/grub/util/getroot.h: Likewise.
40889 * include/grub/util/lvm.h: Likewise.
40890 * include/grub/util/misc.h: Likewise.
40891 * include/grub/util/raid.h: Likewise.
40892 * include/grub/util/resolve.h: Likewise.
40893 * io/gzio.c: Likewise.
40894 * kern/device.c: Likewise.
40895 * kern/disk.c: Likewise.
40896 * kern/dl.c: Likewise.
40897 * kern/elf.c: Likewise.
40898 * kern/env.c: Likewise.
40899 * kern/err.c: Likewise.
40900 * kern/file.c: Likewise.
40901 * kern/fs.c: Likewise.
40902 * kern/loader.c: Likewise.
40903 * kern/main.c: Likewise.
40904 * kern/misc.c: Likewise.
40905 * kern/mm.c: Likewise.
40906 * kern/parser.c: Likewise.
40907 * kern/partition.c: Likewise.
40908 * kern/rescue.c: Likewise.
40909 * kern/term.c: Likewise.
40910 * kern/efi/efi.c: Likewise.
40911 * kern/efi/init.c: Likewise.
40912 * kern/efi/mm.c: Likewise.
40913 * kern/i386/dl.c: Likewise.
40914 * kern/i386/efi/init.c: Likewise.
40915 * kern/i386/efi/startup.S: Likewise.
40916 * kern/i386/pc/init.c: Likewise.
40917 * kern/i386/pc/lzo1x.S: Likewise.
40918 * kern/i386/pc/startup.S: Likewise.
40919 * kern/ieee1275/ieee1275.c: Likewise.
40920 * kern/powerpc/cache.S: Likewise.
40921 * kern/powerpc/dl.c: Likewise.
40922 * kern/powerpc/ieee1275/cmain.c: Likewise.
40923 * kern/powerpc/ieee1275/crt0.S: Likewise.
40924 * kern/powerpc/ieee1275/init.c: Likewise.
40925 * kern/powerpc/ieee1275/openfw.c: Likewise.
40926 * kern/sparc64/cache.S: Likewise.
40927 * kern/sparc64/dl.c: Likewise.
40928 * kern/sparc64/ieee1275/init.c: Likewise.
40929 * kern/sparc64/ieee1275/openfw.c: Likewise.
40930 * loader/efi/chainloader.c: Likewise.
40931 * loader/efi/chainloader_normal.c: Likewise.
40932 * loader/i386/efi/linux.c: Likewise.
40933 * loader/i386/efi/linux_normal.c: Likewise.
40934 * loader/i386/pc/chainloader.c: Likewise.
40935 * loader/i386/pc/chainloader_normal.c: Likewise.
40936 * loader/i386/pc/linux.c: Likewise.
40937 * loader/i386/pc/linux_normal.c: Likewise.
40938 * loader/i386/pc/multiboot.c: Likewise.
40939 * loader/i386/pc/multiboot_normal.c: Likewise.
40940 * loader/powerpc/ieee1275/linux.c: Likewise.
40941 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40942 * normal/arg.c: Likewise.
40943 * normal/cmdline.c: Likewise.
40944 * normal/command.c: Likewise.
40945 * normal/completion.c: Likewise.
40946 * normal/execute.c: Likewise.
40947 * normal/function.c: Likewise.
40948 * normal/lexer.c: Likewise.
40949 * normal/main.c: Likewise.
40950 * normal/menu.c: Likewise.
40951 * normal/menu_entry.c: Likewise.
40952 * normal/misc.c: Likewise.
40953 * normal/parser.y: Likewise.
40954 * normal/script.c: Likewise.
40955 * normal/i386/setjmp.S: Likewise.
40956 * normal/powerpc/setjmp.S: Likewise.
40957 * normal/sparc64/setjmp.S: Likewise.
40958 * partmap/acorn.c: Likewise.
40959 * partmap/amiga.c: Likewise.
40960 * partmap/apple.c: Likewise.
40961 * partmap/gpt.c: Likewise.
40962 * partmap/pc.c: Likewise.
40963 * partmap/sun.c: Likewise.
40964 * term/gfxterm.c: Likewise.
40965 * term/terminfo.c: Likewise.
40966 * term/efi/console.c: Likewise.
40967 * term/i386/pc/console.c: Likewise.
40968 * term/i386/pc/serial.c: Likewise.
40969 * term/i386/pc/vesafb.c: Likewise.
40970 * term/i386/pc/vga.c: Likewise.
40971 * term/ieee1275/ofconsole.c: Likewise.
40972 * util/biosdisk.c: Likewise.
40973 * util/console.c: Likewise.
40974 * util/genmoddep.c: Likewise.
40975 * util/getroot.c: Likewise.
40976 * util/grub-emu.c: Likewise.
40977 * util/grub-mkdevicemap.c: Likewise.
40978 * util/grub-probe.c: Likewise.
40979 * util/lvm.c: Likewise.
40980 * util/misc.c: Likewise.
40981 * util/raid.c: Likewise.
40982 * util/resolve.c: Likewise.
40983 * util/update-grub.in: Likewise.
40984 * util/update-grub_lib.in: Likewise.
40985 * util/grub.d/00_header.in: Likewise.
40986 * util/grub.d/10_hurd.in: Likewise.
40987 * util/grub.d/10_linux.in: Likewise.
40988 * util/i386/efi/grub-install.in: Likewise.
40989 * util/i386/efi/grub-mkimage.c: Likewise.
40990 * util/i386/pc/grub-install.in: Likewise.
40991 * util/i386/pc/grub-mkimage.c: Likewise.
40992 * util/i386/pc/grub-mkrescue.in: Likewise.
40993 * util/i386/pc/grub-setup.c: Likewise.
40994 * util/i386/pc/misc.c: Likewise.
40995 * util/powerpc/ieee1275/grub-install.in: Likewise.
40996 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
40997 * util/powerpc/ieee1275/misc.c: Likewise.
40998 * video/bitmap.c: Likewise.
40999 * video/video.c: Likewise.
41000 * video/i386/pc/vbe.c: Likewise.
41001 * video/i386/pc/vbeblit.c: Likewise.
41002 * video/i386/pc/vbefill.c: Likewise.
41003 * video/i386/pc/vbeutil.c: Likewise.
41004 * video/readers/tga.c: Likewise.
41005
41006 2007-07-02 Robert Millan <rmh@aybabtu.com>
41007
41008 * conf/i386-efi.rmk: Replace obsolete reference to
41009 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
41010 with util/getroot.c.
41011 * conf/powerpc-ieee1275.rmk: Likewise.
41012 * conf/sparc64-ieee1275.rmk: Likewise.
41013
41014 * util/grub-emu.c (main): Fix unchecked pointer handling.
41015
41016 2007-07-02 Robert Millan <rmh@aybabtu.com>
41017
41018 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
41019 invocation to fail, in order to support partition-less media.
41020
41021 * util/i386/pc/grub-install.in: Likewise.
41022
41023 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
41024 which fs or partmap modules are needed (akin to its sister scripts).
41025
41026 Also use grub-probe to get rid of unportable /proc/mounts check.
41027
41028 Print the same informational message that the other scripts do, before
41029 exiting.
41030
41031 2007-06-23 Robert Millan <rmh@aybabtu.com>
41032
41033 * util/update-grub_lib.in (font_path): New function. Determine whether
41034 a font file can be found and, if so, echo the GRUB path to it.
41035
41036 * util/update-grub.in: Handle multiple terminals depending on user
41037 input, platform availability and font file presence. Propagate
41038 variables of our findings to /etc/grub.d/ children.
41039
41040 * util/grub.d/00_header.in: Handle multiple terminals, based on
41041 environment setup by update-grub.
41042
41043 2007-06-23 Robert Millan <rmh@aybabtu.com>
41044
41045 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
41046
41047 2007-06-21 Robert Millan <rmh@aybabtu.com>
41048
41049 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
41050 indicate end of data section in kernel image.
41051 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
41052 GRUB_KERNEL_MACHINE_DATA_END.
41053
41054 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
41055 space for it.
41056 * kern/i386/efi/startup.S: Likewise.
41057
41058 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
41059 during image generation. Implement --prefix option to override this
41060 patch.
41061 * util/i386/efi/grub-mkimage.c: Likewise.
41062
41063 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
41064 code to make path relative to its root into a separate function.
41065
41066 * util/i386/pc/grub-install.in: Use newly provided
41067 make_system_path_relative_to_its_root() to convert ${grubdir}, then
41068 pass the result to grub-install --prefix.
41069
41070 2007-06-13 Robert Millan <rmh@aybabtu.com>
41071
41072 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
41073 DEFAULT_DEVICE_MAP.
41074 * util/grub-emu.c: Use above definitions from misc.h instead of
41075 defining them.
41076 * util/grub-mkdevicemap.c: Likewise.
41077 * util/i386/pc/grub-setup.c: Likewise.
41078 * util/grub-probe.c: Likewise.
41079 (probe): Abort with grub_util_error() when either
41080 grub_guess_root_device or grub_util_get_grub_dev fails.
41081
41082 2007-06-12 Robert Millan <rmh@aybabtu.com>
41083
41084 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
41085 "pager" assignment.
41086 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
41087 "pcdata".
41088 * util/grub-probe.c (probe): Likewise for "drive_name".
41089
41090 2007-06-11 Robert Millan <rmh@aybabtu.com>
41091
41092 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
41093 not just the cdrom one.
41094
41095 2007-06-11 Robert Millan <rmh@aybabtu.com>
41096
41097 * util/i386/pc/grub-mkrescue.in: Add "set -e".
41098 Add --pkglibdir=DIR option to override pkglibdir.
41099 Mention --image-type=TYPE in help output.
41100 Fix --grub-mkimage (it was a no-op).
41101 Abort gracefully when no parameter is given.
41102
41103 2007-06-11 Robert Millan <rmh@aybabtu.com>
41104
41105 * util/i386/pc/grub-mkrescue.in: New file.
41106 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
41107 * Makefile.in: Handle bin_SCRIPTS.
41108
41109 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
41110
41111 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
41112 list of video modes.
41113
41114 2007-06-06 Robert Millan <rmh@aybabtu.com>
41115
41116 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
41117 file doesn't exist, or if it is in a filesystem grub can't read.
41118
41119 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
41120 not abort if GRUB_DRIVE could not be defined. Rearrange generated
41121 header comment to fit in 80 columns when the variables are resolved.
41122
41123 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
41124 could be identified by update-grub. Remove redundant check for
41125 unifont.pff existence (since convert_system_path_to_grub_path now
41126 handles that).
41127
41128 2007-06-04 Robert Millan <rmh@aybabtu.com>
41129
41130 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
41131
41132 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
41133
41134 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
41135
41136 2007-06-04 Robert Millan <rmh@aybabtu.com>
41137
41138 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
41139
41140 * include/grub/partition.h: Declare grub_apple_partition_map_init and
41141 grub_apple_partition_map_fini.
41142
41143 * util/biosdisk.c
41144 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
41145 to access >2 TiB disks).
41146
41147 Print disk->total_sectors with %llu instead of %lu, since this
41148 variable is always 64-bit (prevents wrong disk size from being displayed
41149 on either >2 TiB disk or big-endian CPU).
41150
41151 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
41152 into a generic case that supports all (sane) partition maps.
41153
41154 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
41155 breaks big-endian.
41156
41157 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
41158 and grub_apple_partition_map_fini() after that.
41159
41160 2007-06-01 Robert Millan <rmh@aybabtu.com>
41161
41162 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
41163
41164 * util/grub.d/00_header.in: Only enable gfxterm when
41165 convert_system_path_to_grub_path() succeeds.
41166
41167 2007-05-20 Robert Millan <rmh@aybabtu.com>
41168
41169 * util/update-grub_lib.in: New file.
41170 * DISTLIST: Add update-grub_lib.in.
41171 * conf/common.rmk: Generate update-grub_lib and install it in
41172 $(lib_DATA).
41173 * Makefile.in: Add install routine for $(lib_DATA).
41174
41175 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
41176 function provided by update-grub_lib to support arbitrary paths of
41177 unifont.pff.
41178 * util/update-grub.in: Use convert_system_path_to_grub_path() to
41179 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
41180
41181 2007-05-19 Robert Millan <rmh@aybabtu.com>
41182
41183 * commands/i386/cpuid.c: New module.
41184 * DISTLIST: Add it.
41185 * conf/i386-efi.rmk: Enable cpuid.mod.
41186 * conf/i386-pc.rmk: Likewise.
41187
41188 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41189
41190 * kern/disk.c (grub_disk_read): Check return value of
41191 grub_realloc().
41192
41193 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41194
41195 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
41196 arrays.
41197 * disk/raid.c (grub_raid_open): Likewise.
41198
41199 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41200
41201 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
41202 stack instead of on the heap.
41203
41204 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
41205 before doing a read on it.
41206
41207 * configure.ac: Only use -fno-stack-protector for the target
41208 environment.
41209
41210 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41211
41212 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
41213 __attribute_ ((unused)) to mode_type argument.
41214
41215 * util/getroot.c (grub_guess_root_device): Fix #endif.
41216
41217 * kern/misc.c (memcmp): Fix prototype.
41218
41219 * include/grub/partition.h [GRUB_UTIL]
41220 (grub_gpt_partition_map_init): Add prototype.
41221 (grub_gpt_partition_map_fini): Likewise.
41222
41223 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
41224 at the right place.
41225
41226 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
41227 (grub_fat_read_data): Likewise.
41228 (grub_fat_find_dir): Likewise.
41229
41230 * font/manager.c (find_glyph): Make table a const.
41231 (grub_font_get_glyph): Remove bitmap from if statement.
41232
41233 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
41234
41235 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
41236 code, first search for device in /dev/mapper, then in /dev.
41237 (grub_util_get_grub_dev): New function.
41238 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
41239 prototype.
41240 * util/grub-probe.c (probe): Remove check for RAID, call
41241 grub_util_get_grub_dev() instead of
41242 grub_util_biosdisk_get_grub_dev().
41243 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
41244 grub_util_biosdisk_get_grub_dev().
41245 * util/i386/pc/grub-setup.c (main): Likewise.
41246
41247 2007-05-16 Robert Millan <rmh@aybabtu.com>
41248
41249 * DISTLIST: Update for the latest changes.
41250 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
41251 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
41252 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
41253 grub/util/biosdisk.h.
41254 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
41255 grub/util/biosdisk.h.
41256
41257 2007-05-16 Robert Millan <rmh@aybabtu.com>
41258
41259 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
41260
41261 2007-05-16 Robert Millan <rmh@aybabtu.com>
41262
41263 * util/i386/efi/grub-install.in: New.
41264 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
41265 newly added grub-install.
41266 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
41267 include.
41268 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
41269 grub/util/biosdisk.h.
41270 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
41271 grub/util/biosdisk.h.
41272
41273 2007-05-16 Robert Millan <rmh@aybabtu.com>
41274
41275 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
41276 * include/grub/util/biosdisk.h: ... here.
41277 * util/i386/pc/biosdisk.c: Moved to ...
41278 * util/biosdisk.c: ... here.
41279 * util/i386/pc/getroot.c: Moved to ...
41280 * util/getroot.c: ... here.
41281 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
41282 * util/grub-mkdevicemap.c: ... here.
41283 * util/i386/pc/grub-probe.c: Moved to ...
41284 * util/grub-probe.c: ... here.
41285
41286 2007-05-15 Robert Millan <rmh@aybabtu.com>
41287
41288 * util/update-grub.in: Remove duplicated line in grub.cfg header
41289 message.
41290
41291 2007-05-13 Robert Millan <rmh@aybabtu.com>
41292
41293 * util/update-grub.in: Fix a few assumptions about the devices holding
41294 /, /boot and /boot/grub being the same.
41295 * util/grub.d/00_header.in: Likewise.
41296 * util/grub.d/10_hurd.in: Likewise.
41297 * util/grub.d/10_linux.in: Likewise.
41298
41299 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
41300 patterns. Use that to define the `.old' suffix as older than `'.
41301
41302 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
41303
41304 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
41305 the grub.cfg header message.
41306
41307 2007-05-11 Robert Millan <rmh@aybabtu.com>
41308
41309 * util/update-grub.in: Create device.map if it doesn't already exist,
41310 before attempting to run grub-probe.
41311 Check for grub-probe and grub-mkdevicemap with the same code
41312 grub-install is using.
41313 Remove test mode.
41314
41315 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
41316
41317 * Makefile.in: Add the datarootdir autoconf variable.
41318
41319 2007-05-09 Robert Millan <rmh@aybabtu.com>
41320
41321 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
41322 fail gracefully if dev->disk->partition == NULL.
41323
41324 2007-05-07 Robert Millan <rmh@aybabtu.com>
41325
41326 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
41327 determine partition map module.
41328 * util/i386/pc/grub-install.in: Use this feature to decide which
41329 partition module to load, instead of hardcoding pc and gpt.
41330
41331 2007-05-07 Robert Millan <rmh@aybabtu.com>
41332
41333 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
41334 source directory differs from build directory.
41335
41336 2007-05-05 Robert Millan <rmh@aybabtu.com>
41337
41338 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
41339 initialisation.
41340
41341 2007-05-05 Robert Millan <rmh@aybabtu.com>
41342
41343 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
41344
41345 2007-05-05 Robert Millan <rmh@aybabtu.com>
41346
41347 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
41348 command-line arguments via ${GRUB_CMDLINE_LINUX}.
41349
41350 2007-05-05 Robert Millan <rmh@aybabtu.com>
41351
41352 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
41353 (grub_probe_SOURCES): Likewise.
41354 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
41355 GPT and initialize dos_part and bsd_part accordingly.
41356 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
41357 install_bsd_part.
41358 (main): Activate gpt module for use during partition identification,
41359 and deactivate it afterwards.
41360 * util/i386/pc/grub-install.in: Add gpt module to core.img.
41361 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
41362 partition identification, and deactivate it afterwards.
41363
41364 2007-05-05 Robert Millan <rmh@aybabtu.com>
41365
41366 * term/i386/pc/console.c (grub_console_fini): Call
41367 grub_term_set_current() before grub_term_unregister().
41368
41369 2007-05-04 Robert Millan <rmh@aybabtu.com>
41370
41371 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
41372 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
41373 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
41374 and update-grub_DATA.
41375 * conf/common.rmk: Build and install update-grub components.
41376 * conf/common.mk: Regenerate.
41377 * util/update-grub.in: New. Core of update-grub.
41378 * util/grub.d/00_header.in: New. Generates grub.cfg header.
41379 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
41380 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
41381 * util/grub.d/README: New. Document grub.d directory layout.
41382
41383 2007-05-01 Robert Millan <rmh@aybabtu.com>
41384
41385 * util/grub-emu.c: Move initialization functions
41386 grub_util_biosdisk_init() and grub_init_all() before
41387 grub_util_biosdisk_get_grub_dev(), which relies on them.
41388
41389 2007-04-19 Robert Millan <rmh@aybabtu.com>
41390
41391 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
41392 it is used later.
41393
41394 2007-04-18 Jerone Young <jerone@gmail.com>
41395
41396 * kernel/elf.c: Add missing parenthesis for conditional statement
41397 stanza.
41398
41399 2007-04-10 Jerone Young <jerone@gmail.com>
41400
41401 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
41402 continue on and look for device node with real device name.
41403
41404 2007-04-10 Jerone Young <jerone@gmail.com>
41405
41406 * configure.ac: Add argument for autoconf to use transformation
41407 ability.
41408 * Makefile.in: Add autoconf package transformation code.
41409 * util/i386/pc/grub-install.in: Likewise.
41410 * util/powerpc/ieee1275/grub-install.in: Likewise.
41411
41412 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
41413
41414 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
41415 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
41416 (EXT2_REVISION): Likewise.
41417 (EXT2_INODE_SIZE): Likewise.
41418 (struct grub_ext2_block_group): Added a missing member
41419 "used_dirs".
41420 (grub_ext2_read_inode): Divide by the inode size in a superblock
41421 instead of 128 to obtain INODES_PER_BLOCK.
41422 Use the macro EXT2_INODE_SIZE instead of directly using
41423 SBLOCK->INODE_SIZE.
41424
41425 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
41426
41427 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
41428 superblock instead of the structure size to compute an
41429 offset. This fixes the problem that GRUB could not read a
41430 filesystem when inode size is different from 128-byte.
41431
41432 2007-03-05 Marco Gerards <marco@gnu.org>
41433
41434 * normal/main.c (read_config_file): When "menu" is not set, create
41435 an initial context.
41436
41437 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41438
41439 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
41440 (HEAP_LIMIT): New macro.
41441 (grub_claim_heap): Claim memory up to `heaplimit'.
41442
41443 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41444
41445 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
41446 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
41447 (_start): Likewise.
41448 (grub_arch_modules_addr): Return address after `_end'.
41449 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
41450 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
41451 (add_segments): Calculate `_end' from phdr size and location.
41452 (ALIGN_UP): Moved to ...
41453 * include/grub/misc.h: here.
41454 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
41455 New macro.
41456 (GRUB_IEEE1275_MODULE_BASE): Removed.
41457
41458 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41459
41460 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
41461 loop boundary.
41462
41463 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41464
41465 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
41466 All users updated.
41467 (grub_elf64_load_hook_t): Likewise.
41468 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
41469 debug output.
41470
41471 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41472
41473 * kern/mm.c: Update copyright.
41474 (grub_mm_debug): Correct syntax error.
41475 (grub_mm_dump_free): New function.
41476 (grub_debug_free): Call `grub_free'.
41477 * include/grub/mm.h: Update copyright.
41478 (grub_mm_dump_free): Add declaration.
41479
41480 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41481
41482 * include/grub/ieee1275/ieee1275.h: Update copyright.
41483 * kern/powerpc/ieee1275/init.c: Likewise.
41484 * kern/powerpc/ieee1275/openfw.c: Likewise.
41485
41486 * loader/powerpc/ieee1275/linux.c: Likewise.
41487 * include/grub/elfload.h: Likewise.
41488 * kern/elf.c: Likewise.
41489 (grub_elf32_load): Pass `base' and `size' parameters. Update all
41490 callers.
41491 (grub_elf64_load): Likewise.
41492 (grub_elf32_load_segment): Move to a nested function.
41493 (grub_elf64_load_segment): Likewise.
41494
41495 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41496
41497 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
41498 prototype.
41499 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
41500 (grub_heap_len): Likewise.
41501 (HEAP_SIZE): New macro.
41502 (grub_claim_heap): New function.
41503 (grub_machine_init): Don't claim heap directly. Call
41504 `grub_claim_heap'.
41505 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
41506 (grub_available_iterate): New function.
41507
41508 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
41509
41510 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
41511 * configure.ac: Use it for testing the HOST and TARGET compilers.
41512
41513 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
41514
41515 * Makefile.in (enable_grub_emu): New variable.
41516 * configure.ac (--enable-grub-emu): New option.
41517 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
41518 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
41519 * conf/i386-pc.rmk: Likewise.
41520 * conf/powerpc-ieee1275.rmk: Likewise.
41521 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
41522
41523 2006-12-12 Marco Gerards <marco@gnu.org>
41524
41525 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
41526
41527 * kern/env.c (grub_env_unset): Don't free the member `value' when
41528 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
41529 pointer.
41530
41531 * normal/main.c (current_menu): Removed.
41532 (free_menu): Unset the `menu' environment variable.
41533 (grub_normal_menu_addentry): Make use of the environment variable
41534 `menu', instead of using the global `current_menu'. Allocate
41535 memory for the sourcecode of this entry.
41536 (read_config_file): New argument `nested', changed all callers.
41537 Only in the case of a new context, initialize a new menu. Set the
41538 `menu' environment variable.
41539 (grub_normal_execute): Don't set and unset the environment
41540 variable `menu' here anymore. Only free the menu when leaving the
41541 context.
41542
41543 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
41544 leak.
41545
41546 2006-12-11 Marco Gerards <marco@gnu.org>
41547
41548 * normal/menu_entry.c (run): Fix off by one bug so the last line
41549 is executed. Move the loader check to outside the loop.
41550
41551 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
41552
41553 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
41554
41555 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
41556
41557 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
41558 the number of sectors. Reported by Andrey Shuvikov
41559 <mr_hyro@yahoo.com>.
41560
41561 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
41562
41563 * kern/disk.c (grub_disk_read): When there is a read error, always
41564 try to read only the necessary data.
41565
41566 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
41567 disk/raid.c.
41568 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
41569 prototype.
41570 [GRUB_UTIL] (grub_raid_fini): Likewise.
41571 [GRUB_UTIL] (grub_lvm_init): Likewise.
41572 [GRUB_UTIL] (grub_lvm_fini): Likewise.
41573 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
41574 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
41575 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
41576 and grub_raid_fini().
41577
41578 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
41579
41580 * include/grub/types.h (__unused): Rename to UNUSED.
41581 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
41582 (grub_elf64_size): Likewise.
41583
41584 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41585
41586 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
41587 grub_error_push and grub_error_pop in the error-handling path.
41588 (grub_elf32_load_segment): Only call grub_file_read with non-zero
41589 length.
41590
41591 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41592
41593 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
41594 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41595 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41596 (kernel_elf_SOURCES): Likewise.
41597 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
41598 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
41599 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41600 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41601 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
41602 (elf_mod_SOURCES): New variable.
41603 (elf_mod_CFLAGS): Likewise.
41604 (elf_mod_LDFLAGS): Likewise.
41605 * include/grub/types.h (__unused): New macro.
41606 * include/grub/elfload.h: New file.
41607 * kern/elf.c: Likewise.
41608 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
41609 (ELF32_LOADMASK): New macro.
41610 (ELF64_LOADMASK): Likewise.
41611 (vmlinux): Removed.
41612 (grub_linux_load32): New function.
41613 (grub_linux_load64): Likewise.
41614 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
41615 Use grub_elf_t instead of grub_file_t.
41616
41617 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
41618
41619 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
41620 `catch_result' to struct set_color_args.
41621
41622 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
41623
41624 * normal/menu.c: Include grub/script.h.
41625 * normal/menu_entry.c: Likewise.
41626 * include/grub/normal.h: Do not include grub/script.h.
41627
41628 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41629
41630 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
41631
41632 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41633
41634 * kern/disk.c (grub_disk_open): Print debug messages when opening a
41635 disk.
41636 (grub_disk_close): Print debug messages when closing a disk.
41637 (grub_disk_read): Print debug messages when disk read fails.
41638 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
41639 filesystem type.
41640 * kern/partition.c: Include misc.h.
41641 (grub_partition_iterate): Print debug messages when detecting
41642 partition type.
41643
41644 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41645
41646 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
41647 is negative.
41648 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
41649
41650 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
41651
41652 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41653 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
41654
41655 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
41656
41657 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
41658 instead of sizeof(lv). Patch by Michael Guntsche.
41659
41660 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
41661
41662 * disk/lvm.c: Rename VGS to VG_LIST.
41663 (grub_lvm_iterate): Change VGS->LV to VG-LV.
41664 (grub_lvm_open): Likewise.
41665 Thanks to Michael Guntsche for finding this bug.
41666
41667 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
41668
41669 * configure.ac (AC_INIT): Bumped to 1.95.
41670
41671 2006-10-14 Robert Millan <rmh@aybabtu.com>
41672
41673 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
41674 with "/dev/.static/dev/md".
41675
41676 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41677
41678 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
41679 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
41680 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
41681 DRIVE_NAME are always freed.
41682
41683 * util/i386/pc/biosdisk.c (make_device_name): Add one into
41684 DOS_PART, as a DOS partition is counted from one instead of zero
41685 now. Reported by Robert Millan.
41686
41687 2006-10-14 Robert Millan <rmh@aybabtu.com>
41688
41689 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
41690 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
41691 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
41692 string returned by grub_guess_root_device.
41693 * util/i386/pc/grub-setup.c: Likewise.
41694 * util/i386/pc/grub-probefs.c: Likewise.
41695
41696 * util/i386/pc/grub-probefs.c: Rename to ...
41697 * util/i386/pc/grub-probe.c: ... this.
41698 * DISTLIST: Remove grub-probefs, add grub-probe.
41699 * conf/i386-efi.rmk: Likewise.
41700 * conf/i386-pc.rmk: Likewise.
41701 * util/i386/pc/grub-install.in: Likewise.
41702
41703 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
41704 choose which information we want to print.
41705
41706 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41707
41708 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
41709 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
41710 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
41711 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
41712 video/readers/tga.c and video/i386/pc/vbeutil.c.
41713
41714 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
41715
41716 Added support for RAID and LVM.
41717
41718 * disk/lvm.c: New file.
41719 * disk/raid.c: Likewise.
41720 * include/grub/lvm.h: Likewise.
41721 * include/grub/raid.h: Likewise.
41722 * include/grub/util/lvm.h: Likewise.
41723 * include/grub/util/raid.h: Likewise.
41724 * util/lvm.c: Likewise.
41725 * util/raid.c: Likewise.
41726
41727 * include/grub/disk.h (grub_disk_dev_id): Add
41728 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
41729 (grub_disk_get_size): New prototype.
41730 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
41731 returns a partition.
41732 (grub_disk_get_size): New function.
41733
41734 * kern/i386/pc/init.c (make_install_device): Copy the prefix
41735 verbatim if grub_install_dos_part is -2.
41736
41737 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
41738 and LVM devices.
41739
41740 * util/i386/pc/grub-setup.c (setup): New argument
41741 MUST_EMBED. Force embedding of GRUB when the argument is
41742 true. Close FILE before returning.
41743 (main): Add support for RAID and LVM.
41744
41745 * conf/common.rmk: Add RAID and LVM modules.
41746 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
41747 util/lvm.c.
41748 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
41749
41750 * kern/misc.c (grub_strstr): New function.
41751 * include/grub/misc.h (grub_strstr): New prototype.
41752
41753 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
41754
41755 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
41756
41757 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
41758
41759 * kern/misc.c (grub_strtoull): Guess the base only if not
41760 specified.
41761
41762 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41763
41764 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
41765 PowerMac support.
41766
41767 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41768
41769 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
41770
41771 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
41772 Remove `flags' argument. All callers changed.
41773 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
41774 (IEEE1275_IHANDLE_INVALID): New variable.
41775 (IEEE1275_CELL_INVALID): New variable.
41776 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
41777 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
41778 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
41779 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
41780 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
41781 codes from Open Firmware. All callers updated.
41782 (grub_ieee1275_next_property): Directly return Open Firmware return
41783 code.
41784 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41785 Standardize error checking from `grub_ieee1275_get_property'.
41786 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
41787 `devalias' to `aliases'. Correct comments. Consolidate error paths.
41788
41789 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41790
41791 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
41792 `instance_to_package_args' to `instance_to_path_args'.
41793
41794 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
41795 `grub_ieee1275_chosen'.
41796
41797 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
41798 `grub_ieee1275_interpret'.
41799
41800 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41801
41802 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
41803
41804 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41805
41806 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
41807 (__cmpdi): Likewise.
41808
41809 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
41810 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
41811 `grub_ssize_t'.
41812
41813 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
41814
41815 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
41816 to type `grub_ssize_t'.
41817 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
41818
41819 2006-09-22 Marco Gerards <marco@gnu.org>
41820
41821 * normal/script.c (grub_script_create_cmdmenu): Skip leading
41822 newlines.
41823
41824 2006-09-22 Marco Gerards <marco@gnu.org>
41825
41826 * commands/echo.c: New file.
41827
41828 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
41829
41830 * conf/common.rmk (echo_mod_SOURCES): New variable.
41831 (echo_mod_CFLAGS): Likewise.
41832 (echo_mod_LDFLAGS): Likewise.
41833
41834 2006-09-22 Marco Gerards <marco@gnu.org>
41835
41836 * normal/main.c (get_line): Malloc memory instead of using
41837 preallocated memory. Removed the arguments `cmdline' and
41838 `max_len'. Updated all callers.
41839
41840 2006-09-22 Marco Gerards <marco@gnu.org>
41841
41842 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
41843 (normal_mod_DEPENDENCIES): Likewise.
41844
41845 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
41846 (normal_mod_DEPENDENCIES): Likewise.
41847
41848 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
41849
41850 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
41851
41852 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
41853 programs.
41854 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
41855 (normal_mod_DEPENDENCIES): Likewise.
41856 * conf/i386-pc.mk: Regenerate.
41857 * conf/i386-efi.mk: Likewise
41858 * conf/common.mk: Likewise.
41859 * conf/powerpc-ieee1275.mk: Likewise.
41860 * conf/sparc64-ieee1275.mk: Likewise.
41861
41862 2006-09-22 Robert Millan <rmh@aybabtu.com>
41863
41864 Sync with i386 version.
41865 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
41866 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
41867
41868 2006-09-21 Robert Millan <rmh@aybabtu.com>
41869
41870 Import from GRUB Legacy (lib/device.c):
41871 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
41872 (init_device_map) [__linux__]: Add support for I2O devices.
41873
41874 2006-09-14 Marco Gerards <marco@gnu.org>
41875
41876 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
41877 `-melf_i386'.
41878
41879 2006-09-14 Robert Millan <rmh@aybabtu.com>
41880
41881 * util/i386/pc/grub-install.in: Skip menu.lst when removing
41882 /boot/grub/*.lst.
41883
41884 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
41885
41886 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
41887 before adding it to device.map.
41888
41889 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
41890
41891 * genmk.rb: Let GCC generate dependencies the first time it
41892 compiles a file; using the -MD option.
41893 * conf/common.mk: Regenerate.
41894 * conf/i386-pc.mk: Likewise.
41895 * conf/i386-efi.mk: Likewise.
41896 * conf/powerpc-ieee1275.mk: Likewise.
41897 * conf/sparc64-ieee1275.mk: Likewise.
41898
41899 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
41900
41901 Move the prototypes of grub_setjmp and grub_longjmp to
41902 cpu/setjmp.h, so that each architecture may specify different
41903 attributes.
41904
41905 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
41906 (grub_longjmp): Likewise.
41907 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
41908 (grub_longjmp): Likewise.
41909 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
41910 (grub_longjmp): Likewise.
41911
41912 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
41913 [!GRUB_UTIL] (grub_longjmp): Removed.
41914
41915 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
41916
41917 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
41918 "color!" method does not return any value.
41919
41920 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41921
41922 * include/grub/bitmap.h: New file.
41923
41924 * include/grub/i386/pc/vbeutil.h: Likewise.
41925
41926 * video/bitmap.c: Likewise.
41927
41928 * video/readers/tga.c: Likewise.
41929
41930 * video/i386/pc/vbeutil.c: Likewise.
41931
41932 * commands/videotest.c: Code cleanup and updated to reflect to new
41933 video API.
41934
41935 * term/gfxterm.c: Likewise.
41936
41937 * video/video.c: Likewise.
41938
41939 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
41940 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
41941 (bitmap_mod_SOURCES): New entry.
41942 (bitmap_mod_CFLAGS): Likewise.
41943 (bitmap_mod_LDFLAGS): Likewise.
41944 (tga_mod_SOURCES): Likewise.
41945 (tga_mod_CFLAGS): Likewise.
41946 (tga_mod_LDFLAGS): Likewise.
41947
41948 * include/grub/video.h (grub_video_blit_operators): New enum type.
41949 (grub_video_render_target): Changed as forward declaration and moved
41950 actual definition to be video driver specific.
41951 (grub_video_adapter.blit_bitmap): Added blitting operator.
41952 (grub_video_adapter.blit_render_target): Likewise.
41953 (grub_video_blit_bitmap): Likewise.
41954 (grub_video_blit_render_target): Likewise.
41955
41956 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
41957 driver specific render target definition.
41958 (grub_video_vbe_map_rgba): Added driver internal helper.
41959 (grub_video_vbe_unmap_color): Updated to use
41960 grub_video_i386_vbeblit_info.
41961 (grub_video_vbe_get_video_ptr): Likewise.
41962
41963 * include/grub/i386/pc/vbeblit.h
41964 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
41965 grub_video_i386_vbeblit_info.
41966 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41967 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41968 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41969 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41970 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41971 (grub_video_i386_vbeblit_index_index): Likewise.
41972 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
41973 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41974 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41975 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
41976 operator.
41977 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
41978 operator.
41979
41980 * video/i386/pc/vbeblit.c: Updated to reflect changes on
41981 include/grub/i386/pc/vbeblit.h.
41982
41983 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
41984 Updated to use grub_video_i386_vbeblit_info.
41985 (grub_video_i386_vbefill_R8G8B8): Likewise.
41986 (grub_video_i386_vbefill_index): Likewise.
41987 (grub_video_i386_vbefill): Added generic filler.
41988
41989 * video/i386/pc/vbefill.c: Updated to reflect changes on
41990 include/grub/i386/pc/vbefill.h.
41991
41992 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
41993 grub_video_i386_vbeblit_info.
41994 (grub_video_vbe_unmap_color): Likewise.
41995 (grub_video_vbe_blit_glyph): Likewise.
41996 (grub_video_vbe_scroll): Likewise.
41997 (grub_video_vbe_draw_pixel): Removed function.
41998 (grub_video_vbe_get_pixel): Likewise.
41999 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
42000 updated code to use it.
42001 (common_blitter): Added common blitter for render target and bitmap.
42002 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
42003 (grub_video_vbe_blit_render_target): Likewise.
42004
42005 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
42006
42007 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
42008 is in text mode if there is no console control protocol instance
42009 available.
42010
42011 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42012
42013 * include/grub/video.h: Code cleanup.
42014
42015 * include/grub/i386/pc/vbe.h: Likewise.
42016
42017 * video/i386/pc/vbe.c: Likewise.
42018
42019 * video/i386/pc/vbeblit.c: Likewise.
42020
42021 * video/i386/pc/vbefill.c: Likewise.
42022
42023 * video/video.c: Likewise. Also added more comments.
42024
42025 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42026
42027 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
42028 (struct grub_biosdisk_dap): Likewise.
42029
42030 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
42031 linkage settings for all functions.
42032
42033 2006-07-12 Marco Gerards <marco@gnu.org>
42034
42035 * configure.ac (--enable-mm-debug): Fix typo.
42036
42037 * genkernsyms.sh.in: Use proper quoting for `CC'.
42038
42039 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
42040
42041 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
42042 (normal_mod_ASFLAGS): Remove "-m32".
42043
42044 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
42045
42046 * util/misc.c: Include config.h.
42047 [!HAVE_MEMALIGN]: Do not include malloc.h.
42048 (grub_memalign): Use posix_memalign, if present. Then, use
42049 memalign, if present. Otherwise, emit an error.
42050
42051 * util/grub-emu.c: Do not include malloc.h.
42052
42053 * include/grub/util/misc.h: Include unistd.h. This is required for
42054 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
42055 D. Eades III <hde@foobar-qux.org>.
42056
42057 * configure.ac (AC_GNU_SOURCE): Added.
42058 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
42059 type.
42060
42061 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
42062
42063 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
42064 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
42065
42066 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
42067
42068 * include/grub/types.h (grub_host_addr_t): Rename to
42069 grub_target_addr_t.
42070 (grub_host_off_t): Rename to grub_target_off_t.
42071 (grub_host_size_t): Rename to grub_target_size_t.
42072 (grub_host_ssize_t): Rename to grub_target_ssize_t.
42073 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
42074
42075 * include/grub/kernel.h (struct grub_module_header): Change type
42076 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
42077 (grub_module_info): Likewise.
42078
42079 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42080
42081 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
42082 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
42083 Velazquez <jesus.velazquez@gmail.com>.
42084
42085 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42086
42087 Count partitions from 1 instead of 0 in the string representation
42088 of partitions. Still use 0-based internally.
42089
42090 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
42091 (sun_partition_map_iterate): Use grub_partition_t instead of
42092 struct grub_partition *. Cast DESC->START_CYLINDER to
42093 grub_uint64_t after converting the endian.
42094 (sun_partition_map_probe): Subtract 1 for PARTNUM.
42095 (sun_partition_map_get_name): Add 1 to P->INDEX.
42096
42097 * partmap/pc.c (grub_partition_parse): Subtract 1 for
42098 PCDATA->DOS_PART.
42099 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
42100
42101 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
42102 zero instead of one.
42103 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
42104 (gpt_partition_map_get_name): Add 1 into P->INDEX.
42105
42106 * partmap/apple.c (apple_partition_map_iterate): Change the type
42107 of POS to unsigned.
42108 (apple_partition_map_probe): Subtract 1 for PARTNUM.
42109 (apple_partition_map_get_name): Add 1 into P->INDEX.
42110
42111 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
42112 of POS to unsigned.
42113 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
42114 calculate the offset of a partition.
42115 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
42116 (amiga_partition_map_get_name): Add 1 into P->INDEX.
42117
42118 * partmap/acorn.c (acorn_partition_map_find): Change the type of
42119 SECTOR to grub_disk_addr_t.
42120 (acorn_partition_map_iterate): Likewise.
42121 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
42122 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
42123 top.
42124 (acorn_partition_map_get_name): Add 1 into P->INDEX.
42125
42126 * kern/i386/pc/init.c (make_install_device): Add 1 into
42127 GRUB_INSTALL_DOS_PART.
42128
42129 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
42130 conditional.
42131
42132 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42133
42134 Clean up the code to support 64-bit addressing in disks and
42135 files. This change is not enough for filesystems yet.
42136
42137 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
42138 type of "start" to grub_uint64_t.
42139 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
42140 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
42141 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
42142 convert addresses.
42143
42144 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
42145 to grub_disk_addr_t.
42146
42147 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
42148 string.
42149
42150 * partmap/pc.c (pc_partition_map_iterate): Likewise.
42151
42152 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
42153 to char *.
42154
42155 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
42156
42157 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
42158
42159 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
42160
42161 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
42162 to grub_off_t, to detect an error from grub_file_seek.
42163 (grub_multiboot_load_elf32): Likewise.
42164
42165 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
42166 maximum unsigned long value when an overflow is detected.
42167 (grub_strtoull): New function.
42168 (grub_divmod64): Likewise.
42169 (grub_lltoa): use grub_divmod64.
42170
42171 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
42172 grub_disk_addr_t.
42173 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
42174 the pointer to next character. Use grub_strtoull instead of
42175 grub_strtoul.
42176 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
42177 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
42178 respectively.
42179
42180 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
42181 return value is signed.
42182 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
42183 test if OFFSET is less than zero, as OFFSET is unsigned now.
42184
42185 * kern/disk.c (struct grub_disk_cache): Change the type of
42186 "sector" to grub_disk_addr_t.
42187 (grub_disk_cache_get_index): Change the type of SECTOR to
42188 grub_disk_addr_t. Calculate the hash with SECTOR casted to
42189 unsigned after shifting.
42190 (grub_disk_cache_invalidate): Change the type of SECTOR to
42191 grub_disk_addr_t.
42192 (grub_disk_cache_unlock): Likewise.
42193 (grub_disk_cache_store): Likewise.
42194 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
42195 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
42196 grub_disk_addr_t and grub_uint64_t, respectively.
42197 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
42198 body, as the value of OFFSET is tweaked by
42199 grub_disk_check_range. Change the types of START_SECTOR, LEN and
42200 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
42201 respectively.
42202 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
42203 body, as the value of OFFSET is tweaked by
42204 grub_disk_check_range. Change the types of LEN and N to
42205 grub_size_t.
42206
42207 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
42208 and "saved_offset" to grub_off_t.
42209 (test_header): Cast BUF to char *.
42210 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
42211 to char *.
42212 (grub_gzio_read): Change the types of OFFSET and SIZE to
42213 grub_off_t and grub_size_t, respectively.
42214
42215 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
42216 Removed.
42217 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
42218 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
42219 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
42220 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
42221 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
42222
42223 * include/grub/types.h (grub_off_t): Unconditionally set to
42224 grub_uint64_t.
42225 (grub_disk_addr_t): Changed to grub_uint64_t.
42226
42227 * include/grub/partition.h (struct grub_partition): Change the
42228 types of "start", "len" and "offset" to grub_disk_addr_t,
42229 grub_uint64_t and grub_disk_addr_t, respectively.
42230 (grub_partition_get_start): Return grub_disk_addr_t.
42231 (grub_partition_get_len): Return grub_uint64_t.
42232
42233 * include/grub/misc.h (grub_strtoull): New prototype.
42234 (grub_divmod64): Likewise.
42235
42236 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
42237 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
42238 grub_off_t, respectively.
42239 All callers and references changed.
42240
42241 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
42242 grub_size_t in "read".
42243 All callers and references changed.
42244
42245 * include/grub/file.h (struct grub_file): Change the types of
42246 "offset" and "size" to grub_off_t and grub_off_t,
42247 respectively. Change the type of SECTOR to grub_disk_addr_t in
42248 "read_hook".
42249 (grub_file_read): Change the type of LEN to grub_size_t.
42250 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
42251 grub_off_t.
42252 (grub_file_size): Return grub_off_t.
42253 (grub_file_tell): Likewise.
42254 All callers and references changed.
42255
42256 * include/grub/disk.h (struct grub_disk_dev): Change the types of
42257 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
42258 "write".
42259 (struct grub_disk): Change the type of "total_sectors" to
42260 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
42261 "read_hook".
42262 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
42263 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
42264 (grub_disk_write): Likewise.
42265 All callers and references changed.
42266
42267 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
42268 char * for grub_strncmp to silence gcc.
42269 (grub_iso9660_mount): Likewise.
42270 (grub_iso9660_mount): Likewise.
42271 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
42272 return statement.
42273 (grub_iso9660_iterate_dir): Likewise.
42274 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
42275
42276 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
42277 LEN to grub_disk_addr_t and grub_size_t, respectively.
42278
42279 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
42280
42281 * fs/jfs.c (grub_jfs_read_file): Likewise.
42282
42283 * fs/minix.c (grub_jfs_read_file): Likewise.
42284
42285 * fs/sfs.c (grub_jfs_read_file): Likewise.
42286
42287 * fs/ufs.c (grub_jfs_read_file): Likewise.
42288
42289 * fs/xfs.c (grub_jfs_read_file): Likewise.
42290
42291 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
42292 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
42293 respectively.
42294
42295 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
42296 BLKNR to -1 instead of returning GRUB_ERRNO.
42297 (grub_ext2_read_file): Change the types of SECTOR and
42298 LEN to grub_disk_addr_t and grub_size_t, respectively.
42299
42300 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
42301 LEN to grub_disk_addr_t and grub_size_t, respectively.
42302
42303 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
42304 grub_file_read.
42305
42306 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
42307 string. Do not cast SECTOR explicitly.
42308
42309 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
42310 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
42311 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
42312 grub_disk_addr_t and grub_size_t, respectively. If the sector is
42313 over 2TB and LBA mode is not supported, raise an error.
42314 (get_safe_sectors): New function.
42315 (grub_biosdisk_read): Use get_safe_sectors.
42316 (grub_biosdisk_write): Likewise.
42317
42318 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
42319 (grub_efidisk_write): Likewise.
42320
42321 * disk/loopback.c (delete_loopback): Cosmetic changes.
42322 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
42323 correctly.
42324 (grub_loopback_open): Likewise.
42325 (grub_loopback_read): Likewise. Also, change the type of POS to
42326 grub_off_t, and fix the usage of grub_memset.
42327
42328 * commands/i386/pc/play.c: Include grub/machine/time.h.
42329
42330 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
42331 print FILE->SIZE.
42332
42333 * commands/configfile.c: Include grub/env.h.
42334
42335 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
42336 GRUB_ERRNO directly instead. Change the type of POS to
42337 grub_off_t. Follow the coding standard.
42338
42339 * commands/blocklist.c: Include grub/partition.h.
42340 (grub_cmd_blocklist): Return an error if the underlying device is
42341 not a disk. Take the starting sector of a partition into account,
42342 if a partition is used.
42343
42344 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
42345 a length field.
42346 (lba_mode): Support 64-bit addresses.
42347 (chs_mode): Likewise.
42348 (copy_buffer): Adapted to the new offsets of a length field and a
42349 segment field.
42350 (blocklist_default_start): Allocate 64-bit space.
42351
42352 * boot/i386/pc/boot.S (force_lba): Removed.
42353 (boot_drive): Moved to under KERNEL_SECTOR.
42354 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
42355 space.
42356 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
42357 is useless.
42358 (lba_mode): Refactored to support a 64-bit address. More size
42359 optimization.
42360 (setup_sectors): Likewise.
42361
42362 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42363
42364 * DISTLIST: Added include/grub/i386/linux.h. Removed
42365 include/grub/i386/pc/linux.h
42366
42367 * configure.ac (AC_INIT): Bumped to 1.94.
42368
42369 * config.guess: Updated from gnulib.
42370 * config.sub: Likewise.
42371 * install-sh: Likewise.
42372 * mkinstalldirs: Likewise.
42373
42374 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42375
42376 * conf/common.rmk (grub_modules_init.lst): Depended on
42377 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
42378 MODSRCFILES.
42379
42380 * genmk.rb (PModule::rule): Reverted the previous change.
42381
42382 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42383
42384 * conf/common.rmk (grub_modules_init.lst): Depends on
42385 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
42386 that the target does not exist before producing.
42387 (grub_modules_init.h): Remove the target before generating.
42388 (grub_emu_init.c): Likewise.
42389
42390 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
42391
42392 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
42393
42394 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
42395 for the target-specific tests. Make sure that we also have the
42396 up-to-date target variables for those tests.
42397
42398 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42399
42400 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
42401 (PModule::rule): Likewise.
42402
42403 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42404
42405 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
42406 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
42407 target-specific flags should be prefixed.
42408 (PModule::rule): Likewise.
42409
42410 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
42411
42412 * configure.ac (CMP): Check if cmp is available explicitly.
42413
42414 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
42415
42416 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
42417 (target_cpu): New variable.
42418 (pkglibdir): Use target_cpu instead of host_cpu.
42419
42420 * util/i386/pc/grub-install.in (host_cpu): Removed.
42421 (target_cpu): New variable.
42422 (pkglibdir): Use target_cpu instead of host_cpu.
42423
42424 * util/genmoddep.c: Removed.
42425
42426 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
42427 instead of GRUB_HOST_SIZEOF_VOID_P.
42428 * kern/dl.c: Likewise.
42429
42430 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
42431 ...
42432 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42433 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42434 (GRUB_TARGET_SIZEOF_LONG): ... this.
42435 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42436 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42437 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42438 to ...
42439 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42440 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42441 (GRUB_TARGET_SIZEOF_LONG): ... this.
42442 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42443 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42444 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42445 to ...
42446 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42447 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42448 (GRUB_TARGET_SIZEOF_LONG): ... this.
42449 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42450 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42451
42452 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
42453 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
42454 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
42455 instead of GRUB_HOST_SIZEOF_LONG.
42456 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
42457 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
42458 GRUB_CPU_WORDS_BIGENDIAN.
42459 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
42460 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
42461 grub_host_ssize_t.
42462
42463 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
42464 (genmoddep_SOURCES): Likewise.
42465 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
42466 (genmoddep_SOURCES): Likewise.
42467 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
42468 (genmoddep_SOURCES): Likewise.
42469 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
42470 Likewise.
42471 (genmoddep_SOURCES): Likewise.
42472
42473 * genmoddep.awk: New file.
42474
42475 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
42476 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
42477 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
42478 (PModule::rule): Likewise.
42479 (Program::rule): Likewise.
42480 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
42481 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
42482 respectively.
42483
42484 * configure.ac: Rewritten intensively to use host and target
42485 instead of build and host, respectively.
42486
42487 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
42488 (host_cpu): Removed.
42489 (target_cpu): New variable.
42490 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
42491 (BUILD_CC): Removed.
42492 (BUILD_CFLAGS): Likewise.
42493 (BUILD_CPPFLAGS): Likewise.
42494 (TARGET_CC): New variable.
42495 (TARGET_CFLAGS): Likewise.
42496 (TARGET_CPPFLAGS): Likewise.
42497 (TARGET_LDFLAGS): Likewise.
42498 (AWK): Likewise.
42499 (include): Use target_cpu instead of host_cpu.
42500 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
42501
42502 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
42503
42504 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
42505
42506 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
42507 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
42508 field 'false' to 'exec_on_false'.
42509 (grub_script_create_cmdif): Renamed argument names to reflect above
42510 changes.
42511
42512 * normal/execute.c (grub_script_execute_cmdif): Likewise.
42513
42514 * normal/script.c (grub_script_create_cmdif): Likewise.
42515
42516 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
42517
42518 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
42519 top.
42520 (grub_hfsplus_btree_recptr): Likewise.
42521 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
42522 FILEBLOCK both to pass a block number and store next block
42523 number.
42524 (grub_hfsplus_read_block): Rewritten heavily to support an extent
42525 overflow file correctly. Specify errors appropriately, because
42526 fshelp expects that GRUB_ERRNO is set when fails. Reuse
42527 grub_hfsplus_btree_recptr to get the pointer to a found key.
42528 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
42529 is found.
42530
42531 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
42532 linux.mod.
42533 (_linux_mod_SOURCES): New variable.
42534 (_linux_mod_CFLAGS): Likewise.
42535 (_linux_mod_LDFLAGS): Likewise.
42536 (linux_mod_SOURCES): Likewise.
42537 (linux_mod_CFLAGS): Likewise.
42538 (linux_mod_LDFLAGS): Likewise.
42539
42540 * DISTLIST: Added loader/i386/efi/linux.c,
42541 loader/i386/efi/linux_normal.c and
42542 include/grub/i386/efi/loader.h.
42543
42544 * loader/i386/efi/linux.c: New file.
42545 * loader/i386/efi/linux_normal.c: Likewise.
42546 * include/grub/i386/efi/loader.h: Likewise.
42547
42548 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
42549
42550 * commands/blocklist.c: New file.
42551
42552 * DISTLIST: Added commands/blocklist.c.
42553
42554 * term/efi/console.c (grub_console_highlight_color): Use a lighter
42555 color for the background, and a darker color for the foreground.
42556 (grub_console_checkkey): Return READ_KEY.
42557 (grub_console_cls): Set the background to
42558 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
42559
42560 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
42561
42562 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
42563 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
42564
42565 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
42566 prototype.
42567
42568 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
42569 BG. The spec is wrong again.
42570
42571 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
42572 prototype.
42573 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
42574
42575 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
42576 commands/blocklist.c.
42577 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42578
42579 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
42580 (blocklist_mod_SOURCES): New variable.
42581 (blocklist_mod_CFLAGS): Likewise.
42582 (blocklist_mod_LDFLAGS): Likewise.
42583
42584 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
42585
42586 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
42587 duplication.
42588 (lba_mode): Use %eax more intensively to reduce the code size.
42589
42590 2006-05-20 Marco Gerards <marco@gnu.org>
42591
42592 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
42593
42594 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
42595 for `menuentry'.
42596 (script): Accept leading newlines.
42597 (newlines): New rule to describe 0 or more newlines.
42598 (commands): Accept `command' with trailing newline. Fixed the
42599 order in which arguments were passed to `grub_script_add_cmd'.
42600 Accept commands separated by newlines.
42601 (function): Changed to accept newlines.
42602 (menuentry) Rewritten.
42603
42604 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
42605 front of the list, instead of to the end.
42606
42607 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
42608
42609 * util/i386/pc/grub-install.in (bindir): New variable.
42610 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
42611 Shaver <lbgwjl@gmail.com>.
42612
42613 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
42614
42615 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
42616 grub/machine/linux.h
42617 * loader/i386/pc/linux.c: Likewise.
42618
42619 * include/grub/i386/pc/linux.h: Moved to ...
42620 * include/grub/i386/linux.h: ... here.
42621
42622 * include/grub/i386/linux.h (struct linux_kernel_params): New
42623 struct.
42624
42625 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
42626
42627 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
42628 checking.
42629 (grub_video_vbe_blit_glyph): Likewise.
42630 (grub_video_vbe_blit_bitmap): Likewise.
42631 (grub_video_vbe_blit_render_target): Likewise.
42632
42633 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
42634
42635 * configure.ac (--with-platform): Properly quote the square
42636 brackets.
42637
42638 2006-05-08 Marco Gerards <marco@gnu.org>
42639
42640 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
42641 this...
42642 (kernel_elf_HEADERS): ...to this. Updated all users.
42643 (grubof_symlist.c): Renamed from this...
42644 (kernel_elf_symlist.c): ...to this. Updated all users.
42645 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42646 (grubof_SOURCES): Renamed from this...
42647 (kernel_elf_SOURCES): ...to this.
42648 (grubof_HEADERS): Renamed from this...
42649 (kernel_elf_HEADERS): ...to this.
42650 (grubof_CFLAGS): Renamed from this...
42651 (kernel_elf_CFLAGS): ...to this.
42652 (grubof_ASFLAGS): Renamed from this...
42653 (kernel_elf_ASFLAGS): ...to this.
42654 (grubof_LDFLAGS): Renamed from this...
42655 (kernel_elf_LDFLAGS): ...to this.
42656
42657 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
42658 this...
42659 (kernel_elf_HEADERS): ...to this. Updated all users.
42660 (grubof_symlist.c): Renamed from this...
42661 (kernel_elf_symlist.c): ...to this. Updated all users.
42662 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42663 (grubof_SOURCES): Renamed from this...
42664 (kernel_elf_SOURCES): ...to this.
42665 (grubof_HEADERS): Renamed from this...
42666 (kernel_elf_HEADERS): ...to this.
42667 (grubof_CFLAGS): Renamed from this...
42668 (kernel_elf_CFLAGS): ...to this.
42669 (grubof_ASFLAGS): Renamed from this...
42670 (kernel_elf_ASFLAGS): ...to this.
42671 (grubof_LDFLAGS): Renamed from this...
42672 (kernel_elf_LDFLAGS): ...to this.
42673
42674 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
42675 `kernel.elf' instead of `grubof'.
42676
42677 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
42678
42679 Add --with-platform to configure. Use pkglibdir instead of
42680 pkgdatadir. This is reported by Roger Leigh.
42681
42682 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
42683 (host_vendor): Likewise.
42684 (host_os): Likewise.
42685 (pkgdatadir): Likewise.
42686 (platform): New variable.
42687 (pkglibdir): Likewise.
42688 Use PKGLIBDIR instead of PKGDATADIR.
42689
42690 * util/i386/pc/grub-install.in (datadir): Removed.
42691 (host_vendor): Likewise.
42692 (host_os): Likewise.
42693 (pkgdatadir): Likewise.
42694 (platform): New variable.
42695 (pkglibdir): Likewise.
42696 Use PKGLIBDIR instead of PKGDATADIR.
42697
42698 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
42699 instead of GRUB_DATADIR.
42700 (main): Likewise.
42701 * util/i386/pc/grub-mkimage.c (usage): Likewise.
42702 (main): Likewise.
42703 * util/i386/efi/grub-mkimage.c (usage): Likewise.
42704 (main): Likewise.
42705
42706 * configure.ac (--with-platform): New option.
42707 Use PLATFORM instead of HOST_VENDOR to specify a platform.
42708
42709 * Makefile.in: Include a makefile based on PLATFORM instead of
42710 HOST_VENDOR.
42711 (pkgdatadir): Not appended by the machine type.
42712 (pkglibdir): Appended by the machine type.
42713 (host_vendor): Removed.
42714 (platform): New variable.
42715 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
42716 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
42717 (uninstall): Likewise.
42718
42719 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
42720
42721 Use the environment context in the menu. Remove the commands
42722 "default" and "timeout", and use variables instead.
42723
42724 * normal/menu.c: Include grub/env.h.
42725 (print_entry): Cast TITLE to silence gcc.
42726 (get_timeout): New function.
42727 (set_timeout): Likewise.
42728 (get_entry_number): Likewise.
42729 (run_menu): Use a default entry, a fallback entry and a timeout
42730 in the environment variables "default", "fallback" and
42731 "timeout". Also, tweak the default entry if it is not within the
42732 current menu entries.
42733 (grub_menu_run): Use a fallback entry in the environment variable
42734 "fallback".
42735
42736 * normal/main.c (read_config_file): Do not initialize
42737 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
42738 NEWMENU->TIMEOUT.
42739 (grub_normal_execute): Use a data slot to store the menu.
42740
42741 * include/grub/normal.h (struct grub_menu): Removed default_entry,
42742 fallback_entry and timeout.
42743 (struct grub_menu_list): Removed.
42744 (grub_menu_list_t): Likewise.
42745 (struct grub_context): Likewise.
42746 (grub_context_t): Likewise.
42747 (grub_context_get): Likewise.
42748 (grub_context_get_current_menu): Likewise.
42749 (grub_context_push_menu): Likewise.
42750 (grub_context_pop_menu): Likewise.
42751 (grub_default_init): Likewise.
42752 (grub_default_fini): Likewise.
42753 (grub_timeout_init): Likewise.
42754 (grub_timeout_fini): Likewise.
42755
42756 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
42757 and timeout.mod.
42758 (normal_mod_SOURCES): Removed normal/context.c.
42759
42760 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
42761 commands/default.c, commands/timeout.c and normal/context.c.
42762 (normal_mod_SOURCES): Removed normal/context.c.
42763
42764 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
42765 commands/timeout.c and normal/context.c.
42766 (normal_mod_SOURCES): Removed normal/context.c.
42767
42768 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
42769 commands/default.c, commands/timeout.c and normal/context.c.
42770 (normal_mod_SOURCES): Removed normal/context.c.
42771
42772 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
42773 timeout.mod.
42774 (default_mod_SOURCES): Removed.
42775 (default_mod_CFLAGS): Likewise.
42776 (default_mod_LDFLAGS): Likewise.
42777 (timeout_mod_SOURCES): Removed.
42778 (timeout_mod_CFLAGS): Likewise.
42779 (timeout_mod_LDFLAGS): Likewise.
42780
42781 * DISTLIST: Removed commands/default.c, commands/timeout.c and
42782 normal/context.c.
42783
42784 * commands/default.c: Removed.
42785 * commands/timeout.c: Likewise.
42786 * normal/context.c: Likewise.
42787
42788 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
42789
42790 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
42791
42792 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
42793
42794 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
42795 "next" to "prev" for readability.
42796 (struct grub_env_sorted_var): New struct.
42797 (grub_env_context): Renamed to ...
42798 (initial_context): ... this.
42799 (grub_env_var_context): Renamed to ...
42800 (current_context): ... this.
42801 (grub_env_find): Look only at CURRENT_CONTEXT.
42802 (grub_env_context_open): Rewritten to copy exported variables from
42803 previous context.
42804 (grub_env_context_close): Rewritten according to the new
42805 scheme. Also, add an assertion to prevent the initial context from
42806 removed.
42807 (grub_env_insert): Removed the code for the sorted list.
42808 (grub_env_remove): Likewise.
42809 (grub_env_export): Simply mark the variable with
42810 GRUB_ENV_VAR_GLOBAL.
42811 (grub_env_set): A cosmetic change for naming consistency.
42812 (grub_env_get): Likewise.
42813 (grub_env_unset): Likewise.
42814 (grub_env_iterate): Rewritten to sort variables within this
42815 function.
42816 (grub_register_variable_hook): Fixed for naming consistency. Call
42817 grub_env_find again, only if NAME is not found at the first time.
42818 (mangle_data_slot_name): New function.
42819 (grub_env_set_data_slot): Likewise.
42820 (grub_env_get_data_slot): Likewise.
42821 (grub_env_unset_data_slot): Likewise.
42822
42823 * include/grub/env.h (grub_env_var_type): New enum.
42824 (GRUB_ENV_VAR_LOCAL): New constant.
42825 (GRUB_ENV_VAR_GLOBAL): Likewise.
42826 (GRUB_ENV_VAR_DATA): Likewise.
42827 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
42828 "type".
42829 (grub_env_set): Replace VAR with NAME for consistency.
42830 (grub_register_variable_hook): Likewise.
42831 (grub_env_export): Specify the name of the argument.
42832 (grub_env_set_data_slot): New prototype.
42833 (grub_env_get_data_slot): Likewise.
42834 (grub_env_unset_data_slot): Likewise.
42835
42836 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42837
42838 Extend the loader so that GRUB can accept a loader which comes
42839 back to GRUB when a loaded image exits. Also, this change adds
42840 support for a chainloader on EFI.
42841
42842 * term/efi/console.c: Include grub/misc.h.
42843 (grub_console_checkkey): Display a scan code on the top for
42844 debugging. This will be removed once the EFI port gets stable.
42845 Correct the scan code mapping.
42846
42847 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
42848 allocate memory from larger regions, in order to reduce the number
42849 of allocated regions. Otherwise, the MacOSX loader panics.
42850 (filter_memory_map): Avoid less than 1MB for compatibility with
42851 other loaders.
42852 (add_memory_regions): Allocate from the tail of a region, if
42853 possible, to avoid allocating a region near to 1MB, for the MacOSX
42854 loader.
42855
42856 * kern/efi/init.c (grub_efi_set_prefix): Specify
42857 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
42858
42859 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
42860 argument IMAGE_HANDLE and specify it to get a loaded image.
42861 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
42862 grub_efi_get_loaded_image.
42863 (grub_efi_get_filename): Divide the length by the size of
42864 grub_efi_char16_t.
42865 (grub_efi_get_device_path): New function.
42866 (grub_efi_print_device_path): Print End Device Path nodes. Divide
42867 the length by the size of grub_efi_char16_t for a file path device
42868 path node.
42869
42870 * kern/loader.c (grub_loader_noreturn): New variable.
42871 (grub_loader_set): Accept a new argument NORETURN. Set
42872 GRUB_LOADER_NORETURN to NORETURN.
42873 All callers changed.
42874 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
42875 grub_machine_fini.
42876
42877 * include/grub/efi/efi.h (grub_efi_get_device_path): New
42878 prototype.
42879 (grub_efi_get_loaded_image): Take an argument to specify an image
42880 handle.
42881
42882 * include/grub/loader.h (grub_loader_set): Added one more argument
42883 NORETURN.
42884
42885 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
42886 instead of grub_efi_open_protocol.
42887 (grub_efidisk_get_device_name): Likewise.
42888 (grub_efidisk_close): Print a newline.
42889 (grub_efidisk_get_device_handle): Fixed to use
42890 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
42891 GRUB_EFI_DEVICE_PATH_TYPE.
42892
42893 * disk/efi/efidisk.c (device_path_guid): Moved to ...
42894 * kern/efi/efi.c (device_path_guid): ... here.
42895
42896 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
42897 chain.mod.
42898 (kernel_mod_HEADERS): Added efi/disk.h.
42899 (_chain_mod_SOURCES): New variable.
42900 (_chain_mod_CFLAGS): Likewise.
42901 (_chain_mod_LDFLAGS): Likewise.
42902 (chain_mod_SOURCES): Likewise.
42903 (chain_mod_CFLAGS): Likewise.
42904 (chain_mod_LDFLAGS): Likewise.
42905
42906 * DISTLIST: Added include/grub/efi/chainloader.h,
42907 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
42908
42909 * include/grub/efi/chainloader.h: New file.
42910 * loader/efi/chainloader.c: Likewise.
42911 * loader/efi/chainloader_normal.c: Likewise.
42912
42913 2006-04-30 Marco Gerards <marco@gnu.org>
42914
42915 * commands/configfile.c (grub_cmd_source): New function.
42916 (GRUB_MOD_INIT): Register the commands `source' and `.'.
42917 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
42918
42919 2006-04-30 Marco Gerards <marco@gnu.org>
42920
42921 * normal/execute.c (grub_script_execute_cmd): Change the return
42922 type to `grub_err_t'. Correctly return the error.
42923 (grub_script_execute_cmdline): In case a command line is not a
42924 command or a function, try to interpret it as an assignment.
42925
42926 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42927
42928 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
42929 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
42930 skip a node whose name is obviously invalid as UTF-16,
42931 i.e. contains a NUL character. Stop the iteration when the last
42932 directory entry is found. Instead of using the return value of
42933 grub_hfsplus_btree_iterate_node, store the value in RET and use
42934 it, because the iterator can be stopped by the last directory
42935 entry.
42936
42937 2006-04-30 Marco Gerards <marco@gnu.org>
42938
42939 * include/grub/env.h (grub_env_export): New prototype. Reported
42940 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
42941
42942 2006-04-30 Marco Gerards <marco@gnu.org>
42943
42944 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
42945 size of the extents in a catalog file record.
42946
42947 2006-04-29 Marco Gerards <marco@gnu.org>
42948
42949 * commands/configfile.c (grub_cmd_configfile): Execute the
42950 configfile within its own context.
42951
42952 * include/grub/env.h (grub_env_context_open): New prototype.
42953 (grub_env_context_close): Likewise.
42954
42955 * kern/env.c (grub_env): Removed.
42956 (grub_env_sorted): Likewise.
42957 (grub_env_context): New variable.
42958 (grub_env_var_context): Likewise.
42959 (grub_env_find): Search both the active context and the global
42960 context.
42961 (grub_env_context_open): New function.
42962 (grub_env_context_close): Likewise.
42963 (grub_env_insert): Likewise.
42964 (grub_env_remove): Likewise.
42965 (grub_env_export): Likewise.
42966 (grub_env_set): Changed to use helper functions to avoid code
42967 duplication.
42968 (grub_env_iterate): Rewritten so both the current context and the
42969 global context are being used.
42970
42971 * normal/command.c (export_command): New function.
42972 (grub_command_init): Register the `export' function.
42973
42974 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
42975
42976 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
42977 explicitly to suppress gcc's warnings.
42978 * fs/fat.c (grub_fat_find_dir): Likewise.
42979 (grub_fat_label): Likewise.
42980 * fs/xfs.c (grub_xfs_read_inode): Likewise.
42981 (grub_xfs_mount): Likewise.
42982 (grub_xfs_label): Likewise.
42983 * fs/affs.c (grub_affs_mount): Likewise.
42984 (grub_affs_label): Likewise.
42985 (grub_affs_iterate_dir): Likewise.
42986 * fs/sfs.c (grub_sfs_mount): Likewise.
42987 (grub_sfs_iterate_dir): Likewise.
42988 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
42989 * fs/hfs.c (grub_hfs_mount): Likewise.
42990 (grub_hfs_cmp_catkeys): Likewise.
42991 (grub_hfs_find_dir): Likewise.
42992 (grub_hfs_dir): Likewise.
42993 (grub_hfs_label): Likewise.
42994 * fs/jfs.c (grub_jfs_mount): Likewise.
42995 (grub_jfs_opendir): Likewise.
42996 (grub_jfs_getent): Likewise.
42997 (grub_jfs_lookup_symlink): Likewise.
42998 (grub_jfs_label): Likewise.
42999 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
43000 (grub_hfsplus_iterate_dir): Likewise.
43001 (grub_hfsplus_btree_iterate_node): Made static.
43002
43003 * util/grub-emu.c (prefix): New variable.
43004 (grub_machine_set_prefix): New function.
43005 (main): Do not set the environment variable "prefix" here. Only
43006 set PREFIX, which is used later by grub_machine_set_prefix.
43007
43008 * include/grub/video.h: Do not include grub/symbol.h.
43009 (grub_video_register): Not exported. This symbol is not defined in
43010 the kernel.
43011 (grub_video_unregister): Likewise.
43012 (grub_video_iterate): Likewise.
43013 (grub_video_setup): Likewise.
43014 (grub_video_restore): Likewise.
43015 (grub_video_get_info): Likewise.
43016 (grub_video_get_blit_format): Likewise.
43017 (grub_video_set_palette): Likewise.
43018 (grub_video_get_palette): Likewise.
43019 (grub_video_set_viewport): Likewise.
43020 (grub_video_get_viewport): Likewise.
43021 (grub_video_map_color): Likewise.
43022 (grub_video_map_rgb): Likewise.
43023 (grub_video_map_rgba): Likewise.
43024 (grub_video_fill_rect): Likewise.
43025 (grub_video_blit_glyph): Likewise.
43026 (grub_video_blit_bitmap): Likewise.
43027 (grub_video_blit_render_target): Likewise.
43028 (grub_video_scroll): Likewise.
43029 (grub_video_swap_buffers): Likewise.
43030 (grub_video_create_render_target): Likewise.
43031 (grub_video_delete_render_target): Likewise.
43032 (grub_video_set_active_render_target): Likewise.
43033
43034 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
43035 Undefined.
43036 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
43037
43038 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
43039 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43040 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43041 instead of $(srcdir)/genkernsyms.sh.
43042
43043 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
43044 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43045 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43046 instead of $(srcdir)/genkernsyms.sh.
43047
43048 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
43049 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43050 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43051 instead of $(srcdir)/genkernsyms.sh.
43052
43053 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
43054 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43055 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43056 instead of $(srcdir)/genkernsyms.sh.
43057
43058 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
43059 genkernsyms.sh.
43060
43061 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
43062 genkernsyms.sh.
43063 (gensymlist.sh): New target.
43064 (genkernsyms.sh): Likewise.
43065
43066 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
43067 genkernsyms.sh.in and gensymlist.sh.in.
43068
43069 * genkernsyms.sh: Removed.
43070 * gensymlist.sh: Likewise.
43071
43072 * genkernsyms.sh.in: New file.
43073 * gensymlist.sh.in: Likewise.
43074
43075 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43076
43077 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
43078 clobber "prefix", since we may have already set it manually.
43079
43080 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43081
43082 * kern/misc.c (abort): New alias for grub_abort.
43083
43084 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
43085
43086 A new machine-specific function "grub_machine_set_prefix" is
43087 defined. This is called after loading modules, so that a prefix
43088 initialization can use modules. Also, this change adds an
43089 intensive debugging feature for the memory manager via the
43090 configure option "--enable-mm-debug".
43091
43092 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
43093 PART.LEN.
43094
43095 * kern/sparc64/ieee1275/init.c (abort): Removed.
43096 (grub_stop): Likewise.
43097 (grub_exit): New function.
43098 (grub_set_prefix): Renamed to ...
43099 (grub_machine_set_prefix): ... this.
43100 (grub_machine_init): Do not call grub_set_prefix.
43101
43102 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
43103 (grub_machine_set_prefix): ... this.
43104 (grub_machine_init): Do not call grub_set_prefix.
43105
43106 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
43107 (grub_machine_init): Do not set the prefix here.
43108
43109 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
43110
43111 * kern/efi/init.c: Include grub/mm.h.
43112 (grub_efi_set_prefix): New function.
43113
43114 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
43115 (grub_efi_get_filename): New function.
43116 (grub_print_device_path): Renamed to ...
43117 (grub_efi_print_device_path): ... this.
43118
43119 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
43120 [MM_DEBUG] (grub_realloc): Likewise.
43121 [MM_DEBUG] (grub_free): Likewise.
43122 [MM_DEBUG] (grub_memalign): Likewise.
43123 [MM_DEBUG] (grub_mm_debug): New variable.
43124 [MM_DEBUG] (grub_debug_malloc): New function.
43125 [MM_DEBUG] (grub_debug_free): New function.
43126 [MM_DEBUG] (grub_debug_realloc): New function.
43127 [MM_DEBUG] (grub_debug_memalign): New function.
43128
43129 * kern/misc.c (grub_abort): Print a newline to distinguish
43130 the message.
43131
43132 * kern/main.c (grub_main): Call grub_machine_set_prefix and
43133 grub_set_root_dev after loading modules. This is necessary when
43134 setting a prefix depends on modules.
43135
43136 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
43137 (grub_efi_print_device_path): ... this.
43138 (grub_efi_get_filename): New prototype.
43139 (grub_efi_set_prefix): Likewise.
43140
43141 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
43142 and grub/disk.h.
43143 (grub_efidisk_get_device_handle): New prototype.
43144 (grub_efidisk_get_device_name): Likewise.
43145
43146 * include/grub/mm.h: Include config.h.
43147 (MM_DEBUG): Removed.
43148 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
43149 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
43150 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
43151 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
43152 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
43153 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
43154 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
43155 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
43156 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
43157
43158 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
43159
43160 * disk/efi/efidisk.c: Include grub/partition.h.
43161 (iterate_child_devices): New function.
43162 (add_device): First, compare only last device path nodes, so that
43163 devices are sorted by the types.
43164 (grub_efidisk_get_device_handle): New function.
43165 (grub_efidisk_get_device_name): Likewise.
43166
43167 * configure.ac (--enable-mm-debug): New option to enable the
43168 memory manager debugging feature. This makes the binary much
43169 bigger, so is disabled by default.
43170
43171 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
43172
43173 Use grub_abort instead of grub_stop, and grub_exit must be
43174 define in each architecture now. Also, this change adds support
43175 for EFI disks.
43176
43177 * util/i386/pc/grub-probefs.c: Include grub/term.h.
43178 (grub_getkey): New function.
43179 (grub_term_get_current): Likewise.
43180
43181 * util/i386/pc/grub-setup.c: Include grub/term.h.
43182 (grub_getkey): New function.
43183 (grub_term_get_current): Likewise.
43184
43185 * util/misc.c (grub_stop): Renamed to ...
43186 (grub_exit): ... this.
43187
43188 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
43189 (grub_exit): ... this.
43190 (grub_machine_init): Use grub_abort instead of abort.
43191 (grub_stop): Removed.
43192
43193 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
43194 abort.
43195
43196 * kern/i386/pc/startup.S (grub_exit): New function.
43197 (cold_reboot): New label.
43198
43199 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
43200 (grub_efi_init): Call grub_efidisk_init.
43201 (grub_efi_fini): Call grub_efidisk_fini.
43202
43203 * kern/efi/efi.c: Include grub/mm.h.
43204 (grub_efi_console_control_guid): Renamed to ...
43205 (console_control_guid): ... this.
43206 (grub_efi_loaded_image_guid): Renamed to ...
43207 (loaded_image_guid): ... this.
43208 (grub_efi_locate_handle): New function.
43209 (grub_efi_open_protocol): Likewise.
43210 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
43211 GRUB_EFI_CONSOLE_CONTROL_GUID.
43212 (grub_efi_exit): Removed.
43213 (grub_stop): Likewise.
43214 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
43215 (grub_exit): New function.
43216 (grub_print_device_path): Likewise.
43217
43218 * kern/rescue.c (grub_rescue_cmd_exit): New function.
43219 (grub_enter_rescue_mode): Register "exit".
43220
43221 * kern/misc.c (grub_real_dprintf): A cosmetic change.
43222 (grub_abort): New function.
43223
43224 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
43225
43226 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
43227
43228 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
43229
43230 * include/grub/efi/efi.h (grub_efi_exit): Removed.
43231 (grub_print_device_path): New prototype.
43232 (grub_efi_locate_handle): Likewise.
43233 (grub_efi_open_protocol): Likewise.
43234
43235 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
43236 * disk/efi/efidisk.c: Likewise.
43237
43238 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
43239
43240 * include/grub/efi/console_control.h
43241 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
43242
43243 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
43244 last 8 bytes as an array.
43245 (GRUB_EFI_DISK_IO_GUID): New macro.
43246 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
43247 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
43248 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
43249 grub_uint8_t.
43250 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
43251 (struct grub_efi_device_path): Rename the member "sub_type" to
43252 "subtype".
43253 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
43254 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
43255 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
43256 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
43257 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
43258 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
43259 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
43260 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
43261 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
43262 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
43263 (struct grub_efi_pci_device_path): New structure.
43264 (grub_efi_pci_device_path_t): New type.
43265 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
43266 (struct grub_efi_pccard_device_path): New structure.
43267 (grub_efi_pccard_device_path_t): New type.
43268 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
43269 (struct grub_efi_memory_mapped_device_path): New structure.
43270 (grub_efi_memory_mapped_device_path_t): New type.
43271 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
43272 (struct grub_efi_vendor_device_path): New structure.
43273 (grub_efi_vendor_device_path_t): New type.
43274 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
43275 (struct grub_efi_controller_device_path): New structure.
43276 (grub_efi_controller_device_path_t): New type.
43277 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
43278 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
43279 (struct grub_efi_acpi_device_path): New structure.
43280 (grub_efi_acpi_device_path_t): New type.
43281 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
43282 (struct grub_efi_expanded_acpi_device_path): New structure.
43283 (grub_efi_expanded_acpi_device_path_t): New type.
43284 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
43285 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
43286 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
43287 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
43288 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
43289 (struct grub_efi_atapi_device_path): New structure.
43290 (grub_efi_atapi_device_path_t): New type.
43291 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
43292 (struct grub_efi_fibre_channel_device_path): New structure.
43293 (grub_efi_fibre_channel_device_path_t): New type.
43294 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
43295 (struct grub_efi_1394_device_path): New structure.
43296 (grub_efi_1394_device_path_t): New type.
43297 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
43298 (struct grub_efi_usb_device_path): New structure.
43299 (grub_efi_usb_device_path_t): New type.
43300 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
43301 (struct grub_efi_usb_class_device_path): New structure.
43302 (grub_efi_usb_class_device_path_t): New type.
43303 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
43304 (struct grub_efi_i2o_device_path): New structure.
43305 (grub_efi_i2o_device_path_t): New type.
43306 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
43307 (struct grub_efi_mac_address_device_path): New structure.
43308 (grub_efi_mac_address_device_path_t): New type.
43309 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
43310 (struct grub_efi_ipv4_device_path): New structure.
43311 (grub_efi_ipv4_device_path_t): New type.
43312 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
43313 (struct grub_efi_ipv6_device_path): New structure.
43314 (grub_efi_ipv6_device_path_t): New type.
43315 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
43316 (struct grub_efi_infiniband_device_path): New structure.
43317 (grub_efi_infiniband_device_path_t): New type.
43318 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
43319 (struct grub_efi_uart_device_path): New structure.
43320 (grub_efi_uart_device_path_t): New type.
43321 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
43322 (struct grub_efi_vendor_messaging_device_path): New structure.
43323 (grub_efi_vendor_messaging_device_path_t): New type.
43324 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
43325 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
43326 (struct grub_efi_hard_drive_device_path): New structure.
43327 (grub_efi_hard_drive_device_path_t): New type.
43328 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
43329 (struct grub_efi_cdrom_device_path): New structure.
43330 (grub_efi_cdrom_device_path_t): New type.
43331 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
43332 (struct grub_efi_vendor_media_device_path): New structure.
43333 (grub_efi_vendor_media_device_path_t): New type.
43334 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
43335 (struct grub_efi_file_path_device_path): New structure.
43336 (grub_efi_file_path_device_path_t): New type.
43337 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
43338 (struct grub_efi_protocol_device_path): New structure.
43339 (grub_efi_protocol_device_path_t): New type.
43340 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
43341 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
43342 (struct grub_efi_bios_device_path): New structure.
43343 (grub_efi_bios_device_path_t): New type.
43344 (struct grub_efi_disk_io): New structure.
43345 (grub_efi_disk_io_t): New type.
43346 (struct grub_efi_block_io_media): New structure.
43347 (grub_efi_block_io_media_t): New type.
43348 (struct grub_efi_block_io): New structure.
43349 (grub_efi_block_io_t): New type.
43350
43351 * include/grub/misc.h (grub_stop): Removed.
43352 (grub_exit): New prototype.
43353 (grub_abort): Likewise.
43354
43355 * include/grub/disk.h (enum grub_disk_dev_id): Added
43356 GRUB_DISK_DEVICE_EFIDISK_ID.
43357
43358 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
43359 disk/efi/efidisk.c.
43360 (kernel_syms.lst): Remove the target if an error occurs.
43361
43362 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
43363
43364 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
43365 as it was simply too buggy.
43366
43367 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
43368
43369 * kern/misc.c (grub_lltoa): New function.
43370 (grub_vsprintf): Added support for the long long suffix,
43371 i.e. "ll".
43372
43373 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
43374
43375 * Makefile.in (LDFLAGS): Add variable.
43376 (LD): Remove variable.
43377 * configure.ac: Add -m32 to LDFLAGS.
43378 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
43379 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
43380 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
43381 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
43382 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
43383 variables.
43384 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
43385 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
43386 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
43387
43388 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
43389
43390 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
43391 length for unknown glyph.
43392
43393 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43394
43395 Add support for pre-loaded modules into the EFI port.
43396
43397 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
43398 completely. Accept one more argument DIR. The caller has changed.
43399
43400 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
43401
43402 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
43403 (grub_efi_loaded_image_guid): New variable.
43404 (grub_efi_get_loaded_image): New function.
43405 (grub_arch_modules_addr): Likewise.
43406
43407 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
43408 prototype.
43409
43410 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
43411 (struct grub_efi_loaded_image): New structure.
43412 (grub_efi_loaded_image_t): New type.
43413
43414 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43415
43416 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
43417 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
43418 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
43419
43420 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
43421
43422 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
43423
43424 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
43425
43426 * DISTLIST: Added include/grub/efi/console.h,
43427 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
43428 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43429
43430 * include/grub/efi/console.h: New file.
43431 * include/grub/efi/time.h: Likewise.
43432 * include/grub/i386/efi/kernel.h: Likewise.
43433 * kern/efi/init.c: Likewise.
43434 * kern/efi/mm.c: Likewise.
43435 * term/efi/console.c: Likewise.
43436
43437 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
43438 (grub_stop): Removed.
43439 (grub_get_rtc): Likewise.
43440 (grub_machine_init): Simply call grub_efi_init.
43441 (grub_machine_fini): Call grub_efi_fini.
43442
43443 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
43444 (grub_efi_output_string): Removed.
43445 (grub_efi_stall): New function.
43446 (grub_stop): Likewise.
43447 (grub_get_rtc): Likewise.
43448
43449 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
43450 (grub_efi_stall): New prototype.
43451 (grub_efi_allocate_pages): Likewise.
43452 (grub_efi_free_pages): Likewise.
43453 (grub_efi_get_memory_map): Likewise.
43454 (grub_efi_mm_init): Likewise.
43455 (grub_efi_mm_fini): Likewise.
43456 (grub_efi_init): Likewise.
43457 (grub_efi_fini): Likewise.
43458
43459 * include/grub/i386/efi/time.h: Do not include
43460 grub/symbol.h. Include grub/efi/time.h.
43461 (GRUB_TICKS_PER_SECOND): Removed.
43462 (grub_get_rtc): Likewise.
43463
43464 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
43465 Added padding. The EFI spec is buggy.
43466 (GRUB_EFI_BLACK): New macro.
43467 (GRUB_EFI_BLUE): Likewise.
43468 (GRUB_EFI_GREEN): Likewise.
43469 (GRUB_EFI_CYAN): Likewise.
43470 (GRUB_EFI_RED): Likewise.
43471 (GRUB_EFI_MAGENTA): Likewise.
43472 (GRUB_EFI_BROWN): Likewise.
43473 (GRUB_EFI_LIGHTGRAY): Likewise.
43474 (GRUB_EFI_BRIGHT): Likewise.
43475 (GRUB_EFI_DARKGRAY): Likewise.
43476 (GRUB_EFI_LIGHTBLUE): Likewise.
43477 (GRUB_EFI_LIGHTGREEN): Likewise.
43478 (GRUB_EFI_LIGHTCYAN): Likewise.
43479 (GRUB_EFI_LIGHTRED): Likewise.
43480 (GRUB_EFI_LIGHTMAGENTA): Likewise.
43481 (GRUB_EFI_YELLOW): Likewise.
43482 (GRUB_EFI_WHITE): Likewise.
43483 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
43484 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
43485 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
43486 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
43487 (GRUB_EFI_BACKGROUND_RED): Likewise.
43488 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
43489 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
43490 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
43491 (GRUB_EFI_TEXT_ATTR): Likewise.
43492
43493 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
43494 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43495 (kernel_mod_HEADERS): Added efi/time.h.
43496
43497 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
43498
43499 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
43500 include/grub/efi/api.h, include/grub/efi/console_control.h,
43501 include/grub/efi/efi.h, include/grub/efi/pe32.h,
43502 include/grub/i386/efi/time.h, kern/efi/efi.c,
43503 kern/i386/efi/init.c, kern/i386/efi/startup.S,
43504 and util/i386/efi/grub-mkimage.c.
43505
43506 * Makefile.in (RMKFILES): Added i386-efi.rmk.
43507
43508 * genmk.rb (PModule#rule): Do not export symbols if
43509 #{prefix}_EXPORTS is set to "no".
43510
43511 * conf/i386-efi.mk: New file.
43512 * conf/i386-efi.rmk: Likewise.
43513 * include/grub/efi/api.h: Likewise.
43514 * include/grub/efi/console_control.h: Likewise.
43515 * include/grub/efi/efi.h: Likewise.
43516 * include/grub/efi/pe32.h: Likewise.
43517 * include/grub/i386/efi/time.h: Likewise.
43518 * kern/efi/efi.c: Likewise.
43519 * kern/i386/efi/init.c: Likewise.
43520 * kern/i386/efi/startup.S: Likewise.
43521 * util/i386/efi/grub-mkimage.c: Likewise.
43522
43523 2006-04-17 Marco Gerards <marco@gnu.org>
43524
43525 * include/grub/script.h: Include <grub/parser.h> and
43526 "grub_script.tab.h".
43527 (struct grub_lexer_param): New struct.
43528 (struct grub_parser_param): Likewise.
43529 (grub_script_create_arglist): Pass the state in an argument.
43530 (grub_script_add_arglist): Likewise.
43531 (grub_script_create_cmdline): Likewise.
43532 (grub_script_create_cmdblock): Likewise.
43533 (grub_script_create_cmdif): Likewise.
43534 (grub_script_create_cmdmenu): Likewise.
43535 (grub_script_add_cmd): Likewise.
43536 (grub_script_arg_add): Likewise.
43537 (grub_script_lexer_ref): Likewise.
43538 (grub_script_lexer_deref): Likewise.
43539 (grub_script_lexer_record_start): Likewise.
43540 (grub_script_lexer_record_stop): Likewise.
43541 (grub_script_mem_record): Likewise.
43542 (grub_script_mem_record_stop): Likewise.
43543 (grub_script_malloc): Likewise.
43544 (grub_script_yylex): Likewise.
43545 (grub_script_yyparse): Likewise.
43546 (grub_script_yyerror): Likewise.
43547 (grub_script_yylex): Likewise.
43548 (grub_script_lexer_init): Return the state.
43549
43550 * normal/lexer.c (grub_script_lexer_state): Removed variable.
43551 (grub_script_lexer_done): Likewise.
43552 (grub_script_lexer_getline): Likewise.
43553 (grub_script_lexer_refs): Likewise.
43554 (script): Likewise.
43555 (newscript): Likewise.
43556 (record): Likewise.
43557 (recording): Likewise.
43558 (recordpos): Likewise.
43559 (recordlen): Likewise.
43560 (grub_script_lexer_init): Return the state instead of setting
43561 global variables.
43562 (grub_script_lexer_ref): Use the newly added argument for state
43563 instead of globals.
43564 (grub_script_lexer_deref): Likewise.
43565 (grub_script_lexer_record_start): Likewise.
43566 (grub_script_lexer_record_stop): Likewise.
43567 (recordchar): Likewise.
43568 (nextchar): Likewise.
43569 (grub_script_yylex2): Likewise.
43570 (grub_script_yylex): Likewise.
43571 (grub_script_yyerror): Likewise.
43572
43573 * normal/parser.y (func_mem): Removed variable.
43574 (menu_entry): Likewise.
43575 (err): Likewise.
43576 (%lex-param): New parser option.
43577 (%parse-param): Likewise.
43578 (script): Always return the AST.
43579 (argument): Pass the state around.
43580 (arguments): Likewise.
43581 (grubcmd): Likewise.
43582 (commands): Likewise.
43583 (function): Likewise.
43584 (menuentry): Likewise.
43585 (if_statement): Likewise.
43586 (if): Likewise.
43587
43588 * normal/script.c (grub_script_memused): Removed variable.
43589 (grub_script_parsed): Likewise.
43590 (grub_script_malloc): Added a state argument. Use that instead of
43591 global variables.
43592 (grub_script_mem_record): Likewise.
43593 (grub_script_mem_record_stop): Likewise.
43594 (grub_script_arg_add): Likewise.
43595 (grub_script_add_arglist): Likewise.
43596 (grub_script_create_cmdline): Likewise.
43597 (grub_script_create_cmdif): Likewise.
43598 (grub_script_create_cmdmenu): Likewise.
43599 (grub_script_add_cmd): Likewise.
43600 (grub_script_parse): Setup the state before calling the parser.
43601
43602 2006-04-16 Marco Gerards <marco@gnu.org>
43603
43604 * normal/command.c (grub_command_init): Remove the title command.
43605
43606 * normal/lexer.c (grub_script_yylex): Renamed from this...
43607 (grub_script_yylex2): ... to this.
43608 (grub_script_yylex): New function. Temporary
43609 introduced to filter some tokens.
43610 (grub_script_yyerror): Print a newline.
43611
43612 * normal/main.c (read_config_file): Output information about the
43613 lines that contain errors. Wait for a key after all lines have
43614 been processed. Don't return an empty menu.
43615
43616 * normal/parser.y (func_mem): Don't initialize.
43617 (menu_entry): Likewise.
43618 (err): New variable.
43619 (script): Don't return anything when an error was encountered.
43620 (ws, returns): Removed rules.
43621 (argument): Disabled concatenated variable support.
43622 (arguments): Remove explicit separators.
43623 (grubcmd): Likewise.
43624 (function): Likewise.
43625 (menuentry): Likewise.
43626 (if): Likewise.
43627 (commands): Likewise. Add error handling.
43628
43629 * normal/script.c (grub_script_create_cmdline): If
43630 `grub_script_parsed' is 0, assume the parser encountered an error.
43631
43632 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
43633
43634 * configure.ac: Add support for EFI. Fix the typo
43635 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
43636
43637 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43638
43639 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
43640 foreign multibyte characters should be shown correctly.
43641
43642 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43643
43644 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
43645 calculation.
43646 (read_config_file): Made it to close file before returning.
43647
43648 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
43649
43650 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
43651 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
43652 video/i386/pc/vbefill.c.
43653
43654 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
43655 video/i386/pc/vbefill.c.
43656
43657 * include/grub/video.h (grub_video_blit_format): New enum.
43658 (grub_video_mode_info): Added new member blit_format.
43659 (grub_video_get_blit_format): New function prototype.
43660
43661 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
43662 function prototype.
43663 (grub_video_vbe_map_rgb): Likewise.
43664 (grub_video_vbe_unmap_color): Likewise.
43665
43666 * include/grub/i386/pc/vbeblit.h: New file.
43667
43668 * include/grub/i386/pc/vbefill.h: New file.
43669
43670 * video/video.c (grub_video_get_blit_format): New function.
43671 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
43672 (grub_video_vbe_map_rgb): Likewise.
43673 (grub_video_vbe_unmap_color): Likewise.
43674
43675 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
43676 optimized fills.
43677 (grub_video_vbe_blit_render_target): Changed to use more optimized
43678 blits.
43679 (grub_video_vbe_setup): Added detection for optimized settings.
43680 (grub_video_vbe_create_render_target): Likewise.
43681
43682 * video/i386/pc/vbeblit.c: New file.
43683
43684 * video/i386/pc/vbefill.c: New file.
43685
43686 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
43687
43688 * font/manager.c (grub_font_get_glyph): Removed font fixup from
43689 here...
43690
43691 * util/unifont2pff.rb: ... and moved it to here. Improved argument
43692 parsing to support both hex and dec ranges. If filename was missing
43693 show usage information.
43694
43695 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
43696
43697 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
43698 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
43699
43700 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
43701 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
43702 (video_mod_SOURCES): Added.
43703 (video_mod_CFLAGS): Likewise.
43704 (video_mod_LDFLAGS): Likewise.
43705 (gfxterm_mod_SOURCES): Likewise.
43706 (gfxterm_mod_CFLAGS): Likewise.
43707 (gfxterm_mod_LDFLAGS): Likewise.
43708 (videotest_mod_SOURCES): Likewise.
43709 (videotest_mod_CFLAGS): Likewise.
43710 (videotest_mod_LDFLAGS): Likewise.
43711 (vesafb_mod_SOURCES): Removed.
43712 (vesafb_mod_CFLAGS): Likewise.
43713 (vesafb_mod_LDFLAGS): Likewise.
43714 (vga_mod_SOURCES): Likewise.
43715 (vga_mod_CFLAGS): Likewise.
43716 (vga_mod_LDFLAGS): Likewise.
43717
43718 * commands/videotest.c: New file.
43719
43720 * font/manager.c (fill_with_default_glyph): Modified to use
43721 grub_font_glyph.
43722 (grub_font_get_glyph): Likewise.
43723 (fontmanager): Renamed from this...
43724 (font_manager): ... to this.
43725
43726 * include/grub/font.h (grub_font_glyph): Added new structure.
43727 (grub_font_get_glyph): Modified to use grub_font_glyph.
43728
43729 * include/grub/misc.h (grub_abs): Added as inline function.
43730
43731 * include/grub/video.h: New file.
43732
43733 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
43734 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
43735 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
43736 (grub_vbe_get_controller_info): Renamed from this...
43737 (grub_vbe_bios_get_controller_info): ... to this.
43738 (grub_vbe_get_mode_info): Renamed from this...
43739 (grub_vbe_bios_get_mode_info): ... to this.
43740 (grub_vbe_set_mode): Renamed from this...
43741 (grub_vbe_bios_set_mode): ... to this.
43742 (grub_vbe_get_mode): Renamed from this...
43743 (grub_vbe_bios_get_mode): ... to this.
43744 (grub_vbe_set_memory_window): Renamed from this...
43745 (grub_vbe_bios_set_memory_window): ... to this.
43746 (grub_vbe_get_memory_window): Renamed from this...
43747 (grub_vbe_bios_get_memory_window): ... to this.
43748 (grub_vbe_set_scanline_length): Renamed from this...
43749 (grub_vbe_set_scanline_length): ... to this.
43750 (grub_vbe_get_scanline_length): Renamed from this...
43751 (grub_vbe_bios_get_scanline_length): ... to this.
43752 (grub_vbe_set_display_start): Renamed from this...
43753 (grub_vbe_bios_set_display_start): ... to this.
43754 (grub_vbe_get_display_start): Renamed from this...
43755 (grub_vbe_bios_get_display_start): ... to this.
43756 (grub_vbe_set_palette_data): Renamed from this...
43757 (grub_vbe_bios_set_palette_data): ... to this.
43758 (grub_vbe_set_pixel_rgb): Removed.
43759 (grub_vbe_set_pixel_index): Likewise.
43760
43761 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
43762 from this...
43763 (grub_vbe_bios_get_controller_info): ... to this.
43764 (grub_vbe_get_mode_info): Renamed from this...
43765 (grub_vbe_bios_get_mode_info): ... to this.
43766 (grub_vbe_set_mode): Renamed from this...
43767 (grub_vbe_bios_set_mode): ... to this.
43768 (grub_vbe_get_mode): Renamed from this...
43769 (grub_vbe_bios_get_mode): ... to this.
43770 (grub_vbe_set_memory_window): Renamed from this...
43771 (grub_vbe_bios_set_memory_window): ... to this.
43772 (grub_vbe_get_memory_window): Renamed from this...
43773 (grub_vbe_bios_get_memory_window): ... to this.
43774 (grub_vbe_set_scanline_length): Renamed from this...
43775 (grub_vbe_set_scanline_length): ... to this.
43776 (grub_vbe_get_scanline_length): Renamed from this...
43777 (grub_vbe_bios_get_scanline_length): ... to this.
43778 (grub_vbe_set_display_start): Renamed from this...
43779 (grub_vbe_bios_set_display_start): ... to this.
43780 (grub_vbe_get_display_start): Renamed from this...
43781 (grub_vbe_bios_get_display_start): ... to this.
43782 (grub_vbe_set_palette_data): Renamed from this...
43783 (grub_vbe_bios_set_palette_data): ... to this.
43784 (grub_vbe_bios_get_controller_info): Fixed problem with registers
43785 getting corrupted after calling it. Added more pushes and pops.
43786 (grub_vbe_bios_set_mode): Likewise.
43787 (grub_vbe_bios_get_mode): Likewise.
43788 (grub_vbe_bios_get_memory_window): Likewise.
43789 (grub_vbe_bios_set_scanline_length): Likewise.
43790 (grub_vbe_bios_get_scanline_length): Likewise.
43791 (grub_vbe_bios_get_display_start): Likewise.
43792 (grub_vbe_bios_set_palette_data): Likewise.
43793
43794 * normal/cmdline.c (cl_set_pos): Refresh the screen.
43795 (cl_insert): Likewise.
43796 (cl_delete): Likewise.
43797
43798 * term/gfxterm.c: New file.
43799
43800 * term/i386/pc/vesafb.c: Removed file.
43801
43802 * video/video.c: New file.
43803
43804 * video/i386/pc/vbe.c (real2pm): Added new function.
43805 (grub_video_vbe_draw_pixel): Likewise.
43806 (grub_video_vbe_get_video_ptr): Likewise.
43807 (grub_video_vbe_get_pixel): Likewise
43808 (grub_video_vbe_init): Likewise.
43809 (grub_video_vbe_fini): Likewise.
43810 (grub_video_vbe_setup): Likewise.
43811 (grub_video_vbe_get_info): Likewise.
43812 (grub_video_vbe_set_palette): Likewise.
43813 (grub_video_vbe_get_palette): Likewise.
43814 (grub_video_vbe_set_viewport): Likewise.
43815 (grub_video_vbe_get_viewport): Likewise.
43816 (grub_video_vbe_map_color): Likewise.
43817 (grub_video_vbe_map_rgb): Likewise.
43818 (grub_video_vbe_map_rgba): Likewise.
43819 (grub_video_vbe_unmap_color): Likewise.
43820 (grub_video_vbe_fill_rect): Likewise.
43821 (grub_video_vbe_blit_glyph): Likewise.
43822 (grub_video_vbe_blit_bitmap): Likewise.
43823 (grub_video_vbe_blit_render_target): Likewise.
43824 (grub_video_vbe_scroll): Likewise.
43825 (grub_video_vbe_swap_buffers): Likewise.
43826 (grub_video_vbe_create_render_target): Likewise.
43827 (grub_video_vbe_delete_render_target): Likewise.
43828 (grub_video_vbe_set_active_render_target): Likewise.
43829 (grub_vbe_set_pixel_rgb): Remove function.
43830 (grub_vbe_set_pixel_index): Likewise.
43831 (index_color_mode): Remove static variable.
43832 (active_mode): Likewise.
43833 (framebuffer): Likewise.
43834 (bytes_per_scan_line): Likewise.
43835 (grub_video_vbe_adapter): Added new static variable.
43836 (framebuffer): Likewise.
43837 (render_target): Likewise.
43838 (initial_mode): Likewise.
43839 (mode_in_use): Likewise.
43840 (mode_list): Likewise.
43841
43842 2006-03-10 Marco Gerards <marco@gnu.org>
43843
43844 * configure.ac (AC_INIT): Bumped to 1.93.
43845
43846 * DISTLIST: Added `include/grub/hfs.h'.
43847
43848 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
43849
43850 * boot/i386/pc/boot.S (general_error): Before looping, try INT
43851 18H, which might help the BIOS falling back to next boot media.
43852
43853 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
43854
43855 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
43856 Poe Chen <poe.poechen@gmail.com>.
43857
43858 2006-01-17 Marco Gerards <marco@gnu.org>
43859
43860 * include/grub/normal.h: Include <grub/script.h>.
43861 (grub_command_list): Removed struct.
43862 (grub_command_list_t): Removed type.
43863 (grub_menu_entry): Remove members `num' and `command_list'. Add
43864 members `commands' and `sourcecode'.
43865 * include/grub/script.h: Add inclusion guards.
43866 (grub_script_cmd_menuentry): New struct.
43867 (grub_script_execute_menuentry): New prototype.
43868 (grub_script_lexer_record_start): Likewise.
43869 (grub_script_lexer_record_stop): Likewise.
43870 * normal/execute.c (grub_script_execute_menuentry): New function.
43871 * normal/lexer.c (record, recording, recordpos, recordlen): New
43872 variables.
43873 (grub_script_lexer_record_start): New function.
43874 (grub_script_lexer_record_stop): Likewise.
43875 (recordchar): Likewise.
43876 (nextchar): Likewise.
43877 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
43878 2048 as the buffer size. Add the tokens `menuentry' and `@'.
43879 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
43880 (current_menu): New variable.
43881 (free_menu): Mainly rewritten.
43882 (grub_normal_menu_addentry): New function.
43883 (read_config_file): Rewritten.
43884 * normal/menu.c (run_menu_entry): Mainly rewritten.
43885 * normal/menu_entry.c (make_screen): Rewritten the code to insert
43886 the menu entry.
43887 (run): Mainly rewritten.
43888 * normal/parser.y (menu_entry): New variable.
43889 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
43890 (menuentry): New rule.
43891 (command): Add `menuentry'.
43892 (if_statement): Allow additional returns before `fi'.
43893 * normal/script.c (grub_script_create_cmdmenu): New function.
43894
43895 2006-01-03 Marco Gerards <marco@gnu.org>
43896
43897 * INSTALL: GNU Bison is required.
43898 * configure.ac: Rewritten the test to detect Bison.
43899 * Makefile.in (YACC): New variable. Reported by Xun Sun
43900 <xun.sun.cn@gmail.com>.
43901
43902 2006-01-03 Marco Gerards <marco@gnu.org>
43903
43904 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
43905 the HFS+ filesystem to filesystem blocks.
43906 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
43907 GCC warning is silenced.
43908
43909 2006-01-03 Marco Gerards <marco@gnu.org>
43910
43911 * partmap/apple.c (apple_partition_map_iterate): Convert the data
43912 read from disk from big endian to host byte order.
43913
43914 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
43915
43916 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
43917 documentation.
43918 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
43919 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
43920 embedded HFS+ filesystem.
43921 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
43922 (grub_hfs_sblock): Move from here...
43923 * include/grub/hfs.h: To here... New file.
43924 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
43925 documentation.
43926 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
43927 New macros.
43928 (grub_hfsplus_volheader): Change type of member `magic' to
43929 `grub_uint16_t'.
43930 (grub_hfsplus_data): Add new member `embedded_offset'.
43931 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
43932 returned block.
43933 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
43934 Calculate the offset.
43935
43936 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43937
43938 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
43939 Removed.
43940 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
43941
43942 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43943
43944 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
43945 ENV->NAME is NULL after allocating ENV->VALUE.
43946
43947 2005-12-25 Marco Gerards <marco@gnu.org>
43948
43949 * kern/env.c (grub_env_set): Rewritten the error handling code.
43950
43951 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43952
43953 * geninit.sh: Made more robust, and more portable.
43954
43955 2005-12-25 Marco Gerards <marco@gnu.org>
43956
43957 Add support for Apple HFS+ filesystems.
43958
43959 * fs/hfsplus.c: New file.
43960
43961 * DISTLIST: Added `fs/hfsplus.c'.
43962
43963 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
43964 (hfsplus_mod_SOURCES): New variable.
43965 (hfsplus_mod_CFLAGS): Likewise.
43966 (hfsplus_mod_LDFLAGS): Likewise.
43967 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
43968 (grub_setup_SOURCES): Likewise.
43969 (grub_mkdevicemap_SOURCES): Likewise.
43970 (grub_emu_SOURCES): Likewise.
43971 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43972
43973 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
43974
43975 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
43976
43977 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43978
43979 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
43980 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
43981 include/grub/parser.h, include/grub/script.h, kern/parser.c,
43982 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
43983 normal/lexer.c, normal/parser.y, normal/script.c, and
43984 partmap/gpt.c.
43985 Removed kern/sparc64/cache.c.
43986
43987 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
43988 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
43989 grub_emu_init.c.
43990
43991 * configure.ac (AC_INIT): Bumped to 1.92.
43992
43993 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
43994
43995 * kern/err.c (grub_error_push): Added new function to support error
43996 stacks.
43997 (grub_error_pop): Likewise.
43998 (grub_error_stack_items): New local variable to support error stacks.
43999 (grub_error_stack_pos): Likewise.
44000 (grub_error_stack_assert): Likewise.
44001 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
44002 stack depth.
44003 (grub_print_error): Added support to print errors from error stack.
44004
44005 * include/grub/err.h (grub_error_push): Added function prototype.
44006 (grub_error_pop): Likewise.
44007
44008 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
44009
44010 * configure.ac: Accept `powerpc64' as host_cpu.
44011 (amd64): Rename to `biarch32'.
44012
44013 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
44014 non-cacheline-aligned addresses.
44015
44016 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
44017 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
44018 if `size' is non-zero.
44019
44020 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
44021
44022 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
44023 and `cd' to make sure the filename is not prefixed with a
44024 directory name.
44025 (pkgdata_MODULES): Add `gpt.mod'.
44026 (gpt_mod_SOURCES): New variable.
44027 (gpt_mod_CFLAGS): Likewise.
44028 (gpt_mod_LDFLAGS): Likewise.
44029
44030 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
44031
44032 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
44033 New macro.
44034
44035 * partmap/gpt.c: New file.
44036
44037 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
44038 GPT partition map is detected.
44039
44040 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
44041
44042 * commands/i386/pc/play.c: New file.
44043 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
44044 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
44045 macros.
44046
44047 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
44048
44049 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
44050 ((unused))' to silence gcc warning.
44051
44052 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
44053
44054 * configure.ac: Correct `AC_PROG_YACC' test.
44055
44056 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44057
44058 * util/powerpc/ieee1275/grub-install.in: Run the mount point
44059 check before installing files.
44060
44061 2005-11-22 Mike Small <smallm@panix.com>
44062
44063 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
44064 number regex so multidigit numbers are recognized correctly.
44065
44066 2005-11-22 Mike Small <smallm@panix.com>
44067
44068 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
44069 debugging message before attempting to claim memory.
44070 (grub_rescue_cmd_initrd): Add a claim debugging message and try
44071 multiple addresses in case of failure.
44072
44073 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44074
44075 * term/tparm.c (get_space): Remove empty `if' statement.
44076
44077 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
44078
44079 * kern/parser.c (check_varstate): Rename `state' to 's'.
44080
44081 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44082
44083 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
44084 variable definitions to the beginning of each function. Sort stack
44085 variables by size.
44086 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
44087 `buf' argument to `char *'.
44088
44089 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44090
44091 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
44092 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
44093 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
44094 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44095 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44096 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44097 configfile.mod, search.mod, gzio.mod and test.mod.
44098 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44099 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44100 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44101 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44102 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44103 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44104 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44105 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44106 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44107 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44108 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44109 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44110 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44111 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44112 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44113 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44114 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44115 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44116 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44117 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44118 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44119 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44120 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
44121
44122 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
44123 `grep --include'.
44124 (pkgdata_MODULES): Add test.mod.
44125
44126 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44127
44128 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
44129 appending to variables with "+=".
44130 (PModule): Use full pathname to generate *.lst filenames.
44131
44132 * Makefile.in: Fixed list rules moved from genmk.rb.
44133 (.DELETE_ON_ERROR): New special target.
44134 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
44135
44136 * conf/i386-pc.rmk: Include conf/common.mk.
44137 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
44138 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
44139 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44140 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44141 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44142 configfile.mod, search.mod, gzio.mod and test.mod.
44143 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44144 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44145 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44146 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44147 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44148 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44149 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44150 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44151 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44152 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44153 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44154 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44155 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44156 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44157 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44158 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44159 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44160 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44161 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44162 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44163 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44164 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44165 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
44166 here...
44167 * conf/common.rmk: ... to here. New file.
44168
44169 * conf/common.mk: New file.
44170
44171 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
44172
44173 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
44174 (grub_script.tab.c): ... here.
44175
44176 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
44177 (grub_script.tab.c): ... here.
44178
44179 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
44180 (grub_script.tab.c): ... here.
44181
44182 * normal/command.c (grub_command_find): Fixed a memory leak of
44183 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
44184
44185 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44186
44187 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
44188 "@" which marks the start of a comment on ARM.
44189 (VARIABLE): Likewise.
44190
44191 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44192
44193 Add support for Linux/ADFS partition tables.
44194
44195 * partmap/acorn.c: New file.
44196
44197 * include/grub/acorn_filecore.h: Likewise.
44198
44199 * DISTLIST: Added `partmap/acorn.c' and
44200 `include/grub/acorn_filecore.h'.
44201
44202 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44203 `partmap/acorn.c'.
44204 (pkgdata_MODULES): Add `acorn.mod'.
44205 (acorn_mod_SOURCES): New variable.
44206 (acorn_mod_CFLAGS): Likewise.
44207
44208 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44209 `partmap/acorn.c'.
44210 (pkgdata_MODULES): Add `acorn.mod'.
44211 (acorn_mod_SOURCES): New variable.
44212 (acorn_mod_CFLAGS): Likewise.
44213
44214 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
44215 (pkgdata_MODULES): Add `acorn.mod'.
44216 (acorn_mod_SOURCES): New variable.
44217 (acorn_mod_CFLAGS): Likewise.
44218 (acorn_mod_LDFLAGS): Likewise.
44219
44220 * include/types.h (grub_disk_addr_t): New typedef.
44221
44222 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
44223
44224 * geninit.sh: New file.
44225
44226 * geninitheader.sh: Likewise.
44227
44228 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
44229 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
44230 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
44231 * commands/configfile.c (grub_configfile_init)
44232 (grub_configfile_fini): Likewise.
44233 * commands/default.c (grub_default_init, grub_default_fini):
44234 Likewise.
44235 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
44236 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
44237 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
44238 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
44239 Likewise.
44240 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
44241 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
44242 Likewise.
44243 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
44244 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
44245 Likewise.
44246 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
44247 Likewise.
44248 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
44249 Likewise.
44250 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
44251 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
44252 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
44253 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
44254 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
44255 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
44256 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
44257 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
44258 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
44259 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
44260 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
44261 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
44262 * partmap/amiga.c (grub_amiga_partition_map_init)
44263 (grub_amiga_partition_map_fini): Likewise.
44264 * partmap/apple.c (grub_apple_partition_map_init)
44265 (grub_apple_partition_map_fini): Likewise.
44266 * partmap/pc.c (grub_pc_partition_map_init)
44267 (grub_pc_partition_map_fini): Likewise.
44268 * partmap/sun.c (grub_sun_partition_map_init,
44269 grub_sun_partition_map_fini): Likewise.
44270 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
44271 Likewise.
44272
44273 * util/grub-emu.c: Include <grub_modules_init.h>.
44274 (main): Don't initialize and de-initialize any modules directly,
44275 use `grub_init_all' and `grub_fini_all' instead.
44276
44277 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
44278 `grub_vesafb_mod_init'.
44279 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
44280 all users.
44281 * term/i386/pc/vga.c (grub_vga_init): Renamed to
44282 `grub_vga_mod_init'. Updated all users.
44283 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
44284
44285 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
44286 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
44287 rules.
44288
44289 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
44290 Generate a function to initialize the module in utilities.
44291 Updated all callers.
44292 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
44293 initialize the module in utilities. Updated all callers.
44294
44295 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44296
44297 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
44298 escape sequence and a literal ^L to clear the screen.
44299
44300 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
44301 when returning from Open Firmware.
44302
44303 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44304
44305 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
44306 (grub_ofconsole_height): Likewise.
44307 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
44308 manually insert a '\n'.
44309 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
44310 `grub_ofconsole_height'. Return early if these are already set.
44311
44312 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
44313
44314 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44315 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
44316 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
44317 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
44318 and `normal/script.c'.
44319 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44320 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44321 (test_mod_SOURCES): New variable.
44322 (test_mod_CFLAGS): Likewise.
44323 (test_mod_LDFLAGS): Likewise.
44324 (pkgdata_MODULES): Add `test.mod'.
44325 (grub_script.tab.c): New rule.
44326 (grub_script.tab.h): Likewise.
44327
44328 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
44329
44330 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44331 `commands/test.c', `normal/execute.c', `normal/lexer.c',
44332 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44333 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44334 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44335 (test_mod_SOURCES): New variable.
44336 (test_mod_CFLAGS): Likewise.
44337 (pkgdata_MODULES): Add `test.mod'.
44338 (grub_script.tab.c): New rule.
44339 (grub_script.tab.h): Likewise.
44340
44341 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
44342
44343 Add initial scripting support.
44344
44345 * commands/test.c: New file.
44346 * include/grub/script.h: Likewise.
44347 * normal/execute.c: Likewise.
44348 * normal/function.c: Likewise.
44349 * normal/lexer.c: Likewise.
44350 * normal/parser.y: Likewise.
44351 * normal/script.c: Likewise.
44352
44353 * configure.ac: Add `AC_PROG_YACC' test.
44354
44355 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
44356 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
44357 `normal/function.c' and `normal/script.c'.
44358 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44359 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44360 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
44361 variables.
44362 (pkgdata_MODULES): Add `test.mod'.
44363 (grub_script.tab.c): New rule.
44364 (grub_script.tab.h): Likewise.
44365
44366 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
44367
44368 * include/grub/normal.h (grub_test_init): New prototype.
44369 (grub_test_fini): Likewise.
44370
44371 * normal/command.c: Include <grub/script.h>.
44372 (grub_command_execute): Rewritten.
44373
44374 * util/grub-emu.c (main): Call `grub_test_init' and
44375 `grub_test_fini'.
44376
44377 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44378
44379 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
44380 to 0.
44381 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
44382 there are no pending characters.
44383
44384 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44385
44386 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
44387 `grub_strndup' to drop device arguments. Replace unnecessary
44388 `grub_strndup' with `grub_strdup'.
44389
44390 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44391
44392 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
44393 `debug' environment variable has been set.
44394
44395 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
44396
44397 * Makefile.in (install-local): Use $(DATA).
44398 (uninstall): Likewise.
44399 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
44400 (sbin_UTILITIES): ... to here.
44401 (sbin_SCRIPTS): New variable.
44402 (grub_install_SOURCES): New variable.
44403 * util/powerpc/ieee1275/grub-install.in: New file.
44404 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
44405 variable.
44406 (add_segments): Call `grub_util_get_path'.
44407
44408 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
44409
44410 From Timothy Baldwin:
44411 * commands/ls.c (grub_ls_list_files): Close FILE with
44412 grub_file_close.
44413 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
44414
44415 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
44416
44417 * include/grub/parser.h: New file.
44418
44419 * kern/parser.c: Likewise.
44420
44421 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
44422 (grub_setup_SOURCES): Likewise.
44423 (grub_probefs_SOURCES): Likewise.
44424 (grub_emu_SOURCES): Likewise.
44425 (kernel_img_HEADERS): Add `parser.h'.
44426
44427 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44428 (grub_emu_SOURCES): Add `kern/parser.c'.
44429 (grubof_SOURCES): Likewise.
44430
44431 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44432 (grubof_SOURCES): Add `kern/parser.c'.
44433
44434 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
44435
44436 * kern/misc.c (grub_split_cmdline): Removed function.
44437
44438 * kern/rescue.c: Include <grub/parser.h>.
44439 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
44440 of `grub_split_cmdline'.
44441
44442 * normal/command.c: Include <grub/parser.h>.
44443 (grub_command_execute): Use `grub_parser_split_cmdline' instead
44444 of `grub_split_cmdline'.
44445
44446 * normal/completion.c: Include <grub/parser.h>.
44447 (cmdline_state): New variable.
44448 (iterate_dir): End the filename with a quote depending on the
44449 command line state.
44450 (get_state): new function.
44451 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
44452 split the arguments and determine the current argument. When the
44453 argument string is not quoted, escape all spaces.
44454
44455 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44456
44457 * normal/sparc64/setjmp.S: New file.
44458
44459 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44460
44461 * include/grub/sparc64/libgcc.h: New file.
44462 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
44463 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
44464 normal/sparc64/setjmp.c.
44465
44466 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44467
44468 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
44469 * kern/sparc64/cache.S: New file.
44470 * kern/sparc64/cache.c: Removed.
44471 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
44472 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
44473 -mtune=ultrasparc.
44474 (COMMON_LDFLAGS): Add -melf64_sparc.
44475 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
44476 (grubof_SOURCES): Use cache.S instead of cache.c.
44477 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
44478 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
44479 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
44480 commented though.
44481 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
44482 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
44483 (linux_mod_CFLAGS): Commented out.
44484 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
44485 out because module isn't built.
44486 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
44487 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
44488 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
44489 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
44490 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
44491 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44492 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44493 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
44494 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
44495 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
44496 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44497 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44498 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
44499 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
44500
44501 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
44502
44503 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
44504 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
44505 longer, because HFS should not be used on PC.
44506
44507 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44508
44509 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
44510 consistently within the loop.
44511
44512 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
44513
44514 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
44515 directory can not be read.
44516
44517 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44518
44519 * configure.ac (AC_INIT): Increase the version number to 1.91.
44520
44521 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
44522 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
44523 term/i386/pc/serial.c.
44524
44525 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44526
44527 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
44528 file size must be permitted.
44529
44530 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
44531 between %ah and %al.
44532
44533 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44534
44535 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
44536 grub_uint64_t.
44537 Call the hook with a NUL-terminated filename.
44538 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
44539 grub_cpu_to_be32.
44540
44541 * kern/term.c (cursor_state): New variable.
44542 (grub_term_set_current): Reset the cursor state on a new
44543 terminal.
44544 (grub_setcursor): Rewritten to use CURSOR_STATE.
44545 (grub_getcursor): New function.
44546
44547 * include/grub/term.h (grub_getcursor): New prototype.
44548
44549 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
44550 integers on ARM. Reported by Timothy Baldwin
44551 <T.E.Baldwin99@members.leeds.ac.uk>.
44552
44553 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
44554
44555 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
44556 allocated.
44557 (grub_sfs_dir): Likewise.
44558
44559 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
44560
44561 Add support for the SFS filesystem.
44562
44563 * fs/sfs.c: New file.
44564
44565 * DISTLIST: Added `fs/sfs.c'.
44566
44567 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
44568 (grub_probefs_SOURCES): Likewise.
44569 (grub_emu_SOURCES): Likewise.
44570 (pkgdata_MODULES): Add `sfs.mod'.
44571 (sfs_mod_SOURCES): New variable.
44572 (sfs_mod_CFLAGS): Likewise.
44573 (sfs_mod_LDFLAGS): Likewise.
44574
44575 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
44576 (pkgdata_MODULES): Add `sfs.mod'.
44577 (sfs_mod_SOURCES): New variable.
44578 (sfs_mod_CFLAGS): Likewise.
44579
44580 * util/grub-emu.c (main): Call `grub_sfs_init' and
44581 `grub_sfs_fini'.
44582
44583 * include/grub/fs.h (grub_sfs_init): New prototype.
44584 (grub_sfs_fini): Likewise.
44585
44586 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
44587
44588 Add support for the AFFS filesystem.
44589
44590 * fs/affs.c: New file.
44591
44592 * DISTLIST: Added `fs/affs.c'.
44593
44594 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
44595 (grub_probefs_SOURCES): Likewise.
44596 (grub_emu_SOURCES): Likewise.
44597 (pkgdata_MODULES): Add `affs.mod'.
44598 (affs_mod_SOURCES): New variable.
44599 (affs_mod_CFLAGS): Likewise.
44600 (affs_mod_LDFLAGS): Likewise.
44601
44602 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
44603 (pkgdata_MODULES): Add `affs.mod'.
44604 (affs_mod_SOURCES): New variable.
44605 (affs_mod_CFLAGS): Likewise.
44606
44607 * util/grub-emu.c (main): Call `grub_affs_init' and
44608 `grub_affs_fini'.
44609
44610 * include/grub/fs.h (grub_affs_init): New prototype.
44611 (grub_affs_fini): Likewise.
44612
44613 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44614
44615 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
44616
44617 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44618
44619 * configure.ac: Accept `x86_64' as host_cpu. In that case add
44620 `-m32' to CFLAGS.
44621
44622 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
44623 linking.
44624
44625 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
44626 (COMMON_LDFLAGS): New variable.
44627 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
44628 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
44629 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
44630 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
44631 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
44632 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
44633 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
44634 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
44635 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
44636 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
44637 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44638 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44639 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
44640 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
44641 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
44642 variables.
44643 (normal_mod_ASFLAGS): Add `-m32'.
44644
44645 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
44646 (grub_host_size_t, grub_host_ssize_t): New types.
44647 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
44648 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
44649 `GRUB_HOST_SIZEOF_VOID_P'.
44650
44651 * include/grub/kernel.h (struct grub_module_header): Type of
44652 member offset changed to `grub_host_off_t'. Type of member size
44653 changed to `grub_host_size_t'.
44654 (struct grub_module_info): Type of member offset changed to
44655 `grub_host_off_t'. Type of member size changed to
44656 `grub_host_size_t'.
44657
44658 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
44659
44660 Make GRUB's kernel compliant to Multiboot Specification.
44661
44662 * kern/i386/pc/startup.S (multiboot_header): New label.
44663 (multiboot_entry): Likewise.
44664 (multiboot_trampoline): Likewise.
44665
44666 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44667 Increased to 0x4A0.
44668
44669 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
44670 put parentheses after a question mark.
44671 [!GRUB_UTIL] (my_mod): New variable.
44672
44673 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
44674
44675 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
44676
44677 Adds support for the XFS filesystem. Btrees are not supported
44678 yet.
44679
44680 * fs/xfs.c: New file.
44681
44682 * DISTLIST: Added `fs/xfs.c'.
44683
44684 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
44685 (grub_probefs_SOURCES): Likewise.
44686 (grub_emu_SOURCES): Likewise.
44687 (pkgdata_MODULES): Add `xfs.mod'.
44688 (xfs_mod_SOURCES): New variable.
44689 (xfs_mod_CFLAGS): Likewise.
44690
44691 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
44692 (pkgdata_MODULES): Add `xfs.mod'.
44693 (xfs_mod_SOURCES): New variable.
44694 (xfs_mod_CFLAGS): Likewise.
44695
44696 * util/grub-emu.c (main): Call `grub_xfs_init' and
44697 `grub_xfs_fini'.
44698
44699 * include/grub/fs.h (grub_xfs_init): New prototype.
44700 (grub_xfs_fini): Likewise.
44701
44702
44703 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
44704
44705 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
44706 color modes, allow greater than 16 colors to be configured as
44707 a default palette.
44708
44709 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44710
44711 * normal/completion.c (complete_arguments): Add the qualifier
44712 const into OPTIONS.
44713
44714 From Omniflux <omniflux+lists@omniflux.com>:
44715 * include/grub/terminfo.h: New file.
44716 * include/grub/tparm.h: Likewise.
44717 * include/grub/i386/pc/serial.h: Likewise.
44718 * term/terminfo.c: Likewise.
44719 * term/tparm.c: Likewise.
44720 * term/i386/pc/serial.c: Likewise.
44721 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
44722 serial.mod.
44723 (terminfo_mod_SOURCES): New variable.
44724 (terminfo_mod_CFLAGS): Likewise.
44725 (serial_mod_SOURCES): Likewise.
44726 (serial_mod_CFLAGS): Likewise.
44727
44728 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
44729
44730 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
44731 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
44732 and kern/powerpc/ieee1275/cmain.c, respectively.
44733
44734 * boot/powerpc/ieee1275/crt0.S: Moved to ...
44735 * kern/powerpc/ieee1275/crt0.S: ... here.
44736
44737 * boot/powerpc/ieee1275/cmain.c: Moved to ...
44738 * kern/powerpc/ieee1275/cmain.c: ... here.
44739
44740 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
44741 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
44742 instead of boot/powerpc/ieee1275/crt0.S and
44743 boot/powerpc/ieee1275/cmain.c, respectively.
44744
44745 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
44746 sectors. It was not used anyway.
44747
44748 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44749
44750 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
44751 `unused parameter' warning.
44752
44753 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44754
44755 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
44756 function.
44757 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
44758 getcharwidth.
44759
44760 2005-08-28 Marco Gerards <metgerards@student.han.nl>
44761
44762 * include/grub/normal.h (enum grub_completion_type): Added
44763 `GRUB_COMPLETION_TYPE_ARGUMENT'.
44764
44765 * normal/cmdline.c (print_completion): Handle
44766 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
44767 * normal/menu_entry.c (store_completion): Likewise.
44768
44769 * normal/completion.c (complete_arguments): New function.
44770 (grub_normal_do_completion): Call `complete_arguments' when the
44771 current words start with a dash.
44772
44773 2005-08-27 Marco Gerards <metgerards@student.han.nl>
44774
44775 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
44776 `gzio.mod' instead of `io.mod').
44777
44778 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
44779
44780 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
44781 (DISTDIRS): Added io and video.
44782 Rewrite the search routine to make an output consistently.
44783
44784 * DISTLIST: Added conf/sparc64-ieee1275.mk,
44785 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
44786 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
44787 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
44788 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
44789 util/powerpc/ieee1275/misc.c.
44790
44791 * include/grub/gzio.h: New file.
44792 * io/gzio.c: Likewise.
44793
44794 * kern/file.c (grub_file_close): Call grub_device_close only if
44795 FILE->DEVICE is not NULL.
44796
44797 * include/grub/mm.h [!NULL] (NULL): New macro.
44798
44799 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
44800
44801 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
44802 (pkgdata_MODULES): Added gzio.mod.
44803 (gzio_mod_SOURCES): New variable.
44804 (gzio_mod_CFLAGS): Likewise.
44805
44806 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
44807 (pkgdata_MODULES): Added gzio.mod.
44808 (gzio_mod_SOURCES): New variable.
44809 (gzio_mod_CFLAGS): Likewise.
44810
44811 * commands/cat.c: Include grub/gzio.h.
44812 (grub_cmd_cat): Use grub_gzfile_open instead of
44813 grub_file_open.
44814
44815 * commands/cmp.c: Include grub/gzio.h.
44816 (grub_cmd_cmp): Use grub_gzfile_open instead of
44817 grub_file_open.
44818
44819 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
44820 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
44821 grub_file_open.
44822 (grub_rescue_cmd_module): Likewise.
44823
44824 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44825
44826 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
44827 kern/sparc64/ieee1275/init.c because it contains _start.
44828 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
44829
44830 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44831
44832 * configure.ac: Add support for sparc64 host with ieee1275
44833 firmware.
44834 * configure: Generated from configure.ac.
44835 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
44836 instead of int.
44837 (grub_ofdisk_read): Likewise.
44838 (grub_ofdisk_open): Use %p to print pointer values, and cast the
44839 pointers as (void *) to remove a warning.
44840 (grub_ofdisk_close): Likewise.
44841 (grub_ofdisk_read): Likewise.
44842 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
44843 returns, so make it return void to remove a warning.
44844 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
44845 Corresponding prototype change.
44846 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
44847 values, and cast the pointers as (void *) to remove a warning.
44848 (grub_mm_dump): Likewise.
44849 * conf/sparc64-ieee1275.mk: New file.
44850 * conf/sparc64-ieee1275.rmk: Likewise.
44851 * include/grub/sparc64/setjmp.h: Likewise.
44852 * include/grub/sparc64/types.h: Likewise.
44853 * include/grub/sparc64/ieee1275/console.h: Likewise.
44854 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44855 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44856 * include/grub/sparc64/ieee1275/time.h: Likewise.
44857 * kern/sparc64/cache.c: Likewise.
44858 * kern/sparc64/dl.c: Likewise.
44859 * kern/sparc64/ieee1275/init.c: Likewise.
44860 * kern/sparc64/ieee1275/openfw.c: Likewise.
44861
44862 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
44863
44864 * util/console.c (grub_ncurses_putchar): If C is greater than
44865 0x7f, set C to a question mark.
44866 (grub_ncurses_getcharwidth): New function.
44867 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
44868 getcharwidth.
44869
44870 * normal/menu.c (print_entry): Made aware of Unicode. First,
44871 convert TITLE to UCS-4, and predict the cursor position by
44872 grub_getcharwidth.
44873
44874 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
44875 const to SRC.
44876 * kern/misc.c (grub_utf16_to_utf8): Likewise.
44877
44878 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44879
44880 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
44881 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44882 grub_strcat.
44883
44884 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
44885 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44886 grub_strcpy and grub_strlen. Take it into account that a space
44887 character is inserted as a delimiter.
44888
44889 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44890
44891 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
44892 invalid magic in the error.
44893
44894 * commands/search.c: New file.
44895
44896 * util/grub-emu.c (main): Call grub_search_init and
44897 grub_search_fini.
44898
44899 * kern/rescue.c (grub_rescue_print_disks): Removed.
44900 (grub_rescue_print_devices): New function.
44901 (grub_rescue_cmd_ls): Use grub_device_iterate with
44902 grub_rescue_print_devices instead of grub_disk_dev_iterate with
44903 grub_rescue_print_disks.
44904
44905 * kern/partition.c (grub_partition_iterate): Return the result of
44906 PARTMAP->ITERATE instead of GRUB_ERRNO.
44907
44908 * kern/device.c: Include grub/partition.h.
44909 (grub_device_iterate): New function.
44910
44911 * include/grub/partition.h (grub_partition_iterate): Return int
44912 instead of grub_err_t.
44913
44914 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
44915 prototype.
44916 [GRUB_UTIL] (grub_search_fini): Likewise.
44917
44918 * include/grub/device.h (grub_device_iterate): New prototype.
44919
44920 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44921 commands/search.c.
44922 (pkgdata_MODULES): Added search.mod.
44923 (search_mod_SOURCES): New variable.
44924 (search_mod_CFLAGS): Likewise.
44925
44926 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
44927 (pkgdata_MODULES): Added search.mod.
44928 (search_mod_SOURCES): New variable.
44929 (search_mod_CFLAGS): Likewise.
44930
44931 * commands/ls.c (grub_ls_list_disks): Renamed to ...
44932 (grub_ls_list_devices): ... this, and use grub_device_iterate.
44933 All callers changed.
44934
44935 * DISTLIST: Added commands/search.c.
44936
44937 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44938
44939 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
44940 conversion.
44941 (grub_getcharwidth): New function.
44942
44943 * kern/misc.c (grub_utf8_to_ucs4): New function.
44944
44945 * include/grub/term.h (struct grub_term): Added a new member
44946 "getcharwidth".
44947 (grub_getcharwidth): New prototype.
44948
44949 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
44950
44951 * term/i386/pc/console.c (map_char): New function. Segregated from
44952 grub_console_putchar.
44953 (grub_console_putchar): Use map_char.
44954 (grub_console_getcharwidth): New function.
44955 (grub_console_term): Specified grub_console_getcharwidth as
44956 getcharwidth.
44957
44958 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
44959 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
44960
44961 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
44962 GRUB_ERRNO.
44963 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
44964 on grub_strtoul completely.
44965 (write_char): Declare local variables in the beginning of the
44966 function.
44967 (grub_vesafb_getcharwidth): New function.
44968 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
44969 getcharwidth.
44970
44971 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
44972
44973 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
44974 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
44975 commands/i386/pc/vbetest.c.
44976
44977 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
44978 call grub_vbe_get_controller_info again, because the returned
44979 information is volatile.
44980 (grub_vbe_set_video_mode): Mostly rewritten.
44981 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
44982 grub_vbe_status_t correctly.
44983 (grub_vbe_get_video_mode_info): Likewise.
44984 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
44985 several if statements.
44986
44987 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
44988 * commands/i386/pc/vbeinfo.c: ... this.
44989
44990 * commands/i386/pc/vbe_test.c: Renamed to ...
44991 * commands/i386/pc/vbetest.c: ... this.
44992
44993 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
44994 ...
44995 (grub_cmd_vbeinfo): ... this. Save video modes before
44996 iterating. Skip a video mode, if it is not available, not enough
44997 information is given or it is monochrome. Show the memory
44998 model. Leave the interpretation of MODEVAR to grub_strtoul
44999 completely.
45000 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
45001 (GRUB_MOD_FINI): Likewise.
45002
45003 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
45004 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
45005 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
45006 duplicated grub_env_get. Leave the interpretation of MODEVAR to
45007 grub_strtoul completely.
45008 (real2pm): Removed.
45009 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
45010 (GRUB_MOD_FINI): Likewise.
45011
45012 * normal/misc.c: Include grub/mm.h.
45013
45014 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
45015 vbe_list_modes with vbetest.mod and vbeinfo.mod.
45016 (vbe_list_modes_mod_SOURCES): Removed.
45017 (vbe_list_modes_mod_CFLAGS): Likewise.
45018 (vbe_test_mod_SOURCES): Likewise.
45019 (vbe_test_mod_CFLAGS): Likewise.
45020 (vbeinfo_mod_SOURCES): New variable.
45021 (vbeinfo_mod_CFLAGS): Likewise.
45022 (vbetest_mod_SOURCES): Likewise.
45023 (vbetest_mod_CFLAGS): Likewise.
45024
45025 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
45026
45027 * normal/misc.c: New file.
45028
45029 * DISTLIST: Added normal/misc.c.
45030
45031 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
45032 DISK to HOOK. Call HOOK with DISK.
45033 * partmap/apple.c (apple_partition_map_iterate): Likewise.
45034 * partmap/pc.c (pc_partition_map_iterate): Likewise.
45035 * partmap/sun.c (sun_partition_map_iterate): Likewise.
45036
45037 * normal/menu_entry.c (struct screen): Added a new member
45038 "completion_shown".
45039 (completion_buffer): New global variable.
45040 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
45041 (store_completion): New function.
45042 (complete): Likewise.
45043 (clear_completions): Likewise.
45044 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
45045 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
45046 a tab, call complete.
45047
45048 * normal/completion.c (disk_dev): Removed.
45049 (print_simple_completion): Likewise.
45050 (print_partition_completion): Likewise.
45051 (print_func): New global variable.
45052 (add_completion): Do not take the arguments WHAT or PRINT any
45053 longer. Added a new argument TYPE. Instead of printing directly,
45054 call PRINT_FUNC if not NULL.
45055 All callers changed.
45056 (complete_device): Use a local variable DEV instead of
45057 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
45058 (grub_normal_do_completion): Take a new argument HOOK. Do not
45059 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
45060 empty string, return NULL instead.
45061 All callers changed.
45062
45063 * normal/cmdline.c (print_completion): New function.
45064
45065 * kern/partition.c (grub_partition_iterate): Add an argument DISK
45066 to HOOK.
45067 All callers changed.
45068
45069 * kern/disk.c (grub_print_partinfo): Removed.
45070
45071 * include/grub/partition.h (struct grub_partition_map): Add a new
45072 argument DISK into HOOK of ITERATE.
45073 (grub_partition_iterate): Add a new argument DISK to HOOK.
45074
45075 * include/grub/normal.h (enum grub_completion_type): New enum.
45076 (grub_completion_type_t): New type.
45077 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
45078 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
45079 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
45080 (GRUB_COMPLETION_TYPE_FILE): Likewise.
45081 (grub_normal_do_completion): Added a new argument HOOK.
45082 (grub_normal_print_device_info): New prototype.
45083
45084 * include/grub/disk.h (grub_print_partinfo): Removed.
45085
45086 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
45087 (normal_mod_SOURCES): Likewise.
45088 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45089 (normal_mod_SOURCES): Likewise.
45090
45091 * commands/ls.c (grub_ls_list_disks): Use
45092 grub_normal_print_device_info instead of grub_print_partinfo. Free
45093 PNAME.
45094 (grub_ls_list_files): Use grub_normal_print_device_info instead of
45095 duplicating the code.
45096
45097 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45098
45099 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
45100 follow GCS more precisely.
45101 * commands/i386/pc/vbe_test.c: Likewise.
45102 * include/grub/i386/pc/vbe.h: Likewise.
45103 * term/i386/pc/vesafb.c: Likewise.
45104 * video/i386/pc/vbe.c: Likewise.
45105
45106 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45107
45108 * DISTLIST: Added term/i386/pc/vesafb.c
45109 DISTLIST: Added video/i386/pc/vbe.c
45110 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
45111 DISTLIST: Added commands/i386/pc/vbe_test.c.
45112 * commands/i386/pc/vbe_list_modes.c: New file.
45113 * commands/i386/pc/vbe_test.c: Likewise.
45114 * term/i386/pc/vesafb.c: Likewise.
45115 * video/i386/pc/vbe.c: Likewise.
45116 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
45117 (grub_vbe_probe) Added prototype.
45118 (grub_vbe_set_video_mode) Likewise.
45119 (grub_vbe_get_video_mode) Likewise.
45120 (grub_vbe_get_video_mode_info) Likewise.
45121 (grub_vbe_set_pixel_rgb) Likewise.
45122 (grub_vbe_set_pixel_index) Likewise.
45123 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
45124 (pkgdata_MODULES): Added vesafb.mod.
45125 (pkgdata_MODULES): Added vbe_list_modes.mod.
45126 (pkgdata_MODULES): Added vbe_test.mod.
45127 (vbe_mod_SOURCES): Added.
45128 (vbe_mod_CFLAGS): Likewise.
45129 (vesafb_mod_SOURCES): Likewise.
45130 (vesafb_mod_CFLAGS): Likewise.
45131 (vbe_list_modes_mod_SOURCES): Likewise.
45132 (vbe_list_modes_mod_CFLAGS): Likewise.
45133 (vbe_test_mod_SOURCES): Likewise.
45134 (vbe_test_mod_CFLAGS): Likewise.
45135
45136 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
45137
45138 * normal/command.c (grub_command_execute): If INTERACTIVE is
45139 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
45140 CMDLINE. Disable the pager if INTERACTIVE is true.
45141 All callers are changed.
45142
45143 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
45144 before reading a config file.
45145 * normal/main.c (read_config_file): Even if a command is not
45146 found, register it if it is within an entry.
45147
45148 * util/grub-emu.c: Include sys/types.h and unistd.h.
45149 (options): Added --hold.
45150 (struct arguments): Added a new member "hold".
45151 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
45152 missing.
45153 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
45154 cleared by a debugger, if it is not zero.
45155
45156 * include/grub/normal.h (grub_command_execute): Add an argument
45157 INTERACTIVE.
45158
45159 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
45160
45161 * DISTLIST: Added include/grub/i386/pc/vbe.h.
45162
45163 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
45164
45165 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
45166 program with another one, because the old one didn't detect a bug
45167 in gcc-3.4. Always use regparm 2, because the new test is still
45168 not enough for gcc-4.0. Someone must investigate a simple test
45169 case which detects a bug in gcc-4.0.
45170
45171 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
45172
45173 * DISTLIST: Added normal/completion.c.
45174
45175 * normal/completion.c: New file.
45176
45177 * term/i386/pc/console.c (grub_console_getwh): New function.
45178 (grub_console_term): Assign grub_console_getwh to getwh.
45179
45180 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
45181 function is defined in normal/completion.c as
45182 grub_normal_do_completion.
45183 (grub_cmdline_get): Use grub_normal_do_completion instead of
45184 grub_tab_complete.
45185
45186 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
45187 returns non-zero, otherwise return 0.
45188 (grub_partition_iterate): First, probe the partition map. Then,
45189 call ITERATE only for this partition map.
45190
45191 * kern/misc.c (grub_strncmp): Rewritten.
45192
45193 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
45194 returns non-zero. Otherwise return 0.
45195
45196 * include/grub/partition.h (grub_partition_map_iterate): Return
45197 int instead of void.
45198
45199 * include/grub/normal.h (grub_normal_do_completion): New prototype.
45200
45201 * include/grub/misc.h (grub_strncmp): Change the type of N to
45202 grub_size_t.
45203
45204 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
45205 of void.
45206
45207 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
45208 unsigned explicitly before comparing it with I.
45209
45210 * kern/main.c (grub_env_write_root): Add the attribute unused into
45211 VAR.
45212
45213 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45214 normal/completion.c.
45215 (normal_mod_SOURCES): Likewise.
45216 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45217 (normal_mod_SOURCES): Likewise.
45218
45219 * normal/command.c (grub_iterate_commands): If ITERATE returns
45220 non-zero, return one immediately.
45221
45222 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
45223
45224 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
45225 * kern/i386/pc/startup.S: Updated Global Descriptor table's
45226 descriptions.
45227 (grub_vbe_get_controller_info): New function.
45228 (grub_vbe_get_mode_info): Likewise.
45229 (grub_vbe_set_mode): Likewise.
45230 (grub_vbe_get_mode): Likewise.
45231 (grub_vbe_set_memory_window): Likewise.
45232 (grub_vbe_get_memory_window): Likewise.
45233 (grub_vbe_set_scanline_length): Likewise.
45234 (grub_vbe_get_scanline_length): Likewise.
45235 (grub_vbe_set_display_start): Likewise.
45236 (grub_vbe_get_display_start): Likewise.
45237 (grub_vbe_set_palette_data): Likewise.
45238 * include/grub/i386/pc/vbe.h: New file.
45239
45240 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45241
45242 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45243 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
45244 * DISTLIST: Likewise.
45245 * kern/ieee1275/of.c: Moved to ...
45246 * kern/ieee1275/ieee1275.c: ... here.
45247
45248 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45249
45250 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
45251 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
45252 Pass 0 as `end' parameter to grub_strtoul().
45253
45254 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45255
45256 * include/grub/powerpc/ieee1275/console.h: Do not include
45257 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
45258 ifdef.
45259 (grub_console_cur_color): Remove i386-specific prototype.
45260 (grub_console_real_putchar): Likewise.
45261 (grub_console_checkkey): Likewise.
45262 (grub_console_getkey): Likewise.
45263 (grub_console_getxy): Likewise.
45264 (grub_console_gotoxy): Likewise.
45265 (grub_console_cls): Likewise.
45266 (grub_console_setcursor): Likewise.
45267 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
45268 Include <grub/machine/console.h>.
45269 * term/ieee1275/ofconsole.c: Likewise.
45270
45271 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
45272
45273 * Makefile.in (LIBLZO): New variable.
45274
45275 * configure.ac: Check for LZO version 2.
45276
45277 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
45278 lzo/lzo1x.h instead of lzo1x.h.
45279
45280 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
45281 of -llzo.
45282
45283 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
45284 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
45285
45286 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
45287 copying the data from PARTITION to P.
45288
45289 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45290
45291 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
45292 negative, unload the module.
45293
45294 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
45295 map is "pc_partition_map" but not "pc".
45296 (usage): Fix the description. The options are --boot-image and
45297 --core-image but not --boot-file or --core-file.
45298 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
45299 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
45300 DEFAULT_DIRECTORY.
45301
45302 * util/i386/pc/grub-install.in: Do not specify --boot-file or
45303 --core-file. Specify INSTALL_DEVICE as an argument.
45304
45305 * util/console.c: Include config.h.
45306 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
45307 [HAVE_NCURSES_H]: Include ncurses.h.
45308 [HAVE_CURSES_H]: Include curses.h.
45309 [!A_NORMAL] (A_NORMAL): Defined as zero.
45310 [!A_STANDOUT] (A_STANDOUT): Likewise.
45311
45312 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
45313 -lncurses.
45314 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
45315
45316 * configure.ac: Check for curses libraries and headers.
45317
45318 * Makefile.in (LIBCURSES): New variable.
45319
45320 * genmk.rb (Script::rule): Set the executable bits.
45321
45322 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
45323 name of the PC partition map is "pc_partition_map" but not "pc".
45324
45325 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45326
45327 * util/i386/pc/grub-install.in (grub_probefs): New variable.
45328 (modules): Likewise.
45329 (usage): Added descriptions for --modules and --grub-probefs.
45330 Handle --modules and --grub-probefs. Save the arguments in MODULES
45331 and GRUB_PROBEFS, respectively.
45332 Auto-detect a filesystem module against GRUBDIR. If the result is
45333 empty and modules are not specified explicitly, abort the
45334 installation. Add the result to MODULES.
45335
45336 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
45337 disk/powerpc/ieee1275/ofdisk.c,
45338 include/grub/powerpc/ieee1275/init.h and
45339 term/powerpc/ieee1275/ofconsole.c.
45340 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
45341 term/ieee1275/ofconsole.c.
45342
45343 * include/grub/powerpc/ieee1275/console.h: Resurrected.
45344
45345 * COPYING: Upgraded to the latest version. Only the address of the
45346 FSF office has changed.
45347
45348 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45349
45350 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45351 kern/ieee1275.c with kern/ieee1275/of.c.
45352
45353 * kern/ieee1275.c: Moved to ...
45354 * kern/ieee1275/of.c: ... here.
45355
45356 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
45357
45358 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
45359 readability.
45360
45361 * config.guess: Updated to the latest version from gnulib.
45362 * config.sub: Likewise.
45363 * install.sh: Likewise.
45364 * mkinstalldirs: Likewise.
45365
45366 * include/grub/console.h: Removed. This file is arch-specific. Do
45367 not put this in include/grub.
45368
45369 * include/grub/i386/pc/console.h: Resurrected.
45370
45371 * util/console.c: Include grub/machine/console.h instead of
45372 grub/console.h.
45373 * util/grub-emu.c: Likewise.
45374
45375 2005-08-04 Marco Gerards <metgerards@student.han.nl>
45376
45377 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
45378 hardcoded value.
45379
45380 From Vincent Pelletier <subdino2004@yahoo.fr>
45381 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
45382 Redefined to use grub_getwh.
45383 (grub_term): New member named getwh.
45384 (grub_getwh): New prototype.
45385 * kern/term.c (grub_getwh): New function.
45386 * term/i386/pc/console.c (grub_console_getwh): New function.
45387 (grub_console_term): New member `getwh'.
45388 * term/i386/pc/vga.c (grub_vga_getwh): New function.
45389 (grub_vga_term): New member `getwh'.
45390 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
45391 grub_ssize_t.
45392 (grub_ofconsole_getw): New function.
45393 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
45394 (grub_ofconsole_term): New field named getwh and new initial
45395 value.
45396
45397 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
45398
45399 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
45400 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
45401 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
45402 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
45403 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
45404 of <grub/machine/ieee1275.h>.
45405 * commands/ieee1275/reboot.c: Likewise.
45406 * boot/powerpc/ieee1275/ieee1275.c: Move ...
45407 * kern/ieee1275.c: ... to here. All users updated. Change all
45408 parameter structs to use new type `grub_ieee1275_cell_t'.
45409 * term/powerpc/ieee1275/ofconsole.c: Move ...
45410 * term/ieee1275/ofconsole.c: ... to here. All users updated.
45411 * disk/powerpc/ieee1275/ofdisk.c: Move ...
45412 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
45413 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
45414 to return int.
45415 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
45416 Remove unused prototypes. All users updated.
45417 * include/grub/powerpc/ieee1275/console.h: Removed.
45418 * include/grub/powerpc/ieee1275/ieee1275.h: Define
45419 `grub_ieee1275_cell_t'.
45420 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
45421 Cast comparisons with -1 to the correct type.
45422 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
45423 type to match `grub_ieee1275_entry_fn'.
45424
45425 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
45426
45427 * DISTLIST: Added util/i386/pc/grub-probefs.c.
45428
45429 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
45430 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
45431 partmap/sun.c.
45432 (grub_probefs_SOURCES): New variable.
45433
45434 * util/i386/pc/grub-probefs.c: New file.
45435
45436 * util/i386/pc/grub-setup.c (main): Call
45437 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
45438 grub_hfs_init and grub_jfs_init to initialize the system. Call
45439 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
45440 grub_pc_partition_map_fini to finish the system.
45441
45442 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
45443
45444 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
45445 function.
45446 (grub_multiboot_load_elf32): Likewise.
45447 (grub_multiboot_is_elf64): Likewise.
45448 (grub_multiboot_load_elf64): Likewise.
45449 (grub_multiboot_load_elf): Likewise.
45450 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
45451 an ELF32 or ELF64 file.
45452 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
45453
45454 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
45455 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
45456 NULL before calling FS->LABEL.
45457 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
45458 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
45459 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
45460 before calling FS->LABEL.
45461
45462 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
45463
45464 * util/i386/pc/grub-install.in (datadir): New variable.
45465 (libdir): Removed.
45466 (pkgdatadir): New variable.
45467 (pkglibdir): Removed.
45468
45469 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
45470
45471 * DISTLIST: Added util/i386/pc/grub-install.in.
45472
45473 * util/i386/pc/grub-install.in: New file.
45474
45475 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
45476 (grub_install_SOURCES): Likewise.
45477
45478 * genmk.rb: Added support for scripts.
45479 (Script): New class.
45480 (scripts): New variable.
45481
45482 * Makefile.in (install-local): Install sbin_SCRIPTS by
45483 INSTALL_SCRIPT.
45484 (uninstall): Remove sbin_SCRIPTS.
45485
45486 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
45487 device, try to get a GRUB device by
45488 grub_util_biosdisk_get_grub_dev.
45489 Free DEST_DEV.
45490
45491 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
45492 description for --device-map.
45493
45494 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45495
45496 Change the semantics of variable hooks. They now return strings
45497 instead of error values.
45498
45499 * util/i386/pc/grub-setup.c: Include grub/env.h.
45500 (setup): Use grub_device_set_root instead of grub_env_set.
45501
45502 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
45503 grub_env_get instead of grub_device_set_root and
45504 grub_device_get_root, respectively.
45505
45506 * kern/main.c (grub_env_write_root): New function.
45507 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
45508 grub_env_set instead of grub_device_set_root.
45509
45510 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
45511 many variables.
45512 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
45513 rather than calling ENV->WRITE_HOOK afterwards.
45514 (grub_env_get): Return the result of ENV->READ_HOOK rather than
45515 passing a pointer of a pointer.
45516 (grub_register_variable_hook): Change the types of "read_hook" and
45517 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
45518 respectively.
45519 Allocate the default empty string on the heap, because this string
45520 may be freed later.
45521
45522 * kern/device.c: Include grub/env.h.
45523 (grub_device_set_root): Removed.
45524 (grub_device_get_root): Likewise.
45525 (grub_device_open): Use grub_env_get instead of
45526 grub_device_get_root.
45527
45528 * include/grub/env.h (grub_env_read_hook_t): New type.
45529 (grub_env_write_hook_t): Likewise.
45530 (grub_env_var): Change the types of "read_hook" and "write_hook"
45531 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
45532 (grub_register_variable_hook): Likewise.
45533
45534 * include/grub/device.h (grub_device_set_root): Removed.
45535 (grub_device_set_root): Likewise.
45536
45537 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
45538 make sure that DIRNAME terminates with '/', so that
45539 grub_fat_find_dir will fail if PATH is not a directory.
45540
45541 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
45542 from DIRNAME.
45543 Use the qualifier auto for print_files and print_files_long.
45544 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
45545 as a regular file.
45546 Put a newline only if there is no error.
45547 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
45548 used.
45549
45550 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45551
45552 * kern/partition.c (grub_partition_probe): Initialize PART to
45553 NULL. Otherwise, when no partition map is registered, this returns
45554 a garbage.
45555
45556 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
45557
45558 * partmap/apple.c (apple_partition_map_iterate): Check if POS
45559 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
45560 valid.
45561
45562 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
45563
45564 * commands/ls.c (grub_ls_list_disks): Print the filesystem
45565 information on each device, if it does not have partitions. Print
45566 "Device" instead of "Disk", because this function is not specific
45567 to disk devices.
45568
45569 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
45570 static to ensure that it is put on the memory rather than a
45571 register.
45572
45573 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45574
45575 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
45576 (grub_cat_init): Likewise.
45577 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
45578 (options): Likewise.
45579 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
45580 (grub_configfile_init): Likewise.
45581 * font/manager.c (GRUB_MOD_INIT): Likewise.
45582 * commands/help.c (GRUB_MOD_INIT): Likewise.
45583 (grub_help_init): Likewise.
45584 * normal/command.c (grub_command_init): Likewise.
45585 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
45586 * disk/loopback.c (grub_loop_init): Likewise.
45587 (GRUB_MOD_INIT): Likewise.
45588 * commands/ls.c (grub_ls_init): Likewise.
45589 (GRUB_MOD_INIT): Likewise.
45590 (options): Likewise.
45591 * commands/boot.c (grub_boot_init): Likewise.
45592 (GRUB_MOD_INIT): Likewise.
45593 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
45594 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
45595 (GRUB_MOD_INIT): Likewise.
45596 * commands/cmp.c (grub_cmp_init): Likewise.
45597 (GRUB_MOD_INIT): Likewise.
45598
45599 * normal/arg.c: Use <> instead of "" to include header files.
45600 (SHORT_ARG_HELP): New macro.
45601 (SHORT_ARG_USAGE): Likewise.
45602 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
45603 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
45604 descriptions.
45605 (find_short): Check if C is 'h' or 'u' explicitly.
45606 (grub_arg_show_help): Use space characters instead of tabs. Treat
45607 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
45608 are shown with --help and --usage only if they are not used for
45609 the command itself.
45610 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
45611 'h' and 'u'.
45612
45613 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
45614 const into "longarg". Change the type of "shortarg" to int.
45615
45616 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45617
45618 * boot/i386/pc/boot.S (boot_drive_check): New label.
45619
45620 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
45621 macro.
45622
45623 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
45624 which do not pass a boot drive correctly. Copied from GRUB Legacy.
45625
45626 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45627
45628 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
45629 When turning off Gate A20, skip the check and return immediately,
45630 because this is not fatal usually.
45631
45632 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45633
45634 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
45635 be 0x7C00 instead of 0x8000.
45636
45637 * boot/i386/pc/pxeboot.S: Rewritten.
45638
45639 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
45640 EXT_C.
45641 (gate_a20_check_state): Read a byte from 0x108000. Invert the
45642 result.
45643
45644 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
45645
45646 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
45647 robustness. This routine now supports a BIOS call and System
45648 Control Port A to modify the gate A20.
45649
45650 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
45651 Increased to 0x440.
45652
45653 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
45654
45655 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
45656 device path and resulting ihandle.
45657 (grub_ofdisk_close): dprintf the ihandle being closed.
45658 (grub_ofdisk_read): dprintf function parameters.
45659 * kern/mm.c (grub_mm_init_region): Likewise.
45660 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
45661 (grub_linux_boot): dprintf the Linux entry point, initrd address and
45662 size, and boot arguments.
45663 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
45664 before loading into memory.
45665 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
45666 before loading into memory.
45667
45668 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
45669
45670 * kern/mm.c: Added much documentation.
45671 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
45672 8, set to 5 instead of 8.
45673
45674 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45675
45676 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
45677
45678 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
45679 (grub_mkdevicemap_SOURCES): New variable.
45680
45681 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
45682 lib/device.c of GRUB Legacy.
45683
45684 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45685
45686 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
45687 instead of PATH is NULL.
45688
45689 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
45690
45691 * commands/cmp.c (BUFFER_SIZE): New macro.
45692 (grub_cmd_cmp): Close the right file at the right time. Compare
45693 only data just read. Don't report files of different size as
45694 identical. Dynamically allocate buffers. Move variable
45695 declarations at the beginning of function.
45696
45697 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
45698
45699 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
45700 reverse.
45701
45702 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
45703
45704 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
45705 when backspace is pressed at beginning of line.
45706
45707 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
45708
45709 * DISTLIST: Added genfslist.sh.
45710
45711 * normal/main.c (fs_module_list): New variable.
45712 (autoload_fs_module): New function.
45713 (read_fs_list): Likewise.
45714 (grub_normal_execute): Call read_fs_list.
45715
45716 * kern/fs.c (grub_fs_autoload_hook): New variable.
45717 (grub_fs_probe): Added support for auto-loading.
45718
45719 * include/grub/normal.h (struct grub_fs_module_list): New struct.
45720 (grub_fs_module_list_t): New type.
45721
45722 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
45723 (grub_fs_autoload_hook): New prototype.
45724
45725 * genfslist.sh: New file.
45726
45727 * genmk.rb: Added a rule to generate a filesystem list.
45728
45729 2005-06-30 Marco Gerards <metgerards@student.han.nl>
45730
45731 * configure.ac: Fix the test for cross-compiling.
45732
45733 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
45734 define GRUB_UTIL anymore.
45735
45736 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
45737 so this function works on other systems than just big endian.
45738 (load_modules): Likewise.
45739 (add_segments): Likewise.
45740
45741 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
45742
45743 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
45744 contains `l' modifier, get a long from va_arg().
45745
45746 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
45747
45748 * kern/mm.c (grub_free): If the next free block which is being
45749 merged is the first free block, set the first block to the block
45750 being freed.
45751 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
45752
45753 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45754
45755 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
45756 `grub_ieee1275_chosen'.
45757
45758 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45759
45760 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
45761 (grub_ieee1275_chosen): New variable.
45762 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
45763 `chosen'.
45764 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
45765 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45766 Rename first argument to `phandle' for consistency.
45767 (grub_ieee1275_get_property_length): Likewise.
45768 (grub_ieee1275_next_property): Likewise. Change type of first argument
45769 to grub_ieee1275_phandle_t.
45770 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
45771 Move export next to declaration.
45772 (grub_ieee1275_chosen): New variable.
45773 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
45774 Correct cosmetic typo.
45775 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
45776 `grub_ieee1275_chosen'.
45777 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
45778 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
45779 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
45780 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
45781 `grub_ieee1275_chosen'.
45782
45783 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
45784
45785 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
45786 /chosen/bootargs.
45787 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
45788 /chosen/bootargs as "variable=value" pairs.
45789
45790 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
45791
45792 * include/grub/misc.h (grub_dprintf): New macro.
45793 (grub_real_dprintf): New prototype.
45794 (grub_strword): Likewise.
45795 (grub_iswordseparator): Likewise.
45796 * kern/misc.c (grub_real_dprintf): New function.
45797 (grub_strword): Likewise.
45798 (grub_iswordseparator): Likewise.
45799
45800 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
45801
45802 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
45803 (roundup): Remove macro.
45804 (grub_ieee1275_flags): Make static.
45805 (grub_ieee1275_realmode): Remove.
45806 (grub_ieee1275_test_flag): New function.
45807 (grub_ieee1275_set_flag): Likewise.
45808 (find_options): Rename to `grub_ieee1275_find_options'; update
45809 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
45810 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
45811 (cmain): New prototype.
45812 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
45813 `grub_ieee1275_flags' directly.
45814 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
45815 machine/biosdisk.h.
45816 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
45817 Don't include grub/machine/init.h.
45818 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
45819 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
45820 Remove prototype.
45821 (grub_ieee1275_realmode): Likewise.
45822 (grub_ieee1275_flag): New enum.
45823 (grub_ieee1275_test_flag): New prototype.
45824 (grub_ieee1275_set_flag): New prototype.
45825 * include/grub/powerpc/ieee1275/init.h: Remove file.
45826 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
45827 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
45828 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
45829 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
45830 comment.
45831 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
45832 `grub_ieee1275_test_flag'.
45833 (grub_ieee1275_encode_devname): Likewise.
45834
45835 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
45836
45837 * include/grub/powerpc/ieee1275/ieee1275.h
45838 (grub_ieee1275_encode_devname): New prototype.
45839 (grub_ieee1275_get_filename): Likewise.
45840 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
45841 function.
45842 (grub_set_prefix): Likewise.
45843 (grub_machine_init): Call grub_set_prefix.
45844 * kern/powerpc/ieee1275/openfw.c: Fix typos.
45845 (grub_parse_type): New enum.
45846 (grub_ieee1275_get_devargs): New function.
45847 (grub_ieee1275_get_devname): Likewise.
45848 (grub_ieee1275_parse_args): Likewise.
45849 (grub_ieee1275_get_filename): Likewise.
45850 (grub_ieee1275_encode_devname): Likewise.
45851
45852 2005-03-30 Marco Gerards <metgerards@student.han.nl>
45853
45854 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
45855 `grub_loader_unset'.
45856
45857 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
45858
45859 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
45860 instead of grub_ieee1275_interpret.
45861 (grub_halt_init): New function.
45862 (grub_halt_fini): Likewise.
45863 (GRUB_MOD_INIT): Correct message grammar.
45864 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
45865 instead of grub_ieee1275_interpret.
45866 (grub_reboot_init): New function.
45867 (grub_reboot_fini): Likewise.
45868 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
45869 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
45870 util/i386/pc/misc.c with commands/ieee1275/halt.c,
45871 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
45872 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
45873 function.
45874 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
45875 Add prototype.
45876 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
45877 prototype.
45878 (grub_halt): Likewise.
45879 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
45880 (cmain): Remove __attribute__((unused)).
45881 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
45882 (grub_heap_len): Likewise.
45883 (grub_machine_fini): New function.
45884 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
45885 (grub_halt): Likewise.
45886 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
45887 function.
45888 * util/powerpc/ieee1275/misc.c: New file.
45889
45890 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45891
45892 * DISTLIST: New file.
45893 * gendistlist.sh: Likewise.
45894
45895 * Makefile.in (COMMON_DISTFILES): Removed.
45896 (BOOT_DISTFILES): Likewise.
45897 (CONF_DISTFILES): Likewise.
45898 (DISK_DISTFILES): Likewise.
45899 (FS_DISTFILES): Likewise.
45900 (INCLUDE_DISTFILES): Likewise.
45901 (KERN_DISTFILES): Likewise.
45902 (LOADER_DISTFILES): Likewise.
45903 (TERM_DISTFILES): Likewise.
45904 (UTIL_DISTFILES): Likewise.
45905 (DISTFILES): Likewise.
45906 (uninstall): Uninstall files in $(pkgdata_DATA).
45907 (DISTLIST): New target.
45908 (distdir): Use the contents of the file DISTLIST to get a list of
45909 distributed files.
45910
45911 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45912
45913 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
45914 descriptor. This is ported from GRUB Legacy.
45915
45916 * gencmdlist.sh: Added an extra semicolon to make it work with
45917 old sed versions. Reported by Robert Bihlmeyer
45918 <robbe@orcus.priv.at>.
45919
45920 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
45921
45922 Automatic loading of commands is supported.
45923
45924 * normal/main.c (read_command_list): New function.
45925 (grub_normal_execute): Call read_command_list.
45926
45927 * normal/command.c (grub_register_command): Return zero or CMD.
45928 Allocate CMD->NAME from the heap.
45929 Initialize CMD->MODULE_NAME to zero.
45930 Find the same name as well. If the same command is found and it is
45931 a dummy command, overwrite members. If it is not a dummy command,
45932 return zero.
45933 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
45934 (grub_command_find): If a dummy command is found, load a module
45935 and retry to find a command only once.
45936
45937 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
45938 make sure that each command is loaded.
45939
45940 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
45941 macro.
45942 (struct grub_command): Remove const from the member `name'.
45943 Add a new member `module_name'.
45944 (grub_register_command): Return grub_command_t.
45945
45946 * commands/help.c (grub_cmd_help): Call grub_command_find to make
45947 sure that each command is loaded.
45948
45949 * genmk.rb (PModule::rule): Specify a module name without the
45950 suffix ".mod" to gencmdlist.sh.
45951
45952 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45953
45954 * gencmdlist.sh: New file.
45955
45956 * genmk.rb (PModule::rule): Generate a rule for a command list.
45957 Clean command.lst.
45958 Generate command.lst from $(COMMANDFILES).
45959
45960 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
45961 (DATA): Added $(pkgdata_DATA).
45962 (install-local): Install files in $(pkgdata_DATA).
45963
45964 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45965
45966 * term/i386/pc/vga.c (debug_command): Removed.
45967 (GRUB_MOD_INIT): Do not register the command "debug".
45968
45969 From Hollis Blanchard:
45970 * commands/configfile.c: New file.
45971 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45972 commands/configfile.c.
45973 (pkgdata_MODULES): Added configfile.mod.
45974 (configfile_mod_SOURCES): New variable.
45975 (configfile_mod_CFLAGS): Likewise.
45976 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45977 commands/configfile.c.
45978 (pkgdata_MODULES): Added configfile.mod.
45979 (configfile_mod_SOURCES): New variable.
45980 (configfile_mod_CFLAGS): Likewise.
45981 * util/grub-emu.c (main): Call grub_configfile_init and
45982 grub_configfile_fini.
45983 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
45984 prototype.
45985 [GRUB_UTIL] (grub_configfile_fini): Likewise.
45986
45987 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45988
45989 * normal/arg.c (grub_arg_show_help): Do not show the bug report
45990 address.
45991
45992 * commands/help.c (grub_cmd_help): Do not print newlines after
45993 the last command in print_command_help.
45994
45995 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45996
45997 * commands/default.h: New file.
45998 * commands/timeout.h: Likewise.
45999 * normal/context.c: Likewise.
46000
46001 * util/misc.c: Do not include sys/times.h.
46002 Include sys/time.h and grub/machine/time.h.
46003 (grub_get_rtc): Rewritten with gettimeofday.
46004
46005 * util/grub-emu.c (main): Call grub_default_init and
46006 grub_timeout_init before grub_normal_init, and call
46007 grub_timeout_fini and grub_default_fini after grub_main.
46008
46009 * util/console.c (grub_ncurses_checkkey): Return the read
46010 character or -1.
46011
46012 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
46013 timeouts.
46014
46015 * normal/main.c (read_config_file): Push MENU. If this fails,
46016 print an error and wait for a user input.
46017 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
46018 If a menu is empty or an error occurs, pop MENU.
46019 (grub_normal_execute): Pop and free MENU after grub_menu_run
46020 returns.
46021
46022 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
46023
46024 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
46025 include time.h.
46026 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
46027 without GRUB_UTIL.
46028 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
46029 time.h.
46030 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
46031 without GRUB_UTIL.
46032
46033 * include/grub/normal.h (struct grub_menu_list): New struct.
46034 (grub_menu_list_t): New type.
46035 (struct grub_context): New struct.
46036 (grub_context_t): New type.
46037 (grub_register_command): Got rid of EXPORT_FUNC.
46038 (grub_unregister_command): Likewise.
46039 (grub_context_get): New prototype.
46040 (grub_context_get_current_menu): Likewise.
46041 (grub_context_push_menu): Likewise.
46042 (grub_context_pop_menu): Likewise.
46043 [GRUB_UTIL] (grub_default_init): Likewise.
46044 [GRUB_UTIL] (grub_default_fini): Likewise.
46045 [GRUB_UTIL] (grub_timeout_init): Likewise.
46046 [GRUB_UTIL] (grub_timeout_fini): Likewise.
46047
46048 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
46049 commands/timeout.c and normal/context.c.
46050 (pkgdata_MODULES): Added default.mod and timeout.mod.
46051 (normal_mod_SOURCES): Added normal/context.c.
46052 (default_mod_SOURCES): New variable.
46053 (default_mod_CFLAGS): Likewise.
46054 (timeout_mod_SOURCES): Likewise.
46055 (timeout_mod_CFLAGS): Likewise.
46056 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
46057 conf/i386-pc.rmk.
46058 (pkgdata_MODULES): Added default.mod and timeout.mod.
46059 (normal_mod_SOURCES): Added normal/context.c.
46060 (default_mod_SOURCES): New variable.
46061 (default_mod_CFLAGS): Likewise.
46062 (timeout_mod_SOURCES): Likewise.
46063 (timeout_mod_CFLAGS): Likewise.
46064
46065 * Makefile.in (all-local): Added $(MKFILES).
46066
46067 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
46068
46069 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
46070 (grub_emu_SOURCES): Likewise.
46071 (pkgdata_MODULES): Add `sun.mod'.
46072 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46073 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46074 `partmap/sun.c'.
46075 (pkgdata_MODULES): Add `sun.mod'.
46076 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46077 * include/grub/partition.h (grub_sun_partition_map_init): New
46078 prototype.
46079 (grub_sun_partition_map_fini): Likewise.
46080 * partmap/sun.c: New file.
46081 * util/grub-emu.c (main): Initialize and de-initialize the sun
46082 partitionmap support.
46083
46084 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
46085
46086 This implements an Emacs-like menu entry editor.
46087
46088 * normal/menu_entry.c: New file.
46089
46090 * util/console.c (grub_ncurses_putchar): Translate some Unicode
46091 characters to ASCII.
46092 (saved_char): New variable.
46093 (grub_ncurses_checkkey): Rewritten completely.
46094 (grub_ncurses_getkey): Likewise.
46095 (grub_ncurses_init): Call raw instead of cbreak.
46096
46097 * normal/menu.c (print_entry): Do not put a space.
46098 (init_page): Renamed to ...
46099 (grub_menu_init_page): ... this. All callers changed.
46100 (edit_menu_entry): Removed.
46101 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
46102
46103 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
46104
46105 * kern/misc.c (grub_vprintf): Call grub_refresh.
46106
46107 * normal/menu.c (DISP_LEFT): Renamed to ...
46108 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
46109 * normal/menu.c (DISP_UP): Renamed to ...
46110 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
46111 * normal/menu.c (DISP_RIGHT): Renamed to ...
46112 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
46113 * normal/menu.c (DISP_DOWN): Renamed to ...
46114 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
46115 * normal/menu.c (DISP_HLINE): Renamed to ...
46116 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
46117 * normal/menu.c (DISP_VLINE): Renamed to ...
46118 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
46119 * normal/menu.c (DISP_UL): Renamed to ...
46120 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
46121 * normal/menu.c (DISP_UR): Renamed to ...
46122 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
46123 * normal/menu.c (DISP_LL): Renamed to ...
46124 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
46125 * normal/menu.c (DISP_LR): Renamed to ...
46126 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
46127 * normal/menu.c (TERM_WIDTH): Renamed to ...
46128 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
46129 * normal/menu.c (TERM_HEIGHT): Renamed to ...
46130 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
46131 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
46132 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
46133 * normal/menu.c (TERM_MARGIN): Renamed to ...
46134 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
46135 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
46136 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
46137 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
46138 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
46139 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
46140 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
46141 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
46142 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
46143 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
46144 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
46145 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
46146 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
46147 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
46148 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
46149 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
46150 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
46151 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
46152 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
46153 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
46154 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
46155 All callers changed.
46156
46157 * include/grub/normal.h: New prototype.
46158
46159 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46160 normal/menu_entry.c.
46161 (normal_mod_SOURCES): Likewise.
46162 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46163 (normal_mod_SOURCES): Likewise.
46164
46165 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
46166
46167 * include/grub/normal.h (grub_halt_init): New prototype.
46168 (grub_halt_fini): Likewise.
46169 (grub_reboot_init): Likewise.
46170 (grub_reboot_fini): Likewise.
46171
46172 * util/grub-emu.c: Include signal.h.
46173 (main_env): New global variable.
46174 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
46175 catch C-c.
46176 (grub_machine_fini): New function.
46177 (main): Call grub_halt_init and grub_reboot_init before
46178 grub_main, and grub_reboot_fini and grub_halt_fini after it.
46179 Call setjmp with MAIN_ENV to go back afterwards.
46180 Call grub_machine_fini right before return.
46181
46182 * include/grub/util/misc.h: Include setjmp.h.
46183 (main_env): New prototype.
46184
46185 * include/grub/kernel.h (grub_machine_fini): New prototype.
46186 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
46187 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
46188
46189 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
46190 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
46191 * term/i386/pc/console.c (grub_console_fini): Likewise.
46192
46193 * util/i386/pc/misc.c: New file.
46194
46195 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46196 util/i386/pc/misc.c, commands/i386/pc/halt.c and
46197 commands/i386/pc/reboot.c.
46198
46199 2005-02-14 Guillem Jover <guillem@hadrons.org>
46200
46201 * include/grub/dl.h (grub_dl_check_header): New prototype.
46202 (grub_arch_dl_check_header): Change return type to grub_err_t,
46203 remove size parameter and export function. Update all callers.
46204 * kern/dl.c (grub_dl_check_header): New function.
46205 (grub_dl_load_core): Use `grub_dl_check_header' instead of
46206 `grub_arch_dl_check_header'. Check ELF type. Check if sections
46207 are inside the core.
46208 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
46209 independent ELF header checks.
46210 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46211 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
46212 `grub_dl_check_header' instead of explicit checks. Check for the
46213 ELF type.
46214 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
46215 `grub_dl_check_header' instead of explicit checks. Remove arch
46216 specific ELF header checks.
46217
46218 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
46219 argument SIZE.
46220
46221 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
46222
46223 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
46224 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
46225
46226 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
46227
46228 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
46229 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
46230 (part_map_iterate): Clear `grub_errno' and return 0 if
46231 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
46232 * partmap/amiga.c (amiga_partition_map_iterate): Return
46233 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
46234 * partmap/apple.c (apple_partition_map_iterate): Likewise.
46235
46236 2005-02-01 Guillem Jover <guillem@hadrons.org>
46237
46238 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
46239 help info.
46240
46241 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46242
46243 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
46244 Removed prototype.
46245 (grub_rescue_cmd_linux): New prototype.
46246 (grub_rescue_cmd_initrd): Likewise.
46247 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
46248 `bi_rec'.
46249 (grub_linux_release_mem): Release the memory for the initrd.
46250 (grub_load_linux): Renamed from this...
46251 (grub_rescue_cmd_linux): ...To this. Changed all callers.
46252 Changed `entry' not to be static. Loop over memory regions to
46253 find another one when the default fails.
46254 (grub_rescue_cmd_initrd): New function.
46255 (grub_linux_init): Remove function.
46256 (grub_linux_fini): Likewise.
46257 (GRUB_MOD_INIT): Register `initrd'.
46258 (GRUB_MOD_FINI): Unregister `initrd'.
46259 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
46260 Function removed.
46261 (grub_linux_normal_fini): Likewise.
46262 (GRUB_MOD_INIT): Register `initrd'.
46263 (GRUB_MOD_FINI): Unregister `initrd'.
46264
46265 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46266
46267 * commands/help.c: New file.
46268 * normal/arg.c (show_help): Renamed to...
46269 (grub_arg_show_help): ... this.
46270 * commands/i386/pc/halt.c: New file.
46271 * commands/i386/pc/reboot.c: Likewise.
46272 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
46273 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
46274 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
46275 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
46276 variables.
46277 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46278 `commands/help.c'.
46279 (pkgdata_MODULES): Add `help.mod'.
46280 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
46281 * grub/i386/pc/init.h (grub_reboot): New prototype.
46282 (grub_halt): Likewise.
46283 * include/grub/normal.h (grub_arg_show_help): New prototype.
46284 (grub_help_init): Likewise.
46285 (grub_help_fini): Likewise.
46286 * util/grub-emu.c (main): Initialize and deinitialize the help
46287 command.
46288
46289 * normal/cmdline.c (grub_cmdline_get): Doc fix.
46290
46291 * normal/command.c (grub_command_init): Fixed the description of
46292 the `set' and `unset' commands.
46293
46294 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46295
46296 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
46297 function.
46298 * commands/ieee1275/halt.c: New file.
46299 * commands/ieee1275/reboot.c: Likewise.
46300 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
46301 `__attribute__ ((unused))'. Some GCS related fixed.
46302 (grub_suspend_init) [GRUB_UTIL]: Function removed.
46303 (grub_suspend_fini): Likewise.
46304 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
46305 and `halt.mod'.
46306 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
46307 (halt_mod_CFLAGS): New variables.
46308 * include/grub/powerpc/ieee1275/ieee1275.h
46309 (grub_ieee1275_interpret): New prototype.
46310
46311 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
46312
46313 * include/grub/misc.h (memmove): New prototype.
46314 (memcpy): Likewise.
46315
46316 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
46317
46318 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
46319 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
46320
46321 2005-01-22 Marco Gerards <metgerards@student.han.nl>
46322
46323 * kern/misc.c (grub_strndup): Function rewritten.
46324
46325 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
46326
46327 * normal/menu.c (TERM_WIDTH): Macro redefined.
46328 (TERM_TOP_BORDER_Y): Likewise.
46329 (draw_border): Replaced while-loop by a for-loop. Make the number
46330 of lines consistent with the number of lines displayed in
46331 print_entries. Added a margin below the rectangle.
46332 (print_entry): Make the entry fit in the rectangle.
46333 (print_entries): Display the scroll arrows next to the right
46334 border.
46335
46336 2005-01-21 Marco Gerards <metgerards@student.han.nl>
46337
46338 * fs/minix.c (grub_minix_find_file): Reserve more space for
46339 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
46340 `grub_strncpy' to copy `path' into it.
46341
46342 2005-01-21 Marco Gerards <metgerards@student.han.nl>
46343
46344 Add the loopback device, a device via which files can be accessed
46345 as devices.
46346
46347 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
46348 (pkgdata_MODULES): Add loopback.mod.
46349 (loopback_mod_SOURCES): New variable.
46350 (loopback_mod_CFLAGS): Likewise.
46351 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46352 `disk/loopback.c'.
46353 (pkgdata_MODULES): Add loopback.mod.
46354 (loopback_mod_SOURCES): New variable.
46355 (loopback_mod_CFLAGS): Likewise.
46356 * disk/loopback.c: new file.
46357 * include/grub/normal.h (grub_loop_init): New prototype.
46358 (grub_loop_fini): New prototype.
46359 * util/grub-emu.c (main): Initialize and de-initialize loopback
46360 support.
46361 * include/grub/disk.h (grub_disk_dev_id): Add
46362 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
46363
46364 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
46365
46366 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
46367 function.
46368 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
46369 (suspend_mod_SOURCES): New variable.
46370 (suspend_mod_CFLAGS): Likewise.
46371 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
46372 New prototype.
46373 * commands/ieee1275/suspend.c: New file.
46374
46375 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46376
46377 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
46378 ((unused))' to `__attribute__ ((used))'.
46379 (GRUB_MOD_FINI): Likewise.
46380 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
46381 * genmk.rb (PModule): Assign space to common symbols when linking
46382 modules.
46383
46384 2005-01-20 Marco Gerards <metgerards@student.han.nl>
46385
46386 * include/grub/mm.h (grub_mm_init_region): Change the type of the
46387 `unsigned' arguments to `grub_size_t'.
46388 (grub_malloc): Likewise.
46389 (grub_realloc): Likewise.
46390 (grub_memalign): Likewise.
46391 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
46392 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46393 * util/misc.c (grub_malloc): Likewise.
46394 (grub_realloc): Likewise.
46395 * kern/mm.c (get_header_from_pointer): Change the casts to
46396 `unsigned' into a cast to `grub_size_t'.
46397
46398 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
46399 point to `currnode' when `currnode' is changed.
46400
46401 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
46402 Schottelius <nico-linux@schottelius.org>.
46403
46404 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
46405
46406 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
46407 (note_path): Remove variable.
46408 (GRUB_IEEE1275_NOTE_NAME): New macro.
46409 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
46410 (grub_ieee1275_note_hdr): New structure.
46411 (grub_ieee1275_note_desc): Likewise.
46412 (grub_ieee1275_note): Likewise.
46413 (load_note): Remove `dir' argument. All callers updated. Remove
46414 `note_img' and `path'. Do not load a file from `note_path'.
46415 Initialize a struct grub_ieee1275_note and write that to `out'.
46416 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
46417
46418 2005-01-05 Marco Gerards <metgerards@student.han.nl>
46419
46420 * util/misc.c (grub_util_read_image): Revert last change. It
46421 called `grub_util_read_at', which seeks from the beginning of the
46422 file.
46423
46424 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
46425
46426 * TODO: Add note about endianness in grub-mkimage.
46427 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
46428 section.
46429 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
46430 (grub_mkimage_SOURCES): New target.
46431 * include/grub/kernel.h (grub_start_addr): Remove variable.
46432 (grub_end_addr): Likewise.
46433 (grub_total_module_size): Likewise.
46434 (grub_kernel_image_size): Likewise.
46435 (GRUB_MODULE_MAGIC): New constant.
46436 (grub_module_info): New structure.
46437 (grub_arch_modules_addr): New prototype.
46438 (grub_get_end_addr): Remove prototype.
46439 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
46440 * include/grub/powerpc/ieee1275/kernel.h: New file.
46441 * include/grub/util/misc.h (grub_util_get_fp_size): New
46442 prototype.
46443 (grub_util_read_at): Likewise.
46444 (grub_util_write_image_at): Likewise.
46445 * kern/main.c (grub_get_end_addr): Remove function.
46446 (grub_load_modules): Call grub_arch_modules_addr instead of using
46447 grub_end_addr. Look for a grub_module_info struct in memory. Use
46448 the grub_module_info fields instead of calling grub_get_end_addr
46449 as loop conditions. Move grub_add_unused_region code here.
46450 (grub_add_unused_region): Remove function.
46451 * kern/i386/pc/init.c: Include grub/cache.h.
46452 (grub_machine_init): Remove call to grub_get_end_addr. Remove
46453 one call to add_mem_region.
46454 (grub_arch_modules_addr): New function.
46455 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
46456 (grub_total_module_size): Likewise.
46457 Include grub/machine/kernel.h.
46458 (grub_arch_modules_addr): New function.
46459 * util/grub-emu.c (grub_end_addr): Remove variable.
46460 (grub_total_module_size): Likewise.
46461 (grub_arch_modules_addr): New function.
46462 * util/misc.c: Include unistd.h.
46463 (grub_util_get_fp_size): New function.
46464 (grub_util_read_at): Likewise.
46465 (grub_util_write_image_at): Likewise.
46466 (grub_util_read_image): Call grub_util_read_at.
46467 (grub_util_write_image): Call grub_util_write_image_at.
46468 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
46469 additional memory in kernel_img for a struct grub_module_info.
46470 Fill in that grub_module_info.
46471 * util/powerpc/ieee1275/grub-mkimage.c: New file.
46472
46473 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46474
46475 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
46476 New function.
46477 * include/grub/powerpc/ieee1275/ieee1275.h
46478 (grub_ieee1275_milliseconds): New prototype.
46479 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
46480 Change to 1000.
46481 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
46482 grub_ieee1275_milliseconds.
46483
46484 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46485
46486 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
46487 variable.
46488 (find_options): New function.
46489 (cmain): Call find_options.
46490 * include/grub/powerpc/ieee1275/ieee1275.h
46491 (grub_ieee1275_realmode): New extern variable.
46492 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
46493 grub_map if grub_ieee1275_realmode is false.
46494
46495 2004-12-29 Marco Gerards <metgerards@student.han.nl>
46496
46497 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
46498 lines are inserted and make it work like readline. Reported by
46499 Vincent Pelletier <subdino2004@yahoo.fr>.
46500
46501 2004-12-28 Marco Gerards <metgerards@student.han.nl>
46502
46503 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
46504
46505 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
46506 `kern/powerpc/cache.S'.
46507
46508 2004-12-27 Marco Gerards <metgerards@student.han.nl>
46509
46510 * genmk.rb: Handle the `Program' class in the main loop. Written
46511 by Johan Rydberg <jrydberg@gnu.org>.
46512 (Program): New class.
46513 (programs): New variable.
46514 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
46515 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
46516 instead of "grub/kernel.h". Include <grub/machine/init.h>.
46517 (help_arch): Function removed.
46518 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
46519 `powerpc/libgcc.h' and `loader.h'.
46520 (pkgdata_PROGRAMS): New variable.
46521 (sbin_UTILITIES): Variable removed.
46522 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
46523 (grubof_SOURCES): Variable re-defined so it only includes the
46524 core functionality.
46525 (grubof_CFLAGS): Remove `-DGRUBOF'.
46526 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
46527 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
46528 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
46529 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
46530 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
46531 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
46532 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
46533 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
46534 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
46535 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
46536 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
46537 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
46538 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
46539 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
46540 (pc_mod_CFLAGS): New variables.
46541 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
46542 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
46543 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
46544 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
46545 Moved from here...
46546 * include/grub/i386/pc/init.h (grub_os_area_addr)
46547 (rub_os_area_size): ... to here.
46548 * include/grub/powerpc/ieee1275/ieee1275.h
46549 (grub_ieee1275_entry_fn): Export symbol.
46550 * include/grub/powerpc/ieee1275/init.h: New file.
46551 * include/grub/powerpc/libgcc.h: Likewise.
46552 * include/grub/cache.h: Likewise.
46553 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
46554 <hollis@penguinppc.org>.
46555 * kern/dl.c: Include <grub/cache.h>.
46556 (grub_dl_flush_cache): New function.
46557 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
46558 for this module.
46559 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
46560 (grub_console_init): Removed prototypes.
46561 (grub_machine_init): Don't initialize the modules anymore.
46562 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
46563 static.
46564 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
46565 Macro undef removed.
46566 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
46567 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
46568 relocation `R_PPC_REL32'. Return an error when the relocation is
46569 unknown.
46570 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
46571 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
46572 * util/misc.c (grub_arch_sync_caches): Likewise.
46573
46574 2004-12-19 Marco Gerards <metgerards@student.han.nl>
46575
46576 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
46577 `symlist.c', add `grubof_symlist.c'.
46578 (symlist.c): Variable removed.
46579 (grubof_HEADERS): Variable added.
46580 (grubof_symlist.c): New target.
46581 (kernel_syms.lst): Use `grubof_HEADERS' instead of
46582 `kernel_img_HEADERS'.
46583 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
46584 * kern/powerpc/dl.c: New file.
46585 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
46586 Function removed.
46587 (grub_arch_dl_relocate_symbols): Likewise.
46588 (grub_register_exported_symbols): Likewise.
46589
46590 2004-12-13 Marco Gerards <metgerards@student.han.nl>
46591
46592 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
46593 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
46594 to fail instead. Reported by Vincent Pelletier
46595 <subdino2004@yahoo.fr>.
46596
46597 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
46598 it is not allocated. Reported by Vincent Pelletier
46599 <subdino2004@yahoo.fr>.
46600
46601 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
46602 output so the output looks better.
46603
46604 2004-12-04 Marco Gerards <metgerards@student.han.nl>
46605
46606 Modulize the partition map support and add support for the amiga
46607 partition map.
46608
46609 * commands/ls.c: Include <grub/partition.h> instead of
46610 <grub/machine/partition.h>.
46611 * kern/disk.c: Likewise.
46612 * kern/rescue.c: Likewise.
46613 * loader/i386/pc/chainloader.c: Likewise.
46614 * normal/cmdline.c: Likewise.
46615 * kern/powerpc/ieee1275/init.c: Likewise.
46616 (grub_machine_init): Call `grub_pc_partition_map_init',
46617 `grub_amiga_partition_map_init' and
46618 `grub_apple_partition_map_init'.
46619 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
46620 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
46621 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
46622 `partition.h' and `pc_partition.h'.
46623 (grub_setup_SOURCES): Remove
46624 `disk/i386/pc/partition.c'. Add `kern/partition.c',
46625 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46626 (grub_emu_SOURCES): Likewise.
46627 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
46628 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
46629 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
46630 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46631 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
46632 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46633 (grubof_SOURCES): Likewise.
46634 * disk/i386/pc/partition.c: File removed.
46635 * disk/powerpc/ieee1275/partition.c: Likewise.
46636 * include/grub/powerpc/ieee1275/partition.h: Likewise.
46637 * include/grub/i386/pc/partition.h: Likewise.
46638 * kern/partition.c: New file.
46639 * partmap/amiga.c: Likewise.
46640 * partmap/apple.c: Likewise.
46641 * partmap/pc.c: Likewise.
46642 * include/grub/partition.h: Likewise..
46643 * include/grub/pc_partition.h: Likewise.
46644 * util/grub-emu.c: Include <grub/partition.h> instead of
46645 <grub/machine/partition.h>.
46646 (main): Call `grub_pc_partition_map_init',
46647 `grub_amiga_partition_map_init' and
46648 `grub_apple_partition_map_init' and deinitialize afterwards.
46649 * util/i386/pc/biosdisk.c: Include `#include
46650 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46651 `<grub/machine/partition.h>'.
46652 * util/i386/pc/grub-setup.c: Likewise.
46653 * util/i386/pc/biosdisk.c: Likewise.
46654 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
46655 partition information in case of a PC partition.
46656 * util/i386/pc/grub-setup.c: Include `#include
46657 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46658 `<grub/machine/partition.h>'.
46659 (setup): Only access the PC specific partition information in case
46660 of a PC partition.
46661
46662 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
46663
46664 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
46665 (grub_longjmp): Likewise.
46666 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
46667 20.
46668 * normal/powerpc/setjmp.S: New file.
46669 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46670 `normal/powerpc/setjmp.S'.
46671 (grubof_CFLAGS): Add `-DGRUBOF'.
46672 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
46673 [GRUB_UTIL && !GRUBOF].
46674
46675 2004-11-16 Marco Gerards <metgerards@student.han.nl>
46676
46677 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
46678 property named `name'. Correctly handle the error returned by
46679 `grub_ieee1275_finddevice' if a device can not be opened.
46680
46681 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
46682
46683 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
46684 `actual' for negativity.
46685 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46686 kern/fshelp.c.
46687
46688 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46689
46690 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
46691 (PAGE_OFFSET): New macro.
46692 (CRTC_ADDR_PORT): Likewise.
46693 (CRTC_DATA_PORT): Likewise.
46694 (START_ADDR_HIGH_REGISTER): Likewise.
46695 (START_ADDR_LOW_REGISTER): Likewise.
46696 (GRAPHICS_ADDR_PORT): Likewise.
46697 (GRAPHICS_DATA_PORT): Likewise.
46698 (READ_MAP_REGISTER): Likewise.
46699 (INPUT_STATUS1_REGISTER): Likewise.
46700 (INPUT_STATUS1_VERTR_BIT): Likewise.
46701 (page): New variable.
46702 (wait_vretrace): New function.
46703 (set_read_map): Likewise.
46704 (set_start_address): Likewise.
46705 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
46706 the right page.
46707 (check_vga_mem): Take the page into account.
46708 (write_char): Likewise.
46709 (write_cursor): Likewise.
46710 (scroll_up): Likewise. Copy the page to the page that is not
46711 shown and switch between both pages.
46712 (grub_vga_putchar): Fix off by one error.
46713 (grub_vga_cls): Wait for the vertical retrace. Take the page into
46714 account.
46715
46716 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46717
46718 Add support for iso9660 (including rockridge).
46719
46720 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46721 (iso9660_mod_SOURCES): New variable.
46722 (iso9660_mod_CFLAGS): Likewise.
46723 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46724 * include/grub/fs.h (grub_iso9660_init): New prototype.
46725 * util/grub-emu.c (main): Call `grub_iso9660_init'.
46726 * fs/iso9660.c: New file.
46727
46728 * include/grub/misc.h (grub_strncat): New prototype.
46729 * kern/misc.c (grub_strncat): New function.
46730
46731 * fs/hfs.c (grub_hfs_mount): Translate the error
46732 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
46733 * fs/jfs.c (grub_jfs_mount): Likewise.
46734 * fs/ufs.c (grub_ufs_mount): Likewise.
46735
46736 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
46737
46738 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
46739 which initialized BAT registers.
46740 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
46741 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46742 Move from here...
46743 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
46744 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46745 ... to here.
46746 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
46747 (grub_mapclaim): Likewise.
46748 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
46749 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
46750 hand.
46751
46752 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
46753
46754 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
46755 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
46756 -ffreestanding and -msoft-float.
46757
46758 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
46759
46760 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
46761 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
46762 set in grub_ieee1275_flags.
46763
46764 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
46765
46766 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
46767 prototype.
46768 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
46769 grub_console_init first.
46770 Change the memory range used for grub_ieee1275_claim and
46771 grub_mm_init_region.
46772 Print an error message if the claim fails.
46773 Include <grub/misc.h>.
46774
46775 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
46776
46777 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
46778 Call grub_children_iterate for device nodes of type `scsi',
46779 `ide', or `ata'.
46780 (grub_ofdisk_open): Remove manual device alias resolution.
46781 Fix memory leak when device cannot be opened.
46782 * include/grub/powerpc/ieee1275/ieee1275.h
46783 (grub_children_iterate): New prototype.
46784 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
46785 New function.
46786 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46787 Return -1 if args.size was -1.
46788
46789 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46790
46791 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
46792 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
46793 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
46794 Open Firmware's memory for it; claim memory from _start to _end.
46795 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
46796 (_end): New extern.
46797 (_start): Zero BSS from __bss_start to _end.
46798 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46799 New extern.
46800 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
46801
46802 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46803
46804 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
46805 -1 if args.base was -1.
46806
46807 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
46808
46809 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
46810 escape sequence instead of a literal ^L. Also call
46811 grub_ofconsole_gotoxy.
46812
46813 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
46814
46815 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
46816 void * arguments to grub_addr_t. All callers updated. Also make
46817 the `result' argument optional.
46818 (grub_ieee1275_release): change void * arguments to grub_addr_t.
46819 All callers updated.
46820
46821 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
46822
46823 * commands/ls.c (grub_ls_list_files): Use the string following the
46824 initial ')', if present, as the filesystem path.
46825 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
46826
46827 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
46828
46829 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
46830
46831 Make the source code of the menu interface more readable.
46832
46833 * normal/menu.c: Include grub/mm.h.
46834 (TERM_WIDTH): New macro.
46835 (TERM_HEIGHT): Likewise.
46836 (TERM_INFO_HEIGHT): Likewise.
46837 (TERM_MARGIN): Likewise.
46838 (TERM_SCROLL_WIDTH): Likewise.
46839 (TERM_TOP_BORDER_Y): Likewise.
46840 (TERM_LEFT_BORDER_X): Likewise.
46841 (TERM_BORDER_WIDTH): Likewise.
46842 (TERM_MESSAGE_HEIGHT): Likewise.
46843 (TERM_BORDER_HEIGHT): Likewise.
46844 (TERM_NUM_ENTRIES): Likewise.
46845 (TERM_FIRST_ENTRY_Y): Likewise.
46846 (TERM_ENTRY_WIDTH): Likewise.
46847 (TERM_CURSOR_X): Likewise.
46848 (draw_border): Use macros instead of magic numbers.
46849 (print_entry): Likewise.
46850 (print_entries): Likewise.
46851 (run_menu): Likewise. Also, handle the key 'e'.
46852 (run_menu_entry): Ignore empty command lines.
46853 (print_message): Added a new argument EDIT. If EDIT is true,
46854 print a different message.
46855 (init_page): Likewise.
46856 (edit_menu_entry): New function. Not implemented yet.
46857
46858 2004-09-17 Marco Gerards <metgerards@student.han.nl>
46859
46860 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
46861 can be loaded from normal mode.
46862
46863 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
46864 `multiboot.mod'.
46865 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
46866 (multiboot_mod_CFLAGS): New variables.
46867 * loader/i386/pc/linux_normal.c: New file.
46868 * loader/i386/pc/multiboot_normal.c: Likewise.
46869
46870 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
46871 attribute `unused'.
46872
46873 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
46874 `fdiro' to read the mode information from instead of `diro'.
46875
46876 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
46877 looking up a symlink.
46878
46879 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
46880 macro.
46881 * normal/command.c (grub_command_execute): Don't parse the
46882 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
46883 flags of the command.
46884
46885 * normal/menu.c (grub_menu_run): Fix typo.
46886
46887 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
46888
46889 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
46890
46891 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
46892 `y + 1' instead of `y - 1'.
46893
46894 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
46895
46896 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
46897
46898 From Hollis Blanchard <hollis@penguinppc.org>:
46899 * kern/misc.c (memmove): New alias for grub_memmove.
46900 (memcmp): New alias for grub_memcmp.
46901 (memset): New alias for grub_memset.
46902 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46903 Change "int handle" to "grub_ieee1275_phandle_t handle".
46904 * include/grub/powerpc/ieee1275/ieee1275.h
46905 (grub_ieee1275_get_property): Likewise.
46906
46907 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
46908
46909 Added normal mode command `chainloader' as module chain.mod, which
46910 depends on normal.mod and _chain.mod.
46911
46912 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
46913 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
46914 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
46915 Deleted prototype.
46916 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
46917 but arguments parsing moved to ...
46918 (grub_chainloader_cmd): ... here. New function.
46919 * include/grub/i386/pc/chainloader.h: New file.
46920 * loader/i386/pc/chainloader_normal.c: Likewise.
46921
46922 2004-09-11 Marco Gerards <metgerards@student.han.nl>
46923
46924 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
46925 (grub_mkimage_LDFLAGS): Likewise.
46926 (grub_emu_SOURCES): Likewise.
46927 (kernel_img_HEADERS): Added fshelp.h.
46928 * fs/ext2.c: Include <grub/fshelp.h>.
46929 (FILETYPE_REG): New macro.
46930 (FILETYPE_INO_REG): Likewise.
46931 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
46932 Changed all users.
46933 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
46934 all users.
46935 (grub_fshelp_node): New struct.
46936 (grub_ext2_data): Added member `diropen'. Changed member `inode'
46937 to a pointer.
46938 (grub_ext2_get_file_block): Removed function.
46939 (grub_ext2_read_block): New function.
46940 (grub_ext2_read_file): Replaced parameter `data' by `node'.
46941 This function was written.
46942 (grub_ext2_mount): Read the root inode. Create a diropen struct.
46943 (grub_ext2_find_file): Removed function.
46944 (grub_ext2_read_symlink): New function.
46945 (grub_ext2_iterate_dir): Likewise.
46946 (grub_ext2_open): Rewritten.
46947 (grub_ext2_dir): Rewritten.
46948 * include/grub/fshelp.h: New file.
46949 * fs/fshelp.c: Likewise.
46950
46951 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
46952
46953 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
46954 (print_message): Add a missing newline.
46955 (run_menu): Added timeout support.
46956 (run_menu_entry): New local function.
46957 (grub_menu_run): Added support for booting.
46958
46959 * kern/loader.c (grub_loader_is_loaded): New function.
46960
46961 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
46962 (grub_get_rtc): Exported.
46963
46964 * include/grub/i386/pc/time.h: Include grub/symbol.h.
46965 (grub_get_rtc): Exported.
46966
46967 * include/grub/normal.h (struct grub_command_list): Remove
46968 constant from the member `command'.
46969
46970 * include/grub/loader.h (grub_loader_is_loaded): Declared.
46971
46972 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
46973
46974 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
46975
46976 2004-08-28 Marco Gerards <metgerards@student.han.nl>
46977
46978 Add support for the JFS filesystem.
46979
46980 * fs/jfs.c: New file.
46981 * include/grub/fs.h (grub_jfs_init): New prototype.
46982 (grub_jfs_fini): New prototype.
46983 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
46984 (grub_emu_SOURCES): Likewise.
46985 (pkgdata_MODULES): Add jfs.mod.
46986 (jfs_mod_SOURCES): New variable.
46987 (jfs_mod_CFLAGS): Likewise.
46988 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
46989 (grubof_SOURCES): Likewise.
46990 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
46991
46992 * fs/fat.c (grub_fat_find_dir): Convert the filename little
46993 endian to the host endian.
46994 (grub_fat_utf16_to_utf8): Move function from there...
46995 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
46996 the endianness of the source string anymore.
46997 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
46998
46999 2004-08-24 Marco Gerards <metgerards@student.han.nl>
47000
47001 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
47002 (grub_boot_fini) [GRUB_UTIL]: Likewise.
47003 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
47004 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
47005
47006 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
47007 (grub_hfs_iterate_dir): Make the function static. Add prototypes
47008 for `node_found' and `it_dir'.
47009 (grub_hfs_dir): Add prototype for `dir_hook'.
47010
47011 * fs/minix.c (grub_minix_get_file_block): Add prototype for
47012 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
47013 and `indir32' to silence a gcc warning.
47014
47015 * include/grub/fs.h (grub_hfs_init): New prototype.
47016 (grub_hfs_fini): Likewise.
47017
47018
47019 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
47020
47021 Each disk device has its own id now. This is useful to make use
47022 of multiple disk devices.
47023
47024 * include/grub/disk.h (grub_disk_dev_id): New enum.
47025 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
47026 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
47027
47028 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
47029 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
47030
47031 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
47032 GRUB_DISK_DEVICE_OFDISK_ID as an id.
47033
47034 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
47035 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
47036
47037 * include/grub/disk.h (struct grub_disk_dev): Added a new member
47038 "id" which is used by the cache manager.
47039
47040 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
47041 of just "GRUB".
47042
47043 2004-08-18 Marco Gerards <metgerards@student.han.nl>
47044
47045 * fs/hfs.c: New file.
47046 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
47047 (grub_emu_SOURCES): Likewise.
47048 (pkgdata_MODULES): Add hfs.mod.
47049 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
47050 (grubof_SOURCES): Likewise.
47051 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
47052
47053 * include/grub/misc.h (grub_strncasecmp): Add prototype.
47054 * kern/misc.c (grub_strncasecmp): Add function.
47055
47056 2004-08-14 Marco Gerards <metgerards@student.han.nl>
47057
47058 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
47059 with parentheses.
47060
47061 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
47062 (grub_ext2_dir): In case the directory entry type is unknown, read
47063 it from the inode.
47064
47065 2004-08-02 Peter Bruin <pjbruin@dds.nl>
47066
47067 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
47068 grub_load_linux instead of grub_rescue_cmd_linux as second
47069 argument of grub_rescue_register_command.
47070
47071 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
47072
47073 2004-07-27 Marco Gerards <metgerards@student.han.nl>
47074
47075 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
47076 function.
47077 * commands/boot.c: Remove the check for `GRUB_UTIL'.
47078 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
47079 `loader/powerpc/ieee1275/linux.c',
47080 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
47081 * include/grub/powerpc/ieee1275/ieee1275.h
47082 (grub_ieee1275_release): New prototype.
47083 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
47084 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
47085 normal, boot, linux and linux_normal.
47086 * loader/powerpc/ieee1275/linux.c: New file.
47087 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47088
47089 2004-07-12 Marco Gerards <metgerards@student.han.nl>
47090
47091 * normal/arg.c (grub_arg_parse): Correct error handling after
47092 reallocating the argumentlist (check if `argl' is not null instead
47093 of checking if `args' is not null).
47094 * kern/mm.c (grub_realloc): Return the same pointer when using the
47095 same region, instead of returning the header address.
47096
47097 2004-07-11 Marco Gerards <metgerards@student.han.nl>
47098
47099 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
47100 one block instead of two when looking for the initial partition.
47101 (grub_partition_probe): Initialize the local variable `p' with 0.
47102 Use base 10 for the grub_strtoul call.
47103 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
47104 need for one local variable.
47105 (grub_strtoul): Don't add the new value to `num', instead of that
47106 just assign it.
47107
47108 2004-07-11 Marco Gerards <metgerards@student.han.nl>
47109
47110 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
47111 (pxeboot_img_SOURCES): New variable.
47112 (pxeboot_img_ASFLAGS): Likewise.
47113 (pxeboot_img_LDFLAGS): Likewise.
47114 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
47115 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
47116 <lode_leroy@hotmail.com>.
47117
47118 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47119
47120 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
47121 there was no input.
47122
47123 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47124
47125 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
47126 the history buffer logic.
47127
47128 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47129
47130 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
47131 (FILETYPE_INO_SYMLINK): New macros.
47132 (grub_ext2_find_file): Check if the node is a directory using the
47133 inode stat information instead of using the filetype in the
47134 dirent. Exclude the first character of an absolute symlink.
47135 (grub_ext2_dir): Mask out the filetype part of the mode member of
47136 the inode.
47137
47138 2004-05-24 Marco Gerards <metgerards@student.han.nl>
47139
47140 Add support for UFS version 1 and 2. Add support for the minix
47141 filesystem version 1 and 2, both the variants with 14 and 30 long
47142 filenames.
47143
47144 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
47145 fs/minix.c.
47146 (grub_emu_SOURCES): Likewise.
47147 (pkgdata_MODULES): Add ufs.mod and minix.mod.
47148 (ufs_mod_SOURCES): New variable.
47149 (ufs_mod_CFLAGS): Likewise.
47150 (minix_mod_SOURCES): Likewise.
47151 (minix_mod_CFLAGS): Likewise.
47152 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
47153 fs/minix.c.
47154 (grubof_SOURCES): Likewise.
47155 * fs/ufs.c: New file.
47156 * fs/minix.c: New file.
47157 * include/grub/fs.h (grub_ufs_init): New prototype.
47158 (grub_ufs_fini): Likewise.
47159 (grub_minix_init): Likewise.
47160 (grub_minix_fini): Likewise.
47161 * util/grub-emu.c (main): Initialize and deinitialize UFS and
47162 minix fs.
47163
47164 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
47165
47166 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
47167 commands/ls.c, commands/terminal.c, commands/boot.c,
47168 commands/cmp.c and commands/cat.c.
47169 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
47170
47171 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
47172 "env.h"
47173
47174 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47175
47176 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
47177 and grub_, respectively. Because the conversion is trivial and
47178 mechanical, I omit the details here. Please refer to the CVS
47179 if you need more information.
47180
47181 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47182
47183 * include/pupa: Renamed to ...
47184 * include/grub: ... this.
47185 * util/i386/pc/pupa-mkimage.c: Renamed to ...
47186 * util/i386/pc/grub-mkimage.c: ... this.
47187 * util/i386/pc/pupa-setup.c: Renamed to ...
47188 * util/i386/pc/grub-setup.c: ... this.
47189 * util/pupa-emu.c: Renamed to ...
47190 * util/grub-emu.c: ... this.
47191
47192 2004-03-29 Marco Gerards <metgerards@student.han.nl>
47193
47194 Add support for the newworld apple macintosh (PPC). This has been
47195 tested on the powerbook 2000 only. It only adds support for
47196 generic ieee1275 functions, console and disk support. This should
47197 be easy to port to other architectures with support for Open
47198 Firmware.
47199
47200 * configure.ac: Accept the powerpc as host_cpu. In the case of
47201 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
47202 specific tests are only executed while building for the i386.
47203 Inverse test for crosscompile.
47204 * genmk.rb (Utility): Allow assembler files.
47205 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
47206 * conf/powerpc-ieee1275.rmk: New file.
47207 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
47208 * disk/powerpc/ieee1275/partition.c: Likewise.
47209 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
47210 * include/pupa/powerpc/ieee1275/console.h: Likewise.
47211 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
47212 * include/pupa/powerpc/ieee1275/time.h: Likewise.
47213 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
47214 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
47215 * include/pupa/powerpc/ieee1275/loader.h
47216 * include/pupa/powerpc/setjmp.h: Likewise.
47217 * include/pupa/powerpc/types.h: Likewise.
47218 * kern/powerpc/ieee1275/init.c: Likewise.
47219 * kern/powerpc/ieee1275/openfw.c: Likewise.
47220 * term/powerpc/ieee1275/ofconsole.c: Likewise.
47221
47222 These files were written by Johan Rydberg
47223 (jrydberg@night.trouble.net) and I only modified them slightly.
47224
47225 * boot/powerpc/ieee1275/cmain.c: New file.
47226 * boot/powerpc/ieee1275/crt0.S: Likewise.
47227 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
47228 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
47229
47230 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
47231
47232 * Makefile.in: Update copyright.
47233 * genmodsrc.sh: Likewise.
47234 * gensymlist.sh: Likewise.
47235 * term/i386/pc/vga.c: Indent correctly.
47236
47237 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
47238 bugreporting address.
47239 * util/i386/pc/pupa-setup.c (usage): Likewise,
47240 (main): Call pupa_ext2_init and pupa_ext2_fini.
47241
47242 * fs/fat.c (log2): Renamed to ...
47243 (fat_log2): ... this.
47244 All callers changed.
47245 * kern/misc.c (memcpy): Alias to pupa_memmove.
47246 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
47247 lvalue cast.
47248 * util/console.c (pupa_ncurses_fini): Return 0.
47249
47250 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
47251 Move fail label here.
47252 [__GNU__]: Don't warn when using stat.
47253 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
47254 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
47255 long int. Use strtol instead of strtoul.
47256
47257 2004-03-14 Marco Gerards <metgerards@student.han.nl>
47258
47259 * commands/boot.c: New file.
47260 * commands/cat.c: Likewise.
47261 * commands/cmp.c: Likewise.
47262 * commands/ls.c: Likewise.
47263 * commands/terminal.c: Likewise.
47264 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
47265 (pupa_register_command): Changed interface to match the new
47266 argument parser.
47267 (pupa_command_execute): Changed (almost rewritten) so it uses
47268 pupa_split_command. Added support for setting variables using the
47269 syntax `foo=bar'.
47270 (rescue_command): Changed to work with the new argument parser.
47271 (terminal_command): Moved from here to commands/terminal.c.
47272 (set_command): New function.
47273 (unset_command): New function.
47274 (insmod_command): New function.
47275 (rmmod_command): New function.
47276 (lsmod_command): New function.
47277 (pupa_command_init): Don't initialize the command terminal
47278 anymore. Initialize the commands set, unset, insmod, rmmod and
47279 lsmod.
47280 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
47281 (kernel_img_HEADERS): Add arg.h and env.h.
47282 (pupa_mkimage_LDFLAGS): Add kern/env.c.
47283 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
47284 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
47285 normal/arg.c.
47286 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
47287 terminal.mod.
47288 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
47289 (boot_mod_SOURCES): New variable.
47290 (terminal_mod_SOURCES): Likewise.
47291 (ls_mod_SOURCES): Likewise.
47292 (cmp_mod_SOURCES): Likewise.
47293 (cat_mod_SOURCES): Likewise.
47294
47295 * normal/arg.c: New file.
47296 * kern/env.c: Likewise.
47297 * include/pupa/arg.h: Likewise.
47298 * include/pupa/env.h: Likewise.
47299 * font/manager.c (font_command): Changed to match argument parsing
47300 interface changes.
47301 (PUPA_MOD_INIT): Likewise.
47302 * hello/hello.c (pupa_cmd_hello): Likewise.
47303 (PUPA_MOD_INIT): Likewise.
47304 * include/pupa/disk.h: Include <pupa/device.h>.
47305 (pupa_print_partinfo): New prototype.
47306 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
47307 (pupa_dl_get_prefix): Likewise.
47308 * include/pupa/misc.h: Include <pupa/err.h>.
47309 (pupa_isgraph): New prototype.
47310 (pupa_isdigit): Likewise.
47311 (pupa_split_cmdline): Likewise.
47312 * include/pupa/normal.h: Include <pupa/arg.h>.
47313 (pupa_command): Changed the prototype of the member `func' to
47314 match the argument parsing interface. Added member `options'.
47315 (pupa_register_command): Updated to match function.
47316 (pupa_arg_parse): New prototype.
47317 (pupa_hello_init) [PUPA_UTIL]: New prototype.
47318 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
47319 (pupa_ls_init) [PUPA_UTIL]: Likewise.
47320 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
47321 (pupa_cat_init) [PUPA_UTIL]: Likewise.
47322 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
47323 (pupa_boot_init) [PUPA_UTIL]: Likewise.
47324 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
47325 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
47326 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
47327 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
47328 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
47329 * kern/disk.c: Include <pupa/file.h>.
47330 (pupa_print_partinfo): New function.
47331 * kern/dl.c: Include <pupa/env.h>.
47332 (pupa_dl_dir): Variable removed.
47333 (pupa_dl_load): Use the environment variable `prefix' instead of
47334 the variable pupa_dl_dir.
47335 (pupa_dl_set_prefix): Function removed.
47336 (pupa_dl_get_prefix): Likewise.
47337 * kern/i386/pc/init.c: Include <pupa/env.h>.
47338 (pupa_machine_init): Use the environment variable `prefix' instead of
47339 using pupa_dl_set_prefix to set the prefix.
47340 * kern/main.c: Include <pupa/env.h>.
47341 (pupa_set_root_dev): Use the environment variable `prefix' instead of
47342 using pupa_dl_get_prefix to get the prefix.
47343 * kern/misc.c: Include <pupa/env.h>.
47344 (pupa_isdigit): New function.
47345 (pupa_isgraph): Likewise.
47346 (pupa_ftoa): Likewise.
47347 (pupa_vsprintf): Added support for printing values of the type
47348 `double'. Make it possible to format variable output when using
47349 formatting like `%1.2%f'.
47350 (pupa_split_cmdline): New function.
47351 * kern/rescue.c: Include <pupa/env.h>.
47352 (next_word): Removed function.
47353 (pupa_rescue_cmd_prefix): Likewise.
47354 (pupa_rescue_cmd_set): New function.
47355 (pupa_rescue_cmd_unset): New function.
47356 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
47357 split the command line instead of splitting it here. Added
47358 support for setting variables using the syntax `foo=bar'. Don't
47359 initialize the prefix command anymore. Initialized the set and
47360 unset commands.
47361 * normal/cmdline.c: Include <pupa/env.h>.
47362 (pupa_tab_complete): Added prototypes for print_simple_completion,
47363 print_partition_completion, add_completion, iterate_commands,
47364 iterate_dev, iterate_part and iterate_dir. Moved code to print
47365 partition information from here to kern/disk.c.
47366 (pupa_cmdline_run): Don't check if the function exists anymore.
47367 * normal/main.c: Include <pupa/env.h>.
47368 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
47369 instead of using pupa_dl_get_prefix to get the prefix.
47370 * term/i386/pc/vga.c: Include <pupa/arg.h>.
47371 (check_vga_mem): Cast pointers to `void *' to silence a gcc
47372 warning.
47373 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
47374 (pupa_vga_setcolor): Declare unused variables with `__attribute__
47375 ((unused))' to silence a gcc warning.
47376 (pupa_vga_setcolor): Likewise.
47377 (debug_command): Changed to match argument parsing
47378 interface changes.
47379 * util/pupa-emu.c: Include <pupa/env.h>.
47380 (options): Added 0's for unused fields to silence a gcc warning.
47381 (argp): Likewise.
47382 (main): Use the environment variable `prefix' instead of using
47383 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
47384 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
47385 and terminal.
47386
47387 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
47388 * util/misc.c: Include <malloc.h>.
47389 (pupa_malloc): Rewritten so errors are correctly reported.
47390 (pupa_realloc): Likewise.
47391 (pupa_memalign): Likewise.
47392 (pupa_mm_init_region): Declare unused variables with
47393 `__attribute__ ((unused))' to silence a gcc warning.
47394 * normal/i386/setjmp.S: Remove tab at the end of the file to
47395 silence a gcc warning.
47396 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
47397 variables with `__attribute__ ((unused))' to silence a gcc
47398 warning.
47399 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
47400 local variable i unsigned to silence a gcc warning.
47401
47402 * kern/term.c: Include <pupa/misc.h>.
47403 (pupa_more_lines): New variable.
47404 (pupa_more): Likewise.
47405 (pupa_putcode): When the pager is active pause at the end of every
47406 screen.
47407 (pupa_set_more): New function.
47408 * include/pupa/term.h (pupa_set_more): New prototype.
47409
47410
47411 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
47412
47413 Now this project is GRUB 2 rather than PUPA. The location of
47414 the CVS repository was moved to GRUB's.
47415
47416 * configure.ac: Use bug-grub as the reporting address.
47417 Use GRUB instead of PUPA.
47418 Change the version number to 1.90.
47419
47420 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
47421
47422 * genkernsyms.sh: Updated copyright information.
47423 * genmk.rb: Likewise.
47424 * genmodsrc.sh: Likewise.
47425 * gensymlist.sh: Likewise.
47426 * boot/i386/pc/boot.S: Likewise.
47427 * boot/i386/pc/diskboot.S: Likewise.
47428 * disk/i386/pc/biosdisk.c: Likewise.
47429 * disk/i386/pc/partition.c: Likewise.
47430 * font/manager.c: Likewise.
47431 * fs/ext2.c: Likewise.
47432 * fs/fat.c: Likewise.
47433 * include/pupa/boot.h: Likewise.
47434 * include/pupa/device.h: Likewise.
47435 * include/pupa/disk.h: Likewise.
47436 * include/pupa/dl.h: Likewise.
47437 * include/pupa/elf.h: Likewise.
47438 * include/pupa/err.h: Likewise.
47439 * include/pupa/file.h: Likewise.
47440 * include/pupa/font.h: Likewise.
47441 * include/pupa/fs.h: Likewise.
47442 * include/pupa/kernel.h: Likewise.
47443 * include/pupa/loader.h: Likewise.
47444 * include/pupa/misc.h: Likewise.
47445 * include/pupa/mm.h: Likewise.
47446 * include/pupa/net.h: Likewise.
47447 * include/pupa/normal.h: Likewise.
47448 * include/pupa/rescue.h: Likewise.
47449 * include/pupa/setjmp.h: Likewise.
47450 * include/pupa/symbol.h: Likewise.
47451 * include/pupa/term.h: Likewise.
47452 * include/pupa/types.h: Likewise.
47453 * include/pupa/i386/setjmp.h: Likewise.
47454 * include/pupa/i386/types.h: Likewise.
47455 * include/pupa/i386/pc/biosdisk.h: Likewise.
47456 * include/pupa/i386/pc/boot.h: Likewise.
47457 * include/pupa/i386/pc/console.h: Likewise.
47458 * include/pupa/i386/pc/init.h: Likewise.
47459 * include/pupa/i386/pc/kernel.h: Likewise.
47460 * include/pupa/i386/pc/linux.h: Likewise.
47461 * include/pupa/i386/pc/loader.h: Likewise.
47462 * include/pupa/i386/pc/memory.h: Likewise.
47463 * include/pupa/i386/pc/multiboot.h: Likewise.
47464 * include/pupa/i386/pc/partition.h: Likewise.
47465 * include/pupa/i386/pc/time.h: Likewise.
47466 * include/pupa/i386/pc/vga.h: Likewise.
47467 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
47468 * include/pupa/util/getroot.h: Likewise.
47469 * include/pupa/util/misc.h: Likewise.
47470 * include/pupa/util/resolve.h: Likewise.
47471 * kern/device.c: Likewise.
47472 * kern/disk.c: Likewise.
47473 * kern/dl.c: Likewise.
47474 * kern/err.c: Likewise.
47475 * kern/file.c: Likewise.
47476 * kern/fs.c: Likewise.
47477 * kern/loader.c: Likewise.
47478 * kern/main.c: Likewise.
47479 * kern/misc.c: Likewise.
47480 * kern/mm.c: Likewise.
47481 * kern/rescue.c: Likewise.
47482 * kern/term.c: Likewise.
47483 * kern/i386/dl.c: Likewise.
47484 * kern/i386/pc/init.c: Likewise.
47485 * kern/i386/pc/lzo1x.S: Likewise.
47486 * kern/i386/pc/startup.S: Likewise.
47487 * loader/i386/pc/chainloader.c: Likewise.
47488 * loader/i386/pc/linux.c: Likewise.
47489 * loader/i386/pc/multiboot.c: Likewise.
47490 * normal/cmdline.c: Likewise.
47491 * normal/command.c: Likewise.
47492 * normal/main.c: Likewise.
47493 * normal/menu.c: Likewise.
47494 * normal/i386/setjmp.S: Likewise.
47495 * term/i386/pc/console.c: Likewise.
47496 * term/i386/pc/vga.c: Likewise.
47497 * util/console.c: Likewise.
47498 * util/genmoddep.c: Likewise.
47499 * util/misc.c: Likewise.
47500 * util/pupa-emu.c: Likewise.
47501 * util/resolve.c: Likewise.
47502 * util/unifont2pff.rb: Likewise.
47503 * util/i386/pc/biosdisk.c: Likewise.
47504 * util/i386/pc/getroot.c: Likewise.
47505 * util/i386/pc/pupa-mkimage.c: Likewise.
47506 * util/i386/pc/pupa-setup.c: Likewise.
47507
47508 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
47509
47510 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
47511 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
47512 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
47513 reading and reset it after reading.
47514 (pupa_ext2_close): Return PUPA_ERR_NONE.
47515
47516 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
47517 Correct value.
47518 (struct linux_kernel_header): Add kernel_version and
47519 initrd_addr_max.
47520 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
47521 pupa_file_read succeeds.
47522 (pupa_rescue_cmd_initrd): Implement.
47523
47524 2003-12-03 Marco Gerards <metgerards@student.han.nl>
47525
47526 * fs/ext2.c (pupa_ext2_label): New function.
47527 (pupa_ext2_fs): Added label.
47528 * fs/fat.c (pupa_fat_label): New function.
47529 (pupa_fat_fs): Added label.
47530 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
47531
47532 * kern/misc.c (pupa_strndup): New function.
47533 * include/pupa/misc.h (pupa_strndup): New prototype.
47534
47535 * include/pupa/normal.h: Include <pupa/err.h>.
47536 (pupa_set_history): New prototype.
47537 (pupa_iterate_commands): New prototype.
47538 * normal/cmdline.c: Include <pupa/machine/partition.h>,
47539 <pupa/disk.h>, <pupa/file.h>.
47540 (hist_size): New variable.
47541 (hist_lines): Likewise.
47542 (hist_end): Likewise.
47543 (hist_used): Likewise.
47544 (pupa_set_history): New function.
47545 (pupa_history_get): Likewise.
47546 (pupa_history_add): Likewise.
47547 (pupa_history_replace): Likewise.
47548 (pupa_tab_complete): Likewise.
47549 (pupa_cmdline_run): Added tab completion and history buffer. Tab
47550 completion shows partitionnames while completing partitions, this
47551 feature was suggested by Jeff Bailey.
47552 * normal/command.c (pupa_iterate_commands): New function.
47553 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
47554 (pupa_normal_init): Initialize history buffer.
47555 (PUPA_MOD_INIT): Likewise.
47556 (pupa_normal_fini): Free the history buffer.
47557 (PUPA_MOD_FINI): Likewise.
47558
47559 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
47560 key.
47561
47562 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
47563 * configure.ac [i386]: Check for regparam bug.
47564 (NESTED_FUNC_ATTR) [! i386]: Defined.
47565
47566 2003-11-17 Marco Gerards <metgerards@student.han.nl>
47567
47568 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
47569 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
47570 (pupa_emu_SOURCES): New variable.
47571 (pupa_emu_LDFLAGS): Likewise.
47572 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
47573 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
47574 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
47575 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47576 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
47577 (pupa_jmp_buf): New typedef.
47578 (pupa_setjmp) [PUPA_UTIL]: New macro.
47579 (pupa_longjmp) [PUPA_UTIL]: Likewise.
47580 * include/pupa/term.h (struct pupa_term): New member `refresh'.
47581 (pupa_refresh): New prototype.
47582 * include/pupa/util/getroot.h: New file.
47583 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
47584 it.
47585 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
47586 (pupa_rescue_cmd_cat): Likewise.
47587 (pupa_rescue_cmd_ls): Likewise.
47588 (pupa_rescue_cmd_testload): Likewise.
47589 (pupa_rescue_cmd_lsmod): Likewise.
47590 * normal/cmdline.c (pupa_cmdline_get): Likewise.
47591 * normal/menu.c (run_menu): Likewise.
47592 * kern/term.c (pupa_cls): Likewise.
47593 (pupa_refresh): New function.
47594 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
47595 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47596 * util/console.c: New file.
47597
47598 * util/i386/pc/getroot.c: New file.
47599 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
47600 (pupa_putchar): New function.
47601 (pupa_refresh): Likewise.
47602 (xgetcwd): Function moved to ...
47603 (strip_extra_slashes): Likewise.
47604 (get_prefix): Likewise.
47605 * util/i386/pc/getroot.c: ... here.
47606 (find_root_device): Function moved and renamed to...
47607 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
47608 Changed all callers.
47609 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
47610 and renamed to...
47611 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
47612 Changed all callers.
47613 * util/misc.c (pupa_memalign): New function.
47614 (pupa_mm_init_region): Likewise.
47615 (pupa_register_exported_symbols): Likewise.
47616 (pupa_putchar): Function removed.
47617 * util/pupa-emu.c: New file.
47618
47619 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
47620
47621 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
47622 (_multiboot_mod_SOURCES): New variable.
47623 (_multiboot_mod_CFLAGS): Likewise.
47624 * loader/i386/pc/multiboot.c: New file.
47625 * include/pupa/i386/pc/multiboot.h: Likewise.
47626 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
47627 (pupa_multiboot_real_boot): New function.
47628 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
47629 (pupa_multiboot_real_boot): New prototype.
47630 (pupa_rescue_cmd_multiboot): Likewise
47631 (pupa_rescue_cmd_module): Likewise.
47632
47633 * kern/loader.c (pupa_loader_set): Continue when
47634 pupa_loader_unload_func() fails.
47635 (pupa_loader_unset): New function.
47636 * include/pupa/loader.h (pupa_loader_unset): New prototype.
47637
47638 * kern/misc.c (pupa_stpcpy): New function.
47639 * include/pupa/misc.h (pupa_stpcpy): New prototype.
47640
47641 2003-11-12 Marco Gerards <metgerards@student.han.nl>
47642
47643 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
47644 for available extensions.
47645
47646 * include/pupa/i386/pc/time.h: New file.
47647 * kern/disk.c: Include <pupa/machine/time.h>.
47648 (PUPA_CACHE_TIMEOUT): New macro.
47649 (pupa_last_time): New variable.
47650 (pupa_disk_open): Flush the cache when there was a timeout.
47651 (pupa_disk_close): Reset the timer.
47652 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
47653 pupa_currticks.
47654 * util/misc.c: Include <sys/times.h>
47655 (pupa_get_rtc): New function.
47656
47657 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47658
47659 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
47660 as blocks.
47661 (pupa_ext2_get_file_block): Use blocks member.
47662
47663 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
47664 first block. Return -1 instead of pupa_errno on error.
47665
47666 2003-10-27 Marco Gerards <metgerards@student.han.nl>
47667
47668 * README: In the pupa-mkimage example use _chain instead of chain
47669 and ext2 instead of fat.
47670 * TODO: Replace ext2fs with jfs as an example. Add an item for
47671 adding journal playback for ext2fs.
47672 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
47673 (pkgdata_MODULES): Added ext2.mod.
47674 (ext2_mod_SOURCES): New variable.
47675 (ext2_mod_CFLAGS): Likewise.
47676 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
47677 * include/pupa/misc.h (pupa_strncpy): New prototype.
47678 (pupa_strcat): Likewise.
47679 (pupa_strncmp): Likewise.
47680 * kern/misc.c (pupa_strcat): Enable function.
47681 (pupa_strncpy): New function.
47682 (pupa_strncmp): Likewise.
47683 * fs/ext2.c: New file.
47684
47685 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
47686 when the read failed before retrying.
47687 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
47688 (_FILE_OFFSET_BITS): Likewise.
47689 * configure.ac: Added AC_SYS_LARGEFILE.
47690
47691 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47692
47693 * genmk.rb (PModule#rule): Make sure to get only symbol names
47694 from the output of nm.
47695 Reported by Robert Millan <rmh.grub@aybabtu.com>.
47696
47697 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47698
47699 I forgot to check in these changes for a long time. This adds
47700 incomplete support for VGA console, and this is still very
47701 buggy. Also, a lot of consideration is required for I18N,
47702 UNICODE, and VGA font issues. Therefore, assume that this is
47703 such that "better than nothing".
47704
47705 * font/manager.c: New file.
47706 * include/pupa/font.h: Likewise.
47707 * include/pupa/i386/pc/vga.h: Likewise.
47708 * term/i386/pc/vga.c: Likewise.
47709 * util/unifont2pff.rb: Likewise.
47710
47711 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
47712 (pkgdata_MODULES): Added vga.mod and font.mod.
47713 (vga_mod_SOURCES): New variables.
47714 (vga_mod_CFLAGS): Likewise.
47715 (font_mod_SOURCES): Likewise.
47716 (font_mod_CFLAGS): Likewise.
47717
47718 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
47719
47720 * include/pupa/term.h: Include pupa/err.h.
47721 (struct pupa_term): Added init and fini.
47722 Changed the argument of putchar to pupa_uint32_t.
47723
47724 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
47725 (pupa_console_real_putchar): New prototype.
47726 (pupa_console_putchar): Removed.
47727 (pupa_console_checkkey): Exported.
47728 (pupa_console_getkey): Likewise.
47729
47730 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
47731 characters.
47732
47733 * kern/term.c (pupa_term_set_current): Rewritten.
47734 (pupa_putchar): Likewise.
47735 (pupa_putcode): New function.
47736
47737 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
47738 (pupa_console_real_putchar): ... this.
47739 (pupa_vga_set_mode): New function.
47740 (pupa_vga_get_font): Likewise.
47741
47742 * normal/command.c: Include pupa/term.h.
47743 (terminal_command): New function.
47744 (pupa_command_init): Register the command "terminal".
47745
47746 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
47747 (DISP_UP): Likewise.
47748 (DISP_RIGHT): Likewise.
47749 (DISP_DOWN): Likewise.
47750 (DISP_HLINE): Likewise.
47751 (DISP_VLINE): Likewise.
47752 (DISP_UL): Likewise.
47753 (DISP_UR): Likewise.
47754 (DISP_LL): Likewise.
47755 (DISP_LR): Likewise.
47756
47757 * term/i386/pc/console.c (pupa_console_putchar): New function.
47758
47759 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
47760
47761 * util/resolve.c (pupa_util_resolve_dependencies): BUG
47762 FIX. Reverse the path_list.
47763
47764 * include/pupa/normal.h: Export pupa_register_command and
47765 pupa_unregister_command.
47766
47767 * hello/hello.c (pupa_cmd_hello): New module.
47768 * conf/i386-pc.rmk: Added hello.mod.
47769
47770 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
47771
47772 * kern/i386/pc/lzo1x.S: New file.
47773
47774 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
47775 (compress_kernel): New variable.
47776 (generate_image): Heavily modified to support compressing a
47777 large part of the core image.
47778
47779 * util/misc.c (pupa_util_read_image): Fix a file descriptor
47780 leak.
47781 (pupa_util_load_image): New function.
47782
47783 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
47784 (pupa_compressed_size): New variable.
47785 (codestart): Enable Gate A20 here.
47786 Decompress the compressed part of the core image.
47787 Rearrange the code to put functions and variables which are
47788 required for initialization in the non-compressed part.
47789 Include lzo1x.S.
47790
47791 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
47792 here.
47793
47794 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
47795
47796 * include/pupa/i386/pc/kernel.h
47797 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
47798 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
47799 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47800 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47801 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
47802
47803 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
47804
47805 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
47806 (Utility#rule): Likewise.
47807
47808 * configure.ac: Check if LZO is available.
47809
47810 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
47811
47812 * include/pupa/normal.h: New file.
47813 * include/pupa/setjmp.h: Likewise.
47814 * include/pupa/i386/setjmp.h: Likewise.
47815 * normal/cmdline.c: Likewise.
47816 * normal/command.c: Likewise.
47817 * normal/main.c: Likewise.
47818 * normal/menu.c: Likewise.
47819 * normal/i386/setjmp.S: Likewise.
47820
47821 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
47822 (pupa_rescue_cmd_initrd): Likewise.
47823
47824 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
47825 Likewise.
47826
47827 * kern/i386/pc/startup.S (translation_table): New variable.
47828 (translate_keycode): New function.
47829 (pupa_console_getkey): Call translate_keycode.
47830
47831 * kern/rescue.c (attempt_normal_mode): New function.
47832 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
47833 it failed, print a message.
47834
47835 * kern/mm.c (pupa_real_malloc): Print more information when a
47836 free magic is broken.
47837 (pupa_free): If the first free header is not free actually, set
47838 it to P.
47839
47840 * kern/main.c (pupa_load_normal_mode): Just load the module
47841 "normal".
47842 (pupa_main): Don't print the message
47843 "Entering into rescue mode..." here.
47844
47845 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
47846 Declared.
47847 (pupa_rescue_cmd_initrd): Likewise.
47848 (pupa_rescue_cmd_initrd): Likewise.
47849
47850 * include/pupa/symbol.h (FUNCTION): Specify the type.
47851 (VARIABLE): Likewise.
47852
47853 * include/pupa/err.h (pupa_err_t): Added
47854 PUPA_ERR_UNKNOWN_COMMAND.
47855
47856 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
47857 (pupa_dl_get_prefix): Likewise.
47858
47859 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
47860 Added _chain.mod and _linux.mod instead of chain.mod and
47861 linux.mod.
47862 (chain_mod_SOURCES): Renamed to ...
47863 (_chain_mod_SOURCES): ... this.
47864 (chain_mod_CFLAGS): Renamed to ...
47865 (_chain_mod_CFLAGS): ... this.
47866 (linux_mod_SOURCES): Renamed to ...
47867 (_linux_mod_SOURCES): ... this.
47868 (linux_mod_CFLAGS): Renamed to ...
47869 (_linux_mod_CFLAGS): ... this.
47870 (normal_mod_SOURCES): New variable.
47871 (normal_mod_CFLAGS): Likewise.
47872 (normal_mod_ASFLAGS): Likewise.
47873
47874 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
47875
47876 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
47877 possible.
47878
47879 * kern/dl.c (pupa_dl_ref): Refer depending modules
47880 recursively.
47881 (pupa_dl_unref): Unrefer depending modules recursively.
47882 Don't call pupa_dl_unload implicitly, because PUPA can crash if
47883 a module is unloaded before one depending on that module is
47884 unloaded.
47885 (pupa_dl_unload): Unload depending modules explicitly,
47886 if possible.
47887
47888 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
47889
47890 * include/pupa/i386/pc/linux.h: New file.
47891 * loader/i386/pc/linux.c: Likewise.
47892
47893 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
47894 Removed.
47895 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
47896 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
47897 of PUPA_CHAINLOADER_BOOT_SECTOR.
47898
47899 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
47900 (pupa_linux_prot_size): New variable.
47901 (pupa_linux_tmp_addr): Likewise.
47902 (pupa_linux_real_addr): Likewise.
47903 (pupa_linux_boot_zimage): New function.
47904 (pupa_linux_boot_bzimage): Likewise.
47905
47906 * kern/i386/pc/init.c (struct mem_region): New structure.
47907 (MAX_REGIONS): New macro.
47908 (mem_regions): New variable.
47909 (num_regions): Likewise.
47910 (pupa_os_area_addr): Likewise.
47911 (pupa_os_area_size): Likewise.
47912 (pupa_lower_mem): Likewise.
47913 (pupa_upper_mem): Likewise.
47914 (add_mem_region): New function.
47915 (compact_mem_regions): Likewise.
47916 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
47917 the size of the conventional memory and that of so-called upper
47918 memory (before the first memory hole).
47919 Instead of adding each found region to free memory, use
47920 add_mem_region and add them after removing overlaps.
47921 Also, add only 1/4 of the upper memory to free memory. The rest
47922 is used for loading OS images. Maybe this is ad hoc, but this
47923 makes it much easier to relocate OS images when booting.
47924
47925 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
47926 (pupa_enter_rescue_mode): Don't register initrd and module.
47927
47928 * kern/mm.c: Include pupa/dl.h.
47929
47930 * kern/main.c: Include pupa/file.h and pupa/device.h.
47931
47932 * kern/loader.c (pupa_loader_load_module_func): Removed.
47933 (pupa_loader_load_module): Likewise.
47934
47935 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
47936 ``.o''.
47937
47938 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
47939 (pupa_linux_tmp_addr): Likewise.
47940 (pupa_linux_real_addr): Likewise.
47941 (pupa_linux_boot_zimage): Likewise.
47942 (pupa_linux_boot_bzimage): Likewise.
47943
47944 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
47945 (pupa_upper_mem): Likewise.
47946 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
47947 module is too dangerous.
47948
47949 * include/pupa/loader.h (pupa_os_area_addr): Declared.
47950 (pupa_os_area_size): Likewise.
47951 (pupa_loader_set): Remove the first argument. Loader doesn't
47952 manage modules or initrd any longer.
47953 (pupa_loader_load_module): Removed.
47954
47955 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
47956 (linux_mod_SOURCES): New variable.
47957 (linux_mod_CFLAGS): Likewise.
47958
47959 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
47960
47961 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
47962 the length of a blocklist correctly.
47963
47964 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
47965 Use ioctl only if the OS file is a block device.
47966 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
47967 not very useful for normal files.
47968
47969 * kern/main.c (pupa_set_root_dev): New function.
47970 (pupa_load_normal_mode): Likewise.
47971 (pupa_main): Call those above.
47972
47973 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
47974 pupa_uint16_t.
47975
47976 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
47977
47978 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
47979
47980 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
47981 (setup): Configure the installed partition information and the
47982 dl prefix.
47983
47984 * loader/i386/pc/chainloader.c (my_mod): New variable.
47985 (pupa_chainloader_unload): New function.
47986 (pupa_rescue_cmd_chainloader): Refer itself.
47987 (PUPA_MOD_INIT): Save its own module in MY_MOD.
47988
47989 * kern/i386/pc/startup.S (install_partition): Removed.
47990 (version_string): Likewise.
47991 (config_file): Likewise.
47992 (pupa_install_dos_part): New variable.
47993 (pupa_install_bsd_part): Likewise.
47994 (pupa_prefix): Likewise.
47995 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
47996
47997 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
47998 and pupa/misc.h.
47999 (make_install_device): New function.
48000 (pupa_machine_init): Set the dl prefix.
48001
48002 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
48003 (buf): Renamed to ...
48004 (linebuf): ... this.
48005 (pupa_rescue_cmd_prefix): New function.
48006 (pupa_rescue_cmd_insmod): Likewise.
48007 (pupa_rescue_cmd_rmmod): Likewise.
48008 (pupa_rescue_cmd_lsmod): Likewise.
48009 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
48010 rmmod and lsmod.
48011
48012 * kern/mm.c (pupa_memalign): If failed even after invalidating
48013 disk caches, unload unneeded modules and retry.
48014
48015 * kern/misc.c (pupa_memmove): New function.
48016 (pupa_memcpy): Removed.
48017 (pupa_strcpy): New function.
48018 (pupa_itoa): Made static.
48019
48020 * kern/dl.c (pupa_dl_iterate): New function.
48021 (pupa_dl_ref): Likewise.
48022 (pupa_dl_unref): Likewise.
48023 (pupa_dl_unload): Return if succeeded or not.
48024 (pupa_dl_unload_unneeded): New function.
48025 (pupa_dl_unload_all): Likewise.
48026 (pupa_dl_init): Renamed to ...
48027 (pupa_dl_set_prefix): ... this.
48028 (pupa_dl_get_prefix): New function.
48029
48030 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
48031 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
48032 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
48033 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
48034 (pupa_install_dos_part): Declared.
48035 (pupa_install_bsd_part): Likewise.
48036 (pupa_prefix): Likewise.
48037 (pupa_boot_drive): Likewise.
48038
48039 * include/pupa/types.h: Fix a typo.
48040
48041 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
48042 pupa_memmove.
48043 (pupa_memmove): Declared.
48044 (pupa_strcpy): Likewise.
48045
48046 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
48047 pupa_mod_init takes one argument, its own module.
48048 (pupa_dl_unload_unneeded): Declared.
48049 (pupa_dl_unload_all): Likewise.
48050 (pupa_dl_ref): Likewise.
48051 (pupa_dl_unref): Likewise.
48052 (pupa_dl_iterate): Likewise.
48053 (pupa_dl_init): Renamed to ...
48054 (pupa_dl_set_prefix): ... this.
48055 (pupa_dl_get_prefix): Declared.
48056
48057 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
48058 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
48059 unloaded.
48060 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
48061 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
48062
48063 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
48064 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
48065
48066 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48067
48068 * util/i386/pc/pupa-setup.c (setup): Define the internal
48069 function find_first_partition_start at the top level, because GCC
48070 3.0.x cannot compile internal functions in deeper scopes
48071 correctly.
48072 (find_root_device): Use lstat instead of stat.
48073 Don't follow symbolic links.
48074 Fix the path-constructing code.
48075
48076 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
48077 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
48078 by a BLKGETSIZE ioctl first, because block devices don't fill
48079 the member st_mode of the structure stat on Linux.
48080 [__linux__] (linux_find_partition): Use a temporary buffer
48081 REAL_DEV for the working space. Copy it to DEV before returning.
48082 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
48083 buffer cache consistent.
48084 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
48085 strncmp. The previous value was merely wrong.
48086 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
48087
48088 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
48089 FAT size is 12. The previous value was merely wrong.
48090
48091 * kern/main.c (pupa_main): Don't split the starting message from
48092 newlines.
48093
48094 * kern/term.c (pupa_putchar): Put CR after LF instead of before
48095 LF, because BIOS goes crazy about character attributes in this
48096 case.
48097
48098 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48099
48100 * include/i386/pc/util/biosdisk.h: New file.
48101 * util/i386/pc/biosdisk.c: Likewise.
48102 * util/i386/pc/pupa-setup.c: Likewise.
48103
48104 * Makefile.in (INCLUDE_DISTFILES): Added
48105 include/pupa/i386/pc/util/biosdisk.h.
48106 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
48107 directory util/i386/pc.
48108 (install-local): Added a rule for sbin_UTILITIES.
48109 (uninstall): Likewise.
48110
48111 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
48112
48113 * util/misc.c (xrealloc): New function.
48114 (pupa_malloc): Likewise.
48115 (pupa_free): Likewise.
48116 (pupa_realloc): Likewise.
48117 (pupa_stop): Likewise.
48118 (pupa_putchar): Likewise.
48119
48120 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
48121
48122 * include/pupa/util/misc.h (xrealloc): Declared.
48123
48124 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
48125 macro.
48126 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
48127 (PUPA_BOOT_MACHINE_BPB_END): ... this.
48128
48129 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
48130 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48131
48132 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
48133 way should be implemented.
48134 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48135
48136 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
48137 the size of NAME for safety.
48138 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
48139 0x88.
48140
48141 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
48142 (pupa_setup_SOURCES): Likewise.
48143
48144 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
48145
48146 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48147
48148 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
48149 bunch of pushl's from pusha, because this destroys the return
48150 value.
48151
48152 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48153
48154 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
48155 This means that any missing prototypes could be fatal. Also, you
48156 must take care when writing assembly code. See the comments at
48157 the beginning of startup.S, for more details.
48158
48159 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
48160 compilation mechanism.
48161 (pupa_chainloader_real_boot): Likewise.
48162 (pupa_biosdisk_rw_int13_extensions): Likewise.
48163 (pupa_biosdisk_rw_standard): Likewise.
48164 (pupa_biosdisk_check_int13_extensions): Likewise.
48165 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
48166 (pupa_biosdisk_get_diskinfo_standard): Likewise.
48167 (pupa_get_memsize): Likewise.
48168 (pupa_get_mmap_entry): Likewise.
48169 (pupa_console_putchar): Likewise.
48170 (pupa_console_setcursor): Likewise.
48171 (pupa_getrtsecs): Use pushl instead of push.
48172
48173 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
48174 memory instead of the stack for a mmap entry, because some
48175 BIOSes may ignore the maximum size and overflow.
48176
48177 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
48178
48179 * genmk.rb (PModule#rule): Compile automatically generated
48180 sources with module-specific CFLAGS as well as other sources.
48181
48182 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48183
48184 * configure.ac: Check ld.
48185 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
48186 respectively, before checking endianness and sizes.
48187
48188 * Makefile.in (LD): New variable.
48189
48190 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48191
48192 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
48193
48194 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48195
48196 * Changelog: New file.
48197