]> git.proxmox.com Git - grub2.git/blob - ChangeLog
* conf/Makefile.extra-dist (EXTRA_DIST): Add
[grub2.git] / ChangeLog
1 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
2
3 * conf/Makefile.extra-dist (EXTRA_DIST): Add
4 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
5
6 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7
8 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
9 instead of hardcoding grub.mo.
10
11 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
12
13 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
14
15 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
16
17 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
18 grub-core/disk/geli.c.
19
20 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21
22 * util/grub-mkfont.c: Prefer enum to #define.
23
24 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25
26 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
27
28 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29
30 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
31
32 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
33
34 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
35
36 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
37
38 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
39
40 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
41
42 * include/grub/bsdlabel.h: Use enums.
43
44 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
45
46 Move GRUB_CHAR_BIT to types.h.
47
48 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
49
50 * docs/grub.texi: Document more user commands.
51
52 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
53
54 * docs/grub.texi: Document menuentry --id option.
55
56 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
57
58 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
59
60 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
61
62 Unify file copying setup across different install scripts. Add
63 options for performing partial install.
64
65 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
66 2013-04-04 Peter Jones <pjones@redhat.com>
67
68 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
69
70 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
71
72 Use TSC as a possible time source on i386-ieee1275.
73
74 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
75
76 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
77 Init err.
78
79 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
80
81 * util/grub-setup.c (setup): Handle some corner cases.
82
83 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
84
85 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
86
87 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
88
89 * grub-core/commands/verify.c: Save verified file to avoid it being
90 tampered with after verification was done.
91
92 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
93
94 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
95 reported width by one to compensate for curesor algorithm problem.
96
97 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
98
99 Fix screen corruption in menu entry editor and simplify the code
100 flow while on it.
101
102 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
103
104 * util/grub-mount.c (fuse_init): Return error if fuse_main
105 failed.
106
107 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
108
109 * include/grub/elf.h: Add missing ARM relocation codes and fix
110 existing ones.
111
112 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
113
114 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
115
116 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
117 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
118
119 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
120 into account when calculating radius.
121
122 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
123
124 * grub-core/gfxmenu/view.c: Fix off-by-one error.
125
126 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
127
128 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
129
130 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
131
132 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
133 missing closing bracket.
134
135 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
136
137 * INSTALL: Mention xorriso requirement.
138
139 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
140
141 * grub-core/commands/verify.c: Fix hash algorithms values for
142 the first three hashes - they start with 1, not with 0.
143
144 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
145
146 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
147 Try terminating EFI services several times due to quirks in some
148 implementations.
149
150 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
151
152 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
153 skipping Event, Device, Processor, PowerRes, ThermalZone, and
154 BankField extended opcodes.
155 (get_sleep_type): Add minimal scope handling (just enough to
156 handle setting the scope to the root path).
157 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
158 * include/grub/acpi.h: Add enumeration values for Event, Device,
159 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
160
161 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
162
163 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
164 memory leak.
165
166 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
167
168 * grub-core/disk/ahci.c: Give more time for AHCI request.
169
170 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
171
172 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
173 command.
174
175 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
176
177 Replace the region at 0 from coreboot tables to available in BSD
178 memory map.
179
180 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
181
182 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
183 non-BIOS platforms.
184
185 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
186
187 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
188 platforms.
189
190 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
191
192 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
193 handling of multi-device filesystems.
194
195 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
196
197 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
198 platforms.
199
200 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
201
202 Add new 'proc' filesystem framework and put luks_script into it.
203
204 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
205
206 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
207 and qemu.
208
209 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
210
211 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
212
213 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
214
215 Add ability to generate newc additions on runtime.
216
217 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
218
219 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
220 description.
221
222 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
223
224 * po/POTFILES.in: Regenerate.
225
226 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
227
228 * grub-core/commands/verify.c (hashes): Add several hashes
229 from the spec.
230
231 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
232
233 Slight improve in USB-related boot-time checkpoints.
234
235 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
236
237 * grub-core/commands/boottime.c: Fix copyright header.
238
239 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
240
241 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
242 coreboot tables content. Support for cbmemc.
243
244 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
245
246 Fix a conflict between ports structures with 2 controllers of
247 same kind.
248
249 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
250
251 * include/grub/boottime.h: Add missing file.
252
253 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
254
255 Initialize USB ports in parallel to speed-up boot.
256
257 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
258
259 Fix USB devices not being detected when requested
260 due to delayed attach.
261
262 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
263
264 Implement boot time analysis framework.
265
266 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
267
268 Remove get_endpoint_descriptor and change all functions needing
269 descriptor to just receive it as argument rather than endpoint
270 address.
271
272 2013-03-19 Aleš Nesrsta <starous@volny.cz>
273
274 Better estimate the maximum USB transfer size.
275
276 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
277
278 Resend a packet if we got the wrong buffer in status.
279
280 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
281
282 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
283 multiplication rather than division.
284
285 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
286
287 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
288 than divisions.
289
290 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
291
292 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
293 operations to have intended shifts and not divisions.
294
295 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
296
297 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
298 intended shifts rather than division.
299
300 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
301
302 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
303 computation for some years before epoch. Avode confusing division
304 while on it.
305
306 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
307
308 * grub-core/video/i386/pc/vbe.c
309 (grub_video_vbe_print_adapter_specific_info): Replace division by
310 shifts.
311
312 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
313
314 Adjust types in gdb module to have intended unsigned shifts rather than
315 signed divisions.
316
317 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
318
319 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
320 maximum size is 4G - 1 on hfs
321
322 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
323
324 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
325
326 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
327
328 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
329 function.
330
331 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
332
333 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
334 causing gcc error with gcc 4.7.1.
335
336 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
337
338 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
339 dereference null pointer. While the code is technically correct, gcc
340 may eliminate a null check if pointer is already dereferenced.
341
342 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
343
344 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
345 OOM check.
346 * grub-core/normal/term.c (read_terminal_list): Likewise.
347
348 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
349
350 Lift up core size limits on some platforms. Fix potential memory
351 corruption with big core on small memory systems. Document remaining
352 limits.
353
354 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
355
356 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
357 gotoxy to 0,0.
358
359 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
360
361 Remove all trampoline support. Add -Wtrampolines when
362 present. Remove symbols used for trampolines to make
363 link fail if trampolines are present.
364
365 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
366
367 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
368 append out of its parent.
369
370 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
371
372 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
373 parent.
374
375 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
376
377 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
378 all vars to a macro. All users updated.
379
380 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
381
382 * grub-core/disk/ieee1275/nand.c: Fix compilation on
383 i386-ieee1275.
384
385 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
386
387 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
388
389 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
390
391 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
392
393 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
394
395 Move to more hookless approach in IEEE1275 devices handling.
396
397 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
398
399 * grub-core/kern/term.c (grub_term_normal_color),
400 (grub_term_highlight_color): Add back lost defaults.
401
402 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
403
404 Make elfload not use hooks. Opt for flags and iterators instead.
405
406 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
407
408 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
409 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
410
411 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
412
413 * grub-core/script/execute.c (gettext_append): Remove nested functions.
414
415 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
416
417 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
418 hook pass-through parameter. All users updated and unnested.
419
420 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
421
422 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
423 out of its parent.
424
425 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
426
427 * grub-core/fs/hfs.c: Remove nested functions.
428
429 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
430
431 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
432 the context through.
433 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
434
435 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
436
437 * util/grub-editenv.c (list_variables): Move print_var out of its
438 parent.
439
440 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
441
442 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
443 function.
444
445 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
446
447 * grub-core/gentrigtables.c: Make tables const.
448
449 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
450
451 Remove nested functions from videoinfo iterators.
452
453 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
454
455 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
456 for 64-bit platforms.
457
458 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
459
460 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
461 a FOR_CHILDREN macro.
462
463 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
464
465 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
466 platform from firmware path.
467
468 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
469
470 Enable linux16 on non-BIOS systems for i.a. memtest.
471
472 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
473 correctly.
474 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
475
476 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
477
478 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
479 Fix end of table condition.
480
481 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
482
483 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
484 out of its parent.
485
486 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
487
488 * grub-core/fs/jfs.c: Remove nested functions.
489
490 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
491
492 * grub-core/fs/minix.c: Remove nested functions.
493
494 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
495
496 * grub-core/fs/iso9660.c: Remove nested functions.
497
498 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
499
500 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
501 of parent function.
502
503 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
504
505 * util/grub-fstest.c: Remove nested functions.
506
507 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
508
509 * grub-core/loader/machoXX.c: Remove nested functions.
510
511 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
512
513 Remove nested functions from disk and file read hooks.
514
515 * include/grub/disk.h (grub_disk_read_hook_t): New type.
516 (struct grub_disk): Add read_hook_data member.
517 * include/grub/file.h (struct grub_file): Likewise.
518 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
519 argument.
520
521 Update all callers.
522
523 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
524
525 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
526 Fix off by one error in enumerating extended partitions.
527
528 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
529
530 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
531 memory leak if device name is not found.
532
533 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
534
535 * grub-core/normal/menu_entry.c (update_screen): remove
536 unused variable `off' which caused scroll down arrow to be always shown.
537
538 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
539
540 * grub-core/normal/menu_entry.c (insert_string): fix off by one
541 access to unallocated memory.
542
543 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
544
545 * Makefile.util.def: Add partmap/msdos.c to common library.
546 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
547 * grub-core/disk/ldm.c: Check for existence of
548 GRUB_PC_PARTITION_TYPE_LDM.
549
550 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
551
552 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
553 sizes and display sector size.
554
555 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
556
557 Implement new command cmosdump.
558
559 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
560
561 Support Openfirmware disks with non-512B sectors.
562
563 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
564 size of the disk.
565 * (grub_ofdisk_get_block_size): New function.
566 * (grub_ofdisk_prepare): Use the correct block size.
567 * (grub_ofdisk_read): Likewise.
568 * (grub_ofdisk_write): Likewise.
569 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
570 New proto.
571
572 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
573
574 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
575
576 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
577
578 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
579 on first error.
580
581 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
582
583 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
584 freeing it.
585
586 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
587
588 Implement USBDebug (full USB stack variant).
589
590 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
591
592 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
593 unless they have unexpected values.
594
595 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
596
597 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
598 grub_print_error.
599
600 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
601
602 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
603 zero-out of port structure.
604
605 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
606
607 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
608 of extended attributes.
609
610 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
611
612 * util/grub-install.in: change misleading comment about
613 device.map creation
614
615 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
616
617 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
618 when menu highlight color isn't set.
619
620 2013-01-27 C. Masloch <pushbx@38.de>
621
622 Improve FreeDOS direct loading support compatibility.
623
624 * include/grub/i386/relocator.h (grub_relocator16_state):
625 New member ebp.
626 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
627 variable.
628 (grub_relocator16_boot): Handle %ebp.
629 * grub-core/lib/i386/relocator16.S: Likewise.
630 * grub-core/loader/i386/pc/freedos.c:
631 Load BPB to pass kernel which partition to load from.
632 Check that kernel file is not too large.
633 Set register dl to BIOS unit number as well.
634
635 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
636
637 * util/grub-reboot.in (usage): Document the need for
638 GRUB_DEFAULT=saved.
639 * util/grub-set-default.in (usage): Likewise.
640 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
641
642 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
643
644 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
645 than defining WORDS_BIGENDIAN manually.
646
647 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
648
649 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
650 invariants.
651
652 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
653
654 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
655 nested.
656 (blit_comb: add_device_width): Likewise.
657
658 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
659
660 Remove nested functions from USB iterators.
661
662 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
663 (grub_usb_controller_iterate_hook_t): Likewise.
664 (grub_usb_iterate): Add hook_data argument.
665 (grub_usb_controller_iterate): Likewise.
666 (struct grub_usb_controller_dev.iterate): Likewise.
667
668 Update all implementations and callers.
669
670 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
671
672 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
673 margin when not needed.
674
675 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
676
677 Make color variables global instead of it being per-terminal.
678
679 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
680
681 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
682 asterisk.
683
684 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
685
686 Fix powerpc and sparc64 build failures caused by un-nesting memory
687 map iterators.
688
689 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
690
691 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
692 parameter declarations.
693
694 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
695
696 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
697
698 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
699
700 Improve spkmomdem reliability by adding a separator between bytes.
701
702 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
703
704 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
705 an Acer registration utility with several sightings in the wild.
706 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
707
708 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
709
710 Remove nested functions from filesystem directory iterators.
711
712 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
713 (struct grub_fs.dir): Add hook_data argument.
714
715 Update all implementations and callers.
716
717 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
718
719 * docs/grub.texi (Multi-boot manual config): Fix typo for
720 "recommended".
721
722 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
723
724 * util/grub-mkimage.c (main): Postpone freeing arguments.output
725 until after its use in generate_image.
726
727 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
728
729 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
730 initrd size to addr_min, since the initrd will be allocated after
731 this address.
732
733 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
734
735 * conf/Makefile.common: Fix autogen rules to pass definition
736 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
737
738 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
739
740 * include/grub/elf.h: Update ARM definitions based on binutils.
741
742 2013-01-20 Aleš Nesrsta <starous@volny.cz>
743
744 Split long USB transfers into short ones.
745
746 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
747
748 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
749 is interrupted by ESC.
750
751 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
752
753 * util/grub-script-check.c (main): Uniform the error message.
754
755 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
756
757 Remove nested functions from ELF iterators.
758
759 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
760
761 Remove nested functions from device iterators.
762
763 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
764 (grub_arc_iterate_devs): Add hook_data argument.
765 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
766 (struct grub_ata_dev.iterate): Add hook_data argument.
767 * include/grub/device.h (grub_device_iterate_hook_t): New type.
768 (grub_device_iterate): Add hook_data argument.
769 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
770 (struct grub_disk_dev.iterate): Add hook_data argument.
771 (grub_disk_dev_iterate): Likewise.
772 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
773 Likewise.
774 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
775 Likewise.
776 * include/grub/partition.h (grub_partition_iterate_hook_t): New
777 type.
778 (struct grub_partition_map.iterate): Add hook_data argument.
779 (grub_partition_iterate): Likewise.
780 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
781 (struct grub_scsi_dev.iterate): Add hook_data argument.
782
783 Update all callers.
784
785 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
786
787 Fix typos for "developer" and "development".
788
789 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
790
791 Add license header to spkmodem-recv.c.
792
793 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
794
795 Rewrite spkmodem to use PIT for timing. Double the speed.
796
797 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
798
799 Add new command pcidump.
800
801 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
802
803 New terminal outputs using serial: morse and spkmodem.
804
805 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
806
807 Improve bidi handling in entry editor.
808
809 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
810
811 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
812 argument to prevent name collision.
813
814 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
815
816 Remove nested functions from script reading and parsing.
817
818 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
819 getline_data argument, passed to getline.
820 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
821 getline_data argument, passed to grub_parser_split_cmdline.
822 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
823 lexerstate->getline_data to lexerstate->getline.
824 (grub_script_lexer_init): Add getline_data argument, saved in
825 lexerstate->getline_data.
826 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
827 argument, passed to grub_script_parse.
828 * grub-core/script/script.c (grub_script_parse): Add getline_data
829 argument, passed to grub_script_lexer_init.
830 * include/grub/parser.h (grub_parser_split_cmdline): Update
831 prototype. Update all callers to pass appropriate getline data.
832 (struct grub_parser.parse_line): Likewise.
833 (grub_rescue_parse_line): Likewise.
834 * include/grub/reader.h (grub_reader_getline_t): Add void *
835 argument.
836 * include/grub/script_sh.h (struct grub_lexer_param): Add
837 getline_data member.
838 (grub_script_parse): Update prototype. Update all callers to pass
839 appropriate getline data.
840 (grub_script_lexer_init): Likewise.
841 (grub_normal_parse_line): Likewise.
842
843 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
844 data argument.
845 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
846 static instead of nested. Rename to ...
847 (grub_parser_execute_getline): ... this.
848 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
849 data argument.
850 * grub-core/normal/main.c (read_config_file: getline): Make static
851 instead of nested. Rename to ...
852 (read_config_file_getline): ... this.
853 (grub_normal_read_line): Add unused data argument.
854 * grub-core/script/execute.c (grub_script_execute_sourcecode:
855 getline): Make static instead of nested. Rename to ...
856 (grub_script_execute_sourcecode_getline): ... this.
857 * util/grub-script-check.c (main: get_config_line): Make static
858 instead of nested.
859
860 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
861
862 Remove nested functions from memory map iterators.
863
864 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
865 argument, passed to hook.
866 * grub-core/kern/i386/coreboot/mmap.c
867 (grub_linuxbios_table_iterate): Likewise.
868 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
869 instead of nested.
870 (grub_machine_mmap_iterate): Add hook_data argument.
871 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
872 Add hook_data argument, passed to hook.
873 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
874 Likewise.
875 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
876 Likewise.
877 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
878 Likewise.
879 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
880 Likewise.
881 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
882 Likewise.
883 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
884 Likewise.
885 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
886 (grub_machine_mmap_iterate): Likewise.
887 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
888 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
889 prototype.
890 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
891 Remove NESTED_FUNC_ATTR from here and from all users.
892 (grub_mmap_iterate): Update prototype.
893 (grub_efi_mmap_iterate): Update prototype. Update all callers to
894 pass appropriate hook data.
895 (grub_machine_mmap_iterate): Likewise.
896
897 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
898 static instead of nested.
899 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
900 Rename to ...
901 (lsmmap_hook): ... this.
902 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
903 Likewise.
904 (grub_efiemu_mmap_fill: fill_hook): Likewise.
905 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
906 heap_init): Likewise.
907 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
908 Rename to ...
909 (mmap_iterate_hook): ... this.
910 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
911 Likewise.
912 * grub-core/lib/ieee1275/relocator.c
913 (grub_relocator_firmware_get_max_events: count): Likewise.
914 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
915 to ...
916 (grub_relocator_firmware_fill_events_iter): ... this.
917 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
918 hook): Likewise. Rename to ...
919 (grub_relocator_alloc_chunk_align_iter): ... this.
920 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
921 Rename to ...
922 (generate_e820_mmap_iter): ... this.
923 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
924 Rename to ...
925 (count_hook): ... this.
926 (grub_linux_boot: hook): Likewise. Rename to ...
927 (grub_linux_boot_mmap_find): ... this.
928 (grub_linux_boot: hook_fill): Likewise. Rename to ...
929 (grub_linux_boot_mmap_fill): ... this.
930 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
931 hook): Likewise. Rename to ...
932 (grub_fill_multiboot_mmap_iter): ... this.
933 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
934 hook): Likewise. Rename to ...
935 (count_hook): ... this.
936 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
937 hook): Likewise. Rename to ...
938 (grub_fill_multiboot_mmap_iter): ... this.
939 * grub-core/loader/powerpc/ieee1275/linux.c
940 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
941 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
942 Likewise. Rename to ...
943 (alloc_phys_choose): ... this.
944 (determine_phys_base: get_physbase): Likewise.
945 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
946 find_hook): Likewise.
947 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
948 (malloc_hook: count_hook): Likewise.
949 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
950 Likewise. Rename to ...
951 (lower_hook): ... this.
952 (grub_mmap_get_upper: hook): Likewise. Rename to ...
953 (upper_hook): ... this.
954 (grub_mmap_get_post64: hook): Likewise. Rename to ...
955 (post64_hook): ... this.
956 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
957 Likewise. Rename to ...
958 (lower_hook): ... this.
959 (grub_mmap_get_upper: hook): Likewise. Rename to ...
960 (upper_hook): ... this.
961 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
962 (grub_mmap_iterate: fill_hook): Likewise.
963 (fill_mask): Pass addr and mask within a single struct.
964 (grub_cmd_badram: hook): Make static instead of nested. Rename
965 to ...
966 (badram_iter): ... this.
967 (grub_cmd_cutmem: hook): Likewise. Rename to ...
968 (cutmem_iter): ... this.
969
970 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
971
972 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
973 delimit path in strings using quotes.
974 * util/getroot.c (grub_guess_root_devices): Likewise.
975 (grub_make_system_path_relative_to_its_root): Likewise.
976 * util/grub-probe.c (probe): Likewise.
977 * util/ieee1275/ofpath.c (find_obppath): Likewise.
978 (xrealpath): Likewise.
979
980 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
981
982 Fix compilation with older compilers.
983
984 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
985 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
986 declarations.
987 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
988 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
989 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
990 identifier with b.
991 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
992 * include/grub/crypto.h: Add type defines.
993 * util/import_gcrypth.sed: Remove duplicate type defines.
994
995 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
996
997 New command list_trusted.
998
999 * grub-core/commands/verify.c (grub_cmd_list): New function.
1000
1001 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
1002
1003 * util/grub-mkimage.c (generate_image): Fix "size of public key"
1004 info message.
1005
1006 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
1007
1008 Remove nested functions from PCI iterators.
1009
1010 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
1011 passed to hook. Update all callers to pass appropriate hook data.
1012 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
1013 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
1014 Remove NESTED_FUNC_ATTR from here and from all users.
1015 (grub_pci_iterate): Update prototype.
1016 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
1017 instead of nested. Rename to ...
1018 (grub_cs5536_find_iter): ... this.
1019 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
1020 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
1021 Likewise.
1022 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
1023 Likewise.
1024 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
1025 Likewise.
1026 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
1027 Likewise.
1028 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
1029 * grub-core/video/radeon_fuloong2e.c
1030 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
1031 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
1032 find_card): Likewise.
1033 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
1034 Likewise.
1035
1036 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1037
1038 * grub-core/commands/verify.c: Mark messages for translating.
1039
1040 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1041
1042 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
1043 fatal.
1044
1045 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1046
1047 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
1048 fatal.
1049
1050 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1051
1052 * autogen.sh: Do not try to delete nonexistant files.
1053 * util/import_gcrypth.sed: Add some missing header removals.
1054
1055 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
1056
1057 Clean up dangling references to grub-setup.
1058 Fixes Ubuntu bug #1082045.
1059
1060 * docs/grub.texi (Images): Refer generally to grub-install rather
1061 than directly to grub-setup.
1062 (Installing GRUB using grub-install): Remove direct reference to
1063 grub-setup.
1064 (Device map) Likewise.
1065 (Invoking grub-install): Likewise.
1066 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
1067 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
1068 * util/grub-install.in (usage): Likewise.
1069
1070 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
1071 Apply to grub-bios-setup and grub-sparc64-setup rather than to
1072 grub-setup.
1073 * configure.ac: Remove grub_setup output variable.
1074
1075 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
1076 to grub-bios-setup.
1077 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
1078 grub-setup to grub-sparc64-setup.
1079
1080 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
1081
1082 Import gcrypt public-key cryptography and implement signature checking.
1083
1084 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1085
1086 * grub-core/fs/ntfs.c: Ue more appropriate types.
1087 * grub-core/fs/ntfscomp.c: Likewise.
1088 * include/grub/ntfs.h: Likewise.
1089
1090 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1091
1092 Support Apple FAT binaries on non-Apple platforms.
1093
1094 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
1095 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
1096 Likewise.
1097 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
1098 Apple FAT binaries.
1099
1100 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1101
1102 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
1103 sector devices.
1104
1105 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
1106
1107 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
1108 explicitly zeroing elements.
1109 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
1110 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
1111 of elements in a structure already allocated using grub_zalloc.
1112 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
1113
1114 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
1115
1116 * docs/grub.texi (grub_cpu): New subsection.
1117 (grub_platform): Likewise.
1118
1119 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
1120
1121 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
1122
1123 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1124
1125 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
1126 divisions.
1127
1128 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1129
1130 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
1131 * grub-core/fs/ntfscomp.c: Likewise.
1132 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
1133 (grub_ntfs_comp): Likewise.
1134
1135 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1136
1137 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
1138 Rename to ...
1139 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
1140 of groups_per_block. All users updated.
1141
1142 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1143
1144 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
1145 grub_error properly.
1146 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
1147 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
1148
1149 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1150
1151 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
1152 always in /boot/zfs.
1153 Reported by: Yuta Satoh.
1154
1155 2013-01-03 Yuta Satoh <nigoro>
1156
1157 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
1158 ${grub_probe}
1159
1160 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1161
1162 * configure.ac: Extend -Wno-trampolines to host.
1163
1164 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1165
1166 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
1167 entry->len = 0.
1168
1169 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
1170
1171 * docs/grub.texi (Invoking grub-mkrelpath): New section.
1172 (Invoking grub-script-check): Likewise.
1173
1174 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
1175
1176 * docs/grub.texi (Invoking grub-mount): New section.
1177 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
1178
1179 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
1180
1181 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
1182 test failures, so that a failing unit test correctly causes 'make
1183 check' to fail.
1184
1185 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
1186
1187 Fix failing printf test.
1188
1189 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
1190 '$' in the correct order when collecting type information.
1191
1192 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
1193
1194 * docs/grub.texi (configfile): Explain environment variable
1195 handling.
1196 (source): New section.
1197 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
1198
1199 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
1200
1201 Remove several trivially-unnecessary uses of nested functions.
1202
1203 * grub-core/commands/i386/pc/sendkey.c
1204 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
1205 instead of nested.
1206 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
1207 Rename to ...
1208 (legacy_file_getline): ... this.
1209 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
1210 Likewise.
1211 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
1212 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
1213 to ...
1214 (probe_dummy_iter): ... this.
1215 * grub-core/kern/i386/coreboot/mmap.c
1216 (grub_linuxbios_table_iterate: check_signature): Likewise.
1217 * grub-core/kern/parser.c (grub_parser_split_cmdline:
1218 check_varstate): Likewise. Mark inline.
1219 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
1220 an additional parameter.
1221 (find_long: fnd_long): Likewise. Pass two additional parameters.
1222 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
1223 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
1224 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
1225 Likewise. Rename to ...
1226 (grub_cmos_find_port_iter): ... this.
1227 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
1228 Rename to ...
1229 (find_rtc_iter): ... this.
1230
1231 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
1232 function directly into the function body, since it is only called
1233 once.
1234
1235 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
1236
1237 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
1238 __attribute__ ((unused)).
1239 * grub-core/video/bochs.c (find_card): Likewise.
1240 * grub-core/video/cirrus.c (find_card): Likewise.
1241 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
1242 * grub-core/video/sis315pro.c (find_card): Likewise.
1243 * grub-core/video/sm712.c (find_card): Likewise.
1244
1245 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1246
1247 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
1248 Fixes Savannah bug #37821.
1249
1250 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1251
1252 Apply program name transformations at build-time rather than at
1253 run-time. Fixes Debian bug #696465.
1254
1255 * acinclude.m4 (grub_TRANSFORM): New macro.
1256 * configure.ac: Create output variables with transformed names for
1257 most programs.
1258 * util/bash-completion.d/grub-completion.bash.in: Use
1259 pre-transformed variables for program names.
1260 * util/grub-install.in: Likewise.
1261 * util/grub-kbdcomp.in: Likewise.
1262 * util/grub-mkconfig.in: Likewise.
1263 * util/grub-mkconfig_lib.in: Likewise.
1264 * util/grub-mknetdir.in: Likewise.
1265 * util/grub-mkrescue.in: Likewise.
1266 * util/grub-mkstandalone.in: Likewise.
1267 * util/grub-reboot.in: Likewise.
1268 * util/grub-set-default.in: Likewise.
1269 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1270 * tests/util/grub-shell-tester.in: Remove unused assignment.
1271 * tests/util/grub-shell.in: Likewise.
1272 * util/grub.d/00_header.in: Likewise.
1273
1274 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1275
1276 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
1277
1278 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
1279 HAVE_RAW_DECL_GETS.
1280 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
1281
1282 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1283
1284 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
1285 Reported by: Eriks Latosheks <foresterlv>.
1286
1287 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1288
1289 * docs/grub.texi (Network): Update instructions on generating netboot
1290 image.
1291
1292 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1293
1294 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
1295 around device name if necessarry.
1296
1297 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1298
1299 * util/grub-install.in: Follow the symbolic link parameter added
1300 to the file command.
1301
1302 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
1303
1304 * util/grub-install.in: Remove stale TODO.
1305
1306 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1307
1308 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
1309 dynamic allocation for the bootpath buffer.
1310
1311 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
1312
1313 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
1314 window too small.
1315
1316 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1317
1318 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
1319 argument rather than font name. All users updated.
1320 (grub_gfxterm_set_window): Likewise.
1321
1322 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
1323
1324 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
1325 from working.
1326
1327 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1328
1329 * util/getroot.c (convert_system_partition_to_system_disk): Support
1330 nbd disks.
1331
1332 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1333
1334 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
1335 infinite loop on corrupted FS.
1336
1337 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1338
1339 Fix big-endian mtime.
1340
1341 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
1342 together sec and usec.
1343 (grub_ufs_dir): Use correct byteswapping for UFS time.
1344
1345 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1346
1347 Support big-endian UFS1.
1348
1349 * Makefile.util.def (libgrubmods): Add ufs_be.c
1350 * grub-core/Makefile.core.def (ufs1_be): New module.
1351 * grub-core/fs/ufs_be.c: New file.
1352 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
1353 the file.
1354
1355 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
1356
1357 * include/grub/types.h: Fix functionality unaffecting typo in
1358 GRUB_TARGET_WORDSIZE conditional macro.
1359
1360 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1361
1362 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
1363
1364 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
1365
1366 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
1367 that /netbsd appears first (when it exists).
1368
1369 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
1370
1371 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
1372 Fixes Savannah bug #37558.
1373
1374 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
1375
1376 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
1377 description of extract_entries_configfile.
1378
1379 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
1380
1381 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
1382 preferred_address.
1383 (grub_cmd_linux): Likewise.
1384 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
1385 preferred_lifetime. Update all users.
1386
1387 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
1388
1389 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
1390 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
1391
1392 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
1393
1394 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
1395 errors from grub-probe to /dev/null, not stdout.
1396
1397 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
1398
1399 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
1400 sector 1.
1401
1402 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
1403
1404 * util/grub-install.in: Make the error message if $source_dir
1405 doesn't exist more useful.
1406
1407 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
1408
1409 Fix grub-emu build on FreeBSD.
1410
1411 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
1412 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
1413 headers on Linux.
1414 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
1415 implementation is currently Linux-specific.
1416 * util/getroot.c (exec_pipe): Define only on Linux or when either
1417 libzfs or libnvpair is unavailable.
1418 (find_root_devices_from_poolname): Remove unused path variable.
1419
1420 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
1421
1422 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
1423 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
1424 should fit before end == 63.
1425
1426 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
1427
1428 * util/grub-setup.c (write_rootdev): Remove unused core_img
1429 parameter. Update all callers.
1430 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
1431 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
1432 GRUB_SETUP_BIOS.
1433
1434 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1435
1436 * util/grub-mkconfig_lib.in (grub_tab): New variable.
1437 (grub_add_tab): New function.
1438 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
1439 * util/grub.d/10_illumos.in: Likewise.
1440 * util/grub.d/10_kfreebsd.in: Likewise.
1441 * util/grub.d/10_linux.in: Likewise.
1442 * util/grub.d/10_netbsd.in: Likewise.
1443 * util/grub.d/10_windows.in: Likewise.
1444 * util/grub.d/10_xnu.in: Likewise.
1445 * util/grub.d/20_linux_xen.in: Likewise.
1446 * util/grub.d/30_os-prober.in: Likewise.
1447
1448 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1449
1450 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1451 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
1452 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
1453 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
1454 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
1455 ieee1275-nocursor.
1456 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1457 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
1458
1459 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1460
1461 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
1462 le-conversion.
1463 Reported by: BURETTE, Bernard.
1464
1465 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
1466
1467 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
1468 from comment.
1469
1470 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
1471
1472 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
1473 IEEE1275 machines. Fixes powerpc-emu compilation.
1474 * include/grub/terminfo.h: Likewise.
1475
1476 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1477
1478 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
1479 a const pointer.
1480 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
1481 const pointer.
1482 (efiemu_set_variable): Make vendor_guid a const pointer.
1483
1484 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1485
1486 Don't require grub-mkconfig_lib to generate manpages for programs.
1487
1488 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
1489 dependencies, don't add grub-mkconfig_lib.
1490 (program): Pass empty adddeps.
1491 (script): Pass grub-mkconfig_lib as adddeps.
1492
1493 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1494
1495 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
1496 * util/getroot.c (grub_find_device): Likewise.
1497 (get_mdadm_uuid): Likewise.
1498 (grub_util_is_imsm): Likewise.
1499 (grub_util_pull_device): Likewise.
1500 * util/grub-probe.c (probe): Likewise.
1501
1502 2012-09-10 Benoit Gschwind <gschwind>
1503
1504 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
1505 (devs): Add devpath_8.
1506
1507 2012-09-08 Peter Jones <pjones@redhat.com>
1508
1509 * grub-core/Makefile.core.def (efifwsetup): New module.
1510 * grub-core/commands/efi/efifwsetup.c: New file.
1511 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
1512 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
1513 New define.
1514 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
1515
1516 2012-09-05 Jiri Slaby <jslaby@suse.cz>
1517
1518 * configure.ac: Add SuSe path.
1519
1520 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1521
1522 * NEWS: Fix typo.
1523
1524 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1525
1526 * util/import_gcry.py: Sort cipher_files, to make build system
1527 generation more deterministic.
1528
1529 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1530
1531 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
1532 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
1533 (grub_set_datetime): Likewise.
1534
1535 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1536
1537 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
1538 warnings.
1539
1540 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1541
1542 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
1543
1544 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1545
1546 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
1547
1548 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1549
1550 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
1551 required for checkouts from bzr, but it may be useful for users or
1552 distributors wishing to update translations against a tarball
1553 distribution, and it can be helpful for the tarball to be a superset
1554 of what's in bzr.
1555
1556 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1557
1558 * Makefile.am (EXTRA_DIST): Add
1559 grub-core/tests/boot/linux.init-mips.S,
1560 grub-core/tests/boot/linux.init-ppc.S, and
1561 grub-core/tests/boot/linux-ppc.cfg.
1562
1563 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1564
1565 * grub-core/mmap/mips/loongson: Remove empty directory.
1566
1567 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1568
1569 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
1570 gone.
1571
1572 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1573
1574 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
1575 grub-sparc64-setup.
1576
1577 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1578
1579 * configure.ac: Strengthen the test for working -nostdinc -isystem.
1580
1581 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1582
1583 * po/POTFILES.in: Regenerated.
1584
1585 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1586
1587 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
1588 (NetBSD): New subsection.
1589
1590 2012-07-22 Ales Nesrsta <starous@volny.cz>
1591
1592 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
1593 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
1594
1595 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1596
1597 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
1598 * util/grub.d/10_hurd.in: Add missing quoting.
1599 * util/grub.d/10_illumos.in: Likewise.
1600 * util/grub.d/10_kfreebsd.in: Likewise.
1601 * util/grub.d/10_linux.in: Likewise.
1602 * util/grub.d/20_linux_xen.in: Likewise.
1603
1604 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1605
1606 New command `lsefi'.
1607
1608 * grub-core/Makefile.core.def (lsefi): New module.
1609 * grub-core/commands/efi/lsefi.c: New file.
1610 * include/grub/efi/api.h: Add more GUIDs.
1611
1612 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1613
1614 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
1615 (grub_bsd_elf32_hook): Likewise.
1616 (grub_bsd_elf64_size_hook): Likewise.
1617 (grub_bsd_elf64_hook): Likewise.
1618 (grub_bsd_load_elf): Likewise.
1619
1620 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1621
1622 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
1623 if hash function is unavailable.
1624 (dec_stream_header): Likewise.
1625
1626 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1627
1628 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
1629 filter state.
1630
1631 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1632
1633 Fix coreboot compilation.
1634
1635 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
1636 (grub_vga_text_init_real): ... this.
1637 (grub_vga_text_fini): Rename to ...
1638 (grub_vga_text_fini_real): ... this.
1639
1640 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1641
1642 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
1643
1644 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1645
1646 * grub-core/lib/legacy_parse.c: Support clear and testload.
1647
1648 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1649
1650 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
1651
1652 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1653
1654 * grub-core/fs/ext2.c: Experimental support for 64-bit.
1655
1656 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1657
1658 * grub-core/net/tftp.c (ack): Fix endianness problem.
1659 (tftp_receive): Likewise.
1660 Reported by: Michael Davidsaver.
1661
1662 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1663
1664 * gentpl.py: Make mans depend on grub-mkconfig_lib.
1665
1666 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1667
1668 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
1669 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
1670 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
1671
1672 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1673
1674 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
1675 efi_mmap_size.
1676 Reported by: Stuart Hayes.
1677
1678 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1679
1680 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
1681
1682 * grub-core/Makefile.core.def (mda_text): New module.
1683 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
1684 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
1685 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
1686 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
1687 here.
1688 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
1689 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
1690 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
1691 here.
1692 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
1693 to ..
1694 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
1695 ... here
1696 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
1697 here.
1698 * grub-core/term/i386/vga_common.c: Removed.
1699 * include/grub/i386/vga_common.h: Likewise.
1700 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
1701 (grub_vga_cr_bw_read): Likewise.
1702 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
1703 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
1704 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
1705 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
1706 grub_vga_cr_read/grub_vga_cr_write.
1707 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
1708
1709 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1710
1711 * configure.ac: Bump version to 2.00.
1712 * grub-core/normal/main.c (features): Add feature_200_final.
1713
1714 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1715 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
1716
1717 * NEWS: Fix unclarity and language mistakes.
1718
1719 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1720
1721 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
1722 additional size to 3 pages.
1723 Reported by: Stuart Hayes.
1724
1725 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1726
1727 * NEWS: Add 2.00 entry.
1728
1729 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1730
1731 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
1732 put explicit "/" for empty path.
1733 (wildcard_expand): Improve dprintf.
1734
1735 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1736
1737 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
1738 it's equal to currnode. This can happen with "" symlink.
1739
1740 2012-06-27 Yves Blusseau <blusseau@zetam.org>
1741
1742 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
1743 echo shell command by printf command.
1744
1745 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1746
1747 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
1748 the value returned by firmware is the maximal position, not diumension.
1749 (grub_terminfo_output_state): Use a more sane fallback.
1750
1751 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1752
1753 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
1754
1755 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1756
1757 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
1758 frequency to 150 MHz.
1759
1760 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1761
1762 Apple fixes.
1763
1764 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
1765 __APPLE_
1766 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
1767 definition.
1768 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
1769
1770 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1771
1772 Handle slash in HFS label.
1773
1774 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
1775 (grub_hfs_dir): Tanslate slash.
1776 (grub_hfs_label): Don't translate slash.
1777
1778 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1779
1780 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
1781 network protocol listing since it introduces problematic dependency on
1782 net module.
1783
1784 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1785
1786 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
1787
1788 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1789
1790 Init video early on yeeloong to avoid being rebooted by watchdog.
1791
1792 * grub-core/Makefile.am (gensm712): New target.
1793 (sm712_start.S): Likewise.
1794 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
1795 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
1796 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
1797 description.
1798 * include/grub/vga.h: Move registry definitions to...
1799 * include/grub/vgaregs.h: ... here.
1800
1801 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1802
1803 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
1804 signedness.
1805
1806 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1807
1808 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
1809 platforms with firmware disk drivers in the core.
1810
1811 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1812
1813 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
1814 informative verbose message.
1815 (read_lv): Handle 64-bit segment size.
1816
1817 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1818
1819 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
1820
1821 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1822
1823 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
1824 character but still remove trainling spaces.
1825 (grub_fat_label): Ignore archive flag.
1826
1827 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1828
1829 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
1830 cast between linux_kernel_header and linux_kernel_params.
1831
1832 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1833
1834 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
1835 type for size.
1836 (grub_raid6_recover_func_t): Likewise.
1837 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
1838 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
1839
1840 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1841
1842 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
1843
1844 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
1845
1846 Fix overflow.
1847
1848 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
1849 [__NetBSD__]: Add explicit cast before bitshift.
1850
1851 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1852
1853 * configure.ac: Bump to 2.00~rc1.
1854
1855 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1856
1857 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
1858 half of $a0.
1859
1860 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1861 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
1862
1863 * docs/grub.texi: Fix search syntax.
1864 (Multi-boot manual config): Put msdos rather than GPT example.
1865 Grammar corrections.
1866
1867 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1868
1869 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
1870
1871 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1872
1873 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
1874
1875 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1876
1877 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
1878 message on double free. Put the value of magic in case of mismatch.
1879
1880 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1881
1882 Speed-up video on yeeloong.
1883
1884 * grub-core/video/sm712.c (framebuffer): Remove render_target and
1885 add cached_ptr.
1886 (grub_video_sm712_video_fini): Unmap cached_ptr.
1887 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
1888 (grub_video_sm712_set_active_render_target): Removed.
1889 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1890 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
1891 sync caches.
1892
1893 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1894
1895 Avoid flushing the same line multiple times on loongson.
1896
1897 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
1898 Step in 32 bytes and not 1 byte.
1899 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
1900 Likewise.
1901
1902 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1903
1904 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
1905 subvolumes.
1906
1907 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1908
1909 Implement flow control for http.
1910
1911 * grub-core/net/http.c (parse_line): Handle response 206.
1912 (http_receive): Stall if too many packets are in the queue.
1913 (http_establish): Fix range header.
1914 (http_seek): Fix double free.
1915 (http_close): Likewise.
1916 (http_packets_pulled): New function.
1917 (grub_http_protocol): Set http_seek
1918 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
1919 (ack_real): Set window depending on i_stall.
1920 (grub_net_send_tcp_packet): Likewise.
1921 (grub_net_tcp_stall): New function.
1922 (grub_net_tcp_unstall): Likewise.
1923 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
1924 (grub_net_tcp_unstall): Likewise.
1925
1926 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1927
1928 * grub-core/net/tftp.c: Decrease stall to 50 packets.
1929
1930 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1931
1932 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
1933
1934 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1935
1936 * tests/util/grub-shell.in: Fix a typo.
1937
1938 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1939
1940 Implement flow control for tftp.
1941
1942 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
1943 packets but stop only if stop condition is satisfied.
1944 (grub_net_fs_read_real): Call packets_pulled after real read. Use
1945 `stall' instead of `eof' as stop condition.
1946 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
1947 (http_err): Likewise.
1948 * grub-core/net/tftp.c (ack): Replace the first argument with data
1949 instead of socket.
1950 (tftp_receive): Stall if too many packets are in wait queue.
1951 (tftp_packets_pulled): New function.
1952 (grub_tftp_protocol): Set packets_pulled.
1953 * include/grub/net.h (grub_net_packets): New field count.
1954 (grub_net_put_packet): Increment count.
1955 (grub_net_remove_packet): Likewise.
1956 (grub_net_app_protocol): New field `packets_pulled'.
1957 (grub_net): New field `stall'.
1958
1959 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1960
1961 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
1962 sync part to handle them.
1963
1964 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1965
1966 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
1967 * grub-core/net/drivers/ieee1275/ofnet.c
1968 (grub_ieee1275_net_config_real): Likewise.
1969
1970 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1971
1972 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
1973 the direct route for server/gateway.
1974
1975 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1976
1977 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
1978 IP address to server name since we may not hame the DNS.
1979
1980 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1981
1982 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
1983 freeing random buffer on failure.
1984 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
1985
1986 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1987
1988 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
1989
1990 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1991
1992 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
1993 reserved bytes.
1994 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
1995 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
1996 Handle malloc error correctly.
1997
1998 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1999
2000 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
2001 blocks.
2002
2003 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2004
2005 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
2006 increment.
2007
2008 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2009
2010 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
2011 none is explicitly specified.
2012
2013 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2014
2015 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
2016 while reallocating.
2017
2018 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2019
2020 Respect netmask from bootp/dhcp.
2021
2022 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
2023 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
2024 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
2025 into ...
2026 (grub_net_add_ipv4_local): ... this.
2027 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
2028 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
2029 (grub_net_add_ipv4_local): New proto.
2030
2031 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2032
2033 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
2034 determining EFI memory map size.
2035
2036 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2037
2038 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
2039
2040 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2041
2042 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
2043 when looking for partition separator.
2044
2045 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2046
2047 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
2048 Escape commas.
2049
2050 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2051
2052 Restructure FAT driver to avoid hook in label reading as it hits a
2053 GCC bug.
2054
2055 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
2056 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
2057 (grub_fat_iterate_dir): Split into ...
2058 (grub_fat_iterate_init): ... this, ...
2059 (grub_fat_iterate_fini): ... this, ...
2060 (grub_fat_iterate_dir_next): ... and this. All users updated.
2061
2062 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2063
2064 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2065 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
2066 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2067 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
2068 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
2069 New fields last_key and last_key_time.
2070 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
2071 extended key-esc into extended key-extended key.
2072
2073 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2074
2075 Avoid unnecessary memcpy of whole video buffer.
2076
2077 * grub-core/video/fb/video_fb.c (dirty): New struct.
2078 (framebuffer): Add members current_dirty and previous_dirty.
2079 (dirty): New function.
2080 (grub_video_fb_fill_rect): Update dirty.
2081 (common_blitter): Likewise.
2082 (grub_video_fb_scroll): Likewise.
2083 (doublebuf_blit_update_screen): Copy only dirty part.
2084 (doublebuf_pageflipping_update_screen): Likewise.
2085 (grub_video_fb_doublebuf_blit_init): Init dirty.
2086 (doublebuf_pageflipping_init): Likewise.
2087 (grub_video_fb_setup): Likewise.
2088
2089 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2090
2091 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
2092 poll rate.
2093
2094 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2095
2096 Fix wildcard regexp dot and other special characters handling.
2097 Reported by: Robert Mabee.
2098
2099 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
2100 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
2101 (split_path): Trigger expansion on '?'.
2102 (unescape): New function.
2103 (wildcard_expand): Unescape parts copied without globbing.
2104 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
2105 (grub_script_arglist_to_argv): Don't unescape expansions.
2106
2107 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2108
2109 * include/grub/net.h (grub_net_card): New member txbufsize.
2110 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
2111 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2112 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
2113 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
2114 txbufsize.
2115 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
2116 compatible property to check for macs. Set
2117 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2118 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
2119 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
2120 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
2121 (send_card_buffer): Use txbuf.
2122 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
2123 nested function out of the parent while on it.
2124
2125 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2126
2127 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
2128 presence check.
2129 (grub_ieee1275_net_config_real): Fix config pointer.
2130
2131 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2132
2133 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
2134 filename parsing to non-block devices.
2135
2136 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2137
2138 * grub-core/kern/device.c (grub_device_open): Remove dead code.
2139
2140 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2141
2142 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
2143 All users updated.
2144
2145 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2146
2147 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
2148 UUID search command even if hints probing failed.
2149
2150 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2151
2152 * po/POTFILES.in: Regenerated.
2153
2154 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2155
2156 Speed-up video on fuloong.
2157
2158 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
2159 New function.
2160 (grub_pci_device_unmap_range): Handle non-cached address.
2161 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
2162 add direct_ptr.
2163 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
2164 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
2165 (grub_video_sis315pro_set_active_render_target): Removed.
2166 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
2167 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
2168 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
2169 sync caches.
2170 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
2171 New proto.
2172
2173 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2174
2175 * docs/grub.texi (Multi-boot manual config): New section.
2176
2177 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2178
2179 Avoid slow read-back from VRAM.
2180
2181 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
2182 Move from here ...
2183 * grub-core/video/fb/video_fb.c
2184 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
2185 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
2186 (front_target): Remove front_target. Add pages.
2187 (grub_video_fb_init): Skip setting front_pages.
2188 (grub_video_fb_fini): Likewise.
2189 (doublebuf_blit_update_screen): Use pages.
2190 (grub_video_fb_doublebuf_blit_init): Likewise.
2191 (doublebuf_pageflipping_init): Allocate offscreen buffer.
2192 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
2193 (grub_video_fb_setup): Prefer doublebuffing.
2194
2195 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2196
2197 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
2198 gzio.
2199
2200 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2201
2202 Add loongson tests.
2203
2204 * tests/util/grub-shell.in: Handle loongson.
2205 * tests/partmap_test.in: Add loongson to the list of platform using ATA
2206 drivers.
2207 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
2208 Reboot instead of shutdown if REBOOT is defined.
2209
2210 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2211
2212 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
2213 sized ports since unlike on real hardware qemu supports only 32-bit
2214 regs.
2215
2216 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2217
2218 * Makefile.util.def (grub-mkrescue): Enable on loongson.
2219 * util/grub-mkrescue.in: Handle loongson.
2220
2221 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
2222
2223 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
2224 Set is_part appropriately.
2225 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
2226 names. Canonicalize partition without full disk.
2227
2228 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2229
2230 Revert usb-quiesce since it's wrong.
2231
2232 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
2233 (grub_ofdisk_init): Don't do quiesce.
2234
2235 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2236
2237 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
2238 PowerMac workaround to Xserves as well.
2239 Information supplied by: Benjamin Herrenschmidt.
2240
2241 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2242
2243 Don't assume that beginning address is also the entry point on ppc.
2244
2245 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
2246 (grub_linux_boot): Use linux_entry.
2247 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
2248 (grub_linux_load64): Likewise.
2249
2250 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2251
2252 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
2253
2254 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2255
2256 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
2257 needlessly lose the console.
2258
2259 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2260
2261 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
2262 space.
2263
2264 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2265
2266 Remove non-functional EFI grub_get_rtc. Put a better fatal message
2267 than current grub_get_rtc() not implemented when booted with
2268 coreboot without TSC.
2269
2270 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
2271 Add machine/time.h to kernel headers on loongson.
2272 * grub-core/Makefile.core.def (kernel): Remove
2273 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
2274 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
2275 (grub_get_rtc): Likewise.
2276 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
2277 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
2278 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
2279 * grub-core/kern/i386/tsc.c (grub_tsc_init)
2280 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
2281 rather than installing known non-working time source.
2282 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
2283 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
2284 * include/grub/time.h: Don't include machine/time.h.
2285 * include/grub/efi/time.h: Removed.
2286 * include/grub/i386/efi/time.h: Likewise.
2287 * include/grub/i386/ieee1275/time.h: Likewise.
2288 * include/grub/powerpc/ieee1275/time.h: Likewise.
2289 * include/grub/sparc64/ieee1275/time.h: Likewise.
2290 * include/grub/x86_64/efi/time.h: Likewise.
2291
2292 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2293
2294 Remove dot on i and j when combining with above diacritics.
2295
2296 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
2297 value.
2298 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
2299 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
2300 with dotless variants when any combining above is present.
2301
2302 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2303
2304 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
2305 text and not binary.
2306
2307 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2308
2309 Stop polling as soon as we have the packet we were waiting for.
2310
2311 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
2312 All users updated.
2313 * grub-core/net/arp.c (have_pending): New var.
2314 (pending_req): Likewise.
2315 (grub_net_arp_send_request): Fill pending_req and use have_pending as
2316 stop indicator.
2317 (grub_net_arp_receive): Set have_pending.
2318 * grub-core/net/dns.c (recv_data): New field stop.
2319 (recv_hook): Set stop.
2320 (grub_net_dns_lookup): Init stop and use as stop condition.
2321 * grub-core/net/http.c (http_establish): Use headers_recv as stop
2322 condition.
2323 * grub-core/net/net.c (grub_net_poll_cards): New argument
2324 stop_condition. Stop when it goes true.
2325 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
2326 indicator.
2327 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
2328
2329 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2330
2331 Keep TX and RX buffers on EFI rather than always allocate new ones.
2332
2333 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
2334 card. All users updated.
2335 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
2336 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
2337 (get_card_packet): Likewise.
2338 (grub_efinet_findcards): Init new fields.
2339
2340 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2341
2342 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
2343 compilation error on sparc64.
2344
2345 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2346
2347 Use ITC on IA64 rather than broken routine based on daytime.
2348
2349 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
2350 ia64.
2351 (grub_get_rtc) [__ia64__]: Likewise.
2352 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
2353 (get_itc): New function.
2354 (grub_rtc_get_time_ms): Likewise.
2355 (grub_machine_init): Calibrate ITC.
2356 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
2357 Keep only on non-ia64. Don't export since it's broken and used only
2358 if TSC is unavailable.
2359
2360 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2361
2362 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
2363 even if it's used.
2364 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
2365 Skip if parent is unused.
2366
2367 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2368
2369 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
2370
2371 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2372
2373 Fix wildcard escaping.
2374
2375 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
2376 * grub-core/script/execute.c (wildcard_escape): .. to here.
2377 Don't escape dot.
2378 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
2379 * grub-core/script/execute.c (wildcard_unescape): .. to here.
2380 Don't escape dot.
2381 * grub-core/script/execute.c (gettext_append): Always escape.
2382 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
2383 * grub-core/script/yylex.l: Don't cut away the escaping.
2384 * tests/grub_script_echo1.in: Add tests with wildcard.
2385
2386 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2387
2388 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
2389 (ftdi_hw_configure): Likewise.
2390 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
2391 define.
2392 (real_config): Handle 1.5 stop bits.
2393 (pl2303_hw_configure): Likewise.
2394
2395 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2396
2397 * Makefile.am: Add ppc linux bootcheck.
2398 * grub-core/tests/boot/linux-ppc.cfg: New file.
2399 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
2400
2401 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 * tests/grub_script_expansion.in: Skip network protocols.
2404
2405 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2406
2407 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
2408
2409 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2410
2411 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
2412 --rom-directory.
2413 Add -graft-points.
2414
2415 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2416
2417 ESCC serial driver for conducting sautomated tests in qemu.
2418 Not tested on real hardware.
2419
2420 * include/grub/serial.h (grub_serial_port): New field escc_desc.
2421 * grub-core/term/ieee1275/escc.c: New file.
2422 * grub-core/Makefile.core.def (escc): New module.
2423
2424 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2425
2426 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
2427 invalid on error.
2428 (serial_hw_fetch): Don't read invalid handle.
2429 (serial_hw_put): Don't write into invalid handle.
2430
2431 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2432
2433 Add a 1.5 stop bits value.
2434
2435 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
2436 * include/grub/serial.h (grub_serial_stop_bits_t): Add
2437 GRUB_SERIAL_STOP_BITS_1_5.
2438
2439 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2440
2441 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
2442 value rather than let it uninited.
2443
2444 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2445
2446 * grub-core/commands/wildcard.c (+check_file): New function.
2447 (wildcard_expand): Don't expand to non-existing files, expand with
2448 suffix and not attempt to expand if not needed.
2449
2450 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2451
2452 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
2453 out of partitions containing other partitions.
2454
2455 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2456
2457 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
2458 on some qemu versions with GRUB.
2459
2460 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
2461 define.
2462 (grub_openbsd_bootarg_pcibios): New struct.
2463 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
2464 Add PCIINFO.
2465
2466 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2467
2468 * tests/util/grub-shell.in: Trim firmware output on EFI.
2469
2470 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2471
2472 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
2473 and coreboot since it's already in kernel.
2474
2475 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2476
2477 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
2478 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2479 to here. New return value start. All users updated.
2480 Recursively scan linear mappings.
2481 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
2482 proto.
2483 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
2484 Use grub_util_get_dm_node_linear_info.
2485 * util/getroot.c (convert_system_partition_to_system_disk): Use
2486 grub_util_info rather than grub_dprintf.
2487 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
2488
2489 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2490
2491 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
2492
2493 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
2494 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
2495
2496 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2497
2498 * include/grub/types.h (grub_set_unaligned64): New function.
2499 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
2500 (setup): Likewise.
2501
2502 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2503
2504 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
2505 (grub_ofdisk_fini): Quiesce USB devices.
2506
2507 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2508
2509 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
2510 caches.
2511
2512 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2513
2514 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
2515
2516 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2517
2518 * grub-core/disk/pata.c (grub_pata_pio_read)
2519 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
2520 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
2521
2522 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2523
2524 Extend automated tests to qemu-mips.
2525
2526 * Makefile.am: reorganise tests and enable qemu-mips.
2527 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
2528 * grub-core/tests/boot/linux.init-mips.S: New file.
2529 * tests/partmap_test.in: Handle ata0 disks.
2530 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
2531 non-pc i386.
2532
2533 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2534
2535 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
2536 ia64.
2537 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
2538 quotes while on it.
2539
2540 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2541
2542 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
2543 (grub_halt): Likewise.
2544 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
2545
2546 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2547
2548 * grub-core/term/serial.c (grub_serial_register)
2549 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
2550 the behaviour in line with x86 platforms.
2551
2552 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2553
2554 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
2555 (grub_ata_strncpy): Likewise.
2556 (grub_ata_identify): Add missing byteswaps.
2557
2558 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2559
2560 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
2561 byte-swap.
2562 (screen_read_char): Likewise.
2563 (grub_vga_text_cls): Likewise.
2564
2565 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2566
2567 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
2568 filenames.
2569 (make_file_path): Likewise.
2570
2571 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2572
2573 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
2574 machines.
2575 Tested by: Paulo Flabiano Smorigo.
2576 Crucial information about API supplied by: Coleen <Last name unknown>.
2577 Reviewed by: Coleen <Last name unknown>.
2578
2579 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2580
2581 * util/grub-mkimage.c: Disable -Wcast-align.
2582
2583 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2584
2585 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
2586 as they are fatal.
2587
2588 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2589
2590 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
2591
2592 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2593
2594 * util/grub-probe.c (escape_of_path): Fix double free.
2595
2596 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2597
2598 * grub-core/commands/videoinfo.c (hook): Show pitch.
2599
2600 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2601
2602 * util/grub.d/20_linux_xen.in: Skip xen-syms.
2603
2604 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2605
2606 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
2607 (probe): Add ieee1275 to OFW devices.
2608
2609 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2610
2611 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
2612
2613 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2614
2615 Handle IBM OFW path.
2616
2617 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
2618 available.
2619 (of_path_of_scsi): Handle vdevice.
2620
2621 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2622
2623 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
2624 Allocate in multiples of 16 to avoid adding a few bytes free region the
2625 windows bugs upon.
2626
2627 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2628
2629 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
2630 Allocate in multiples of 16 to avoid adding a few bytes free region the
2631 windows bugs upon.
2632 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
2633
2634 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2635
2636 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
2637 resolutions.
2638 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
2639 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
2640
2641 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
2642
2643 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
2644
2645 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2646
2647 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
2648 resulted in \\ at the end of the line.
2649
2650 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2651
2652 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
2653 (grub_parser_cmdline_state): Likewise.
2654 (grub_parser_split_cmdline): Likewise.
2655
2656 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2657
2658 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
2659 /dev/root and /dev/dm-*.
2660
2661 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2662
2663 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
2664 fix partially stale display.
2665
2666 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2667
2668 * grub-core/normal/menu_entry.c (backward_char): Use right line for
2669 substraction.
2670
2671 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2672
2673 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
2674 Fix MBR remapping workaround.
2675 (grub_util_biosdisk_read) [__linux__]: Likewise.
2676
2677 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
2678
2679 * util/grub-install.in: Check for ieee1275 and not ieee1276.
2680
2681 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2682
2683 * configure.ac: Bump to beta6.
2684
2685 2012-05-31 Christer Weinigel <christer@weinigel.se>
2686
2687 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
2688
2689 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2690
2691 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
2692 (grub_cmd_linux): Likewise.
2693
2694 2012-05-31 Christer Weinigel <christer@weinigel.se>
2695
2696 Fix EHCI low-speed.
2697
2698 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
2699 (GRUB_EHCI_MULT_TWO): Likewise.
2700 (GRUB_EHCI_MULT_THREE): Likewise.
2701 (GRUB_EHCI_CMASK_MASK): New enum value.
2702 (GRUB_EHCI_SMASK_MASK): Likewise.
2703 (GRUB_EHCI_CMASK_OFF): Likewise.
2704 (GRUB_EHCI_SMASK_OFF): Likewise.
2705 (grub_ehci_pci_iter): Enable periodic schedule.
2706 (grub_ehci_parse_notrun): Likewise.
2707 (grub_ehci_restore_hw): Likewise.
2708 (grub_ehci_setup_qh): Set flags for low speed transfers.
2709 (grub_ehci_find_qh): Use periodic list for low speed.
2710 (grub_ehci_setup_transfer): Check periodic queue as well.
2711 (grub_ehci_check_transfer): Likewise.
2712 (grub_ehci_cancel_transfer): Cancel periodic transfer.
2713
2714 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2715
2716 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
2717 parameter is used.
2718
2719 2012-05-31 Peter Jones <pjones@redhat.com>
2720
2721 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
2722 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
2723 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
2724
2725 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2726
2727 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
2728 uninited variable. Allocate at least setup_sects.
2729
2730 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2731
2732 Fix handling of EFI with big memory maps.
2733
2734 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
2735 (real_mode_mem): Likewise.
2736 (real_mode_target): Likewise.
2737 (real_mode_pages): Likewise.
2738 (prot_mode_pages): Likewise.
2739 (linux_params): New var.
2740 (linux_cmdline): Likewise.
2741 (free_pages): Don't set real mode variables.
2742 (allocate_pages): Don't allocate real mode memory.
2743 (grub_e820_add_region): Remove the limit.
2744 (grub_linux_boot): Allocate and copy real mode memory.
2745 (grub_linux_unload): Free linux_cmdline.
2746 (grub_cmd_linux): Use temporary storage for parameters.
2747 (grub_cmd_initrd): Likewise.
2748 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
2749 (linux_kernel_params): Make it 1K big.
2750
2751 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2752
2753 * Makefile.util.def: Remove -Wno-format.
2754 * grub-core/Makefile.core.def: Likewise.
2755
2756 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2757
2758 * tests/cmp_unit_test.c: Add missing failure message.
2759 * tests/example_unit_test.c: Likewise.
2760 * tests/printf_unit_test.c: Likewise.
2761
2762 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2763
2764 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
2765 relaxation of protective MBR requirements.
2766
2767 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2768
2769 * configure.ac: Add condition for COND_HOST_XNU.
2770 * Makefile.util.def (10_xnu): New script.
2771 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
2772
2773 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2774
2775 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
2776 objconv bug.
2777
2778 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2779
2780 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
2781 Binary on other platforms stays identical.
2782
2783 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2784
2785 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
2786 Apple.
2787
2788 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2789
2790 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
2791
2792 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2793
2794 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
2795 rather than defining size_t ourselves to avoid conflict.
2796
2797 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2798
2799 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
2800 initialisation to avoid __bzero reference.
2801
2802 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2803
2804 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
2805 version.
2806 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
2807 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
2808 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
2809 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
2810 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
2811
2812 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2813
2814 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
2815 * grub-core/kern/misc.c: Likewise.
2816 * grub-core/loader/i386/xnu.c: Likewise.
2817 * include/grub/i386/tsc.h: Likewise.
2818 * include/grub/symbol.h: Likewise.
2819
2820 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2821
2822 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
2823 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
2824 on older compiler.
2825
2826 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2827
2828 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2829 Implement Apple flavour.
2830 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
2831
2832 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2833
2834 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
2835 (memmove) [__APPLE__]: Likewise.
2836 (memcpy) [__APPLE__]: Likewise.
2837 (memset) [__APPLE__]: Likewise.
2838 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
2839 (memmove) [__APPLE__]: Likewise.
2840 (memcpy) [__APPLE__]: Likewise.
2841 (memset) [__APPLE__]: Likewise.
2842
2843 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2844
2845 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
2846 dependency discard.
2847
2848 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2849
2850 * grub-core/normal/main.c (read_config_file): Provide config_file and
2851 config_directory.
2852 * util/grub.d/41_custom.in: Use config_directoy when available.
2853
2854 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2855
2856 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
2857 (grub_bfs_dir): Likewise.
2858
2859 2012-05-27 Peter Jones <pjones@redhat.com>
2860
2861 The old code gives arguments to a printf function which can't work
2862 correctly, and the compiler complains.
2863
2864 * grub-core/tests/example_functional_test.c (example_test): Add
2865 missing text.
2866 * grub-core/tests/lib/test.c (add_failure): Rewrite.
2867 * include/grub/test.h (grub_test_assert_helper): New declaration.
2868 (grub_test_assert): Use grub_test_assert_helper.
2869
2870 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2871
2872 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
2873 (exfctest): ... this to avoid overlong filenames.
2874 All users updated.
2875
2876 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2877
2878 Handle "." and ".." on squashfs.
2879
2880 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
2881 Make inode numbers into stack.
2882 (grub_squash_read_symlink): Use stack.
2883 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
2884 (make_root_node): Fill stack.
2885 (grub_squash_open): Use stack.
2886
2887 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2888
2889 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
2890 freeing.
2891
2892 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2893
2894 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
2895 stderr on test calls.
2896
2897 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2898
2899 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
2900
2901 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2902
2903 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
2904
2905 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2906
2907 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
2908 "..".
2909
2910 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2911
2912 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
2913 (grub_hfsplus_iterate_dir): Add "." and "..".
2914
2915 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2916
2917 * grub-core/fs/cpio.c (canonicalize): Handle "..".
2918 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
2919
2920 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2921
2922 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
2923 (find_path): Handle "." and "..".
2924
2925 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2926
2927 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
2928 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
2929 (grub_affs_iterate_dir): Handle hardlinks.
2930
2931 2012-05-26 Matthew Garrett <mjg@redhat.com>
2932
2933 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
2934 (grub_efi_console_fini): Likewise.
2935 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
2936 (grub_video_gop_fill_mode_info): Rename to ...
2937 (grub_video_gop_fill_real_mode_info): ... this.
2938 (grub_video_gop_fill_mode_info): New function.
2939 (grub_video_gop_setup): Setup double framebuffer.
2940 (grub_video_gop_get_info_and_fini): Use original framebuffer.
2941 Free offscreen.
2942 (grub_video_gop_swap_buffers): Copy framebuffer.
2943 (grub_video_gop_fini): Free offscreen buffer.
2944 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
2945 New enum.
2946 (grub_efi_gop_blt_pixel): New struct.
2947
2948 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2949
2950 * gentpl.py: Remove error disabling for objconv.
2951
2952 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2953
2954 * configure.ac: Remove -Wunitialized as it's not available on older
2955 compilers.
2956
2957 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2958
2959 Fix extent overflow comparator.
2960
2961 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
2962 (grub_hfsplus_read_block): Set type.
2963 (grub_hfsplus_cmp_extkey): Compare type.
2964
2965 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
2966
2967 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
2968
2969 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2970
2971 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
2972 than 0.
2973
2974 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2975
2976 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
2977 (dejavu_bold_14.pf2): New target.
2978
2979 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2980
2981 * configure.ac: Fix djvu font detection.
2982
2983 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2984
2985 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
2986 ext* instead of ext2.
2987
2988 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2989
2990 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
2991 name with \0.
2992
2993 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
2994
2995 * docs/grub-dev.texi: Remove dot from .png.
2996
2997 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2998
2999 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
3000 protective entry in any slot.
3001 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
3002 if protective entry is found in any slot.
3003
3004 Protective entry in non-first slot make no sense but is a widespread
3005 brain damage.
3006
3007 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3008
3009 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
3010
3011 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3012
3013 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
3014 with old reiserfs.
3015 (grub_reiserfs_open): Don't free root.
3016
3017 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3018
3019 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
3020 after freeing for safety.
3021
3022 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3023
3024 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
3025 Reported by: Jordan Uggla.
3026
3027 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
3028
3029 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
3030 actual implementation. Specifically, clarify that the grub menu will
3031 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
3032 passed.
3033
3034 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
3035
3036 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
3037 of r0.
3038
3039 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3040
3041 Remove unjustified hard dependency of normal.mod on gfxterm.
3042
3043 * include/grub/term.h (grub_term_output): New member fullscreen.
3044 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
3045 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
3046 (grub_gfxterm): Set .fullscreen.
3047 * grub-core/normal/menu.c (menu_init): Use fullscreen.
3048 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
3049
3050 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3051
3052 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
3053 mentioning possible problems with non-ASCII (non-compliant) ISOs.
3054 Mention case-insensitive AFFS, SFS and JFS.
3055
3056 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3057
3058 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
3059
3060 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3061
3062 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3063 a bad FS.
3064
3065 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3066
3067 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
3068 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
3069
3070 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3071
3072 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
3073 (grub_jfs_mount): Fill caseins.
3074 (grub_jfs_find_file): Respect caseins.
3075
3076 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3077
3078 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
3079 through UTF-16.
3080
3081 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3082
3083 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
3084 New argument origpath. All users updated.
3085
3086 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3087
3088 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
3089 (read_attr): Ensure that we read start of possibly compressed block.
3090
3091 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3092
3093 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
3094 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
3095 All users updated.
3096
3097 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3098
3099 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
3100 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
3101 (dejavu.pf2): Replace with ...
3102 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
3103 this.
3104
3105 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3106
3107 * util/grub.d/20_linux_xen.in: Add missing line.
3108
3109 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3110
3111 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
3112 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
3113 (grub_utf16_to_utf8): Likewise.
3114
3115 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3116
3117 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
3118 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
3119 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3120 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
3121 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
3122 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
3123
3124 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3125
3126 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3127 a bad FS.
3128
3129 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3130
3131 * grub-core/fs/udf.c (read_string): Bail out on size=0.
3132 (grub_udf_read_symlink): Handle read_string failure.
3133
3134 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3135
3136 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
3137 comment.
3138
3139 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3140
3141 Fix handling of UDF symlinks.
3142
3143 * grub-core/fs/udf.c (read_string): New argument outbuf.
3144 All users updated.
3145 (grub_ufs_read_symlink): Rename to ...
3146 (grub_udf_read_symlink): ... this. All users updated.
3147 Handle symlinks with more than one component.
3148
3149 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3150
3151 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
3152 symlinks. Replace leading colon with a slash.
3153
3154 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3155
3156 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
3157 filename.
3158
3159 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3160
3161 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
3162 match in inner node.
3163
3164 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3165
3166 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
3167 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
3168 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
3169 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
3170 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
3171 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
3172 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
3173 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
3174 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
3175
3176 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3177
3178 Use grub-probe and not cmp to check that disk is empty.
3179
3180 * util/grub-install.in: Use grub-probe for zero-check.
3181 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
3182 (probe): Handle PRINT_ZERO_CHECK.
3183 (argp_parser): Handle -t zero_check.
3184
3185 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3186
3187 Flush block cache on adding disk to device map.
3188
3189 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
3190 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
3191 adding.
3192 (read_device_map): Likewise.
3193 (open_device): Flush on opening.
3194
3195 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3196
3197 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
3198 (handle_symlink): Fix off-by-one error.
3199 Canonicalize the target.
3200 (grub_cpio_dir): Canonicalize the name.
3201 Fix memory leak.
3202 Set directory.
3203 (grub_cpio_open): Canonicalize the name.
3204
3205 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3206
3207 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
3208 handling.
3209
3210 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3211
3212 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
3213 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
3214
3215 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3216
3217 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
3218 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3219 All users updated.
3220
3221 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3222
3223 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
3224 counterpart.
3225
3226 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3227
3228 Fix UFS1 big file support.
3229
3230 * grub-core/fs/ufs.c (INODE): Removed.
3231 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
3232 64-bit.
3233 (INODE_MODE): Simplify.
3234 (grub_ufs_inode): Use uint64_t for size and not int64_t.
3235 (grub_ufs_lookup_symlink): Don't use INODE.
3236
3237 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3238
3239 Fix minixfs with non-power-of-two blocks since it's supported by minix.
3240
3241 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
3242 (grub_minix_data): Replace log_block_size with block_size.
3243 (grub_minix_read_file): Use block_size but avoid 64-bit division.
3244 (grub_minix_mount): Fill block_size.
3245
3246 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3247
3248 * configure.ac: Bump to beta5.
3249
3250 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3251
3252 Fix wrapped HFS+ handling.
3253
3254 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
3255 blocks_start. All users updated.
3256 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
3257 wrapping offset.
3258 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
3259
3260 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3261
3262 Fix long symlinks on reiserfs.
3263
3264 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
3265 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
3266 (grub_reiserfs_iterate_dir): Save size for non-directories.
3267 (grub_reiserfs_open): Don't reread stat block as we already know the
3268 size.
3269 (grub_reiserfs_read): Split into...
3270 (grub_reiserfs_read_real): ... and ...
3271 (grub_reiserfs_read): ...this.
3272
3273 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3274
3275 Fix non-indexed JFS.
3276
3277 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
3278 (grub_jfs_data): New field namecomponentlen.
3279 (grub_jfs_mount): Fill namecomponentlen.
3280 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
3281
3282 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3283
3284 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
3285 * tests/grub_script_echo1.in: Add tests.
3286
3287 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3288
3289 * util/grub-install.in: Ignore empty devicetree directory.
3290
3291 2012-05-08 Bean <bean123ch@gmail.com>
3292
3293 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
3294 All users updated.
3295 (free_rsm): Free header as well.
3296 (free_old_fragments): Fix memory leak.
3297 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
3298 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
3299 (destroy_pq): Likewise.
3300 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
3301
3302 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3303
3304 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
3305 resulting hash as a precaution.
3306
3307 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3308
3309 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
3310 '_' in variable names.
3311 * grub-core/net/net.c (grub_net_network_level_interface_register):
3312 Likewise.
3313
3314 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3315
3316 Fix AFFS with non-512B blocks.
3317
3318 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
3319 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
3320 (grub_affs_data): Replace blocksize with log_blocksize.
3321 (grub_affs_read_block): Fix non-512B blocks.
3322 (grub_affs_read_symlink): Likewise.
3323 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
3324 (grub_affs_read): Fix non-512B blocks.
3325 (grub_affs_label): Likewise.
3326 (grub_affs_mtime): Likewise.
3327 (grub_affs_mount): Fix block detection routine.
3328
3329 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3330
3331 Add filesystem mtime to AFFS.
3332
3333 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
3334 (aftime2ctime): New function.
3335 (grub_affs_dir): Use aftime2ctime.
3336 (grub_affs_label): Fix return value.
3337 (grub_affs_mtime): New function.
3338 (grub_affs_fs): Add mtime.
3339
3340 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3341
3342 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
3343 UTF-8.
3344
3345 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3346
3347 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
3348 UTF-8.
3349
3350 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3351
3352 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
3353
3354 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3355
3356 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
3357 flags.
3358 (FLAGS_CASE_SENSITIVE): New enum value.
3359 (cache_entry): New struct.
3360 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
3361 cache_size and cache.
3362 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
3363 Add log_blocksize and fshelp_flags.
3364 (grub_sfs_read_extent): Handle non-512 blocks.
3365 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
3366 (grub_sfs_read_file): Handle non-512 blocks.
3367 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
3368 fshelp_flags.
3369 (grub_sfs_read_symlink): Handle non-512 blocks.
3370 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
3371 (grub_sfs_dir): Free cache.
3372 (grub_sfs_close): Likewise.
3373
3374 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3375
3376 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
3377 filesystems.
3378
3379 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3380
3381 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
3382
3383 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3384
3385 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
3386
3387 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3388
3389 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
3390 (grub_sfs_read_extent): Likewise.
3391 (grub_sfs_read_block): Likewise.
3392 (grub_sfs_mount): Likewise.
3393 (grub_sfs_iterate_dir): Likewise.
3394 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
3395 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
3396
3397 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3398
3399 Fix errors on compressed NTFS with 512B clusters.
3400
3401 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
3402 types.
3403 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
3404 not 0.
3405 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
3406 Relax check for inline extents.
3407 (ntfscomp): Return correct -1 on error and not 0.
3408
3409 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3410
3411 * util/grub-install.in: Fix handling of prefix containing spaces.
3412
3413 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3414
3415 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
3416 (grub_squash_read_data): Fix offset byte-swapping.
3417
3418 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3419
3420 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
3421 per common usage and preffered in several parts of code.
3422 (grub_memcmp): Likewise.
3423 (grub_strncmp): Likewise.
3424 * include/grub/misc.h (grub_strcasecmp): Likewise.
3425 (grub_strncasecmp): Likewise.
3426 * Makefile.util.def (cmp_test): New test.
3427 (grub_script_strcmp): Likewise.
3428 * tests/cmp_unit_test.c: New file.
3429 * tests/grub_script_strcmp.in: Likewise.
3430 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
3431
3432 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3433
3434 * include/grub/pci.h: Move enums into no-asm part.
3435
3436 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3437
3438 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
3439
3440 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3441
3442 * util/getroot.c (find_hurd_root_device): Try to make error message
3443 and comments to translators clearer.
3444
3445 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3446
3447 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
3448
3449 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3450
3451 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
3452 btrfs.
3453
3454 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3455
3456 * docs/grub.cfg: Update.
3457
3458 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3459
3460 * docs/grub.texi (PXE): Remove not present variables.
3461
3462 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3463
3464 * grub-core/net/net.c (defserver_set_env): New function.
3465 (defserver_get_env): Likewise.
3466 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
3467
3468 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3469
3470 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
3471 entries.
3472
3473 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3474
3475 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
3476 * grub-core/kern/emu/hostdisk.c: Likewise.
3477
3478 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3479
3480 Handle hurd userspace partitions.
3481
3482 * util/getroot.c (find_hurd_root_device): New function.
3483 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
3484
3485 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3486
3487 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
3488 names.
3489 Reported by: Bastian Blank.
3490
3491 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3492
3493 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
3494 crossing page boundary.
3495
3496 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3497
3498 Fix B-tree search in BFS, especially in presence of non-ASCII
3499 characters.
3500
3501 * grub-core/fs/bfs.c (bfs_strcmp): New function.
3502 (find_in_b_tree): Use standard bsearch + btree algorithm.
3503
3504 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3505
3506 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
3507 and so on.
3508
3509 2012-05-03 Matthew Garrett <mjg@redhat.com>
3510 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3511
3512 Suspend broadcom cards in order to stop their DMA.
3513
3514 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
3515 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
3516 (pci): Don't build on x86 EFI.
3517 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
3518 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
3519 New function.
3520 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
3521 stop_broadcom if running on EFI.
3522 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
3523 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
3524 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
3525 (grub_pci_find_capability): New proto.
3526
3527 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3528
3529 * docs/grub.texi: Remove dot from the extension as it apparently
3530 doesn't work with some makeinfo versions.
3531
3532 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3533
3534 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
3535 with GRUB expectance.
3536
3537 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3538
3539 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
3540
3541 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3542
3543 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
3544 zero after directory block since last entry may be not 0-terminated if
3545 it ends on block boundary. Use continue instead of if spanning whole
3546 loop.
3547
3548 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3549
3550 Support 4K sectors UDF inline files.
3551
3552 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
3553 (grub_udf_extended_file_entry): Likewise.
3554 (grub_fshelp_node): Name the anonymous union. Put block at the end.
3555 All users updated.
3556 (get_fshelp_size): New function.
3557 (grub_udf_read_icb): Read whole block.
3558 (grub_udf_iterate_dir): Likewise.
3559 (grub_udf_dir): Likewise.
3560 (grub_udf_open): Likewise.
3561
3562 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3563
3564 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
3565
3566 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3567
3568 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
3569 inline symlinks in addition to workaround.
3570
3571 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3572
3573 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
3574
3575 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3576
3577 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
3578
3579 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3580
3581 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
3582
3583 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3584
3585 Fix reiserfs big seek times.
3586
3587 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
3588 exact. All users updated.
3589 (grub_reiserfs_read): Use nearest btree search for seeking.
3590 Fix return value on error.
3591
3592 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3593
3594 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
3595 entries.
3596 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
3597 * docs/grub.texi: Update menuentry description.
3598
3599 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3600
3601 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
3602 crash when embedding onto filesystem.
3603
3604 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3605
3606 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
3607 name.
3608
3609 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3610
3611 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
3612
3613 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3614
3615 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
3616 commit.
3617
3618 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3619 2012-05-01 Bean <bean123ch@gmail.com>
3620
3621 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
3622
3623 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3624
3625 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
3626 Special behaviour for len = 0 to read whole file isn't used anywhere and
3627 can cause buffer ovewrflows in several places.
3628
3629 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3630
3631 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
3632
3633 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3634
3635 Handle RAIDZ on non-512B sectors.
3636
3637 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
3638 max_children_ashift.
3639 (fill_vdev_info_real): Fill max_children_ashift.
3640 (read_device): Use max_children_ashift.
3641
3642 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3643
3644 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
3645
3646 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3647
3648 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
3649 disk names.
3650 * docs/grub.texi: Update device.map parts.
3651
3652 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3653
3654 Don't scan into non-diskfilter devices having diskfilter names.
3655
3656 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
3657 (scan_disk): New argument accept_diskfilter. Fix recursion depth
3658 handling.
3659 (scan_disk_hook): New function.
3660
3661 2012-04-29 Bean <bean123ch@gmail.com>
3662
3663 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
3664 allocation.
3665
3666 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
3667
3668 * configure.ac: Detect starfield theme font path
3669 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
3670
3671 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3672
3673 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
3674 geometry on serial consoles.
3675
3676 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3677
3678 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
3679 because of network consoles.
3680
3681 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3682
3683 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
3684 handling.
3685
3686 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3687
3688 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
3689 falls on Q syndrom.
3690
3691 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3692
3693 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
3694 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
3695
3696 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3697
3698 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
3699 Allocate at lest 8192 for temporary buffer as required for lzo.
3700
3701 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3702
3703 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
3704 to cluster_bits, since it's already added in.
3705 (grub_fat_read_data): Likewise.
3706
3707 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3708
3709 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
3710 as long as cluster size is multiple of 512 bytes.
3711
3712 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3713
3714 * util/grub-mkrescue.in: Fix locale directory.
3715
3716 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3717
3718 * grub-core/kern/emu/hostdisk.c (map): Make static.
3719
3720 2012-04-23 Bean <bean123ch@gmail.com>
3721
3722 * util/grub-fstest.c (fstest): Add missing break.
3723
3724 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3725
3726 Fix hurd build.
3727
3728 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
3729 not define nr variable.
3730 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
3731 find_root_devices_from_poolname, find_root_devices_from_libzfs,
3732 grub_find_device): Do not define.
3733
3734 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3735
3736 Fix kfreebsd compile and behaviour.
3737
3738 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
3739 format-security.
3740 * util/getroot.c: Fix wait.h include.
3741 (grub_guess_root_devices): Error if grub_find_device fails.
3742 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
3743 (grub_util_get_dev_abstraction): Likewise.
3744 (grub_util_pull_device): Likewise.
3745 (grub_util_get_grub_dev): Likewise.
3746 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
3747
3748 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3749
3750 Fix and unify wholedisk detection.
3751
3752 * util/getroot.c (convert_system_partition_to_system_disk): New argument
3753 is_part. All users updated.
3754 (device_is_wholedisk): Removed.
3755 (grub_util_biosdisk_get_grub_dev): Use is_part.
3756
3757 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3758
3759 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
3760 mode.
3761
3762 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3763
3764 * configure.ac: Bump to beta4.
3765
3766 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3767
3768 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
3769 --fs-uuid --set UUID syntax.
3770
3771 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3772
3773 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
3774 disunification.
3775
3776 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3777
3778 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
3779
3780 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
3781
3782 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
3783
3784 2012-04-18 Mike Gilbert <floppym@gentoo.org>
3785
3786 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
3787
3788 2012-04-18 Bean <bean123ch@gmail.com>
3789
3790 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
3791 place.
3792
3793 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3794
3795 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
3796 users updated.
3797 (grub_util_biosdisk_read): Handle Linux partitions not exactly
3798 corresponding to GRUB partitions.
3799 (grub_util_biosdisk_write): Likewise.
3800
3801 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3802
3803 Scan mdraid before LVM.
3804
3805 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
3806 (grub_diskfilter_register_front): ... this.
3807 (grub_diskfilter_register_back): New function.
3808 All users of grub_diskfilter_register updated.
3809
3810 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3811
3812 * util/grub-install.in: Fix an automatic target detection bug.
3813
3814 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3815
3816 * util/grub-install.in: New option --efi-directory.
3817
3818 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3819
3820 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
3821 boot services if we have no other choice.
3822
3823 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3824
3825 * util/grub-mknetdir.in: Rename --override-directory to --directory and
3826 document it.
3827 * tests/util/grub-shell.in: Update to --directory.
3828
3829 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3830
3831 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
3832
3833 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3834
3835 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
3836 (grub_minix_read_file): Likewise.
3837 (grub_minix_read_inode): Likewise.
3838 (grub_minix_find_file): Likewise.
3839 (grub_minix_dir): Likewise.
3840
3841 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3842
3843 * util/grub-setup.c (setup): Fix partition handling and blocklist
3844 check.
3845
3846 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3847
3848 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
3849 redundant buggy overlap check.
3850
3851 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3852
3853 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
3854 and grub-mknetdir.
3855
3856 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3857
3858 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
3859 kh.loadflags on pre-2.00 kernels.
3860
3861 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3862
3863 Terminate UNDI and PXE before launching the payload to avoid problems
3864 with DMA.
3865
3866 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
3867 (grub_loader_flags): ... this. All users updated.
3868 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
3869 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
3870 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
3871 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
3872 function.
3873 (grub_pxe_restore): Likewise.
3874 (fini_hnd): New var.
3875 (GRUB_MOD_INIT): Register shutdown hook.
3876 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
3877 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
3878 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
3879 (grub_loader_set): Rename second argument to flags.
3880
3881 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3882
3883 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
3884 written bytes.
3885 (grub_get_num_of_utf8_bytes): New function.
3886 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
3887 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
3888 executing it.
3889 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
3890 (grub_ucs4_to_utf8): Change return type.
3891
3892 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3893
3894 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
3895 warning.
3896 * grub-core/fs/bfs.c (hop_level): Likewise.
3897 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
3898
3899 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3900
3901 * grub-core/lib/adler32.c: Recode due to license unclearness.
3902
3903 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3904
3905 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
3906 (test_header): Likewise.
3907
3908 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3909
3910 Fix --help formatting.
3911
3912 * util/grub-mkconfig_lib.in (print_option_help): New function.
3913 (grub_fmt): Likewise.
3914 * util/grub-install.in: Use print_option_help and grub_fmt.
3915 * util/grub-kbdcomp.in: Likewise.
3916 * util/grub-mkconfig.in: Likewise.
3917 * util/grub-mknetdir.in: Likewise.
3918 * util/grub-mkrescue.in: Likewise.
3919 * util/grub-mkstandalone.in: Likewise.
3920 * util/grub-reboot.in: Likewise.
3921 * util/grub-set-default.in: Likewise.
3922 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3923
3924 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3925
3926 * linguas.sh: Remove autogenerated *.po.
3927
3928 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3929
3930 * po/README: Move language fetcing to ...
3931 * linguas.sh: ... here.
3932 * po/README: Point to linguas.sh.
3933
3934 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3935
3936 * po/README: Exclude ko.po due to disclaimer problems.
3937
3938 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3939
3940 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
3941 len = 0.
3942 (grub_gettext_translate_real): Handle 0th string.
3943 (grub_gettext_translate): Ensure that "" isn't translated.
3944
3945 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3946
3947 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
3948 TRANSLATORS comment.
3949 (grub_diskfilter_print_partmap): Propagate changing of error into
3950 warning.
3951
3952 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3953
3954 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
3955 to uint64_t to prevent overflow.
3956 (grub_diskfilter_lv): Increase start_extent and extent_count
3957 to uint64_t to prevent overflow.
3958
3959 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3960
3961 * configure.ac: Increase version.
3962
3963 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3964
3965 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
3966
3967 * po/Rules-translit: New file.
3968 * po/arabic.sed: Likewise.
3969 * po/cyrillic.sed: Likewise.
3970 * po/greek.sed: Likewise.
3971 * po/hebrew.sed: Likewise.
3972 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
3973 * po/Makefile.in.in: Add extra_dist4.
3974
3975 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3976
3977 Handle big-endian minixfs (fixes minixfs tests on bigendian).
3978
3979 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
3980 modify names. Introduce MODE_BIGENDIAN.
3981 * grub-core/fs/minix_be.c: New file.
3982 * grub-core/fs/minix2_be.c: Likewise
3983 * grub-core/fs/minix3_be.c: Likewise.
3984 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
3985 minix3_be.
3986 * grub-core/Makefile.core.def (minix_be): New module.
3987 (minix2_be): Likewise.
3988 (minix3_be): Likewise.
3989
3990 2012-04-01 Felix <email@hamburg.de>
3991
3992 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
3993 (devs): Add MBP 2011.
3994
3995 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3996
3997 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
3998
3999 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4000
4001 * grub-core/normal/cmdline.c (print_completion): New field
4002 prompt_len.
4003 (grub_cmdline_get): Handle width properly.
4004
4005 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4006
4007 * grub-core/commands/lsacpi.c (options): Add missing terminator.
4008
4009 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4010
4011 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
4012 after 29th of February.
4013
4014 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4015
4016 Fix exfat endianness handling.
4017
4018 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
4019 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
4020 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
4021 Byte-swap utf16 when necessary.
4022 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
4023
4024 2012-03-31 Anton Blanchard <anton@samba.org>
4025 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4026
4027 Fix btrfs endianness handling.
4028
4029 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
4030 (lower_bound): Make root uint64_t. Use root in le.
4031 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
4032 (find_path): Fix template key init.
4033 (grub_btrfs_dir): Fix mtime byteswap.
4034 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
4035
4036 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4037
4038 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
4039 recursion_depth. Break infinite resursions. All users updated.
4040
4041 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4042
4043 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
4044 after free.
4045 Reported by: Peter Jones.
4046
4047 2012-03-31 Anton Blanchard <anton@samba.org>
4048
4049 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
4050 8 bit values.
4051
4052 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4053
4054 * util/grub-install.in: Fix nvram call for PreP.
4055
4056 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4057
4058 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
4059 the error when some elements are missing into a warning.
4060
4061 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4062
4063 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
4064
4065 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
4066
4067 * docs/grub.texi (Invoking grub-probe): New section.
4068 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
4069
4070 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
4071
4072 Fix tab and wide character handling in editor and menu.
4073
4074 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
4075 agglomerate control characters with combining marks.
4076 (bidi_line_wrap): Allow break on tab.
4077 (grub_unicode_get_comb_start): New function.
4078 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
4079 and tab correctly.
4080 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
4081 with a space.
4082 * grub-core/normal/term.c (print_ucs4_terminal): New argument
4083 fixed_tab_size. All users updated.
4084 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
4085 (grub_term_getcharwidth): Handle \t.
4086 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
4087 and copy.
4088
4089 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4090
4091 Handle big-endian mdraid.
4092
4093 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
4094 * grub-core/Makefile.core.def (mdraid09_be): New module.
4095 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
4096 rather than grub_le_to_cpu* and grub_cpu_to_le*.
4097 * grub-core/disk/mdraid_linux_be.c: New file.
4098
4099 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4100
4101 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
4102
4103 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4104
4105 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4106 missing quotes which caused confusion among translators.
4107
4108 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4109
4110 * util/grub-mkconfig_lib.in: Fix typo.
4111
4112 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4113
4114 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
4115 spaces.
4116 * tests/grub_script_leading_whitespace.in: New file.
4117 * Makefile.util.def (grub_script_leading_whitespace): New test.
4118
4119 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4120
4121 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
4122 to work.
4123
4124 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4125
4126 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
4127 starts with control character.
4128
4129 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4130
4131 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
4132 overflow.
4133 (grub_gdb_outbuf): Likewise.
4134
4135 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4136
4137 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
4138 zero terminator. Fixes a crash.
4139
4140 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4141
4142 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
4143 beyond 4 GiB.
4144 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
4145 images independently of preffered adderss field.
4146
4147 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4148
4149 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
4150 * grub-core/commands/regexp.c: Likewise.
4151 * grub-core/loader/i386/linux.c: Likewise.
4152 * grub-core/partmap/msdos.c: Likewise.
4153 * grub-core/script/execute.c: Likewise.
4154 * grub-core/term/gfxterm.c: Likewise.
4155
4156 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4157
4158 Add variable parsing in $"..." and fix several mismatches with bash.
4159
4160 * Makefile.util.def (grub_script_gettext): New test.
4161 * grub-core/script/execute.c (parse_string): New function.
4162 (gettext_append): Likewise.
4163 (grub_script_arglist_to_argv): Use gettext_append.
4164 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
4165 * tests/grub_script_gettext.in: New file.
4166
4167 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4168
4169 Fix handling of leading spaces in scripts.
4170
4171 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
4172 spaces.
4173 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
4174 other than skipping \r. All users updated.
4175 * tests/grub_script_echo1.in: Add space-related tests.
4176 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
4177
4178 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4179
4180 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
4181
4182 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4183
4184 * configure.ac: Bump up the version to beta2.
4185
4186 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4187
4188 Fix gettext reload bugs (e.g. inability to disable gettext
4189 once enabled).
4190
4191 * grub-core/gettext/gettext.c: Encapsulate all static variables in
4192 main_context and secondary_context. All functions updated.
4193 (grub_gettext_translate): Rename to ...
4194 (grub_gettext_translate_real): ... this. Return NULL on failed
4195 translate.
4196 (grub_gettext_translate): Handle secondary context.
4197 (grub_gettext_delete_list): Close file and zero-out the context.
4198 (grub_mofile_open): Don't call grub_gettext_delete_list.
4199 Don't close file.
4200 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
4201 if locale="" to avoid pointless error message.
4202 (grub_gettext_env_write_lang): Update lang even if load fails.
4203 Handle secondary context.
4204 (grub_gettext_reread_prefix): New function.
4205 (read_main): Likewise.
4206 (read_secondary): Likewise.
4207 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
4208 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
4209 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
4210 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
4211
4212 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4213
4214 * configure.ac: Decrease warning level to avoid spurious warnings and
4215 to be able to compile with GCC 4.2.
4216 * Makefile.util.def: Remove -Wno-error=logical-op.
4217
4218 2012-03-10 William Bittner <william.bittner@gmail.com>
4219
4220 * util/import_unicode.py: Add missing brackets around string for
4221 python 3 support.
4222
4223 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4224
4225 Fix efi chainloader on network root.
4226
4227 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
4228 network devices.
4229 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
4230 New function.
4231
4232 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4233
4234 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
4235 unused show_text member.
4236 * docs/grub.texi: Document "text" property.
4237
4238 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4239
4240 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
4241 in dprintf.
4242
4243 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4244
4245 Fix IMSM handling on Fedora.
4246
4247 * util/getroot.c (grub_util_is_imsm): New function.
4248 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
4249
4250 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4251
4252 * Makefile.am: Strip gold section.
4253 * conf/Makefile.common: Likewise.
4254 * gentpl.py: Likewise.
4255 * grub-core/Makefile.core.def: Likewise.
4256 * grub-core/genmod.sh.in: Likewise.
4257
4258 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4259
4260 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
4261 * util/grub.d/20_linux_xen.in: Likewise.
4262 Based on Debian patch.
4263
4264 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4265
4266 * util/grub.d/10_linux.in: Fix syntax error resulting in
4267 Richard Laager's patch.
4268 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
4269
4270 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4271
4272 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
4273 dependencies.
4274
4275 2012-03-10 Richard Laager <rlaager@wiktel.com>
4276
4277 * util/grub.d/10_linux.in: Fix ZFS root passing.
4278
4279 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4280
4281 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4282 * grub-core/commands/xnu_uuid.c: Likewise.
4283 * grub-core/loader/efi/appleloader.c: Likewise.
4284 * grub-core/script/execute.c: Likewise.
4285 * grub-core/script/main.c: Likewise.
4286 * util/grub-mkfont.c: Likewise.
4287
4288 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4289
4290 * util/grub-mkfont.c (options): Use more appropriate "select" that
4291 "set" for face index.
4292
4293 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4294
4295 * util/grub-editenv.c (options): Gettextize command summaries.
4296
4297 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4298
4299 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
4300 "out of memory" error messagge.
4301
4302 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4303
4304 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
4305 of diskfilter for diskfilter on diskfilter support.
4306
4307 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4308
4309 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
4310
4311 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4312
4313 * util/grub-install.in: Check for themes/starfield/theme.txt and not
4314 themes/starfield.
4315
4316 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4317
4318 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
4319
4320 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4321
4322 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
4323
4324 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4325
4326 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
4327 of error message.
4328
4329 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4330
4331 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
4332
4333 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4334
4335 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
4336 message.
4337 * util/grub-install.in: Fix and gettextize error message.
4338
4339 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4340
4341 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
4342 Gettextize.
4343 * util/grub-mount.c (options): Likewise.
4344
4345 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4346
4347 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
4348 gettextize.
4349 * grub-core/commands/search_wrap.c (options): Likewise.
4350
4351 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4352
4353 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
4354
4355 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4356
4357 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
4358 size calculation.
4359 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
4360 none is known.
4361
4362 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4363
4364 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
4365 "temporary" since it's used in identifier and is limited in space.
4366
4367 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4368
4369 * po/POTFILES.in: Regenerate. Include *.h since they contain
4370 translatable strings as well.
4371
4372 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4373
4374 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
4375 byte-swap on big-endian.
4376 Reported by: Lennart Sorensen
4377
4378 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
4379
4380 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
4381 (allocate_pages): Improve dprintf.
4382 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
4383 code32_start. Fill code32_start and kernel_alignment in params.
4384 (grub_cmd_initrd): Use prot_init_space.
4385
4386 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4387
4388 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
4389
4390 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4391
4392 * util/grub-install.in: Add missing dot at the end of sentence.
4393
4394 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4395
4396 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4397 * grub-core/commands/videotest.c: Likewise.
4398 * grub-core/loader/i386/linux.c: Likewise.
4399
4400 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4401
4402 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
4403 sentence.
4404 Reported by: Milo Casagrande.
4405
4406 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4407
4408 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
4409 * grub-core/commands/gptsync.c: Likewise.
4410 * grub-core/commands/hashsum.c: Likewise.
4411 * grub-core/commands/i386/pc/sendkey.c: Likewise.
4412 * grub-core/commands/legacycfg.c: Likewise.
4413 * grub-core/io/gzio.c: Likewise.
4414 * grub-core/net/net.c: Likewise.
4415 * grub-core/term/gfxterm.c: Likewise.
4416 * grub-core/term/terminfo.c: Likewise.
4417 * grub-core/tests/test_blockarg.c: Likewise.
4418 * grub-core/video/video.c: Likewise.
4419 * util/grub-install.in: Likewise.
4420 * util/grub-mkfont.c: Likewise.
4421
4422 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4423
4424 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
4425
4426 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4427
4428 * grub-core/commands/search_wrap.c (options): Fix a typo.
4429 Reported by: David Prévot.
4430
4431 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4432
4433 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
4434 description.
4435
4436 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4437
4438 * util/grub-script-check.c (main): Fix a syntax error message which was
4439 unclear.
4440
4441 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4442
4443 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
4444
4445 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4446
4447 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
4448 messages.
4449
4450 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4451
4452 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
4453 without argument.
4454 * util/grub-mount.c (options): Likewise.
4455
4456 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4457
4458 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
4459
4460 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4461
4462 * grub-core/net/http.c: Add TRANSLATORS comments.
4463 * grub-core/normal/cmdline.c: Likewise.
4464 * grub-core/normal/misc.c: Likewise.
4465 * grub-core/partmap/msdos.c: Likewise.
4466 * grub-core/parttool/msdospart.c: Likewise.
4467 * grub-core/script/execute.c: Likewise.
4468 * grub-core/script/main.c: Likewise.
4469 * grub-core/term/terminfo.c: Likewise.
4470 * grub-core/video/bitmap.c: Likewise.
4471 * util/grub-install.in: Likewise.
4472 * util/grub-mkimage.c: Likewise.
4473 * util/grub-mklayout.c: Likewise.
4474 * util/grub-setup.c: Likewise.
4475
4476 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4477
4478 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
4479 with similar messages in grub-fstest.
4480
4481 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4482
4483 * util/grub-install.in: Unify "option requires an argument" message
4484 with similar messages in other files.
4485 * util/grub-mkconfig.in: Likewise.
4486
4487 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4488
4489 * util/grub-set-default.in: Replace printf with gettext_printf (the
4490 string in in question is already translated from grub-reboot)
4491
4492 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4493
4494 * configure.ac: Bump up the version to beta1.
4495
4496 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4497
4498 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
4499 case when min_align = 0.
4500
4501 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4502
4503 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
4504 and fix a case when line_start overflows.
4505
4506 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4507
4508 * util/grub-reboot.in (usage): Mention id posibility.
4509 * util/grub-set-default.in (usage): Likewise.
4510
4511 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4512
4513 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
4514 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
4515 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
4516 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
4517 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
4518 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4519 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4520
4521 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4522
4523 * grub-core/commands/menuentry.c (options): Remove
4524 GRUB_ARG_OPTION_REPEATABLE.
4525 Reported by: Andreas Vogel
4526
4527 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
4528
4529 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
4530
4531 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
4532
4533 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
4534 error.
4535
4536 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4537
4538 Use sort -V by the idea of Georgi Georgiev.
4539
4540 * util/grub-mkconfig_lib.in (version_sort): New function.
4541 (version_test_numeric): Use version_sort.
4542
4543 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4544
4545 Use submenus in grub-mkconfig.
4546
4547 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
4548 * util/grub-mkconfig_lib.in (grub_quote): New function.
4549 (gettext_printf): Use gettext and not gettext_quoted to fix several
4550 messages.
4551 * util/grub.d/10_hurd.in: Use submenus.
4552 * util/grub.d/10_kfreebsd.in: Likewise.
4553 * util/grub.d/10_linux.in: Likewise.
4554 * util/grub.d/10_netbsd.in: Likewise.
4555 * util/grub.d/20_linux_xen.in: Likewise.
4556 * util/grub.d/30_os-prober.in: Likewise.
4557 * util/grub.d/10_illumos.in: Add missing quoting.
4558 * util/grub.d/10_windows.in: Likewise.
4559
4560 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4561
4562 Fix menu title instability bug.
4563
4564 * grub-core/commands/menuentry.c (options): New option --id.
4565 (grub_normal_add_menu_entry): New argument id. All users updated.
4566 (grub_cmd_menuentry): Handle --id.
4567 (grub_menu_init): Accept unknown arguments.
4568 * grub-core/normal/main.c (features): Add feature_menuentry_id and
4569 feature_menuentry_options.
4570 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
4571 saved_entry.
4572 (get_entry_number): Match with id as well.
4573 * include/grub/menu.h (grub_menu_entry): New member id.
4574 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
4575 * util/grub.d/00_header.in: Define menuentry_id_option.
4576 * util/grub.d/10_hurd.in: Define id.
4577 * util/grub.d/10_illumos.in: Likewise.
4578 * util/grub.d/10_kfreebsd.in: Likewise.
4579 * util/grub.d/10_linux.in: Likewise.
4580 * util/grub.d/10_netbsd.in: Likewise.
4581 * util/grub.d/10_windows.in: Likewise.
4582 * util/grub.d/20_linux_xen.in: Likewise.
4583 * util/grub.d/30_os-prober.in: Likewise.
4584
4585 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4586
4587 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
4588 "scope" with "body".
4589
4590 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4591
4592 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
4593 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
4594 prot_size and prot_file_size.
4595
4596 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4597
4598 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
4599 All users updated. If easily=1 require raid-5/-6 to be full.
4600 (is_node_readable): Likewise.
4601 (scan_devices): Scan incomplete but readable LVs at the end.
4602 (grub_diskfilter_memberlist): Pull missing devices.
4603 (insert_array): Skip scanning until device is complete or scan is
4604 done otherwise.
4605 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
4606 check.
4607 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
4608 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
4609
4610 2012-03-03 Matthew Garrett <mjg@redhat.com>
4611 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4612
4613 Avoid EFI boot services when loading Linux.
4614
4615 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
4616 avoid_efi_bootservices. All users updated.
4617 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
4618 argument avoid_efi_bootservices. All users updated.
4619 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
4620 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
4621 align, min_align, relocatable, prefered_address. All users updated.
4622 Allocate avoiding boot services if kernel is relocatable.
4623 (grub_cmd_linux): Check if kernel is relocatable.
4624 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
4625 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
4626 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
4627 avoid_efi_boot_services.
4628 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
4629 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
4630 (linux_kernel_params): Likewise.
4631
4632 2012-03-03 Matthew Garrett <mjg@redhat.com>
4633 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4634
4635 Use EDID on EFI.
4636
4637 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
4638 datasize_out.
4639 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
4640 modes. Set gop_handle.
4641 (grub_video_gop_get_edid): New function.
4642 (grub_gop_get_preferred_mode): Likewise.
4643 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
4644 (grub_video_efi_gop_adapter): Set .get_edid.
4645 * include/grub/efi/edid.h: New file.
4646 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
4647
4648 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4649
4650 * util/grub-install.in: Load efivars unconditionally.
4651
4652 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4653
4654 * po/Rules-piglatin: Change suffix from .po-update-en to
4655 .po-update-en-piglatin.
4656
4657 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4658
4659 Add a pig farm.
4660
4661 * po/piglatin.sed: New file.
4662 * po/en@piglatin.header: Likewise.
4663 * po/Rules-piglatin: Likewise.
4664 * po/README: Add en@piglatin to autogenerated languages.
4665
4666 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4667
4668 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
4669 "Command for ...".
4670 * grub-core/commands/hdparm.c (options): Use "Display" rather than
4671 "Check" since we don't check anything.
4672 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
4673 is 64-bit one.
4674 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
4675 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
4676 (grub_md_sha512_real): Likewise.
4677
4678 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4679
4680 * grub-core/commands/gptsync.c: Fix typographic quoting.
4681 * grub-core/commands/ieee1275/suspend.c: Likewise.
4682 * grub-core/commands/parttool.c: Likewise.
4683 * grub-core/commands/search_wrap.c: Likewise.
4684 * grub-core/commands/videoinfo.c: Likewise.
4685 * grub-core/gfxmenu/gui_label.c: Likewise.
4686 * grub-core/hello/hello.c: Likewise.
4687 * grub-core/kern/emu/main.c: Likewise.
4688 * grub-core/net/net.c: Likewise.
4689 * grub-core/normal/menu.c: Likewise.
4690 * grub-core/normal/menu_text.c: Likewise.
4691 * grub-core/normal/misc.c: Likewise.
4692 * util/grub-editenv.c: Likewise.
4693 * util/grub-install.in: Likewise.
4694 * util/grub-kbdcomp.in: Likewise.
4695 * util/grub-mkconfig.in: Likewise.
4696 * util/grub-mknetdir.in: Likewise.
4697 * util/grub-mkrescue.in: Likewise.
4698 * util/grub-mkstandalone.in: Likewise.
4699 * util/grub-reboot.in: Likewise.
4700 * util/grub-set-default.in: Likewise.
4701 * util/grub-setup.c: Likewise.
4702 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4703
4704 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4705
4706 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
4707 * grub-core/commands/keystatus.c: Likewise.
4708 * grub-core/commands/loadenv.c: Likewise.
4709 * grub-core/commands/probe.c: Likewise.
4710 * grub-core/commands/regexp.c: Likewise.
4711 * grub-core/commands/true.c: Likewise.
4712 * grub-core/commands/videoinfo.c: Likewise.
4713 * grub-core/disk/cryptodisk.c: Likewise.
4714 * grub-core/disk/ldm.c: Likewise.
4715 * grub-core/disk/loopback.c: Likewise.
4716 * grub-core/disk/luks.c: Likewise.
4717 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4718 * grub-core/kern/disk.c: Likewise.
4719 * grub-core/kern/emu/hostdisk.c: Likewise.
4720
4721 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4722
4723 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
4724 * util/grub-install.in: Add missing quote in the comment.
4725
4726 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4727
4728 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
4729 * grub-core/commands/lsmmap.c: Likewise.
4730 * grub-core/commands/minicmd.c: Likewise.
4731 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
4732 * grub-core/commands/regexp.c: Likewise.
4733 * grub-core/gdb/gdb.c: Likewise.
4734 * grub-core/term/gfxterm.c: Likewise.
4735 * util/grub-mkconfig.in: Likewise.
4736 * util/grub-mkfont.c: Likewise.
4737 * util/grub-mklayout.c: Likewise.
4738 * util/grub-mknetdir.in: Likewise.
4739 * util/grub-mkrescue.in: Likewise.
4740 * util/grub.d/30_os-prober.in: Likewise.
4741
4742 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4743
4744 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
4745 with "Direct color" and "Packed" with "Packed pixel".
4746 (grub_cmd_videoinfo): Simplify legend.
4747
4748 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4749
4750 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4751 absolutely unclear error message.
4752
4753 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4754
4755 * util/grub-mkstandalone.in: Remove confusing leftover print.
4756
4757 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4758
4759 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
4760 comments.
4761 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
4762 (GRUB_MOD_INIT): Likewise.
4763 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
4764 VGA mode.
4765 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
4766 comments.
4767 * util/grub-install.in (usage): Likewise.
4768 Spell ID in whole letters.
4769 Add missing ending dot.
4770 Quote variables.
4771 * util/grub-reboot.in: Fix capitalisation.
4772 * util/grub-set-default.in: Likewise.
4773
4774 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4775
4776 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
4777 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
4778 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
4779 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
4780 Disable -Werror for -Wdeprecated-declarations.
4781 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
4782 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
4783 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
4784 (grub_util_get_grub_dev): Make luks handling dependent on
4785 HAVE_DEVICE_MAPPER and not __linux__.
4786 (get_win32_path): Fix format security.
4787 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
4788 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
4789 Don't try grub_find_zpool_from_dir.
4790 (grub_make_system_path_relative_to_its_root) [!__linux__]:
4791 #ifdef-out paresdir.
4792
4793 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4794
4795 * util/grub-pe2elf.c (usage): Add missing noreturn.
4796 (write_section_data): Rename name to shname to avoid shadowing.
4797 (write_symbol_table): Rename name to symname to avoid shadowing.
4798 Fix write_reloc_section call.
4799
4800 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4801
4802 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
4803 to ensure that it's after the last byte of .text.
4804
4805 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4806
4807 * util/ieee1275/ofpath.c (my_isdigit): New function.
4808 (trailing_digits): Use my_isdigit.
4809 (strip_trailing_digits): Likewise.
4810
4811 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4812
4813 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
4814 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
4815
4816 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4817
4818 * grub-core/kern/i386/pc/startup.S: Define __start.
4819
4820 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4821
4822 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
4823 strip already transforms he format.
4824
4825 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4826
4827 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
4828
4829 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4830
4831 * util/grub-install.in: Add missing gettext init.
4832 * util/grub-kbdcomp.in: Likewise.
4833 * util/grub-mkconfig.in: Likewise.
4834 * util/grub-mknetdir.in: Likewise.
4835 * util/grub-mkrescue.in: Likewise.
4836 * util/grub-mkstandalone.in: Likewise.
4837 * util/grub-reboot.in: Likewise.
4838 * util/grub-set-default.in: Likewise.
4839 * util/grub.d/00_header.in: Likewise.
4840 * util/grub.d/10_hurd.in: Likewise.
4841 * util/grub.d/10_windows.in: Likewise.
4842 * util/grub.d/30_os-prober.in: Likewise.
4843 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4844
4845 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4846
4847 * po/Rules-swiss: Fix header comment.
4848
4849 2012-02-29 Andreas Vogel <anvoit>
4850
4851 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
4852 resulted in leak of arguments.
4853
4854 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4855
4856 * grub-core/boot/i386/pc/startup_raw.S: Use separate
4857 reed_solomon_size const definition instead of computing it since
4858 Apple assembler doesn't support the later.
4859
4860 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4861
4862 * gentpl.py (kernel): Rewrite Apple part.
4863
4864 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4865
4866 * include/grub/kernel.h (FOR_MODULES): Check module magic.
4867
4868 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4869
4870 * util/grub-mkimagexx.c (locate_sections): Support non-standard
4871 ELF section gap.
4872 (load_image): Likewise.
4873
4874 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4875
4876 * configure.ac: Fix a typo in previous commit.
4877
4878 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4879
4880 Don't add -Wl,-N on Apple platform.
4881
4882 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
4883 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
4884
4885 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4886
4887 * grub-core/Makefile.core.def (lzma_decompress): Use
4888 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
4889
4890 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4891
4892 * grub-core/genmod.sh.in: Rewrite the Apple part.
4893
4894 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4895
4896 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
4897 comparison.
4898
4899 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4900
4901 * acinclude.m4 (grub_CHECK_PIC): New test.
4902 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
4903
4904 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4905
4906 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
4907 to avoid the warning.
4908
4909 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4910
4911 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
4912 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
4913 after. All users updated.
4914
4915 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4916
4917 Use the common size routine in hostfs so we can read disks as well.
4918
4919 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
4920 (grub_util_get_fd_size): ... this. Return size in bytes.
4921 All users updated.
4922 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
4923 grub_util_get_fd_size.
4924
4925 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4926
4927 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
4928 Add blocksize retrieval.
4929
4930 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4931
4932 * configure.ac: Restore CFLAGS after efiemu check.
4933
4934 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4935
4936 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
4937 Apple bug.
4938
4939 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4940
4941 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
4942
4943 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4944
4945 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
4946 (grub_cmd_halt): Likewise.
4947
4948 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4949
4950 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
4951 for local arithmetics.
4952 Break %sp init into 2 instructions.
4953 Add 0 byte at the end.
4954
4955 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4956
4957 * grub-core/disk/diskfilter.c (read_segment): Initialise err
4958 before loops.
4959
4960 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4961
4962 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
4963 for context.
4964
4965 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4966
4967 * grub-core/disk/ldm.c (make_vg): Init part.name.
4968 (grub_ldm_detect): Silence spurious warning.
4969 (grub_util_is_ldm): Likewise.
4970
4971 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4972
4973 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
4974 sane value to avoid a spurious warning.
4975
4976 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4977
4978 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
4979 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
4980
4981 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4982
4983 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
4984 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
4985
4986 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4987
4988 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
4989 hardcoding the relevant info.
4990
4991 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4992
4993 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
4994 missing const qualifiers.
4995 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
4996
4997 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4998
4999 * util/getroot.c [__APPLE__]: Add missing includes.
5000 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
5001
5002 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5003
5004 * util/grub-mkimage.c (generate_image): Silence spurious warning.
5005
5006 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5007
5008 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
5009 avoid conflicts.
5010
5011 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5012
5013 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
5014
5015 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5016
5017 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
5018 and grub_file_close call.
5019
5020 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5021
5022 Add LZSS Mach-O support (needed for new xnu kernelcache).
5023
5024 * grub-core/Makefile.core.def (xnu): Add file lzss.c
5025 * grub-core/loader/lzss.c: New file.
5026 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
5027 on Mach-O open failure.
5028 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
5029 Don't free cmdsXX in uncompressedXX is set.
5030 (grub_macho_file): Init new fields.
5031 New argument is_64bit. All users updated.
5032 Handle compressed. Error out if no suitable architecture is found.
5033 Don't close file.
5034 (grub_macho_open): New argument is_64bit. All users updated.
5035 * grub-core/loader/macho32.c: Add defines for new fields.
5036 * grub-core/loader/macho64.c: Likewise.
5037 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
5038 (grub_macho_parse): Handle compressed.
5039 Defer actual processing if compressed.
5040 (grub_macho_cmds_iterate): Decompress if compressed. New argument
5041 "filename". All users updated.
5042 (grub_macho_size): New argument "filename". All users updated.
5043 (grub_macho_get_entry_point): Likewise.
5044 (grub_macho_load): Handle compressed.
5045 * include/grub/macho.h (grub_macho_lzss_header): New struct.
5046 (GRUB_MACHO_LZSS_OFFSET): New define.
5047 (grub_decompress_lzss): New proto.
5048 * include/grub/machoload.h (grub_macho_file): New fields to handle
5049 compressed.
5050 (grub_macho_contains_macho64): Remove proto.
5051 (grub_macho_contains_macho32): Likewise.
5052 * util/grub.d/30_os-prober.in: Use kernel cache if available.
5053
5054 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5055
5056 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
5057
5058 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5059
5060 Fix make dist.
5061
5062 * Makefile.am (starfield_theme_files): New var.
5063 (starfield_DATA): Use starfield_theme_files.
5064 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
5065 Add bootcheck-related files.
5066 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
5067 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
5068 and font_char_metrics.txt.
5069 * grub-core/Makefile.core.def (kernel): Update extra_dist.
5070 (setjmp): Add lib/ia64/longjmp.S.
5071 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
5072 * po/POTFILES.in: Regenerate.
5073 * po/Rules-swiss: use DISTFILES.common.extra2 and not
5074 DISTFILES.common.extra1.
5075 * util/devicemap.c: Removed.
5076 * grub-core/lib/i386/relocator_backward.S: Likewise.
5077 * util/import_gcry.py: Remove unused files. Add extra_dist for
5078 ChangeLog.
5079
5080 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5081
5082 * grub-core/gettext/gettext.c (grub_mofile_open): Call
5083 grub_gettext_delete_list before changing grub_gettext_max to avoid
5084 running out of array bounds.
5085
5086 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5087
5088 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
5089 grub_vga_text_init/grub_vga_text_fini.
5090
5091 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5092
5093 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
5094
5095 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5096
5097 * configure.ac: Bump to 2.00~beta0.
5098
5099 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5100
5101 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
5102 missing initialisation.
5103
5104 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5105
5106 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
5107
5108 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5109
5110 Support v2 xnu boot arguments.
5111
5112 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
5113 New argument fsbfreq_out.
5114 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
5115 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
5116 be used.
5117 * grub-core/loader/machoXX.c (grub_macho_load): New argument
5118 darwin_version.
5119 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
5120 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
5121 (grub_xnu_boot_params): Rename to ...
5122 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
5123 (grub_xnu_boot_params_v2): New struct.
5124
5125 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5126
5127 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
5128 zeroing of CRC field before computing CRC.
5129
5130 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5131
5132 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
5133 Change order of allocations to decrease fragmentation.
5134
5135 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5136
5137 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
5138
5139 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
5140
5141 Use write-combining MTRR to speed up video with buggy BIOSes.
5142
5143 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
5144 (cpuid): New define.
5145 (rdmsr): Likewise.
5146 (wrmsr): Likewise.
5147 (mtrr_base): Likewise.
5148 (mtrr_mask): Likewise.
5149 (grub_vbe_enable_mtrr_entry): New function.
5150 (grub_vbe_enable_mtrr): Likewise.
5151 (grub_vbe_disable_mtrr): Likewise.
5152 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
5153 control off to BIOS.
5154 (grub_video_vbe_init): Fill mtrr.
5155 (grub_video_vbe_fini): Disable mtrr.
5156 (grub_video_vbe_get_info_and_fini): Likewise.
5157 (grub_video_vbe_setup): Enable mtrr.
5158
5159 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
5160
5161 * include/grub/partition.h (grub_partition_map): Change prototype of
5162 embed to take a maximum value for nsectors.
5163 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
5164 * include/grub/fs.h (grub_fs): Likewise.
5165 * grub-core/partmap/msdos.c (embed_signatures): New array.
5166 (pc_partition_map_embed): Check for and avoid sectors matching any
5167 of the signatures in embed_signatures, up to max_nsectors.
5168 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
5169 returned sector map to max_nsectors.
5170 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
5171 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
5172 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
5173 * util/grub-setup.c (setup): Allow for the embedding area being
5174 split into multiple blocklists. Tell dest_partmap->embed the
5175 maximum number of sectors we care about.
5176
5177 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5178
5179 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
5180 Specify blocklist_install and reserver_first_sector for all fs.
5181 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
5182 blocklists.
5183
5184 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5185
5186 * util/grub-install.in: Clarify strings.
5187 Fix source dir check.
5188
5189 2012-02-27 Richard Laager <rlaager@wiktel.com>
5190
5191 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
5192 "zfs" and "fuse.zfs" as synonyms.
5193
5194 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5195
5196 * configure.ac: Put platform and target_cpu substitutions back since
5197 they are used for directories.
5198
5199 2012-02-27 Richard Laager <rlaager@wiktel.com>
5200 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5201
5202 * util/grub.d/10_linux.in: Add ZFS-related arguments.
5203 * util/grub.d/20_linux_xen.in: Likewise.
5204
5205 2012-02-27 Richard Laager <rlaager@wiktel.com>
5206
5207 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
5208 with full paths.
5209
5210 2012-02-27 Richard Laager <rlaager@wiktel.com>
5211
5212 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
5213 unescape.
5214
5215 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5216
5217 Don't use insecure popen in getroot.
5218
5219 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
5220 (exec_pipe): ... here.
5221 (find_root_devices_from_poolname): Use exec_pipe.
5222
5223 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5224
5225 Remove platform and target_cpu replacement.
5226
5227 * configure.ac: Remove platform and target_cpu substitutions.
5228 * tests/util/grub-shell.in: Use modinfo.
5229 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
5230 explicitly.
5231
5232 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5233
5234 Autodetect platform in grub-install but allow override.
5235
5236 * util/grub-install.in: Autodetect platform. Support --target and
5237 --directory. Read platform from modinfo.sh.
5238
5239 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5240
5241 Support btrfs multi-volume probe.
5242
5243 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
5244 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
5245 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
5246 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
5247 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
5248 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
5249 grub_find_root_devices_from_btrfs if on btrfs.
5250
5251 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5252
5253 Remove any awareness of *.c util files about target.
5254
5255 * Makefile.util.def (grub-setup): Split to ...
5256 (grub-bios-setup): ... and this.
5257 (grub-sparc64-setup): ... and this.
5258 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
5259 * docs/man/grub-setup.h2m: Split into ...
5260 * docs/man/grub-sparc64-setup.h2m: ... this.
5261 * docs/man/grub-bios-setup.h2m: ... and this.
5262 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
5263 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
5264 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
5265 (grub_target_addr_t): Remove.
5266 (grub_target_size_t): Remove.
5267 (grub_target_ssize_t): Remove.
5268 * util/grub-install.in: Use new grub-*-setup.
5269 * util/grub-mkimagexx.c (Elf_Word): New define.
5270 (Elf_Half): Likewise.
5271 (Elf_Section): Likewise.
5272 (ELF_ST_TYPE): Likewise.
5273 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
5274 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
5275
5276 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5277
5278 Replace grub_target_addr with more appropriate types.
5279
5280 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
5281 grub_target_addr with grub_addr.
5282 * grub-core/commands/iorw.c (grub_cmd_read): Replace
5283 grub_target_addr with grub_port.
5284 (grub_cmd_write): Likewise.
5285 * grub-core/commands/memrw.c (grub_cmd_read): Replace
5286 grub_target_addr with grub_addr.
5287 (grub_cmd_write): Likewise.
5288 * grub-core/video/efi_uga.c (find_line_len): Likewise.
5289
5290 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5291
5292 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
5293 const qualifier for vendor_guid.
5294
5295 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5296
5297 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
5298 const qualifier.
5299 (efiemu_memequal): Likewise.
5300 (find_variable): Likewise.
5301
5302 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5303
5304 Fix missing console prototype on qemu-mips.
5305
5306 * include/grub/mips/qemu_mips/console.h: New file.
5307
5308 2012-02-27 Matthew Garrett <mjg@redhat.com>
5309 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5310
5311 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
5312 * include/grub/efi/efi.h: Likewise.
5313 * include/grub/efi/api.h: Add guid for EFI-specified variables.
5314 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
5315 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
5316 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
5317 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
5318 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
5319
5320 2012-02-27 Matthew Garrett <mjg@redhat.com>
5321
5322 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
5323
5324 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5325
5326 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
5327 error.
5328
5329 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5330
5331 * configure.ac: Remove inappropriate use of program_transform_name
5332 on grubdir and bootdir but allow explicit specification of those
5333 variables.
5334
5335 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5336
5337 * util/grub-mknetdir.in (grub_prefix): Removed.
5338 (subdir): Use @bootdirname@ and @grubdirname@.
5339
5340 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5341
5342 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
5343
5344 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5345
5346 * po/POTFILES.in: Regenerated.
5347
5348 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5349
5350 Remove improper use of program_transform_name on pkglibrootdir.
5351
5352 * configure.ac (pkglibrootdir): Removed.
5353 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
5354 * util/grub-mkimage.c: Likewise.
5355
5356 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5357
5358 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
5359 warning.
5360
5361 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5362
5363 * util/grub-install.in: Use file identifier if no UUID is available
5364 or user explicitly prompted for it.
5365
5366 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
5367
5368 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
5369 (freebsd_get_zfs): New function.
5370 (grub_freebsd_boot): Pass zfs UUID.
5371 (grub_cmd_freebsd): Set zfs UUID.
5372
5373 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5374
5375 * conf/Makefile.common (platformdir): Base on pkglibdir and not
5376 pkglibrootdir.
5377
5378 2012-02-27 Mike Gilbert <floppym@gentoo.org>
5379
5380 Add configure flag to control libzfs integration.
5381
5382 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
5383
5384 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5385
5386 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
5387 device.
5388 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
5389 small devices.
5390
5391 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5392
5393 Remove grub_{modname}_init and grub_{modname}_fini. They should never
5394 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
5395 be used on non-modules.
5396
5397 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
5398 Rename to grub_boot_init.
5399 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
5400 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
5401 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
5402 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
5403 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
5404 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
5405 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
5406 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
5407 includes.
5408 (grub_machine_init): Remove empty inits.
5409 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
5410 includes.
5411 (grub_machine_init): Remove empty inits.
5412 * grub-core/term/arc/console.c: Remove explicit proto.
5413 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
5414 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
5415 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5416 grub_at_keyboard_fini.
5417 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
5418 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
5419 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5420 grub_gfxterm_fini.
5421 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
5422 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
5423 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5424 grub_vgatext_fini.
5425 * grub-core/term/ieee1275/console.c: Remove explicit proto.
5426 * grub-core/term/serial.c (GRUB_MOD_INIT)
5427 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
5428 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5429 grub_serial_fini.
5430 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
5431 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
5432 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5433 grub_terminfo_fini.
5434 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
5435 (GRUB_MOD_FINI): Likewise.
5436 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
5437 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
5438 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5439 grub_video_radeon_fuloong2e_fini.
5440 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
5441 [LOONGSON]: Rename to grub_video_sis315pro_init.
5442 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5443 grub_video_sis315pro_fini.
5444 * grub-core/video/sm712.c (GRUB_MOD_INIT)
5445 [LOONGSON]: Rename to grub_video_sm712_init.
5446 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5447 grub_video_sm712_fini.
5448 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
5449 (grub_at_keyboard_fini): Likewise.
5450 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
5451 Don't declare grub_{modname}_init.
5452 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
5453 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
5454 New proto.
5455 (grub_keylayouts_fini) [!EMU]: Likewise.
5456 * include/grub/serial.h (grub_serial_init) [!EMU]:
5457 New proto.
5458 (grub_serial_fini) [!EMU]: Likewise.
5459 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
5460 New proto.
5461 (grub_terminfo_fini) [!EMU]: Likewise.
5462 * include/grub/video.h (grub_font_init) [!EMU]:
5463 New proto.
5464 (grub_font_fini) [!EMU]: Likewise.
5465 (grub_gfxterm_init) [!EMU]: Likewise.
5466 (grub_gfxterm_fini) [!EMU]: Likewise.
5467 (grub_video_sm712_init) [!EMU]: Likewise.
5468 (grub_video_sm712_fini) [!EMU]: Likewise.
5469 (grub_video_sis315pro_init) [!EMU]: Likewise.
5470 (grub_video_sis315pro_fini) [!EMU]: Likewise.
5471 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
5472 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
5473
5474 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5475
5476 Make nand a prefix for nand devices.
5477
5478 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
5479
5480 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5481
5482 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
5483 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
5484
5485 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5486
5487 * include/grub/env.h (grub_env_find): Remove prototype.
5488 * grub-core/kern/env.c (grub_env_find): Make static.
5489 (grub_env_set): Remove useless set.
5490
5491 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5492
5493 * grub-core/kern/i386/realmode.S: Remove useless align.
5494
5495 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5496
5497 * include/grub/dl.h (grub_dl_load_file): Don't export.
5498
5499 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5500
5501 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
5502 grub_dprintf.
5503
5504 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5505
5506 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
5507 grub_errors.
5508 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
5509 not reloading whole superblock but only the part which is really needed.
5510 Remove useless grub_errors.
5511 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
5512 grub_errors.
5513
5514 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5515
5516 Don't export grub_get_rtc.
5517
5518 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
5519 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
5520
5521 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5522
5523 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
5524
5525 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5526
5527 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
5528 argument since it can be deduced from diskfilter. All users updated.
5529
5530 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5531
5532 Remove prio_list.
5533
5534 * include/grub/list.h (grub_prio_list): Removed.
5535 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
5536 GRUB_COMMAND_PRIO_MASK.
5537 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
5538 GRUB_COMMAND_FLAG_ACTIVE.
5539 (grub_prio_list_insert): Removed.
5540 (grub_prio_list_remove): Likewise.
5541 (GRUB_AS_PRIO_LIST): Likewise.
5542 (GRUB_AS_PRIO_LIST_P): Likewise.
5543 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
5544 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
5545 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
5546 * grub-core/kern/command.c (grub_register_command_prio): Inline
5547 the prio_list code.
5548 (grub_unregister_command): Likewise.
5549
5550 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5551
5552 Fix interrupt mixup from previous commit.
5553
5554 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
5555 (grub_realidt): New var.
5556 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
5557 Load idt.
5558 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
5559 New declaration.
5560 (grub_relocator16_boot): Set grub_relocator16_idt.
5561 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
5562 (LOCAL(realidt)): ... this.
5563 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
5564 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
5565 (grub_realidt): New variable.
5566
5567 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5568
5569 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
5570 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
5571 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
5572 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
5573 Gettextize.
5574 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
5575 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
5576 * po/POTFILES.in: Regenerate.
5577
5578 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5579
5580 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
5581 errors.
5582
5583 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5584
5585 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
5586 \0.
5587 (add_length): Likewise.
5588
5589 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5590 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
5591
5592 GDB serial and backtrace support.
5593
5594 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
5595 (prot_to_real): Likewise.
5596 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
5597 * grub-core/Makefile.core.def (backtrace): New module.
5598 (gdb): Likewise.
5599 * grub-core/gdb/cstub.c: New file.
5600 * grub-core/gdb/gdb.c: Likewise.
5601 * grub-core/gdb/i386/idt.c: Likewise.
5602 * grub-core/gdb/i386/machdep.S: Likewise.
5603 * grub-core/gdb/i386/signal.c: Likewise.
5604 * grub-core/lib/i386/backtrace.c: Likewise.
5605 * grub-core/lib/backtrace.c: Likewise.
5606 * include/grub/backtrace.h: Likewise.
5607 * include/grub/gdb.h: Likewise.
5608 * include/grub/i386/gdb.h: Likewise.
5609
5610 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5611
5612 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
5613 New function.
5614 (add_length): Likewise.
5615 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
5616 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
5617 proto.
5618 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
5619 __argp_get_display_len.
5620
5621 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5622
5623 $"..." support in scripts.
5624
5625 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
5626 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
5627 * grub-core/script/yylex.l: Likewise.
5628 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
5629 value.
5630
5631 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5632
5633 * gentpl.py: Remove obsolete pkglib_DATA handling.
5634
5635 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5636
5637 Don't transform PACKAGE_TARNAME following a discussion on autoconf
5638 mailing list.
5639
5640 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
5641 * util/grub-kbdcomp.in: Likewise.
5642 * util/grub-mkconfig.in: Likewise.
5643 * util/grub-mkconfig_lib.in: Likewise.
5644 * util/grub-mknetdir.in: Likewise.
5645 * util/grub-mkrescue.in: Likewise.
5646 * util/grub-mkstandalone.in: Likewise.
5647 * util/grub-reboot.in: Likewise.
5648 * util/grub-set-default.in: Likewise.
5649 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5650
5651 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5652
5653 Remove GRUB_PREFIX.
5654
5655 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
5656 * util/grub.d/00_header.in: Compute prefix in the only place it's still
5657 used for backward compatibility.
5658
5659 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5660
5661 Add new all_video module.
5662
5663 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
5664 * grub-core/Makefile.core.def (all_video): New module.
5665 * grub-core/genmoddep.awk: Generate dependency of all_video from
5666 video.lst.
5667 * grub-core/lib/fake_module.c: New file.
5668 * grub-core/normal/main.c (features): Add feature_all_video_module.
5669 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
5670 don't do explicit search again.
5671 insmod all_video in load_video if available.
5672
5673 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5674
5675 Another round of string clarification and adding TRANSLATORS comments.
5676
5677 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5678
5679 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
5680
5681 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5682
5683 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
5684 to grub_ssize_t.
5685 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
5686 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
5687
5688 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5689
5690 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
5691 trailing newline implicitly. All users updated.
5692
5693 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5694
5695 Implement serial on IEEE1275 and EFI.
5696
5697 * docs/grub.texi (Platform-specific limitations): Fix the columen video
5698 on emu. Mention arc and emu as the only platforms without serial
5699 support.
5700 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
5701 ieee1275 platforms.
5702 * grub-core/term/efi/serial.c: New file.
5703 * grub-core/term/ieee1275/serial.c: Likewise.
5704 * grub-core/term/serial.c (grub_serial_find): Disable direct port
5705 specification if no ns8250 driver is available.
5706 (grub_cmd_serial): Likewise.
5707 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
5708 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
5709 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
5710 (grub_efi_parity_type_t): New type.
5711 (grub_efi_stop_bits_t): Likewise.
5712 (grub_efi_serial_io_interface): New struct.
5713 * include/grub/serial.h (grub_serial_port): Make 'broken' field
5714 available for all interfaces.
5715 Add EFI and IEEE1275 fields.
5716 (grub_ofserial_init): New proto.
5717 (grub_efiserial_init): Likeiwse.
5718 * util/grub.d/00_header.in: Don't check for the presence of serial
5719 module.
5720
5721 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5722
5723 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
5724 name as if it was an alias.
5725
5726 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5727
5728 * grub-core/commands/lsacpi.c (options): Fix typo.
5729
5730 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5731
5732 Convert grub-emu to argp.
5733
5734 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
5735 emu.
5736 * util/argp_common.c: Rename to ...
5737 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
5738 Add missing includes.
5739 * grub-core/kern/emu/main.c: Convert to argp.
5740 * po/POTFILES.in: Regenerate.
5741 * util/grub-install.in (usage): Make first letter lowcase in messages
5742 for uniformity.
5743 * util/grub-setup.c (options): Likewise.
5744
5745 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5746
5747 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
5748 Put back accidently commented-out code.
5749
5750 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5751
5752 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
5753 loop check using Brent algorithm.
5754 (grub_hfsplus_btree_search): Likewise.
5755
5756 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5757
5758 * util/grub-install.in: Fix usage of wrong device for PreP install.
5759
5760 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5761
5762 * conf/Makefile.common (CFLAGS_GNULIB): Add
5763 -Wno-unsafe-loop-optimizations.
5764 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
5765 on tools.
5766 * grub-core/commands/legacycfg.c: Add pragma to skip
5767 -Wunsafe-loop-optimizations.
5768 (check_password_md5_real): Fix loop counter type.
5769 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
5770 reading.
5771 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
5772 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
5773 loop condition.
5774 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
5775 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
5776 * grub-core/net/net.c (grub_net_route_address): Add safety loop
5777 condition.
5778 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
5779 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
5780 avoid possible infinite loops.
5781 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
5782 and -Wunsafe-loop-optimizations.
5783 * grub-core/script/yylex.l: Likewise.
5784 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
5785 (print_glyphs): Avoid infinite loops.
5786 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
5787
5788 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
5789
5790 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
5791 to avoid infinite loop.
5792 (disp_acpi_rsdt_table): Likewise.
5793
5794 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5795
5796 * grub-core/font/font.c (grub_font_load): Add support for default
5797 path for fonts ($prefix/fonts).
5798 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
5799 for checking if string is a path.
5800 * grub-core/normal/main.c (features): Add feature_default_font_path.
5801 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
5802 * util/grub.d/00_header.in: Use default directory if possible.
5803 * util/grub-install.in: Install unicode.pf2.
5804
5805 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5806
5807 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
5808 * po/Rules-swiss: New file.
5809 * po/swiss.sed: Likewise.
5810
5811 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5812
5813 * grub-core/fs/btrfs.c (find_device): Fix typos.
5814 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
5815 * util/grub-mkrelpath.c (argp_parser): Likewise.
5816 Reported by: Yuri Chornoivan.
5817
5818 2012-02-23 Dalet Omega <daletomega@gmail.com>
5819
5820 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
5821 for usual informative messages.
5822
5823 2012-02-23 Dalet Omega <daletomega@gmail.com>
5824
5825 Starfield theme.
5826
5827 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
5828 * conf/Makefile.common: Define starfielddir.
5829 * configure.ac: Configure starfield.
5830 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
5831 * themes/starfield/README: Likewise.
5832 * themes/starfield/blob_w.png: Likewise.
5833 * themes/starfield/boot_menu_c.png: Likewise.
5834 * themes/starfield/boot_menu_e.png: Likewise.
5835 * themes/starfield/boot_menu_n.png: Likewise.
5836 * themes/starfield/boot_menu_ne.png: Likewise.
5837 * themes/starfield/boot_menu_nw.png: Likewise.
5838 * themes/starfield/boot_menu_s.png: Likewise.
5839 * themes/starfield/boot_menu_se.png: Likewise.
5840 * themes/starfield/boot_menu_sw.png: Likewise.
5841 * themes/starfield/boot_menu_w.png: Likewise.
5842 * themes/starfield/slider_c.png: Likewise.
5843 * themes/starfield/slider_n.png: Likewise.
5844 * themes/starfield/slider_s.png: Likewise.
5845 * themes/starfield/src/blob_nw.xcf: Likewise.
5846 * themes/starfield/src/bootmenu/: Likewise.
5847 * themes/starfield/src/bootmenu/center.xcf: Likewise.
5848 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
5849 * themes/starfield/src/bootmenu/side.xcf: Likewise.
5850 * themes/starfield/src/slider_c.xcf: Likewise.
5851 * themes/starfield/src/slider_n.xcf: Likewise.
5852 * themes/starfield/src/slider_s.xcf: Likewise.
5853 * themes/starfield/src/terminalbox/: Likewise.
5854 * themes/starfield/src/terminalbox/center.xcf: Likewise.
5855 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
5856 * themes/starfield/src/terminalbox/side.xcf: Likewise.
5857 * themes/starfield/starfield.png: Likewise.
5858 * themes/starfield/terminal_box_c.png: Likewise.
5859 * themes/starfield/terminal_box_e.png: Likewise.
5860 * themes/starfield/terminal_box_n.png: Likewise.
5861 * themes/starfield/terminal_box_ne.png: Likewise.
5862 * themes/starfield/terminal_box_nw.png: Likewise.
5863 * themes/starfield/terminal_box_s.png: Likewise.
5864 * themes/starfield/terminal_box_se.png: Likewise.
5865 * themes/starfield/terminal_box_sw.png: Likewise.
5866 * themes/starfield/terminal_box_w.png: Likewise.
5867 * themes/starfield/theme.txt: Likewise.
5868
5869 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5870
5871 * util/grub.d/00_header.in: Add missing export theme.
5872
5873 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5874
5875 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
5876 already included.
5877 Reported by: Eren D.
5878
5879 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5880
5881 * conf/Makefile.common (grubdatadir): Removed.
5882 (Makefile.am): Move eveything grubdata to pkgdata.
5883
5884 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5885
5886 * grub-core/commands/acpihalt.c (get_sleep_type):
5887 Remove unused variable.
5888
5889 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5890
5891 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
5892 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
5893 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
5894 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
5895 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
5896 i18n with gettext no-op.
5897 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
5898 GRUB_ACPI_OPCODE_STRING_CONST.
5899 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
5900 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
5901
5902 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5903
5904 * po/POTFILES.in: Regenerate.
5905
5906 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5907
5908 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
5909 -Wno-error=missing-noreturn.
5910
5911 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5912
5913 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
5914 condition to avoid possibly infinite loops.
5915 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
5916 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
5917
5918 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5919
5920 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
5921 condition to avoid possibly infinite loops.
5922
5923 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5924
5925 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
5926 on show_error.
5927
5928 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5929
5930 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
5931
5932 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5933
5934 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
5935
5936 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5937
5938 * util/bin2h.c (usage): Add missing attribute noreturn.
5939
5940 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5941
5942 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
5943 if the size isn't divisible by 512.
5944
5945 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5946
5947 Make list_push and list_remove functions rather than inline functions
5948 to decrease size and avoid aliasing violations.
5949
5950 * include/grub/list.h (grub_list_push): Move to ...
5951 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
5952 * include/grub/list.h (grub_list_remove): Move to ...
5953 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
5954
5955 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5956
5957 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
5958 and -Wunused-result.
5959
5960 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5961
5962 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
5963 Reported by: Seth Goldberg
5964
5965 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5966
5967 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
5968
5969 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5970
5971 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
5972 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
5973 command line.
5974 * docs/grub.texi (Simple configuration): Document
5975 GRUB_CMDLINE_GNUMACH.
5976
5977 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5978
5979 * conf/Makefile.common (platform_SCRIPTS): New variable.
5980 (platform_PROGRAMS): Likewise.
5981 * gentpl.py: Mark *,module and *.image for install.
5982 * grub-core/gdb_grub.in: Add a notice of expected environment.
5983 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
5984 (gmodule.pl): Likewise.
5985
5986 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5987
5988 Replace grub_checkkey with grub_getkey_noblock.
5989
5990 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
5991 (grub_getkey_noblock): ... this. All users updated.
5992
5993 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5994
5995 * grub-core/kern/emu/console.c: Move to ...
5996 * grub-core/term/emu/console.c: ...here.
5997 (grub_ncurses_getkey): Fix return value if no key is detected.
5998
5999 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6000
6001 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
6002 (grub_unit_test_fini): Likewise.
6003 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
6004
6005 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6006
6007 * include/grub/test.h (GRUB_UNIT_TEST)
6008
6009 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6010
6011 * grub-core/script/execute.c (grub_script_break): Clarify logic.
6012 Better error handling.
6013 (grub_script_return): Likewise.
6014 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
6015
6016 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6017
6018 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
6019 rimplicit redifinition.
6020
6021 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6022
6023 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
6024 GRUB.
6025
6026 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6027
6028 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
6029 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
6030 prompt here.
6031
6032 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6033
6034 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
6035 as GRUB_ERR_BUG. Don't malloc if no device is available.
6036
6037 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6038
6039 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
6040 Mark calling with invalid term as GRUB_ERR_BUG.
6041
6042 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6043
6044 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
6045 packets rather than raising an error.
6046
6047 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6048
6049 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
6050 in if.
6051
6052 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6053
6054 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
6055 diagnostic to dprintf.
6056 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6057
6058 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6059
6060 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
6061 device name.
6062
6063 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6064
6065 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
6066 (grub_ntfs_iterate_dir): Likewise.
6067
6068 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6069
6070 Efiemu stylistic fixes and gettext.
6071
6072 * grub-core/efiemu/i386/loadcore32.c
6073 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
6074 * grub-core/efiemu/i386/loadcore64.c
6075 (grub_arch_efiemu_relocate_symbols64): Likewise.
6076 * grub-core/efiemu/i386/pc/cfgtables.c
6077 (grub_machine_efiemu_init_tables): Likewise.
6078 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
6079 (grub_efiemu_loadcore_initXX): Add a filename argument.
6080 All users updated.
6081 Improved error message.
6082 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
6083 Add a filename argument.
6084 All users updated.
6085 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
6086 Reclassify double relocation as GRUB_ERR_BUG.
6087
6088 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6089
6090 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
6091 handling.
6092
6093 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6094
6095 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
6096 on partition.
6097
6098 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6099
6100 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
6101
6102 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6103
6104 Improve string. Gettextize.
6105
6106 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6107
6108 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
6109 utils.
6110 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
6111
6112 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6113
6114 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
6115 [GRUB_UTIL]: New function.
6116 (insert_array) [GRUB_UTIL]: Store partmaps.
6117 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
6118 partmaps.
6119 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
6120 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
6121 (probe_abstraction): Print diskfilter and not raid.
6122 Reported by: Lennart Sorensen
6123
6124 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6125
6126 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
6127 * util/grub-mkimagexx.c (MASK3): New define.
6128 (add_value_to_slot_20b): Use MASK3.
6129 (add_value_to_slot_21): Likewise.
6130 (relocate_addresses): Fix format specification.
6131 (load_image): Explicitly init symtab_section.
6132
6133 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6134
6135 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
6136 (grub_util_biosdisk_get_grub_dev): Fix format specification.
6137
6138 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6139
6140 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
6141 on powerpc.
6142 Reported by: Lennart Sorensen
6143
6144 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6145
6146 * gentpl.py: Add missing license header.
6147 * docs/grub.texi: Update copyright year.
6148
6149 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
6150
6151 Source grub-mkconfig_lib from the build directory at build time.
6152 Suggested by: Vladimir Serbinenko.
6153
6154 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
6155 * util/grub-install.in: Define pkgdatadir if not already set, and source
6156 grub-mkconfig_lib from there.
6157 * util/grub-kbdcomp.in: Likewise.
6158 * util/grub-mkconfig.in: Likewise.
6159 * util/grub-mknetdir.in: Likewise.
6160 * util/grub-mkrescue.in: Likewise.
6161 * util/grub-mkstandalone.in: Likewise.
6162 * util/grub-reboot.in: Likewise.
6163 * util/grub-set-default.in: Likewise.
6164 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6165
6166 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6167
6168 Increase warning level.
6169
6170 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
6171 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
6172 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
6173 (TARGET_CFLAGS): Likewise.
6174 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
6175 * grub-core/Makefile.core.def (decompressor_xz): Add
6176 -Wno-unreachable-code.
6177 (normal): Add -Wno-redundant-decls.
6178 (xzio): Add -Wno-unreachable-code.
6179 (lzopio): Add -Wno-redundant-decls -Wno-error.
6180 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
6181 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
6182 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
6183 * grub-core/kern/dl.c: Add exception to -Wcast-align.
6184 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
6185 * grub-core/kern/i386/coreboot/init.c: Add exception to
6186 -Wsuggest-attribute=noreturn.
6187 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
6188 * grub-core/kern/ia64/dl_helper.c: Likewise.
6189 * grub-core/kern/mips/dl.c: Likewise.
6190 * grub-core/kern/sparc64/dl.c: Likewise.
6191 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
6192 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
6193 (memcmp): Likewise.
6194 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
6195 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
6196 * grub-core/loader/mips/linux.c: Likewise.
6197 * grub-core/loader/multiboot_elfxx.c: Likewise.
6198 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
6199 * grub-core/video/sm712.c: Add exception to -Wcast-align.
6200 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
6201 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
6202 fixme.
6203 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
6204 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
6205 Fix prototype.
6206
6207 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6208
6209 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
6210 address.
6211
6212 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6213
6214 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
6215 Avoid improper use of strings.
6216 (grub_cmd_legacy_initrdnounzip): Likewise.
6217
6218 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6219
6220 * include/grub/emu/misc.h (grub_util_warn): Add missing format
6221 attribute.
6222 (grub_util_info): Likewise.
6223 (grub_util_error): Likewise.
6224
6225 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6226
6227 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
6228 * util/grub-fstest.c (fstest): Likewise.
6229
6230 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6231
6232 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
6233 (grub_md_sha512_real): Likewise.
6234 (grub_util_get_geli_uuid): Likewise.
6235 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
6236 (grub_util_biosdisk_open): Fix format specification.
6237 Respect format security.
6238 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
6239 (xrealloc): Likewise.
6240 (xasprintf): Likewise.
6241
6242 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6243
6244 * util/import_gcry.py: Include grub/crypto.h in init.c.
6245
6246 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6247
6248 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
6249 (generate_image): Make prefix a const char *.
6250 Fix format specifications. Respect format security.
6251 Avoid void * arithmetics.
6252 Avoid shadowing.
6253 (argp_parser): Remove unused variable. Respect format security.
6254 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
6255 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
6256 (count_funcs): Remove unused variable.
6257 (relocate_addresses): Fix format specification.
6258 Disable x86-64 with elf32. Remove unused variables.
6259 (add_fixup_entry): Avoid shadowing.
6260 (make_reloc_section): Fix format specification.
6261 Use assert.
6262 (locate_sections): Fix format specifications.
6263 (load_image): Avoid shadowing.
6264
6265 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6266
6267 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
6268 Fix format specifications. Respect format security.
6269 Don't translate already translated grub_errmsg.
6270 (argp_parser): Remove unused variable
6271
6272 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6273
6274 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
6275
6276 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6277
6278 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
6279 (main): Likewise. Use xmalloc. Respect format security.
6280
6281 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6282
6283 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
6284 a const char *.
6285 (argp_parser): Remove unused variable.
6286
6287 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6288
6289 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
6290 (add_pixel): Make static.
6291 (add_font): Likewise.
6292 (write_string_section): Make name and str a const char *.
6293 (write_be16_section): Make name a const char *.
6294 (print_glyphs): Make static.
6295 (write_font_ascii_bitmap): Likewise.
6296 (write_font_width_spec): Likewise.
6297 (write_font_pf2): Likewise.
6298 (argp_parser): Remove unused variable.
6299 Respect format security.
6300 (main): Avoid shadowing. Respect format security.
6301
6302 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6303
6304 * util/grub-editenv.c (argp_parser): Make static.
6305 (create_envblk_file): Use xmalloc.
6306 (open_envblk_file): Likewise.
6307 Resepect format security.
6308 (set_variables): Respect format security.
6309
6310 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6311
6312 * util/getroot.c (grub_find_device): Respect format security.
6313 (get_mdadm_uuid): Remove unused variable.
6314 (grub_util_pull_device): Dont call gettext on already translated
6315 grub_errmsg.
6316 (find_system_device): Remove unused variable.
6317 (grub_util_get_grub_dev): Likewise.
6318 (grub_make_system_path_relative_to_its_root): Respect format security.
6319
6320 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6321
6322 * util/grub-fstest.c (execute_command): Make first argument
6323 a const char *.
6324 (read_file): Avoid shadowing.
6325 Reuse underlying error message if device open fails.
6326 (cmd_cmp): Respect format security.
6327 (root): Make const char *.
6328 (fstest): Remove args argument and use global copy.
6329 Respect format security.
6330 (argp_parser): Make static.
6331 (main): Make default_root const char *.
6332
6333 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6334
6335 * util/grub-mount.c (root): Make const char *.
6336 (execute_command): Make first argument a const char *.
6337 (fuse_init): Respect format security.
6338 (argp_parser): Make static. Remove unused variable.
6339 (main): Make default_root a const char *.
6340 Respect format security.
6341
6342 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6343
6344 * util/grub-probe.c (probe): Don't call gettext on already translated
6345 grub_errmsg.
6346 Remove unused variables.
6347 (argp_parser): Remove unused variable.
6348
6349 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6350
6351 * util/grub-script-check.c (argp_parser): Remove unused variable.
6352 (main): Rename read to curread to avoid shadowing.
6353
6354 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6355
6356 * util/misc.c (grub_util_write_image_at): Fix format specification.
6357 (grub_util_write_image): Likewise.
6358 (grub_script_execute_argument_to_string): Removed (unused).
6359 (grub_script_execute_menuentry): Likewise.
6360 (grub_putchar): Likewise.
6361
6362 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6363
6364 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
6365 (FUNCTION) [GRUB_UTIL]: Likewise.
6366 (VARIABLE) [GRUB_UTIL]: Likewise.
6367
6368 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6369
6370 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
6371 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
6372
6373 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6374
6375 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
6376 buffer.
6377
6378 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6379
6380 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
6381 (LzmaEnc_SaveState): Removed (unused).
6382 (LzmaEnc_RestoreState): Likewise.
6383 (LzmaEnc_InitPriceTables): Made static.
6384 (LzmaEnc_Construct): Likewise.
6385 (LzmaEnc_FreeLits): Likewise.
6386 (LzmaEnc_Destruct): Likewise.
6387 (LzmaEnc_Init): Likewise.
6388 (LzmaEnc_InitPrices): Likewise.
6389 (LzmaEnc_Finish): Likewise.
6390 (LzmaEnc_PrepareForLzma2): Removed (unused).
6391 (LzmaEnc_MemPrepare): Likewise.
6392 (LzmaEnc_GetNumAvailableBytes): Likewise.
6393 (LzmaEnc_GetCurBuf): Likewise.
6394 (LzmaEnc_CodeOneMemBlock): Likewise.
6395
6396 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6397
6398 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
6399 (grub_util_ldm_embed): Likewise.
6400
6401 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6402
6403 * util/grub-editenv.c (print_var): Rename name to varname to
6404 avoid shadowing.
6405 (main): Rename index to curindex to avoid shadowing.
6406 Make filename a const char *.
6407
6408 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6409
6410 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
6411 to arg_getline to avoid shadowing.
6412
6413 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6414
6415 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
6416 disk_ to avoid shadowing.
6417
6418 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6419
6420 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
6421 curindex to avoid shadowing.
6422 Make static.
6423 (MatchFinder_GetNumAvailableBytes): Make static.
6424
6425 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6426
6427 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
6428 avoid shadowing.
6429
6430 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6431
6432 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
6433 argument from encrypt to do_encrypt to avoid shadowing.
6434
6435 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6436
6437 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
6438 incorrect nesting of #if's.
6439
6440 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6441
6442 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
6443 checks which are always false on some platforms.
6444 (grub_cmd_lsacpi): Likewise.
6445 * grub-core/kern/misc.c (grub_strtoul): Likewise.
6446 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
6447 Likewise.
6448
6449 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6450
6451 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
6452 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
6453
6454 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6455
6456 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
6457 re_dfa_t to avoid breaking alignment invariants.
6458 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
6459 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
6460
6461 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6462
6463 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
6464 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
6465
6466 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6467
6468 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
6469 Fix declaration.
6470
6471 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6472
6473 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
6474 conserve alignment invariants.
6475 (grub_ehci_ehcc_read16): Likewise.
6476 (grub_ehci_oper_read32): Likewise.
6477 (grub_ehci_oper_write32): Likewise.
6478 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
6479 Conserve alignment invariants.
6480
6481 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6482
6483 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
6484 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
6485 declarations.
6486
6487 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6488
6489 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
6490 Remove unused variable.
6491
6492 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6493
6494 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
6495 Remove set in if.
6496
6497 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6498
6499 * include/grub/net.h: Remove double declarations.
6500
6501 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6502
6503 Remove "payload" command in ia64 Linux loader since I couldn't
6504 find any evidence of it being used for anything.
6505 Replace "relocate" command with an environment variable
6506
6507 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
6508 fields.
6509 (ia64_boot_payload): Removed.
6510 (last_payload): Likewise.
6511 (RELOCATE_OFF): Likewise.
6512 (RELOCATE_ON): Likewise.
6513 (RELOCATE_FORCE): Likewise.
6514 (relocate): Likewise.
6515 (free_pages): Don't free payloads.
6516 (grub_load_elf64): Use common error messages.
6517 Use "linux_relocate" variable.
6518 Increase the space after boot_params.
6519 (grub_cmd_payload): Removed.
6520 (grub_cmd_relocate): Likewise.
6521 (grub_cmd_fpswa): Improve messages.
6522 (cmd_payload): Removed.
6523 (cmd_relocate): Likewise.
6524 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
6525 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
6526
6527 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6528
6529 Convert UHCI to DMA framework.
6530
6531 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
6532 (grub_uhci_pci_iter): Fill new members
6533 (grub_alloc_td): Use P2V and V2P functions.
6534 (grub_free_queue): Likewise.
6535 (grub_alloc_qh): Likewise.
6536 (grub_uhci_setup_transfer): Likewise.
6537 (grub_uhci_check_transfer): Likewise.
6538
6539 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6540
6541 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
6542 Remove assignment in if while on it.
6543
6544 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6545
6546 * util/grub-mkstandalone.in: Fix modules directory.
6547
6548 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6549
6550 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
6551 on i386-pc target.
6552 (argp_parser): Accept "auto" as compression specification.
6553
6554 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6555
6556 Fix `help' with unloaded modules.
6557
6558 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
6559 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
6560 (grub_dyncmd_dispatcher): Small stylistic fix.
6561 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
6562 explicit help is requested.
6563
6564 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6565
6566 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
6567 Explicitly init restart while on it.
6568
6569 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6570
6571 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
6572 uninited variable.
6573
6574 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6575
6576 * util/grub-mknetdir.in: Use . rather than source for POSIX
6577 compatibility.
6578
6579 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6580
6581 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
6582
6583 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6584
6585 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
6586 variable.
6587
6588 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6589
6590 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
6591 without quotes.
6592
6593 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6594
6595 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
6596
6597 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6598
6599 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
6600 iteration of partitions.
6601
6602 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6603
6604 Improve gettext support. Stylistic fixes and error handling fixes while
6605 on it.
6606
6607 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6608
6609 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
6610 part. Instead setup the correct stack in RM.
6611 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
6612 for stack.
6613 * include/grub/i386/relocator_private.h: New file.
6614
6615 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6616
6617 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
6618 argument.
6619 * util/grub-fstest.c (options): Add missing DEVICE part.
6620
6621 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6622
6623 Clarify and unify messages.
6624
6625 * grub-core/commands/hashsum.c (options): Unify messages.
6626 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
6627 literal-only message as translatable.
6628 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
6629 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
6630 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
6631 commands.
6632 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
6633 key, not the key used to unlock. Clarify what it's used for.
6634 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
6635 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
6636 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
6637 * util/grub-editenv.c (options): Unify "verbose" message.
6638 * util/grub-fstest.c (read_file): Unify error message.
6639 (fstest): Add quotes around commands.
6640 (options): Unify "verbose" message.
6641 * util/grub-install.in: Add quotes around variable name.
6642 * util/grub-kbdcomp.in: Unify error message.
6643 * util/grub-mkfont.c (main): Likewise.
6644 * util/grub-mkrescue.in: Likewise.
6645 * util/grub-mklayout.c (options): Unify "verbose" message.
6646 * util/grub-mkstandalone.in: Unify help and verbose messages.
6647 * util/grub-mount.c (options): Unify "verbose" message.
6648 * util/grub-probe.c (options): Likewise.
6649 * util/grub-script-check.c (options): Likewise.
6650 * util/grub-setup.c (setup): Unify no-terminator message.
6651 (options): Use DEVICE and not DEV.
6652 Unify "verbose" message.
6653 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
6654
6655 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6656
6657 Improve and unify messages.
6658
6659 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
6660 name. All users updated.
6661 Print filename in error.
6662 (read_device_map): Print filename in error.
6663 * util/getroot.c (grub_guess_root_devices): Print filename in error.
6664 (grub_util_get_os_disk): Likewise.
6665 (grub_util_biosdisk_get_grub_dev): Likewise.
6666 (grub_util_check_block_device): Likewise.
6667 (grub_util_check_char_device): Likewise.
6668 (grub_make_system_path_relative_to_its_root): Likewise.
6669 * util/grub-editenv.c (create_envblk_file): Likewise.
6670 (open_envblk_file): Likewise.
6671 (write_envblk): Likewise.
6672 * util/grub-fstest.c (cmd_cp): Likewise.
6673 (cmd_cat): Likewise.
6674 (cmd_cmp): Likewise.
6675 * util/grub-menulst2cfg.c (main): Likewise.
6676 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
6677 (write_font_width_spec): Likewise.
6678 (write_font_pf2): Likewise.
6679 * util/grub-mkimage.c (generate_image): New argument outname.
6680 All users updated.
6681 Remove unreacheable message.
6682 (options): Unify messages.
6683 (help_filter): Likewise.
6684 * util/grub-mklayout.c (usage): Removed (unused).
6685 (main): Print filename in error.
6686 * util/grub-mkrescue.in: Fix wrong quoting.
6687 * util/grub-setup.c (setup): Print filename in error.
6688 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
6689 (check_sas): Likewise.
6690 * util/misc.c (grub_util_get_fp_size): Removed.
6691 (grub_util_get_image_size): Print filename in error.
6692 (grub_util_read_at): Removed.
6693 (grub_util_read_image): Print filename in error.
6694 (grub_util_load_image): Likewise.
6695 (grub_util_write_image_at): New argument filename. All users updated.
6696 Print filename in error.
6697 (grub_util_write_image): New argument filename. All users updated.
6698 Print filename in error.
6699 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
6700 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
6701
6702 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6703
6704 * grub-core/Makefile.core.def (pxechain): New module.
6705 * grub-core/loader/i386/pc/pxechainloader.c: New file.
6706 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
6707 function.
6708 (grub_pc_net_config_real): Use grub_pxe_get_cached.
6709 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
6710
6711 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6712
6713 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
6714 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
6715 * include/grub/err.h (grub_error_saved): New struct.
6716 (grub_errmsg): Make array size explicit.
6717 * include/grub/misc.h (grub_error_save): New function.
6718 (grub_error_load): Likewise.
6719 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
6720 (grub_error_push): Update `errno' member name.
6721 (grub_error_pop): Likewise
6722 * grub-core/net/tftp.c (tftp_data): New member save_err.
6723 (tftp_receive): Save error.
6724 (tftp_open): Restore error.
6725
6726 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6727
6728 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
6729 to real mode down to execute A20-related code in protected mode as
6730 intended.
6731
6732 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
6733
6734 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
6735 NULL when the argument `level' has an unexpected value.
6736
6737 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6738
6739 Move platform-dependent files from $prefix to $prefix/$platform.
6740
6741 * config.h.in (GRUB_TARGET_CPU): New definition.
6742 (GRUB_PLATFORM): Likewise.
6743 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
6744 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
6745 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
6746 * grub-core/kern/dl.c (grub_dl_load): Likewise.
6747 * grub-core/normal/autofs.c (read_fs_list): Likewise.
6748 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
6749 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
6750 * grub-core/normal/term.c (read_terminal_list): Likewise.
6751 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
6752 $prefix/locale.
6753 (grub_gettext_init_ext): Likewise.
6754 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
6755 grub_platform.
6756 * util/grub-install.in: Update directories.
6757 * util/grub-mknetdir.in: Likewise.
6758 * util/grub-mkrescue.in: Likewise.
6759
6760 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6761
6762 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
6763 grub_error framework. All users updated.
6764
6765 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6766
6767 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
6768 lists (by always binsearching), improve caching (cache strings
6769 used for binsearch, not only results), improve
6770 maintainability (by using more structured binary search) and correct
6771 error handling.
6772
6773 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6774
6775 * grub-core/script/execute.c (grub_script_return): Fix warning.
6776
6777 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6778
6779 * grub-core/script/execute.c (grub_script_return): Fix potential
6780 NULL-dereference.
6781 Reported by: Jim Meyering.
6782
6783 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6784
6785 * po/POTFILES.in: Regenerate.
6786 * util/grub-install.in: Gettextize the strings missed in first pass.
6787
6788 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6789
6790 * Makefile.util.def (grub-mkdevicemap): Removed.
6791 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
6792 * include/grub/util/deviceiter.h: Removed.
6793 * util/deviceiter.c: Likewise.
6794 * util/getroot.c (grub_util_get_os_disk): New function.
6795 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
6796 replacement for EFI.
6797 * util/grub-mkdevicemap.c: Removed.
6798 * util/grub-probe.c (probe): Handle PRINT_DISK.
6799 (argp_parser): Handle -t disk.
6800
6801 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6802
6803 * util/grub-mkfont.c: Migrate to argp.
6804 * util/grub-mklayout.c: Likewise.
6805 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6806 * util/grub-mkrelpath.c: Likewise.
6807 * util/grub-probe.c: Likewise.
6808 * util/grub-script-check.c: Likewise.
6809
6810 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6811
6812 * util/grub-reboot.in: Add missing datarootdir.
6813 Add missing newline.
6814 * util/grub-set-default.in: Add missing datarootdir.
6815 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
6816 * util/grub-mkrescue.in: Likewise.
6817
6818 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6819
6820 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
6821
6822 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6823
6824 * util/grub-kbdcomp.in: Add decent help and gettextize.
6825 * docs/man/grub-kbdcomp.h2m: New file.
6826
6827 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6828
6829 Migrate grub-mkimage.c to argp.
6830
6831 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
6832 (grub-setup): Likewise.
6833 * util/grub-setup.c (print_version): Move to ...
6834 * util/argp_common.c (print_version): ... here.
6835 * util/grub-setup.c (argp_program_version_hook): Move to ...
6836 * util/argp_common.c (argp_program_version_hook): ... here.
6837 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
6838 safety.
6839 * util/grub-mkimage.c (main): Migrate to argp.
6840
6841 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6842
6843 * util/grub-mkrescue.in: Use same message as
6844 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
6845 for better translations.
6846
6847 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6848
6849 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
6850 options with generic grub-mkrescue.in with the goal of future
6851 merge.
6852
6853 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6854
6855 * grub-core/kern/mm.c: Add missing include of i18n.h
6856 * grub-core/lib/relocator.c: Likewise.
6857
6858 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6859
6860 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
6861 error.
6862 (allocate_pages): Check return value.
6863 Replace fatal with error.
6864 (grub_linux_boot): Replace printf with dprintf.
6865 Check find_mmap_size return value.
6866 Replace fatal with error.
6867 Don't call grub_machine_fini.
6868 (grub_load_elf64): Replace printf with dprintf.
6869 (grub_cmd_linux): Likewise.
6870 (grub_cmd_initrd): Likewise.
6871 (grub_cmd_payload): Likewise.
6872
6873 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6874
6875 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
6876 message.
6877 * grub-core/video/radeon_fuloong2e.c
6878 (grub_video_radeon_fuloong2e_setup): Likewise.
6879 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
6880 * grub-core/video/video.c (grub_video_set_mode): Don't override
6881 standard out of memory message.
6882
6883 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6884
6885 NetBSD disk wedge support.
6886
6887 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
6888 [__NetBSD__]: Handle NetBSD disk wedges.
6889 * util/getroot.c (convert_system_partition_to_system_disk)
6890 [__NetBSD__]: Likewise.
6891
6892 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
6893
6894 * util/grub-mkconfig.in: Use umask rather than chmod to create
6895 grub.cfg.new to avoid insecure grub.cfg.
6896
6897 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6898
6899 * grub-core/commands/ls.c: Gettextize.
6900 * grub-core/commands/setpci.c: Likewise.
6901 * grub-core/commands/videotest.c: Likewise.
6902 * grub-core/disk/geli.c: Likewise.
6903 * grub-core/kern/mm.c: Likewise.
6904 * grub-core/lib/relocator.c: Likewise.
6905 * grub-core/loader/efi/appleloader.c: Likewise.
6906 * grub-core/loader/i386/xnu.c: Likewise.
6907 * grub-core/loader/ia64/efi/linux.c: Likewise.
6908 * grub-core/loader/xnu.c: Likewise.
6909 * grub-core/net/dns.c: Likewise.
6910 * grub-core/net/net.c: Likewise.
6911 * grub-core/script/lexer.c: Likewise.
6912 * grub-core/script/parser.y: Likewise.
6913 * grub-core/script/yylex.l: Likewise.
6914 * util/getroot.c: Likewise.
6915 * util/grub-setup.c: Likewise.
6916
6917 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6918
6919 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
6920 number.
6921
6922 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6923
6924 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
6925
6926 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6927
6928 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
6929 macro.
6930 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
6931 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
6932
6933 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6934
6935 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
6936 * util/grub-install.in: Gettextize.
6937 * util/grub-mkconfig.in: Likewise.
6938 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
6939 if not available.
6940 (grub_warn): Gettextize.
6941 * util/grub-mknetdir.in: Gettextize.
6942 * util/grub-mkrescue.in: Likewise.
6943 * util/grub-mkstandalone.in: Likewise.
6944 * util/grub-reboot.in: Likewise.
6945 * util/grub-set-default.in: Likewise.
6946 * util/grub.d/00_header.in: Likewise.
6947 * util/grub.d/10_hurd.in: Likewise.
6948 * util/grub.d/10_kfreebsd.in: Likewise.
6949 * util/grub.d/10_linux.in: Likewise.
6950 * util/grub.d/10_netbsd.in: Likewise.
6951 * util/grub.d/10_windows.in: Likewise.
6952 * util/grub.d/20_linux_xen.in: Likewise.
6953 * util/grub.d/30_os-prober.in: Likewise.
6954 * po/POTFILES-shell.in: Regenerate.
6955
6956 2012-02-03 Richard Laager <rlaager@wiktel.com>
6957
6958 * util/grub-mkimage.c (main): Fix format-security warning.
6959 * util/grub-mkrelpath.c (main): Likewise.
6960 * util/grub-probe.c (main): Likewise.
6961
6962 2012-02-03 Richard Laager <rlaager@wiktel.com>
6963
6964 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
6965 failure.
6966 Put back lost PRINT_DRIVE.
6967
6968 2012-02-03 Richard Laager <rlaager@wiktel.com>
6969
6970 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
6971 (grub_guess_root_devices): Replace strlen with sizeof.
6972 Avoid crash.
6973 (find_root_devices_from_poolname): Remove unused variable.
6974 Handle raidzN.
6975
6976 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6977
6978 Support install on multi-device filesystems.
6979
6980 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
6981 (grub_guess_root_devices): ...this. Return char **. All users updated.
6982 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
6983 Removed.
6984 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
6985 (find_root_devices_from_poolname): ... here.
6986 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
6987 Support zfs-fuse.
6988 (grub_guess_root_device): Rename to ...
6989 (grub_guess_root_devices): ... this. Return char **. All users updated.
6990 * util/grub-install.in: Handle multi-device filesystems.
6991 * util/grub-probe.c (probe). Make device_names a char **. Add delim
6992 argument. All users updated.
6993 Handle multi-device filesystems.
6994 Use 'delim' as separator.
6995 Remove device check to allow filesystems on file.
6996 (main): Support -0 argument. Handle multi-device.
6997 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
6998 Fix a cross-device check while on it.
6999 (arguments): Remove root_dev.
7000 (argp_parser): Remove -r.
7001 (main): Remove root_dev.
7002
7003 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7004
7005 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
7006
7007 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7008
7009 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
7010 symbol.
7011 Reported by: NODA, Kai <nodakai>.
7012
7013 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7014
7015 Fix ehci on amd64.
7016
7017 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
7018 pointers.
7019 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
7020 (grub_ehci_setup_qh): Likewise.
7021 (grub_ehci_find_qh): Likewise.
7022 (grub_ehci_transaction): Likewise.
7023 (grub_ehci_setup_transfer): Likewise.
7024 (grub_ehci_check_transfer): Likewise.
7025 (grub_ehci_portstatus): Likewise.
7026 (grub_ehci_detect_dev): Likewise.
7027 (grub_ehci_transfer_controller_data): New field td_last_phys.
7028 (grub_ehci_setup_transfer): Fill td_last_phys.
7029 (grub_ehci_check_transfer): Use td_last_phys.
7030
7031 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
7032
7033 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
7034 if no submenu is present.
7035
7036 2012-02-01 Aleš Nesrsta <starous@volny.cz>
7037
7038 CBI support.
7039
7040 * include/grub/usb.h (grub_usbms_protocol_t): New values
7041 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
7042 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
7043 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
7044 (grub_usbms_dev): Add subclass, protocol and intrpt.
7045 Remove in_maxsz and out_maxsz.
7046 (grub_usbms_reset): Rename to ...
7047 (grub_usbms_bo_reset): .. this.
7048 (grub_usbms_cbi_cmd): New function.
7049 (grub_usbms_cbi_reset): Likewise.
7050 (grub_usbms_reset): Likewise.
7051 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
7052 (grub_usbms_transfer): Rename to ...
7053 (grub_usbms_transfer_bo): ... this.
7054 (grub_usbms_transfer_cbi): Likewise.
7055 (grub_usbms_transfer): Likewise.
7056
7057 2012-02-01 Aleš Nesrsta <starous@volny.cz>
7058 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7059
7060 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
7061 the support for the CS5536 modification thereos and few bugfixes.
7062
7063 * grub-core/Makefile.core.def (ehci): New module.
7064 * grub-core/bus/usb/ehci.c: New file.
7065 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
7066 port and hubaddr. All users updated.
7067 Save port and hubaddr into dev structure.
7068 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
7069 define.
7070 * include/grub/pci.h (grub_dma_phys2virt): New function.
7071 (grub_dma_virt2phys): Likewise.
7072 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
7073
7074 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7075
7076 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
7077 check as some mkfs implementations omit it.
7078
7079 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7080
7081 * docs/grub.texi (Unicode): Mention identifier and space limitations.
7082
7083 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7084
7085 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
7086 Add new member volname2.
7087 (grub_jfs_label): Use volname2 if available.
7088
7089 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7090
7091 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
7092 over last_mounted as seen in image generated by mkfs.nilfs2.
7093 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
7094
7095 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7096
7097 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
7098 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
7099 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
7100
7101 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7102
7103 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
7104 over the sector.
7105
7106 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7107
7108 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
7109 subvolume name (by removing a bogus and useless check).
7110
7111 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7112
7113 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
7114 sizeof while on it.
7115
7116 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7117
7118 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
7119 (grub_scsi_read_capacity10): ... this.
7120 (grub_scsi_read_capacity16): New function.
7121 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
7122 0xffffffff.
7123 Fix off-by-one error.
7124 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
7125 64-bit unsigned.
7126 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
7127 (grub_scsi_read_capacity10): ... this.
7128 (grub_scsi_read_capacity_data): Rename to ...
7129 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
7130 (grub_scsi_read_capacity16): New struct.
7131 (grub_scsi_read_capacity16_data): Likewise.
7132 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
7133 grub_scsi_cmd_read_capacity10.
7134 New command grub_scsi_cmd_read_capacity16.
7135
7136 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7137
7138 SCSI >2TiB support.
7139
7140 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
7141 (grub_scsi_write16): Likewise.
7142 (grub_scsi_read): Use read16 when necessary.
7143 (grub_scsi_write): Likewise.
7144 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
7145 (grub_scsi_write16): Likewise.
7146 (grub_scsi_cmd_t): Add READ16 and WRITE16.
7147
7148 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7149
7150 SCSI write support (for usbms mainly).
7151
7152 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
7153 a const pointer.
7154 (grub_scsi_write): Implement.
7155 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
7156
7157 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7158
7159 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
7160 variable.
7161
7162 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7163
7164 * grub-core/lib/posix_wrap/string.h (memchr): New function.
7165
7166 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7167
7168 * po/POTFILES.in: Regenerate.
7169
7170 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7171
7172 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
7173 with grub_printf to avoid unnecessary fatal failure.
7174
7175 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7176
7177 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
7178 (INT_MAX): Likewise.
7179 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
7180 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
7181 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
7182 (strcpy): Likewise.
7183 (strstr): Likewise.
7184 (strchr): Likewise.
7185 (strncpy): Likewise.
7186 (strcat): Likewise.
7187 (strncat): Likewise.
7188 (strcoll): Likewise.
7189 * include/grub/types.h (GRUB_SHRT_MAX): New define.
7190 (GRUB_INT_MAX): Likewise.
7191
7192 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7193
7194 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
7195 unexpected error.
7196 (optimize_utf8): Likewise.
7197 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
7198
7199 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7200
7201 * grub-core/boot/i386/pc/lnxboot.S: Use
7202 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
7203 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
7204 location.
7205 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
7206 definition.
7207 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
7208
7209 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7210
7211 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
7212 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
7213 now to avoid double free.
7214 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
7215 hostdisk.
7216 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
7217 * util/grub-probe.c (escape_of_path): Always return a new copy.
7218 (print_full_name): Escape path.
7219 (probe): Don't call grub_util_devname_to_ofpath on NULL.
7220 Fix hints on abstractions.
7221
7222 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7223
7224 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
7225 Don't add "root" line if no compatibility hont is available.
7226 Suggested by: Seth Goldberg.
7227
7228 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7229
7230 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
7231 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
7232 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
7233 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
7234
7235 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7236
7237 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
7238
7239 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7240
7241 * util/grub-pe2elf.c (ehdr): Make static.
7242 (shdr): Likewise.
7243 (num_sections): Likewise.
7244 (offset): Likewise.
7245
7246 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7247
7248 Eliminate ofpath limits and possible overflows.
7249
7250 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
7251 (OF_PATH_MAX): Removed.
7252 (MAX_DISK_CAT): New const.
7253 (find_obppath): Use allocated rather than preallocated buffer.
7254 Return result. Argument of_path removed. All users updated.
7255 Add missing fdstat.
7256 (xrealpath): New function.
7257 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
7258 Allocate rather than use preallocated buffer. All users updated.
7259 (__of_path_common): Use allocated rather than preallocatecd buffer.
7260 Return result. Argument of_path removed. All users updated.
7261 (vendor_is_ATA): Read only needed part form the file.
7262 (check_sas): Allocate depending on contents rather than fixed.
7263 (main) [STANDALONE]: Handle NULL result.
7264
7265 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7266
7267 * grub-core/normal/completion.c (iterate_dev): Close the disk.
7268
7269 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7270
7271 Cryptodisk write support.
7272
7273 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
7274 (grub_cryptodisk_decrypt): Moved logic to ...
7275 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
7276 (grub_cryptodisk_write): Implement.
7277 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
7278 (grub_util_fd_write): ... this. Make global.
7279 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
7280
7281 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7282
7283 * include/grub/list.h (grub_list_remove): Don't crash if element is
7284 removed twice.
7285
7286 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7287
7288 Rename ofconsole to console.
7289
7290 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
7291 as sysnonym to console.
7292 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
7293 * grub-core/term/ieee1275/console.c: ... this. All users updated.
7294 Rename grub_ofconsole_ to grub_console_. All users updated
7295 (grub_console_term_output): Rename "ofconsole" to "console".
7296 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
7297 as "console".
7298
7299 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7300
7301 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
7302 handling.
7303 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
7304 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
7305 GRUB_DISK_DEVICE_FILE_ID.
7306
7307 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7308
7309 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
7310 and improve performance.
7311
7312 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7313
7314 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
7315 missing ieee1275/ prefix on whole disk.
7316
7317 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7318
7319 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
7320 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
7321
7322 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7323
7324 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
7325
7326 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7327
7328 Merge common RAID and LVM logic to an abstract diskfilter.
7329 Add LDM support using the same framework.
7330
7331 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
7332 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
7333 (libgrubmods): Remove grub-core/disk/raid.c and
7334 grub-core/partmap/gpt.c.
7335 * grub-core/Makefile.core.def (ldm): New module.
7336 (raid): Renamed to diskfilter. All users updated.
7337 * grub-core/disk/raid.c: Moved to ...
7338 * grub-core/disk/diskfilter.c: ... here.
7339 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
7340 (lv_num): New var.
7341 (find_array): Renamed to ...
7342 (find_lv): ... this. Support multi-LV. Skip nameless LVs
7343 (grub_is_array_readable): Renamed to ...
7344 (grub_is_lv_readable): ... this. Support multinode hierarchy.
7345 (insert_array): New argument id.
7346 (is_node_readable): New function.
7347 (scan_device): Rename to ...
7348 (scan_disk): .. this. Restrict to one disk.
7349 (scan_devices): New function.
7350 (grub_diskfilter_iterate): Support multi-LV.
7351 Skip invisible and nameless LVs.
7352 (grub_diskfilter_memberlist): Support multi-LV.
7353 (grub_diskfilter_read_node): New function.
7354 (grub_raid_read): Most of logic moved to ...
7355 (read_segment): ... here
7356 (read_lv): New function.
7357 (grub_diskfilter_get_vg_by_uuid): New function.
7358 (grub_diskfilter_make_raid): Likewise.
7359 * grub-core/disk/ldm.c: New file.
7360 * grub-core/disk/lvm.c (vg_list): Removed.
7361 (lv_count): Likewise.
7362 (scan_depth): Likewise.
7363 (is_lv_readable): Likewise.
7364 (grub_lvm_getvalue): Advance pointer past the number.
7365 (find_lv): Removed.
7366 (do_lvm_scan): Refactored into ...
7367 (grub_lvm_detect): ... this. Support raid.
7368 (grub_lvm_iterate): Removed.
7369 (grub_lvm_memberlist): Likewise.
7370 (grub_lvm_open): Likewise.
7371 (grub_lvm_close): Likewise.
7372 (read_lv): Likewise.
7373 (read_node): Likewise.
7374 (is_node_readable): Likewise.
7375 (is_lv_readable): Likewise.
7376 (grub_lvm_read): Likewise.
7377 (grub_lvm_write): Likewise.
7378 (grub_lvm_dev): Use diskfilter
7379 (GRUB_MOD_INIT): Likewise.
7380 (GRUB_MOD_FINI): Likewise.
7381 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
7382 new interface.
7383 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
7384 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7385 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
7386 grub_diskfilter_read_node.
7387 Fix a bug with xor.
7388 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
7389 grub_diskfilter_read_node.
7390 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
7391 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
7392 (grub_disk_dev_iterate): Move from here...
7393 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
7394 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
7395 Make global.
7396 (grub_hostdisk_find_partition_start): Likewise.
7397 (grub_hostdisk_os_dev_to_grub_drive): New function.
7398 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
7399 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
7400 * util/getroot.c (make_device_name): ... here.
7401 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
7402 Move to ...
7403 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
7404 * grub-core/kern/emu/hostdisk.c
7405 (convert_system_partition_to_system_disk): Move to ...
7406 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
7407 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
7408 * util/getroot.c (device_is_wholedisk): ... here.
7409 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
7410 * util/getroot.c (find_system_device): ... here.
7411 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
7412 Move to ...
7413 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
7414 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
7415 Move to ...
7416 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
7417 Handle LDM.
7418 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
7419 Move to ...
7420 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
7421 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
7422 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
7423 DISKFILTER.
7424 * include/grub/raid.h: Renamed to ...
7425 * include/grub/diskfilter.h: ... this.
7426 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
7427 (GRUB_RAID_LAYOUT_*): Make into array.
7428 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
7429 (grub_diskfilter_vg): New struct.
7430 (grub_diskfilter_pv_id): Likewise.
7431 (grub_raid_member): Removed.
7432 (grub_raid_array): Likewise.
7433 (grub_diskfilter_pv): New struct.
7434 (grub_diskfilter_lv): Likewise.
7435 (grub_diskfilter_segment): Likewise.
7436 (grub_diskfilter_node): Likewise.
7437 (grub_diskfilter_get_vg_by_uuid): New proto.
7438 (grub_raid_register): Inline.
7439 (grub_diskfilter_unregister): Likewise.
7440 (grub_diskfilter_make_raid): New proto.
7441 (grub_diskfilter_vg_register): Likewise.
7442 (grub_diskfilter_read_node): Likewise.
7443 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
7444 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
7445 (grub_util_is_ldm): Likewise.
7446 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
7447 (grub_hostdisk_find_partition_start): Likewise.
7448 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
7449 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
7450 New definition.
7451 (grub_gpt_partition_map_iterate): New proto.
7452 * include/grub/lvm.h (grub_lvm_vg): Removed.
7453 (grub_lvm_pv): Likewise.
7454 (grub_lvm_lv): Likewise.
7455 (grub_lvm_segment): Likewise.
7456 (grub_lvm_node): Likewise.
7457 * util/getroot.c [...]
7458 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
7459 (probe_abstraction): Likewise.
7460 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
7461 (main): Remove dead logic.
7462
7463 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
7464
7465 Simplify root device discover and don't fail when trying to open
7466 incorrect devices.
7467
7468 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
7469 function.
7470 (get_diskname_from_path): Likewise.
7471 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
7472 of iterating.
7473
7474 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7475
7476 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
7477
7478 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7479
7480 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
7481 pastthe end.
7482
7483 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7484
7485 * util/grub-install.in: Add missing \.
7486 Reported by: gentoofan
7487
7488 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7489
7490 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
7491 (direct_read): Use correct compressed size.
7492 (grub_squash_read_data): Likewise.
7493
7494 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7495
7496 * docs/grub.texi (Platform limitations): New section.
7497 (Platform-specific operations): Likewise.
7498 * docs/grub-dev.texi (Porting): Likewise.
7499
7500 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7501
7502 IEEE1275 disk write support.
7503
7504 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
7505 const void *.
7506 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
7507 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
7508 and seek loginc to ...
7509 (grub_ofdisk_prepare): ... here.
7510 (grub_ofdisk_write): Implement.
7511
7512 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7513
7514 ARC disk write support.
7515
7516 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
7517 (reopen): New argument writable. All users updated.
7518 Handle required access mode.
7519 (grub_arcdisk_write): Implement.
7520 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
7521 (grub_arc_firmware_vector): Make buffer to write a const buffer.
7522
7523 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7524
7525 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
7526 (read_sblock): Don't attempt to read superblocks outside the disk size.
7527
7528 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7529
7530 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
7531 first superblock to find the second one when possible.
7532
7533 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7534
7535 * util/grub-install.in: Fix an ARC bug.
7536 Print a warning if no platform-specific setup is available.
7537
7538 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7539
7540 Use static allocation rather than scratch pointer in reed_solomon.
7541 It decreases its size significantly and avoids a variable in .text.
7542
7543 * grub-core/lib/reed_solomon.c (scratch): Removed.
7544 (chosenstat): New const or static array.
7545 (sigma): Likewise.
7546 (errpot): Likewise.
7547 (errpos): Likewise.
7548 (sy): Likewise.
7549 (mstat): Likewise.
7550 (errvals): Likewise.
7551 (eqstat): Likewise.
7552 (pol_evaluate): Replace x with log_x argument. All users updated.
7553 (syndroms): Removed.
7554 (gauss_solve): Use statically allocated arrays.
7555 (rs_recover): Likewise.
7556 Calculate syndroms directly.
7557 (decode_block): Use statically allocated arrays.
7558 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
7559 (main) [TEST]: Allow -DTEST -DSTANDALONE.
7560
7561 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7562
7563 Eliminate fixed limit on reed solomon decoder length.
7564
7565 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
7566 rather than hardcoding the address.
7567 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
7568 no_reed_solomon_length.
7569 Move gate_a20 to no-reed-solomon part.
7570 Don't force a particular size of no reed-solomon part.
7571 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7572 Removed.
7573 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
7574 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
7575
7576 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7577
7578 * grub-core/commands/wildcard.c (match_files): Handle filenames
7579 without explicit device.
7580 (wildcard_expand): Don't add explicit device if not already present.
7581 * tests/grub_script_echo1.in: Add a new expansion test.
7582
7583 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7584
7585 Replace single-linked with double-linked lists. It results in more
7586 compact and more efficient code.
7587
7588 * grub-core/kern/list.c (grub_list_push): Moved from here ...
7589 * include/grub/list.h (grub_list_push): ... to here. Set prev.
7590 (grub_list_remove): Moved from here ...
7591 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
7592 (grub_prio_list_insert): Set prev.
7593 * include/grub/list.h (grub_list): Add prev. All users updated.
7594
7595 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7596
7597 Handle newer autotools. Add some missing quotes while on it.
7598
7599 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
7600 (pkglib_DATA): Move grub-mkconfig_lib from here ...
7601 (pkgdata_DATA): ... here.
7602 * Makefile.util.def (update-grub_lib): Removed.
7603 * conf/Makefile.common (pkglib_DATA): Removed.
7604 (pkglib_SCRIPTS): Likewise.
7605 (pkgdata_DATA): New variable.
7606 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
7607 needed.
7608 Add missing quotes.
7609 Remove unused variable while on it.
7610 * tests/util/grub-shell.in: Likewise.
7611 * util/grub-install.in: Likewise.
7612 * util/grub-mkconfig.in: Likewise.
7613 * util/grub-mknetdir.in: Likewise.
7614 * util/grub-mkrescue.in: Likewise.
7615 * util/grub-mkstandalone.in: Likewise.
7616 * util/grub.d/00_header.in: Likewise.
7617 * util/grub.d/10_hurd.in: Likewise.
7618 * util/grub.d/10_illumos.in: Likewise.
7619 * util/grub.d/10_kfreebsd.in: Likewise.
7620 * util/grub.d/10_linux.in: Likewise.
7621 * util/grub.d/10_netbsd.in: Likewise.
7622 * util/grub.d/10_windows.in: Likewise.
7623 * util/grub.d/20_linux_xen.in: Likewise.
7624 * util/grub.d/30_os-prober.in: Likewise.
7625 * util/update-grub_lib.in: Removed.
7626
7627 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
7628
7629 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
7630 a workaround for intel problem.
7631
7632 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
7633 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7634 2012-01-23 pfsmorigo
7635
7636 * util/grub-install.in: Support dd'in into PreP partition.
7637 * util/grub-probe.c (probe): Support discovering partition type.
7638 (main): Support -t msdos_parttype.
7639
7640 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7641
7642 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
7643 infinite recursion using counter.
7644 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
7645 init to skip it if the magic check fails.
7646 (dec_stream_header): Init s->crc32.
7647
7648 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7649 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
7650 2012-01-22 Richard Laager <rlaager@wiktel.com>
7651
7652 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
7653 All users updated.
7654 (find_bestub): Determine correct size.
7655 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
7656 (scan_disk): Align the size down.
7657 Call check pool before find_bestub to have ashift.
7658
7659 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7660
7661 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
7662 dprintf in no-malloc zone.
7663
7664 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
7665
7666 * configure.ac: Add back in test for limits.h.
7667
7668 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7669
7670 Support 4K-sector NTFS.
7671
7672 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
7673 (grub_ntfs_data): Remove blocksize.
7674 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
7675 Remove data argument. All users updated.
7676
7677 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7678
7679 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
7680 being in .text to avoid dprel references.
7681 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
7682 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
7683 (grub_arch_highmemsize): Likewise.
7684 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
7685 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
7686 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
7687
7688 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7689
7690 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
7691
7692 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
7693 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
7694
7695 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7696
7697 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
7698 GRUB_UTIL.
7699 (grub_set_datetime_cmos): Likewise.
7700
7701 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7702
7703 Make XZ compression parameters dependent on target and not host CPU.
7704
7705 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
7706 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
7707
7708 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7709
7710 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
7711 set but not used variable.
7712
7713 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7714
7715 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
7716 created when no uuid support is compiled into mkfs.reiser.
7717
7718 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7719
7720 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
7721 (utf8_to_macroman): Do the opposite.
7722 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
7723
7724 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7725
7726 * configure.ac: Refise build qemu_mips w/o unifont.
7727
7728 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7729
7730 Eliminate grub_min/grub_max prone to overflow usage.
7731
7732 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
7733 (poll_nonroot_hub): Likewise.
7734 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
7735 (grub_affs_label): Likewise.
7736 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
7737 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
7738 (grub_hfs_label): Likewise.
7739 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
7740 * grub-core/fs/zfs/zfs.c (MIN): Remove.
7741 (zap_leaf_array_equal): Use grub_size. Remove MIN.
7742 (zap_leaf_array_get): Likewise.
7743 (dnode_get_path): Likewise.
7744 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
7745 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
7746 * grub-core/script/execute.c (grub_script_break): Likewise.
7747 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
7748 grub_max.
7749 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
7750 * include/grub/misc.h (grub_min): Removed.
7751 (grub_max): Likewise.
7752
7753 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7754
7755 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
7756 direct.inode = 0.
7757
7758 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7759
7760 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
7761
7762 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7763
7764 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
7765
7766 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7767
7768 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
7769 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
7770
7771 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7772
7773 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
7774 rather than a hack for grub_strncasemap.
7775
7776 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7777
7778 Support multiple initrds
7779 Note: part of this was accidently committed in r3739.
7780
7781 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
7782 initrd.
7783 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
7784 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
7785 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7786 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7787 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7788
7789 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7790
7791 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
7792 disks with unknown size.
7793 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
7794
7795 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7796
7797 Remove defines pertaining to arbitrary limits not affecting GRUB
7798 anymore.
7799
7800 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
7801 (EXT2_MAX_SYMLINKCNT): Likewise.
7802 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
7803 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
7804 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
7805 (GRUB_PXE_MAX_BLKSIZE): Likewise.
7806 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
7807 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
7808 (DN_MAX_OBJECT_SHIFT): Likewise.
7809 (DN_MAX_OFFSET_SHIFT): Likewise.
7810 (DN_MAX_OBJECT): Likewise.
7811 (DNODES_PER_LEVEL_SHIFT): Likewise.
7812 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
7813 (SPA_MAXBLOCKSIZE): Likewise.
7814 (SPA_BLOCKSIZES): Likewise.
7815 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
7816 (MZAP_MAX_BLKSZ): Likewise.
7817
7818 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7819
7820 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
7821 handle NULL appropriately.
7822 Remove MIN.
7823
7824 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7825
7826 Fix efiemu.
7827
7828 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
7829 cpu/types.h.
7830 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
7831 * configure.ac: Fix efiemu check.
7832
7833 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7834
7835 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
7836 grub_probe.
7837 Reported by: adamwill
7838
7839 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
7840
7841 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
7842
7843 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7844
7845 Fix handling of wide characters in gfxterm.
7846
7847 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
7848 (clear_char): Likewise.
7849 (paint_char): Skip code == NULL chars.
7850 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
7851
7852 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7853
7854 * grub-core/normal/charset.c: Move comment to right place.
7855
7856 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7857
7858 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
7859 (GRUB_AFFS_FLAG_FFS): Put back where it was.
7860 (grub_affs_mount): Revert the correct version checking.
7861
7862 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7863
7864 * docs/grub.texi (Unicode): Mention several other unsupported features.
7865
7866 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7867
7868 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
7869 case statements as compile-time one.
7870 (direct_read): Prevent spurious warnings.
7871 (grub_squash_read_data): Likewise.
7872
7873 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7874
7875 Various squash4 fixes and LZO and XZ support.
7876
7877 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
7878 Add xzembed source files.
7879 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
7880 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
7881 (grub_squash_inode): New subtype long_dir.
7882 (SQUASH_TYPE_LONG_DIR): New inode type.
7883 (COMPRESSION): New enum.
7884 (XZBUFSIZ): New const.
7885 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
7886 (read_chunk): Use data->decompress.
7887 (zlib_decompress): New function.
7888 (lzo_decompress): Likewise.
7889 (xz_decompress): Likewise.
7890 (squash_mount): Set new data fields.
7891 (grub_squash_iterate_dir): Handle long dir.
7892 (squash_unmount): Free xzdec and xzbuf.
7893 (grub_squash_open): Check ino type.
7894 (direct_read): Stylistic fixes. Use data->decompress.
7895 (grub_squash_read_data): Likewise.
7896 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
7897 (get_byte): Likewise.
7898 (grub_zlib_disk_read): Removed.
7899 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
7900 (GRUB_POSIX_BOOL_DEFINED): New define.
7901 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
7902 * grub-core/lib/xzembed/xz.h: Addmissing includes.
7903 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
7904 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
7905
7906 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7907
7908 Don't override more informative errors.
7909
7910 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
7911 * grub-core/font/font.c (open_section): Likewise.
7912 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
7913 filename. Don't override errors.
7914 (grub_cmd_openbsd_ramdisk): Don't override errors.
7915 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
7916 (grub_cmd_initrd): Likewise.
7917 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7918 (grub_cmd_initrd): Likewise.
7919 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
7920 (grub_cmd_linux): Likewise.
7921 (grub_cmd_initrd): Likewise.
7922 (grub_cmd_payload): Likewise.
7923 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7924 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
7925 (grub_cmd_module): Likewise.
7926 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7927 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7928 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
7929 (grub_cmd_xnu_mkext): Likewise.
7930 (grub_cmd_xnu_ramdisk): Likewise.
7931 (grub_xnu_check_os_bundle_required): Likewise.
7932 (grub_xnu_load_kext_from_dir): Likewise.
7933 (grub_cmd_xnu_kextdir): Likewise.
7934 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
7935
7936 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7937
7938 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
7939 as 1024 in block size field. Found on one of my test images.
7940 Small optimisation while on it.
7941
7942 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7943
7944 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
7945 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
7946 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
7947 performance fixes while on it.
7948 (grub_sfs_close): Fix memory leak while on it.
7949 (grub_sfs_label): Convert Latin1 to UTF-8.
7950
7951 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7952
7953 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
7954 space to avoid overflows.
7955 (grub_hfs_label): Convert from macroman to UTF-8.
7956
7957 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7958
7959 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
7960
7961 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7962
7963 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
7964
7965 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7966
7967 * unicode: Import Unicode 6.0 data.
7968
7969 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7970
7971 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
7972 outside of range.
7973
7974 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7975
7976 Avoid cutting in the middle of UTF-8 character.
7977
7978 * include/grub/charset.h (grub_getend): New function.
7979 * grub-core/script/function.c (grub_script_function_find): Use
7980 grub_getend.
7981 * grub-core/normal/completion.c (add_completion): Likewise.
7982
7983 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7984
7985 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
7986 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
7987 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
7988 (GRUB_UNICODE_TAG_END): Likewise.
7989 (GRUB_UNICODE_LAST_VALID): Likewise.
7990
7991 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7992
7993 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
7994 len and make it smaller. All users updated.
7995 * util/import_unicode.py: Put length and not end character.
7996 Check length.
7997
7998 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7999
8000 Make better Unicode-compliant and unify some UTF-8 code pathes.
8001
8002 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
8003 valid character.
8004 (grub_is_valid_utf8): Use grub_utf8_process.
8005 Check resulting code range.
8006 (grub_utf8_to_ucs4): Use grub_utf8_process.
8007 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
8008 valid character.
8009
8010 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8011
8012 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
8013
8014 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8015
8016 * docs/grub.texi (Filesystems): Mention AFS.
8017
8018 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8019
8020 * docs/grub.texi (Filesystems): Clarify restrictions.
8021 (Regexp): Mention non-Unicode regexp behaviour.
8022 (Other): Mention non-Unicode matching behaviour.
8023
8024 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8025
8026 Make HFS implementation use MacRoman.
8027
8028 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
8029 (macroman): New const array.
8030 (macroman_to_utf8): New function.
8031 (utf8_to_macroman): Likewise.
8032 (grub_hfs_find_dir): Use utf8_to_macroman.
8033 (grub_hfs_dir): Use macroman_to_utf8.
8034 Set case_insensitive.
8035
8036 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8037
8038 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
8039
8040 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8041
8042 Integrate hints into autogeneration scripts.
8043
8044 * docs/grub.texi (Filesystems): Add a hostdisk example.
8045 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
8046 (grub-probe): Add ofpath.
8047 * gentpl.py: Remove group nosparc64.
8048 * grub-core/commands/search.c (cache_entry): New struct.
8049 (cache): New var.
8050 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
8051 * grub-core/commands/search_wrap.c (options): Add platform-specific
8052 hint options.
8053 (grub_cmd_search): Handle platform-specific hints.
8054 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
8055 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
8056 (grub_util_biosdisk_data): Likewise.
8057 (grub_util_biosdisk_open): Set device_map.
8058 (read_device_map): Handle "" as indication of no map.
8059 Set device_map.
8060 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
8061 (grub_util_biosdisk_get_compatibility_hint): New function.
8062 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
8063 * include/grub/emu/hostdisk.h
8064 (grub_util_biosdisk_get_compatibility_hint): New proto.
8065 * util/grub-install.in: Don't call grub-mkdevicemap.
8066 Add platform-specific hint to load.cfg.
8067 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
8068 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
8069 hints. Set root preliminary to compatibility hint, not to OS name.
8070 * util/grub-probe.c (PRINT_*): Add hints.
8071 (print): Make static.
8072 (escape_of_path): New function.
8073 (guess_bios_drive): Likewise.
8074 (guess_efi_drive): Likewise.
8075 (guess_baremetal_drive): Likewise.
8076 (print_full_name): Likewise.
8077 (probe): Handle hints.
8078 (main): Likewise.
8079 * util/ieee1275/devicemap.c: Removed.
8080 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
8081 updated.
8082 (grub_util_devname_to_ofpath): Return NULL on failure.
8083
8084 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
8085 resource leak.
8086 * util/getroot.c (grub_util_pull_device): Fix memory leak.
8087
8088 * po/POTFILES.in: Regenerated.
8089
8090 Allow purely long options
8091
8092 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
8093 (SHORT_ARG_USAGE): Likewise.
8094 (grub_arg_show_help): Compare opt with help_options.
8095 (parse_option): Receive opt as argument. If makes big simplificatons.
8096 All users updated
8097
8098 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8099
8100 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
8101 Restructure to avoid warning.
8102
8103 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8104
8105 * util/grub-install.in: Account for possible escaped comma in device
8106 name.
8107
8108 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8109
8110 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
8111 channel.
8112
8113 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8114
8115 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
8116 allocation and zero-setting.
8117 (grub_ieee1275_get_devname): Check that alias is complete.
8118
8119 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8120
8121 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
8122 unaligned segments.
8123
8124 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8125
8126 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
8127 prefix.
8128 (grub_ofdisk_open): Check and discard ieee1275 prefix.
8129 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8130 Add ieee1275 prefix.
8131
8132 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8133
8134 * docs/grub.texi (Filesystems): Update.
8135
8136 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8137
8138 Support odc, newc and bigendian cpio formats.
8139
8140 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
8141 * grub-core/Makefile.core.def (newc): New module.
8142 (odc): Likewise.
8143 (cpio_be): Likewise.
8144 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
8145 (MAGIC): Likewise.
8146 (MAGIC2): Likewise.
8147 (head) [MODE_ODC]: Adapt for the format.
8148 (head) [MODE_NEWC]: Likewise.
8149 (head) [!MODE_*]: Write fields of interest as arrays.
8150 (MAGIC_USTAR): Removed.
8151 (read_number) [MODE_NEWC]: Change to hex.
8152 (read_number) [!MODE_*]: Parse binary arrays.
8153 (grub_cpio_find_file): Factor out the code for better structure and
8154 always use read_number.
8155 (grub_cpio_mount): Use MAGIC and MAGIC2.
8156 (grub_cpio_dir): Exit on first hook non-0 return.
8157 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
8158 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
8159 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
8160 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
8161 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
8162 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
8163 * grub-core/fs/newc.c: New file.
8164 * grub-core/fs/odc.c: Likewise.
8165 * grub-core/fs/cpio_be.c: Likewise.
8166
8167 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8168
8169 Fix handling of tar numbers occupying the whole field.
8170
8171 * grub-core/fs/cpio.c (read_number): New function.
8172 (grub_cpio_find_file): Use read_number instead of strtoull.
8173
8174 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8175
8176 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
8177 occupying the whole field size.
8178
8179 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
8180
8181 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
8182
8183 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8184
8185 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
8186
8187 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
8188
8189 * grub-core/Makefile.core.def (lzma_decompress): Add missing
8190 TARGET_IMG_LDFLAGS.
8191
8192 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8193
8194 * util/getroot.c (ESCAPED_PATH_MAX): New define.
8195 (mountinfo_entry): Increase the field size to take escaping into
8196 account.
8197 (find_root_device_from_libzfs): Add one byte to size of strings for
8198 security.
8199
8200 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8201
8202 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
8203 an assert.
8204 * util/grub-setup.c (setup): Likewise.
8205
8206 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8207
8208 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
8209 _LzmaDecodeA.
8210
8211 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8212
8213 * docs/grub.texi (Internationalisation): New section.
8214
8215 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8216
8217 * docs/grub.texi (Loopback booting): New section.
8218
8219 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
8220
8221 * util/grub-mkstandalone.in: Fix minor typo errors.
8222
8223 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
8224
8225 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
8226
8227 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
8228 net/icmp.c and net/icmp6.c.
8229 (http): New module.
8230 (priority_queue): Likewise.
8231 * grub-core/io/bufio.c: Rewritten.
8232 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
8233 TYPE_WITH_CONFIGFILE_OPTION.
8234 (legacy_commands): Add bootp and dhcp.
8235 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
8236 (grub_legacy_parse): Likewise.
8237 * grub-core/lib/priority_queue.c: New file.
8238 * grub-core/net/arp.c: Add missing license header.
8239 (arp_find_entry): Removed.
8240 (arp_find_entry): Likewise.
8241 (grub_net_arp_resolve): Rename to ...
8242 (grub_net_arp_send_request): ...this.
8243 (grub_net_arp_receive): New card argument.
8244 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
8245 Set router and DNS server.
8246 (grub_net_configure_by_dhcp_ack): Handle routing information.
8247 (grub_cmd_bootp): Set checksum.
8248 (grub_bootp_init): Remove net_dhcp.
8249 * grub-core/net/dns.c: New file.
8250 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
8251 completion.
8252 (get_card_packet): Handle allocation.
8253 (grub_efinet_findcards): Set mtu.
8254 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
8255 (get_card_packet): Handle allocation.
8256 (emucard): Set mtu.
8257 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
8258 (GRUB_MOD_INIT): Set mtu.
8259 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
8260 mtu.
8261 (get_card_packet): Handle allocation.
8262 (grub_ofnet_findcards): Set mtu.
8263 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
8264 assert.
8265 (grub_net_recv_ethernet_packet): Handle IPv6.
8266 * grub-core/net/http.c: New file.
8267 * grub-core/net/icmp.c: Likewise.
8268 * grub-core/net/icmp6.c: Likewise.
8269 * grub-core/net/ip.c (ip6addr): New type.
8270 (ip6hdr): Likewise.
8271 (reassemble): Likewise.
8272 (cmp): New function.
8273 (reassembles): New variable.
8274 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
8275 (id): New variable.
8276 (send_fragmented): New function.
8277 (grub_net_send_ip_packet): Rename to ...
8278 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
8279 Handle non-UDP.
8280 (grub_net_recv_ip_packets): Rename to ...
8281 (handle_dgram): ... this. Check checksum. Handle non-UDP.
8282 (free_rsm): New function.
8283 (free_old_fragments): Likewise.
8284 (grub_net_recv_ip4_packets): New function.
8285 (grub_net_send_ip6_packet): Likewise.
8286 (grub_net_send_ip_packet): Likewise.
8287 (grub_net_recv_ip6_packets): Likewise.
8288 (grub_net_recv_ip_packets): Likewise.
8289 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
8290 (LINK_LAYER_CACHE_SIZE): New const.
8291 (link_layer_find_entry): New function.
8292 (grub_net_link_layer_add_address): Likewise.
8293 (grub_net_link_layer_resolve_check): Likewise.
8294 (grub_net_link_layer_resolve): Likewise.
8295 (grub_net_ipv6_get_slaac): Likewise.
8296 (grub_net_ipv6_get_link_local): Likewise.
8297 (grub_cmd_ipv6_autoconf): Likewise.
8298 (parse_ip): Handle one number representation.
8299 (parse_ip6): New functoion.
8300 (match_net): Handle IPv6.
8301 (grub_net_resolve_address): Handle IPv6 and DNS.
8302 (grub_net_resolve_net_address): Handle IPv6.
8303 (route_cmp): New function.
8304 (grub_net_route_address): Find best route.
8305 (grub_net_addr_to_str): Handle IPv6.
8306 (grub_net_addr_cmp): New function.
8307 (grub_net_add_addr): Register local route.
8308 (print_net_address): Handle net address.
8309 (grub_net_poll_cards): Retransmit TCP.
8310 (grub_net_poll_cards_idle_real): Likewise.
8311 (have_ahead): New function.
8312 (grub_net_seek_real): Use underlying seek.
8313 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
8314 * grub-core/net/tcp.c: New file.
8315 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
8316 (cmp): New function.
8317 (ack): Likewise.
8318 (tftp_receive): Handle unordered input.
8319 (destroy_pq): New function.
8320 (tftp_close): Close pq.
8321 * grub-core/net/udp.c: Put missing license header.
8322 (grub_net_udp_socket): New function.
8323 (udp_socket_register): Likewise.
8324 (grub_net_udp_close): Likewise.
8325 (grub_net_recv_udp_packet): Check checksum.
8326 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
8327 * include/grub/misc.h (grub_memchr): New function.
8328 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
8329 (grub_net_card_driver): Return buf in recv.
8330 (grub_net_slaac_mac_list): New struct.
8331 (grub_network_level_protocol_id): Add ipv6.
8332 (grub_net_network_level_addr): Likewise.
8333 (grub_net_network_level_net_addr): Likewise.
8334 (grub_net_app_protocol): Add seek.
8335 (grub_net_socket): Removed.
8336 (grub_net_sockets): Likewise.
8337 (grub_net_socket_register): Likewise.
8338 (grub_net_socket_unregister): Likewise.
8339 (FOR_NET_SOCKETS): Likewise.
8340 (grub_net_add_addr): Add const.
8341 (GRUB_NET_BOOTP_*): New enum.
8342 (grub_net_addr_cmp): New proto.
8343 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
8344 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
8345 (grub_net_hwaddr_to_str): NEw proto.
8346 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
8347 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
8348 (grub_dns_init): New proto.
8349 (grub_dns_fini): Likewise.
8350 (grub_net_tcp_retransmit): Likewise.
8351 (grub_net_link_layer_add_address): Likewise.
8352 (grub_net_link_layer_resolve_check): Likewise.
8353 (grub_net_link_layer_resolve): Likewise.
8354 (grub_net_dns_lookup): Likewise.
8355 (grub_net_add_dns_server): Likewise.
8356 (grub_net_remove_dns_server): Likewise.
8357 (GRUB_NET_TRIES): New const.
8358 (GRUB_NET_INTERVAL): Likewise.
8359 * include/grub/net/arp.h: Mostly rewritten.
8360 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
8361 * include/grub/net/ip.h: Mostly rewritten.
8362 * include/grub/net/netbuff.h: Indent.
8363 * include/grub/net/tcp.h: New file.
8364 * include/grub/net/udp.h: Mostly rewritten.
8365 * include/grub/priority_queue.h: New file.
8366 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
8367 (grub_swap_bytes64_compile_time): Likewise.
8368 (grub_cpu_to_be16_compile_time): Likewise.
8369 (grub_cpu_to_be32_compile_time): Likewise.
8370 (grub_cpu_to_be64_compile_time): Likewise.
8371 (grub_be_to_cpu64_compile_time): Likewise.
8372
8373 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
8374
8375 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
8376 UINT_TO_PTR with cast.
8377
8378 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8379
8380 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
8381 don't use them.
8382
8383 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8384
8385 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
8386 already there.
8387
8388 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8389
8390 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
8391 confusing ipxe.
8392
8393 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8394
8395 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
8396 Add missing const attribute.
8397 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
8398 Likewise.
8399 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
8400 Likewise.
8401
8402 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8403
8404 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
8405 misaligned access.
8406 (serpent_setkey): Likewise.
8407 (serpent_encrypt_internal): Likewise.
8408 (serpent_decrypt_internal): Likewise.
8409 (serpent_encrypt): Don't put an alignment-increasing cast.
8410 (serpent_decrypt): Likewise.
8411 (serpent_test): Likewise.
8412
8413 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8414
8415 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
8416
8417 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8418
8419 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
8420
8421 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
8422 grub_addr_t casts.
8423 (PTR_TO_UINT64): Likewise.
8424 (PTR_TO_UINT32): Likewise.
8425
8426 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8427
8428 * util/grub-mkimage.c (generate_image): Decrease the higher limit
8429 because of stack.
8430 * util/grub-setup.c (setup): Don't add redundancy past the higher load
8431 limit.
8432
8433 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8434
8435 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
8436 text_width > available width a bit more gracefully.
8437
8438 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8439
8440 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
8441 current address calculation.
8442
8443 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8444
8445 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
8446 stack.
8447 (encode_block): Likewise.
8448
8449 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8450
8451 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
8452 certainety.
8453
8454 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8455
8456 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
8457 non-RS part to avoid RS messing with GDT.
8458 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
8459 Increase to suit in realmode routines.
8460
8461 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8462
8463 * grub-core/kern/i386/realmode.S: Increase alignment.
8464 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
8465
8466 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8467
8468 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
8469 be deterministic.
8470 (syndroms): Compute 0 syndrom.
8471 (rs_recover): Use 0 syndrom.
8472
8473 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8474
8475 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
8476
8477 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8478
8479 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
8480 brackets.
8481
8482 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8483
8484 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
8485 account.
8486 (get_top_pad): Likewise.
8487 (get_right_pad): Likewise.
8488 (get_bottom_pad): Likewise.
8489
8490 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8491
8492 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
8493
8494 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8495
8496 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
8497 attribute as the structure isn't guaranteed to be properly aligned.
8498 (grub_efi_pci_device_path): Likewise.
8499 (grub_efi_pccard_device_path): Likewise.
8500 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
8501 specify the size of `memory_type'.
8502 (grub_efi_vendor_device_path): Likewise.
8503 (grub_efi_controller_device_path): Likewise.
8504 (grub_efi_acpi_device_path): Likewise.
8505 (grub_efi_expanded_acpi_device_path): Likewise.
8506 (grub_efi_atapi_device_path): Likewise.
8507 (grub_efi_scsi_device_path): Likewise.
8508 (grub_efi_fibre_channel_device_path): Likewise.
8509 (grub_efi_1394_device_path): Likewise.
8510 (grub_efi_usb_device_path): Likewise.
8511 (grub_efi_usb_class_device_path): Likewise.
8512 (grub_efi_i2o_device_path): Likewise.
8513 (grub_efi_mac_address_device_path): Likewise.
8514 (grub_efi_ipv4_device_path): Likewise.
8515 (grub_efi_ipv6_device_path): Likewise.
8516 (grub_efi_infiniband_device_path): Likewise.
8517 (grub_efi_uart_device_path): Likewise.
8518 (grub_efi_vendor_messaging_device_path): Likewise.
8519 (grub_efi_hard_drive_device_path): Likewise.
8520 (grub_efi_cdrom_device_path): Likewise.
8521 (grub_efi_vendor_media_device_path): Likewise.
8522 (grub_efi_file_path_device_path): Likewise.
8523 (grub_efi_protocol_device_path): Likewise.
8524 (grub_efi_piwg_device_path): Likewise.
8525 (grub_efi_bios_device_path): Likewise.
8526
8527 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8528
8529 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
8530 (grub_ucs4_to_utf8_alloc): Likewise.
8531 (grub_ucs4_to_utf8): Likewise.
8532 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
8533 (grub_ucs4_to_utf8_alloc): Likewise.
8534
8535 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8536
8537 AFFS never uses unicode.
8538
8539 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
8540 (grub_latin1_to_utf8): New inline function.
8541 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
8542
8543 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8544
8545 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
8546 overflow.
8547
8548 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8549
8550 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
8551 (grub_squash_dirent_header): Likewise.
8552 (read_chunk): Don't double swap.
8553 (grub_squash_iterate_dir): Fix swap sizes.
8554
8555 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8556
8557 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
8558
8559 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8560
8561 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
8562 (grub_hfs_iterate_dir): Likewise.
8563
8564 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8565
8566 Fix video on platforms where unaligned access is forbidden.
8567 Make several optimisations while on it.
8568
8569 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
8570 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8571 (grub_video_fbblit_replace_32bit_1bit): Likewise.
8572 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8573 Disable.
8574 (grub_video_fbblit_replace_16bit_1bit):
8575 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8576 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8577 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
8578 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
8579 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8580 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8581 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
8582 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
8583 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
8584 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
8585 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
8586 (grub_video_fbblit_replace_index_RGB888): Likewise.
8587 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
8588 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
8589 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
8590 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
8591 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
8592 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8593 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8594 Disable.
8595 (grub_video_fbblit_blend_XXX565_1bit):
8596 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8597 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
8598 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
8599 void *.
8600 * grub-core/video/fb/video_fb.c (common_blitter)
8601 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
8602 (grub_video_fb_create_render_target_from_pointer)
8603 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8604 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
8605 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
8606 definition.
8607 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
8608
8609 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8610
8611 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
8612 HH22 and HM10 relocations.
8613
8614 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8615
8616 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
8617
8618 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8619
8620 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
8621 allocation succeeded.
8622
8623 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8624
8625 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
8626 argument a u8 pointer. All users updated.
8627 Handle unaligned buffers.
8628
8629 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8630
8631 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
8632 add_part to workaround compiler bug.
8633
8634 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8635
8636 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
8637
8638 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8639
8640 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
8641 Reserve alignment invariants.
8642 (grub_multiboot_load): Likewise.
8643 (retrieve_video_parameters): Likewise.
8644 (grub_multiboot_make_mbi): Likewise.
8645
8646 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8647
8648 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
8649 incorrect pointer.
8650
8651 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8652
8653 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
8654 (grub_pata_pio_write): Likewise.
8655
8656 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8657
8658 Add noreturn attributes and remove unreachable code.
8659
8660 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
8661 code.
8662 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
8663 code. Mark as noreturn.
8664 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
8665 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
8666 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
8667 unreachable code.
8668 * grub-core/kern/main.c (grub_main): Mark as noreturn.
8669 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
8670 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
8671 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
8672 * include/grub/kernel.h (grub_main): Mark as noreturn.
8673 * include/grub/reader.h (grub_rescue_run): Likewise.
8674
8675 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8676
8677 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
8678 redundant declaration.
8679
8680 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8681
8682 * include/grub/net.h (grub_net_network_level_interfaces): Remove
8683 redundant declaration.
8684 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
8685
8686 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8687
8688 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
8689 to ensure alignment.
8690 (grub_hdparm_print_identify): Make argument uint16 * to ensure
8691 alignment. Ensure tmp alignment.
8692 (grub_cmd_hdparm): Ensure buf alignment.
8693 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
8694 to ensure alignment.
8695 (grub_ata_dumpinfo): Ensure text alignment.
8696 (grub_atapi_identify): Preserve alignment invariant.
8697 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
8698
8699 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8700
8701 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
8702 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
8703 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
8704 * include/grub/misc.h (grub_reboot)
8705 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
8706 (grub_halt) [__mips__]: Likewise.
8707
8708 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8709
8710 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
8711 Remove redundant declaration.
8712 (grub_mmap_get_post64): Likewise.
8713 (grub_mmap_get_upper): Likewise.
8714 (grub_mmap_get_lower): Likewise.
8715
8716 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8717
8718 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
8719 uint32_t * to ensure alignment.
8720 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
8721
8722 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8723
8724 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
8725 uint16_t * to ensure alignment.
8726 (sun_pc_partition_map_iterate): Make `block' a union to ensure
8727 alignment.
8728
8729 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8730
8731 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
8732 to ensure alignment.
8733 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
8734
8735 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8736
8737 * grub-core/fs/ntfs.c (u16at): Make into inline function.
8738 Handle unaligned pointers.
8739 (u32at): Likewise.
8740 (u64at): Likewise.
8741 (fixup): Use byte access instead of v16at.
8742 (find_attr): Fix imporper usage of v32at.
8743 (read_data): Likewise.
8744 (list_file): Handle byte-swapping and unaligned strings.
8745 (grub_ntfs_label): Likewise.
8746
8747 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8748
8749 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
8750 as it's not necessarily aligned.
8751
8752 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8753
8754 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
8755 redundant declaration.
8756 (grub_serial_init): Likewise.
8757 (grub_terminfo_init): Likewise.
8758
8759 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8760
8761 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
8762 function.
8763 (ZAP_HASH_IDX): Likewise.
8764 (ZAP_LEAF_HASH_SHIFT): Likewise.
8765 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
8766 (LEAF_HASH): Likewise.
8767 (ZAP_LEAF_NUMCHUNKS): Likewise.
8768 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
8769 alignment invariants. Return pointer. All users updated.
8770 (ZAP_LEAF_ENTRY): Make into inline function.
8771 (NBBY): Removed.
8772 (xor): LIkewise.
8773 (xor_out): Use grub_crypto_xor.
8774 (dnode_get_path): Use grub_get_unaligned.
8775 (nvlist_find_value): Likewise.
8776 (grub_zfs_nvlist_lookup_uint64): Likewise.
8777 (grub_zfs_nvlist_lookup_string): Likewise.
8778 (get_nvlist_size): Likewise.
8779 (grub_zfs_open): Likewise.
8780 (fill_fs_info): Likewise.
8781 (grub_zfs_dir): Likewise.
8782 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
8783 alignment invariants.
8784 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
8785 necessarily aligned.
8786
8787 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8788
8789 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
8790
8791 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8792
8793 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
8794 arithmetic to conserve alignment invariants.
8795
8796 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8797
8798 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
8799 redundant declaration.
8800 (grub_efiemu_mm_obtain_request): Likewise.
8801 (grub_efiemu_prepare): Likewise.
8802
8803 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8804
8805 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
8806 to match types.
8807
8808 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8809
8810 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
8811 case of aunaligned recptr.
8812 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
8813 alignment.
8814 (grub_hfsplus_btree_search): Handle unaligned index.
8815
8816 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8817
8818 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
8819 to get freetag and skip.
8820
8821 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8822
8823 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
8824 array.
8825 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
8826 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
8827
8828 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8829
8830 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
8831 name for checksum and fix allocation algorithm.
8832
8833 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8834
8835 * include/grub/types.h (grub_properly_aligned_t): New type.
8836 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
8837 (grub_get_unaligned16): Add explicit casts.
8838 (grub_get_unaligned32): Likewise.
8839 (grub_get_unaligned64): Likewise.
8840 (grub_set_unaligned16): New function.
8841 (grub_set_unaligned32): Likewise.
8842
8843 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8844
8845 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8846
8847 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8848
8849 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
8850 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
8851 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
8852
8853 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8854
8855 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
8856 conditionals.
8857
8858 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8859
8860 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
8861 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
8862
8863 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8864
8865 Unify and improve RAID and crypto xor.
8866
8867 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
8868 changed to grub_crypto_xor
8869 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
8870 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
8871 Use bigger types when possible.
8872
8873 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8874
8875 * grub-core/disk/raid.c (scan_devices): Fix condition.
8876
8877 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8878
8879 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
8880 Make name a const ptr.
8881
8882 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8883
8884 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
8885 first argument a const pointer.
8886 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
8887 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
8888 proto.
8889 (grub_children_iterate): Likewise.
8890 (grub_machine_mmap_iterate): Remove redundant declaration.
8891
8892 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8893
8894 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
8895 (grub_cmd_acpi) [!x86]: Disable EBDA.
8896
8897 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8898
8899 Enable UTF8 in gnulib regexp.
8900
8901 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
8902 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
8903 (isupper): Use grub_isupper.
8904 (isascii): New inline function.
8905 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
8906 * grub-core/lib/posix_wrap/wctype.h: Likewise.
8907 * grub-core/normal/charset.c (grub_utf8_process): New function.
8908 (grub_utf8_to_utf16): Use grub_utf8_process.
8909 (grub_encode_utf8_character): New function.
8910 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
8911 * include/grub/charset.h (grub_utf8_process): New declaration.
8912 (grub_encode_utf8_character): Likewise.
8913 * include/grub/misc.h (grub_islower): New inline function.
8914 (grub_isupper): Likewise.
8915 (grub_strchrsub): Moved down to fix the definitions.
8916
8917 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8918
8919 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
8920 specification.
8921
8922 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8923
8924 * include/grub/loader.h (grub_loader_register_preboot_hook):
8925 Use struct preboot * and not void * for handle. All users updated.
8926 (grub_loader_unregister_preboot_hook): Likewise.
8927
8928 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8929
8930 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
8931 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
8932 UTF-16-BE. All users updated.
8933 (grub_hfsplus_cmp_catkey): Fix unicode handling.
8934 (grub_hfsplus_iterate_dir): Likewise.
8935 (grub_hfsplus_label): Likewise.
8936
8937 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8938
8939 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
8940
8941 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
8942
8943 Add missing const qualifiers.
8944
8945 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
8946 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
8947 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
8948 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
8949 (grub_lvm_check_flag): Likewise.
8950 * grub-core/efiemu/i386/coredetect.c
8951 (grub_efiemu_get_default_core_name): Likewise
8952 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
8953 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
8954 * grub-core/fs/ntfs.c (fixup): Likewise.
8955 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
8956 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
8957 (fzap_lookup): Likewise.
8958 (zap_lookup): Likewise.
8959 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
8960 * grub-core/lib/legacy_parse.c (check_option): Likewise.
8961 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
8962 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
8963 (grub_freebsd_add_meta_module): Likewise.
8964 (grub_cmd_freebsd_module): Likewise.
8965 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
8966 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
8967 (grub_xnu_writetree_get_size): Likewise.
8968 (grub_xnu_writetree_toheap_real): Likewise.
8969 (grub_xnu_find_key): Likewise.
8970 (grub_xnu_create_key): Likewise.
8971 (grub_xnu_create_value): Likewise.
8972 (grub_xnu_register_memory): Likewise.
8973 (grub_xnu_check_os_bundle_required): Likewise.
8974 (grub_xnu_scan_dir_for_kexts): Likewise.
8975 (grub_xnu_load_kext_from_dir): Likewise.
8976 * grub-core/normal/color.c (color_list): Likewise.
8977 * grub-core/normal/completion.c (current_word): Likewise.
8978 * grub-core/normal/menu_entry.c (insert_string): Likewise.
8979 * grub-core/term/serial.c (grub_serial_find): Likewise.
8980 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
8981 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
8982 Likewise.
8983 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
8984 (grub_freebsd_add_meta_module): Likewise.
8985 * include/grub/lib/arg.h (grub_arg_option): Likewise.
8986 * include/grub/net.h (grub_net_card_driver): Likewise.
8987 (grub_net_card): Likewise.
8988 (grub_net_app_protocol): Likewise.
8989 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
8990 * include/grub/serial.h (grub_serial_find): Likewise.
8991 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
8992 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
8993 (grub_xnu_create_value): Likewise.
8994 (grub_xnu_find_key): Likewise.
8995 (grub_xnu_scan_dir_for_kexts): Likewise.
8996 (grub_xnu_load_kext_from_dir): Likewise.
8997
8998 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
8999 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
9000 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
9001 Moved from here ...
9002 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
9003
9004 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
9005
9006 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
9007
9008 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
9009
9010 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
9011 (read_device): Fix size calculation.
9012
9013 2011-11-25 Robert Millan <rmh@gnu.org>
9014
9015 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
9016 (find_root_device_from_libzfs): Add zpool output parser to be used
9017 as fallback when libzfs isn't available.
9018
9019 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
9020
9021 * po/Makefile.in.in: Add missing escape-continuation.
9022
9023 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
9024
9025 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
9026
9027 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9028
9029 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
9030
9031 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9032
9033 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
9034
9035 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9036
9037 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
9038
9039 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9040
9041 * grub-core/lib/adler32.c: Add missing license specification.
9042 * grub-core/lib/crc64.c: Likewise.
9043 * grub-core/loader/i386/pc/plan9.c: Likewise.
9044 * grub-core/partmap/plan.c: Likewise.
9045
9046 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
9047
9048 Add facility to debug GRUB with gdb under qemu.
9049
9050 * grub-core/gdb_grub.in: New file.
9051 * grub-core/gmodule.pl.in: Likewise.
9052 * grub-core/Makefile.core.def (gmodule.pl): New script.
9053 (gdb_grub): Likewise.
9054
9055 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9056
9057 * util/grub-mount.c (argp_parser): Accept relative pathes.
9058 * util/grub-fstest.c (argp_parser): Likewise.
9059
9060 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9061
9062 Plan9 support.
9063
9064 * Makefile.util.def (libgrubmods): Add
9065 grub-core/partmap/plan.c.
9066 * docs/grub.texi: Notice Plan9 support.
9067 * grub-core/Makefile.core.def (plan9): New module.
9068 (part_plan): Likewise.
9069 * grub-core/loader/i386/pc/plan9.c: New file.
9070 * grub-core/partmap/plan.c: Likewise.
9071 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
9072 define.
9073 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
9074 * include/grub/mm.h (grub_extend_alloc): New inline function.
9075
9076 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9077
9078 Make Reed-Solomon faster by using power of generator representation of
9079 GF(256)*.
9080
9081 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
9082 (gf_double_t): Likewise.
9083 (gf_invert): Removed.
9084 (gf_powx): New array.
9085 (gf_powx_inv): Likewise.
9086 (scratch): Move higher.
9087 (gf_reduce): Removed.
9088 (gf_mul): Use powx.
9089 (gf_invert): Likewise.
9090 (init_inverts): Replaced with ...
9091 (init_powx): ...this. All users updated.
9092 (pol_evaluate): Replace multiplications with additions.
9093 (rs_encode): Likewise.
9094 (gauss_eliminate): Call gf_invert.
9095 (grub_reed_solomon_add_redundancy): Call init_powx.
9096 (grub_reed_solomon_recover): Call init_powx unconditionally.
9097
9098 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9099
9100 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
9101
9102 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9103
9104 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
9105 disk->partiton for safety.
9106
9107 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9108
9109 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
9110 Fix a memory leak.
9111 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
9112
9113 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9114
9115 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
9116
9117 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9118
9119 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
9120
9121 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9122
9123 Fix spaces handling in proc/self/mountinfo.
9124
9125 * util/getroot.c (unescape): New function.
9126 (grub_find_root_device_from_mountinfo): Use unescape.
9127
9128 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9129
9130 Support ZFS embedding.
9131
9132 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
9133 (grub_zfs_fs): Register grub_zfs_embed.
9134
9135 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9136
9137 Fix MIPS compilation.
9138
9139 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
9140 * include/grub/offsets.h: Rename decompressor fields from
9141 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
9142 * util/grub-mkimage.c (image_targets): Use new names.
9143
9144 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9145
9146 Defer multiboot device parsing until we're in compressed part.
9147
9148 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
9149 bsd_part. setdevice has fallen into disuse.
9150 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
9151 (bsd_part): Likewise.
9152 (boot_dev): New variable.
9153 (multiboot_trampoline): Don't parse multiboot device.
9154 Pass multiboot device in %edx.
9155 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
9156 grub_boot_device.
9157 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
9158 Likewise.
9159 * grub-core/kern/i386/pc/startup.S: Save edx.
9160 (grub_boot_drive): Removed.
9161 (grub_install_dos_part): Likewise.
9162 (grub_install_bsd_part): Likewise.
9163 (grub_boot_device): New variable.
9164 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
9165 (grub_install_bsd_part): Likewise.
9166 (grub_boot_drive): Likewise.
9167 (grub_boot_device): New variable.
9168 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
9169 Removed.
9170 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
9171 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
9172 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
9173 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
9174 * util/grub-install.in: Remove redundant condition.
9175
9176 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9177
9178 Fix bug introduced by previous commit.
9179
9180 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
9181
9182 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9183
9184 Use decompressors framework on i386-pc. It increases core size
9185 by 46 bytes but improves compatibility and maintainability.
9186
9187 * grub-core/Makefile.core.def (lzma_decompress): New image.
9188 (kernel): Add i386_pc_ldflags.
9189 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
9190 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
9191 to real_to_prot, prot_to_real and device info.
9192 * include/grub/offsets.h: Renamed decompressor offsets.
9193 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
9194 (image_target_desc): Remove raw_size and rename decompressor fields.
9195 (compress_kernel): Handle lzma.
9196 (generate_image): Handle decompressors on i386-pc.
9197
9198 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9199
9200 * configure.ac: Add -fno-asynchronous-unwind-tables.
9201
9202 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9203
9204 Move assembly code to C by using intwrap. It increases core size
9205 by 88 bytes but improves compatibility and maintainability.
9206
9207 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
9208 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
9209 ... here. Translated to C.
9210 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
9211 * grub-core/term/i386/pc/console.c (grub_console_getkey):
9212 ... here. Translated to C.
9213 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
9214 * grub-core/term/i386/pc/console.c (grub_console_getxy):
9215 ... here. Translated to C.
9216 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
9217 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
9218 ... here. Translated to C.
9219 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
9220 * grub-core/term/i386/pc/console.c (grub_console_cls):
9221 ... here. Translated to C.
9222 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
9223 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
9224 ... here. Translated to C.
9225 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
9226 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
9227 Translated to C.
9228 * grub-core/term/i386/pc/console.c (int10_9): New function.
9229 (grub_console_putchar): Likewise.
9230 * include/grub/i386/pc/console.h: Removed the not anymore shared
9231 functions.
9232
9233 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9234
9235 Move grub_chainloader_real_boot out of the kernel.
9236
9237 * grub-core/Makefile.am: Remove machine/loader.h.
9238 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
9239 Removed.
9240 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
9241 variable.
9242 (grub_relocator16_keep_a20_enabled): Likewise.
9243 (grub_relocator16_boot): Fill new variables.
9244 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
9245 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
9246 relocator.
9247 (grub_chainloader_unload): Likewise.
9248 (grub_chainloader_cmd): Likewise.
9249 * include/grub/i386/pc/loader.h: Removed.
9250 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
9251 and esi. All initialisers updated.
9252
9253 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9254 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
9255
9256 * Makefile.util.def (grub-mount): New util.
9257 * .bzrignore: Add grub-mount.
9258 * configure.ac: Check for fuse and enable grub-mount if available.
9259 * docs/man/grub-mount.h2m: New file.
9260 * util/grub-mount.c: Likewise.
9261
9262 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9263
9264 * grub-core/commands/efi/fixvideo.c: Gettextize.
9265 * grub-core/commands/hashsum.c: Likewise.
9266 * grub-core/commands/i386/cmostest.c: Likewise.
9267 * grub-core/commands/i386/pc/drivemap.c: Likewise.
9268 * grub-core/commands/i386/pc/lsapm.c: Likewise.
9269 * grub-core/commands/i386/pc/sendkey.c: Likewise.
9270 * grub-core/commands/lsmmap.c: Likewise.
9271 * grub-core/commands/menuentry.c: Likewise.
9272 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
9273 * grub-core/commands/setpci.c: Likewise.
9274 * grub-core/loader/i386/bsd.c: Likewise.
9275 * grub-core/loader/i386/linux.c: Likewise.
9276 * util/getroot.c: Likewise.
9277 * util/grub-editenv.c: Likewise.
9278 * util/grub-fstest.c: Likewise.
9279 * util/grub-mkfont.c: Likewise.
9280 * util/grub-mkimage.c: Likewise.
9281 * util/grub-mkpasswd-pbkdf2.c: Likewise.
9282 * util/grub-pe2elf.c: Likewise.
9283 * util/grub-probe.c: Likewise.
9284 * util/grub-setup.c: Likewise.
9285 * util/ieee1275/ofpath.c: Likewise.
9286 * util/misc.c: Likewise.
9287 * util/raid.c: Likewise.
9288
9289 2011-11-11 Robert Millan <rmh@gnu.org>
9290
9291 * util/getroot.c (grub_util_get_geom_abstraction): Remove
9292 __attribute__((unused)) from `os_dev', which *is* being used.
9293
9294 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9295
9296 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
9297 forgotten define.
9298 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
9299 GRUB_IA64_DL_GOT_ALIGN.
9300 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
9301 GRUB_IA64_DL_TRAMP_ALIGN.
9302
9303 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9304
9305 Replace grub_fatal with normal errors in i386 linux loader.
9306
9307 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
9308 (allocate_pages): Check find_efi_mmap_size return value.
9309 (grub_e820_add_region): Return error.
9310 (grub_linux_boot): Check mmap return value.
9311
9312 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9313
9314 * grub-core/commands/acpihalt.c: Gettextized.
9315 * grub-core/commands/cacheinfo.c: Likewise.
9316 * grub-core/commands/cmp.c: Likewise.
9317 * grub-core/commands/efi/loadbios.c: Likewise.
9318 * grub-core/commands/gptsync.c: Likewise.
9319 * grub-core/commands/ieee1275/suspend.c: Likewise.
9320 * grub-core/commands/legacycfg.c: Likewise.
9321 * grub-core/commands/memrw.c: Likewise.
9322 * grub-core/commands/minicmd.c: Likewise.
9323 * grub-core/commands/parttool.c: Likewise.
9324 * grub-core/commands/time.c: Likewise.
9325 * grub-core/commands/videoinfo.c: Likewise.
9326 * grub-core/disk/geli.c: Likewise.
9327 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
9328 * grub-core/disk/luks.c: Likewise.
9329 * grub-core/disk/lvm.c: Likewise.
9330 * grub-core/font/font_cmd.c: Likewise.
9331 * grub-core/fs/zfs/zfscrypt.c: Likewise.
9332 * grub-core/fs/zfs/zfsinfo.c: Likewise.
9333 * grub-core/gfxmenu/view.c: Likewise.
9334 * grub-core/kern/emu/hostdisk.c: Likewise.
9335 * grub-core/kern/emu/main.c: Likewise.
9336 * grub-core/kern/emu/misc.c: Likewise.
9337 * grub-core/kern/emu/mm.c: Likewise.
9338 * grub-core/kern/mips/arc/init.c: Likewise.
9339 * grub-core/kern/mips/loongson/init.c: Likewise.
9340 * grub-core/kern/partition.c: Likewise.
9341 * grub-core/lib/i386/halt.c: Likewise.
9342 * grub-core/lib/mips/arc/reboot.c: Likewise.
9343 * grub-core/lib/mips/loongson/reboot.c: Likewise.
9344 * grub-core/loader/i386/pc/chainloader.c: Likewise.
9345 * grub-core/loader/i386/xnu.c: Likewise.
9346 * grub-core/loader/multiboot.c: Likewise.
9347 * grub-core/net/bootp.c: Likewise.
9348 * grub-core/net/net.c: Likewise.
9349 * grub-core/normal/term.c: Likewise.
9350 * grub-core/partmap/bsdlabel.c: Likewise.
9351 * grub-core/parttool/msdospart.c: Likewise.
9352 * grub-core/term/gfxterm.c: Likewise.
9353 * grub-core/term/terminfo.c: Likewise.
9354 * grub-core/video/i386/pc/vbe.c: Likewise.
9355 * util/grub-menulst2cfg.c: Likewise.
9356 * util/grub-mkdevicemap.c: Likewise.
9357 * util/grub-mklayout.c: Likewise.
9358 * util/grub-mkrelpath.c: Likewise.
9359 * util/grub-script-check.c: Likewise.
9360 * util/ieee1275/grub-ofpathname.c: Likewise.
9361 * util/resolve.c: Likewise.
9362
9363 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9364
9365 Support %1$d syntax.
9366
9367 * tests/printf_unit_test.c: New file.
9368 * Makefile.util.def (printf_test): New test.
9369 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
9370
9371 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9372
9373 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
9374 fix.
9375
9376 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9377
9378 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
9379 dprintf.
9380 * grub-core/font/font.c (grub_font_load): Likewise.
9381
9382 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9383
9384 * util/grub-macho2img.c: Add comment concerning gettext.
9385 * grub-core/lib/legacy_parse.c: Likewise.
9386
9387 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9388
9389 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
9390 (grub_xvasprintf): Likewise.
9391
9392 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9393
9394 Add const keyword to grub_env_get and gettextize week days.
9395
9396 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
9397 (grub_read_hook_datetime): Return const char *.
9398 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
9399 updated.
9400 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
9401 Mark for gettext.
9402 (grub_get_weekday_name): Return const char *. Call gettext.
9403 * grub-core/script/argv.c (grub_script_argv_append): Receive const
9404 char * and len as the argument. All users updated.
9405 (grub_script_argv_split_append): Receive const char *.
9406 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
9407 * include/grub/env.h (grub_env_get): Likewise.
9408 (grub_env_read_hook_t): Return const char *.
9409 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
9410 (grub_script_argv_split_append): Likewise.
9411
9412 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9413
9414 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
9415
9416 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9417
9418 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
9419 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
9420
9421 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9422
9423 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
9424 Fix prototype.
9425
9426 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9427
9428 Fix mips compilation.
9429
9430 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
9431 normal decoder.
9432 (hashes): Use in embed decoder as well (for sizes).
9433 (dec_stream_header): Fix embed decompressor logic.
9434 (dec_stream_footer): Likewise.
9435
9436 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9437
9438 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
9439 an error and not a fatal on unrecognised relocation types.
9440
9441 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9442
9443 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
9444 Issue error rather than printf on unknown arguments.
9445
9446 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9447
9448 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
9449 Make buf a const.
9450
9451 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9452
9453 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
9454 Fix module name.
9455
9456 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9457
9458 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
9459 leftover debug printf.
9460
9461 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9462
9463 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
9464
9465 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9466
9467 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
9468 A stylistic fix.
9469
9470 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9471
9472 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
9473
9474 2011-11-10 Shea Levy <slevy@tieronedesign.com>
9475
9476 Allow all modules to perform serial IO
9477
9478 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
9479 * include/grub/serial.h (grub_serial_port_configure): New inline
9480 function.
9481 (grub_serial_port_fetch): Likewise.
9482 (grub_serial_port_put): Likewise.
9483 (grub_serial_port_fini): Likewise.
9484 (grub_serial_find): New proto.
9485
9486 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9487
9488 Put symlink at the end of the node and fix a potential
9489 memory corruption.
9490
9491 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
9492 Make symlink into an array.
9493 (set_rockridge): Set have_symlink and alloc_dirents.
9494 (grub_iso9660_read_symlink): Use new layout.
9495 (grub_iso9660_iterate_dir): Fix memory corruption.
9496 Use new layout.
9497 (grub_iso9660_dir): Set have_symlink.
9498 (grub_iso9660_open): Likewise.
9499
9500 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9501
9502 Remove local keyword.
9503
9504 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
9505 (version_test_gt): Likewise.
9506 (version_find_latest): Likewise.
9507 (gettext_printf): Likewise.
9508 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
9509
9510 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9511
9512 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
9513
9514 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9515
9516 Fix ZFS memory and resource leaks.
9517
9518 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
9519 All users updated.
9520 Free type on exit.
9521 (fill_vdev_info): New parameter inserted. All users updated.
9522 (check_pool_label): Likewise.
9523 (scan_disk): Likewise.
9524 (scan_devices): Close non-inserted disks.
9525 (fzap_iterate): Free l.
9526 (unmount_device): Free children descripto memory.
9527
9528 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9529
9530 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
9531 argument (access out of bounds).
9532
9533 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9534
9535 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
9536 >= 6 drives.
9537
9538 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9539
9540 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
9541 Fix declaration.
9542
9543 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9544
9545 Fix several memory leaks.
9546
9547 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
9548 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
9549 (grub_cpio_dir): Likewise.
9550 * grub-core/fs/fat.c (grub_fat_label): Likewise.
9551 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
9552 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
9553 (grub_romfs_label): Likewise.
9554 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
9555 (squash_unmount): New function.
9556 (grub_squash_dir): Fix memory leak.
9557 (grub_squash_open): Likewise.
9558 (grub_squash_read): Likewise.
9559 (grub_squash_mtime): Likewise.
9560 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
9561 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
9562 * util/grub-fstest.c (fstest): Likewise.
9563
9564 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9565
9566 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
9567 avoid accessing beyond the array.
9568
9569 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9570
9571 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
9572
9573 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9574
9575 Several AFFS fixes.
9576
9577 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
9578 (GRUB_AFFS_FLAG_FFS): Removed.
9579 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
9580 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
9581 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
9582 (grub_fshelp_node): Make block 32-bit.
9583 Add block_cache and last_block_cache.
9584 (grub_affs_read_block): Fill and use block cache.
9585 (grub_affs_read_file): Removed.
9586 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
9587 boot block.
9588 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
9589 safety.
9590 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
9591 space.
9592 (grub_affs_close): Free block cache.
9593 (grub_affs_read): Use grub_fshelp_read_file directly.
9594
9595 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9596
9597 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
9598 with no error set.
9599
9600 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9601
9602 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
9603 used variable.
9604 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
9605 Likewise.
9606
9607 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9608
9609 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
9610
9611 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
9612 byteswap when needed.
9613
9614 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9615
9616 Fix FreeBSD compilation.
9617
9618 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
9619 to avoid circular dependency.
9620 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
9621 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
9622 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
9623
9624 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9625
9626 Fix ZFS crypto error types.
9627
9628 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
9629 (grub_gcm_decrypt): Likewise.
9630 (grub_zfs_load_key_real): Fix error code type. Handle possible error
9631 from PBKDF2.
9632
9633 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9634
9635 Illumos support.
9636
9637 * Makefile.util.def (10_illumos): New script.
9638 * configure.ac: Set COND_HOST_ILLUMOS.
9639 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
9640 Support Illumos calls.
9641 (find_partition_start) [__sun__]: Likewise.
9642 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
9643 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
9644 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
9645 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
9646 device.
9647 * util/grub-probe.c (probe) [__sun__]: Do character check.
9648 * util/grub.d/10_illumos.in: New file.
9649
9650 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9651
9652 Support escaped commas in hostdisk.
9653
9654 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
9655 (find_grub_drive): Use unescape_cmp.
9656 (make_device_name): Escape commas.
9657
9658 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9659
9660 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
9661
9662 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9663
9664 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
9665 variable.
9666
9667 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9668
9669 Support trampoline jumps on powerpc.
9670
9671 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
9672 __ia64__ path.
9673 (grub_dl_load_segments): Set mod->sz.
9674 (grub_dl_flush_cache): Flush whole space occupied by module, not just
9675 segments.
9676 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
9677 (jump): Likewise.
9678 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
9679 function.
9680 (trampoline): New struct.
9681 (trampoline_template): New const.
9682 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
9683 * include/grub/dl.h (grub_dl): Add sz element.
9684 [__powerpc__]: Follow __ia64__.
9685 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
9686 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
9687 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
9688 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
9689
9690 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9691
9692 ZFS crypto support.
9693
9694 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
9695 * grub-core/Makefile.core.def (zfscrypt): New module.
9696 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
9697 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
9698 it. All users updated.
9699 (grub_zfs_decrypt): New var.
9700 (grub_zfs_load_key): Likewise.
9701 (zio_checksum_functions): Add SHA256+MAC.
9702 (zio_checksum_verify): Handle incomplete comparison due to MAC.
9703 (zio_read): Handle encrypted blocks.
9704 (zap_verify): Remove incorrect check.
9705 (fzap_iterate): Handle non-standard fzap.
9706 (zap_iterate): Likewise.
9707 (zap_iterate_u64): New function.
9708 (dnode_get_fullpath): Load keys.
9709 * grub-core/fs/zfs/zfscrypt.c: New file.
9710 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
9711 (grub_crypto_ecb_encrypt): Make input const.
9712 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
9713 (grub_crypto_ecb_encrypt): Make input const.
9714 (GRUB_CIPHER_AES): New macro.
9715 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
9716 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
9717 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
9718 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
9719 prefix. All users updated.
9720 (grub_zfs_add_key): New proto.
9721 (grub_zfs_decrypt): Likewise.
9722 (grub_zfs_load_key): Likewise.
9723 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
9724 * util/grub-fstest.c (options): Add -K option.
9725 (argp_parser): Likewise.
9726
9727 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9728
9729 Support zle compression on ZFS.
9730
9731 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
9732 (decomp_table): Add zle.
9733 * include/grub/zfs/zio.h (zio_compress): Add zle.
9734
9735 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9736
9737 Support BtrFS embedding.
9738
9739 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
9740 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
9741 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
9742 * util/grub-setup.c (setup): Use fs embedding if available.
9743 Add additional sanity check.
9744
9745 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9746
9747 * util/grub-install.in: Fix condition for config_opt.
9748
9749 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9750
9751 Support third redundancy strip on raidz3.
9752
9753 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
9754 Return error on singularity. All users updated.
9755 (read_device): Don't stop on 3rd failure on raidz3.
9756
9757 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9758
9759 Support case-insensitive ZFS subvolumes.
9760
9761 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
9762 All users updated.
9763 (zap_hash): Likewise.
9764 (name_cmp): New function.
9765 (zap_leaf_array_equal): New parameter case_insensitive.
9766 All users updated.
9767 (zap_leaf_lookup): Likewise.
9768 (fzap_lookup): Likewise.
9769 (zap_lookup): Likewise.
9770 (dnode_get_path): New parameter case_insensitive. Retrieve case
9771 sensitiviness of a volume. All users updated.
9772 (dnode_get_fullpath): New parameter case_insensitive.
9773 All users updated.
9774 (grub_zfs_dir): Set info.case_insensitiveness.
9775
9776 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9777
9778 Support second redundancy strip on raidz(2,3).
9779
9780 * grub-core/fs/zfs/zfs.c (powx): New array.
9781 (powx_inv): Likewise.
9782 (poly): New const.
9783 (xor_out): New function.
9784 (gf_mul): Likewise.
9785 (recovery): Likewise.
9786 (read_device): Use second redundancy strip.
9787
9788 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9789
9790 Use a power of generator representation of GF(256) multiplication group
9791 to save space time and complexity.
9792
9793 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
9794 (raid6_table2): Likewise.
9795 (powx): New array.
9796 (powx_inv): Likewise.
9797 (poly): New const.
9798 (grub_raid_block_mul): Replace with ...
9799 (grub_raid_block_mulx): ...this.
9800 (grub_raid6_init_table): Rewritten.
9801 (grub_raid6_recover): Use power of generator representation.
9802
9803 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9804
9805 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
9806 for the right device.
9807
9808 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9809
9810 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
9811 expected by grub-mkimage and it's more clear since there is no implicit
9812 padding.
9813
9814 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9815
9816 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
9817 disk.
9818 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9819
9820 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
9821
9822 * util/grub-mkrescue.in: Fix handling xorriso option.
9823
9824 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9825
9826 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
9827 NULL.
9828
9829 2011-11-03 crocket <crockabiscuit@gmail.com>
9830
9831 * util/grub.d/10_linux.in: Add Slackware initrd naming.
9832
9833 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9834
9835 XZ CRC64 and SHA256 support.
9836
9837 * Makefile.util.def (libgrubmods): Add crc64.c.
9838 * grub-core/Makefile.core.def (crc64): New module.
9839 * grub-core/lib/crc64.c: New file.
9840 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
9841 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
9842 Fix the type.
9843 (MAX_HASH_SIZE): New define.
9844 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
9845 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
9846 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9847 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9848 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
9849 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
9850 Handle non-crc32 hashes.
9851 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
9852 (dec_stream_header): Handle non-crc32 hashes.
9853 (dec_stream_footer): Likewise.
9854 (dec_block_header): Likewise.
9855 (dec_main): Likewise.
9856 (xz_dec_init): Likewise.
9857 (xz_dec_reset): Likewise.
9858 (xz_dec_end): Likewise.
9859 * util/import_gcry.py: Add CRC64 line.
9860
9861 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9862
9863 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
9864 as well.
9865
9866 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9867
9868 Make reiserfs label retrieval similar to other *_label functions.
9869
9870 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
9871 (REISERFS_MAX_LABEL_LENGTH): Removed.
9872 (REISERFS_LABEL_OFFSET): Likewise.
9873 (grub_reiserfs_label): Rewritten.
9874
9875 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9876
9877 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
9878 field.
9879
9880 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9881
9882 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
9883
9884 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9885
9886 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
9887 drive failure on both raidz and raidz2.
9888
9889 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9890
9891 Fix RAIDZ(2) for >= 5 devices.
9892
9893 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
9894 asize argument. All users updated.
9895
9896 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9897
9898 Fix RAIDZ(2).
9899
9900 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
9901 (fill_vdev_info_real): Set ashift.
9902 (read_device): Rewrite RAIDZ part based on reverse engineering.
9903
9904 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9905
9906 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
9907 don't report potentially unavialiable fields in debug output.
9908 (find_path): Fix double-free and memory leak.
9909
9910 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9911
9912 Read label on UFS1.
9913
9914 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
9915 (grub_ufs_fs): Always set .label.
9916
9917 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9918
9919 Use shifts in UFS.
9920
9921 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
9922 (grub_ufs_data): New field log2_blksz.
9923 (grub_ufs_read_file): Use shifts.
9924 (grub_ufs_mount): Check block size and logarithm it.
9925
9926 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9927
9928 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
9929 long symlinks.
9930
9931 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9932
9933 Handle symlinks and long names on tar and cpio.
9934
9935 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
9936 (ATTR_FILE): Likewise.
9937 (ATTR_DIR): Likewise.
9938 (ATTR_LNK): Likewise.
9939 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
9940 (grub_cpio_find_file): Fill mode, handle linkname field as well as
9941 L and K entries.
9942 (grub_cpio_mount): Zero-fill data.
9943 (handle_symlink): New function.
9944 (grub_cpio_dir): Handle symlinks.
9945 (grub_cpio_open): Likewise.
9946 (grub_cpio_close) [MODE_USTAR]: Free linkname.
9947
9948 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9949
9950 Fix iso9660 filename limitations and fix memory leaks.
9951
9952 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
9953 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
9954
9955 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9956
9957 Fix JFS file name length limitations.
9958
9959 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
9960 (grub_jfs_diropen): Fix maximum filename length.
9961 (grub_jfs_getent): Fix filename length.
9962 (grub_jfs_lookup_symlink): Fix size checks.
9963
9964 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9965
9966 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
9967 string.
9968
9969 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9970
9971 Leverage BFS implementation to read AFS.
9972
9973 * Makefile.util.def (libgrubmods): Add afs.c.
9974 * grub-core/Makefile.core.def (afs): New module
9975 * grub-core/fs/afs.c: New file.
9976 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
9977
9978 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9979
9980 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
9981
9982 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9983
9984 * grub-core/fs/bfs.c: Run indent.
9985
9986 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9987
9988 BFS implementation based on the specification.
9989
9990 * grub-core/fs/bfs.c: New file.
9991 * Makefile.util.def (libgrubmods): Add bfs.c.
9992 * grub-core/Makefile.core.def (bfs): New module.
9993
9994 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9995
9996 * util/grub-fstest.c (cmd_cp): Clarify error message.
9997 (cmd_cmp): Likewise.
9998
9999 2011-10-30 Yves Blusseau <blusseau@zetam.org>
10000
10001 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
10002 and befs_be.
10003
10004 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
10005
10006 Remove afs and befs because of copyright problem.
10007
10008 * grub-core/fs/afs.c: Removed.
10009 * grub-core/fs/afs_be.c: Removed.
10010 * grub-core/fs/befs.c: Removed.
10011 * grub-core/fs/befs_be.c: Removed.
10012 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
10013 * grub-core/Makefile.core.def (afs): Removed.
10014 (afs_be): Likewise.
10015 (befs): Likewise.
10016 (befs_be): Likewise.
10017
10018 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10019
10020 Prefer rockridge over Joliet.
10021
10022 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
10023 to ...
10024 (set_rockridge): ... here.
10025 (grub_iso9660_mount): Check rockridge on the primary label when
10026 discovering. Ignore Joliet if Rockridge is present.
10027
10028 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10029
10030 Use shifts in nilfs2.
10031
10032 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
10033 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
10034 (grub_nilfs2_palloc_entries_per_group): Replace with ...
10035 (grub_nilfs2_log_palloc_entries_per_group): ... this.
10036 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
10037 (grub_nilfs2_entries_per_block): Replaced with ...
10038 (grub_nilfs2_log_entries_per_block_log): ... this.
10039 (grub_nilfs2_blocks_per_group): Replaced with ...
10040 (grub_nilfs2_blocks_per_group_log): ... this.
10041 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
10042 (grub_nilfs2_blocks_per_desc_block_log): ... this.
10043 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
10044 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
10045 (grub_nilfs2_palloc_entry_offset): Replaced ...
10046 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
10047 (grub_nilfs2_dat_translate): Use shifts.
10048 (grub_nilfs2_read_inode): Likewise.
10049 (GRUB_MOD_INIT): Ensure that logs are correct.
10050
10051 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10052
10053 Use shifts in minix filesystem.
10054
10055 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
10056 (GRUB_MINIX_ZONE2SECT): Likewise.
10057 (grub_minix_data): Replace block_size with log_block_size.
10058 (grub_minix_read_file): Use shifts.
10059 (grub_minix_mount): Check block size and take a logarithm.
10060
10061 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10062
10063 Use shifts in squash4.
10064
10065 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
10066 (squash_mount): Check block size and take logarithm.
10067 (direct_read): Use shifts.
10068
10069 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10070
10071 Correct befs block counting logic.
10072
10073 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
10074 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
10075 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
10076 (grub_afs_read_inode): Use block_shift.
10077 (RANGE_SHIFT): New definition.
10078 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
10079 unexpected conditions, use shifts and appropriate types.
10080 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
10081
10082 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10083
10084 * grub-core/disk/raid.c (scan_devices): Check partition.
10085 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
10086
10087 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10088
10089 Support BFS (befs) UUID.
10090
10091 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
10092 (grub_afs_small_data_element_header): New struct.
10093 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
10094 (grub_afs_read_attribute) [MODE_BFS]: New function.
10095 (grub_afs_iterate_dir): Allocate for complete inode.
10096 (grub_afs_mount): Likewise.
10097 (grub_afs_uuid) [MODE_BFS]: New function.
10098 (grub_afs_fs) [MODE_BFS]: Add .uuid.
10099
10100 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10101
10102 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
10103 (zfs_unmount): Fix memory leak.
10104
10105 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10106
10107 Support NTFS reparse points.
10108
10109 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
10110 (symlink_descriptor): New struct.
10111 (grub_ntfs_read_symlink): New function.
10112 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
10113 (grub_ntfs_open): Likewise.
10114
10115 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10116
10117 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
10118
10119 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10120
10121 fstest xnu_uuid subcommand.
10122
10123 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
10124 grub-core/commands/xnu_uuid.c.
10125 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
10126 (fstest): Handle xnu_uuid.
10127 (options): Document xnu_uuid.
10128 (argp_parser): Parse xnu_uuid.
10129
10130 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10131
10132 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
10133 -l argument. Add newline at the end if printing.
10134 (GRUB_MOD_INIT): Document -l.
10135
10136 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10137
10138 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
10139
10140 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10141
10142 ZFS multi-device and version 33 support.
10143
10144 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
10145 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
10146 (grub_zfs_data): Add multidev-ice-related fields.
10147 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
10148 (dva_get_offset): Make dva const.
10149 (zfs_fetch_nvlist): New function.
10150 (fill_vdev_info_real): Likewise.
10151 (fill_vdev_info): Likewise.
10152 (check_pool_label): Likewise.
10153 (scan_disk): Likewise.
10154 (scan_devices): Likewise.
10155 (read_device): Likewise.
10156 (read_dva): Likewise.
10157 (zio_read_gang): Use read_dva.
10158 (zio_read_data): Likewise.
10159 (zap_leaf_lookup): Add missing endian conversion.
10160 (zap_verify): Add missing endian conversion. All users updated.
10161 (fzap_lookup): Likewise.
10162 (fzap_iterate): Likewise.
10163 (dnode_get_path): Handle SA bonus.
10164 (nvlist_find_value): Make input const. All users updated.
10165 (unmount_device): New function.
10166 (zfs_unmount): Use unmount_device.
10167 (zfs_mount): Use scan_disk.
10168 (zfs_mtime): New function.
10169 (grub_zfs_open): Handle system attributes.
10170 (fill_fs_info): Likewise.
10171 (grub_zfs_dir): Likewise.
10172 (grub_zfs_fs): Add mtime.
10173 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
10174 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
10175 (SA_MTIME_OFFSET): Likewise.
10176 (SA_SYMLINK_OFFSET): Likewise.
10177 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
10178 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
10179 (fstest): Support zfsinfo.
10180 (argp_parser): Likewise.
10181
10182 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10183
10184 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
10185 error.
10186
10187 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10188
10189 ZFS fixes.
10190
10191 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
10192 sharing the same block. Iterate over correct number of indices.
10193 (dnode_get_path): Handle symlinks correctly.
10194
10195 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10196
10197 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
10198
10199 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10200
10201 Read label on HFS+.
10202
10203 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
10204 (grub_hfsplus_btree_search): Fix types.
10205 (grub_hfsplus_label): Implement.
10206
10207 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10208
10209 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
10210
10211 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10212
10213 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
10214
10215 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10216
10217 Fix symlink handling on iso9660.
10218
10219 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
10220 All users updated.
10221 (grub_iso9660_susp_iterate): Accept zero-size iterate.
10222 (grub_iso9660_read_symlink): Moved most of code ...
10223 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
10224
10225 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10226
10227 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10228 Use union to avoid breaking strict-aliasing rules.
10229
10230 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10231
10232 Support multi-extent iso files.
10233
10234 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
10235 Add node.
10236 (grub_fshelp_node): Revamp. All users updated.
10237 (FLAG_*): New enum.
10238 (read_node): New function.
10239 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
10240 All users updated.
10241 (grub_iso9660_mount): Don't attempt to read sua when there is none.
10242 (get_node_size): New function.
10243 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
10244 entries.
10245 Fix memory leak on . and ..
10246 (grub_iso9660_read): Use read_node.
10247 (grub_iso9660_close): Free node.
10248
10249 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10250
10251 Fix tar 4G limit and handle paths containing dot.
10252
10253 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
10254 (canonicalize): New function.
10255 (grub_cpio_find_file): Use canonicalize. Store offs in
10256 grub_disk_addr_t.
10257 (grub_cpio_dir): Use grub_disk_addr_t.
10258 (grub_cpio_open): Likewise.
10259
10260 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10261
10262 Fix handling of uncompressed blocks on squashfs and break 4G limit.
10263
10264 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
10265 unused flags.
10266 (grub_squash_inode): Add long_file and block_size.
10267 (grub_squash_cache_inode): New struct.
10268 (grub_squash_dirent): Make types into enum.
10269 (SQUASH_TYPE_LONG_REGULAR): New type.
10270 (grub_squash_frag_desc): Add field size.
10271 (SQUASH_BLOCK_FLAGS): New enum.
10272 (grub_squash_data): Use grub_squash_cache_inode.
10273 (grub_fshelp_node): Make ino_chunk 64-bit.
10274 (read_chunk): Minor argument change. All users updated.
10275 (squash_mount): Use correct le_to_cpu.
10276 (grub_squash_open): Handle LONG_REGULAR.
10277 (direct_read): New function.
10278 (grub_squash_read_data): Handle blocks correctly.
10279
10280 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10281
10282 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
10283
10284 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10285
10286 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
10287
10288 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10289
10290 Fix 2G limit on ZFS.
10291
10292 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
10293 types.
10294 (uberblock_verify): Likewise.
10295 (dmu_read): Likewise.
10296 (grub_zfs_read): Likewise. Remove invalid cast.
10297
10298 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10299
10300 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
10301 (grub_jfs_blkno): Fix incorrect shift.
10302 (grub_jfs_read_file): Use more appropriate types.
10303
10304 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10305
10306 Support triple indirect on minix2 and minix3.
10307
10308 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
10309 Declare triple_indir_zone.
10310 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
10311 indirect.
10312
10313 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10314
10315 Minix FS fixes.
10316
10317 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
10318 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
10319 Rename ctime to mtime. All users updated.
10320 (grub_minix_get_file_block): Fix types and double indirect computations.
10321
10322 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10323
10324 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
10325 if no label is found.
10326 (grub_fat_iterate_dir): Fix file size type.
10327 (grub_fat_iterate_dir): Likewise.
10328
10329 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10330
10331 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
10332 save some space.
10333 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
10334 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
10335
10336 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10337
10338 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
10339
10340 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10341
10342 * util/import_gcry.py: Accept space between # and include.
10343
10344 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10345
10346 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
10347
10348 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10349
10350 Fine grainely disable warnings on lexer. Remove Wno-error on it.
10351
10352 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
10353 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
10354 yylex_strncpy.
10355 * grub-core/script/yylex.l: Add fine-grained #pragma.
10356
10357 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10358
10359 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
10360 New inline function.
10361 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
10362 Likewise.
10363 (memset) [GRUB_UTIL]: Likewise.
10364 (memcmp) [GRUB_UTIL]: Likewise.
10365
10366 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10367
10368 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
10369 inline function rather than a define.
10370
10371 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10372
10373 * util/grub-setup.c: Add missing include.
10374
10375 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10376
10377 * util/ieee1275/grub-ofpathname.c: Add missing include.
10378
10379 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10380
10381 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
10382 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
10383 Likewise.
10384
10385 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10386
10387 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
10388 grub_memcmp usage.
10389
10390 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10391
10392 * util/grub-install.in: Add datarootdir as per automake manual
10393 suggestion.
10394 * util/grub-mknetdir.in: Likewise.
10395
10396 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10397
10398 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
10399 suggestion.
10400 * util/grub.d/10_kfreebsd.in: Likewise.
10401 * util/grub.d/10_linux.in: Likewise.
10402 * util/grub.d/10_netbsd.in: Likewise.
10403 * util/grub.d/10_windows.in: Likewise.
10404 * util/grub.d/20_linux_xen.in: Likewise.
10405
10406 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
10407
10408 Remove redundant grub_kernel_image_size.
10409
10410 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
10411 _edata and _start.
10412 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
10413 the small code. It moves it only by few bytes but simplifies the code.
10414 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
10415 _start.
10416 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
10417 (grub_kernel_image_size): Removed.
10418 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
10419 (grub_kernel_image_size): Removed.
10420 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
10421 compiled with Apple toolchain.
10422 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
10423 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
10424 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
10425 (grub_total_module_size): Likewise.
10426 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
10427 Removed.
10428 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
10429 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
10430 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10431 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
10432 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
10433 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
10434 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
10435 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
10436 Removed.
10437 (grub_total_module_size): Removed.
10438 * util/grub-mkimage.c (image_target_desc): Remove image_size.
10439 (image_targets): Likewise.
10440 Set .compressed_size to no field on sparc.
10441 (generate_image): Remove kernel_image_size handling.
10442
10443 2011-10-19 Szymon Janc <szymon@janc.net.pl>
10444
10445 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
10446 NULL pointer dereference.
10447
10448 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10449
10450 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
10451 done with a dedicated section.
10452
10453 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
10454 Ensure the correct position of boot_path.
10455 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
10456 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
10457 other fields.
10458 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
10459 * include/grub/boot.h: Removed. All references removed.
10460 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10461 Removed.
10462 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
10463
10464 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10465
10466 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
10467 name.
10468
10469 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10470
10471 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
10472
10473 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10474
10475 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
10476 Don't add the bogus brackets.
10477
10478 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10479
10480 ExFAT support.
10481
10482 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
10483 * grub-core/Makefile.core.def (exfat): New module.
10484 * grub-core/fs/exfat.c: New file.
10485 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
10486 (GRUB_FAT_ATTR_*): Make into an enum.
10487 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
10488 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
10489 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
10490 (GRUB_FAT_MAXFILE): Removed.
10491 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
10492 (grub_current_fat_bpb_t): New type.
10493 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
10494 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
10495 (grub_fat_dir_node_t): New type.
10496 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
10497 (fat_log2) [MODE_EXFAT]: Removed.
10498 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
10499 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
10500 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
10501 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
10502 (grub_fat_label) [MODE_EXFAT]: New function.
10503 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
10504 reserved_first_sector to 0.
10505
10506 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10507
10508 Move grub_reboot out of the kernel.
10509
10510 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
10511 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
10512 * grub-core/lib/efi/reboot.c: ... here.
10513 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
10514 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10515 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
10516 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
10517 * grub-core/lib/i386/reboot_trampoline.S: ... here.
10518 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
10519 * grub-core/lib/ieee1275/reboot.c: ... here.
10520 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
10521 * grub-core/lib/mips/arc/reboot.c: ... here.
10522 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
10523 * grub-core/lib/mips/loongson/reboot.c: ...here.
10524 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
10525 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
10526 * include/grub/emu/misc.h (grub_reboot): New function declaration.
10527 * include/grub/i386/reboot.h: New file.
10528 * include/grub/mips/loongson/ec.h: Fix includes.
10529 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
10530 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
10531 * grub-core/lib/i386/reboot.c: New file.
10532
10533 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
10534
10535 Make grub_prefix into module to fix the arbitrary limit and save
10536 some space.
10537
10538 * grub-core/kern/emu/main.c (grub_prefix): Removed.
10539 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
10540 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
10541 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
10542 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
10543 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
10544 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
10545 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
10546 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
10547 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
10548 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
10549 * include/grub/ia64/efi/kernel.h: Removed.
10550 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
10551 (grub_prefix): Removed.
10552 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
10553 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
10554 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
10555 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
10556 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
10557 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
10558 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
10559 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
10560 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
10561 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
10562 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
10563 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
10564 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
10565 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
10566 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
10567 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
10568 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
10569 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
10570 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
10571 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
10572 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
10573 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
10574 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
10575 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
10576 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
10577 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
10578 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
10579 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
10580 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
10581 from module.
10582 * util/grub-mkimage.c (image_target_desc): Removed prefix and
10583 prefix_end.
10584 (image_targets): Likewise.
10585 (generate_image): Put prefix as a module.
10586
10587 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10588
10589 Replace grub_module_iterate with FOR_MODULES.
10590
10591 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
10592 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
10593 (grub_efi_modules_addr): ...this.
10594 * grub-core/kern/efi/init.c (grub_modbase): New variable.
10595 (grub_efi_init): Set grub_modbase.
10596 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
10597 (grub_modbase): New variable.
10598 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
10599 (grub_modbase): New variable.
10600 (grub_machine_init): Set grub_modbase.
10601 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
10602 (grub_modbase): New variable.
10603 (grub_machine_init): Set grub_modbase.
10604 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
10605 (grub_modbase): New variable.
10606 (grub_machine_init): Set grub_modbase.
10607 * grub-core/kern/main.c (grub_module_iterate): Remove.
10608 (grub_modules_get_end): Use grub_modbase.
10609 (grub_load_modules): Use FOR_MODULES.
10610 (grub_load_config): Likewise.
10611 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
10612 (grub_modbase): New variable.
10613 (grub_machine_init): Set grub_modbase.
10614 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
10615 (grub_modbase): New variable.
10616 (grub_machine_init): Set grub_modbase.
10617 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
10618 Removed.
10619 (grub_modbase): New variable.
10620 (grub_machine_init): Set grub_modbase.
10621 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
10622 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
10623 (grub_module_iterate): Likewise.
10624 (grub_modbase): New variable declaration.
10625 (FOR_MODULES): New macro.
10626
10627 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10628
10629 * configure.ac: Check for __ctzdi2 and __ctzsi2.
10630 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
10631
10632 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10633
10634 Fix few obvious type discrepancies.
10635
10636 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
10637 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
10638 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
10639 variable.
10640 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
10641 and connected types.
10642 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
10643 offset.
10644 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
10645 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
10646 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
10647 and connected types.
10648
10649 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10650
10651 Fix python 3.x incompatibilities.
10652
10653 * gentpl.py: Put brackets around print strings.
10654 * util/import_gcry.py: Open explicitly as utf-8.
10655 Use in instead of has_key.
10656
10657 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10658
10659 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
10660 (GRUB_XFS_INO_AGBITS): Make into inline function.
10661 (GRUB_XFS_INO_INOINAG): Likewise.
10662 (GRUB_XFS_INO_AG): Likewise.
10663 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
10664 (GRUB_XFS_EXTENT_OFFSET): Likewise.
10665 (GRUB_XFS_EXTENT_BLOCK): Likewise.
10666 (GRUB_XFS_EXTENT_SIZE): Likewise.
10667 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
10668 (GRUB_XFS_NEXT_DIRENT): Likewise.
10669 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
10670 (grub_xfs_read_file): Fix offset type.
10671
10672 2011-10-15 Robert Millan <rmh@gnu.org>
10673
10674 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
10675
10676 2011-10-15 Robert Millan <rmh@gnu.org>
10677
10678 Fix build problem on FreeBSD and GNU/kFreeBSD.
10679
10680 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
10681
10682 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10683
10684 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
10685
10686 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
10687 types.
10688 (grub_hfsplus_btree_recoffset): Likewise.
10689 (grub_hfsplus_btree_recptr): Likewise.
10690 (grub_hfsplus_find_block): Likewise.
10691 (grub_hfsplus_btree_search): Likewise.
10692 (grub_hfsplus_read_block): Likewise.
10693 (grub_hfsplus_read_file): Likewise.
10694 (grub_hfsplus_mount): Likewise.
10695 (grub_hfsplus_btree_iterate_node): Likewise.
10696 (grub_hfsplus_btree_search): Likewise.
10697 (grub_hfsplus_iterate_dir): Likewise.
10698 (grub_hfsplus_read): A small code simplification.
10699
10700 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10701
10702 * grub-core/kern/emu/hostdisk.c
10703 (convert_system_partition_to_system_disk): Don't assume that children
10704 of mapper nodes are mapper nodes.
10705
10706 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10707
10708 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
10709 * include/grub/misc.h (grub_isxdigit): New function.
10710 * grub-core/video/colors.c (my_isxdigit): Removed. All users
10711 switched to grub_isxdigit.
10712 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
10713 number starting with a letter.
10714
10715 2011-10-09 Robert Millan <rmh@gnu.org>
10716
10717 LVM support for FreeBSD and GNU/kFreeBSD.
10718
10719 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
10720 GNU/kFreeBSD.
10721 (LVM_DEV_MAPPER_STRING): Move from here ...
10722 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
10723 * util/getroot.c: Include `<grub/util/lvm.h>'.
10724 (grub_util_get_dev_abstraction): Enable
10725 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
10726 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
10727 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
10728 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
10729 support it.
10730 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
10731 GNU/kFreeBSD.
10732 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
10733 when LVM abstraction is required for ${GRUB_DEVICE}.
10734
10735 2011-10-06 Szymon Janc <szymon@janc.net.pl>
10736
10737 Add support for LZO compression in GRUB:
10738 - import of minilzo library,
10739 - LZO decompression for btrfs,
10740 - lzop files decompression.
10741
10742 * grub-core/io/lzopio.c: New file.
10743 * grub-core/lib/adler32.c: Likewise.
10744 * grub-core/lib/minilzo/lzoconf.h: Likewise.
10745 * grub-core/lib/minilzo/lzodefs.h: Likewise.
10746 * grub-core/lib/minilzo/minilzo.c: Likewise.
10747 * grub-core/lib/minilzo/minilzo.h: Likewise.
10748 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
10749 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
10750 grub-core/lib/minilzo/minilzo.c to common.
10751 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
10752 cflags in cppflags.
10753 * grub-core/Makefile.core.def (btrfs): Likewise.
10754 * grub-core/Makefile.core.def (lzopio): New module.
10755 (adler32): Likewise.
10756 * grub-core/fs/btrfs.c: Include minilzo.h.
10757 (GRUB_BTRFS_COMPRESSION_LZO): New define.
10758 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
10759 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
10760 (grub_btrfs_lzo_decompress): New function.
10761 (grub_btrfs_extent_read): Add support for LZO compression type.
10762 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
10763 (GRUB_USHRT_MAX): Likewise.
10764 (GRUB_UINT_MAX): Likewise.
10765 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
10766 (UINT_MAX): Likewise.
10767 (CHAR_BIT): Likewise.
10768 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
10769 grub-core/lib/posix_wrap/limits.h
10770 (UCHAR_MAX): Likewise.
10771 * include/grub/file.h (grub_file_filter_id): New compression filter
10772 GRUB_FILE_FILTER_LZOPIO.
10773 * include/grub/file.h (grub_file_filter_id): Set
10774 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
10775 * include/grub/types.h (grub_get_unaligned16): New function.
10776 (grub_get_unaligned32): Likewise.
10777 (grub_get_unaligned64): Likewise.
10778 * util/import_gcry.py (cryptolist): Add adler32.
10779
10780 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
10781
10782 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
10783 in perspective decreases the complexity of build system and fixes
10784 compilation right now.
10785
10786 2011-10-01 Ales Nesrsta <starous@volny.cz>
10787
10788 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
10789 (fixed problem related to using UHCI with coreboot).
10790
10791 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10792
10793 * gentpl.py: Use Autogen macros so that the output template file
10794 (Makefile.tpl) size is reduced.
10795
10796 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
10797
10798 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
10799 extra_dist.
10800
10801 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10802
10803 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
10804 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
10805
10806 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10807
10808 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
10809 _fullpath.
10810
10811 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10812
10813 Remove extra declaration of sleep for mingw32.
10814
10815 * util/misc.c (sleep) [__MINGW32__]: Removed.
10816 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
10817
10818 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
10819
10820 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
10821 type and packname.
10822 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
10823 Resurrected.
10824 (NETBSD_BTINFO_BOOTWEDGE): New definition.
10825 (grub_netbsd_btinfo_bootwedge): New struct.
10826 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10827 New function.
10828 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
10829
10830 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
10831
10832 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
10833 loader.
10834
10835 2011-09-28 Andreas Born <futur.andy@googlemail.com>
10836
10837 Fix incorrect identifiers in bash-completion.
10838
10839 * util/bash-completion.d/grub-completion.bash.in
10840 (_grub_mkpasswd-pbkdf2): Rename to ...
10841 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
10842 (_grub_script-check): Rename to ...
10843 (_grub_script_check): ... this. All users updated.
10844
10845 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
10846
10847 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
10848 Return 0 if disk isn't biosdisk.
10849
10850 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10851
10852 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
10853 on NetBSD.
10854 * Makefile.util.def (grub-fstest): Likewise.
10855
10856 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10857
10858 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
10859 Get sector size from disk label.
10860
10861 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
10862
10863 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
10864 */README* as well as README*.
10865 Reported by: Axel Beckert.
10866
10867 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10868
10869 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
10870 case of less than 256 MiB of RAM.
10871
10872 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10873
10874 * grub-core/commands/wildcard.c (make_regex): Handle @.
10875
10876 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10877
10878 * util/grub-install.in: Move cryptodisk logic to appropriate place.
10879
10880 2011-08-21 Szymon Janc <szymon@janc.net.pl>
10881
10882 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
10883 AC_LANG_CONFTEST macros.
10884
10885 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10886
10887 Add grub-fstest option to uncompress data for commands.
10888
10889 * util/grub-fstest.c (uncompress): New var.
10890 (options): New option -u.
10891
10892 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10893
10894 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
10895 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
10896
10897 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10898
10899 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
10900 file type was not recognized correctly (not gzip or corrupted).
10901
10902 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10903
10904 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
10905 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
10906
10907 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10908
10909 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
10910 loongson.
10911 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
10912 video_radeon_fuloong2e.
10913 * grub-core/video/radeon_fuloong2e.c: New file.
10914 * include/grub/video.h (grub_video_id_t): Add new ID
10915 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
10916
10917 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10918
10919 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
10920 define.
10921 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
10922 that PRID matches the detected subplatform and reset the subplatform
10923 if it doesn't.
10924
10925 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10926
10927 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
10928
10929 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10930
10931 Fix PCI iterating on functions >= 4.
10932
10933 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
10934 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
10935 Removed.
10936 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
10937 (grub_pci_read): Fix bitmask.
10938 (grub_pci_read_word): Likewise.
10939 (grub_pci_read_byte): Likewise.
10940 (grub_pci_write): Likewise.
10941 (grub_pci_write_word): Likewise.
10942 (grub_pci_write_byte): Likewise.
10943
10944 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10945
10946 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
10947 can still be specified in TARGET_CFLAGS)
10948
10949 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10950
10951 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
10952
10953 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
10954 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
10955 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
10956 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
10957 (FULOONG): Rename to ...
10958 (FULOONG2F): ... this. All users updated.
10959 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
10960 (machtype_fuloong2f_str): ... this.
10961 (machtype_fuloong2e_str): New string.
10962 Check for machtype_fuloong2e_str.
10963 * grub-core/loader/mips/linux.c (loongson_machtypes)
10964 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
10965 * grub-core/term/serial.c (loongson_defserial)
10966 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
10967 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
10968 loongson_defserial.
10969 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
10970 Rename to ...
10971 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
10972 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
10973 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
10974 to IMAGE_FULOONG2F_FLASH. All users updated.
10975 (image_targets): Rename images.
10976 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
10977
10978 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10979
10980 Make enable of disk cache statistics code configurable.
10981
10982 * configure.ac: --enable-cache-stats added.
10983 * config.h.in (DISK_CACHE_STATS): New define.
10984 * grub-core/Makefile.core.def (cacheinfo): New command.
10985 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
10986 * grub-core/commands/cacheinfo.c: New file.
10987 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
10988 moved to cacheinfo.c.
10989 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
10990 debug code.
10991 * include/grub/disk.h: Likewise.
10992
10993 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10994
10995 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
10996 * grub-core/Makefile.am: Likewise.
10997
10998 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10999
11000 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
11001 non-zero pull.
11002
11003 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11004
11005 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
11006 All users updated.
11007 (grub_jfs_lookup_symlink): Use correct starting inode.
11008
11009 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11010
11011 * util/grub-setup.c (main): Add missing gcry initialisation.
11012
11013 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11014
11015 Don't accept text modes on EFI when booting Linux.
11016
11017 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
11018 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
11019
11020 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
11021 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
11022
11023 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
11024 use of "/path/.." as in grub-install for EFI as well as handling
11025 symlinks correctly.
11026 Fixes Debian bug #637768.
11027
11028 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
11029
11030 * util/grub-probe.c: Remove duplicate #include.
11031
11032 2011-08-10 Robert Millan <rmh@gnu.org>
11033
11034 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
11035
11036 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
11037 function.
11038 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
11039 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
11040
11041 2011-08-03 Robert Millan <rmh@gnu.org>
11042
11043 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
11044 la_array as packed.
11045 Reported by: Zachary Bedell
11046
11047 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
11048
11049 * configure.ac: The Loongson port requires grub-mkfont due to its
11050 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
11051 be built.
11052
11053 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
11054
11055 * util/grub-install.in: Don't source grub-mkconfig_lib until after
11056 processing arguments (otherwise help2man fails when GRUB has not yet
11057 been installed).
11058
11059 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11060
11061 New script grub-mkstandalone.
11062
11063 * Makefile.util.def (grub-mkstandalone): New script.
11064 * docs/man/grub-mkstandalone.h2m: New file.
11065 * util/grub-mkstandalone.in: Likewise.
11066
11067 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11068
11069 Support ATA disks with 4K sectors.
11070
11071 * include/grub/ata.h (grub_ata): New member log_sector_size.
11072 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
11073 (grub_ata_identify): Read sector size.
11074 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
11075
11076 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11077
11078 * util/grub-install.in: Don't use uhci outside of x86.
11079
11080 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11081
11082 * util/grub-mkrescue.in: Add missing quotes.
11083
11084 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11085
11086 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
11087 dereference.
11088
11089 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11090
11091 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
11092
11093 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11094
11095 * include/grub/video.h: add missing EXPORT_FUND on
11096 grub_video_edid_checksum and grub_video_edid_preferred_mode.
11097
11098 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11099
11100 * include/grub/mips/kernel.h: Fix define conflict.
11101
11102 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11103
11104 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
11105 all four ways.
11106
11107 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
11108
11109 Preferred resolution detection for VBE.
11110
11111 * grub-core/video/video.c (grub_video_edid_checksum): New function.
11112 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
11113 the Flat Panel extension, in line with the X.org VESA driver.
11114 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
11115 New function.
11116 (grub_vbe_bios_get_ddc_capabilities): Likewise.
11117 (grub_vbe_bios_read_edid): Likewise.
11118 (grub_vbe_get_preferred_mode): Likewise.
11119 (grub_video_vbe_setup): When the mode is "auto", try to get the
11120 preferred mode from VBE, and use the largest mode that is no larger
11121 than the preferred mode (some BIOSes expose a preferred mode that is
11122 not in their mode list!). If this fails, fall back to 640x480 as a
11123 safe conservative choice.
11124 (grub_video_vbe_get_edid): New function.
11125 (grub_video_vbe_adapter): Add get_edid.
11126 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
11127 (struct grub_video_adapter): Add get_edid.
11128 (grub_video_edid_checksum): Add prototype.
11129 (grub_video_edid_preferred_mode): Likewise.
11130 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
11131 structure.
11132
11133 * grub-core/commands/videoinfo.c (print_edid): New function.
11134 (grub_cmd_videoinfo): Print EDID if available.
11135
11136 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
11137 is more appropriate on a wider range of platforms than 640x480.
11138 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
11139 documentation.
11140
11141 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11142
11143 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
11144
11145 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11146
11147 * po/POTFILES.in: Regenerate.
11148
11149 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11150
11151 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
11152 incorrect memory usage.
11153
11154 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11155
11156 * util/grub-install.in: Source grub-mkconfig_lib.
11157
11158 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11159
11160 Remove getroot.c from core on emu platform.
11161
11162 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
11163 kern/emu/raid.c.
11164 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
11165 useless.
11166 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
11167 * util/getroot.c (get_win32_path): ... here.
11168 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
11169 * util/getroot.c (fini_libzfs): ... here.
11170 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
11171 * util/getroot.c (grub_get_libzfs_handle): ... here.
11172 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
11173 Moved from here...
11174 * util/getroot.c (grub_find_zpool_from_dir): ... here.
11175 * grub-core/kern/emu/misc.c
11176 (grub_make_system_path_relative_to_its_root): Moved from here...
11177 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
11178 * grub-core/kern/emu/getroot.c: Moved from here ...
11179 * util/getroot.c: ... here. All users updated.
11180 * grub-core/kern/emu/raid.c: Moved from here ...
11181 * util/raid.c: ... here. All users updated.
11182
11183 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11184
11185 * po/POTFILES.in: Regenerate.
11186
11187 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11188
11189 Fix compilation on GNU/Linux.
11190
11191 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
11192 Disable geli.
11193 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
11194 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
11195 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
11196
11197 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11198 2011-07-07 Michael Gorven <michael@gorven.za.net>
11199 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
11200
11201 LUKS and GELI support.
11202
11203 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
11204 grub-core/disk/luks.c, grub-core/disk/geli.c,
11205 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
11206 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
11207 grub-core/lib/arg.c.
11208 (libgrubmods.a): Remove gcrypts cflags and cppflags.
11209 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
11210 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
11211 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
11212 (grub-bin2h): Add libgcry.a.
11213 (grub-mkimage): Likewise.
11214 (grub-mkrelpath): Likewise.
11215 (grub-script-check): Likewise.
11216 (grub-editenv): Likewise.
11217 (grub-mkpasswd-pbkdf2): Likewise.
11218 (grub-pe2elf): Likewise.
11219 (grub-fstest): Likewise.
11220 (grub-mkfont): Likewise.
11221 (grub-mkdevicemap): Likewise.
11222 (grub-probe): Likewise.
11223 (grub-ofpath): Likewise.
11224 (grub-mklayout): Likewise.
11225 (example_unit_test): Likewise.
11226 (grub-menulst2cfg): Likewise.
11227 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
11228 * grub-core/Makefile.core.def (cryptodisk): New module.
11229 (luks): Likewise.
11230 (geli): Likewise.
11231 * grub-core/disk/AFSplitter.c: New file.
11232 * grub-core/disk/cryptodisk.c: Likewise.
11233 * grub-core/disk/geli.c: Likewise.
11234 * grub-core/disk/luks.c: Likewise.
11235 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
11236 grub_util_is_lvm.
11237 (grub_util_get_dm_abstraction): New function.
11238 (grub_util_follow_gpart_up): Likewise.
11239 (grub_util_get_geom_abstraction): Likewise.
11240 (grub_util_get_dev_abstraction): Use new functions.
11241 (grub_util_pull_device): Pull GELI and LUKS.
11242 (grub_util_get_grub_dev): Handle LUKS and GELI.
11243 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
11244 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
11245 (follow_geom_up): Removed.
11246 (grub_util_fd_seek): New function.
11247 (open_device): Use grub_util_fd_seek.
11248 (nread): Rename to ..
11249 (grub_util_fd_read): ... this. All users updated.
11250 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
11251 (grub_crypto_cbc_decrypt): Likewise.
11252 (grub_crypto_hmac_write): Likewise.
11253 (grub_crypto_hmac_buffer): Likewise.
11254 (grub_password_get): Extend to util.
11255 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
11256 New member modname.
11257 (gcry_md_spec) [GRUB_UTIL]: Likewise.
11258 * include/grub/cryptodisk.h: New file.
11259 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
11260 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
11261 LUKS and GELI.
11262 (grub_util_follow_gpart_up): New proto.
11263 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
11264 (grub_util_fd_read): Likewise.
11265 (grub_cryptodisk_cheat_mount): Likewise.
11266 (grub_util_cryptodisk_print_uuid): Likewise.
11267 (grub_util_get_fd_sectors): Likewise.
11268 * util/grub-fstest.c (mount_crypt): New var.
11269 (fstest): Mount crypto if requested.
11270 (options): New option -C.
11271 (argp_parser): Parse -C.
11272 (main): Init and fini gcry.
11273 * util/grub-install.in: Support cryptodisk install.
11274 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
11275 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
11276 cryptodisk.
11277 (prepare_grub_to_access_device): Likewise.
11278 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
11279 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
11280 (probe_cryptodisk_uuid): New function.
11281 (probe_abstraction): Likewise.
11282 (probe): Use new functions.
11283 * util/import_gcry.py: Create Makefile.utilgcry.def.
11284 Add modname member.
11285
11286 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11287
11288 Lazy device scanning.
11289
11290 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
11291 (grub-setup): Remove util/raid.c.
11292 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
11293 * grub-core/disk/lvm.c (scan_depth): New variable.
11294 (grub_lvm_iterate): Rescan if necessary.
11295 (find_lv): New function based on grub_lvm_open.
11296 (grub_lvm_open): Use find_lv. Rescan on error.
11297 (is_node_readable): New function.
11298 (is_lv_readable): Likewise.
11299 (grub_lvm_scan_device): Skip already found disks.
11300 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
11301 Stop if searched device is found and readable.
11302 * grub-core/disk/raid.c (inscnt): New variable.
11303 (scan_depth): Likewise.
11304 (scan_devices): New function based on grub_raid_register. Abort if
11305 looked for device is found.
11306 (grub_raid_iterate): Rescan if needed.
11307 (find_array): NEw function based on -grub_raid_open.
11308 (grub_raid_open): Use find_array and rescan.
11309 (insert_array): Set became_readable_at.
11310 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
11311 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
11312 New function.
11313 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
11314 (grub_util_pull_device): New function.
11315 (grub_util_get_grub_dev): Call grub_util_pull_device.
11316 * util/raid.c: Moved to ..
11317 * grub-core/kern/emu/raid.c: ... here.
11318 (grub_util_raid_getmembers): New parameter "bootable".
11319 All users updated. Support 1.x.
11320 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
11321 All users updated.
11322 * include/grub/disk.h (grub_disk_pull_t): New enum.
11323 (grub_disk_dev): Change iterate prototype.
11324 All users updated.
11325 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
11326 New proto.
11327 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
11328 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
11329 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
11330 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
11331 All users updated.
11332 * include/grub/util/raid.h: Removed.
11333
11334 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11335
11336 * po/POTFILES.in: Regenerate.
11337
11338 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11339
11340 Unify sparc init with other ieee1275.
11341
11342 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
11343 instead of kern/sparc64/ieee1275/init.c.
11344 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
11345 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
11346 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
11347 grub/machine/kernel.h.
11348 (grub_ieee1275_original_stack) [__sparc__]: New variable.
11349 (grub_claim_heap) [__sparc__]: Use sparc version.
11350 (grub_machine_init): Moved args parsing to
11351 (grub_parse_cmdline): ...this.
11352 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
11353 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
11354 New definition.
11355 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
11356
11357 Move BOOTP to separate file.
11358
11359 * grub-core/Makefile.core.def (net): Add net/bootp.c.
11360 * grub-core/net/net.c: Move all BOOTP functions to
11361 * grub-core/net/bootp.c: ... here.
11362
11363 Use frame interface on PXE.
11364
11365 * grub-core/Makefile.core.def (pxecmd): Removed.
11366 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
11367 * grub-core/commands/i386/pc/pxecmd.c: Removed.
11368 * grub-core/i386/pc/pxe.c: Moved from here ...
11369 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
11370 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
11371 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
11372
11373 EFI network support.
11374
11375 * grub-core/Makefile.core.def (efinet): New module.
11376 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
11377 here...
11378 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
11379 All users updated.
11380 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
11381 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
11382 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
11383 * grub-core/net/drivers/efi/efinet.c: New file.
11384 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
11385 (grub_efi_net_config): New extern var.
11386
11387 Various cleanups and bugfixes.
11388
11389 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
11390 error.
11391 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
11392 disk declared as partition.
11393 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
11394 leak on failure.
11395 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
11396 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
11397 (grub_debug_zalloc): Likewise.
11398 (grub_debug_realloc): Likewise.
11399 (grub_debug_memalign): Likewise.
11400 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
11401 Check that target is IPv4.
11402 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
11403 local-mac-address as fallback.
11404 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
11405 memory leak.
11406 * grub-core/net/ip.c (ipchksum): Rename to ...
11407 (grub_net_ip_chksum): ... this. All users updated.
11408 (grub_net_recv_ip_packets): Special handling for DHCP.
11409 * util/grub-mkimage.c (generate_image): Zero-out aout header.
11410
11411 Unify prefix handling
11412
11413 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
11414 (grub_machine_get_bootlocation): ... this.
11415 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
11416 (grub_machine_get_bootlocation): ... this.
11417 (grub_prefix): New variable.
11418 (prefix): Removed.
11419 (root_dev): New variable.
11420 (dir): Likewise.
11421 (main): Use new variables.
11422 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
11423 Revamped into ...
11424 (grub_machine_get_bootlocation): ... this.
11425 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
11426 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
11427 (grub_machine_get_bootlocation): ... this.
11428 (grub_machine_set_prefix): Removed.
11429 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
11430 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
11431 Revamped into ...
11432 (grub_machine_get_bootlocation): ... this.
11433 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
11434 (grub_set_prefix_and_root): ... this. All users updated.
11435 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
11436 Revamped into ...
11437 (grub_machine_get_bootlocation): ... this.
11438 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
11439 (grub_machine_get_bootlocation): New proto.
11440 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
11441
11442 Less intrusive and more reliable seek on network implementation.
11443
11444 * grub-core/kern/file.c (grub_file_net_seek): Removed.
11445 (grub_file_seek): Don't call grub_file_net_seek.
11446 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
11447 (grub_net_fs_read_real): .. this.
11448 (grub_net_seek_real): Use net->offset.
11449 (grub_net_fs_read): Seek if necessary.
11450
11451 Unify IEEE1275 netwotk config with the other platforms.
11452
11453 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
11454 New variable.
11455 (grub_machine_get_bootlocation): Support network.
11456 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
11457 Support type and device parsing.
11458 (grub_ieee1275_get_device_type): New function.
11459 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
11460 into ...
11461 (grub_ieee1275_net_config_real): ... this.
11462 (grub_ofnet_probecards): Removed.
11463 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
11464 * include/grub/ieee1275/ofnet.h: Removed.
11465 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
11466 extern var.
11467 (grub_ieee1275_get_device_type): New function.
11468
11469 Unify network device closing across platforms and make more robust.
11470
11471 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
11472 grub_grubnet_fini.
11473 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
11474 already.
11475 * grub-core/net/net.c (grub_net_network_level_interface_register):
11476 Update num_ifaces.
11477 (grub_net_card_unregister): Close all interfaces.
11478 (receive_packets): Don't poll if no iterfaces are registered.
11479 Open if necessary.
11480 (grub_net_fini_hw): New function.
11481 (grub_net_restore_hw): Likewise.
11482 (fini_hnd): New variable.
11483 (GRUB_MOD_INIT): Register preboot hook.
11484 (GRUB_MOD_FINI): Run and unregister preboot hook.
11485
11486 Poll network cards when idle.
11487
11488 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
11489 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
11490 * grub-core/net/net.c (receive_packets): Save last poll time.
11491 (grub_net_poll_cards_idle_real): New function.
11492 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
11493 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
11494 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
11495
11496 Rename ofnet interfaces.
11497
11498 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
11499 (grub_ofnet_findcards): Use ofnet_%s names.
11500
11501 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
11502
11503 Cleanup socket opening.
11504
11505 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
11506 (grub_net_fs_close): Likewise.
11507 (grub_net_fs_read_real): Use eof member.
11508 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
11509 (+grub_net_udp_close): New inline function.
11510
11511 * include/grub/net/tftp.h: Moved to the top of ...
11512 * grub-core/net/tftp.c: ... here.
11513 * include/grub/net/ip.h: Moved mostly to the top of ...
11514 * grub-core/net/ip.c: ... here.
11515 * include/grub/net/ethernet.h: Moved mostly to the top of ...
11516 * grub-core/net/ethernet.c: ... here.
11517
11518 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
11519
11520 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
11521 FS name.
11522
11523 * include/grub/net/ip.h (ipv4_ini): Removed.
11524 (ipv4_fini): Likewise.
11525
11526 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
11527 (grub_net_send_ip_packets): Likewise.
11528
11529 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11530
11531 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
11532 grub_read_cmos prototype.
11533
11534 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11535
11536 VGA text support in qemu-mips
11537
11538 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
11539 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
11540 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
11541 text.
11542 * grub-core/kern/i386/qemu/init.c: Renamed to ...
11543 * grub-core/kern/vga_init.c: ... this.
11544 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
11545 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
11546 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
11547 Adjust.
11548 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
11549 GRUB_MACHINE_PCI_IO_BASE.
11550
11551 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11552
11553 MIPS qemu flash support.
11554
11555 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
11556 magic.
11557 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
11558 (grub_machine_init): Probe memory if its size isn't known.
11559 * util/grub-mkimage.c (image_targets): Add flash targets.
11560 (generate_image): Handle flash targets.
11561
11562 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11563
11564 MIPS qemu at_keyboard support.
11565
11566 * gentpl.py (videoinkernel): Add qemu-mips.
11567 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
11568 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
11569 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
11570 modules.
11571 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
11572 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
11573 * grub-core/term/serial.c (grub_serial_register)
11574 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
11575
11576 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11577
11578 CMOS support on sparc.
11579
11580 * gentpl.py (cmos): Add powerpc and sparc.
11581 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
11582 powerpc and sparc.
11583 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
11584 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
11585 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
11586 grub_set_datetime_cmos.
11587 * grub-core/lib/ieee1275/cmos.c: New file.
11588 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
11589 (find_rtc): Set no_ieee1275_rtc on error.
11590 (grub_get_datetime): Call grub_get_datetime_cmos on error.
11591 (grub_set_datetime): Call grub_set_datetime_cmos on error.
11592 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
11593 fail. Move value to argument. All users updated
11594 (grub_cmos_write): Likewise.
11595 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
11596 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
11597 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
11598 grub_get_datetime_cmos and grub_set_datetime_cmos.
11599
11600 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
11601
11602 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
11603 sourcing grub-mkconfig_lib.
11604 * util/update-grub_lib.in: Likewise.
11605 * util/grub.d/00_header.in: Likewise.
11606 * util/grub.d/10_hurd.in: Likewise.
11607 * util/grub.d/10_kfreebsd.in: Likewise.
11608 * util/grub.d/10_linux.in: Likewise.
11609 * util/grub.d/10_netbsd.in: Likewise.
11610 * util/grub.d/10_windows.in: Likewise.
11611 * util/grub.d/20_linux_xen.in: Likewise.
11612 * util/grub.d/30_os-prober.in: Likewise.
11613
11614 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
11615
11616 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
11617 default_bg_color rather than black.
11618 (grub_gfxterm_fullscreen): Likewise.
11619 (grub_gfxterm_background_color_cmd): Save new background color in
11620 default_bg_color.
11621
11622 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11623
11624 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
11625
11626 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11627
11628 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
11629 mismerge.
11630
11631 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11632
11633 Chainloading on coreboot support.
11634
11635 * grub-core/Makefile.core.def (chain): Add coreboot.
11636 * grub-core/loader/i386/coreboot/chainloader.c: New file.
11637
11638 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11639
11640 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
11641 if it happens.
11642
11643 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11644
11645 Implement time command.
11646
11647 * grub-core/Makefile.core.def (time): New module.
11648 * grub-core/commands/time.c: New file.
11649 * grub-core/script/parser.y: Remove "time" keyword.
11650 * grub-core/script/yylex.l: Likewise.
11651
11652 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11653
11654 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
11655
11656 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11657
11658 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
11659 when handling leftovers.
11660
11661 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11662
11663 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
11664 so that help2man doesn't fail.
11665
11666 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11667
11668 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
11669 type in pointers on sparc64.
11670 (get_card_packet): Likewise.
11671
11672 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
11673
11674 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
11675 with `*'.
11676 (grub_cmd_videoinfo): Fetch current video mode.
11677
11678 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11679
11680 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
11681 because of underlying system restrictions.
11682
11683 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11684
11685 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
11686 necessary.
11687
11688 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11689
11690 Coreboot video support.
11691
11692 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
11693 (vbe): Likewise.
11694 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
11695 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
11696 here ...
11697 * grub-core/kern/i386/int.S: ... here.
11698 * grub-core/video/i386/pc/vbe.c: Updated includes.
11699 * grub-core/video/i386/pc/vga.c: Likewise.
11700 * include/grub/i386/coreboot/memory.h
11701 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
11702 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
11703 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
11704 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
11705 Disable interrupts.
11706 * include/grub/i386/pc/vga.h: Removed. All users updated.
11707
11708 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11709
11710 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
11711 definitions for dprintf.
11712 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
11713
11714 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11715
11716 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
11717 prototype.
11718 (get_card_packet): Likewise.
11719
11720 2011-06-26 Yves Blusseau <blusseau@zetam.org>
11721
11722 Display the path of the file when file is not found
11723
11724 * grub-core/fs/fat.c: Display the filename when file is not found.
11725 * grub-core/fs/fshelp.c: Likewise.
11726 * grub-core/fs/hfs.c: Likewise.
11727 * grub-core/fs/jfs.c: Likewise.
11728 * grub-core/fs/minix.c: Likewise.
11729 * grub-core/fs/ufs.c: Likewise.
11730 * grub-core/fs/btrfs.c: Likewise.
11731 * grub-core/commands/i386/pc/play.c: Likewise.
11732
11733 2011-06-26 Szymon Janc <szymon@janc.net.pl>
11734
11735 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
11736 pointer checks before calling grub_free().
11737 * grub-core/commands/wildcard.c (match_devices): Likewise.
11738 * grub-core/commands/wildcard.c (match_files): Likewise.
11739 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
11740 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
11741 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
11742 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
11743 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
11744 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
11745 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
11746 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
11747 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
11748
11749 2011-06-25 Patrick <p55@mailinator.com>
11750
11751 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
11752
11753 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
11754
11755 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
11756 (grub_pxe_send): Likewise.
11757 (GRUB_MOD_INIT): Fix types.
11758
11759 2011-06-24 Szymon Janc <szymon@janc.net.pl>
11760
11761 * grub-core/io/xzio.c: Fix code style issues
11762
11763 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11764 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
11765
11766 Network infrastructure.
11767 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
11768
11769 * include/grub/net/arp.h: New file.
11770 * include/grub/net/device.h: Likewise.
11771 * include/grub/net/ethernet.h: Likewise.
11772 * include/grub/net/ip.h: Likewise.
11773 * include/grub/net/netbuff.h: Likewise.
11774 * include/grub/net/tftp.h: Likewise.
11775 * include/grub/net/udp.h: Likewise.
11776 * include/grub/ieee1275/ofnet.h: Likewise.
11777 * include/grub/emu/export.h: Likewise.
11778 * include/grub/net.h: Likewise.
11779 * grub-core/net/arp.c: Likewise.
11780 * grub-core/net/ethernet.c: Likewise.
11781 * grub-core/net/ip.c: Likewise.
11782 * grub-core/net/udp.c: Likewise.
11783 * grub-core/net/tftp.c: Likewise.
11784 * grub-core/net/netbuff.c: Likewise.
11785 * grub-core/net/net.c: Likewise.
11786 * grub-core/net/drivers/emu/emunet.c: Likewise.
11787 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
11788 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
11789 export.h.
11790 * grub-core/Makefile.core.def (net): New module.
11791 (tftp): Likewise.
11792 (ofnet): Likewise.
11793 (emunet): Likewise.
11794 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
11795 network protocols.
11796 * grub-core/kern/device.c (grub_net_open) : New variable.
11797 (grub_device_open): Handle network device.
11798 (grub_device_close): Likewise.
11799 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
11800 (grub_grubnet_fini): Likewise.
11801 (grub_file_seek): Seek in network device.
11802 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
11803 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
11804 network root.
11805 (grub_machine_fini): Call grub_grubnet_fini.
11806 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
11807 network.
11808 (grub_ieee1275_get_aliasdevname): New function.
11809 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
11810 Add unofficial Solaris network info.
11811 (grub_multiboot_make_mbi): Likewise.
11812 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
11813 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
11814 * include/grub/device.h (grub_fs): Removed.
11815 * include/grub/err.h (grub_err_t): Add network-related values.
11816 * include/grub/i386/pc/pxe.h: Removed bootp parts.
11817 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
11818 (grub_ieee1275_get_aliasdevname): New proto.
11819 * include/grub/net.h: Rewritten.
11820
11821 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11822
11823 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
11824 names.
11825
11826 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11827
11828 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
11829 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
11830 it truncates the output.
11831 Reported by: Ximin Luo.
11832
11833 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11834
11835 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
11836
11837 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11838
11839 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
11840 partmap before abstraction.
11841
11842 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
11843
11844 * util/grub-mkconfig_lib.in: Add missing quotes.
11845
11846 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11847
11848 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
11849 old method if mountinfo would return /dev/root and /dev/root doesn't
11850 exist.
11851
11852 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11853
11854 ZFS zlib support
11855
11856 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
11857 (decomp_table): Add zlib entries.
11858 (zio_read): USe 8 bits for compression function rather than 3.
11859 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
11860
11861 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11862
11863 * grub-core/disk/ahci.c: Add missing license statements.
11864 * grub-core/fs/romfs.c: Likewise.
11865 * grub-core/lib/ia64/setjmp.S: Likewise.
11866 * grub-core/loader/i386/pc/freedos.c: Likewise.
11867 * grub-core/loader/ia64/efi/linux.c: Likewise.
11868 * grub-core/video/colors.c: Likewise.
11869 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
11870
11871 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11872
11873 AHCI support.
11874
11875 * grub-core/Makefile.core.def (ata_pthru): Removed.
11876 (ahci): New module.
11877 (pata): Likewise.
11878 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
11879 on unload.
11880 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
11881 readwrite.
11882 (grub_hdparm_do_check_powermode_cmd): Likewise.
11883 (grub_hdparm_do_smart_cmd): Likewise.
11884 (grub_hdparm_set_val_cmd): Likewise.
11885 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
11886 * grub-core/disk/ahci.c: New file.
11887 * grub-core/disk/ata.c: Factor out the low-level part into ...
11888 * grub-core/disk/pata.c: ... here.
11889 * grub-core/disk/ata_pthru.c: Contents moved to ...
11890 * grub-core/disk/pata.c: ... here.
11891 * grub-core/disk/scsi.c (grub_scsi_names): New array.
11892 (grub_scsi_iterate): Use grub_scsi_names.
11893 (grub_scsi_open): Likewise.
11894 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
11895 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
11896 (grub_ata_regs_t): New struct.
11897 (grub_disk_ata_pass_through_parms): Likewise.
11898 (grub_ata_device): Renamed to ...
11899 (grub_ata): ... this.
11900 (grub_ata_dev): New struct.
11901 Removed all low-level inline functions.
11902 * include/grub/scsi.h: Add PATA and AHCI subsystems.
11903 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
11904 iterate hooks and open. All users updated.
11905 * util/grub-install.in: Handle AHCI disk module.
11906
11907 2011-06-23 Szymon Janc <szymon@janc.net.pl>
11908
11909 Add support for DRI and RSTn markers in JPEG files.
11910
11911 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
11912 (JPEG_MARKER_RST0): Likewise.
11913 (JPEG_MARKER_RST1): Likewise.
11914 (JPEG_MARKER_RST2): Likewise.
11915 (JPEG_MARKER_RST3): Likewise.
11916 (JPEG_MARKER_RST4): Likewise.
11917 (JPEG_MARKER_RST5): Likewise.
11918 (JPEG_MARKER_RST6): Likewise.
11919 (JPEG_MARKER_RST7): Likewise.
11920 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
11921 (grub_jpeg_decode_dri): New function.
11922 (grub_jpeg_decode_sos): Move image data related part into
11923 grub_jpeg_decode_data function.
11924 (grub_jpeg_decode_data): New function.
11925 (grub_jpeg_reset): New function.
11926 (grub_jpeg_decode_jpeg): Handle new markers.
11927
11928 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11929
11930 * util/ieee1275/ofpath.c (check_sas): Close fd.
11931 (main): Free of_path.
11932 Reported by: David Volgyes <dvolgyes>.
11933
11934 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11935
11936 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
11937 Reported by: David Volgyes <dvolgyes>.
11938
11939 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11940
11941 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
11942 file after stat.
11943 Reported by: David Volgyes <dvolgyes>.
11944
11945 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11946
11947 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
11948
11949 Reported by: David Volgyes <dvolgyes>.
11950
11951 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11952
11953 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
11954 Prevent memory leak.
11955
11956 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11957
11958 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
11959 (main): Close file.
11960 Reported by: David Volgyes <dvolgyes>.
11961
11962 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11963
11964 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
11965 to continue if allocation is failed.
11966
11967 Reported by: David Volgyes <dvolgyes>.
11968
11969 2011-06-23 David Volgyes <dvolgyes>
11970
11971 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
11972 dereference.
11973
11974 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11975
11976 Fix spurious warning.
11977
11978 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
11979 (acorn_partition_map_find): Use .bin member.
11980
11981 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11982
11983 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
11984 /dev/root as a valid device.
11985
11986 2011-06-23 Jim Meyering <meyering@redhat.com>
11987
11988 Avoid NULL deref in grub_device_open.
11989
11990 * grub-core/kern/device.c (grub_device_open): Don't dereference
11991 a NULL pointer upon failed grub_env_get.
11992
11993 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11994
11995 Support non-512B sectors and agglomerate reads.
11996
11997 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
11998 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
11999 (disk_io_guid): Removed.
12000 (make_devices): Locate solely by BlockIO.
12001 (grub_efidisk_open): Fill log_sector_size and total_sectors.
12002 (grub_efidisk_read): Use read_blocks.
12003 (grub_efidisk_write): Use write_blocks.
12004 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
12005 log_sector_size.
12006 (get_safe_sectors): Handle non-512B sectors.
12007 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
12008 sectors.
12009 (grub_biosdisk_write): Handle non-512B sectors.
12010 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
12011 (grub_scsi_read): Remove special non-512B block handling (now handled
12012 one level up).
12013 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
12014 and do sanity checks.
12015 (grub_disk_adjust_range): Handle non-512B sectors.
12016 (transform_sector): New function.
12017 (grub_disk_read_small): Likewise.
12018 (grub_disk_read): Rewritten.
12019 (grub_disk_write): Handle non-512B sectors.
12020 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
12021 log_sector_size.
12022 (open_device): Use log_sector_size.
12023 (grub_util_biosdisk_read): Likewise.
12024 (grub_util_biosdisk_write): Likewise.
12025 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
12026 non-512B sectors.
12027 (pc_partition_map_embed): Likewise.
12028 * include/grub/disk.h (grub_disk): New field log_sector_size.
12029 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
12030 (GRUB_DISK_CACHE_BITS): Increased to 6.
12031 * util/grub-fstest.c (fstest): New command testload.
12032 (argp_parser): Likewise.
12033
12034 2011-06-16 Robert Millan <rmh@gnu.org>
12035
12036 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
12037 `ata' driver on kernel of FreeBSD 9.
12038
12039 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
12040 (get_ataraid_disk_name): New functions.
12041 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
12042 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
12043 get_ataraid_disk_name() and get_ada_disk_name().
12044
12045 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
12046
12047 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
12048 input format.
12049
12050 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
12051
12052 * docs/grub.texi (Obtaining and Building GRUB): Substitute
12053 `ftp.gnu.org' for `alpha.gnu.org'.
12054
12055 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
12056
12057 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
12058 partitions under /dev/disk/by-id/.
12059
12060 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
12061
12062 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
12063 after ten consecutive open failures. Scanning all the way up to
12064 10000 is excessive and can cause serious performance problems in
12065 some configurations.
12066 Fixes Ubuntu bug #787461.
12067
12068 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12069
12070 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
12071 opening new one.
12072
12073 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
12074 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12075
12076 Don't stat devices unless we have to.
12077
12078 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
12079 dir == /dev/mapper.
12080 (grub_guess_root_device): Use already known os_dev if possible.
12081 * grub-core/kern/emu/hostdisk.c
12082 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
12083 if device is known to be a dm one.
12084
12085 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
12086
12087 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
12088 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
12089 Reported by: Pawel Tecza.
12090
12091 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
12092
12093 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
12094 (lsefisystab): Likewise.
12095 (lssal): Likewise.
12096 (lsefimmap): Likewise.
12097 (hdparm): Enable on qemu-mips.
12098 (setjmp): Add ia64 nodist.
12099 (serial): Simplify tags.
12100
12101 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12102
12103 * Makefile.util.def (grub-ofpathname): Install manual page.
12104
12105 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12106
12107 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
12108
12109 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12110
12111 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
12112
12113 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12114
12115 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
12116 into dprintf.
12117
12118 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12119
12120 Use full 64-bit division.
12121
12122 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
12123 (grub_divmod64): ... this.
12124 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
12125 version.
12126
12127 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12128
12129 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
12130 `source'.
12131
12132 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12133
12134 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
12135 to avoid accidents when debugging with 'sh -x'.
12136 * grub-core/gensyminfo.sh.in: Likewise.
12137 * tests/example_scripted_test.in: Likewise.
12138 * tests/grub_cmd_regexp.in: Likewise.
12139 * tests/grub_script_blanklines.in: Likewise.
12140 * tests/grub_script_dollar.in: Likewise.
12141 * tests/grub_script_expansion.in: Likewise.
12142 * tests/grub_script_final_semicolon.in: Likewise.
12143 * tests/partmap_test.in: Likewise.
12144 * tests/util/grub-shell-tester.in: Likewise.
12145 * tests/util/grub-shell.in: Likewise.
12146
12147 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12148
12149 Move gfxmenu color handling to video, so that gfxterm can use it
12150 too.
12151
12152 * grub-core/gfxmenu/named_colors.c: Move to ...
12153 * grub-core/video/colors.c: ... here. Rename
12154 grub_gui_get_named_color to grub_video_get_named_color.
12155 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
12156 * grub-core/video/colors.c (my_isxdigit): ... here.
12157 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
12158 Move to ...
12159 * grub-core/video/colors.c (parse_hex_color_component): ... here.
12160 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
12161 to ...
12162 * grub-core/video/colors.c (grub_video_parse_color): ... here.
12163
12164 * include/grub/gui.h (grub_gui_color_t): Move to ...
12165 * include/grub/video.h (grub_video_rgba_color_t): ... here.
12166 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
12167 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
12168 * include/grub/gui.h (grub_gui_map_color): Move to ...
12169 * include/grub/video.h (grub_video_map_rgba_color): ... here.
12170 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
12171 to ...
12172 * include/grub/video.h (grub_video_get_named_color): ... here.
12173 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
12174 * include/grub/video.h (grub_video_parse_color): ... here.
12175
12176 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
12177 video/colors.c.
12178 (gfxmenu): Remove gfxmenu/named_colors.c.
12179 (video) [videomodules]: Add video/colors.c.
12180
12181 Add a background_color command.
12182
12183 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
12184 function.
12185 (GRUB_MOD_INIT): Register background_color command.
12186 (GRUB_MOD_FINI): Unregister background_color command.
12187 (redraw_screen_rect): Allow blend/replace of text layer to be
12188 controlled independently from whether there is a background bitmap.
12189 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
12190 changing bitmap.
12191
12192 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12193
12194 Patch BPB in ntldr and chainloader --bpb.
12195
12196 * grub-core/fs/fat.c: Include grub/fat.h.
12197 (grub_fat_bpb): Moved to ...
12198 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
12199 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
12200 grub/ntfs.h.
12201 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
12202 Moved from here...
12203 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
12204 here.
12205 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
12206 New function.
12207 (grub_chainloader_cmd): Patch BPB if --bpb is given.
12208 (GRUB_MOD_INIT): Show --bpb.
12209 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
12210 * grub-core/normal/main.c (features): New variable.
12211 (GRUB_MOD_INIT): Set feature_* variables.
12212 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
12213 proto.
12214 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
12215
12216 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12217
12218 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
12219 for cleanness.
12220
12221 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12222
12223 FreeDOS direct loading support.
12224
12225 * docs/grub.texi (Supported OS): Add FreeDOS.
12226 * grub-core/Makefile.core.def (freedos): New module.
12227 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
12228 variable.
12229 (grub_relocator16_boot): Handle %ebx.
12230 * grub-core/lib/i386/relocator16.S: Likewise.
12231 * grub-core/loader/i386/pc/freedos.c: New file.
12232
12233 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12234
12235 Long Linux command line support.
12236
12237 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12238 (maximal_cmdline_size): New variable.
12239 (allocate_pages): Use maximal_cmdline_size.
12240 (grub_cmd_linux): Set and use maximal_cmdline_size.
12241 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12242 (allocate_pages): Use maximal_cmdline_size.
12243 (grub_cmd_linux): Set and use maximal_cmdline_size.
12244 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
12245 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
12246 and cmdline_size.
12247
12248 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12249 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12250
12251 Improve devmapper support
12252
12253 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
12254 (grub_util_is_lvm): New function.
12255 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
12256 than lvm if not dmraid.
12257 Handle mapped md nodes.
12258 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
12259 (grub_util_device_is_mapped): ... this. Make always available. All users
12260 updated.
12261 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
12262 (convert_system_partition_to_system_disk): Handle lvm, mpath and
12263 dmraid nodes.
12264 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
12265
12266 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12267
12268 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
12269
12270 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
12271 * grub-core/modinfo.sh.in: New file.
12272 * grub-core/Makefile.core.def (modinfo.sh): New script.
12273 * util/grub-mknetdir.in: Use modinfo.sh.
12274 * util/grub-mkrescue.in: Likewise.
12275
12276 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12277
12278 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
12279 Fix potential usage of Elf32 instead of Elf64 when compiling on
12280 32-bit architecture. Add endianness macros while on it.
12281
12282 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12283
12284 Use mipsel- rather than mips- in directories involving mipsel ports to
12285 allow both endiannesses coexist.
12286
12287 * configure.ac: proparate target_cpu=mipsel rather than resetting to
12288 mips. All conditions adjusted.
12289 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
12290 variable.
12291 * util/grub-install.in: Adjust conditions to take renaming into account.
12292 * util/grub-mkimage.c (image_targets): Likewise. New target
12293 mips-qemu_mips-elf for bigendian mips.
12294
12295 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12296
12297 Avoid unnecessary copying on MIPS.
12298
12299 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
12300 early if src == dest.
12301 * util/grub-mkimage.c (generate_image): Arange for src == dest if
12302 compression is none.
12303
12304 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12305
12306 Reduce memory footprint on SGI by putting modules before the kernel
12307 as opposed to after.
12308
12309 * grub-core/Makefile.core.def (kernel): Increase linking address.
12310 (none_decompress): Likewise.
12311 (xz_decompress): Likewise.
12312 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
12313 address.
12314 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
12315 layout change.
12316 (grub_arch_modules_addr): New function.
12317 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
12318 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
12319 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
12320 here.
12321 * grub-core/kern/mips/startup.S (total_size): Rename to ...
12322 (grub_total_modules_size): ... this. Make global.
12323 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
12324 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
12325 New definition.
12326 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
12327 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
12328 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
12329 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
12330 * util/grub-mkimage.c (image_target_desc): New flag
12331 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
12332 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
12333 (generate_image): Handle images with modules before kernel.
12334
12335 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12336
12337 Prevent potential loss of memory map by overwrite on qemu-mips.
12338
12339 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12340 Save ram size in $s4.
12341 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
12342 All users changed to grub_arch_memsize.
12343 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
12344 Loongson.
12345 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
12346 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
12347 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
12348 external variable.
12349
12350 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12351
12352 * .bzrignore: Remove grub-dumpbios.
12353
12354 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12355
12356 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
12357 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
12358 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
12359 existing options which append).
12360 * docs/grub.texi (Simple configuration): Document new options.
12361 Reported by: Ian Jackson. Fixes Debian bug #617538.
12362
12363 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12364
12365 * util/grub-fstest.c (cmd_cat): New function.
12366 (fstest): Handle CMD_CAT.
12367 (options): Add cat.
12368 (argp_parser): Handle cat.
12369
12370 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12371
12372 * Makefile.util.def (grub-bin2h): Don't install.
12373 * docs/man/grub-bin2h.h2m: Remove.
12374
12375 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12376
12377 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
12378 place.
12379
12380 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12381
12382 Reenable qemu-mips port.
12383
12384 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
12385 Fix small arc bug while on it.
12386 * gentpl.py: Handle qemu_mips.
12387 * grub-core/Makefile.am: Likewise.
12388 * grub-core/Makefile.core.def: Likewise.
12389 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
12390 inappropriate includes.
12391 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
12392 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
12393 * grub-core/kern/main.c (grub_modules_get_end)
12394 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
12395 * grub-core/kern/mips/qemu-mips: Moved to ..
12396 * grub-core/kern/mips/qemu_mips: ... this.
12397 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
12398 (grub_machine_init): Call terminfo_init and serial_init.
12399 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
12400 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12401 New variable.
12402 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
12403 parameter passing.
12404 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
12405 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
12406 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
12407 * include/grub/mips/qemu_mips/cmos.h: New file.
12408 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
12409 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
12410 Removed.
12411 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
12412 Use correct mips-style address.
12413 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
12414 (GRUB_TICKS_PER_SECOND): Removed.
12415 (grub_get_rtc): Likewise.
12416 (grub_cpu_idle): Likewise.
12417 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
12418 New definition.
12419 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
12420 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
12421 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
12422 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
12423 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
12424 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
12425 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
12426 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
12427
12428 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12429
12430 SGI ARCS port.
12431
12432 * Makefile.util.def (libgrubmods.a): Add dvh.c.
12433 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
12434 platforms.
12435 * configure.ac: New target mips-arc.
12436 * gentpl.py: Likewise.
12437 * grub-core/Makefile.am: Likewise.
12438 * grub-core/Makefile.core.def: Likewise.
12439 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
12440 (none_decompress): Likewise.
12441 (lsdev): New module.
12442 (datetime): Use lib/arc/datetime.c on ARC.
12443 (part_dvh): New module.
12444 * grub-core/commands/arc/lsdev.c: New file.
12445 * grub-core/disk/arc/arcdisk.c: Likewise.
12446 * grub-core/kern/mips/arc/init.c: Likewise.
12447 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
12448 aligned addresses.
12449 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
12450 support.
12451 (grub_arch_dl_relocate_symbols): Likewise.
12452 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
12453 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
12454 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
12455 platforms.
12456 * grub-core/lib/arc/datetime.c: New file.
12457 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
12458 pci.h on non-loongson.
12459 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
12460 (grub_linux_boot): Set unused registers to 0.
12461 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
12462 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
12463 * grub-core/mmap/mips/uppermem.c: ...here.
12464 * grub-core/partmap/dvh.c: New file.
12465 * grub-core/term/arc/console.c: Likewise.
12466 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
12467 (grub_terminfo_set_current): Add terminal "arc".
12468 (grub_terminfo_readkey): Support ARC sequences.
12469 * include/grub/arc/arc.h: New file.
12470 * include/grub/arc/console.h: Likewise.
12471 * include/grub/disk.h (grub_disk_dev_id): Add
12472 GRUB_DISK_DEVICE_ARCDISK_ID.
12473 * include/grub/mips/arc/kernel.h: New file.
12474 * include/grub/mips/arc/memory.h: Likewise.
12475 * include/grub/mips/arc/time.h: Likewise.
12476 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
12477 * include/grub/mips/kernel.h (grub_halt): ... here.
12478 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
12479 here...
12480 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
12481 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
12482 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
12483 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
12484 proto.
12485 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
12486 from here ...
12487 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
12488 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
12489 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
12490 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
12491 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
12492 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
12493 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
12494 (grub_phys_addr_t): Moved from here ...
12495 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
12496 (grub_vtop): Moved from here ...
12497 * include/grub/mips/memory.h (grub_vtop): ... here.
12498 (grub_map_memory): Moved from here ...
12499 * include/grub/mips/memory.h (grub_map_memory): ... here.
12500 (grub_unmap_memory): Moved from here ...
12501 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
12502 (grub_machine_mmap_iterate): Moved from here ...
12503 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
12504 (grub_mmap_get_lower): Moved from here ...
12505 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
12506 (grub_mmap_get_upper): Moved from here ...
12507 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
12508 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12509 here ...
12510 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12511 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
12512 here ...
12513 * include/grub/mips/time.h (grub_get_rtc): ... here.
12514 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12515 here ...
12516 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12517 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
12518 here ...
12519 * include/grub/mips/time.h (grub_cpu_idle): ... here.
12520 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
12521 definition.
12522 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
12523 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
12524 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
12525 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
12526 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12527 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12528 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
12529 (GRUB_MACHINE_LINK_ADDR): Likewise.
12530 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
12531 to 6.
12532 * util/grub-install.in: Run dvhtool on ARC.
12533 * util/grub-mkimage.c (image_targets): Add mips-arc.
12534 (generate_image): Handle ECOFF output for mips-arc.
12535
12536 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12537
12538 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
12539 blocks.
12540
12541 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12542
12543 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
12544 after enabling port.
12545
12546 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12547
12548 Skip incorrect USB devices.
12549
12550 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
12551 configcnt == 0.
12552 * include/grub/usb.h (grub_usb_err_t): New enum value
12553 GRUB_USB_ERR_BADDEVICE.
12554
12555 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12556
12557 Fuloong video init support.
12558
12559 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
12560 well.
12561 (grub_vga_read_arx): New function.
12562 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
12563 definition.
12564 (framebuffer): New members io, mmioptr and mmiobase.
12565 (read_sis_cmd): New function.
12566 (write_sis_cmd): Likewise.
12567 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
12568 rather than 640x400.
12569 * grub-core/video/sis315_init.c: New file.
12570
12571 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12572
12573 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
12574 non-loongson.
12575 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
12576 to grub_dl_register_symbol.
12577
12578 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12579
12580 Fix compilation errors.
12581
12582 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
12583 potentially unused.
12584 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
12585 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
12586 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
12587 to loongson machines.
12588
12589 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12590
12591 Several FS mtime support.
12592
12593 * grub-core/fs/affs.c (grub_affs_time): New struct.
12594 (grub_affs_file): New field mtime.
12595 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
12596 type. Removed 'size'. New field 'di'. All users updated.
12597 (grub_affs_mount): Simplify checsum checking.
12598 (grub_affs_iterate_dir): New helper grub_affs_create_node.
12599 (grub_affs_dir): Handle mtime.
12600 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
12601 (grub_cpio_dir): Likewise.
12602 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
12603 (grub_hfs_filerec): New field mtime.
12604 (grub_hfs_dir): Handle mtime.
12605 (grub_hfs_mtime): New function.
12606 (grub_hfs_fs): Register grub_hfs_mtime.
12607 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
12608 (grub_iso9660_dir): New field mtime.
12609 (grub_fshelp_node): New field dirent.
12610 (iso9660_to_unixtime): New function.
12611 (iso9660_to_unixtime2): Likewise.
12612 (grub_iso9660_read_symlink): Use node->dirent.
12613 (grub_iso9660_iterate_dir): Likewise.
12614 (grub_iso9660_dir): Set mtime.
12615 (grub_iso9660_mtime): New function.
12616 (grub_iso9660_fs): Register grub_iso9660_mtime.
12617 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
12618 (grub_jfs_inode): New fields atime, ctime and mtime.
12619 (grub_jfs_dir): Set mtime.
12620 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
12621 * grub-core/fs/ntfs.c (list_file): Set mtime.
12622 (grub_ntfs_dir): Likewise.
12623 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
12624 (grub_reiserfs_iterate_dir): Set mtime.
12625 (grub_reiserfs_dir): Likewise.
12626 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
12627 (grub_fshelp_node): Likewise.
12628 (grub_sfs_iterate_dir): Set mtime.
12629 (grub_sfs_dir): Likewise.
12630 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
12631 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
12632 (grub_xfs_inode): New fields atime, mtime, ctime.
12633 (grub_xfs_dir): Set mtime.
12634 * include/grub/datetime.h (grub_datetime2unixtime): New function.
12635 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
12636 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
12637
12638 Support UDF symlinks.
12639
12640 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
12641 (grub_ufs_read_symlink): New function. All users updated.
12642
12643 Check amiga partmap checksum.
12644
12645 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
12646 (grub_amiga_partition): Likewise.
12647 (amiga_partition_map_checksum): New function.
12648 (amiga_partition_map_iterate): Check checksum.
12649
12650 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12651
12652 ROMFS support.
12653
12654 * Makefile.util.def (libgrubmods.a): Add romfs.
12655 * grub-core/Makefile.core.def (romfs): New module.
12656 * grub-core/fs/romfs.c: New file.
12657
12658 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12659
12660 Squashfs v4 support.
12661
12662 * Makefile.util.def (libgrubmods.a): Add squash4.
12663 * grub-core/Makefile.core.def (squash4): New module.
12664 * grub-core/fs/squash4.c: New file.
12665 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
12666 disk_input_start, disk_input.
12667 (get_byte): Handle disk_input.
12668 (grub_zlib_disk_read): New function.
12669 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
12670
12671 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12672 2011-05-15 Feiran Zheng <famcool@gmail.com>
12673
12674 * Makefile.util.def (libgrubmods.a): Add minix3.
12675 * grub-core/Makefile.core.def (minix3): New module.
12676 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
12677 (GRUB_MINIX_BSIZE): Removed.
12678 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
12679 (grub_minix_ino_t): New type.
12680 (grub_minix_le_to_cpu_ino): New macro.
12681 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
12682 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
12683 (grub_minix_data): New field block_size.
12684 (grub_minix_read_file): Handle 64-bit correctly.
12685 * grub-core/fs/minix3.c: New file.
12686
12687 2011-05-15 Tristan Gingold <gingold@free.fr>
12688 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
12689 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12690
12691 IA64 support.
12692
12693 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
12694 * configure.ac: Add ia64-efi target.
12695 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
12696 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
12697 * gentpl.py: Add ia64_efi platform.
12698 Rename x86_efi to efi and Add ia64-efi. All users updated.
12699 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
12700 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
12701 Remove kern/generic/rtc_get_time_ms.c on EFI.
12702 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
12703 kern/ia64/dl_helper.c on ia64-efi.
12704 Add kern/emu/cache.c on emu.
12705 (linux): Use on loader/ia64/efi/linux.c on ia64.
12706 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
12707 whether symbol is a function.
12708 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
12709 (grub_symbol): New field 'isfunc'.
12710 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
12711 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
12712 (grub_dl_load_segments): Place all sections into the same region.
12713 [__ia64__]: Create trampolines and got.
12714 [GRUB_MACHINE_EMU]: Call mprotect.
12715 (grub_dl_resolve_symbols): Resolve symbol type as well.
12716 [__ia64__]: Create function descriptors.
12717 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
12718 (grub_rtc_get_time_ms): ... this. Expressions simplified.
12719 (grub_get_rtc): New function.
12720 * grub-core/kern/emu/cache.c [__ia64__]: New file.
12721 * grub-core/kern/emu/cache.S: Renamed to ...
12722 * grub-core/kern/emu/cache_s.S: ... this.
12723 [__ia64__]: Add a nop.
12724 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
12725 [__ia64__]: New function.
12726 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
12727 * grub-core/kern/ia64/dl.c: New file.
12728 * grub-core/kern/ia64/dl_helper.c: Likewise.
12729 * grub-core/kern/ia64/efi/init.c: New file.
12730 * grub-core/kern/ia64/efi/startup.S: Likewise.
12731 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
12732 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
12733 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
12734 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
12735 * grub-core/loader/ia64/efi/linux.c: New file.
12736 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
12737 (GRUB_MOD_DEP): Likewise.
12738 (grub_dl) [__ia64__]: New fields got and tramp.
12739 (grub_dl): New field 'base'.
12740 (grub_dl_register_symbol): New argument isfunc. All users updated.
12741 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
12742 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
12743 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
12744 (grub_ia64_dl_get_tramp_got_size): New proto.
12745 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
12746 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
12747 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
12748 * include/grub/efi/api.h: Skip call wrappers on ia64.
12749 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
12750 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
12751 * include/grub/elf.h (ELF_ST_INFO): New definition.
12752 * include/grub/ia64/efi/kernel.h: New file.
12753 * include/grub/ia64/efi/memory.h: Likewise.
12754 * include/grub/ia64/efi/time.h: Likewise.
12755 * include/grub/ia64/kernel.h: Likewise.
12756 * include/grub/ia64/setjmp.h: Likewise (from glibc).
12757 * include/grub/ia64/time.h: New file.
12758 * include/grub/ia64/types.h: Likewise.
12759 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
12760 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
12761 New protos.
12762 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
12763 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12764 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
12765 * util/grub-mkimage.c (image_target_desc): New field pe_target.
12766 All users updated.
12767 (EFI64_HEADER_SIZE): New definition. All users updated.
12768 (image_targets): Add ia64-efi.
12769 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
12770 jumpers_addr. All users updated.
12771 Create function descriptors.
12772 (count_funcs): New function.
12773 (unaligned_uint32): New struct.
12774 (MASK20): New definition.
12775 (MASK19): Likewise.
12776 (MASKF21): Likewise.
12777 (add_value_to_slot_20b): New function.
12778 (add_value_to_slot_21_real): Likewise.
12779 (add_value_to_slot_21): Likewise.
12780 (ia64_kernel_trampoline): New struct.
12781 (nopm): New variable.
12782 (jump): Likewise.
12783 (make_trampoline): New function.
12784 (relocate_addresses): Handle ia64.
12785 (make_reloc_section): Likewise.
12786 (load_image): Likewise.
12787
12788 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12789
12790 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
12791 warning. Move variables before code while on it.
12792
12793 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12794
12795 Fuloong support.
12796
12797 * configure.ac: Rename yeeloong platform to loongson. All users updated.
12798 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
12799 * grub-core/boot/mips/loongson/fuloong.S: New file.
12800 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
12801 Explicitly init CS5536.
12802 [FULOONG]: Don't use serial until CS5536 is available.
12803 Set GPIO based on dumps.
12804 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
12805 [FULOONG]: Handle GPIO and memory controller differences.
12806 Parse machine type in $a2.
12807 * grub-core/boot/mips/startup_raw.S: Determine and save the
12808 architecture.
12809 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
12810 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
12811 init on architecture type.
12812 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12813 SIS315E. Don't init at_keyboard on fuloong.
12814 (grub_halt): Support Fuloong.
12815 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
12816 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
12817 (loongson_machtypes): New array.
12818 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
12819 type.
12820 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
12821 config. All users updated. Handle CS5536 serial.
12822 * grub-core/term/serial.c (grub_serial_register): Conditionalise
12823 default port on machine type. Register serial as inactive.
12824 * grub-core/video/sis315pro.c: New file.
12825 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
12826 definition.
12827 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
12828 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
12829 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
12830 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
12831 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
12832 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
12833 to ...
12834 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
12835 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
12836 definition.
12837 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
12838 (grub_arch_machine): New extern var.
12839 * include/grub/mips/loongson/serial.h
12840 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
12841 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
12842 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
12843 (GRUB_MACHINE_SERIAL_PORT0): ... this.
12844 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
12845 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
12846 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
12847 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
12848 * include/grub/term.h (grub_term_register_input_inactive): New inline
12849 function.
12850 (grub_term_register_output_inactive): Likewise.
12851 * include/grub/video.h (grub_video_driver_id): New value
12852 GRUB_VIDEO_DRIVER_SIS315PRO.
12853 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
12854 New field "names". All users updated.
12855 New field value IMAGE_FULOONG_FLASH.
12856 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
12857
12858 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
12859
12860 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
12861 and add some clarification.
12862
12863 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12864
12865 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
12866 platforms if kernel is compressed.
12867
12868 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12869
12870 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
12871 unused modules since currently referrence counter isn't reliable and
12872 there isn't much memory to recover there anyway.
12873
12874 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12875
12876 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
12877 rather than resetting it to allow modules to reference themselves
12878 in init.
12879
12880 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12881
12882 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
12883 counter on dependencies since grub_dl_unref already handles this.
12884
12885 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12886
12887 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
12888 on error if not already done.
12889
12890 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12891
12892 Fix few potential memory misusage.
12893
12894 * grub-core/font/font.c (load_font_index): Don't free char_index to
12895 avoid double free.
12896 (grub_font_load): Zero-fill font at alloc for safety.
12897 Close file on error.
12898 (free_font): Free bmp_idx.
12899
12900 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12901
12902 * docs/grub.texi (Installation): Fix several outdated claims.
12903
12904 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12905
12906 Handle module_license on windows.
12907
12908 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
12909 sections shifted.
12910 (insert_string): Make argument const char * instead of char *.
12911 (write_section_data): Handle long section names.
12912 Handle module_license.
12913
12914 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12915
12916 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
12917 handle class-free menuentries.
12918 (grub_normal_add_menu_entry): Add a check to be sure.
12919
12920 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12921
12922 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
12923 PgUp and PgDown.
12924
12925 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12926
12927 * configure.ac: Bump version to 1.99.
12928
12929 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12930
12931 Give ATA device a bit more time on first try in order to allow disks
12932 to spin up.
12933
12934 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
12935 if dev->present is 1. Reset dev->present on failure.
12936 (grub_ata_device_initialize): Set dev->present to 1.
12937 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
12938 (grub_ata_device): New member 'present'.
12939
12940 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12941
12942 * util/grub-mkimage.c (generate_image): Update hash.
12943
12944 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12945
12946 Flush caches on DMA memory.
12947
12948 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
12949 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
12950 (grub_dma_free): Likewise.
12951 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
12952
12953 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12954
12955 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
12956 to avoid asm treating ld and sd as macros.
12957
12958 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12959
12960 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
12961 decompressor.
12962
12963 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12964
12965 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
12966 grub_decompress_core since later would fail if grub_decompress_core
12967 is too far.
12968
12969 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12970
12971 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
12972 R_MIPS_JALR since it's used by newer compiler.
12973
12974 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
12975
12976 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
12977
12978 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12979
12980 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
12981 file_path to 0 for surety.
12982 (grub_chainloader_boot): Set exit_data to NULL.
12983 Unset the loader once done.
12984 (grub_cmd_chainloader): Fix confusing error message if file is empty.
12985
12986 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12987
12988 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
12989 unknown key into a dprintf.
12990
12991 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12992
12993 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
12994 on first non-existant partition.
12995
12996 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12997
12998 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
12999 openning fails.
13000 Reported by: Mark Korenberg.
13001
13002 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13003
13004 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
13005 overflow.
13006
13007 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13008
13009 * util/grub-mkimage.c (main): Explicitely flush and sync the output
13010 before closing to ensure that it will be readable by grub-setup.
13011
13012 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13013
13014 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
13015 (devpath_1): Use MAKE_PIWG_PATH.
13016 (devpath_2): Likewise.
13017 (devpath_3): Likewise.
13018 (devpath_4): Likewise.
13019 (devpath_5): Likewise.
13020 (devpath_6): Likewise.
13021
13022 The appleldr.mod was checked that to be binary identical to previous
13023 version.
13024
13025 2011-05-05 Zach <mikezackles>
13026
13027 Support 2010 Macbooks.
13028
13029 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
13030 (devs): Add devpath_6.
13031
13032 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13033
13034 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
13035 /dev/random. /dev/urandom is good enough for our purposes (salting).
13036
13037 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13038
13039 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
13040
13041 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13042
13043 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
13044 hexadecimal.
13045
13046 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13047
13048 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
13049 and not 0 on failure.
13050
13051 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
13052
13053 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
13054 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
13055 disk; otherwise grub_fs_probe will not fall back to the next
13056 filesystem.
13057 (grub_pxefs_open): Likewise, for consistency.
13058 Reported and tested by: Ezekiel Grave.
13059
13060 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
13061
13062 * tests/partmap_test.in: Don't hardcode path to parted.
13063 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
13064
13065 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
13066
13067 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
13068 of `ls' to find out which devices are available.
13069
13070 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13071
13072 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
13073 than source address for efi mmap buffer.
13074
13075 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13076
13077 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
13078 wrong action on non-detecting the magic.
13079
13080 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13081
13082 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
13083 already supplied by another part of the module (fixes compilation on
13084 FreeBSD).
13085
13086 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13087
13088 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
13089 match the one used by mdadm.
13090
13091 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13092
13093 * po/README: Add instructions for creating po/LINGUAS.
13094
13095 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13096
13097 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
13098 #551428.
13099
13100 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
13101 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
13102 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
13103 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
13104 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
13105 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
13106 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
13107 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
13108 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
13109 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
13110 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
13111 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
13112 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
13113 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
13114 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
13115 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
13116 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
13117 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
13118 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
13119 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
13120 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
13121 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
13122
13123 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13124
13125 * grub-core/kern/emu/getroot.c
13126 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
13127 test that was incorrectly reintroduced in r3214.
13128 Reported by: Ian Dall. Fixes Savannah bug #33133.
13129
13130 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13131
13132 Fix stack pointer handling in 16-bit relocator.
13133
13134 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
13135 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
13136 Fixes Ubuntu bug #683904.
13137
13138 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13139
13140 * configure.ac: Bump version to 1.99~rc2.
13141
13142 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13143
13144 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
13145 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
13146 * grub-core/lib/x86_64/setjmp.S: Likewise.
13147 * grub-core/lib/mips/setjmp.S: Likewise.
13148 * grub-core/lib/powerpc/setjmp.S: Likewise.
13149 * grub-core/lib/sparc64/setjmp.S: Likewise.
13150
13151 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13152
13153 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
13154 * grub-core/lib/efi/datetime.c: Likewise.
13155
13156 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13157
13158 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
13159 New function.
13160 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
13161 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
13162 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
13163
13164 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13165
13166 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
13167 bitmap.
13168 (grub_gfxterm_term_init): Likewise.
13169
13170 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13171
13172 Take into account the decorations the computing menu entry width.
13173
13174 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
13175 (grub_gfxmenu_create_box): Register get_border_width.
13176 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
13177 if available.
13178 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
13179 get_border_width.
13180
13181 2011-04-18 Endres Puschner <code@e7p.de>
13182
13183 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
13184 Don't skip first class.
13185
13186 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13187
13188 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
13189 chunks.
13190 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
13191
13192 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13193
13194 Complete 64-bit division support.
13195
13196 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
13197 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
13198 * include/grub/misc.h (grub_divmod64): Rename to ...
13199 (grub_divmod64_full): ... this.
13200 (grub_divmod64): New inline function.
13201
13202 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13203
13204 * util/grub-mkimage.c (generate_image): Add forgotten comma.
13205
13206 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13207
13208 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
13209 performing the necessary test.
13210
13211 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13212
13213 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
13214 (kfreebsd.elf): Likewise.
13215 (pc-chainloader.elf): Likewise.
13216 (ntldr.elf): Likewise.
13217
13218 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13219
13220 Identify RAID by its UUID rather than (guessed) name.
13221
13222 * grub-core/disk/raid.c (ascii2hex): New function.
13223 (grub_raid_open): Accept mduuid/%s specification.
13224 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
13225 (get_mdadm_uuid): ... this.
13226 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
13227
13228 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
13229
13230 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
13231 to negative size.
13232
13233 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
13234
13235 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
13236 btrfs subvolume.
13237 * util/grub.d/20_linux_xen.in: Likewise.
13238
13239 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
13240
13241 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
13242 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
13243
13244 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
13245 Build a list of relevant visible mounts using the mnt_id and
13246 parent_mnt_id fields, and then scan that list at the end.
13247
13248 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13249
13250 * docs/grub.texi (normal): New section.
13251 (normal_exit): New section.
13252 (Embedded configuration): Add reference to normal.
13253 (GRUB only offers a rescue shell): Likewise.
13254 * docs/grub-dev.texi (Error Handling): Fix typo.
13255
13256 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13257
13258 * NEWS: Drop obsolete entry about probe-only btrfs support.
13259
13260 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13261
13262 * util/import_gcry.py: Fix typo.
13263
13264 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13265
13266 * NEWS: Add btrfs support.
13267
13268 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13269 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
13270
13271 BtrFS support. Written by me (Vladimir) with important bugfixes and
13272 even more important testing by Colin.
13273
13274 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
13275 * grub-core/Makefile.core.def (btrfs): Add crc.c.
13276 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
13277 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
13278 mem_input_off and mem_input. All users updated to accept in-RAM input.
13279 (gzio_seek): New function.
13280 (test_zlib_header): Likewise.
13281 (grub_gzio_read): Likewise.
13282 (grub_zlib_decompress): Likewise.
13283 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
13284 Accept partial and non-virtual mounts.
13285 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
13286 avoid receiving /dev/dm-X as device.
13287 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
13288 Handle bind and partial mounts.
13289 * grub-core/lib/crc.c: New file.
13290 * include/grub/deflate.h: Likewise.
13291 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
13292 proto.
13293 * include/grub/lib/crc.h: New file.
13294
13295 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13296
13297 Implement automatic module license checking according to new GNU
13298 guidelines.
13299
13300 * grub-core/kern/dl.c (grub_dl_check_license): New function.
13301 (grub_dl_load_core): Use grub_dl_check_license.
13302 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
13303 (GRUB_MOD_LICENSE): Likewise.
13304 (GRUB_MOD_DUAL_LICENSE): Likewise.
13305 All modules updated.
13306
13307 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
13308
13309 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
13310 reserved_first_sector to 1. btrfs reserves plenty of space for boot
13311 loaders.
13312 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
13313
13314 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13315
13316 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
13317
13318 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13319
13320 * util/grub-fstest.c (read_file): Report GRUB error if file opening
13321 failed.
13322
13323 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13324
13325 * grub-core/kern/file.c (grub_file_open): Don't take into account the
13326 parenthesis in the middle of the filename.
13327
13328 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13329
13330 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
13331 rather than trying to put initrd way too high.
13332 Reported by: Ryan Lortie <desrt@desrt.ca>
13333
13334 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13335
13336 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
13337 improperly removed string.
13338
13339 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13340
13341 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
13342 is_disk.
13343 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
13344 (open_device) Likewise.
13345 (grub_util_biosdisk_close): Likewise.
13346 Reported by: Mark Korenberg.
13347
13348 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
13349
13350 * util/grub-mkconfig_lib.in: Add missing quotes.
13351
13352 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
13353
13354 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
13355 is NULL.
13356
13357 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13358
13359 Dynamically count the number of lines for the lower banner.
13360
13361 * grub-core/normal/menu_entry.c (per_term_screen): New member
13362 num_entries.
13363 (print_down): Use num_entries.
13364 (update_screen): Likewise.
13365 (grub_menu_entry_run): Set num_entries.
13366 * grub-core/normal/menu_text.c (menu_viewer_data): New member
13367 num_entries.
13368 (grub_print_message_indented): Move real part to ...
13369 (grub_print_message_indented_real): ... here. Additional argument
13370 dry_run.
13371 (draw_border): Additional argument num_entries.
13372 (print_message): Additional argument dry_run.
13373 (print_entries): Receive menu viewer data.
13374 (grub_menu_init_page): New argment num_entries.
13375 (menu_text_set_chosen_entry): Use num_entries.
13376 (grub_menu_try_text): Likewise.
13377 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
13378 All users updated.
13379 (grub_ucs4_count_lines): New function.
13380 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
13381 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
13382 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
13383 (grub_term_border_height): Likewise.
13384 (grub_term_num_entries): Likewise.
13385
13386 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13387
13388 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
13389 Remove now unused string.
13390
13391 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
13392
13393 * docs/grub-dev.texi (Finding your way around): Update for 1.99
13394 build system.
13395 (Getting started): GRUB is developed in Bazaar now, not Subversion.
13396
13397 (Comment): Fix typo.
13398 (Getting started): General copy-editing.
13399 (Typical Development Experience): Likewise.
13400 (Error Handling): Likewise.
13401 (Video API): Likewise.
13402
13403 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
13404
13405 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
13406 throughout.
13407
13408 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13409
13410 * util/grub-mkimage.c (main): Handle special naming of yeeloong
13411 directory.
13412
13413 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
13414
13415 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
13416 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
13417 "development".
13418
13419 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13420
13421 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
13422 grub_strcpy since the lines aren't necessarily 0-terminated.
13423
13424 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13425
13426 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
13427 root on legacy.
13428
13429 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13430
13431 * grub-core/commands/probe.c (options): Argument to set isn't optional.
13432 (GRUB_MOD_INIT): DEVICE isn't optional.
13433
13434 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13435
13436 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
13437 word on new line if it's too long anyway. Fixes a hang.
13438
13439 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13440
13441 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
13442 const.
13443 * util/grub-setup.c (main): Reuse md device name if available.
13444 * util/raid.c (grub_util_raid_getmembers): Receive device name and
13445 not GRUB name as argument.
13446 Based on patch by: Florian Wagner <fwagner>.
13447
13448 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13449
13450 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13451 Place mbi on low memory for better compatibility.
13452
13453 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13454
13455 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
13456
13457 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13458 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
13459
13460 * autogen.sh: Ensure that collate and ctype locale is C.
13461 * conf/Makefile.common: Likewise.
13462
13463 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13464
13465 * grub-core/normal/menu.c: Add missing include.
13466
13467 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13468
13469 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
13470
13471 2011-04-08 Martin Zuther <mzuther@mzuther.de>
13472
13473 * util/grub-mkconfig.in: Ignore emacsen backup.
13474
13475 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13476
13477 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
13478 on open.
13479 (grub_util_biosdisk_close): Likewise.
13480
13481 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13482
13483 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
13484 const attribute and use grub_isdigit.
13485
13486 2011-04-06 Andrey <dev_null@ukr.net>
13487
13488 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
13489 gcc warning.
13490
13491 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13492
13493 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
13494 useful grub_dprintf's.
13495
13496 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13497
13498 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
13499
13500 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13501
13502 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
13503
13504 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13505
13506 Output errors if theme loading failed.
13507
13508 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
13509 grub_gfxterm_fullscreen on error paths to ...
13510 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
13511 theme loading error.
13512
13513 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13514
13515 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
13516 space for older compilers.
13517 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13518
13519 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13520
13521 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
13522 and report them as not RAID members since they are useless for GRUB.
13523 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13524
13525 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13526
13527 Increase LVM implementation robustness in order not to crash on
13528 configurations like pvmove. Previously code assumed that in some places
13529 only lvs or only pvs are used whereas it seems that they are used
13530 interchangeably.
13531
13532 * grub-core/disk/lvm.c (read_node): New function.
13533 (read_lv): Use read_node.
13534 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
13535 Match volumes only at the end when all lvs are found. Take both
13536 pvs (first) and lvs (second) into account.
13537 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
13538 mirror_* into node_*. All users updated.
13539 (grub_lvm_stripe): Merge this ...
13540 (grub_lvm_mirror): ... and this ...
13541 (grub_lvm_node): ... into this. All users updated.
13542
13543 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13544
13545 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
13546 of function to allow further scanning for LVMs.
13547
13548 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13549
13550 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
13551 on failed seek as it breaks open fd reusage.
13552
13553 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13554
13555 * util/grub-install.in: Add a recommendation to use --recheck before
13556 reporting bugs.
13557
13558 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13559
13560 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
13561 are obtained.
13562
13563 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13564
13565 GRUB developper manual based on existing Internals section and
13566 contributions by the various authors with active copyright assignment.
13567
13568 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
13569 * docs/font_char_metrics.png: New file.
13570 * docs/font_char_metrics.txt: Likewise.
13571 * docs/grub-dev.texi: Likewise.
13572 * docs/grub.texi (Internals): Move from here ...
13573 * docs/grub-dev.texi: ... here.
13574
13575 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13576
13577 Store the loopback device as data on loopback grub_disk structures,
13578 rather than the file it points to. This fixes use of freed memory
13579 if an existing loopback device is replaced.
13580
13581 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
13582 disk->data, not dev->file.
13583 (grub_loopback_read): Adjust file assignment to match.
13584 Fixes Ubuntu bug #742967.
13585
13586 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13587
13588 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
13589 when replacing an existing device.
13590
13591 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
13592
13593 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
13594 memory corruptions.
13595
13596 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
13597 unsigned.
13598 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
13599 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
13600 (grub_jfs_read_inode): Likewise.
13601 (grub_jfs_opendir): Likewise. Remove now useless casts.
13602 (grub_jfs_getent): Likewise.
13603 Make ino a grub_uint32_t rather than int.
13604 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
13605 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
13606 division and module with bit operations.
13607 (grub_jfs_find_file): Make ino a grub_uint32_t.
13608 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
13609
13610 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13611
13612 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
13613 warning. (This was in fact always initialised before use, but GCC
13614 wasn't smart enough to prove that.)
13615 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13616
13617 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
13618
13619 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
13620 stack alignment.
13621 (efi_wrap_1): Likewise.
13622 (efi_wrap_2): Likewise.
13623 (efi_wrap_3): Likewise.
13624 (efi_wrap_4): Likewise.
13625 (efi_wrap_5): Likewise.
13626 (efi_wrap_6): Likewise.
13627 (efi_wrap_10): Likewise.
13628 Based on information by: Red Hat/Peter Jones.
13629
13630 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13631
13632 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
13633 set-but-not-used variable.
13634
13635 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13636
13637 * docs/grub.texi (Simple configuration): Be more explicit about
13638 GRUB_DEFAULT, and add an example.
13639 Reported by: Leslie Rhorer.
13640
13641 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13642
13643 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
13644 shell".
13645
13646 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13647
13648 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
13649 * util/grub.d/20_linux_xen.in: Likewise.
13650
13651 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13652
13653 * util/grub.d/10_linux.in: Try alternative config filenames where
13654 we parse config file.
13655 * util/grub.d/20_linux_xen.in: Likewise.
13656
13657 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13658
13659 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
13660 * util/grub.d/20_linux_xen.in: Likewise.
13661
13662 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13663
13664 * grub-core/disk/raid.c (insert_array): Add few potentially
13665 useful grub_util_info.
13666 (grub_raid_register): Likewise.
13667
13668 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13669
13670 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
13671 Preserve partition number in mdadm code path.
13672
13673 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13674
13675 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
13676 few potentially useful grub_util_info.
13677
13678 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13679
13680 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
13681
13682 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13683
13684 * docs/grub.texi (default): Use @example rather than nested
13685 itemized lists to avoid breaking gendocs.
13686
13687 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13688
13689 * docs/grub.texi (Future): Update.
13690
13691 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13692
13693 * docs/grub.texi (Environment): New chapter.
13694 (Changes from GRUB Legacy): Link to "Environment block" section for
13695 details of limitations.
13696 (Simple configuration): Likewise. Link to documentation of gfxmode
13697 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
13698 respectively.
13699 (Shell-like scripting): Note that normal variables are stored in the
13700 environment.
13701 (gettext): Link to documentation of lang and locale_dir.
13702 (list_env): New section.
13703 (load_env): New section.
13704 (save_env): New section.
13705
13706 (Reporting bugs): Fix typo.
13707
13708 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13709
13710 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
13711 the example.
13712
13713 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13714
13715 * grub-core/term/at_keyboard.c (set_scancodes)
13716 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
13717
13718 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13719
13720 * docs/grub.texi (Menu-specific commands): Remove some semantics
13721 that were true in GRUB Legacy but not in GRUB 2.
13722 (submenu): New section.
13723 (false): New section.
13724 (read): New section.
13725 (true): New section.
13726
13727 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13728
13729 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
13730
13731 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13732
13733 * docs/grub.texi (Simple configuration): Explain some of the
13734 current limitations of grub-mkconfig.
13735 Reported by: Leslie Rhorer.
13736
13737 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13738
13739 Old macs search for boot.efi rather than for bootia32.efi.
13740
13741 * util/grub-install.in: Copy bootia32.efi to boot.efi.
13742 * util/grub-mkrescue.in: Likewise.
13743 Suggested by: Peter Jones.
13744
13745 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13746
13747 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
13748
13749 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13750
13751 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
13752 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
13753 (grub_lvm_mirror): New struct.
13754 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
13755 (grub_lvm_iterate): Iterate only visible volumes.
13756 (grub_lvm_read): Factor out to ..
13757 (read_lv): ... this. Support mirrors.
13758 (grub_lvm_read): New wrapper function.
13759 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
13760 stripped or mirrored.
13761
13762 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13763
13764 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
13765
13766 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13767
13768 * docs/grub.texi (loopback): New section.
13769
13770 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13771
13772 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
13773 removed -p option.
13774
13775 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13776
13777 * docs/grub.texi (BIOS installation): New section, partly based on
13778 previous text in other sections.
13779 (Installing GRUB using grub-install): Replace BIOS discussion with a
13780 cross-reference.
13781 (Images): Likewise.
13782
13783 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13784
13785 * grub-core/kern/emu/hostdisk.c (find_partition_start)
13786 [HAVE_DIOCGDINFO]: Add safety checks.
13787
13788 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13789
13790 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
13791 per default compiled in kernel and prior to 8.0 isn't shipped at all.
13792
13793 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13794
13795 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
13796 real_sb->size is zero (e.g. RAID-0), get the disk size from
13797 real_sb->data_size instead.
13798 Fixes Ubuntu bug #743136.
13799
13800 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13801
13802 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
13803 printf clauses for printing size and start.
13804
13805 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13806
13807 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
13808 Reported and tested by: Timothy Nikkel.
13809
13810 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13811
13812 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
13813 (dirty_region_add_real): ... this.
13814 (dirty_region_add): Don't discard margin refresh when performing
13815 scheduled repaint.
13816
13817 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13818
13819 * grub-core/lib/relocator.c (allocate_regstart)
13820 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
13821 terminals are capabple of malloc-free operation.
13822 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13823 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13824
13825 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
13826
13827 * util/grub-setup.c: Copy the partition table zone if floppy support
13828 is disabled, even if no partition table is found.
13829
13830 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
13831 during POST if an invalid partition table is contained in the PBR
13832 of the active partition when GRUB is installed to a partition.
13833
13834 2011-03-28 Colin Watson <cjwatson@debian.org>
13835
13836 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
13837 comment.
13838
13839 2011-03-28 Colin Watson <cjwatson@debian.org>
13840
13841 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
13842 to be specific about what kind of RAID device we're scanning for.
13843
13844 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
13845
13846 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
13847 return freed string.
13848
13849 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13850
13851 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
13852
13853 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13854
13855 Use libgeom on FreeBSD to detect partitions.
13856
13857 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
13858 (grub-mkrelpath): Likewise.
13859 (grub-script-check): Likewise.
13860 (grub-editenv): Likewise.
13861 (grub-mkpasswd-pbkdf2): Likewise.
13862 (grub-fstest): Likewise.
13863 (grub-mkfont): Likewise.
13864 (grub-mkdevicemap): Likewise.
13865 (grub-probe): Likewise.
13866 (grub-setup): Likewise.
13867 (grub-ofpathname): Likewise.
13868 (grub-mklayout): Likewise.
13869 (example_unit_test): Likewise.
13870 (grub-menulst2cfg): Likewise.
13871 * grub-core/Makefile.core.def (grub-emu): Likewise.
13872 (grub-emu-lite): Likewise.
13873 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
13874 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
13875 define HAVE_DIOCGDINFO.
13876 (follow_geom_up) [FreeBSD]: New function.
13877 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
13878 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
13879 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
13880 unconditionally of HAVE_DIOCGDINFO.
13881
13882 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13883
13884 Fix FreeBSD compilation problem.
13885
13886 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
13887 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
13888
13889 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
13890
13891 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
13892 Switch back to page zero before loading a kernel, since some kernel
13893 drivers expect that.
13894 Thanks to: Felix Kuehling.
13895
13896 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13897
13898 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
13899 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
13900 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
13901
13902 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13903
13904 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
13905 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
13906
13907 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13908
13909 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
13910 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
13911 malloc is disabled.
13912
13913 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13914
13915 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
13916 for modules headers when counting the needed allocation size.
13917
13918 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13919
13920 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
13921 if no ASCII character is found to prevent crash.
13922
13923 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
13924
13925 * grub-core/video/bitmap.c (match_extension): Ignore case.
13926
13927 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13928
13929 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
13930
13931 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13932
13933 * grub-core/script/parser.y: Declare "time" as valid argument.
13934
13935 2011-03-23 Peter Jones <pjones@redhat.com>
13936
13937 Fix incorrect assert failure reporting.
13938
13939 * grub-core/tests/example_functional_test.c (example_test): Add
13940 a failure comment.
13941 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
13942 (failure_start): ...this. Check that malloc succeeded.
13943 Don't call xvasprintf. Return failure struct.
13944 (failure_append_vtext): New function.
13945 (failure_append_text): Likewise.
13946 (add_failure): Likewise.
13947 (grub_test_assert_helper): Likewise.
13948 * include/grub/test.h (grub_test_assert_helper): New declaration.
13949 (grub_test_assert): Macro rewritten.
13950
13951 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13952
13953 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
13954
13955 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13956
13957 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
13958
13959 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13960
13961 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
13962 into GRUB-style one.
13963
13964 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13965
13966 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
13967 error and not grub_errno.
13968 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
13969
13970 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13971
13972 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
13973 GRUB_USB_SPEED_NONE in case of failure and not the error code.
13974
13975 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13976
13977 * grub-core/efiemu/i386/pc/cfgtables.c
13978 (grub_machine_efiemu_init_tables): Make declaration a prototype.
13979 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
13980 (grub_xnu_unlock): Likewise.
13981 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
13982
13983 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13984
13985 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
13986 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
13987 * grub-core/commands/hashsum.c (aliases): Likewise.
13988 * grub-core/commands/setpci.c (pci_registers): Likewise.
13989 * grub-core/disk/usbms.c (attach_hook): Likewise.
13990 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
13991 (zio_checksum_table): Likewise.
13992 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
13993 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
13994 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
13995 * grub-core/lib/relocator.c (leftovers): Likewise.
13996 (extra_blocks): Likewise.
13997 * grub-core/loader/i386/bsd.c (relocator): Likewise.
13998 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
13999 (modules_last): Likewise.
14000 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
14001 (devices): Likewise.
14002 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
14003 (modules_last): Likewise.
14004 * grub-core/normal/auth.c (users): Likewise.
14005 * grub-core/normal/context.c (initial_menu): Likewise.
14006 (current_menu): Likewise.
14007 * grub-core/normal/crypto.c (crypto_specs): Likewise.
14008 * grub-core/term/serial.c (grub_serial_ports): Likewise.
14009 (grub_serial_terminfo_input_template): Likewise.
14010 (grub_serial_terminfo_output_template): Likewise.
14011 (grub_serial_terminfo_input): Likewise.
14012 (grub_serial_terminfo_output): Likewise.
14013 (registered): Likewise.
14014 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
14015
14016 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14017
14018 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
14019 grub_video_mode_type_t.
14020 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
14021 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
14022 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
14023
14024 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14025
14026 * util/grub-install.in: Correct the x86-64 name as x86_64.
14027
14028 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
14029
14030 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
14031 initial chunk read from the kernel always includes GRUB's multiboot
14032 header, which is now outside the first sector.
14033
14034 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
14035
14036 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
14037 cached mmap_size, so that this works correctly when called multiple
14038 times.
14039 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
14040
14041 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
14042
14043 * docs/grub.texi (Simple configuration): Tidy up formatting.
14044
14045 2011-03-07 Szymon Janc <szymon@janc.net.pl>
14046
14047 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
14048 Set-but-not-used variable removed.
14049
14050 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
14051
14052 Workaround yet another IEEE1275 bug.
14053
14054 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
14055 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
14056 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
14057 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
14058 is set.
14059 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
14060 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
14061
14062 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
14063
14064 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
14065 error.
14066
14067 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
14068
14069 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
14070 empty, since in that case we can only generate either nothing or a
14071 syntactically invalid configuration file.
14072 Reported by: Michal Suchanek. Fixes Debian bug #612898.
14073
14074 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
14075
14076 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
14077 (Making a GRUB bootable CD-ROM): Likewise.
14078 (Invoking grub-mkrescue): New section.
14079 Reported by: Yann Dirson. Fixes Debian bug #612585.
14080
14081 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
14082
14083 * util/grub-install.in: Remove unnecessary brackets from tr
14084 arguments.
14085 * util/grub.d/10_hurd.in: Likewise.
14086 * util/grub.d/10_kfreebsd.in: Likewise.
14087 * util/grub.d/10_linux.in: Likewise.
14088 * util/grub.d/20_linux_xen.in: Likewise.
14089 Reported by: Jamie Heilman. Fixes Debian bug #612564.
14090
14091 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
14092
14093 * include/grub/file.h (not_easly_seekable): Rename to ...
14094 (not_easily_seekable): ... this. Update all users.
14095
14096 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
14097
14098 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
14099 grub-mkrescue.
14100
14101 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14102
14103 * util/grub-mkimage.c (generate_image): Refuse to create the images
14104 bigger than the actual flash (512K) in Loongson machines. 512K is also
14105 the biggest chip supported by them.
14106
14107 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14108
14109 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
14110
14111 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
14112
14113 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
14114 super_offset field.
14115
14116 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14117
14118 * util/grub-install.in: Ignore install device on platforms
14119 where it doesn't make sense. Always use UUIDs except on pc, efi and
14120 sparc64.
14121 Reported by: Daniel Kahn Gillmor.
14122
14123 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14124
14125 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
14126
14127 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14128
14129 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
14130 (iterate_real): Don't rely on partition being non-NULL.
14131
14132 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14133
14134 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
14135 supported platforms. Put a compile time assert for this rather than
14136 generate a warning with 32-bit shift.
14137
14138 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14139
14140 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
14141 logical expression more readable.
14142
14143 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14144
14145 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
14146 even if some elements have a name.
14147 Reported by: Alexander GQ Gerasiov.
14148
14149 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
14150
14151 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
14152 path unreadable if `grub-probe -t abstraction' fails, for example if
14153 memberlist fails on an LVM volume group.
14154 Reported by: Darius Jahandarie.
14155
14156 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
14157
14158 * docs/grub.texi (Simple configuration): Document
14159 GRUB_PRELOAD_MODULES.
14160
14161 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
14162
14163 * .bzrignore: Remove nonexistent grub-pbkdf2.
14164
14165 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
14166
14167 * configure.ac: Bump version to 1.99~rc1.
14168
14169 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
14170
14171 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
14172 for safety.
14173
14174 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14175
14176 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
14177 module.
14178
14179 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14180
14181 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
14182
14183 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14184
14185 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
14186 diskdevid.
14187
14188 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14189
14190 Fix compilation on cygwin.
14191
14192 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
14193 -R .drectve on cygwin.
14194 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
14195 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
14196 (COND_CYGWIN): New condition.
14197 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
14198 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
14199 not @TARGET_OBJ2ELF@.
14200 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
14201 type to determine whether aux is to be used.
14202
14203 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14204
14205 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
14206 realpath'ed device string.
14207 Handle floppy (somewhat).
14208 Issue error in unknown case rather than garbage.
14209 Reported by: Axel Beckert.
14210
14211 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14212
14213 * util/grub.d/00_header.in (load_video): Handle the case when no video
14214 drivers available.
14215 Thanks to: Axel Beckert.
14216
14217 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14218
14219 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
14220 variable. Fixes problem on big endian platforms.
14221
14222 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14223
14224 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
14225 It doesn't work well there.
14226
14227 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14228
14229 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
14230 warning.
14231 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
14232 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
14233 counter.
14234
14235 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14236
14237 Use alias->path rather than buggy "canon".
14238
14239 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
14240 (ofdisk_hash_add): New argument curcan. All users updated.
14241
14242 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
14243
14244 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
14245
14246 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14247
14248 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
14249 loadmask before doing any calculations. Use correct type for offset.
14250 (grub_linux_load64): Likewise.
14251
14252 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
14253
14254 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
14255 with NULL.
14256 (console_grub_equivalences_unshift): Likewise.
14257 Reported by: Daniel Dehennin.
14258
14259 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14260
14261 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
14262 (set_env_limn_ro): Likewise.
14263 (GRUB_MOD_INIT): Likewise.
14264 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
14265 ARRAY_SIZE while on it.
14266 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
14267 * grub-core/normal/context.c (grub_env_export): Move from here ...
14268 * grub-core/kern/env.c (grub_env_export): ... here.
14269 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
14270 prefix.
14271 * grub-core/kern/main.c (grub_main): Export root and prefix.
14272 * include/grub/env.h (grub_env_export): Export.
14273 Reported by: Seth Goldberg.
14274
14275 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14276
14277 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14278 Take into account space used by ELF sections and multiboot palette.
14279 Reported by: Grégoire Sutre.
14280
14281 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14282
14283 * BUGS: New file.
14284
14285 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14286
14287 Pass more appropriate video id to Linux.
14288
14289 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
14290 grub_video_get_driver_id and variable gfxpayloadforcelfb to
14291 fill have_vga.
14292 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
14293 shift params->lfb_size.
14294 * include/grub/i386/linux.h: Make an enume out of have_vga values.
14295
14296 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14297
14298 * util/grub-menulst2cfg.c: Add missing include of misc.h.
14299
14300 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14301
14302 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
14303 separator and pass bootpath/devid even if only one of them is available.
14304 Reported by: Seth Goldberg.
14305
14306 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14307
14308 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
14309 implementations bug on them.
14310
14311 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
14312 memory.
14313 (filter_memory_map): Likewise.
14314
14315 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14316
14317 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
14318 Reported by: nebuchadnezzar.
14319
14320 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14321
14322 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
14323 Reported by: nebuchadnezzar.
14324
14325 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14326
14327 Submenu default support.
14328
14329 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
14330 auto_boot. All users updated.
14331 Declared static.
14332 Handle chosen and default with submenus.
14333 (grub_menu_execute_with_fallback): Declared static.
14334 Don't notify failure if autobooted. Upper level does it.
14335 (menuentry_eq): New function.
14336 (get_entry_number): Use menuentry_eq.
14337 (show_menu): New parameter "autobooted". All users updated.
14338 (grub_show_menu): Likewise.
14339 * include/grub/normal.h (grub_show_menu): Likewise.
14340 * include/grub/menu.h (grub_menu_execute_entry): Removed.
14341 (grub_menu_execute_with_fallback): Likewise.
14342
14343 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14344
14345 * util/grub-mklayout.c (usage): Update help text.
14346
14347 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14348
14349 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
14350
14351 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14352
14353 * util/grub-menulst2cfg.c (main): Trim the line.
14354
14355 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14356
14357 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
14358 (grub_machine_init): Don't check amount of low memory as reportedly
14359 INT 12h can be broken and if low memory is too low we wouldn't have
14360 gotten into grub_machine_init anyway.
14361
14362 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14363
14364 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
14365 (grub_machine_mmap_iterate): Take low memory into account
14366
14367 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14368
14369 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
14370 badfs.
14371 Reported by: TiCPU.
14372
14373 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14374
14375 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
14376 members errors.
14377
14378 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14379
14380 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
14381 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
14382
14383 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14384
14385 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
14386 openbsd and netbsd types being in part_bsd module.
14387
14388 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14389
14390 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
14391 (_FILE_OFFSET_BITS): Likewise.
14392 Reported by: Seth Goldberg.
14393
14394 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
14395
14396 * configure.ac: Check for libdevmapper header.
14397
14398 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14399
14400 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
14401 avoid aliasing.
14402 (fzap_lookup): Likewise.
14403 (dnode_get): Likewise.
14404 (make_mdn): Likewise.
14405 (zfs_mount): Likewise.
14406 (fzap_iterate): Use temporary pointer to avoid aliasing.
14407 (grub_zfs_read): Likewise.
14408 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
14409 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
14410 pointers to avoid aliasing.
14411 (grub_cmd_xnu_kernel64): Likewise.
14412 (grub_xnu_load_driver): Likewise.
14413
14414 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14415
14416 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
14417 aliasing warning.
14418 (grub_cmd_terminal_output): Likewise.
14419 Reported and tested by: Grégoire Sutre.
14420
14421 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14422
14423 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
14424 warning.
14425 Reported and tested by: Grégoire Sutre.
14426
14427 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14428
14429 * configure.ac: Do CPU substitution even if it's specified explicitly.
14430 Reported and tested by: Alain Greppin.
14431
14432 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14433
14434 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
14435 Reported and tested by: Alain Greppin.
14436
14437 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14438
14439 Satisfy some bison versions need for inttypes.h.
14440
14441 * grub-core/lib/posix_wrap/inttypes.h: New file.
14442 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
14443 (int16_t): Likewise.
14444 (int32_t): Likewise.
14445 (int64_t): Likewise.
14446 Reported and tested by: Alain Greppin.
14447
14448 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14449
14450 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
14451 Silence spurious warning.
14452 Reported and tested by: Alain Greppin.
14453
14454 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14455
14456 * docs/grub.texi (Support automatic decompression): Update with xz
14457 decompression support.
14458
14459 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14460
14461 Improve loaders' kernel command line handling.
14462
14463 * grub-core/lib/cmdline.c: New file.
14464 * include/grub/lib/cmdline.h: Likewise.
14465 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
14466 grub_create_loader_cmdline to create kernel command line.
14467 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14468 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
14469 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
14470 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
14471 (linux): Add lib/cmdline.c on common.
14472
14473 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14474
14475 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
14476 inopos might be unaligned.
14477
14478 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14479
14480 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
14481 endian transformations.
14482 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14483 Based on report by: Doug Nazar.
14484
14485 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
14486
14487 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
14488 array->members[i].start_sector.
14489 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
14490
14491 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14492
14493 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
14494 Reported and tested by: Grégoire Sutre.
14495
14496 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14497
14498 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
14499 avoid causing test failures by clearing the screen.
14500
14501 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14502
14503 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
14504 Fix prefix check to handle the case where dir ends with a slash
14505 (most significantly, "/" itself).
14506 Reported by: Michael Vogt.
14507
14508 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14509
14510 Run terminfo_cls on initing terminfo output to clear the screen and
14511 move the cursor to (0,0).
14512
14513 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
14514 Call grub_terminfo_output_init.
14515 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
14516 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
14517 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
14518
14519 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14520
14521 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
14522 only when needed.
14523
14524 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14525
14526 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
14527 CTRL.
14528
14529 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14530
14531 The E820 type 5 is BADRAM, not EXEC_CODE.
14532
14533 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14534 (GRUB_E820_BADRAM): New define.
14535 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
14536 into reserved. Propagate BADRAM.
14537 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14538 (GRUB_E820_BADRAM): New define.
14539
14540 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14541
14542 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
14543 Ignore the memory post-4G.
14544 (grub_relocator_firmware_alloc_region): Additional debug statement.
14545
14546 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14547
14548 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
14549 names.
14550 Reported by: David Pravec.
14551
14552 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14553
14554 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
14555 BIOSes.
14556
14557 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14558
14559 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
14560 Prevent overflow.
14561 (grub_reed_solomon_recover): Likewise.
14562
14563 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14564
14565 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
14566
14567 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14568
14569 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
14570 variable.
14571
14572 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
14573
14574 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
14575 descriptions of extract_legacy_entries_source and
14576 extract_legacy_entries_configfile.
14577 Reported by: Seung Soo, Ha.
14578
14579 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
14580
14581 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
14582 on devices that do not implement function 0.
14583
14584 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
14585
14586 * grub-core/fs/hfsplus.c: Make parent unsigned.
14587 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
14588 overflows.
14589 (grub_hfsplus_cmp_extkey): Likewise
14590
14591 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14592
14593 * util/grub-install.in: Correctly use bootloader_id and not
14594 GRUB_DISTRIBUTOR on efibootmgr line.
14595
14596 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14597
14598 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
14599
14600 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
14601
14602 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
14603 Xen and reorder menu item wording to make it clearer that this entry
14604 will launch Xen. Print separate messages when loading Xen and
14605 Linux.
14606
14607 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14608
14609 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
14610 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
14611 loop in case of incorrect amiga partmap.
14612
14613 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14614
14615 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
14616 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
14617 Reported by:EHeM.
14618
14619 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14620
14621 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
14622 spurious warning.
14623 Reported by: crocket
14624
14625 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14626
14627 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
14628 Preload EFIemu.
14629 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
14630
14631 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14632
14633 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
14634 is loaded
14635 (grub_cmd_xnu_kextdir): Likewise.
14636 (grub_cmd_xnu_splash): Likewise.
14637
14638 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14639
14640 Avoid using Reed-Solomon with 0 redundancy.
14641
14642 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
14643 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
14644 or 0 redundancy.
14645 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
14646 (grub_reed_solomon_recover): Likewise.
14647
14648 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14649
14650 Don't use disk subsystem in freebsd_boot.
14651
14652 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
14653 (freebsd_biosdev): Likewise.
14654 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
14655 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
14656
14657 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14658
14659 Handling of files of unknown size is currently limited. They can't be
14660 used e.g. for initrd or modules. Moreover gzip handling of not
14661 easily seekable files is buggy. Disable unknown file size for now. May
14662 be inefficient but works.
14663
14664 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
14665 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
14666
14667 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
14668
14669 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
14670 floppy probe.
14671
14672 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
14673
14674 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
14675
14676 2010-12-25 Shea Levy <shlevy>
14677
14678 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
14679
14680 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14681
14682 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
14683 Windows Server 2008.
14684 Reported by: Devin Giddings.
14685
14686 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14687
14688 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
14689 writing an error message because of async power management.
14690 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
14691 (grub_reboot): Likewise.
14692
14693 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
14694
14695 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
14696 keep unit tests from failing when they shouldn't.
14697
14698 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14699
14700 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
14701 previous patch increased the size of the RS code by 20 bytes (at
14702 least with gcc-4.4), so increase this by 20 bytes to match.
14703 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14704
14705 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14706
14707 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
14708 scratch area. Make sure to initialise chosen in standalone mode as
14709 well as non-standalone.
14710 Reported by: Robert Hooker and Andy Whitcroft.
14711 Tested by: Andy Whitcroft.
14712
14713 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14714
14715 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
14716 constructing a new unescaped string and passing it to grub_xputs in
14717 one go, rather than passing characters to grub_printf one at a time.
14718
14719 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14720
14721 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
14722 initialising utf16.
14723
14724 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14725
14726 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
14727 comment. Add an extra layer of quotation, requiring the output of
14728 this function to be used in a printf format string.
14729 (gettext_printf): New function.
14730 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
14731 Extract translatable strings from here-documents and use a temporary
14732 variable instead, so that xgettext can find them.
14733 * util/grub.d/10_kfreebsd.in: Likewise.
14734 * util/grub.d/10_linux.in: Likewise.
14735 * util/grub.d/20_linux_xen.in: Likewise.
14736
14737 * po/grub.d.sed: New file.
14738 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
14739 arguments. Set c-format flags on all strings extracted from
14740 util/grub.d/ (xgettext refuses to include these itself for strings
14741 it extracted from a shell file, but these really are c-format).
14742
14743 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14744
14745 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
14746 Avoid next pointing to nowhere.
14747
14748 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14749
14750 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
14751 rather than assuming than rootblock is exactly in the middle.
14752 (grub_affs_label): Likewise.
14753
14754 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14755
14756 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
14757 reserved_first_sector to 0.
14758 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
14759 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
14760 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
14761
14762 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14763
14764 Fix handling of UTF-16 UDF labels.
14765
14766 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
14767 (read_string): .. here.
14768 (grub_udf_label): Use read_string.
14769
14770 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
14771
14772 * grub-core/normal/menu_entry.c (run): Execute commands from menu
14773 editor under argument scope.
14774 Reported by: Jordan Uggla
14775
14776 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14777
14778 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
14779
14780 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
14781
14782 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
14783 line, and other keys scroll an entire page (previous handling was
14784 for \r and \n to scroll a page and other keys to scroll two lines).
14785
14786 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14787
14788 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14789 Set ptrdest to correct get_physical_target_address rather than
14790 incorrect get_virtual_current_address.
14791
14792 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
14793
14794 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
14795 correct cat to grub_uint8_t * rather than grub_uint32_t *.
14796
14797 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14798
14799 * .bzrignore: Ignore grub-core/rs_decoder.S.
14800
14801 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14802
14803 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
14804 .mo/.mo.gz opening sequence to ...
14805 (grub_mofile_open_lang): ... here.
14806 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
14807 * util/grub.d/00_header.in (grub_lang): Include country part of
14808 locale.
14809 Reported by: Mario Limonciello.
14810
14811 2010-12-09 Robert Millan <rmh@gnu.org>
14812
14813 * NEWS: Document addition of ZFS support.
14814
14815 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
14816
14817 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
14818 rather than `/ 2', as the latter requires -Wa,--divide which would
14819 require bumping our minimum binutils version.
14820
14821 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
14822
14823 * util/grub-script-check.c (main): Print script line number on
14824 error.
14825
14826 2010-12-01 Robert Millan <rmh@gnu.org>
14827
14828 * grub-core/fs/zfs/zfs.c: New file.
14829 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
14830 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
14831 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
14832 * grub-core/fs/zfs/zfsinfo.c: Likewise.
14833
14834 * include/grub/zfs/dmu.h: Likewise.
14835 * include/grub/zfs/dmu_objset.h: Likewise.
14836 * include/grub/zfs/dnode.h: Likewise.
14837 * include/grub/zfs/dsl_dataset.h: Likewise.
14838 * include/grub/zfs/dsl_dir.h: Likewise.
14839 * include/grub/zfs/sa_impl.h: Likewise.
14840 * include/grub/zfs/spa.h: Likewise.
14841 * include/grub/zfs/uberblock_impl.h: Likewise.
14842 * include/grub/zfs/vdev_impl.h: Likewise.
14843 * include/grub/zfs/zap_impl.h: Likewise.
14844 * include/grub/zfs/zap_leaf.h: Likewise.
14845 * include/grub/zfs/zfs.h: Likewise.
14846 * include/grub/zfs/zfs_acl.h: Likewise.
14847 * include/grub/zfs/zfs_znode.h: Likewise.
14848 * include/grub/zfs/zil.h: Likewise.
14849 * include/grub/zfs/zio.h: Likewise.
14850 * include/grub/zfs/zio_checksum.h: Likewise.
14851
14852 * Makefile.util.def: Build ZFS into libgrubmods.
14853 * grub-core/Makefile.core.def: Build zfs.mod.
14854
14855 2010-11-30 Szymon Janc <szymon@janc.net.pl>
14856
14857 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
14858 variable.
14859 * grub-core/commands/wildcard.c (match_files): Likewise.
14860
14861 2010-11-30 Robert Millan <rmh@gnu.org>
14862
14863 * grub-core/loader/i386/bsd.c
14864 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
14865 whether kernel is loaded using grub_loader_is_loaded(), rather
14866 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
14867 certain error conditions.
14868
14869 2010-11-30 Robert Millan <rmh@gnu.org>
14870
14871 * grub-core/commands/echo.c: Include `<grub/term.h>'.
14872 (grub_cmd_echo): Call grub_refresh() after printing a message.
14873
14874 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14875
14876 Avoid using tricks for initialising endian variables.
14877
14878 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
14879 Make const.
14880 (GRUB_MOD_INIT): Don't byte-swap.
14881 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14882 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
14883 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
14884 (grub_swap_bytes32_compile_time): Likewise.
14885 (grub_cpu_to_le32_compile_time): Likewise.
14886 (grub_cpu_to_le16_compile_time): Likewise.
14887
14888 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14889
14890 * util/grub-setup.c (setup): Stop recommending --force. People who
14891 understand the dangers of blocklists are able to find this option
14892 anyway and the ones who don't shouldn't use it anyway.
14893
14894 2010-11-26 Robert Millan <rmh@gnu.org>
14895
14896 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
14897 Update all users.
14898
14899 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
14900
14901 Fix LVM-on-RAID probing.
14902
14903 * util/grub-probe.c (probe): Remember which disk was detected as
14904 RAID (perhaps an LVM physical volume). Use that disk's raidname
14905 rather than that of the top-level disk.
14906
14907 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
14908
14909 Fix cmdline argument quotes for setparams command of menuentry
14910 definitions.
14911
14912 * grub-core/commands/menuentry.c (setparams_prefix): Use single
14913 quotes for arguments.
14914 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
14915 grub_strchrsub function instead.
14916
14917 * include/grub/misc.h (grub_strchrsub): New function.
14918
14919 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14920
14921 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
14922 effort by skipping "." and ".." entries up-front.
14923 Suggested by: Michael Lazarev.
14924
14925 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14926
14927 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
14928 ldflags to ldadd, to fix link line ordering.
14929 (none_decompress): Likewise.
14930
14931 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14932
14933 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
14934 platforms.
14935 (grub-emu-lite): Remove kern/emu/cache.S.
14936
14937 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14938
14939 * util/deviceiter.c (compare_devices): If the by-id link for a
14940 device couldn't be resolved, fall back to sorting by the by-id link
14941 rather than segfaulting.
14942 Reported and tested by: Daniel Mierswa.
14943
14944 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14945
14946 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
14947 ldflags, to fix link line ordering.
14948
14949 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14950
14951 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
14952 linkers are picky about this.
14953
14954 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14955
14956 * grub-core/Makefile.am (command.lst): Adjust sed expression
14957 ordering so that extended and priority commands aren't treated as
14958 ordinary commands.
14959
14960 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14961
14962 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14963 Remove byte-swapping function calls, which are not valid in
14964 structure initialisers.
14965 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
14966 non-const.
14967 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
14968 grub_gpt_partition_type_bios_boot.
14969
14970 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14971
14972 Fix test program build on GNU/kFreeBSD.
14973
14974 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
14975 $(LIBNVPAIR)' library dependencies.
14976
14977 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14978
14979 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
14980
14981 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14982
14983 * util/grub-install.in: Remove excessive quoting that broke
14984 installations to RAID devices.
14985
14986 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14987
14988 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
14989 bootloader version instead of 0.
14990
14991 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14992
14993 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
14994 warning.
14995
14996 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14997
14998 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
14999 retrieve the metadat sector if size isn't known.
15000 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15001
15002 2010-11-18 Robert Millan <rmh@gnu.org>
15003
15004 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
15005 with grub_memcmp().
15006
15007 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
15008
15009 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
15010 arrow.
15011 Reported by: Jordan Uggla.
15012
15013 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15014
15015 Make better UTF compliant.
15016
15017 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
15018 sequences as incorrect.
15019 (grub_is_valid_utf8): Likewise.
15020 (grub_utf8_to_ucs4): Likewise.
15021 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
15022 (grub_ucs4_to_utf8_alloc): Likewise.
15023 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
15024
15025 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15026
15027 Make legacy_source behave like source.
15028
15029 * grub-core/commands/legacycfg.c (legacy_file): Don't call
15030 grub_show_menu.
15031 (grub_cmd_legacy_source): Call grub_show_menu if needed.
15032
15033 2010-11-16 Colin Watson <cjwatson@debian.org>
15034
15035 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
15036 (-Wunused implies -Wunused-parameter, but not vice versa).
15037
15038 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
15039
15040 * configure.ac: Make error messages less confusing by testing for
15041 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
15042 accepted, but produces a diagnostic if something else is wrong).
15043
15044 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
15045
15046 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
15047 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
15048 (now unused).
15049 (grub_keyboard_controller_init)
15050 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
15051 read the initial state since controller isn't inited yet.
15052
15053 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
15054
15055 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
15056 allocate_regbeg may need to create new chunk header.
15057
15058 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15059
15060 Fix quoting in legacy parser.
15061
15062 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
15063 single quotes.
15064 (grub_legacy_parse): Likewise.
15065 Reported by: Jordan Uggla.
15066 Tested by: Jordan Uggla.
15067
15068 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15069
15070 Don't add -lgcc on i386 and x86_64.
15071
15072 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
15073 * conf/Makefile.common (LDADD_KERNEL): Likewise.
15074 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
15075
15076 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15077
15078 * configure.ac: Add -Wno-trampolines when supported.
15079
15080 2010-11-14 Modestas Vainius <modax@debian.org>
15081
15082 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
15083 fakeraid.
15084
15085 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15086
15087 Add generic logical block size support for UDF.
15088
15089 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
15090 (GRUB_UDF_BLKSZ): Removed.
15091 (struct grub_udf_data): New field "lbshift" to hold the logical block
15092 size of the file system in log2 format. All users updated.
15093 (sblocklist): Change type to unsigned.
15094 (grub_udf_mount): Change type of "sblklist" to unsigned.
15095 Move AVDP search before VRS recognition, because the latter requires
15096 knowledge of the logical block size, which is detected during the
15097 former.
15098 Detect and validate logical block size during AVDP search, adding
15099 support for block sizes 512, 1024 and 4096.
15100 Make VRS recognition independent of block size.
15101
15102 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15103
15104 Properly handle deleted files on UDF.
15105
15106 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
15107 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
15108 set.
15109
15110 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15111
15112 Support reading files larger than 2 GiB.
15113
15114 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
15115 "offset" to grub_off_t.
15116 (grub_udf_read_file): Likewise for parameter "pos".
15117
15118 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15119
15120 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
15121 unavailable.
15122 (Simple configuration): Refer to Changes from GRUB Legacy about
15123 save_env availability.
15124
15125 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15126
15127 * util/grub-install.in: Ignore empty partition table detection
15128 instead of trying to include part_ module.
15129
15130 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15131
15132 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
15133 LVM on RAID support.
15134
15135 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15136
15137 Properly define WORDS_BIGENDIAN in wrapped environments.
15138
15139 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
15140 definition.
15141 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
15142
15143 Reported by: Manoel Rebelo Abranches.
15144 Tested by: Manoel Rebelo Abranches.
15145
15146 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15147
15148 * util/grub-mkconfig.in: Fix quoting.
15149
15150 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15151
15152 Support big ext2 files.
15153
15154 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
15155 (grub_ext2_read_block): Support triple indirect blocks.
15156 (grub_ext2_read_file): Use 64-bit types and read size_high.
15157 (grub_ext2_open): Read size_high.
15158 Reported by: Ximin Luo.
15159 Tested by: Manoel Rebelo Abranches.
15160
15161 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15162
15163 * util/grub-install.in: Handle filenames containing spaces.
15164 Reported by: Jordan Uggla.
15165 Tested by: Jordan Uggla.
15166
15167 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15168
15169 * util/grub-mkconfig.in (grub_script_check): New variable.
15170 Use grub_script_check instead of grub-script-check.
15171 Reported by: Barry Jackson.
15172
15173 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15174
15175 * docs/grub.texi (menu): Correct the order.
15176 Reported by: D. Hugh Redelmeier.
15177
15178 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15179
15180 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
15181 jump.
15182
15183 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
15184
15185 * include/grub/elfload.h (grub_elf32_size): New parameter.
15186 All users updated.
15187 Return maximum segments alignment.
15188 (grub_elf64_size): Likewise.
15189 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
15190 Return maximum segments alignment.
15191 (grub_elf64_size): Likewise.
15192 * grub-core/loader/powerpc/ieee1275/linux.c:
15193 (grub_linux_claimmap_iterate): New function. Uses the
15194 "available" property in the "memory" node for memory allocation
15195 for kernel in the PowerPC loader.
15196 (grub_linux_load32): Correctly find linux entry point offset.
15197 (grub_linux_load64): Likewise.
15198
15199 2010-11-07 Robert Millan <rmh@gnu.org>
15200
15201 On mips-yeeloong, build with -march=loongson2f when this flag is
15202 available (GCC >= 4.4).
15203 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
15204 `-march=mips3'.
15205 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
15206 or otherwise add -march=mips3.
15207
15208 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
15209
15210 Suppress shell expansion on echo '*' and echo "*" like cases.
15211 Reported by: Jordan Uggla.
15212
15213 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
15214 string arguments before shell expansion.
15215 * tests/grub_cmd_echo.in: New testcases.
15216
15217 2010-11-07 Robert Millan <rmh@gnu.org>
15218
15219 * conf/mips-qemu-mips.rmk: Remove stale file from previous
15220 transition.
15221
15222 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
15223
15224 * grub-core/kern/emu/hostdisk.c
15225 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
15226
15227 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15228
15229 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
15230 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
15231 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
15232
15233 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15234
15235 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
15236
15237 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15238
15239 * util/grub-install.in: Replace useless recomendation to pass
15240 --modules with a recomendation to report a bug.
15241
15242 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15243
15244 Properly register serial terminfo.
15245 Reported by: Jordan Uggla
15246
15247 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
15248 const.
15249 (grub_serial_terminfo_output_template): Likewise.
15250 (grub_cmd_serial): Register "serial" with terminfo.
15251 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
15252 grub_serial_terminfo_output.
15253
15254 2010-11-05 Robert Millan <rmh@gnu.org>
15255
15256 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
15257 needed).
15258
15259 2010-11-05 Robert Millan <rmh@gnu.org>
15260
15261 On Yeeloong, pass machine type information to Linux.
15262
15263 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
15264 (LOONGSON_MACHTYPE): New macro, set to
15265 "machtype=lemote-yeeloong-2f-8.9inches".
15266 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
15267 additional argument to Linux.
15268
15269 2010-11-04 Robert Millan <rmh@gnu.org>
15270
15271 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
15272 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
15273 (its SATA disks are detected as slaveless IDE master drives on
15274 kFreeBSD).
15275 Reported by Carsten Aulbert.
15276
15277 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
15278
15279 * util/bin2h.c (main): Fix spelling error in generated output.
15280
15281 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
15282
15283 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
15284
15285 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15286
15287 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
15288 vga= option is supplied.
15289
15290 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15291
15292 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
15293 * util/grub.d/10_kfreebsd.in: Likewise.
15294 * util/grub.d/10_linux.in: Likewise.
15295 * util/grub.d/20_linux_xen.in: Likewise.
15296
15297 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15298
15299 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
15300 argument as an argument to no-argument option.
15301
15302 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15303
15304 * util/grub.d/10_linux.in: Add missing load_video with explicit
15305 GRUB_GFXPAYLOAD_LINUX.
15306
15307 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15308
15309 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
15310
15311 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15312
15313 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
15314 elements with invlid index.
15315 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15316 * grub-core/disk/raid.c (insert_array): Automatically reallocate
15317 members.
15318 * include/grub/raid.h (grub_raid_member): New struct.
15319 (grub_raid_array): Transform devices and start_sector into usage of
15320 grub_raid_member. All users updated
15321 (allocated_devs): New member.
15322
15323 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15324
15325 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
15326 is modified
15327
15328 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
15329
15330 NetBSD build fix for getline function conflict from gnulib.
15331
15332 * Makefile.util.def (libgrubkern.a): New library for grub kernel
15333 components that depend on gnulib headers.
15334 (libgrubmods.a): Renamed from earlier libgrub.a.
15335 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
15336
15337 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15338
15339 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
15340 install rather than creating a broken install.
15341
15342 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15343
15344 * util/grub-setup.c (argp): Remove misleading example of installing to
15345 a partition.
15346
15347 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15348
15349 * util/grub-setup.c (setup): Clarify the error message.
15350
15351 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15352
15353 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
15354
15355 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15356
15357 * grub-core/kern/emu/misc.c
15358 (grub_make_system_path_relative_to_its_root)
15359 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
15360
15361 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15362
15363 * grub-core/kern/emu/misc.c
15364 (grub_make_system_path_relative_to_its_root): Revert r2882.
15365
15366 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
15367
15368 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
15369 useless field head. All users updated.
15370 (free_subchunk): Correct handling of IN_REGION subchunk.
15371
15372 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
15373
15374 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
15375 (Supported kernels): Likewise.
15376
15377 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
15378
15379 Make mktemp invocations portable.
15380
15381 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
15382 exit if mktemp fails.
15383 * tests/grub_script_blockarg.in: Likewise.
15384 * tests/partmap_test.in: Likewise.
15385 * tests/util/grub-shell-tester.in: Likewise.
15386 * tests/util/grub-shell.in: Likewise.
15387 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15388 * Makefile.am: Likewise, and chain shell commands with `&&'
15389 instead of ';'.
15390 * util/grub-mkrescue.in: Use the same explicit template as above, and
15391 exit if mktemp fails.
15392
15393 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
15394
15395 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
15396 Linux kernel, reported by Dennis Schridde.
15397
15398 2010-10-17 Szymon Janc <szymon@janc.net.pl>
15399
15400 * grub-core/normal/auth.c (grub_auth_check_authentication):
15401 Set-but-not-used variable removed.
15402
15403 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15404
15405 * docs/grub.texi (GNU/Linux): Document APM unavailability with
15406 32-bit linux protocol.
15407
15408 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15409
15410 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
15411 cursor shape for sanity.
15412
15413 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15414
15415 * docs/grub.texi (Installation): Document buggy BIOS install.
15416
15417 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15418
15419 * docs/grub.texi (Installation): Indent.
15420
15421 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15422
15423 * util/grub-setup.c (setup): New parameter allow_floppy.
15424 (arguments): New member allow_floppy.
15425 (argp_parser): Handle --allow-floppy.
15426 (main): Pass allow_floppy.
15427 * util/grub-install.in: New option --allow-floppy passed though to
15428 grub-setup.
15429
15430 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15431
15432 * util/grub-install.in: Handle partitionless disks.
15433
15434 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15435
15436 * util/grub-setup.c (setup): Don't clean blocklists before readability
15437 verfification.
15438
15439 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15440
15441 * docs/grub.texi (Installation): Document embedding zone. Remove
15442 obsolete grub-install example.
15443
15444 2010-10-16 Szymon Janc <szymon@janc.net.pl>
15445
15446 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
15447 Set-but-not-used variable ifdef'ed.
15448 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
15449 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
15450 variable removed.
15451 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
15452 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
15453 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
15454 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
15455 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
15456 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
15457 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
15458 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
15459 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
15460 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
15461 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
15462 Likewise.
15463
15464 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15465
15466 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
15467 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
15468 enum value.
15469
15470 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15471
15472 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
15473 synonym to _S5_. Needed for some DSDTs.
15474
15475 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15476
15477 Userspace ACPI parser debugging.
15478
15479 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
15480 headers and add relevant defines. Don't include standard headers.
15481 (main) [GRUB_DSDT_TEST]: New function.
15482 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
15483 Don't declare functions.
15484
15485 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15486
15487 Remove dead grub_efi_mm_fini.
15488
15489 * grub-core/kern/efi/mm.c (allocated_page): Removed.
15490 (ALLOCATED_PAGES_SIZE): Likewise.
15491 (MAX_ALLOCATED_PAGES): Likewise.
15492 (allocated_pages): Likewise.
15493 (grub_efi_allocate_pages): Don't record allocated pages.
15494 (grub_efi_free_pages): Likewise.
15495 (grub_efi_mm_init): Likewise.
15496 (grub_efi_mm_fini): Removed.
15497
15498 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15499
15500 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
15501 (grub_efi_mm_init): Take into account the memory map size increase.
15502
15503 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15504
15505 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
15506 (serial_hw_put): Wait based on real time rather than port reads. Don't
15507 roken ports.
15508 * include/grub/serial.h (grub_serial_port): New field broken.
15509
15510 2010-10-16 Robert Millan <rmh@gnu.org>
15511
15512 * grub-core/kern/emu/misc.c
15513 (grub_make_system_path_relative_to_its_root): Fix premature return
15514 when processing non-root ZFS filesystems.
15515 Reported by Sergio Talens-Oliag.
15516
15517 2010-10-15 Robert Millan <rmh@gnu.org>
15518
15519 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
15520 guarantee compressed ones are processed first.
15521
15522 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15523
15524 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
15525 grub_efiemu_autocore.
15526
15527 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15528
15529 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
15530 rather than 0x1b.
15531 (grub_console_getkey): Use correct jae opcode rather than ja.
15532
15533 2010-10-12 Robert Millan <rmh@gnu.org>
15534
15535 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
15536 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
15537 variable. All references updated.
15538
15539 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
15540
15541 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
15542
15543 Correctly distinguish mdraid flavours.
15544
15545 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
15546 (insert_array): New argument raid.
15547 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
15548 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
15549 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
15550
15551 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
15552
15553 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
15554 handling of special keys.
15555
15556 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15557
15558 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
15559 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
15560
15561 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15562
15563 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
15564 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
15565 users updated.
15566 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
15567 Use right endpoint when querying descriptor.
15568
15569 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15570
15571 Clear out 0x80 color bit on EFI.
15572 Tested by: decoder
15573 Reported by: decoder and meta tech.
15574
15575 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
15576 (grub_console_setcolorstate): Clear out 0x80 bit.
15577 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
15578 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
15579 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
15580
15581 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15582
15583 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
15584 Set to "auto".
15585
15586 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15587
15588 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
15589 mo_file after freeing.
15590
15591 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15592
15593 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
15594
15595 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15596
15597 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
15598 flags.
15599
15600 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15601
15602 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
15603 usage.
15604
15605 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15606
15607 Put terminfo into core on ieee1275 and yeeloong (needed for console).
15608
15609 * gentpl.py: New groups terminfoinkernel and terminfomodule.
15610 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
15611 and terminfo.h when needed.
15612 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
15613 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
15614 (terminfo): Enable only on terminfokernel.
15615 (extcmd): Likewise.
15616 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
15617 * include/grub/lib/arg.h: Likewise.
15618 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
15619 incorrect usage of ->.
15620
15621 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15622
15623 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
15624 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
15625
15626 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15627
15628 Fix coreboot compilation.
15629
15630 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15631 Take VBE info into account even if only text is supported.
15632 (fill_vbe_info): Take into account the case when only VGA text
15633 is supported.
15634 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
15635 on coreboot, multiboot and qemu.
15636
15637 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15638
15639 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
15640 debug messages.
15641 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
15642
15643 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15644
15645 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
15646 parameters.
15647
15648 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15649
15650 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
15651 if they were BSD-style.
15652
15653 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15654
15655 * grub-core/boot/i386/pc/lnxboot.S: Replace
15656 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
15657 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
15658
15659 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15660
15661 Write embedding zone using Reed-Solomon.
15662
15663 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
15664 * grub-core/Makefile.am (rs_decoder.S): New target.
15665 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
15666 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
15667 (multiboot): Move to RS part.
15668 (post_reed_solomon): New label.
15669 (grub_boot_drive): Move to non-RS part since it's modified in memory
15670 on boot.
15671 Include rs_decoder.S.
15672 * grub-core/lib/reed_solomon.c: New file.
15673 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
15674 New definition.
15675 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
15676 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
15677 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
15678 * include/grub/partition.h (grub_partition_map): Change prototype of
15679 embed to allow returning additional sectors.
15680 * include/grub/reed_solomon.h: New file.
15681 * util/grub-setup.c (setup): Handle Reed-Solomon.
15682
15683 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
15684
15685 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15686 i386 and x86-64 definedness tests.
15687
15688 2010-09-27 Yves Blusseau <blusseau@zetam.org>
15689
15690 Fix generation of kernel_syms.lst
15691
15692 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
15693 ASM_PREFIX
15694
15695 2010-09-26 Robert Millan <rmh@gnu.org>
15696
15697 Support degraded ZFS arrays in "grub-probe -t device" resolution.
15698
15699 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
15700 the pool is an array of devices, iterate through it and return the
15701 first device that passes a stat() test (instead of blindly returning
15702 the first one).
15703
15704 2010-09-26 Robert Millan <rmh@gnu.org>
15705
15706 Build fixes for GNU/kFreeBSD.
15707
15708 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
15709 to programs that require ZFS conversion.
15710 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
15711 kernels that don't have FLOPPY_MAJOR.
15712
15713 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15714
15715 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
15716
15717 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15718
15719 Fix grub-emu build.
15720
15721 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
15722 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
15723 mdraid09 and mdraid1x.
15724
15725 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
15726
15727 Re-enable grub-extras.
15728
15729 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
15730 avoid confusing Automake. Run autogen only twice, once for the top
15731 level and once for grub-core. Add Makefile.util.def and
15732 Makefile.core.def from extra modules to the appropriate autogen
15733 invocations. If Makefile.common exists in an extra module, include
15734 it in both Makefile.util.am and grub-core/Makefile.core.am;
15735 similarly, include any Makefile.util.common file in Makefile.util.am
15736 and any Makefile.core.common file in grub-core/Makefile.core.am.
15737 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
15738 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
15739 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
15740 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
15741
15742 * gentpl.py (gvar_add): Turn GVARS into a set.
15743 (global_variable_initializers): Sort global variables on output.
15744 (vars_init): New function.
15745 (first_time): Likewise.
15746 (library): Ensure that non-global variable initialisations are
15747 emitted before the first time we emit code for a library block.
15748 Append to variables rather than setting them. Only emit
15749 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
15750 each conditional path.
15751 (program): installdir() emits an Autogen macro, so must be passed to
15752 var_add rather than gvar_add.
15753 (data): Likewise.
15754 (script): Likewise.
15755 (rules): New function, centralising handling for different target
15756 types. Set up Guile association lists for first_time and vars_init,
15757 and send most output to a diversion so that variable initialisations
15758 can be emitted first.
15759 (module_rules): Use new rules function.
15760 (kernel_rules): Likewise.
15761 (image_rules): Likewise.
15762 (library_rules): Likewise.
15763 (program_rules): Likewise.
15764 (script_rules): Likewise.
15765 (data_rules): Likewise.
15766
15767 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
15768
15769 * .bzrignore: Add contrib and grub-core/contrib. Remove
15770 grub-core/Makefile.gcry.am.
15771
15772 2010-09-24 Yves Blusseau <blusseau@zetam.org>
15773
15774 * grub-core/lib/LzFind.c: Add missing include.
15775 * grub-core/lib/LzmaEnc.c: Likewise.
15776 * grub-core/script/lexer.c: Likewise.
15777 * grub-core/script/yylex.l: Likewise.
15778 * util/grub-macho2img.c: Likewise.
15779 * util/grub-menulst2cfg.c: Likewise.
15780 * util/grub-mklayout.c: Likewise.
15781 * util/grub-mkpasswd-pbkdf2.c
15782 * util/grub-mkrelpath.c: Likewise.
15783 * util/resolve.c: Likewise.
15784
15785 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
15786
15787 * Makefile.util.def (example_unit_test): Add
15788 grub-core/gnulib/libgnu.a.
15789
15790 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
15791
15792 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
15793
15794 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15795
15796 Support xz compression on yeeloong.
15797
15798 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
15799 * configure.ac: Check for LZMA.
15800 * grub-core/Makefile.core.def (xz_decompress): New target.
15801 (none_decompress): Likewise.
15802 * grub-core/boot/decompressor/minilib.c: New file.
15803 * grub-core/boot/decompressor/none.c: Likewise.
15804 * grub-core/boot/decompressor/xz.c: Likewise.
15805 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
15806 * grub-core/kern/mips/cache_flush.S: Likewise.
15807 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
15808 * grub-core/kern/mips/startup.S: Move first stage to ...
15809 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
15810 nomacro.
15811 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
15812 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
15813 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
15814 Allocate statically.
15815 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
15816 Allocate statically or use scratch. Don't check CRC32.
15817 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
15818 Allocate statically. Don't check CRC32.
15819 * include/grub/decompressor.h: New file.
15820 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
15821 Removed.
15822 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
15823 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
15824 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
15825 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
15826 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
15827 * util/grub-mkimage.c (grub_compression_t): New type.
15828 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
15829 (image_target_desc): New field default_compression.
15830 (image_targets): Adjust yeeloong targets.
15831 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
15832 (compress_kernel): New parameter comp.
15833 (generate_image): Likewise. Handle new compression case.
15834 (options): New option --compression
15835 (help): Likewise.
15836 (main): Handle new option.
15837
15838 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
15839
15840 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
15841
15842 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
15843
15844 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15845 typo in __i386__ conditional.
15846
15847 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15848
15849 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
15850 include.
15851
15852 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15853
15854 Implement EFI and ACPI multiboot2 extensions.
15855
15856 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
15857 new tags as supported.
15858 (acpiv2_size): New function.
15859 (grub_multiboot_get_mbi_size): Take new tags into account.
15860 (grub_multiboot_make_mbi): Add new tags.
15861 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
15862
15863 2010-09-21 Aleš Nesrsta <starous@volny.cz>
15864
15865 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
15866 Added missing configuration of USB device.
15867
15868 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15869
15870 * grub-core/normal/menu_entry.c (run): Make sure we always return
15871 a value.
15872
15873 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15874
15875 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
15876 NumberOfPages is UINT64 according to the UEFI specification, not
15877 UINTN. Fix printf format.
15878
15879 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15880
15881 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
15882 `err' to grub_usb_err_t.
15883 Reported and tested by: KESHAV P.R.
15884
15885 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15886
15887 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
15888 tpart non-const, so that we can assign to it. (Since this is a
15889 typedef, the constness refers to the pointer rather than what it
15890 points to.)
15891
15892 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15893
15894 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
15895 $(top_srcdir)/grub-core/gnulib as well as
15896 $(top_builddir)/grub-core/gnulib.
15897 Reported by: KESHAV P.R.
15898
15899 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15900
15901 * util/grub-install.in: Fix the bootloader ID option to be
15902 consistently --bootloader-id, not --bootloader_id.
15903 Reported by: KESHAV P.R.
15904
15905 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15906
15907 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
15908 check hash checksum." consistently translatable.
15909
15910 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15911
15912 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
15913 $(top_builddir).
15914
15915 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15916
15917 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
15918 (GRUB_MOD_INIT): Register sha1sum command.
15919 (GRUB_MOD_FINI): Unregister sha1sum command.
15920
15921 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15922
15923 Keep boot and grub directory names in sync with utils scripts
15924
15925 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
15926 * config.h.in: Add previous macros.
15927 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
15928 * util/grub-install.in: Use $bootdir and $grubdir variables.
15929
15930 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15931
15932 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
15933 convert partition names to disk names if the new `convert' parameter
15934 is set.
15935 (grub_util_biosdisk_get_grub_dev): If opening the disk device
15936 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
15937 disk in its own right. This can happen with Xen disk images.
15938
15939 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15940
15941 * util/grub-editenv.c: Update strings to avoid warnings when generating
15942 grub.pot file.
15943 * util/grub-setup.c: Likewise.
15944
15945 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15946
15947 * configure.ac: Change version to 1.99~beta0.
15948
15949 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15950
15951 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
15952 Add BADRAM.
15953 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
15954 Likewise.
15955 * include/multiboot.h: Resynced with specification.
15956 * include/multiboot2.h: Likewise.
15957
15958 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15959
15960 Fix po directory handling.
15961
15962 * configure.ac: Create po/Makefile.in rather than po/Makefile.
15963 * grub-core/gnulib/Makefile.am: Import gettext module.
15964 * m4/gnulib-cache.m4: Likewise.
15965 * m4/gnulib-comp.m4: Likewise.
15966 * m4/gettext.m4: New file, from gnulib.
15967 * m4/glibc2.m4: Likewise.
15968 * m4/iconv.m4: Likewise.
15969 * m4/intdiv0.m4: Likewise.
15970 * m4/intl.m4: Likewise.
15971 * m4/intldir.m4: Likewise.
15972 * m4/intlmacosx.m4: Likewise.
15973 * m4/intmax.m4: Likewise.
15974 * m4/inttypes-pri.m4: Likewise.
15975 * m4/lcmessage.m4: Likewise.
15976 * m4/lib-ld.m4: Likewise.
15977 * m4/lib-link.m4: Likewise.
15978 * m4/lib-prefix.m4: Likewise.
15979 * m4/lock.m4: Likewise.
15980 * m4/nls.m4: Likewise.
15981 * m4/po.m4: Likewise.
15982 * m4/printf-posix.m4: Likewise.
15983 * m4/progtest.m4: Likewise.
15984 * m4/threadlib.m4: Likewise.
15985 * m4/uintmax_t.m4: Likewise.
15986 * m4/visibility.m4: Likewise.
15987 * po/Makefile.am: Remove.
15988 * po/Makefile.in.in: New file, from gettext.
15989 ($(DOMAIN).pot-update): Support POTFILES-shell.
15990 * po/Makevars: New file.
15991 * po/POTFILES-shell: Rename to ...
15992 * po/POTFILES-shell.in: ... this. Update.
15993 * po/POTFILES: Rename to ...
15994 * po/POTFILES.in: ... this. Update.
15995 * po/Rules-quot: New file, from gettext.
15996 * po/boldquot.sed: Likewise.
15997 * po/en@boldquot.header: Likewise.
15998 * po/en@quot.header: Likewise.
15999 * po/insert-header.sin: Likewise.
16000 * po/quot.sed: Likewise.
16001 * po/remove-potcdate.sin: Likewise.
16002
16003 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16004
16005 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
16006
16007 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16008
16009 * util/grub.d/20_linux_xen.in: Use submenus.
16010
16011 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16012
16013 Support submenus.
16014
16015 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
16016 parameter submenu. All users updated.
16017 * grub-core/normal/main.c (free_menu): Rename to ...
16018 (grub_normal_free_menu): ... this. Made global.
16019 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
16020 if requested.
16021 * grub-core/normal/menu_entry.c (screen): New field submenu.
16022 (make_screen): Set submenu.
16023 (run): Open new context if requested.
16024 * include/grub/menu.h (grub_menu_entry): New field submenu.
16025 * include/grub/normal.h (grub_normal_free_menu): New proto.
16026
16027 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16028
16029 Menu entries extractor.
16030
16031 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
16032 variants.
16033 (GRUB_MOD_INIT): Register new variants.
16034 (GRUB_MOD_FINI): Unregister new variants.
16035 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
16036 into grub_cmd_legacy_source.
16037 (grub_cmd_legacy_source): Implement extractor variants.
16038 (GRUB_MOD_INIT): Register new variants.
16039 (GRUB_MOD_FINI): Unregister new variants.
16040 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
16041 as an extractor.
16042 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
16043 search as an extractor.
16044 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
16045 test as an extractor.
16046 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
16047 as an extractor.
16048 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
16049 (grub_env_new_context): New function.
16050 (grub_env_context_open): Likewise.
16051 (grub_env_extractor_open): Likewise.
16052 (grub_env_extractor_close): Likewise.
16053 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
16054 grub_extractor_level.
16055 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
16056 * include/grub/env.h (grub_env_extractor_open): New proto.
16057 (grub_env_extractor_close): Likewise.
16058 * include/grub/normal.h (grub_extractor_level): New external variable.
16059
16060 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16061
16062 Make cutmem accept a region specification.
16063 Suggested by: Samuel Thibault
16064
16065 * grub-core/mmap/mmap.c (parsemem): New function.
16066 (grub_cmd_cutmem): Handle new arguments.
16067
16068 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16069
16070 New command cutmem.
16071
16072 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
16073 (GRUB_MOD_INIT): Register new command.
16074 (GRUB_MOD_FINI): Unregister new command.
16075
16076 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16077
16078 Support some annoying BSD and Minix subpartitions.
16079
16080 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
16081 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
16082 Properly handle concatenation.
16083 * grub-core/kern/device.c (grub_device_iterate): Likewise.
16084 * grub-core/normal/completion.c (iterate_partition): Likewise.
16085 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
16086 contain partition. All users updated.
16087 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
16088 struct.
16089 (grub_openbsdlabel_partition_map): Likewise.
16090 (bsdlabel_partition_map_iterate): Rename to ..
16091 (iterate_real): ... this. New arguments sector, freebsd and pmap.
16092 (bsdlabel_partition_map_iterate): New function.
16093 (netopenbsdlabel_partition_map_iterate): Likewise.
16094 (netbsdlabel_partition_map_iterate): Likewise.
16095 (openbsdlabel_partition_map_iterate): Likewise.
16096 (GRUB_MOD_INIT): Register new partmaps.
16097 (GRUB_MOD_FINI): Unregister new partmaps.
16098 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
16099 (grub_partition_msdos_iterate): ... this. All users updated.
16100 Don't support embedding other than in a minix partition.
16101 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
16102 proto.
16103 * include/grub/partition.h (grub_partition): New field msdostype.
16104 * util/grub-install.in: Handle openbsd and netbsd types being in
16105 part_bsd module.
16106
16107 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16108
16109 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
16110
16111 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
16112 * grub-core/Makefile.core.def (mdraid): Renamed to ...
16113 (mdraid09): ... this.
16114 (mdraid1x): New module.
16115 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
16116 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
16117
16118 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16119
16120 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
16121 vsprintf.
16122
16123 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16124
16125 * grub-core/commands/efi/lsefimmap.c: Correct header.
16126 * NEWS: Update.
16127
16128 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16129
16130 * util/grub-editenv.c (argp_parser): Don't pass translated strings
16131 as printf format strings; the translations might contain '%' which
16132 could cause a crash.
16133 (main): Likewise.
16134 * util/grub-fstest.c (argp_parser): Likewise.
16135 * util/grub-setup.c (argp_parser): Likewise.
16136 (main): Likewise.
16137
16138 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16139
16140 Use argp in grub-fstest.
16141
16142 * util/grub-fstest.c: Don't include getopt.h.
16143 Include argp.h.
16144 (root): New variable.
16145 (args_count): Likewise.
16146 (nparm): Likewise.
16147 (num_disks): Likewise.
16148 (images): Likewise.
16149 (cmd): Likewise.
16150 (debug_str): Likewise.
16151 (args): Likewise.
16152 (options): Transformed to argp.
16153 (usage): Removed.
16154 (main): Split argument parsing into ...
16155 (argp_parser): ... this. Changed to argp format.
16156 (argp): New variable.
16157 (main): Use argp_parse.
16158
16159 2010-09-20 Tristan Gingold <gingold@free.fr>
16160 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
16161 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16162
16163 * grub-core/commands/efi/lsefimmap.c: New file.
16164 * grub-core/Makefile.core.def (lsefimmap): New module.
16165 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
16166
16167 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16168
16169 Pause the execution (10s max) if any errors are displayed so the user
16170 has a chance to see them.
16171
16172 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
16173 (grub_print_error): Increment grub_err_printed_errors.
16174 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
16175 execution if any errors were displayed.
16176 (show_menu): Remove old code for pause.
16177 * grub-core/normal/menu_entry.c (run): Likewise.
16178 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
16179 users updated.
16180 (grub_normal_get_char_counter): Likewise.
16181 * include/grub/err.h (grub_err_printed_errors): New external variable.
16182 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
16183
16184 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16185
16186 Support multiboot VBE info.
16187
16188 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
16189 Take VBE info into account.
16190 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
16191 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16192 Call fill_vbe_info when appropriate.
16193 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
16194 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
16195 as supported.
16196 (grub_multiboot_get_mbi_size): Take new tags into account.
16197 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
16198 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16199 Call fill_vbe_tag when appropriate.
16200 (grub_multiboot_make_mbi): Properly align tags.
16201 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
16202 function.
16203 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
16204 proto.
16205 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
16206
16207 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16208
16209 Suport manual terminal geometry specification.
16210
16211 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
16212 Save state in grub_ofconsole_terminfo_output.
16213 (grub_ofconsole_term): Use grub_terminfo_getwh.
16214 (grub_ofconsole_getwh): Removed.
16215 * grub-core/term/serial.c (grub_serial_getwh): Removed.
16216 (grub_serial_term): Use grub_terminfo_getwh.
16217 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
16218 (options): New struct.
16219 (OPTION_*): New enum.
16220 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
16221 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
16222 width and height.
16223 (grub_terminfo_getwh): New proto.
16224 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
16225
16226 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16227
16228 Handle legacy "terminal" command.
16229
16230 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
16231 and FLAG_TERMINAL.
16232 (legacy_commands): Add terminal and title.
16233 (grub_legacy_parse): Handle terminal. Simplify title handling.
16234
16235 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16236
16237 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
16238 parameters overflow.
16239
16240 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16241
16242 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
16243 widthspec.h.
16244
16245 * docs/grub.texi (Shell-like scripting): Document `!'.
16246 (Network): Simplify using new i386-pc-pxe format. Mention
16247 grub-mknetdir.
16248
16249 * NEWS: Update.
16250
16251 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16252
16253 * Makefile.am (SUBDIRS): Restore "."; it's important to force
16254 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
16255 when needed.
16256
16257 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16258
16259 * grub-core/commands/efi/lsefisystab.c: Correct header.
16260 * grub-core/commands/efi/lssal.c: Likewise.
16261 * grub-core/commands/testload.c: Likewise.
16262
16263 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16264
16265 * util/grub-mkrescue.in: Add explicit root argument to --set to
16266 prevent the UUID being interpreted as an argument to --set (matches
16267 previous change to prepare_grub_to_access_device).
16268
16269 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16270
16271 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
16272 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
16273 the verbosity of later #ifs.
16274 (find_partition_start): Define this function on FreeBSD too.
16275 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
16276 function.
16277 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
16278 on FreeBSD.
16279
16280 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16281
16282 * util/grub-editenv.c: Use argp instead of getopt.
16283
16284 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16285
16286 * util/grub-setup.c: Use argp instead of getopt.
16287
16288 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16289
16290 Use gnulib-tool to create gnulib source files.
16291
16292 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
16293 grub-core/gnulib directories
16294 * .bzignore: Add **/.deps and autogenerated gnulib files
16295 * configure.ac: Assign auxiliary directory to build-aux, add invocation
16296 of gnulib macros, add grub-core/gnulib/Makefile
16297 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
16298 include m4 directory to aclocal.
16299 * Makefile.util.def: Remove direct compilation of gnulib source files
16300 and use the new grub-core/gnulib/libgnu.a.
16301 * build-aux/config.rpath: move config.rpath from top directory to
16302 build-aux
16303 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
16304 in gnulib headers
16305 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
16306 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
16307 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
16308 header.
16309 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
16310 string.
16311
16312 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16313
16314 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
16315 grub-core/genmod.sh and grub-core/gensyminfo.sh
16316
16317 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
16318
16319 Add a test for echo command options.
16320
16321 * tests/grub_cmd_echo.in: New test.
16322 * Makefile.util.def: Rules for new test.
16323
16324 2010-09-20 Szymon Janc <szymon@janc.net.pl>
16325
16326 Remove crc.mod and move crc command to hashsum.mod.
16327 Remove lib/crc.c - users updated to use gcrypt implementation.
16328
16329 * grub-core/commands/crc.c: Removed.
16330 * grub-core/Makefile.core.def (crc): Module removed.
16331 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
16332 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
16333 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
16334 * grub-core/lib/crc.c: Removed.
16335 * include/grub/lib/crc.h: Removed.
16336 * Makefile.util.def (crc): Remove lib/crc.c
16337 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
16338 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
16339 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
16340 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
16341 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
16342 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
16343
16344 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16345
16346 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
16347
16348 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16349
16350 Split config.h for util and core.
16351
16352 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
16353 (ADDR32): Likewise.
16354 (DATA32): Likewise.
16355 (BSS_START_SYMBOL): Likewise.
16356 (END_SYMBOL): Likewise.
16357 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
16358 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
16359 * config.h.in: New file.
16360 * configure.ac: Use config-util.h as config define file.
16361 Rename MACHINE into GRUB_MACHINE. All users updated.
16362 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
16363 updated.
16364 (NESTED_FUNC_ATTR): Likewise.
16365 Substitue new variables.
16366 (COND_HAVE_ASM_USCORE): New conditional.
16367 * grub-core/Makefile.am (ASM_PREFIX): New variable.
16368 (kernel_syms.lst): Use ASM_PREFIX.
16369 * grub-core/kern/emu/console.c: Include config-util.h.
16370 * grub-core/kern/emu/misc.c: Likewise.
16371 * grub-core/kern/emu/mm.c: Likewise.
16372 * include/grub/emu/misc.h: Likewise.
16373 * include/grub/libgcc.h: Likewise.
16374
16375 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16376
16377 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
16378 constants usage.
16379 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
16380 Fix GRUB_TERM_KEY_* constants usage.
16381 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
16382
16383 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16384
16385 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
16386 print pointer.
16387 * grub-core/bus/usb/uhci.c: Remove empty define.
16388 (grub_uhci_check_transfer): Add missing cast.
16389 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
16390 print pointer.
16391 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
16392 PRIuGRUB_SIZE.
16393 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
16394
16395 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16396
16397 * grub-core/Makefile.core.def (legacycfg): Add
16398 lib/i386/pc/vesa_modes_table.c on emu.
16399
16400 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16401
16402 Reduce number of temporary files generated by build system.
16403
16404 * grub-core/gencmdlist.sh: Removed.
16405 * grub-core/genfslist.sh: Removed.
16406 * grub-core/genhandlerlist.sh: Removed.
16407 * grub-core/genmodsrc.sh: Removed.
16408 * grub-core/genpartmaplist.sh: Removed.
16409 * grub-core/genparttoollist.sh: Removed.
16410 * grub-core/gentermiinallist.sh: Removed.
16411 * grub-core/genvideolist.sh: Removed.
16412
16413 * grub-core/genmod.sh.in: New file.
16414 * grub-core/gensyminfo.sh.in: New file.
16415
16416 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
16417 * conf/Makefile.extra-dist: Update with new files.
16418 * gentpl.py: Remove rules related to unnecessary temporary files.
16419 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
16420 and und-* files.
16421 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
16422 genmod.sh scripts.
16423 * grub-core/bus/usb/uhci.c: Remove empty #define.
16424 * grub-core/genmoddep.awk: Updated with new syminfo format.
16425 * util/bash-completion.d/Makefile.am: Add config.log to
16426 CLEANFILES.
16427
16428 2010-09-19 Yves Blusseau <blusseau@zetam.org>
16429
16430 * Makefile.util.def: Add forgotten $(LIBINTL) library.
16431
16432 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16433
16434 * util/grub-mkconfig.in: Check the config script for syntax errors
16435 before saving.
16436
16437 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
16438 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16439
16440 * Makefile.util.def (grub-install): Use util/grub-install.in on all
16441 platforms.
16442 * util/grub-install.in: Add EFI and IEEE1275 support.
16443 * util/i386/efi/grub-install.in: Removed.
16444 * util/ieee1275/grub-install.in: Likewise.
16445
16446 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16447
16448 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
16449 (grub_cmd_cmosclean): Likewise.
16450 (GRUB_MOD_INIT): Register command cmosclean.
16451 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
16452 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
16453
16454 2010-09-18 Carles Pina i Estany <carles@pina.cat>
16455 2010-09-18 Aleš Nesrsta <starous@volny.cz>
16456 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16457
16458 Add keyboard layouts support.
16459
16460 * Makefile.util.def (grub-mklayout): New file.
16461 (grub-kbdcomp): New script.
16462 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
16463 Add keyboard_layouts.h.
16464 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
16465 commands/boot.c on yeeloong.
16466 (keylayouts): New module.
16467 * grub-core/bus/usb/ohci.c
16468 * grub-core/bus/usb/uhci.c
16469 * grub-core/bus/usb/usbhub.c (rescan): New variable.
16470 (grub_usb_add_hub): Poll interrupt pipe for device handling.
16471 (attach_root_port): Likewise.
16472 (poll_nonroot_hub): Likewise.
16473 (grub_usb_poll_devices): Likewise.
16474 (detach_device): Close transfer.
16475 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
16476 function.
16477 (grub_usb_bulk_setup_readwrite): Likewise.
16478 (grub_usb_bulk_finish_readwrite): Likewise.
16479 * grub-core/commands/keylayouts.c: New file.
16480 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
16481 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
16482 aliases.
16483 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
16484 support scancode 2.
16485 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
16486 * include/grub/keyboard_layouts.h: New file.
16487 * util/grub-mklayout.c: New file.
16488 * util/grub-kbdcomp.in: Likewise.
16489
16490 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16491
16492 Unify memory types.
16493
16494 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
16495 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
16496 types.
16497 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
16498 (grub_upper_mem): Likewise.
16499 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
16500 * include/grub/memory.h (grub_memory_type_t): New enum.
16501 All users updated.
16502
16503 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16504
16505 * grub-core/Makefile.core.def (lsapm): New module.
16506 * grub-core/commands/i386/pc/lsapm.c: New file.
16507 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
16508 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
16509 Likewise.
16510 * include/grub/i386/pc/apm.h: New file.
16511 * include/multiboot.h (multiboot_apm_info): New struct.
16512
16513 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16514
16515 GRUB-legacy configuration file support.
16516
16517 * Makefile.util.def (grub-menulst2cfg): New util.
16518 * docs/man/grub-menulst2cfg.h2m: New file.
16519 * grub-core/Makefile.core.def (legacycfg): New module.
16520 * grub-core/commands/legacycfg.c: New file.
16521 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
16522 (grub_normal_add_menu_entry): ... this.
16523 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
16524 (grub_normal_set_password): ...this.
16525 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
16526 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
16527 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
16528 * grub-core/lib/legacy_parse.c: New file.
16529 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
16530 * include/grub/i386/pc/vesa_modes_table.h: New file.
16531 * include/grub/legacy_parse.h: Likewise.
16532 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
16533 * util/grub-menulst2cfg.c: New file.
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): Initialise node.
16539
16540 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16541
16542 * grub-core/kern/emu/hostdisk.c
16543 (convert_system_partition_to_system_disk): Fix devmapper memory pool
16544 leak.
16545 Reported and based on patch by: Modestas Vainius.
16546
16547 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16548
16549 Fix DM-RAID probing with recent versions of device-mapper udev
16550 rules.
16551
16552 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
16553 canonicalise device paths under /dev/mapper/.
16554 (convert_system_partition_to_system_disk): Compare the
16555 uncanonicalised path to /dev/mapper/ rather than the canonicalised
16556 path, since device nodes under /dev/mapper/ are often symlinks.
16557
16558 2010-09-17 Yves Blusseau <blusseau@zetam.org>
16559
16560 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
16561
16562 2010-09-16 Yves Blusseau <blusseau@zetam.org>
16563
16564 * configure.ac: Avoid some annoying error messages if freetype-config
16565 program is not found.
16566
16567 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16568
16569 Support RAID on virtio devices, and others.
16570
16571 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
16572 Rename to ...
16573 [__MINGW32__] (grub_find_device): ... this.
16574 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
16575 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
16576 reasonable default if dir is NULL.
16577 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
16578 ...
16579 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
16580 (grub_guess_root_device): Update callers.
16581 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
16582
16583 * util/raid.c (grub_util_getdiskname): Remove.
16584 (grub_util_raid_getmembers): Use grub_find_device rather than
16585 grub_util_getdiskname.
16586
16587 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16588
16589 * docs/grub.texi (serial): Remove obsolete comment about GRUB
16590 needing to be compiled with serial support.
16591 (ls): Indicate that multiple files are accepted.
16592 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
16593 indicate that multiple files are accepted.
16594
16595 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16596
16597 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
16598 libgrub_a_init.c, and util/bash-completion.d/grub.
16599
16600 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16601
16602 * util/grub-setup.c (setup): Fix incorrect container semantics.
16603
16604 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16605
16606 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
16607 misusage.
16608 Reported by: J. Nick Terry
16609
16610 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16611
16612 Move embedding routines to partmap sources files.
16613
16614 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
16615 [GRUB_UTIL]: New variable.
16616 (gpt_partition_map_iterate): Set part.parent.
16617 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
16618 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
16619 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
16620 New function.
16621 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
16622 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
16623 (grub_partition_map) [GRUB_UTIL]: New field embed.
16624 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
16625 (setup): Use ->embed.
16626
16627 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16628
16629 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
16630 function.
16631 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
16632 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
16633
16634 2010-09-15 Yves Blusseau <blusseau@zetam.org>
16635
16636 Add function to get completions from usage.
16637
16638 * util/bash-completion.d/grub-completion.bash.in: Add function to get
16639 completions from usage. Use LC_ALL=C to get options properly.
16640
16641 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16642
16643 * grub-core/gnulib/basename-lgpl.c: Imported.
16644 * grub-core/gnulib/basename.c: Likewise.
16645 * grub-core/gnulib/dirname-lgpl.c: Likewise.
16646 * grub-core/gnulib/dirname.c: Likewise.
16647 * grub-core/gnulib/dirname.h: Likewise.
16648 * grub-core/gnulib/stripslash.c: Likewise.
16649
16650 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16651
16652 * grub-core/gnulib/error.c: Resynced.
16653 * grub-core/gnulib/getopt.c: Likewise.
16654 * grub-core/gnulib/getopt_int.h: Likewise.
16655 * grub-core/gnulib/regex.h: Likewise.
16656 * grub-core/gnulib/regex_internal.c: Likewise.
16657 * grub-core/gnulib/regex_internal.h: Likewise.
16658
16659 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16660
16661 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
16662 CRC calculations and validity checks.
16663 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
16664 calculations.
16665
16666 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16667
16668 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
16669
16670 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16671
16672 Fix incorrect echo options handling.
16673 Reported by: Yves Blusseau.
16674
16675 * include/grub/command.h (grub_command_flags_t): New flags
16676 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
16677 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
16678 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
16679
16680 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16681
16682 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
16683 users updated.
16684 (GRUB_COMMAND_FLAG_MENU): Likewise.
16685 (GRUB_COMMAND_FLAG_BOTH): Likewise.
16686 (GRUB_COMMAND_FLAG_TITLE): Removed.
16687 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
16688 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
16689 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
16690 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
16691 (grub_command_flags_t): New enum. All users updated.
16692
16693 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
16694
16695 Fix solaris compilation.
16696
16697 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
16698 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
16699 (grub-emu-list): Likewise.
16700
16701 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16702
16703 Remove deprecated root command.
16704
16705 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
16706 updated.
16707
16708 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16709
16710 * util/i386/pc/grub-setup.c: Merge this ...
16711 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
16712 * util/grub-setup.c: ... into this.
16713 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
16714 New struct.
16715
16716 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16717
16718 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
16719 possible.
16720
16721 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16722
16723 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
16724 allocate p.
16725
16726 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16727
16728 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
16729 explicit root argument to set to prevent UUID to be interpreted as
16730 argument to set.
16731
16732 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16733
16734 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
16735
16736 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16737
16738 Don't export grub_gate_a20.
16739
16740 * grub-core/kern/i386/pc/init.c: Remove leftovers.
16741 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
16742 to ...
16743 (grub_gate_a20): ... this. All users updated.
16744 * include/grub/i386/pc/init.h: Removed. All users updated.
16745
16746 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16747
16748 Create euro.pf2 which supports most European languages.
16749
16750 * Makefile.am (grubdata_DATA): Add euro.pf2.
16751 (euro.pf2): New target.
16752 (CLEANFILES): Add euro.pf2.
16753
16754 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16755
16756 * configure.ac: Disable emu-usb by default to prevent inadvertent
16757 device takeover.
16758
16759 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16760
16761 Disable usbserial on grub-emu since our libusb code isn't good enough
16762 yet.
16763
16764 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
16765 (usbserial_pl2303): Likewise.
16766 (usbserial_ftdi): Likewise.
16767
16768 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16769
16770 * include/grub/disk.h (grub_disk): Remove has_partitions.
16771 All users updated.
16772 * disk/loopback.c (grub_loopback): Remove has_partitions.
16773 All users updated.
16774 (options): Remove partitions. All users updated.
16775 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
16776 * util/i386/pc/grub-setup.c (setup): copy partition table only when
16777 actual partition table is found.
16778
16779 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16780
16781 Remove readability checks (too many false negatives).
16782
16783 * util/grub-install.in: Remove readability checks.
16784 * util/grub-mkconfig.in: Likewise.
16785 * util/grub.d/10_hurd.in: Likewise.
16786 * util/grub.d/10_kfreebsd.in: Likewise.
16787 * util/grub.d/10_linux.in: Likewise.
16788 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
16789 way.
16790
16791 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16792
16793 Enable acpi shutdown on all ACPI platforms.
16794
16795 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
16796 on coreboo, multiboot and EFI.
16797 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
16798 (grub_acpi_halt): Likewise.
16799 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
16800 (grub_cmd_halt): Don't call grub_acpi_halt directly.
16801 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
16802 * grub-core/lib/i386/halt.c (grub_halt)
16803 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
16804
16805 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16806
16807 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
16808 context.
16809
16810 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16811
16812 * grub-core/video/efi_gop.c: Fix over-80-chars line.
16813 * grub-core/video/efi_uga.c: Likewise.
16814
16815 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16816
16817 Filter devaliases and never open same device twice.
16818
16819 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
16820 (last_ihandle): Likewise.
16821 (ofdisk_hash_ent): New member shortest.
16822 (ofdisk_hash_add): Add canonical path too.
16823 (scan): New function.
16824 (grub_ofdisk_iterate): Iterate over hashed entries.
16825 (compute_dev_path): Don't add :0.
16826 (grub_ofdisk_open): Don't really open the disk.
16827 (grub_ofdisk_close): Avoid closing unrelated disk.
16828 (grub_ofdisk_read): Implement reopen logic.
16829 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
16830 New function.
16831 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
16832 New proto.
16833
16834 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16835
16836 Fix sparc64.
16837
16838 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
16839 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
16840 right address. Add sparc64_ieee1275_ldflags.
16841 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
16842 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
16843 to grub_host_to_target_addr
16844 (load_image): Likewise.
16845
16846 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16847
16848 * grub-core/normal/completion.c (complete_file): Handle device
16849 containing slash.
16850 Fix based on patch by Doug Nazar.
16851
16852 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16853
16854 grub-mknetdir script.
16855
16856 * Makefile.util.def (grub-mknetdir): New module.
16857 * tests/util/grub-shell.in: Support boot=net
16858 * util/grub-mknetdir.in: New file.
16859
16860 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16861
16862 videoinfo on non-vbe.
16863
16864 * grub-core/Makefile.core.def (vbeinfo): Removed.
16865 (vbetest): Removed.
16866 (videoinfo): New module.
16867 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
16868 * grub-core/commands/i386/pc/vbetest.c: Removed.
16869 * grub-core/commands/videoinfo.c: New file.
16870 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
16871 specification.
16872 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
16873 as vbetest.
16874 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
16875 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
16876 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
16877 mode_number. New parameter mode. All users updated.
16878 (grub_video_gop_iterate): New function.
16879 (grub_video_efi_gop): New member iterate.
16880 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
16881 (grub_vbe_set_video_mode): Remove setting useless fields.
16882 (vbe2videoinfo): New function.
16883 (grub_video_vbe_iterate): Likewise.
16884 (grub_video_vbe_setup): Use vbe2videoinfo.
16885 (grub_video_vbe_print_adapter_specific_info): New function.
16886 (grub_video_vbe_adapter): New fields iterate and
16887 print_adapter_specific_info.
16888 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
16889 All users updated.
16890 (grub_video_mode_info): New field mode_number.
16891 (grub_video_adapter): New fields iterate and
16892 print_adapter_specific_info.
16893
16894 2010-09-13 Tristan Gingold <gingold@free.fr>
16895 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
16896 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16897
16898 * grub-core/commands/efi/lsefisystab.c: New file.
16899 * grub-core/commands/efi/lssal.c: Likewise.
16900 * grub-core/Makefile.core.def (lsacpi): New module.
16901 (lsefisystab): Likewise.
16902 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
16903 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
16904 (grub_efi_sal_system_table): New struct.
16905 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
16906 (grub_efi_sal_system_table_memory_descriptor): Likewise.
16907 (grub_efi_sal_system_table_platform_features): Likewise.
16908 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
16909 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
16910 (grub_efi_sal_system_table_ap_wakeup): Likewise.
16911 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
16912
16913 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16914
16915 Support explicit user claim that a device is BIOS-visible.
16916
16917 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
16918 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
16919 * grub-core/kern/emu/hostdisk.c
16920 (convert_system_partition_to_system_disk): Support mdX.
16921 (find_system_device): New parameter add. All users updated.
16922 (grub_util_biosdisk_is_present): New function.
16923 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
16924 proto.
16925
16926 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16927
16928 Search hints support.
16929
16930 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
16931 All users updated.
16932
16933 2010-09-13 Yves Blusseau <blusseau@zetam.org>
16934
16935 Bash completion script for util commands
16936
16937 * Makefile.am: Add util/bash-completion.d directory
16938 * configure.ac: Likewise.
16939 * util/bash-completion.d/Makefile.am: New file.
16940 * util/bash-completion.d/grub-completion.bash.in: Likewise.
16941
16942 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16943
16944 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
16945 (print_backlog): set backlog_ucs4 and backlog_glyphs.
16946 Reported by: Yves Blusseau.
16947
16948 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16949
16950 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
16951 partition size and offset.
16952
16953 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16954
16955 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
16956
16957 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16958
16959 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
16960
16961 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16962
16963 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
16964 (grub_xvasprintf): Likewise.
16965
16966 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16967
16968 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
16969
16970 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16971
16972 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
16973 args ending with NULL.
16974
16975 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16976
16977 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
16978 pointer.
16979
16980 2010-09-11 Szymon Janc <szymon@janc.net.pl>
16981
16982 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
16983
16984 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16985
16986 Shutdown using ACPI.
16987
16988 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
16989 * grub-core/commands/acpihalt.c: New file.
16990 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
16991 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
16992 (grub_acpi_halt): New proto.
16993 (GRUB_ACPI_SLP_EN): New const.
16994 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
16995 (GRUB_ACPI_OPCODE_*): New enum.
16996 (GRUB_ACPI_EXTOPCODE_*): Likewise.
16997
16998 2010-09-11 Tristan Gingold <gingold@free.fr>
16999 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
17000 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17001
17002 * commands/lsacpi.c: New file.
17003 * grub-core/Makefile.core.def (lsacpi): New module.
17004 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
17005 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
17006 (grub_acpi_madt_entry_header): New struct.
17007 (grub_acpi_madt): Likewise.
17008 (grub_acpi_madt_entry_interrupt_override): Likewise.
17009 (grub_acpi_madt_entry_sapic): Likewise.
17010 (grub_acpi_madt_entry_lsapic): Likewise.
17011 (grub_acpi_madt_entry_platform_int_source): Likewise.
17012 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
17013 (PRIuGRUB_UINT32_T): Likewise.
17014 (PRIxGRUB_UINT64_T): Likewise.
17015
17016 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17017
17018 Implement loading palette on ieee1275_fb.
17019
17020 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
17021 (have_setcolors): Likewise.
17022 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
17023 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
17024 (grub_video_ieee1275_set_palette): Implement.
17025
17026 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17027 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
17028
17029 * util/grub-install.in (grub_partition): New variable.
17030 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
17031 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
17032 Fixes a bug reported by Yves Blusseau.
17033
17034 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17035
17036 Fix emu on mipsel.
17037
17038 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
17039 =grub_cpu_flush_cache on all mips and not only yeeloong.
17040 * configure.ac (COND_mips): New conditional.
17041 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
17042 platforms.
17043 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
17044 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
17045 [GRUB_LINKER_HAVE_INIT]: New function.
17046 (grub_emu_post_init): Likewise.
17047 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
17048 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
17049 * include/grub/cache.h (_mips): Include mips/cache.h.
17050 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
17051 LVM and RAID prototypes.
17052 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
17053 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
17054 function.
17055
17056 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
17057
17058 * util/grub-install.in: Don't try to verify core.img until after
17059 running grub-mkimage to create it.
17060
17061 2010-09-10 Robert Millan <rmh@gnu.org>
17062
17063 * util/grub.d/10_hurd.in: Add misc readability checks.
17064 * util/grub.d/10_kfreebsd.in: Likewise.
17065 * util/grub.d/10_linux.in: Likewise.
17066
17067 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
17068
17069 * util/grub-install.in: ${imgext} won't be defined here until the
17070 install branch is merged. For the meantime, only verify core.img on
17071 i386-pc and sparc64-ieee1275 platforms.
17072
17073 2010-09-10 Robert Millan <rmh@gnu.org>
17074
17075 Solaris support in grub_find_zpool_from_dir(). Thanks
17076 Seth Goldberg for referring to getextmntent() facility.
17077
17078 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
17079 `sys/mkdev.h'.
17080 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
17081 `<sys/mnttab.h>'.
17082 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
17083 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
17084 method for finding zpool name.
17085
17086 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
17087
17088 grub-fstest needs the host and hostfs modules while other utilities
17089 actively require those modules to be absent, so grub-fstest needs
17090 its own initialisation and finalisation code.
17091
17092 * Makefile.am (grub_fstest.pp): New target.
17093 (grub_fstest_init.lst): Likewise.
17094 (grub_fstest_init.c): Likewise.
17095 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
17096
17097 2010-09-10 Robert Millan <rmh@gnu.org>
17098
17099 * configure.ac: Check for `struct statfs.f_fstypename' and
17100 `struct statfs.f_mntfromname'.
17101
17102 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
17103 kFreeBSD-specific code.
17104
17105 2010-09-10 Robert Millan <rmh@gnu.org>
17106
17107 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
17108 on ZFS. Now non-main filesystems are supported as / too.
17109
17110 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
17111
17112 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
17113 and grub-core/disk/host.c to ...
17114 (grub-fstest): ... here. Having the host disk implementation
17115 present confuses grub-probe and other utility programs.
17116
17117 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
17118 when writing to a file, not when writing to stdout.
17119
17120 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
17121
17122 * tests/partmap_test.in: New test for partitions.
17123 * Makefile.util.def: Rules for new test.
17124
17125 2010-09-09 Robert Millan <rmh@gnu.org>
17126
17127 * util/grub-probe.c (probe): Fix a pair of unhandled error
17128 conditions.
17129
17130 2010-09-09 Robert Millan <rmh@gnu.org>
17131
17132 Basic Btrfs support (detection and UUID).
17133
17134 * grub-core/fs/btrfs.c: New file.
17135 * Makefile.util.def (library): Register btrfs.c.
17136 * grub-core/Makefile.core.def: Likewise.
17137
17138 2010-09-08 Robert Millan <rmh@gnu.org>
17139
17140 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
17141 with (optional) parameters to specify device and relative path.
17142 * util/grub-install.in: Use is_path_readable_by_grub() to
17143 verify readability of a few critical files.
17144 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
17145 verify readability of grub.cfg.new.
17146
17147 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17148
17149 Split minix.mod into minix.mod and minix2.mod.
17150
17151 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
17152 * grub-core/Makefile.core.def (minix2): New module.
17153 * grub-core/fs/minix.c: Use definitions instead of runtime version
17154 checking.
17155 * grub-core/fs/minix2.c: New file.
17156
17157 2010-09-08 Yves Blusseau <blusseau@zetam.org>
17158
17159 Add new --boot-directory option to replace --root-directory
17160
17161 * util/grub-install.in: Add new --boot-directory option
17162 * util/grub-reboot.in: Likewise.
17163 * util/grub-set-default.in: Likewise.
17164
17165 2010-09-08 Yves Blusseau <blusseau@zetam.org>
17166
17167 * util/grub-mkconfig.in: Use new variable.
17168
17169 2010-09-08 Yves Blusseau <blusseau@zetam.org>
17170
17171 * configure.ac: Define some useful variables.
17172
17173 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17174
17175 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
17176 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
17177 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
17178 Use terminfo and don't use cursor-on/cursor-off unless it's known
17179 to work.
17180 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
17181 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
17182
17183 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
17184
17185 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
17186 starts with "(,", fill the drive containing the loaded image in
17187 between those two characters, but expect that a full partition
17188 specification including partition map names will follow.
17189
17190 2010-09-08 Robert Millan <rmh@gnu.org>
17191
17192 * configure.ac: Remove `--enable-grub-fstest' option.
17193 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
17194
17195 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
17196 `grub-fstest' instead of `grub-probe' for readability verification.
17197 * util/grub-probe.c (probe): Remove readability verification kludge.
17198
17199 2010-09-08 Robert Millan <rmh@gnu.org>
17200
17201 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
17202 initializing `GRUB_FS'.
17203
17204 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
17205
17206 Not command (!) support to GRUB script.
17207
17208 * tests/grub_script_not.in: New test.
17209 * Makefile.util.def: Rules for new test.
17210
17211 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
17212 ! command as a special case.
17213 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
17214
17215 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17216
17217 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
17218 grub_free.
17219
17220 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17221
17222 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
17223
17224 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17225
17226 * docs/grub.texi (Shell-like scripting): Documentation for break,
17227 continue, shift and return commands.
17228
17229 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
17230
17231 Rename CD-ROM to cd on BIOS.
17232
17233 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
17234 "cd".
17235 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
17236
17237 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17238
17239 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
17240 * util/grub-probe.c (main): Likewise.
17241 * util/i386/pc/grub-setup.c (main): Likewise.
17242 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
17243 Reported and debugged by: alexxy
17244
17245 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17246
17247 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
17248 diagnostic info.
17249
17250 2010-09-05 Jo Shields <directhex@apebox.org>
17251
17252 * util/grub.d/30_os-prober.in: Add missing classes.
17253
17254 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17255
17256 * docs/grub.texi (Theme file format): Document new position format.
17257
17258 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17259
17260 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
17261 a table. Use @code instead of @verbatim.
17262
17263 2010-09-05 Colin D Bennett <colin@gibibit.com>
17264
17265 Gfxmenu documentation.
17266
17267 * docs/grub.texi (Theme file format): New chapter.
17268
17269 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17270
17271 * grub-core/Makefile.core.def (xzio): New module.
17272 * grub-core/io/xzio.c: New file.
17273 * grub-core/lib/xzembed/xz.h: New file (from xembed).
17274 * grub-core/lib/xzembed/xz_config.h: Likewise.
17275 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
17276 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
17277 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
17278 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
17279 * grub-core/lib/xzembed/xz_private.h: Likewise.
17280 * grub-core/lib/xzembed/xz_stream.h: Likewise.
17281 * include/grub/file.h (grub_file_filter_id): New compression filter
17282 GRUB_FILE_FILTER_XZIO.
17283
17284 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17285
17286 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
17287 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
17288 size.
17289
17290 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17291
17292 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
17293 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
17294
17295 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17296
17297 Uncompressed checksum support.
17298
17299 * grub-core/commands/hashsum.c (options): Add option --uncompress.
17300 (check_list): New parameter uncompress.
17301 (grub_cmd_hashsum): Handle --uncompress.
17302
17303 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17304
17305 Reintroduce testload.
17306
17307 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
17308 from here ...
17309 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
17310 (GRUB_MOD_INIT): New function.
17311 (GRUB_MOD_FINI): Likewise.
17312 * grub-core/Makefile.core.def (testload): New module.
17313
17314 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17315
17316 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
17317 (uint8_t): New type.
17318 (uint16_t): Likewise.
17319 (uint32_t): Likewise.
17320 (uint64_t): Likewise.
17321
17322 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17323
17324 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
17325
17326 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17327
17328 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
17329 Made static.
17330 (grub_gzfile_open): Removed. All users updated.
17331 (GRUB_MOD_INIT): New function.
17332 (GRUB_MOD_FINI): Likewise.
17333 * grub-core/kern/file.c (grub_file_filters_all): New variable.
17334 (grub_file_filters_enabled): Likewise.
17335 (grub_file_open): Handle filters.
17336 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
17337 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
17338 * include/grub/file.h (grub_file_filter_id_t): New type.
17339 (grub_file_filter_t): Likewise.
17340 (grub_file_filters_all): New extern variable.
17341 (grub_file_filters_enabled): Likewise.
17342 (grub_file_filter_register): New inline function.
17343 (grub_file_filter_unregister): Likewise.
17344 (grub_file_filter_disable): Likewise.
17345 (grub_file_filter_disable_compression): Likewise.
17346 * include/grub/gzio.h: Removed.
17347
17348 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17349
17350 Filename expansion support for wildcards in GRUB script.
17351
17352 * tests/grub_script_expansion.in: New test.
17353 * Makefile.util.def: Rule for new test.
17354
17355 * grub-core/commands/wildcard.c: New file, implements filename
17356 expansion support for GRUB script.
17357 * grub-core/Makefile.core.def: Rule update for regexp.mod.
17358 * grub-core/script/argv.c: Cosmetic changes.
17359 * grub-core/script/execute.c (grub_script_arglist_to_argv):
17360 Refactored to perform wildcard expansion on arguments.
17361 * include/grub/script_sh.h (grub_script_wildcard_translator): New
17362 struct.
17363
17364 * tests/util/grub-shell.in: Fix quoting for read input.
17365
17366 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17367
17368 Support for updating environment variables with matched substrings
17369 of regexp.
17370
17371 * tests/grub_cmd_regexp.in: New test.
17372 * Makefile.util.def: Rule for new test.
17373
17374 * grub-core/commands/regexp.c: New option -s to update environment
17375 variables with regexp matches.
17376
17377 2010-09-04 Szymon Janc <szymon@janc.net.pl>
17378
17379 * include/grub/file.h (grub_file): New member not_easly_seekable.
17380 (grub_file_seekable): New inline function.
17381 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
17382 easily seekable.
17383 (grub_gzio_open): Set not_easly_seekable.
17384 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
17385 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
17386
17387 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17388
17389 Support for options to appear multiple times on cmdline.
17390
17391 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
17392 * grub-core/commands/extcmd.c: Support for repeatable option.
17393 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
17394 repeatable option support.
17395
17396 Refactor menuentry into a regular command.
17397
17398 * grub-core/commands/menuentry.c: New file, menuentry command
17399 implementation.
17400 * grub-core/Makefile.core.def: Rule update for normal.mod.
17401 * grub-core/normal/main.c: Moved menuentry creation to
17402 grub-core/commands/menuentry.c.
17403 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
17404 (grub_menu_execute_entry_real): Removed.
17405 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
17406 function.
17407 (grub_script_execute_menuentry): Removed.
17408 * grub-core/script/parser.y (menuentry): Removed.
17409 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
17410 * grub-core/script/yylex.l (menuentry): Removed.
17411 * include/grub/menu.h (grub_menu_init): New prototype.
17412 (grub_menu_fini): New prototype.
17413 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
17414 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
17415 (grub_script_execute_sourcecode): New prototype.
17416
17417 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17418
17419 "return" command for GRUB script functions.
17420
17421 * tests/grub_script_return.in: New test.
17422 * Makefile.util.def: Rules for new test.
17423
17424 * grub-core/script/execute.c (grub_script_return): New function.
17425 * grub-core/script/main.c: Register/unregister return commaond.
17426 * include/grub/script_sh.h (grub_script_return): New prototype.
17427
17428 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17429
17430 "setparams" command to update positional parameters.
17431
17432 * tests/grub_script_setparams.in: New test.
17433 * Makefile.util.def: Rules for new test.
17434
17435 * grub-core/script/argv.c (grub_script_argv_make): New function.
17436 * grub-core/script/execute.c (replace_scope): New function.
17437 (grub_script_setparams): New function.
17438 * grub-core/script/lexer.c: Remove unused variables.
17439 * grub-core/script/main.c: Register/unregister setparams command.
17440 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
17441 (grub_script_setparams): New prototype.
17442
17443 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17444
17445 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
17446 grub_free order.
17447
17448 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17449
17450 Support for passing block of commands as an argument to extcmds.
17451
17452 * Makefile.util.def: Rules for new test.
17453 * tests/grub_script_blockarg.in: New test.
17454 * grub-core/tests/test_blockarg.c: New file, block argument
17455 command used in the test.
17456
17457 * include/grub/extcmd.h (grub_extcmd_context): New struct.
17458 (grub_register_extcmd_prio): New function prototype.
17459 (grub_extcmd_dispatcher): New function prototype.
17460 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
17461 type.
17462 * include/grub/script_sh.h (struct grub_script): New members
17463 `children', `next_siblings' and `refcnt' for block arguments and
17464 reference counting.
17465 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
17466 (grub_script_arg): New member `script' for block argument.
17467 (grub_script_argv): New member `script' for block argument.
17468 (grub_parser_param): New member `scripts' for block argument.
17469 (grub_script_mem_free): New extern function prototype.
17470 (grub_script_ref): New function prototype.
17471 (grub_script_unref): New function prototype.
17472
17473 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
17474 extcmd form to support block arguments.
17475 * grub-core/script/argv.c: Block arguments support.
17476 * grub-core/script/execute.c: Likewise.
17477 * grub-core/script/lexer.c: Likewise.
17478 * grub-core/script/main.c: Likewise.
17479 * grub-core/script/script.c: Likewise.
17480 * grub-core/script/parser.y: Likewise. New `block' and `block0'
17481 non-terminals.
17482
17483 * grub-core/commands/acpi.c: Update extcmd implementations with
17484 grub_extcmd_context_t.
17485 * grub-core/commands/cat.c: Likewise.
17486 * grub-core/commands/echo.c: Likewise.
17487 * grub-core/commands/extcmd.c: Likewise.
17488 * grub-core/commands/hashsum.c: Likewise.
17489 * grub-core/commands/hdparm.c: Likewise.
17490 * grub-core/commands/help.c: Likewise.
17491 * grub-core/commands/hexdump.c: Likewise.
17492 * grub-core/commands/i386/cpuid.c: Likewise.
17493 * grub-core/commands/i386/pc/drivemap.c: Likewise.
17494 * grub-core/commands/i386/pc/halt.c: Likewise.
17495 * grub-core/commands/i386/pc/sendkey.c: Likewise.
17496 * grub-core/commands/iorw.c: Likewise.
17497 * grub-core/commands/keystatus.c: Likewise.
17498 * grub-core/commands/loadenv.c: Likewise.
17499 * grub-core/commands/ls.c: Likewise.
17500 * grub-core/commands/lspci.c: Likewise.
17501 * grub-core/commands/memrw.c: Likewise.
17502 * grub-core/commands/probe.c: Likewise.
17503 * grub-core/commands/search_wrap.c: Likewise.
17504 * grub-core/commands/setpci.c: Likewise.
17505 * grub-core/commands/sleep.c: Likewise.
17506 * grub-core/disk/loopback.c: Likewise.
17507 * grub-core/hello/hello.c: Likewise.
17508 * grub-core/loader/i386/bsd.c: Likewise.
17509 * grub-core/loader/xnu.c: Likewise.
17510 * grub-core/term/gfxterm.c: Likewise.
17511 * grub-core/term/serial.c: Likewise.
17512 * grub-core/tests/lib/functional_test.c: Likewise.
17513
17514 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17515
17516 Multi-line quoted strings support.
17517
17518 * grub-core/script/lexer.c (append_newline): Removed.
17519 (grub_script_lexer_yywrap): Refactored.
17520 (grub_script_lexer_init): Refactored.
17521 * grub-core/script/yylex.l (yywrap): New function.
17522 (grub_lexer_resplit): New function.
17523 (grub_lexer_unput): New function.
17524 * include/grub/script_sh.h (grub_lexer_param): New members, unput
17525 and resplit.
17526 * tests/grub_script_echo1.in: Added few more testcases.
17527
17528 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
17529
17530 * grub-core/kern/misc.c: Don't add abort alias in utils.
17531 Reported by: echoline.
17532
17533 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
17534
17535 Add missing files into "make dist" tarball for other platforms.
17536
17537 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
17538 * conf/Makefile.common (dist_noinst_DATA): New variable.
17539 * conf/Makefile.extra-dist: Added missing make dist files.
17540 * grub-core/Makefile.core.def: Likewise.
17541
17542 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17543
17544 Compress grub_prefix.
17545
17546 * grub-core/boot/i386/pc/lnxboot.S: Use
17547 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
17548 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
17549 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
17550 GRUB_MACHINE_PREFIX_END. All users updated.
17551 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
17552 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
17553 + 0x40.
17554 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17555 * util/grub-mkimage.c (image_target_desc): Change data_end to
17556 prefix_end. All users updated.
17557
17558 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17559
17560 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
17561 value.
17562 (grub_openbsd_boot): Likewise.
17563 (grub_netbsd_boot): Likewise.
17564 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
17565 (grub_xnu_boot): Likewise.
17566
17567 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17568
17569 * configure.ac: Clean LIBS variable after tests.
17570
17571 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17572
17573 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
17574
17575 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17576
17577 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
17578 echo if libdevmapper will be used.
17579
17580 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
17581
17582 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
17583 constant for the same file.
17584
17585 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17586
17587 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
17588
17589 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17590
17591 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
17592 grub-core/*.pp.
17593
17594 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17595
17596 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
17597 required by the boot protocol.
17598
17599 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
17600 ebp and edi members.
17601 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
17602 state.ebp and state.edi.
17603 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
17604 %ebp and %edi according to grub_relocator32_ebp and
17605 grub_relocator32_edi respectively.
17606 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
17607 and state.edi.
17608
17609 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17610
17611 Add i386-pc-pxe image target.
17612
17613 * util/grub-mkimage.c (image_target_desc): New enum value
17614 IMAGE_I386_PC_PXE.
17615 (image_targets): New target i386-pc-pxe.
17616 (generate_image): Handle i386-pc-pxe image.
17617
17618 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17619
17620 Fix grub_pxe_scan.
17621
17622 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
17623 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
17624 All users updated.
17625 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
17626 (grub_pxe_pxenv): Correct type.
17627
17628 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17629
17630 * NEWS: Document most of the important changes since 1.98.
17631
17632 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17633
17634 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
17635 generated manual page) a little.
17636
17637 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17638
17639 * docs/grub.texi: Add myself as an author.
17640
17641 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
17642
17643 * Makefile.util.def (libgrub.a): Add missing sunpc.
17644 Reported by: Seth Goldberg.
17645
17646 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17647
17648 Interrupt wrapping and code simplifications.
17649
17650 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
17651 x86_noieee1275 which are functionaly equivalent in this case.
17652 (grub-install): Make source on each platform explicit. Enable on
17653 all noemu.
17654 * gentpl.py (x86_efi_pc): Removed group.
17655 (x86_noefi): Likewise.
17656 (i386_noefi): Likewise.
17657 (x86_noieee1275): Likewise.
17658 (i386_noieee1275): Likewise.
17659 (i386_noefi_noieee1275): Likewise.
17660 (i386_pc_qemu_coreboot): Likewise.
17661 (i386_coreboot_multiboot): Likewise.
17662 (i386_pc_coreboot_multiboot_qemu): Likewise.
17663 (x86_noefi_mips): Likewise.
17664 (noieee1275): Likewise.
17665 (ieee1275_mips): Likewise.
17666 (noemu_noieee1275): Likewise.
17667 (cmos): New group.
17668 (usb): Likewise.
17669 (videoinkernel): Likewise.
17670 (videomodules): Likewise.
17671 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
17672 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
17673 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
17674 include/grub/loader.h, include/grub/msdos_partition.h,
17675 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
17676 include/grub/machine/console.h, include/grub/machine/vga.h,
17677 include/grub/machine/vbe.h, include/grub/machine/init.h,
17678 include/grub/machine/kernel.h, include/grub/cpu/time.h,
17679 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
17680 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
17681 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
17682 * grub-core/Makefile.core.def (kernel): Explicit the source for
17683 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
17684 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
17685 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
17686 Use videoinkernel tag.
17687 (usb): Enable on all usb.
17688 (usbserial_common): Likewise.
17689 (usbserial_pl2303): Likewise.
17690 (usbserial_ftdi): Likewise.
17691 (uhci): Enable on all x86.
17692 (ohci): Enable on all pci.
17693 (cmostest): Enable on all CMOS.
17694 (acpi): Include commands/acpi.c on all platforms.
17695 (halt): Add relevant lib/*/halt.c.
17696 (hdparm): Enable on all pci.
17697 (lspci): Likewise.
17698 (usbtest): Enable on all usb.
17699 (ata): Enable on all pci.
17700 (ata_pthru): Likewise.
17701 (usbms): Enable on all usb.
17702 (usb_keyboard): Likewise.
17703 (font): Use tag videomodules.
17704 (bufio): Likewise.
17705 (datetime): Use tag cmos. Enable on all noemu.
17706 (mmap): Use tags common and x86.
17707 (gfxterm): Use tag videomodules.
17708 (bitmap): Likewise.
17709 (bitmap_scale): Likewise.
17710 (video_fb): Likewise.
17711 (video): Likewise.
17712 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
17713 adjust padding accordingly. All users updated.
17714 (grub_ohci_transaction): Fix bad format specification.
17715 (GRUB_MOD_INIT): Add asserts for struct size.
17716 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
17717 (grub_alloc_td): Likewise.
17718 (grub_free_queue): Likewise.
17719 (grub_uhci_transfer): Likewise.
17720 (grub_uhci_transaction): Fix bad format specification.
17721 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
17722 (grub_usb_bulk_readwrite): Likewise.
17723 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
17724 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
17725 Made static.
17726 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
17727 Made static.
17728 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
17729 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
17730 Transformed into C.
17731 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
17732 Moved from here ...
17733 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
17734 ... here. Transformed into C. Made static.
17735 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
17736 Moved from here ...
17737 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
17738 ... here. Transformed into C. Made static.
17739 * grub-core/kern/i386/pc/startup.S
17740 (grub_biosdisk_check_int13_extensions): Moved from here ...
17741 * grub-core/disk/i386/pc/biosdisk.c
17742 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
17743 Made static.
17744 * grub-core/kern/i386/pc/startup.S
17745 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
17746 * grub-core/disk/i386/pc/biosdisk.c
17747 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
17748 Transformed into C. Made static.
17749 * grub-core/kern/i386/pc/startup.S
17750 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
17751 * grub-core/disk/i386/pc/biosdisk.c
17752 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
17753 Transformed into C. Made static.
17754 * grub-core/kern/i386/pc/startup.S
17755 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
17756 * grub-core/disk/i386/pc/biosdisk.c
17757 (grub_biosdisk_get_diskinfo_standard): ... here.
17758 Transformed into C. Made static.
17759 * grub-core/kern/i386/pc/startup.S
17760 (grub_biosdisk_get_num_floppies): Moved from here ...
17761 * grub-core/disk/i386/pc/biosdisk.c
17762 (grub_biosdisk_get_num_floppies): ... here.
17763 Transformed into C. Made static.
17764 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
17765 New function.
17766 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
17767 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
17768 Transformed into C. Made static.
17769 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
17770 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
17771 Transformed into C. Made static.
17772 * grub-core/kern/i386/ieee1275/init.c: Removed.
17773 * grub-core/kern/i386/misc.S: Likewise.
17774 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
17775 Splitted from here ...
17776 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
17777 Transformed into C. Made static. All users updated.
17778 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
17779 Transformed into C. Made static. All users updated.
17780 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
17781 Moved from here...
17782 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
17783 Transformed into C. Made static. All users updated.
17784 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
17785 Moved from here...
17786 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
17787 Transformed into C. Made static. All users updated.
17788 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
17789 Removed (replaced by C version).
17790 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
17791 Moved from here...
17792 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
17793 Transformed into C. Made static.
17794 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
17795 Moved from here...
17796 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
17797 ... here. Transformed into C.
17798 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
17799 Moved from here...
17800 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
17801 ... here. Transformed into C.
17802 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
17803 Moved from here...
17804 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
17805 ... here. Transformed into C. Made static.
17806 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
17807 Moved from here...
17808 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
17809 ... here. Transformed into C.
17810 * grub-core/kern/i386/pc/startup.S
17811 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
17812 * grub-core/video/i386/pc/vbe.c
17813 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
17814 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
17815 Moved from here...
17816 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
17817 ... here. Transformed into C.
17818 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
17819 Moved from here...
17820 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
17821 ... here. Transformed into C.
17822 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
17823 Moved from here...
17824 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
17825 ... here. Transformed into C.
17826 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
17827 Moved from here...
17828 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
17829 ... here. Transformed into C.
17830 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
17831 Moved from here...
17832 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
17833 ... here. Transformed into C. Made static.
17834 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
17835 Moved from here...
17836 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
17837 ... here. Transformed into C. Made static.
17838 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
17839 Moved from here...
17840 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
17841 ... here. Transformed into C. Made static.
17842 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
17843 pxe_rm_entry as third argument.
17844 (grub_bios_interrupt): New function.
17845 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
17846 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
17847 of calling grub_stop.
17848 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
17849 * grub-core/lib/efi/halt.c (grub_halt): ...here.
17850 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
17851 * grub-core/lib/emu/halt.c (grub_halt): ... here.
17852 * grub-core/lib/i386/halt.c: Moved from here ...
17853 * grub-core/lib/i386/halt.c: ... here.
17854 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
17855 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
17856 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
17857 grub_stop_floppy.
17858 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
17859 * include/grub/i386/coreboot/init.h: Removed.
17860 * include/grub/i386/multiboot/init.h: Likewise.
17861 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
17862 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
17863 * include/grub/i386/pc/int.h: New file.
17864 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
17865 (grub_pxe_scan): Removed.
17866 (grub_pxe_call): Update prototype.
17867 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
17868 prototypes.
17869 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
17870 * include/grub/i386/qemu/init.h: Removed.
17871 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
17872 noreturn.
17873 (grub_halt): Likewise.
17874 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
17875 (grub_reboot): Likewise.
17876 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
17877 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
17878 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
17879
17880 2010-08-30 Robert Millan <rmh@gnu.org>
17881
17882 * NEWS: Document addition of ZFS support in `grub-install' and
17883 `grub-mkconfig'.
17884
17885 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
17886
17887 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
17888 dprintf output.
17889
17890 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17891
17892 Remove leftover embedding of font objects.
17893
17894 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17895 * util/grub-install.in (font): Removed.
17896 * util/grub-mkimage.c (generate_image): Remove font support. All users
17897 updated.
17898
17899 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17900
17901 Remove leftover embedding of font objects.
17902
17903 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17904 * util/grub-install.in (font): Removed.
17905 * util/grub-mkimage.c (generate_image): Remove font support. All users
17906 updated.
17907
17908 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17909
17910 * docs/grub.texi (Network): Fix reference to pxe_blksize.
17911 Reported by: Ian Turner
17912
17913 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17914
17915 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
17916 timeout to avoid indefinite boot stalling.
17917
17918 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17919
17920 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
17921 (grub_env_write_color_highlight): Likewise.
17922
17923 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17924
17925 * grub-core/normal/term.c (print_more): Return to normal and not
17926 to standard state after printing "---MORE---".
17927
17928 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17929
17930 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
17931 Mask out the bit 0x80 since it has other meaning that specifiing color.
17932
17933 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17934
17935 New relocator. Allows for more kernel support and more straightforward
17936 loader writing.
17937
17938 * Makefile.am (BOOTTARGET): New variable.
17939 (QEMU32): Likewise.
17940 (linux.init.x86_64): New target.
17941 (linux.init.i386): Likewise.
17942 (multiboot.elf): Likewise.
17943 (kfreebsd.elf): Likewise.
17944 (kfreebsd.aout): Likewise.
17945 (pc-chainloader.elf): Likewise.
17946 (pc-chainloader.bin): Likewise.
17947 (ntldr.elf): Likewise.
17948 (ntldr.bin): Likewise.
17949 (multiboot2.elf): Likewise.
17950 (kfreebsd.init.x86_64): Likewise.
17951 (kfreebsd.init.i386): Likewise.
17952 (knetbsd.init.i386): Likewise.
17953 (kopenbsd.init.i386): Likewise.
17954 (knetbsd.init.x86_64): Likewise.
17955 (kopenbsd.init.x86_64): Likewise.
17956 (linux-initramfs.i386): Likewise.
17957 (linux-initramfs.x86_64): Likewise.
17958 (kfreebsd-mfsroot.i386.img): Likewise.
17959 (knetbsd.image.i386): Likewise.
17960 (kopenbsd.image.i386): Likewise.
17961 (kopenbsd.image.x86_64): Likewise.
17962 (knetbsd.miniroot-image.i386.img): Likewise.
17963 (kfreebsd-mfsroot.x86_64.img): Likewise.
17964 (knetbsd.image.x86_64): Likewise.
17965 (knetbsd.miniroot-image.x86_64.img): Likewise.
17966 (kfreebsd-mfsroot.i386.gz): Likewise.
17967 (bootcheck-kfreebsd-i386): Likewise.
17968 (kfreebsd-mfsroot.x86_64.gz): Likewise.
17969 (bootcheck-kfreebsd-x86_64): Likewise.
17970 (knetbsd.miniroot-image.i386.gz): Likewise.
17971 (bootcheck-knetbsd-i386): Likewise.
17972 (bootcheck-kopenbsd-i386): Likewise.
17973 (bootcheck-kopenbsd-x86_64): Likewise.
17974 (knetbsd.miniroot-image.x86_64.gz): Likewise.
17975 (bootcheck-knetbsd-x86_64): Likewise.
17976 (bootcheck-linux-i386): Likewise.
17977 (bootcheck-linux-x86_64): Likewise.
17978 (bootcheck-linux16-i386): Likewise.
17979 (bootcheck-linux16-x86_64): Likewise.
17980 (bootcheck-multiboot): Likewise.
17981 (bootcheck-multiboot2): Likewise.
17982 (bootcheck-kfreebsd-aout): Likewise.
17983 (bootcheck-pc-chainloader): Likewise.
17984 (bootcheck-ntldr): Likewise.
17985 (CLEANFILES): Add new targets.
17986 (BOOTCHECKS): New variable.
17987 (.PHONY): Add bootchecks.
17988 (SUCCESSFUL_BOOT_STRING): New variable.
17989 (BOOTCHECK_TIMEOUT): Likewise.
17990 (bootcheck): New target
17991 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
17992 * configure.ac: Correct efiemu excuse.
17993 * docs/grub.texi (Supported kernels): New chapter.
17994 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
17995 include/grub/mm_private.h. Simplify inclusion of
17996 include/grub/boot.h, include/grub/loader.h
17997 and include/grub/msdos_partition.h
17998 (KERNEL_HEADER_FILES) [i386_coreboot]:
17999 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
18000 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
18001 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
18002 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
18003 include/grub/machine/loader.h.
18004 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
18005 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
18006 extra_dist.
18007 (pci.mod): Enable on i386-multiboot.
18008 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
18009 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
18010 i386-qemu.
18011 (relocator.mod): Rewritten.
18012 (aout.mod): Enable on all x86.
18013 (bsd.mod): Likewise.
18014 (ntldr.mod): New module.
18015 (linux.mod): Use loader/i386/linux.c on all x86.
18016 (xnu.mod): Enable on all x86.
18017 (vga_text.mod): disable on EFI and QEMU.
18018 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
18019 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
18020 * grub-core/efiemu/loadcore.c: Likewise.
18021 * grub-core/efiemu/main.c: Likewise.
18022 (grub_efiemu_exit_boot_services): Removed.
18023 (grub_efiemu_finish_boot_services): Likewise.
18024 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
18025 function.
18026 * grub-core/efiemu/i386/nocfgtables.c: New file.
18027 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
18028 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
18029 (grub_efi_finish_boot_services): Moved from here ...
18030 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
18031 Fille finish memory map and related data.
18032 (finish_mmap_buf): New variable.
18033 (grub_efi_uintn_t finish_mmap_size): Likewise.
18034 (grub_efi_uintn_t finish_key): Likewise.
18035 (grub_efi_uintn_t finish_desc_size): Likewise.
18036 (grub_efi_uint32_t finish_desc_version): Likewise.
18037 (grub_efi_is_finished): Likewise.
18038 (grub_efi_get_memory_map): Use saved memory map if EFI is already
18039 finished.
18040 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
18041 (grub_elf64_phdr_iterate): Likewise.
18042 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
18043 (grub_os_area_size): Likewise.
18044 (grub_machine_init): Don't reserve os area.
18045 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
18046 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
18047 * grub-core/kern/i386/loader.S: Removed.
18048 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
18049 (grub_os_area_size): Likewise.
18050 (grub_machine_init): Don't reserve os area.
18051 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
18052 Don't call grub_dl_unload_all.
18053 Don't include loader.S.
18054 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
18055 Declare the memory after _end as available.
18056 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
18057 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
18058 (GRUB_MM_ALLOC_MAGIC): Moved from here...
18059 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
18060 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
18061 * include/grub/mm_private.h (grub_mm_header): ... here.
18062 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
18063 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
18064 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
18065 (grub_mm_region): ..here. Removed addr. Added pre_size.
18066 All users updated.
18067 * grub-core/kern/mm.c (base): Renamed to ...
18068 (grub_mm_base): ... this. Made global.
18069 (grub_real_malloc): Alloc from end of region.
18070 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
18071 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
18072 * grub-core/kern/powerpc/cache_flush.S: ... here.
18073 * grub-core/lib/efi/relocator.c: New file.
18074 * grub-core/lib/i386/relocator.c: Rewritten.
18075 * grub-core/lib/i386/relocator16.S: New file.
18076 * grub-core/lib/i386/relocator32.S: Likewise.
18077 * grub-core/lib/i386/relocator64.S: Likewise.
18078 * grub-core/lib/i386/relocator_asm.S: Rewritten.
18079 * grub-core/lib/i386/relocator_common.S: New file.
18080 * grub-core/lib/ieee1275/relocator.c: Likewise.
18081 * grub-core/lib/mips/relocator.c: Rewritten.
18082 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
18083 stylistic adjustments.
18084 * grub-core/lib/powerpc/relocator.c: New file.
18085 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
18086 * grub-core/lib/relocator.c: Rewritten.
18087 * grub-core/lib/x86_64/relocator_asm.S: New file.
18088 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
18089 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
18090 (bsd_tag): New struct.
18091 (tags): New variable.
18092 (tags_last): Likewise.
18093 (netbsd_module): New struct.
18094 (netbsd_mods): New variable.
18095 (netbsd_mods_last): Likewise.
18096 (openbsd_opts): New parameter "serial".
18097 (OPENBSD_SERIAL_ARG): New definition.
18098 (netbsd_opts): New parameter "serial".
18099 (NETBSD_SERIAL_ARG): New definition.
18100 (grub_freebsd_add_meta): Reorganised into ...
18101 (grub_bsd_add_meta): ...this. All users updated.
18102 (grub_freebsd_add_mmap): Reorganised into ...
18103 (generate_e820_mmap): ...this...
18104 (grub_bsd_add_mmap): ...and this. All users updated.
18105 (grub_freebsd_list_modules): Use tags.
18106 (grub_netbsd_add_meta_module): New function.
18107 (grub_netbsd_list_modules): Likewise.
18108 (grub_freebsd_boot): Use relocator and finish EFI.
18109 (grub_openbsd_boot): Likewise.
18110 (grub_netbsd_setup_video): New function.
18111 (grub_netbsd_add_modules): Likewise.
18112 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
18113 and finish EFI.
18114 (grub_bsd_unload): Unload tags.
18115 (grub_bsd_load_aout): Use relocator.
18116 (grub_bsd_elf32_size_hook): New function.
18117 (grub_bsd_elf32_hook): Use relocator.
18118 (grub_bsd_elf64_size_hook): New function.
18119 (grub_bsd_elf64_hook): Use relocator.
18120 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
18121 (grub_bsd_load): Zero-out openbsd_ramdisk.
18122 (grub_bsd_load): Use relocator.
18123 (grub_cmd_openbsd): Support serial.
18124 (grub_cmd_netbsd): Support modules.
18125 (grub_cmd_freebsd_module): Use relocator.
18126 (grub_netbsd_module_load): New function.
18127 (grub_cmd_netbsd_module): Likewise.
18128 (grub_cmd_openbsd_ramdisk): Likewise.
18129 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
18130 kopenbsd_ramdisk.
18131 (GRUB_MOD_FINI): Unregister new commands.
18132 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
18133 (grub_freebsd_load_elfmodule_obj): Use relocator.
18134 (grub_freebsd_load_elfmodule): Likewise.
18135 (grub_freebsd_load_elf_meta): Likewise.
18136 (grub_netbsd_load_elf_meta): New function.
18137 (grub_openbsd_find_ramdisk): Likewise.
18138 * grub-core/loader/i386/bsd_helper.S: Removed.
18139 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
18140 * grub-core/loader/i386/bsd_trampoline.S: Removed.
18141 * grub-core/loader/i386/efi/linux.c: Likewise.
18142 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
18143 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
18144 (DEFAULT_VIDEO_MODE): Likewise.
18145 (real_mode_target): New variable.
18146 (prot_mode_target): Likewise.
18147 (initrd_mem_target): Likewise.
18148 (relocator): Likewise.
18149 (efi_mmap_buf): Likewise.
18150 (efi_mmap_size): Likewise.
18151 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
18152 (free_pages): Use relocator.
18153 (allocate_pages): Account for efi_mmap and use relocator. Return error.
18154 (grub_linux_setup_video): Return error.
18155 (grub_linux_trampoline_start): Removed.
18156 (grub_linux_trampoline_end): Likewise.
18157 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
18158 andd video parameters depending on firmware.
18159 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
18160 [GRUB_MACHINE_EFI]: Pass EFI parameters.
18161 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
18162 (grub_cmd_initrd): Use relocator.
18163 * grub-core/loader/i386/linux_trampoline.S: Removed.
18164 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
18165 (elf_sec_entsize): Likewise.
18166 (elf_sec_shstrndx): Likewise.
18167 (elf_sections): Likewise.
18168 (grub_multiboot_load): Use relocator.
18169 (grub_multiboot_get_mbi_size): Account for sections.
18170 (grub_multiboot_make_mbi): Use relocator and support sections.
18171 (grub_multiboot_add_elfsyms): New function.
18172 (grub_multiboot_free_mbi): Free sections.
18173 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
18174 (grub_linux_real_target): Likewise.
18175 (grub_linux_real_chunk): Likewise.
18176 (grub_linux16_prot_size): Likewise.
18177 (grub_linux16_boot): Use relocator.
18178 (grub_linux_unload): Unload relocator.
18179 (grub_cmd_linux): Use relocator.
18180 (grub_cmd_initrd): Likewise.
18181 * grub-core/loader/i386/pc/ntldr.c: New file.
18182 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
18183 Don't try to guess CPU frequency.
18184 (grub_xnu_set_video): Stretch bitmap.
18185 (grub_xnu_boot): Use relocator.
18186 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
18187 (grub_linux_unload): Free relocator.
18188 (grub_linux_load32): Use relocator.
18189 (grub_linux_load64): Likewise.
18190 (grub_cmd_initrd): Likewise.
18191 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
18192 (grub_multiboot_unload): Unload relocator.
18193 (grub_cmd_multiboot): Use relocator.
18194 (grub_cmd_module): Likewise.
18195 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
18196 Use relocator and support sections.
18197 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
18198 (elf_sec_entsize): Likewise.
18199 (elf_sec_shstrndx): Likewise.
18200 (elf_sections): Likewise.
18201 (grub_multiboot_load): Use relocator.
18202 (grub_multiboot_get_mbi_size): Account for sections.
18203 (grub_multiboot_make_mbi): Use relocator and support sections.
18204 (grub_multiboot_add_elfsyms): New function.
18205 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
18206 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
18207 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
18208 Prototype changed. All users updated.
18209 (grub_xnu_align_heap): Simplified.
18210 (grub_xnu_writetree_toheap): Likewise.
18211 (grub_xnu_unload): Unload relocator.
18212 (grub_cmd_xnu_kernel): Use relocator.
18213 (grub_cmd_xnu_kernel64): Likewise.
18214 (grub_xnu_register_memory): Simplified.
18215 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
18216 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
18217 EFI is finished.
18218 (grub_console_checkkey): Likewise.
18219 (grub_console_getkey): Likewise.
18220 (grub_console_getwh): Likewise.
18221 (grub_console_getxy): Likewise.
18222 (grub_console_gotoxy): Likewise.
18223 (grub_console_cls): Likewise.
18224 (grub_console_setcolorstate): Likewise.
18225 (grub_console_setcursor): Likewise.
18226 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
18227 * grub-core/tests/boot/kbsd.init-i386.S: New file.
18228 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
18229 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
18230 * grub-core/tests/boot/kernel-8086.S: Likewise.
18231 * grub-core/tests/boot/kernel-i386.S: Likewise.
18232 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
18233 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
18234 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
18235 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
18236 * grub-core/tests/boot/knetbsd.cfg: Likewise.
18237 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
18238 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
18239 * grub-core/tests/boot/linux.cfg: Likewise.
18240 * grub-core/tests/boot/linux.init-i386.S: Likewise.
18241 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
18242 * grub-core/tests/boot/linux16.cfg: Likewise.
18243 * grub-core/tests/boot/multiboot.cfg: Likewise.
18244 * grub-core/tests/boot/multiboot2.cfg: Likewise.
18245 * grub-core/tests/boot/ntldr.cfg: Likewise.
18246 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
18247 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
18248 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
18249 New definition.
18250 * include/grub/dl.h (grub_dl_unload_all): Removed.
18251 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
18252 (grub_efi_finish_boot_services): Change prototype.
18253 (grub_efi_is_finished): New variable.
18254 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
18255 Changed prototype.
18256 (grub_efiemu_finish_boot_services): Removed.
18257 (grub_machine_efiemu_init_tables): New prototype.
18258 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
18259 (grub_elf64_phdr_iterate): Likewise.
18260 * include/grub/i386/bsd.h: Include relocator.h.
18261 (freebsd_tag_header): New struct.
18262 (grub_openbsd_bios_mmap): Removed.
18263 (grub_unix_real_boot): Removed.
18264 (grub_freebsd_load_elfmodule32): Changed prototype.
18265 (grub_freebsd_load_elfmodule_obj64): Likewise.
18266 (grub_freebsd_load_elf_meta32): Likewise.
18267 (grub_freebsd_load_elf_meta64): Likewise.
18268 (grub_freebsd_add_meta): Removed.
18269 (grub_netbsd_load_elf_meta32): New prototype.
18270 (grub_netbsd_load_elf_meta64): Likewise.
18271 (grub_bsd_add_meta): Likewise.
18272 (grub_openbsd_ramdisk_descriptor): New struct.
18273 (grub_openbsd_find_ramdisk32): New prototype.
18274 (grub_openbsd_find_ramdisk64): Likewise.
18275 * include/grub/i386/coreboot/loader.h: Removed.
18276 * include/grub/i386/efi/loader.h: Likewise.
18277 * include/grub/i386/ieee1275/loader.h: Likewise.
18278 * include/grub/i386/linux.h (linux_kernel_header): Change void *
18279 to grub_uint32_t.
18280 * include/grub/i386/loader.h: Removed.
18281 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
18282 value.
18283 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
18284 (grub_phys_addr_t): New type.
18285 (grub_vtop): New inline function.
18286 (grub_map_memory): Likewise.
18287 (grub_unmap_memory): Likewise.
18288 * include/grub/i386/multiboot/loader.h: Removed.
18289 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
18290 (NETBSD_BTINFO_CONSOLE): New definition.
18291 (NETBSD_BTINFO_SYMTAB): Likewise.
18292 (NETBSD_BTINFO_MODULES): Likewise.
18293 (NETBSD_BTINFO_FRAMEBUF): Likewise.
18294 (grub_netbsd_bootinfo): New struct.
18295 (grub_netbsd_btinfo_common): Use explicit bitsize.
18296 (grub_netbsd_btinfo_mmap_entry): Removed.
18297 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
18298 (grub_netbsd_btinfo_bootdisk): New struct.
18299 (grub_netbsd_btinfo_symtab): Likewise.
18300 (grub_netbsd_btinfo_serial): Likewise.
18301 (grub_netbsd_btinfo_modules): Likewise.
18302 (grub_netbsd_btinfo_framebuf): Likewise.
18303 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
18304 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
18305 Likewise.
18306 (grub_openbsd_bootargs): Use explicit bitsize.
18307 (grub_openbsd_bootarg_console): New struct.
18308 (GRUB_OPENBSD_COM_MAJOR): New definition.
18309 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
18310 * include/grub/i386/pc/efiemu.h: Removed.
18311 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
18312 * include/grub/i386/qemu/loader.h: Removed.
18313 * include/grub/i386/relocator.h: Rewritten.
18314 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
18315 * include/grub/mips/memory.h: New file.
18316 * include/grub/mips/multiboot.h: Rewritten.
18317 * include/grub/mips/relocator.h: Rewritten.
18318 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
18319 (grub_vtop): New function.
18320 (grub_map_memory): Likewise.
18321 (grub_unmap_memory): Likewise.
18322 * include/grub/misc.h (ALIGN_DOWN): New definition.
18323 * include/grub/mm.h (grub_mm_check_real): New proto.
18324 (GRUB_MM_CHECK): New definition.
18325 * include/grub/mm_private.h: New file.
18326 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
18327 (grub_multiboot_get_mbi_size): Removed.
18328 (grub_multiboot_make_mbi): Change prottype.
18329 (grub_multiboot_set_accepts_video): New proto.
18330 (grub_multiboot_add_elfsyms): Likewise.
18331 (grub_multiboot_payload_eip): New variable.
18332 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
18333 New prototype.
18334 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
18335 New definition.
18336 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
18337 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
18338 * include/grub/powerpc/ieee1275/loader.h: Removed.
18339 * include/grub/powerpc/memory.h: New file.
18340 * include/grub/powerpc/relocator.h: Likewise.
18341 * include/grub/relocator.h: Likewise.
18342 * include/grub/relocator_private.h: Likewise.
18343 * include/grub/sparc64/ieee1275/loader.h: Removed.
18344 * include/grub/x86_64/memory.h: New file.
18345 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
18346 (grub_xnu_heap_malloc): Likewise.
18347 (grub_xnu_heap_real_start): Removed.
18348 (grub_xnu_heap_start): Likewise.
18349 (grub_xnu_relocator): New variable.
18350 (grub_xnu_heap_target_start): Likewise.
18351 * tests/util/grub-shell.in: Support non-pc.
18352 * util/grub-mkimage.c (image_targets): Fix multiboot target.
18353
18354 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18355
18356 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
18357 on malloc error.
18358 (grub_bidi_logical_to_visual): Check that malloc succeded.
18359 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
18360 puts.
18361 (grub_xputs_normal): Likewise.
18362
18363 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18364
18365 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
18366 extra_dist.
18367
18368 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18369
18370 * grub-core/efiemu/runtime/efiemu.sh: Removed.
18371
18372 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18373
18374 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
18375
18376 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18377
18378 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
18379 dprintf.
18380
18381 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
18382
18383 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
18384
18385 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18386
18387 * grub-core/normal/term.c (print_more): Fix a memory leak.
18388 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
18389 (grub_xputs_normal): Likewise.
18390
18391 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18392
18393 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
18394 the begining of the string
18395
18396 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18397
18398 * grub-core/script/script.c (grub_script_parse): Free parsed on
18399 failure.
18400
18401 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18402
18403 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
18404 on failure.
18405
18406 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18407
18408 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
18409 return.
18410
18411 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18412
18413 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
18414 (scroll_up): Fix a memory leak.
18415
18416 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18417
18418 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
18419 errors.
18420
18421 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
18422
18423 Handle USB pendrives exposed as floppies.
18424
18425 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
18426 floppy.
18427 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
18428 Check for partitions on all devices.
18429
18430 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18431
18432 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
18433 (readkey): Likewise.
18434
18435 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
18436
18437 Multiple variable names support to "export" command.
18438
18439 * normal/context.c (grub_cmd_export): "export" command supports
18440 multiple variable names.
18441
18442 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
18443
18444 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
18445 --target=drive output to Mach device name.
18446
18447 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18448
18449 New Automake based build system for GRUB.
18450
18451 * ABOUT-NLS: New file.
18452 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
18453 in Makefile.util.def file.
18454 * Makefile.util.def: New file. Autogen build definitions file for
18455 GRUB host utils.
18456 * conf/Makefile.common: New file. Common variables for GRUB host
18457 utils and target modules.
18458 * conf/Makefile.extra-dist: New file. Extra files for make dist.
18459 * docs/Makefile.am: New file. Automake file for docs.
18460 * gentpl.py: New file. Python script to generate Autogen
18461 template.
18462 * grub-core/Makefile.am: New file. GRUB target modules' rules
18463 that doesn't fit in Makefile.core.def file.
18464 * grub-core/Makefile.core.def: New file. Autogen build
18465 definitions file for GRUB target modules.
18466 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
18467 specific setjmp.S file.
18468 * po/Makefile.am: New file.
18469
18470 * .bzrignore: New ignores.
18471 * INSTALL: New requirements, without Ruby.
18472 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
18473 * autogen.sh: Updated to invoke autogen as necessary.
18474 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
18475 and defines for Automake conditionals.
18476 * geninit.sh: Refactoring.
18477
18478 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
18479 necessary.
18480 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
18481 New prototype.
18482
18483 * include/grub/test.h: Fix functional test modules' naming.
18484 * grub-core/tests/example_functional_test.c: Fix test module name.
18485
18486 * util/misc.c: Hosted versions' of grub functions for libgrub.a
18487 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
18488 * util/grub-editenv.c: Likewise.
18489 * util/grub-fstest.c: Likewise.
18490 * util/grub-mkdevicemap.c: Likewise.
18491 * util/grub-mkfont.c: Likewise.
18492 * util/grub-mkimage.c: Likewise.
18493 * util/grub-mkpasswd-pbkdf2.c: Likewise.
18494 * util/grub-probe.c: Likewise.
18495 * util/grub-script-check.c: Likewise.
18496 * util/i386/pc/grub-setup.c: Likewise.
18497 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18498
18499 * tests/util/grub-shell.in: Fix override directory path.
18500 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
18501 * util/import_gcry.py: Create Makefile.gcry.def file instead.
18502
18503 * util/lvm.c: Update #includes.
18504 * util/raid.c: Likewise.
18505 * util/resolve.c: Likewise.
18506 * grub-core/bus/emu/pci.c: Likewise.
18507 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
18508 * grub-core/lib/posix_wrap/string.h: Likewise.
18509 * grub-core/kern/emu/main.c: Likewise.
18510
18511 * grub-core/gensymlist.sh: New file. Script for generating kernel
18512 symbols file.
18513 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
18514
18515 * grub-core/gentrigtables.c: Fix unused variable warnings.
18516
18517 * Makefile.in: Removed.
18518 * conf/any-emu.rmk: Removed.
18519 * conf/common.rmk: Removed.
18520 * conf/i386-coreboot.rmk: Removed.
18521 * conf/i386-efi.rmk: Removed.
18522 * conf/i386-ieee1275.rmk: Removed.
18523 * conf/i386-multiboot.rmk: Removed.
18524 * conf/i386-pc.rmk: Removed.
18525 * conf/i386-qemu.rmk: Removed.
18526 * conf/i386.rmk: Removed.
18527 * conf/mips-yeeloong.rmk: Removed.
18528 * conf/mips.rmk: Removed.
18529 * conf/powerpc-ieee1275.rmk: Removed.
18530 * conf/sparc64-ieee1275.rmk: Removed.
18531 * conf/tests.rmk: Removed.
18532 * conf/x86-efi.rmk: Removed.
18533 * conf/x86_64-efi.rmk: Removed.
18534 * gendistlist.sh: Removed.
18535 * geninitheader.sh: Removed.
18536 * genkernsyms.sh.in: Removed.
18537 * genmk.rb: Removed.
18538 * gensymlist.sh.in: Removed.
18539 * mkinstalldirs: Removed.
18540 * boot: Moved ...
18541 * grub-core/boot: ... to here.
18542 * bus: Moved ...
18543 * grub-core/bus: ... to here.
18544 * commands: Moved ...
18545 * grub-core/commands: ... to here.
18546 * disk: Moved ...
18547 * grub-core/disk: ... to here.
18548 * efiemu: Moved ...
18549 * grub-core/efiemu: ... to here.
18550 * font: Moved ...
18551 * grub-core/font: ... to here.
18552 * fs: Moved ...
18553 * grub-core/fs: ... to here.
18554 * gencmdlist.sh: Moved ...
18555 * grub-core/gencmdlist.sh: ... to here.
18556 * genemuinit.sh: Moved ...
18557 * grub-core/genemuinit.sh: ... to here.
18558 * genemuinitheader.sh: Moved ...
18559 * grub-core/genemuinitheader.sh: ... to here.
18560 * genfslist.sh: Moved ...
18561 * grub-core/genfslist.sh: ... to here.
18562 * genhandlerlist.sh: Moved ...
18563 * grub-core/genhandlerlist.sh: ... to here.
18564 * genmoddep.awk: Moved ...
18565 * grub-core/genmoddep.awk: ... to here.
18566 * genmodsrc.sh: Moved ...
18567 * grub-core/genmodsrc.sh: ... to here.
18568 * genpartmaplist.sh: Moved ...
18569 * grub-core/genpartmaplist.sh: ... to here.
18570 * genparttoollist.sh: Moved ...
18571 * grub-core/genparttoollist.sh: ... to here.
18572 * genterminallist.sh: Moved ...
18573 * grub-core/genterminallist.sh: ... to here.
18574 * gentrigtables.c: Moved ...
18575 * grub-core/gentrigtables.c: ... to here.
18576 * genvideolist.sh: Moved ...
18577 * grub-core/genvideolist.sh: ... to here.
18578 * gettext: Moved ...
18579 * grub-core/gettext: ... to here.
18580 * gfxmenu: Moved ...
18581 * grub-core/gfxmenu: ... to here.
18582 * gnulib: Moved ...
18583 * grub-core/gnulib: ... to here.
18584 * hello: Moved ...
18585 * grub-core/hello: ... to here.
18586 * hook: Moved ...
18587 * grub-core/hook: ... to here.
18588 * io: Moved ...
18589 * grub-core/io: ... to here.
18590 * kern: Moved ...
18591 * grub-core/kern: ... to here.
18592 * lib: Moved ...
18593 * grub-core/lib: ... to here.
18594 * loader: Moved ...
18595 * grub-core/loader: ... to here.
18596 * mmap: Moved ...
18597 * grub-core/mmap: ... to here.
18598 * normal: Moved ...
18599 * grub-core/normal: ... to here.
18600 * partmap: Moved ...
18601 * grub-core/partmap: ... to here.
18602 * parttool: Moved ...
18603 * grub-core/parttool: ... to here.
18604 * script: Moved ...
18605 * grub-core/script: ... to here.
18606 * term: Moved ...
18607 * grub-core/term: ... to here
18608 * tests/example_functional_test.c: Moved ...
18609 * grub-core/tests/example_functional_test.c: ... to here.
18610 * tests/lib/functional_test.c: Moved ...
18611 * grub-core/tests/lib/functional_test.c: ... to here.
18612 * tests/lib/test.c: Moved ...
18613 * grub-core/tests/lib/test.c: ... to here.
18614 * video: Moved ...
18615 * grub-core/video: ... to here.
18616
18617 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18618
18619 Replace --enable-grub-emu-modules with grub-emu-lite.
18620
18621 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
18622 cache.S.
18623
18624 * include/grub/emu/misc.h (grub_emu_init): New prototype.
18625 * kern/emu/full.c: New file. For grub-emu specific initialization.
18626 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
18627 * kern/emu/main.c: Call initialization function grub_emu_init.
18628
18629 * Makefile.in: Include grub-emu-lite in install.
18630 * commands/parttool.c: Use grub_no_autoload to differentiate
18631 between grub-emu and grub-emu-lite.
18632 * include/grub/misc.h: New variable grub_no_autoload.
18633
18634 * conf/any-emu.rmk: New rules for grub-emu-lite.
18635 * configure.ac: Remove --enable-grub-emu-modules.
18636 * genmk.rb: Cleanup unnecessary rules.
18637 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
18638
18639 * normal/main.c: Don't load list files on grub-emu-lite.
18640 * util/misc.c (grub_arch_sync_caches): Removed.
18641
18642 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
18643
18644 * kern/mips/startup.S (grub_prefix): Update comment to refer to
18645 grub-mkimage rather than grub-mkelfimage.
18646 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
18647
18648 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
18649
18650 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
18651 a key after CapsLock or NumLock. It's just a qemu bug.
18652
18653 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18654
18655 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
18656 needed by libusb wrapper.
18657
18658 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18659
18660 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
18661
18662 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18663
18664 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
18665 --nounzip is passed.
18666
18667 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
18668
18669 USB hotunplugging and USB serial support.
18670
18671 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
18672 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
18673 (grub_uhci_transfer): Respect timeout and set *actual.
18674 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
18675 non-standard length.
18676 (grub_usb_device_attach): Autoload modules.
18677 (GRUB_MOD_INIT): Set grub_term_poll_usb.
18678 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
18679 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
18680 users updated.
18681 (grub_usb_add_hub): Fill nports and children.
18682 (attach_root_port): Receive hub instead of controller.
18683 All users updated. Fill hub->devices.
18684 (grub_usb_root_hub): Allocate hub->devices.
18685 (detach_device): New function.
18686 (poll_nonroot_hub): Fill children and detach devices.
18687 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
18688 actual arguments. All users updated.
18689 (grub_usb_bulk_read_extended): New function.
18690 * bus/usb/serial/common.c: New file.
18691 * bus/usb/serial/ftdi.c: Likewise.
18692 * bus/usb/serial/pl2303.c: Likewise.
18693 * commands/terminal.c (handle_command): Support wildcard.
18694 * commands/usbtest.c: Output "Unknown" instead of empty string.
18695 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
18696 (usbserial_common_mod_SOURCES): New variable.
18697 (usbserial_common_mod_CFLAGS): Likewise.
18698 (usbserial_common_mod_LDFLAGS): Likewise.
18699 (pkglib_MODULES): Add usbserial_pl2303.mod.
18700 (usbserial_pl2303_mod_SOURCES): New variable.
18701 (usbserial_pl2303_mod_CFLAGS): Likewise.
18702 (usbserial_pl2303_mod_LDFLAGS): Likewise.
18703 (pkglib_MODULES): Add usbserial_ftdi.mod.
18704 (usbserial_ftdi_mod_SOURCES): New variable.
18705 (usbserial_ftdi_mod_CFLAGS): Likewise.
18706 (usbserial_ftdi_mod_LDFLAGS): Likewise.
18707 (pkglib_MODULES): Add serial.mod.
18708 (serial_mod_SOURCES): New variable.
18709 (serial_mod_CFLAGS): Likewise.
18710 (serial_mod_LDFLAGS): Likewise.
18711 * conf/i386-pc.rmk: Likewise.
18712 * conf/mips-yeeloong.rmk: Likewise.
18713 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
18714 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
18715 * disk/usbms.c (first_available_slot): New variable.
18716 (grub_usbms_attach): Don't reuse free slots due to potential cache
18717 problems.
18718 * include/grub/serial.h: Moved to ..
18719 * include/grub/ns8250.h: ...this.
18720 * include/grub/serial.h: New file.
18721 * include/grub/term.h (grub_term_poll_usb): New variable.
18722 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
18723 readkey. All users updated.
18724 (grub_terminfo_output_state): Pass term to put.
18725 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
18726 (grub_usb_controller_dev): Add timeout and actual arguments to
18727 transfer. All users updated.
18728 (grub_usb_interface): New field detach_data.
18729 (grub_usb_device): New fields children and nports.
18730 (grub_usb_ep_type_t): New type.
18731 (grub_usb_get_ep_type): New function.
18732 (grub_usb_bulk_read_extended): Likewise.
18733 * include/grub/usbdesc.h (grub_usb_desc): New type.
18734 * include/grub/usbserial.h: New file.
18735 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
18736 * kern/term.c (grub_term_poll_usb): New variable.
18737 (grub_getkey): Call grub_term_poll_usb if set.
18738 (grub_checkkey): Likewise.
18739 (grub_getkeystatus): Likewise.
18740 * term/serial.c: Moved controller-specific parts to ...
18741 * term/ns8250.c: ... here.
18742 * term/serial.c: Mostly rewritten.
18743 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
18744 according to spec.
18745
18746 2010-08-20 Robert Millan <rmh@gnu.org>
18747
18748 Make kFreeBSD code more generic to support ext2fs as root, ufs as
18749 a separate module and maybe other interesting combinations.
18750
18751 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
18752 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
18753 (kfreebsd_entry): Add generic filesystem module load routine.
18754 Map GRUB `ext2' to kFreeBSD `ext2fs'.
18755
18756 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18757
18758 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
18759 "numcenter" (I misunderstood the purpose of this entry).
18760 * docs/grub.texi (sendkey): Likewise.
18761
18762 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18763
18764 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
18765 status flag options; simply omitting the option is equivalent and
18766 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
18767 (keysym_table): Rename "num5numlock" to "numlock".
18768 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
18769 can uniformly say that only the last of multiple `sendkey'
18770 invocations has any effect.
18771 * docs/grub.texi (sendkey): New section.
18772
18773 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
18774
18775 * commands/i386/pc/sendkey.c (options): Fix three typos.
18776
18777 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18778
18779 Implement sendkey support.
18780
18781 * commands/i386/pc/sendkey.c: New file.
18782 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
18783 (sendkey_mod_SOURCES): New variable.
18784 (sendkey_mod_CFLAGS): Likewise.
18785 (sendkey_mod_LDFLAGS): Likewise.
18786
18787 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18788
18789 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
18790 fix warnings from Autoconf.
18791
18792 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18793
18794 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
18795 to avoid false positives with some assemblers that output things
18796 like "someprefix_func" as part of their output.
18797
18798 2010-08-15 Robert Millan <rmh@gnu.org>
18799
18800 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
18801 errors.
18802 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
18803 grub_get_libzfs_handle() errors.
18804
18805 2010-08-14 Robert Millan <rmh@gnu.org>
18806
18807 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
18808 filesystem is not ZFS.
18809
18810 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18811
18812 Fix for misspelled color names defaulting to black/black (bug
18813 reported by Doug Nazar)
18814
18815 * include/grub/normal.h (grub_parse_color_name_pair): Add return
18816 status to prototype.
18817 * normal/color.c (grub_parse_color_name_pair): Return failure
18818 status.
18819 (grub_env_write_color_normal): Ignore bad color names.
18820 (grub_env_write_color_highlight): Likewise.
18821 * normal/main.c (GRUB_MOD_INIT): Set default color names.
18822
18823 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18824
18825 "shift" command support to GRUB script.
18826
18827 * include/grub/script_sh.h (grub_script_shift): New prototype.
18828 * script/execute.c (grub_script_shift): New function.
18829 * script/main.c (grub_script_init): Register shift command.
18830 (grub_script_fini): Unregister shift command.
18831 * util/grub-script-check.c (grub_script_cmd_shift): New function.
18832
18833 * tests/grub_script_shift.in: New testcase.
18834 * conf/tests.rmk: Rules for new testcase.
18835
18836 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18837
18838 "continue" command support to GRUB script.
18839
18840 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
18841 (grub_script_break): Continue support.
18842 * script/main.c (grub_script_init): Register continue command.
18843 (grub_script_fini): Unregister continue command.
18844
18845 * tests/grub_script_continue.in: New testcase.
18846 * conf/tests.rmk: Rules for new testcase.
18847
18848 2010-08-12 BVK Chaitanya <bvk@dbook>
18849
18850 "break" command support to GRUB script.
18851
18852 * conf/common.rmk: Rule updates to grub-script-check.
18853 * include/grub/misc.h (grub_min): New function.
18854 * include/grub/script_sh.h (grub_script_init): New prototype.
18855 (grub_script_fini): New prototype.
18856 (grub_script_break): New prototype.
18857 * script/main.c (grub_script_init): New function.
18858 (grub_script_fini): New function.
18859 * script/execute.c (grub_script_break): New function.
18860 * normal/main.c: Calls to grub_script_{init,fini}.
18861 * util/grub-script-check.c (grub_script_break): New function.
18862
18863 * tests/grub_script_break.in: New testcase.
18864 * conf/tests.rmk: Rules for new test case.
18865
18866 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18867
18868 Function parameters support to GRUB script.
18869
18870 * script/yylex.l (VARIABLE): Regular expression update.
18871 * script/function.c (grub_script_function_call): Moved ...
18872 * script/execute.c (grub_script_function_call): ... to here.
18873 (grub_script_execute_arglist_to_argv): Removed.
18874 (grub_script_arglist_to_argv): New function.
18875 * script/argv.c: New file.
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 * include/grub/script_sh.h (grub_script_argv): New struct.
18881 (grub_script_argv_free): New function.
18882 (grub_script_argv_next): Likewise.
18883 (grub_script_argv_append): Likewise.
18884 (grub_script_argv_split_append): Likewise.
18885
18886 * conf/common.rmk (normal.mod): New source script/argv.c.
18887
18888 * tests/grub_script_echo1.in: More tests.
18889 * tests/grub_script_vars1.in: Likewise.
18890 * tests/grub_script_functions.in: New test case.
18891 * conf/tests.rmk: Rules for new testcase.
18892
18893 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18894
18895 Remove grub_script_cmdblock struct.
18896
18897 * include/grub/script_sh.h: Remove grub_script_cmdblock.
18898 * script/parser.y: Likewise.
18899 * script/execute.c: Rename cmdblock suffix to cmdlist.
18900 * script/script.c: Likewise.
18901 * util/grub-script-check.c: Likewise.
18902
18903 2010-08-11 Yves Blusseau <blusseau@zetam.org>
18904
18905 * .bzrignore: add grub-macho2img
18906
18907 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18908
18909 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
18910
18911 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18912
18913 Remove the dump of sm712 initialisation sequence.
18914
18915 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
18916 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
18917 (GRUB_VGA_IO_MISC_WRITE): Likewise.
18918 (GRUB_VGA_CR_*): Added many registers.
18919 (GRUB_VGA_SR_*): Likewise.
18920 (GRUB_VGA_GR_*): Likewise.
18921 (grub_vga_write_arx): New function.
18922 (grub_video_hw_config): New struct.
18923 (grub_vga_set_geometry): New function.
18924 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
18925 GRUB_PCI_CLASS_SUBCLASS_VGA.
18926 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
18927 * video/sm712.c (grub_sm712_write_reg): New function
18928 (grub_sm712_read_reg): Likewise.
18929 (grub_sm712_sr_write): Likewise.
18930 (grub_sm712_gr_write): Likewise.
18931 (grub_sm712_cr_write): Likewise.
18932 (grub_sm712_write_arx): Likewise.
18933 (grub_sm712_cr_shadow_write): Likewise.
18934 (grub_sm712_write_dda_lookup): Likewise.
18935 (grub_video_sm712_setup): Initialise the video rather then
18936 blindly replay the dump.
18937 (main) [TEST]: Add a routine to be able to compile as standalone for
18938 tests.
18939 * video/sm712_init.c (sm712_init): Removed.
18940 (sm712_sr_seq1): New array.
18941 (sm712_sr_seq2): Likewise.
18942
18943 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18944
18945 * include/grub/vga.h: Add missing grub/pci.h include.
18946
18947 2010-08-10 Yves Blusseau <blusseau@zetam.org>
18948
18949 * util/grub-macho2img.c (main): fix typo
18950
18951 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18952
18953 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
18954 (grub_vga_gr_read): Likewise.
18955 (grub_vga_cr_write): Likewise.
18956 (grub_vga_cr_read): Likewise.
18957 (grub_vga_sr_write): Likewise.
18958 (grub_vga_sr_read): Likewise.
18959 (grub_vga_palette_read): Likewise.
18960 (grub_vga_palette_write): Likewise.
18961 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
18962 (grub_sm712_sr_read): New function.
18963 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
18964 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
18965
18966 2010-08-09 Robert Millan <rmh@gnu.org>
18967
18968 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
18969 out unused variables on non-ZFS build.
18970
18971 2010-08-08 Robert Millan <rmh@gnu.org>
18972
18973 Fix path generation for sub-filesystems in ZFS.
18974
18975 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
18976 missing slash.
18977
18978 2010-08-08 Robert Millan <rmh@gnu.org>
18979
18980 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
18981
18982 2010-08-08 Robert Millan <rmh@gnu.org>
18983
18984 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
18985 exist, issue a proper error message (rely on `ls' for translated
18986 strings).
18987
18988 2010-08-08 Robert Millan <rmh@gnu.org>
18989
18990 Fix grub-probe invocation.
18991
18992 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
18993
18994 2010-08-04 Robert Millan <rmh@gnu.org>
18995
18996 * configure.ac: Remove checks for getfsstat() and getmntany().
18997 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
18998 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
18999 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
19000 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
19001 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
19002 function.
19003 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
19004 via find_mount_point_from_dir() and getfsstat() / getmntany().
19005
19006 2010-08-04 Robert Millan <rmh@gnu.org>
19007
19008 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19009 (grub_find_zpool_from_mount_point): Merge into ...
19010 (grub_find_zpool_from_dir): ... this.
19011 * kern/emu/misc.c: Likewise.
19012
19013 * kern/emu/misc.c
19014 (grub_make_system_path_relative_to_its_root): Replace
19015 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
19016 with grub_find_zpool_from_dir().
19017 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
19018
19019 2010-08-04 Robert Millan <rmh@gnu.org>
19020
19021 Support OpenSolaris in ZFS device resolution.
19022
19023 * configure.ac: Check for getmntany().
19024 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
19025 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
19026 support.
19027
19028 2010-08-03 Robert Millan <rmh@gnu.org>
19029
19030 Fix grub-emu build.
19031
19032 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
19033 * include/grub/emu/misc.h: ... here.
19034
19035 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
19036 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
19037
19038 * util/misc.c: Remove `<grub/util/libzfs.h>'.
19039 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
19040 (grub_get_libzfs_handle): Move to ...
19041 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
19042 (grub_get_libzfs_handle): ... here.
19043
19044 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
19045
19046 * script/execute.c (grub_script_execute_cmdline): Check for NULL
19047 as command name case.
19048
19049 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
19050
19051 * disk/raid.c (insert_array): Select unique numbers for named arrays
19052 as well, for use as keys in the disk cache.
19053
19054 2010-08-01 Robert Millan <rmh@gnu.org>
19055
19056 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
19057 kFreeBSD device name, except on ZFS where the filesystem label is
19058 used.
19059 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
19060 `/boot/zfs/zpool.cache'.
19061 Set mountfrom kernel variable using ${kfreebsd_device}.
19062
19063 2010-08-01 Robert Millan <rmh@gnu.org>
19064
19065 Make it even harder to use uninitialized `libzfs_handle' (and
19066 make the interface a bit simpler).
19067
19068 * include/grub/util/misc.h (grub_util_init_libzfs)
19069 (libzfs_handle): Remove.
19070 (grub_get_libzfs_handle): New prototype.
19071
19072 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
19073 attribute.
19074 (grub_util_init_libzfs): Remove.
19075 (grub_get_libzfs_handle): New function.
19076
19077 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
19078 grub_get_libzfs_handle() to obtain a libzfs handle instead of
19079 accessing `libzfs_handle' directly.
19080
19081 2010-08-01 Robert Millan <rmh@gnu.org>
19082
19083 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19084 (grub_find_zpool_from_mount_point): New function prototypes.
19085
19086 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19087 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19088
19089 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19090 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19091 `static' attribute.
19092
19093 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19094 finding zpool from mount point into ...
19095 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19096
19097 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19098 requested path is part of a ZFS pool, use
19099 grub_find_zpool_from_mount_point() to detect its filesystem name,
19100 and generate a path with `/fsname@path' syntax.
19101
19102 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19103
19104 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
19105 (void) rather than () so that this is a proper prototype.
19106
19107 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19108
19109 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
19110
19111 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19112
19113 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
19114 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
19115
19116 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19117
19118 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
19119
19120 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19121
19122 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
19123
19124 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19125
19126 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
19127 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
19128 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
19129 disable gfxpayload.
19130 (Shell-like scripting): Add real content.
19131 (Serial terminal): Suggest `terminal_input serial; terminal_output
19132 serial' rather than putting the two commands on separate lines,
19133 since console input will be inoperative after the first command.
19134 (menuentry): Document --class, --users, and --hotkey options.
19135 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
19136 Vladimir Serbinenko).
19137
19138 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19139 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19140
19141 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
19142
19143 2010-08-01 Robert Millan <rmh@gnu.org>
19144
19145 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19146 (grub_find_zpool_from_mount_point): New function prototypes.
19147
19148 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19149 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19150
19151 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19152 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19153 `static' attribute.
19154
19155 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19156 finding zpool from mount point into ...
19157 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19158
19159 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19160 requested path is part of a ZFS pool, use
19161 grub_find_zpool_from_mount_point() to detect its filesystem name,
19162 and generate a path with `/fsname@path' syntax.
19163
19164 2010-08-01 Robert Millan <rmh@gnu.org>
19165
19166 Prevent accidental use of uninitialized libzfs_handle.
19167
19168 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
19169 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
19170 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
19171
19172 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19173
19174 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
19175 util/grub.d/10_linux.in). Fixes Debian bug #591093.
19176
19177 2010-08-01 Robert Millan <rmh@gnu.org>
19178
19179 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
19180
19181 2010-07-31 Robert Millan <rmh@gnu.org>
19182
19183 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
19184
19185 2010-07-31 Robert Millan <rmh@gnu.org>
19186
19187 * kern/emu/misc.c: Add missing license header.
19188
19189 2010-07-31 Robert Millan <rmh@gnu.org>
19190
19191 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
19192
19193 * include/grub/util/libnvpair.h: Include `<config.h>'.
19194 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
19195 declaring libnvpair prototypes ourselves.
19196 * include/grub/util/libzfs.h: Include `<config.h>'.
19197 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
19198 declaring libzfs prototypes ourselves.
19199
19200 (libzfs_handle): Moved to ...
19201 * include/grub/util/misc.h (libzfs_handle): ... here.
19202 Include `<grub/util/libzfs.h>'.
19203
19204 2010-07-30 Robert Millan <rmh@gnu.org>
19205
19206 * include/grub/emu/misc.h: Add missing license header.
19207
19208 2010-07-30 Robert Millan <rmh@gnu.org>
19209
19210 Enable `grub-probe -t device' resolution on ZFS.
19211
19212 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
19213 * include/grub/util/libnvpair.h: New file.
19214 * include/grub/util/libzfs.h: New file.
19215
19216 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
19217 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
19218 `<grub/util/libnvpair.h>'.
19219 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
19220
19221 (find_mount_point_from_dir): New static function.
19222 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
19223 function.
19224 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
19225 find_root_device_from_libzfs() before ressorting to find_root_device().
19226
19227 * include/grub/util/misc.h (grub_util_init_libzfs): New function
19228 prototype.
19229 * util/misc.c: Include `<grub/util/libzfs.h>'.
19230 (grub_util_init_libzfs): New function.
19231 [HAVE_LIBZFS] (libzfs_handle): New global variable.
19232 [HAVE_LIBZFS] (fini_libzfs): New static function.
19233 (grub_util_init_libzfs): New function.
19234 * util/grub-probe.c (main): Call grub_util_init_libzfs().
19235
19236 2010-07-30 Robert Millan <rmh@gnu.org>
19237
19238 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
19239 (xmalloc, xrealloc, xstrdup, xasprintf): Add
19240 `warn_unused_result' attribute.
19241 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
19242 (grub_xasprintf, grub_xvasprintf): Likewise.
19243 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
19244
19245 2010-07-29 Robert Millan <rmh@gnu.org>
19246
19247 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
19248 (probe): Handle `PRINT_FS_LABEL'.
19249 (main): Handle `-t fs_label'.
19250
19251 2010-07-29 Robert Millan <rmh@gnu.org>
19252
19253 * configure.ac: Remove grub-mkisofs checks.
19254
19255 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
19256
19257 * util/ieee1275/grub-install.in: Don't use empty grub_device.
19258 Reported by: Lennart Sorensen.
19259
19260 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19261
19262 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
19263 prior to terminal_input/terminal_output separation. It's been over 1.5
19264 years and those versions weren't widely deployed.
19265
19266 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
19267
19268 * disk/raid.c (insert_array): Don't count named arrays when looking
19269 for unused array numbers.
19270 Reported and tested by: Michael Guntsche.
19271
19272 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19273
19274 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
19275 implementation of this so that grub-emu links again, with a note
19276 that this should support hotplugging in the future.
19277
19278 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19279
19280 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
19281
19282 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19283
19284 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
19285 handle on failure.
19286 (grub_loopback_close): Remove empty function.
19287 (grub_loopback_dev): Remove close method.
19288
19289 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19290
19291 Disable EFI cursor when the EFI console becomes inactive.
19292
19293 * term/efi/console.c (grub_efi_console_init): New function.
19294 (grub_efi_console_fini): New function.
19295 (grub_console_term_output): Register init and fini methods.
19296
19297 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19298
19299 * tests/util/grub-shell-tester.in: Remove bashism and declare as
19300 sh script.
19301
19302 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19303
19304 * disk/loopback.c (grub_loopback): Replace filename with file.
19305 (delete_loopback): Handle new semantics.
19306 (grub_cmd_loopback): Likewise.
19307 (grub_loopback_iterate): Likewise.
19308 (grub_loopback_close): Likewise.
19309
19310 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19311
19312 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
19313 with -p "".
19314 Reported by: Tito Keitel.
19315
19316 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19317
19318 * docs/grub.texi (Naming convention): Document new naming convention.
19319
19320 2010-07-20 Vadim Solomin <vadic052@gmail.com>
19321 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19322
19323 Generate device.map in something closer to the old ordering.
19324
19325 * util/deviceiter.c (struct device): New declaration.
19326 (compare_file_names): Rename to ...
19327 (compare_devices): ... this. Sort by kernel name in preference to
19328 the stable by-id name, but keep the latter as a fallback comparison.
19329 Update header comment.
19330 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
19331 of `struct device' rather than of plain file names.
19332
19333 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
19334
19335 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
19336 on i386.
19337
19338 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19339
19340 * commands/acpi.c (setup_common_tables): Use sizeof instead of
19341 hardcoding size.
19342 (setv1table): Likewise.
19343
19344 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19345
19346 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
19347 removing the homehost if present.
19348 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
19349 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
19350 removing the homehost if present.
19351 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
19352 if possible.
19353 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
19354
19355 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
19356 parameter. Set its pointer target to 0.
19357 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
19358 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
19359 `data_offset' value from the superblock for 1.x metadata.
19360 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
19361 data on the device.
19362 (insert_array): Record the start sector of data on the device.
19363 (grub_raid_register): Pass start_sector parameters to
19364 grub_raid_list->detect and insert_array.
19365 * include/grub/raid.h (struct grub_raid_array): Add start_sector
19366 member.
19367 (struct grub_raid): Add start_sector parameter to `detect'.
19368
19369 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
19370 __attribute__ ((packed)), leaving a comment.
19371 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
19372 (grub_mdraid_detect_09): ... here and ...
19373 (grub_mdraid_detect_1x): ... here.
19374
19375 2010-07-20 Peter Henn <peter.henn@web.de>
19376
19377 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
19378 chunk size and disk size, which are already given as sector counts
19379 as distinct from the 0.90 units. Fetch the correct device number
19380 from the role table instead of using the table index.
19381
19382 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
19383
19384 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
19385 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
19386 (WriteMostly1): New macro.
19387 Set array->name to NULL for metadata format 0.90. Add support for
19388 metadata 1.x. Fix some comments.
19389 * disk/raid.c (): Add support for name based RAID arrays. Fix a
19390 few comments.
19391 * util/getroot.c (grub_util_get_grub_dev): Add support for
19392 /dev/md/name style devices.
19393
19394 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19395
19396 * .bzrignore: Ignore 20_linux_xen.
19397
19398 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
19399
19400 * util/import_unicode.py: Remove unnecessary imports.
19401
19402 2010-07-17 Aleš Nesrsta <starous@volny.cz>
19403
19404 Hotplugging and USB hub support.
19405
19406 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
19407 (grub_ohci): Likewise.
19408 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
19409 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
19410 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
19411 (GRUB_OHCI_CTRL_EDS): Likewise.
19412 (GRUB_OHCI_BULK_EDS): Likewise.
19413 (GRUB_OHCI_TDS): Likewise.
19414 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
19415 (grub_ohci_ed_phys2virt): New function.
19416 (grub_ohci_virt_to_phys): Likewise.
19417 (grub_ohci_td_phys2virt): Likewise.
19418 (grub_ohci_td_virt2phys): Likewise.
19419 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
19420 attachment.
19421 (grub_ohci_find_ed): New function.
19422 (grub_ohci_alloc_td): Likewise.
19423 (grub_ohci_free_td): Likewise.
19424 (grub_ohci_free_tds): Likewise.
19425 (grub_ohci_transfer): Use previously allocated memory.
19426 (grub_ohci_portstatus): Reset status changed bit.
19427 (grub_ohci_detect_dev): Supply status changed.
19428 (grub_ohci_fini_hw): Free memory.
19429 (grub_ohci_restore_hw): Reallocate memory.
19430 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
19431 Reset status change.
19432 (grub_uhci_detect_dev): Supply status_change.
19433 * bus/usb/usb.c (attach_hooks): New var.
19434 (grub_usb_device_attach): New function.
19435 (grub_usb_register_attach_hook_class): Likewise.
19436 (grub_usb_unregister_attach_hook_class): Likewise.
19437 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
19438 (grub_usb_add_hub): Reset connection changed bit.
19439 (attach_root_port): New function.
19440 (grub_usb_root_hub): Likewise.
19441 (poll_nonroot_hub): Likewise.
19442 (grub_usb_poll_devices): Likewise.
19443 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
19444 * disk/usbms.c (grub_usbms_open): Use device hooks.
19445 (grub_usbms_iterate) :Poll devices.
19446 (grub_usbms_finddevs): Split into ...
19447 (grub_usbms_attach): ... this ...
19448 (grub_usbms_attach): ... and this.
19449 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
19450 in detect_dev.
19451 (grub_usb_interface): New fields attached and detach_hook.
19452 (grub_usb_attach_hook_class): New type.
19453 (grub_usb_attach_desc): New struct.
19454 (grub_usb_register_attach_hook_class): New function.
19455 (grub_usb_unregister_attach_hook_class): Likewise.
19456 (grub_usb_poll_devices): Likewise.
19457 (grub_usb_device_attach): Likewise.
19458 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
19459 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
19460
19461 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19462
19463 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
19464 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
19465 delta determination style. Works with most NetBSD partitions too.
19466
19467 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19468
19469 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
19470 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
19471
19472 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19473
19474 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
19475
19476 2010-07-14 Anton Blanchard <anton@samba.org>
19477
19478 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
19479 ET_DYN files.
19480
19481 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19482
19483 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
19484
19485 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19486
19487 * kern/partition.c (grub_partition_check_containment): New function to
19488 check that a partition is physically contained in a parent. Since
19489 offsets are relative (and non-negative), this reduces to checking that
19490 the partition ends before its parent.
19491 (grub_partition_map_probe): Discard out-of-range sub-partitions.
19492 (grub_partition_iterate): Likewise.
19493 * include/grub/partition.h (grub_partition_map): Slightly more detailed
19494 comments.
19495 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
19496 partitions that start before their parent, and add debug printfs.
19497
19498 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19499
19500 * Makefile.in (.SUFFIX): Spell correctly, as ...
19501 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
19502 bare module name without `.mod', e.g. `test') tried to invoke a
19503 Modula-2 compiler.
19504
19505 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19506
19507 * README: Point to the Info manual.
19508
19509 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
19510
19511 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
19512 2nd superblock position from partition size.
19513
19514 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
19515
19516 * Makefile.in (MAINTAINER_CLEANFILES): Remove
19517 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
19518 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
19519 outputs.
19520
19521 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19522
19523 Restructure SCSI .id handling.
19524 Reported and tested by: Aleš Nesrsta.
19525
19526 * disk/ata.c (grub_atapi_close): Removed. All users updated.
19527 (grub_atapi_dev): Changed .name to "ata". New field .id.
19528 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
19529 (grub_usbms_dev): New field .id.
19530 * disk/scsi.c (grub_scsi_iterate): Generate name.
19531 (grub_scsi_open): Parse name.
19532 * include/grub/scsi.h (grub_make_scsi_id): New function.
19533 (grub_scsi_dev): Change iterate and open to number instead of naming
19534 busses. All users updated.
19535 (grub_scsi): Remove name. Add .bus.
19536
19537 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19538
19539 * commands/help.c (grub_cmd_help): Fix a typo.
19540
19541 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19542
19543 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
19544 Reported and tested by: Colin Watson.
19545
19546 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19547
19548 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
19549 in this context.
19550
19551 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
19552
19553 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
19554
19555 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
19556
19557 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
19558 indentation.
19559
19560 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19561
19562 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
19563 and disk/raid6_recover.c.
19564 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19565 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
19566
19567 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19568
19569 * term/gfxterm.c (repaint_schedulded): Rename to ...
19570 (repaint_scheduled): ... this. Update all callers.
19571 (repaint_was_schedulded): Rename to ...
19572 (repaint_was_scheduled): ... this. Update all callers.
19573
19574 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19575
19576 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
19577 which we expect to be handled by upper layers.
19578
19579 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
19580
19581 * bus/usb/usbhub.c: #include time.h header.
19582
19583 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19584
19585 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
19586 entry_name also for entries without stat blocks (e.g. ".."); fixes
19587 corruption of the first entry in a directory.
19588
19589 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19590
19591 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
19592 after setting gfxterm as the active terminal. GRUB_BACKGROUND
19593 doesn't work otherwise.
19594
19595 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19596
19597 * docs/grub.texi (Features): Update list of supported file systems.
19598 (GNU/Linux): Update for GRUB 2.
19599 (Serial terminal): Remove mention of --disable-serial, which was a
19600 GRUB Legacy configure option. Update instructions to use
19601 `terminal_input' and `terminal_output' rather than `terminal'.
19602 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
19603 configuration' and `Installing GRUB using grub-install'.
19604 (Menu entry editor): Update for GRUB 2.
19605 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
19606 Document new -a, -u, and -v options.
19607 (initrd): New section.
19608 (initrd16): New section.
19609 (linux): New section.
19610 (linux16): New section.
19611 (search): The `var' argument to `--set' is optional.
19612 (GRUB only offers a rescue shell): Go into a little more detail on
19613 drive ordering.
19614
19615 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19616
19617 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
19618
19619 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19620
19621 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
19622 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
19623
19624 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19625
19626 * util/i386/pc/grub-setup.c (setup): Rename prefix to
19627 install_prefix, in line with install_dos_part and install_bsd_part.
19628 Add new prefix variable, which is copied to install_prefix after
19629 comparing core.img in memory with the one read from disk in the
19630 no-embedding case, and use that rather than overwriting
19631 install_prefix immediately when installing to a partition.
19632 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
19633 Bicakci.
19634
19635 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19636
19637 * configure.ac: Avoid == in test command, it's not portable.
19638 * util/grub.d/30_os-prober.in: Likewise.
19639
19640 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
19641
19642 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
19643
19644 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19645
19646 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
19647 multiple (top-level) partmaps.
19648
19649 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19650
19651 * util/i386/efi/grub-install.in: Don't use empty grub_device.
19652 Reported by: Tino Keitel.
19653
19654 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19655
19656 Bidi and diacritics support.
19657
19658 * Makefile.in (widthspec.bin): New target.
19659 (widthspec.h): Likewise.
19660 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
19661 * autogen.sh: Generate unidata.c.
19662 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
19663 * commands/ls.c (grub_ls_list_devices): Likewise.
19664 (grub_ls_list_files): Likewise.
19665 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
19666 (grub_mini_cmd_lsmod): Likewise.
19667 * commands/read.c: Likewise.
19668 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
19669 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
19670 * lib/arg.c (grub_arg_show_help): Likewise.
19671 * lib/crypto.c (grub_password_get): Likewise.
19672 * normal/auth.c (grub_username_get): Likewise.
19673 * normal/misc.c (grub_normal_print_device_info): Likewise.
19674 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
19675 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
19676 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
19677 (normal/charset.c_DEPENDENCIES): New variable.
19678 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
19679 (pkglib_MODULES): Remove charset.mod.
19680 (charset_mod_SOURCES): Removed.
19681 (charset_mod_CFLAGS): Likewise.
19682 (charset_mod_LDFLAGS): Likewise.
19683 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
19684 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
19685 and term/tparm.c.
19686 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19687 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19688 (kernel_img_HEADERS): Add terminfo.h.
19689 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
19690 Fill ->font. Reverse ascii bitmaps.
19691 (grub_font_get_xheight): New function.
19692 * font/font.c (grub_font_get_string_width): Moved from here ...
19693 * gfxmenu/font.c (grub_font_get_string_width): ... here.
19694 * font/font.c (grub_font_draw_string): Moved from here ...
19695 * gfxmenu/font.c (grub_font_draw_string): ... here.
19696 * font/font.c (grub_font_dup_glyph): New function.
19697 (grub_font_blit_glyph): Likewise.
19698 (grub_font_blit_glyph_mirror): Likewise.
19699 (blit_comb): Likewise.
19700 (grub_font_construct_dry_run): Likewise.
19701 (grub_font_get_constructed_device_width): Likewise.
19702 (grub_font_construct_glyph): Likewise.
19703 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
19704 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
19705 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
19706 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
19707 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
19708 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
19709 (grub_font_get_xheight): New proto.
19710 (grub_font_get_constructed_device_width): Likewise.
19711 (grub_font_construct_glyph): Likewise.
19712 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
19713 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
19714 * include/grub/font.h (grub_font_draw_string): Moved from here ...
19715 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
19716 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
19717 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
19718 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
19719 (grub_console_getcharwidth): Likewise.
19720 * include/grub/misc.h (grub_xputs): New proto.
19721 (grub_puts): Inlined.
19722 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
19723 (grub_normal_get_line_counter): Removed.
19724 (grub_install_newline_hook): Likewise.
19725 (grub_normal_get_char_counter): New proto.
19726 (grub_normal_reset_more): Likewise.
19727 (grub_xputs_normal): Likewise.
19728 * include/grub/powerpc/ieee1275/console.h: Removed.
19729 * include/grub/sparc64/ieee1275/console.h: Likewise.
19730 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
19731 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
19732 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
19733 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
19734 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
19735 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
19736 (grub_term_input): Pass reference to self. All users updated.
19737 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
19738 Pass reference to self. New fields normal_color, highlight_color and
19739 data. All users updated.
19740 (grub_putchar): Removed.
19741 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
19742 (grub_unicode_estimate_width): New function.
19743 (grub_term_getcharwidth): Add defaults.
19744 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
19745 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
19746 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
19747 (grub_cls): Remove EXPORT_FUNC.
19748 (grub_setcolorstate): Inline.
19749 (grub_newline_hook): Removed.
19750 * include/grub/terminfo.h: Rewritten. All users updated.
19751 * include/grub/unicode.h: New file.
19752 * include/grub/video.h (grub_video_signed_rect): New type.
19753 * kern/emu/console.c (grub_console_highlight_color): Removed.
19754 (grub_console_normal_color): Likewise.
19755 (grub_console_standard_color): Made static.
19756 (grub_ncurses_putchar): Remove mapping.
19757 (grub_ncurses_getcharwidth): Removed.
19758 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19759 (grub_ncurses_setcolor): Removed.
19760 (grub_ncurses_getcolor): Likewise.
19761 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
19762 (grub_console_putchar): ... this.
19763 (grub_console_putchar): Handle argument difference.
19764 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
19765 console_init_early and console_init_lately.
19766 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
19767 * kern/misc.c (grub_puts): Removed.
19768 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
19769 (grub_vsnprintf_real): Remove str = NULL support.
19770 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
19771 * normal/charset.c (grub_utf8_to_ucs4): ... here.
19772 * kern/term.c (grub_putcode): Renamed to ...
19773 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
19774 (grub_putchar): Removed.
19775 (grub_xputs_dumb): New function.
19776 (grub_xputs): New variable.
19777 * lib/charset.c: Move from here ...
19778 * normal/charset.c: ... to here.
19779 (grub_ucs4_to_utf8): New function.
19780 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
19781 (join_types): New variable.
19782 (unpack_join): New function.
19783 (bidi_types): New variable.
19784 (unpack_bidi): New function.
19785 (get_bidi_type): Likewise.
19786 (get_join_type): Likewise.
19787 (is_mirrored): Likewise.
19788 (grub_unicode_get_comb_type): Likewise.
19789 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
19790 (is_type_after): Likewise.
19791 (grub_unicode_aglomerate_comb): Likewise.
19792 (bidi_line_wrap): Likewise.
19793 (grub_bidi_line_logical_to_visual): Likewise.
19794 (grub_bidi_logical_to_visual): Likewise.
19795 (grub_unicode_mirror_code): Likewise.
19796 (grub_unicode_shape_code): Likewise.
19797 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
19798 Don't use grub_putchar.
19799 * normal/main.c (grub_normal_init_page): Use grub_putcode.
19800 (grub_normal_reader_init): Likewise.
19801 (grub_xputs_saved): New variable.
19802 (GRUB_MOD_INIT): Set grub_xputs.
19803 (GRUB_MOD_FINI): Restore grub_xputs.
19804 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
19805 (menu_init): Avoid printing gfxmenu error.
19806 (show_menu): Use grub_normal_get_char_counter.
19807 * normal/menu_entry.c (update_screen): Fix out-of-array.
19808 (complete): Avoid NULL dereferencing.
19809 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
19810 * normal/menu_text.c (print_spaces): Removed.
19811 (grub_print_ucs4): Likewise.
19812 (grub_print_message_indented): Use grub_print_ucs4.
19813 (print_message): Use grub_putcode.
19814 (print_entry): Hanlde diacritics.
19815 * normal/term.c (term_state): New type.
19816 (grub_more_lines): Removed.
19817 (term_states): New variable.
19818 (grub_normal_line_counter): Renamed to ..
19819 (grub_normal_char_counter): ...this. All users updated.
19820 (grub_normal_get_line_counter): Renamed to ...
19821 (grub_normal_get_char_counter): ... this.
19822 (grub_normal_reset_more): New function.
19823 (process_newline): Removed.
19824 (print_more): New function.
19825 (grub_install_newline_hook): Removed.
19826 (map_code): New function.
19827 (grub_puts_terminal): Use grub_print_ucs4.
19828 (putglyph): New function.
19829 (putcode_real): Likewise.
19830 (grub_putcode): Use putcode_real.
19831 (get_maxwidth): New function.
19832 (get_startwidth): Likewise.
19833 (print_ucs4_terminal): Likewise.
19834 (find_term_state): Likewise.
19835 (put_glyphs_terminal): Likewise.
19836 (print_backlog): Likewise.
19837 (print_ucs4_real): Likewise.
19838 (grub_print_ucs4): Likewise.
19839 (grub_xputs_normal): Likewise.
19840 * term/efi/console.c (grub_console_putchar): Output diacritics.
19841 (grub_console_getcharwidth): Removed.
19842 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19843 * term/gfxterm.c (clear_char): Free chars.
19844 (scroll_up): Avoid leaking memory.
19845 (grub_gfxterm_putchar): Support diacritics.
19846 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19847 * term/i386/pc/console.c (grub_console_term_output): Declare as
19848 GRUB_TERM_CODE_TYPE_VGA.
19849 * term/i386/pc/vga.c (grub_vga_term): Declare as
19850 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
19851 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
19852 GRUB_TERM_CODE_TYPE_VGA.
19853 * term/i386/vga_common.c (map_char): Removed.
19854 (grub_console_putchar): Likewise.
19855 (grub_console_getcharwidth): Likewise.
19856 * term/ieee1275/ofconsole.c: Simplify using terminfo.
19857 (colors): Reordered to match terminfo.
19858 (grub_ofconsole_normal_color): Removed.
19859 (grub_ofconsole_writeesc): Likewise.
19860 (grub_ofconsole_highlight_color): Likewise.
19861 (grub_ofconsole_getcharwidth): Likewise.
19862 (grub_ofconsole_setcolorstate): Likewise.
19863 (grub_ofconsole_setcolor): Likewise.
19864 (grub_ofconsole_getcolor): Likewise.
19865 (grub_ofconsole_readkey): Renamed to ...
19866 (readkey): ... this. Remove escape sequence handling. Return -1 on no
19867 key.
19868 (grub_ofconsole_checkkey): Removed.
19869 (grub_ofconsole_getkey): Likewise.
19870 (grub_ofconsole_getxy): Likewise.
19871 (grub_ofconsole_gotoxy): Likewise.
19872 (grub_ofconsole_cls): Likewise.
19873 (grub_ofconsole_refresh): Likewise.
19874 (grub_ofconsole_terminfo_input): New struct.
19875 (grub_ofconsole_terminfo_output): Likewise.
19876 (grub_ofconsole_term_input): Use terminfo.
19877 (grub_ofconsole_term_output): Likewise.
19878 (grub_console_init): Split into ...
19879 (grub_console_init_early): ...this and ...
19880 (grub_console_init_lately): ...this. Use terminfo.
19881 (grub_ofconsole_putchar): Renamed to ...
19882 (put): ... this. Remove mapping.
19883 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19884 * term/serial.c: Simplify using terminfo.
19885 (xpos): Removed.
19886 (ypos): Likewise.
19887 (keep_track): Likewise.
19888 (registered): Likewise.
19889 (input_buf): Likewise.
19890 (npending): Likewise.
19891 (serial_translate_key_sequence): Likewise.
19892 (fill_input_buf): Likewise.
19893 (grub_serial_checkkey): Likewise.
19894 (grub_serial_getkey): Likewise.
19895 (grub_serial_getxy): Likewise.
19896 (grub_serial_gotoxy): Likewise.
19897 (grub_serial_putchar): Likewise.
19898 (grub_serial_cls): Likewise.
19899 (grub_serial_setcolorstate): Likewise.
19900 (grub_serial_setcursor): Likewise.
19901 (serial_hw_init): Use serial_hw_fetch.
19902 (grub_serial_terminfo_input): New variable.
19903 (grub_serial_terminfo_output): Likewise.
19904 (grub_serial_term_input): Use terminfo.
19905 (grub_serial_term_output): Likewise.
19906 * term/terminfo.c (putstr): Use put.
19907 (grub_terminfo_all_free): New function
19908 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
19909 (grub_terminfo_output_register): New function.
19910 (grub_terminfo_output_unregister): Likewise.
19911 (grub_terminfo_getxy): Likewise.
19912 (grub_terminfo_readkey): Likewise.
19913 (grub_terminfo_checkkey): Likewise.
19914 (grub_terminfo_getkey): Likewise.
19915 (grub_terminfo_input_init): Likewise.
19916 (print_terminfo): Likewise.
19917 (grub_cmd_terminfo): Handle encoding.
19918 (grub_terminfo_gotoxy): Track position.
19919 (grub_terminfo_cls): Likewise.
19920 (grub_terminfo_putchar): Likewise.
19921 (grub_terminfo_setcolorstate): Handle colors
19922 (grub_terminfo_cursor_on): This ...
19923 (grub_terminfo_cursor_off): ... and this merged into ...
19924 (grub_terminfo_setcursor): ... this.
19925 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
19926 * unicode/ArabicShaping.txt: New file (imported from Unicode).
19927 * unicode/BidiMirroring.txt: Likewise.
19928 * unicode/UnicodeData.txt: Likewise.
19929 * unicode/COPYING: Likewise.
19930 * util/grub-editenv.c (grub_putchar): Removed.
19931 (grub_xputs_real): New function.
19932 (grub_xputs): New variable.
19933 * util/grub-fstest.c (grub_putchar): Removed.
19934 (grub_xputs_real): New function.
19935 (grub_xputs): New variable.
19936 * util/grub-mkdevicemap.c (grub_putchar): Removed.
19937 (grub_xputs_real): New function.
19938 (grub_xputs): New variable.
19939 * util/grub-probe.c (grub_putchar): Removed.
19940 (grub_xputs_real): New function.
19941 (grub_xputs): New variable.
19942 * util/grub-script-check.c (grub_putchar): Removed.
19943 (grub_xputs_real): New function.
19944 (grub_xputs): New variable.
19945 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
19946 (grub_xputs_real): New function.
19947 (grub_xputs): New variable.
19948 * util/import_unicode.py: New file.
19949 * util/grub-mkfont.c (ft_errmsgs): New array.
19950 (grub_glyph_info): Make bitmap a pointer.
19951 (file_formats): New type WIDTH_SPEC.
19952 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
19953 (options): Add width-spec.
19954 (help): Likewise.
19955 (add_char): Renamed to ...
19956 (add_glyph): ... this.
19957 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
19958 (glyph_replace): New type.
19959 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
19960 (add_char): New function.
19961 (add_subst): Likewise.
19962 (process_cursive): Likewise.
19963 (add_font): Handle GSUB.
19964 (write_font_width_spec): New function.
19965 (main): Sort glyphs.
19966 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
19967 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
19968 * kern/term.c (grub_cls): Moved from here...
19969 * normal/term.c (grub_cls): ... here.
19970
19971 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19972
19973 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
19974 suitable for using within the format argument of printf when
19975 converting grub_size_t.
19976 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
19977 "x" to convert grub_size_t arguments.
19978
19979 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19980
19981 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
19982 too long captions.
19983 (list_get_minimal_size): Take selection box into account.
19984
19985 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19986
19987 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
19988 NULL font.
19989
19990 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19991
19992 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
19993 devices when iterating over /dev/disk/by-id; they will be handled
19994 later if appropriate, which they aren't always (e.g. LVM).
19995
19996 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19997
19998 * include/grub/misc.h (grub_reboot): Declare as noreturn.
19999 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
20000 fails.
20001 (grub_halt): Likewise.
20002 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
20003 reset-all fails.
20004 (grub_halt): Don't return, even if all of shut-down, power-off, and
20005 poweroff fail.
20006
20007 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20008
20009 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
20010 arguments, not three.
20011
20012 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20013
20014 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
20015 * util/grub.d/10_linux.in: Use it to check for LVM, so that
20016 LVM-on-RAID is handled correctly.
20017
20018 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20019
20020 * docs/grub.texi (Changes from GRUB Legacy): New section.
20021 (Future): Fix typo.
20022
20023 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20024
20025 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
20026 grub.d/README accidentally ends up executable for one reason or
20027 another. Ignore it.
20028
20029 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20030
20031 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
20032 (gpt_partition_map_iterate): Support non-512B sectors.
20033
20034 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20035
20036 * kern/efi/init.c (grub_efi_init): Disable watchdog.
20037 Tested by: Seth Goldberg.
20038
20039 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20040
20041 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
20042 Properly align mbi.
20043 Reported by: Seth Goldberg.
20044
20045 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20046
20047 * util/grub-mkrescue.in: Avoid module duplication.
20048
20049 2010-07-01 Sean Finney <seanius@seanius.net>
20050
20051 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
20052
20053 2010-07-01 Sean Finney <seanius@seanius.net>
20054
20055 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
20056
20057 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20058
20059 * disk/lvm.c (grub_lvm_checkvalue): New function.
20060 (grub_lvm_check_flag): Likewise.
20061
20062 2010-07-01 Robert Millan <rmh@gnu.org>
20063
20064 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
20065 Support 'p' as partition separator on kernel of FreeBSD (used
20066 with GPT labels).
20067 (grub_util_biosdisk_get_grub_dev): Likewise.
20068
20069 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20070
20071 Yeeloong firmware port.
20072
20073 * boot/mips/yeeloong/fwstart.S: New file.
20074 * bus/cs5536.c (gpiodump): New const.
20075 (set_io_space): New function.
20076 (set_iod): Likewise.
20077 (set_p2d): Likewise.
20078 (grub_cs5536_init_geode): Likewise.
20079 * commands/mips/yeeloong/lsspd.c: New file.
20080 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
20081 (serial_mod_SOURCES): New variable.
20082 (serial_mod_CFLAGS): Likewise.
20083 (serial_mod_LDFLAGS): Likewise.
20084 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
20085 term/terminfo.c and term/tparm.c.
20086 (pkglib_IMAGES): Add fwstart.img.
20087 (fwstart_img_SOURCES): New variable.
20088 (fwstart_img_CFLAGS): Likewise.
20089 (fwstart_img_ASFLAGS): Likewise.
20090 (fwstart_img_LDFLAGS): Likewise.
20091 (fwstart_img_FORMAT): Likewise.
20092 (pkglib_MODULES): Add lsspd.mod.
20093 (lsspd_mod_SOURCES): New variable.
20094 (lsspd_mod_CFLAGS): Likewise.
20095 (lsspd_mod_LDFLAGS): Likewise.
20096 (pkglib_MODULES): Add halt.mod.
20097 (halt_mod_SOURCES): New variable.
20098 (halt_mod_CFLAGS): Likewise.
20099 (halt_mod_LDFLAGS): Likewise.
20100 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
20101 (serial_mod_SOURCES): Removed.
20102 (serial_mod_CFLAGS): Likewise.
20103 (serial_mod_LDFLAGS): Likewise.
20104 * disk/ata.c (check_device): New function.
20105 (grub_ata_device_initialize): Use check_device.
20106 (grub_ata_iterate): Recheck devices.
20107 (grub_ata_open): Likewise.
20108 (grub_atapi_iterate): Likewise.
20109 (grub_atapi_open): Likewise.
20110 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
20111 (GRUB_ATA_CH1_PORT1): Likewise.
20112 (GRUB_ATA_CH0_PORT2): Likewise.
20113 (GRUB_ATA_CH1_PORT2): Likewise.
20114 * include/grub/mips/loongson.h: New file.
20115 * include/grub/mips/yeeloong/ec.h: Likewise.
20116 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
20117 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
20118 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
20119 * include/grub/misc.h (grub_halt): Declare as noreturn.
20120 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
20121 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
20122 (UART_ENABLE_FIFO_TRIGGER1): New definition.
20123 (UART_ENABLE_DTRRTS): Likewise.
20124 (UART_ENABLE_MODEM): Removed.
20125 (UART_ENABLE_OUT2): New const.
20126 * include/grub/term.h (grub_term_register_input_active): New function.
20127 (grub_term_register_output_active): Likewise.
20128 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
20129 argument.
20130 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
20131 (init_pci): New function.
20132 (grub_machine_init): Execute platform init when firmware. Init serial.
20133 (grub_halt): Implement.
20134 (grub_exit): Likewise.
20135 (grub_reboot): Likewise.
20136 * term/serial.c (serial_hw_init): Update macros.
20137 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
20138 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
20139 (image_targets): New target mipsel-yeeloong-flash.
20140 (generate_image): Support IMAGE_YEELOONG_FLASH.
20141 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
20142 (grub_video_sm712_setup): Init card.
20143 (grub_video_sm712_set_palette): Removed.
20144 * video/sm712_init.c: New file.
20145
20146 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
20147
20148 * Makefile.in (install-local): Temporarily prepend $(builddir) to
20149 PATH when running help2man and then run it on the unadorned
20150 executable names, rather than passing $(builddir)/* paths to
20151 help2man. This avoids the build directory ending up in generated
20152 manual pages.
20153
20154 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
20155
20156 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
20157 to avoid accidents when debugging with 'sh -x'.
20158 * util/grub-mkrescue.in: Likewise.
20159 * util/grub.d/00_header.in: Likewise.
20160 * util/grub.d/10_hurd.in: Likewise.
20161 * util/grub.d/10_kfreebsd.in: Likewise.
20162 * util/grub.d/10_linux.in: Likewise.
20163 * util/grub.d/10_netbsd.in: Likewise.
20164 * util/grub.d/10_windows.in: Likewise.
20165 * util/grub.d/20_linux_xen.in: Likewise.
20166 * util/grub.d/30_os-prober.in: Likewise.
20167 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20168
20169 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
20170
20171 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
20172 last character in the buffer.
20173 Reported by: Vladimir Serbinenko.
20174
20175 2010-06-29 Robert Millan <rmh@gnu.org>
20176
20177 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
20178 (Command-line and menu entry commands): Document `badram' command.
20179
20180 2010-06-28 Robert Millan <rmh@gnu.org>
20181
20182 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
20183 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
20184 command using ${GRUB_BADRAM} as parameter.
20185
20186 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20187
20188 * docs/grub.texi (Device map): New section.
20189 (Themes): New section (stub).
20190 * Makefile.in (docs/grub.info): The info documentation now builds
20191 without errors. Make sure it stays that way.
20192
20193 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20194
20195 Use normal parser for menu entries.
20196 Reported by: Thomas Frauendorfer
20197
20198 * include/grub/parser.h (grub_parser_execute): Don't export.
20199 * normal/menu.c (grub_menu_execute_entry_real): New function.
20200 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
20201
20202 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20203
20204 * docs/grub.texi (Embedded configuration): New section (replacing
20205 old "Preset Menu" stub).
20206 (Images): New section.
20207 (configfile): Note that any menu entries defined in `file' are shown
20208 immediately.
20209
20210 2010-06-28 Josh Triplett <josh@joshtriplett.org>
20211
20212 * mmap/i386/pc/mmap_helper.S: Set CF on return.
20213
20214 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20215
20216 * util/grub-install.in: Add --debug-image= option.
20217
20218 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20219
20220 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
20221 possible on Linux.
20222
20223 * util/deviceiter.c (check_device): Rename to ...
20224 (check_device_readable_unique): ... this. Update all callers.
20225 Maintain and check a list of which devices (by canonicalized name)
20226 have already been seen.
20227 (clear_seen_devices): New function.
20228 (compare_file_names) [__linux__]: New function.
20229 (grub_util_iterate_devices): Clear the list of seen devices on exit
20230 and (just in case) on entry.
20231 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
20232 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
20233 seen-devices list, superseded by general code in check_device.
20234
20235 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20236
20237 * commands/cat.c (options): New variable.
20238 (grub_cmd_cat): Parse options. If the --dos option is given, print
20239 DOS-style "\r\n" line endings as simple newlines (Debian bug
20240 #586358).
20241 (GRUB_MOD_INIT): Use extcmd.
20242 (GRUB_MOD_FINI): Likewise.
20243 * docs/grub.texi (cat): Document --dos.
20244
20245 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20246
20247 XEN with Linux grub-mkconfig support.
20248
20249 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
20250 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
20251 GRUB_CMDLINE_XEN_DEFAULT.
20252 * util/grub.d/20_linux_xen.in: New file.
20253
20254 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20255
20256 Initialise VGA video on qemu ourselves.
20257
20258 * boot/i386/qemu/boot.S: Don't call 0xc000.
20259 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
20260 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
20261 (kernel_img_HEADERS): Add pci.h.
20262 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
20263 * configure.ac: Force unifont on qemu and yeeloong.
20264 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
20265 (grub_vga_palette_write): Use correct register.
20266 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
20267 Call grub_qemu_init_cirrus.
20268 * kern/i386/qemu/init.c: New file.
20269 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
20270
20271 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
20272
20273 2010-06-26 Pavel Roskin <proski@gnu.org>
20274
20275 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
20276 13.
20277
20278 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
20279
20280 * docs/grub.texi (Simple configuration): Explain that
20281 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
20282 set to `true' to disable their respective recovery entries, not
20283 merely set.
20284
20285 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
20286
20287 Make the `source' command slightly faster.
20288
20289 * normal/main.c (grub_normal_execute): Don't re-read list files when
20290 nested.
20291
20292 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
20293
20294 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
20295 field position and mask size to red fields from mode_info, not
20296 green.
20297 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
20298 Remove redundant tag->common.framebuffer_type assignment.
20299 Reported by: Seth Goldberg.
20300
20301 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
20302
20303 Sync up other versions of the Linux loader with Robert Millan's
20304 change of 2010-01-09, "Make loader output a bit more user-friendly".
20305
20306 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
20307 grub_dprintf().
20308 (grub_cmd_linux): Likewise.
20309 (grub_cmd_initrd): Likewise.
20310 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
20311 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20312
20313 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
20314
20315 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
20316 larger than MEMORY_MAP_SIZE.
20317
20318 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
20319
20320 Fix parallel build.
20321
20322 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
20323 dependency.
20324 * script/parser.y: #include grub_script.tab.h header.
20325
20326 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20327
20328 Support >3GiB and <16MiB RAM in i386-qemu.
20329
20330 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
20331 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
20332 (grub_lower_mem): Removed.
20333 (grub_upper_mem): Likewise.
20334 (mem_size): Made static.
20335 (above_4g): New variable.
20336 (grub_machine_mmap_init): Detect small mem_size and above_4g.
20337 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
20338 support.
20339
20340 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20341
20342 Cirrus 5446 and Bochs video cards support.
20343
20344 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
20345 video_bochs.mod
20346 (video_cirrus_mod_SOURCES): New variable.
20347 (video_cirrus_mod_CFLAGS): Likewise.
20348 (video_cirrus_mod_LDFLAGS): Likewise.
20349 (video_bochs_mod_SOURCES): Likewise.
20350 (video_bochs_mod_CFLAGS): Likewise.
20351 (video_bochs_mod_LDFLAGS): Likewise.
20352 * include/grub/vga.h: New file.
20353 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
20354 (grub_video_fb_set_page_t): New type.
20355 (grub_video_fb_setup): New prototype.
20356 (grub_video_fb_swap_buffers): Likewise.
20357 (grub_video_fb_get_info_and_fini): Likewise.
20358 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
20359 (CRTC_DATA_PORT): Likewise.
20360 (CRTC_CURSOR): Likewise.
20361 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20362 (CRTC_CURSOR_ADDR_LOW): Likewise.
20363 (CRTC_CURSOR_DISABLE): Likewise.
20364 (update_cursor): Use grub_vga_cr_write.
20365 (grub_vga_text_setcursor): Likewise.
20366 * video/bochs.c: New file.
20367 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
20368 (palette): Likewise.
20369 (palette_size): Likewise.
20370 (framebuffer): New variable.
20371 (grub_video_fb_init): Use 'framebuffer'.
20372 (grub_video_fb_fini): Likewise.
20373 (grub_video_fb_get_info): Likewise.
20374 (grub_video_fb_get_palette): Likewise.
20375 (grub_video_fb_set_palette): Likewise.
20376 (grub_video_fb_set_viewport): Likewise.
20377 (grub_video_fb_get_viewport): Likewise.
20378 (grub_video_fb_map_color): Likewise.
20379 (grub_video_fb_map_rgb): Likewise.
20380 (grub_video_fb_map_rgba): Likewise.
20381 (grub_video_fb_unmap_color): Likewise.
20382 (grub_video_fb_unmap_color_int): Likewise.
20383 (grub_video_fb_fill_rect): Likewise.
20384 (grub_video_fb_blit_bitmap): Likewise.
20385 (grub_video_fb_blit_render_target): Likewise.
20386 (grub_video_fb_scroll): Likewise.
20387 (grub_video_fb_create_render_target): Likewise.
20388 (grub_video_fb_doublebuf_blit_init): Likewise.
20389 (grub_video_fb_set_active_render_target): Handle doublebuffering.
20390 (doublebuf_pageflipping_update_screen): New function.
20391 (doublebuf_pageflipping_init): Likewise.
20392 (grub_video_fb_setup): Likewise.
20393 (grub_video_fb_swap_buffers): Likewise.
20394 (grub_video_fb_get_info_and_fini): Likewise.
20395 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
20396 All users updated.
20397 (doublebuf_pageflipping_commit): Restructured into ...
20398 (doublebuf_pageflipping_set_page): ... this.
20399 (doublebuf_pageflipping_update_screen): Removed.
20400 (doublebuf_pageflipping_init): Likewise.
20401 (double_buffering_init): Likewise.
20402 (grub_video_vbe_setup): Use grub_video_fb_setup.
20403 (grub_video_vbe_swap_buffers): Removed.
20404 (grub_video_vbe_set_active_render_target): Likewise.
20405 (grub_video_vbe_get_active_render_target): Likewise.
20406 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
20407 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
20408 grub_video_fb_set_active_render_target and
20409 grub_video_fb_get_active_render_target.
20410 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
20411 (SEQUENCER_DATA_PORT): Likewise.
20412 (MAP_MASK_REGISTER): Likewise.
20413 (CRTC_ADDR_PORT): Likewise.
20414 (CRTC_DATA_PORT): Likewise.
20415 (START_ADDR_HIGH_REGISTER): Likewise.
20416 (START_ADDR_LOW_REGISTER): Likewise.
20417 (GRAPHICS_ADDR_PORT): Likewise.
20418 (GRAPHICS_DATA_PORT): Likewise.
20419 (READ_MAP_REGISTER): Likewise.
20420 (INPUT_STATUS1_REGISTER): Likewise.
20421 (INPUT_STATUS1_VERTR_BIT): Likewise.
20422 (get_map_mask): Use grub_vga_sr_read.
20423 (set_map_mask): Use grub_vga_sr_write.
20424 (set_read_map): Use grub_vga_gr_write.
20425 (set_start_address): Use grub_vga_cr_write.
20426 * video/sm712.c (framebuffer): Remove leftover fields.
20427
20428 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
20429
20430 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
20431 setting GRUB_VIDEO_BACKEND. Make it available as a user override
20432 instead. Replace the gfxterm backend check with a check that
20433 ${GRUB_PREFIX}/video.lst is non-empty.
20434 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
20435 again.
20436 (load_video): New generated function. Call it before loading
20437 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
20438 * util/grub.d/10_linux.in (linux_entry): Call load_video.
20439 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
20440 * docs/grub.texi (Simple configuration): Document
20441 GRUB_VIDEO_BACKEND.
20442
20443 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20444
20445 Use video functions in linux and xnu loaders.
20446
20447 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
20448 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
20449 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
20450 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
20451 loader/i386/pc/linux.c.
20452 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
20453 (find_line_len): Removed.
20454 (find_framebuf): Likewise.
20455 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
20456 * loader/i386/efi/xnu.c: Removed.
20457 * loader/i386/pc/xnu.c: Moved from here...
20458 * loader/i386/xnu.c: ...here.
20459
20460 Enable priorities in video drivers.
20461
20462 * include/grub/video.h (grub_video_adapter_prio_t): New type.
20463 (grub_video_adapter): New field prio.
20464 (grub_video_register): Respect prio when inserting.
20465 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
20466 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
20467 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
20468 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
20469 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
20470 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
20471 * video/sm712.c (grub_video_sm712_adapter): Likewise.
20472
20473 Fix SDL driver ID.
20474
20475 * include/grub/video.h (grub_video_driver_id_t): New value
20476 GRUB_VIDEO_DRIVER_SDL.
20477 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
20478
20479 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20480
20481 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
20482 argument to printf.
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): Fix syntax error.
20488 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20489
20490 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20491
20492 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
20493 directly, and recommend grub-install instead.
20494 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20495
20496 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20497
20498 Fix i386-pc prefix handling with nested partitions (Debian bug
20499 #585068). Note that the case where the core image is booted using
20500 multiboot and relocated from its original location still requires
20501 more work.
20502
20503 * kern/i386/pc/init.c (make_install_device): If the prefix starts
20504 with "(,", fill the boot drive in between those two characters, but
20505 expect that a full partition specification including partition map
20506 names will follow.
20507 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
20508 specified, write a prefix without the drive name but including a
20509 full partition specification.
20510
20511 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
20512
20513 * util/grub-mkconfig.in: Ignore non-option arguments, for
20514 compatibility with older versions (before 2010-06-12) which did the
20515 same. In particular, this makes it easier to ship an update-grub
20516 wrapper which is compatible with that used with GRUB Legacy (Debian
20517 bug #586056).
20518
20519 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20520
20521 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
20522 for manual page generation.
20523
20524 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20525
20526 * po/POTFILES: Remove leftover commands/handler.c.
20527
20528 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20529
20530 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
20531 left this script non-functional.
20532
20533 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20534
20535 * docs/man/grub-emu.h2m: New file.
20536
20537 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
20538
20539 * docs/grub.texi (Commands): Document reduced command set in rescue
20540 mode.
20541 (cpuid): New section.
20542
20543 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
20544
20545 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
20546 new partition naming style.
20547 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
20548
20549 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
20550
20551 Add "-o grub.iso" like cmdline options support.
20552
20553 * util/grub-install.in: Improve cmdline option parsing.
20554 * util/grub-mkconfig.in: Likewise.
20555 * util/grub-mkrescue.in: Likewise.
20556 * util/grub-reboot.in: Likewise.
20557 * util/grub-set-default.in: Likewise.
20558 * util/i386/efi/grub-install.in: Likewise.
20559 * util/ieee1275/grub-install.in: Likewise.
20560 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20561
20562 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20563
20564 * .bzrignore: Ignore 41_custom.
20565
20566 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20567
20568 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
20569
20570 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20571
20572 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
20573 prototype declarations.
20574
20575 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
20576 generating fs, partmap, and video lists.
20577 * include/grub/fs.h (grub_fs_register): Omit prototype if
20578 GRUB_LST_GENERATOR is defined.
20579 * include/grub/partition.h (grub_partition_map_register): Likewise.
20580 * include/grub/video.h (grub_video_register): Likewise.
20581
20582 2010-06-12 Javier Martín <lordhabbit@gmail.com>
20583
20584 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
20585
20586 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20587
20588 * util/grub-mkrescue.in: Support --xorriso argument.
20589
20590 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20591
20592 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
20593 Suggested by: Thomas Schmitt.
20594
20595 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20596
20597 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
20598 Suggested by: Thomas Schmitt.
20599
20600 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20601
20602 custom.cfg support.
20603
20604 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
20605 * util/grub.d/41_custom.in: New file.
20606
20607 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20608
20609 * util/grub-mkrescue.in (make_image): Remove sh module, which has
20610 been merged back into normal.
20611
20612 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20613
20614 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
20615 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
20616
20617 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20618
20619 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
20620 when generating manual pages.
20621 * docs/man/grub-bin2h.h2m: New file.
20622 * docs/man/grub-editenv.h2m: New file.
20623 * docs/man/grub-fstest.h2m: New file.
20624 * docs/man/grub-install.h2m: New file.
20625 * docs/man/grub-macho2img.h2m: New file.
20626 * docs/man/grub-mkconfig.h2m: New file.
20627 * docs/man/grub-mkdevicemap.h2m: New file.
20628 * docs/man/grub-mkfont.h2m: New file.
20629 * docs/man/grub-mkimage.h2m: New file.
20630 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
20631 * docs/man/grub-mkrelpath.h2m: New file.
20632 * docs/man/grub-mkrescue.h2m: New file.
20633 * docs/man/grub-ofpathname.h2m: New file.
20634 * docs/man/grub-pe2elf.h2m: New file.
20635 * docs/man/grub-probe.h2m: New file.
20636 * docs/man/grub-reboot.h2m: New file.
20637 * docs/man/grub-script-check.h2m: New file.
20638 * docs/man/grub-set-default.h2m: New file.
20639 * docs/man/grub-setup.h2m: New file.
20640
20641 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
20642
20643 Use FOR_* macros instead of *_iterate whenever possible.
20644
20645 * commands/handler.c: Removed.
20646 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
20647 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
20648 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20649 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
20650 (grub_probe_SOURCES): Remove kern/parser.c.
20651 (util/grub-script-check.c_DEPENDENCIES): Removed.
20652 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
20653 and grub_script_check_init.c.
20654 (grub_script_check_init.lst): Removed.
20655 (grub_script_check_init.h): Likewise.
20656 (grub_script_check_init.c): Likewise.
20657 (pkglib_MODULES): Remove handler.mod and sh.mod.
20658 (handler_mod_SOURCES): Removed.
20659 (handler_mod_CFLAGS): Likewise.
20660 (handler_mod_LDFLAGS): Likewise.
20661 (normal_mod_SOURCES): Remove normal/handler.c.
20662 Add script/main.c, script/script.c, script/execute.c,
20663 script/function.c, script/lexer.c, grub_script.tab.c
20664 and grub_script.yy.c.
20665 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20666 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20667 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
20668 (grub_setup_SOURCES): Remove kern/parser.c.
20669 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20670 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
20671 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
20672 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20673 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20674 (grub_setup_SOURCES): Remove kern/parser.c.
20675 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20676 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
20677 * include/grub/command.h (grub_command_iterate): Removed.
20678 (FOR_COMMANDS): New macro.
20679 * include/grub/dl.h (grub_dl): New member next.
20680 (grub_dl_iterate): Removed.
20681 (grub_dl_head): New variable declaration.
20682 (FOR_DL_MODULES): New macro.
20683 * include/grub/fs.h: Include list.h.
20684 (grub_fs): Make next first element.
20685 (grub_fs_list): New variable declaration.
20686 (grub_fs_register): Make inline.
20687 (grub_fs_unregister): Likewise.
20688 (grub_fs_iterate): Removed.
20689 (FOR_FILESYSTEMS): New macro.
20690 * include/grub/handler.h: Removed.
20691 * include/grub/list.h (grub_list_hook_t): Removed.
20692 (grub_list_test_t): Likewise.
20693 (grub_list_pop): Likewise.
20694 (grub_list_iterate): Likewise.
20695 (grub_list_insert): Likewise.
20696 (FOR_LIST_ELEMENTS): New macro.
20697 * include/grub/parser.h (grub_parser_class): Removed.
20698 (grub_parser_register): Likewise.
20699 (grub_parser_unregister): Likewise.
20700 (grub_parser_get_current): Likewise.
20701 (grub_parser_set_current): Likewise.
20702 (grub_register_rescue_parser): Likewise.
20703 (grub_rescue_parse_line): New function.
20704 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
20705 * include/grub/script_sh.h (grub_script_function_list): New variable
20706 declaration.
20707 (FOR_SCRIPT_FUNCTIONS): New macro.
20708 (grub_script_function_iterate): Removed.
20709 (grub_normal_parse_line): New prototype.
20710 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
20711 (FOR_DISABLED_TERM_INPUTS): Likewise.
20712 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
20713 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
20714 * include/grub/video.h (grub_video_adapter): Move 'next' to first
20715 element.
20716 (grub_video_register): Inline.
20717 (grub_video_unregister): Likewise.
20718 (grub_video_adapter_list): New variable declaration.
20719 (grub_video_iterate): Removed.
20720 (FOR_VIDEO_ADAPTERS): New macro.
20721 * kern/dl.c (grub_dl_list): Removed. All users updated.
20722 (grub_dl_iterate): Removed.
20723 * kern/fs.c (grub_fs_list): Make global.
20724 (grub_fs_register): Removed.
20725 (grub_fs_unregister): Likewise.
20726 (grub_fs_iterate): Likewise.
20727 * kern/handler.c: Removed.
20728 * kern/list.c (grub_list_pop): Removed.
20729 (grub_list_iterate): Likewise.
20730 (grub_list_insert): Likewise.
20731 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
20732 (grub_prio_list_insert): Don't use grub_list_insert.
20733 * kern/main.c (grub_register_rescue_parser): Don't call
20734 grub_register_rescue_parser.
20735 * kern/parser.c (grub_parser_class): Removed.
20736 (grub_parser_execute): Use grub_rescue_parse_line.
20737 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
20738 (grub_rescue_parser): Removed.
20739 (grub_register_rescue_parser): Likewise.
20740 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
20741 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
20742 (grub_auth_check_authentication): Likewise.
20743 * normal/completion.c (iterate_command): Removed.
20744 (grub_normal_do_completion): Use FOR_COMMANDS.
20745 * normal/handler.c: Removed.
20746 * normal/main.c (read_config_file): Remove parser changing.
20747 (grub_normal_execute): Don't call read_handler_list.
20748 (grub_normal_read_line_real): Statically allocate prompt.
20749 (grub_cmdline_run): Use grub_normal_parse_line.
20750 (GRUB_MOD_FINI): Don't call free_handler_list.
20751 * normal/menu_entry.c (run): Likewise.
20752 * script/function.c (grub_script_function_list): Make global.
20753 (grub_script_function_iterate): Removed.
20754 * script/main.c (grub_normal_parse_line): Make global.
20755 (grub_sh_parser): Removed.
20756 (GRUB_MOD_INIT): Likewise.
20757 (GRUB_MOD_FINI): Likewise.
20758 * tests/lib/functional_test.c (grub_functional_test): Use
20759 FOR_LIST_ELEMENTS.
20760 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
20761 (grub_test_run): Use FOR_LIST_ELEMENTS.
20762 * tests/lib/unit_test.c (main): Likewise.
20763 * util/deviceiter.c (grub_util_iterate_devices): Don't use
20764 grub_list_pop.
20765 * util/grub-fstest.c (grub_term_input_class): Removed.
20766 (grub_term_output_class): Likewise.
20767 * util/grub-probe.c: Likewise.
20768 * util/i386/pc/grub-setup.c: Likewise.
20769 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20770 * util/grub-script-check.c (main): Don't call grub_init_all and
20771 grub_fini_all.
20772 * video/video.c (grub_video_adapter_list): Make global.
20773 (grub_video_register): Removed.
20774 (grub_video_unregister): Likewise.
20775 (grub_video_iterate): Likewise.
20776
20777 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
20778
20779 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
20780 reported by Henrique Ferreiro.
20781
20782 2010-06-09 Robert Millan <rmh@gnu.org>
20783
20784 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
20785 ones, when both are available.
20786
20787 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20788
20789 Make --version uniform and avoid hard-coded program name.
20790
20791 * util/grub-mkimage.c (main): Use `program_name' instead of
20792 hard-coded string.
20793 * util/i386/pc/grub-setup.c (main): Likewise.
20794 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
20795 * util/grub-install.in: Save the basename of $0 in $self, and use the
20796 latter in informational messages. Use the same format for --version
20797 as the binary programs.
20798 * util/grub-mkconfig.in: Likewise.
20799 * util/grub-mkrescue.in: Likewise.
20800 * util/grub-reboot.in: Likewise.
20801 * util/grub-set-default.in: Likewise.
20802 * util/i386/efi/grub-install.in: Likewise.
20803 * util/ieee1275/grub-install.in: Likewise.
20804 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20805
20806 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20807
20808 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
20809 embedding area. Use <= instead of == when checking for non-emptiness.
20810
20811 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20812
20813 * configure.ac: Add `.' to the directories searched for unifont.
20814
20815 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20816
20817 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
20818 grub_script.yy.h.
20819
20820 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20821
20822 * docs/grub.texi (History): Expand to cover GRUB 2.
20823 (Serial terminal): Refer to `terminal_input' and `terminal_output'
20824 commands, not `terminal'.
20825 (serial): Likewise.
20826 (terminal_input): New section.
20827 (terminal_output): New section.
20828 (uppermem): New section (stub).
20829 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
20830
20831 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20832
20833 * docs/grub.texi (Security): Menu entries are unrestricted by
20834 default, not restricted to superusers as I had previously thought.
20835 Reword to account for this.
20836
20837 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20838
20839 * kern/emu/misc.c (device_mapper_null_log): New function.
20840 (grub_device_mapper_supported): New function.
20841 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
20842 prototype.
20843 * kern/emu/hostdisk.c (find_partition_start): Check whether
20844 device-mapper is supported before trying to use it.
20845 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
20846
20847 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20848
20849 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
20850 (File name syntax): Likewise.
20851 (help): --all is no longer supported in GRUB 2. Be more precise
20852 about pattern matching.
20853
20854 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20855
20856 * normal/completion.c (grub_normal_do_completion): When completing
20857 arguments to "set" and the current word contains an equals sign,
20858 skip to after the equals sign before starting completion.
20859
20860 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20861
20862 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
20863
20864 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20865
20866 * docs/grub.texi (Network): New section.
20867 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
20868 `(nd)' as in GRUB Legacy.
20869 (pxe_unload): New section.
20870
20871 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20872
20873 * docs/grub.texi (Troubleshooting): `echo' is not usually available
20874 in the rescue shell, so recommend using `set' instead. Thanks,
20875 Jordan Uggla.
20876
20877 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20878
20879 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
20880 (password): New section.
20881 (password_pbkdf2): New section.
20882 (search): New section.
20883 (Security): New section.
20884 (Troubleshooting): New section, currently very incomplete.
20885 (Invoking grub-mkpasswd-pbkdf2): New section.
20886 (Internals): New section, currently very incomplete.
20887
20888 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20889
20890 * util/grub.d/00_header.in: Add some more quoting (of
20891 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
20892 work again.
20893 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
20894
20895 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20896
20897 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
20898 to `count', fixing variable shadowing that broke the -c option.
20899
20900 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
20901
20902 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
20903 in case they contain spaces.
20904
20905 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20906
20907 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
20908 "part_" to partmap module names, in line with grub-install.
20909 Reported by: Jindřich Makovička (Debian bug #584426).
20910
20911 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20912
20913 * util/grub-mkimage.c: Make target-related error messages slightly
20914 more helpful; -O talks about "format". Explicitly point to the use
20915 of -O if no target is specified.
20916 Reported by: Didier Raboud (Debian bug #584415).
20917
20918 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
20919
20920 * INSTALL: Document several build requirements for optional features
20921 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
20922
20923 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
20924
20925 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
20926 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
20927 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
20928
20929 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20930
20931 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
20932 Thanks to Jordan Uggla for spotting this.
20933
20934 2010-06-02 Aleš Nesrsta <starous@volny.cz>
20935
20936 Finally make USB usable.
20937
20938 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
20939 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
20940 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
20941 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
20942 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
20943 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
20944 (GRUB_OHCI_FSMPS): Likewise.
20945 (GRUB_OHCI_PERIODIC_START): Likewise.
20946 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
20947 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
20948 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
20949 (GRUB_OHCI_SET_PORT_RESET): Likewise.
20950 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
20951 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
20952 (grub_ohci_transaction): Likewise.
20953 (grub_ohci_transfer): Improve condition detection algorithms.
20954 Handle toggle property. Program the transactions correctly.
20955 Improve error handling. Various important fixups.
20956 (grub_ohci_portstatus): Put register writes in right order.
20957 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
20958 (grub_uhci_transfer): Don't show "failed" message on success.
20959 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
20960 array.
20961 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
20962 determine its size.
20963 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
20964 before initialization is completed. Use IN direction for empty
20965 transfers. Use last_trans and compute toggle.
20966 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
20967 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
20968 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
20969 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
20970 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
20971 (grub_usb_device): Increase toggle to 256.
20972 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
20973 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
20974 GRUB_USBMS_SUBCLASS_SFF8070.
20975 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
20976 (grub_scsi_inquiry): New member page and alloc_length.
20977 (grub_scsi_request_sense): New structure.
20978 (grub_scsi_request_sense_data): Likewise.
20979 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
20980 control.
20981 * disk/scsi.c (grub_scsi_request_sense): New function.
20982 (grub_scsi_test_unit_ready): Likewise.
20983 (grub_scsi_inquiry): Fill new fields.
20984 (grub_scsi_read_capacity): Likewise.
20985 (grub_scsi_read10): Add request sense at the end.
20986 (grub_scsi_read12): Likewise.
20987 (grub_scsi_write10): Likewise.
20988 (grub_scsi_write12): Likewise.
20989 (grub_scsi_open): Add Test Unit Ready.
20990 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
20991 Support additional subclasses. Con't clear halt yet. Activate the
20992 proper config. Calculate LUNs correctly.
20993 (grub_usbms_transfer): Various important fixups.
20994
20995 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20996
20997 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
20998 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
20999 (grub_ohci_fini_hw): New function.
21000 (grub_ohci_restore_hw): Likewise.
21001 (GRUB_MOD_INIT(ohci)): Register preboot hook.
21002 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
21003 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
21004
21005 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21006
21007 Dedicated DMA allocations.
21008
21009 * bus/pci.c (grub_memalign_dma32): New function
21010 (grub_dma_free): Likewise.
21011 (grub_dma_get_virt): Likewise.
21012 (grub_dma_get_phys): Likewise.
21013 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
21014 (grub_ohci_pci_iter): Use dma32_alloc.
21015 (grub_ohci_transfer): Likewise.
21016 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
21017 (grub_usb_bulk_readwrite): Likewise.
21018 * include/grub/pci.h: Add declarations.
21019
21020 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21021
21022 CS5536 support.
21023
21024 * bus/cs5536.c: New file.
21025 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
21026 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
21027 (cs5536_mod_SOURCES): New variable.
21028 (cs5536_mod_CFLAGS): Likewise.
21029 (cs5536_mod_LDFLAGS): Likewise.
21030 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
21031 machine/pci.h.
21032 (kernel_img_SOURCES): Add bus/cs5536.c.
21033 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
21034 usb_keyboard.mod.
21035 (usb_mod_SOURCES): New variable.
21036 (usb_mod_CFLAGS): New variable.
21037 (usb_mod_LDFLAGS): New variable.
21038 (usbtest_mod_SOURCES): New variable.
21039 (usbtest_mod_CFLAGS): New variable.
21040 (usbtest_mod_LDFLAGS): New variable.
21041 (ohci_mod_SOURCES): New variable.
21042 (ohci_mod_CFLAGS): New variable.
21043 (ohci_mod_LDFLAGS): New variable.
21044 (usbms_mod_SOURCES): New variable.
21045 (usbms_mod_CFLAGS): New variable.
21046 (usbms_mod_LDFLAGS): New variable.
21047 (usb_keyboard_mod_SOURCES): New variable.
21048 (usb_keyboard_mod_CFLAGS): New variable.
21049 (usb_keyboard_mod_LDFLAGS): New variable.
21050 * include/grub/smbus.h: New file.
21051 * include/grub/cs5536.h: New file.
21052
21053 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21054
21055 * util/grub.d/00_header.in: Add safety check to make sure that
21056 ${locale_dir} exists before trying to probe it.
21057
21058 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21059
21060 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
21061 per the GNU Coding Standards; this is now too obscure to be worth
21062 documenting.
21063 (QNX): Likewise.
21064 (chainloader): Remove cross-reference to `SCO UnixWare'.
21065
21066 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21067
21068 * docs/grub.texi (Chain-loading): New section.
21069 (DOS/Windows): New section, borrowed from GRUB Legacy with details
21070 adjusted for GRUB 2.
21071 (SCO UnixWare): Likewise.
21072 (QNX): Likewise.
21073 (chainloader): Add reference to `Block list syntax'.
21074 (drivemap): New section.
21075 (parttool): New section.
21076
21077 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21078
21079 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
21080 the grub shell'.
21081 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
21082 (Installing GRUB using grub-install): Remove reference to the grub
21083 shell; mention `grub-mkimage' and `grub-setup' instead.
21084 (Invoking grub-install): Likewise.
21085 (Interface): Add reference to `Menu entry editor'.
21086 (serial): Remove `--device' option.
21087
21088 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21089
21090 * docs/grub.texi (Configuration): New section, documenting
21091 configuration file generation using grub-mkconfig. I've left a slot
21092 for documenting the full shell scripting format but have not yet
21093 started on writing that up.
21094 (Invoking grub-mkconfig): New section.
21095
21096 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21097
21098 * docs/grub.texi (direntry): Remove grub-terminfo reference.
21099 (GNU GRUB manual): Likewise.
21100 (General commands): Update description of `terminfo' for GRUB 2.
21101
21102 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21103
21104 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
21105 (GRUB_MOD_INIT): Fix capitalisation.
21106 * docs/grub.texi (Command-line and menu entry commands): Document
21107 gettext and gptsync commands.
21108
21109 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21110
21111 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
21112 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
21113
21114 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
21115
21116 Add btrfs probing support, currently only in the single-device case.
21117
21118 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
21119 function.
21120 (grub_guess_root_device): Call find_root_device_from_mountinfo
21121 before looking in /dev.
21122
21123 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21124
21125 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
21126 GRUB_DISK_SIZE_UNKNOWN.
21127 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
21128
21129 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
21130
21131 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
21132 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
21133 corrupted or not synced properly.
21134
21135 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21136
21137 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
21138 Reported by: Seth Goldberg.
21139
21140 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21141
21142 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
21143 addition of dest.
21144 Reported by: Seth Goldberg.
21145
21146 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21147
21148 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
21149 Reported by: Seth Goldberg.
21150
21151 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21152
21153 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
21154 64-bit address as signed on MIPS.
21155
21156 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
21157
21158 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
21159 to the empty string.
21160
21161 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
21162
21163 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
21164
21165 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
21166 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
21167 * kern/misc.c (__enable_execute_stack): Disable on
21168 GRUB_MACHINE_EMU.
21169
21170 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
21171
21172 Make grub-probe work with symbolic links under /dev/mapper as well
21173 as with real block devices. The Linux world seems to be (at best)
21174 in transition here, and GRUB shouldn't get caught in the middle.
21175
21176 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
21177 /dev/mapper.
21178
21179 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
21180
21181 * util/grub-script-check.c (main): Ensure defined behaviour on empty
21182 input files (in which case exit zero).
21183
21184 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
21185
21186 * kern/emu/misc.c (canonicalize_file_name): realpath can still
21187 return NULL for various reasons even if it has a maximum-length
21188 buffer: for example, there might be a symlink loop, or the path
21189 might exceed PATH_MAX. If this happens, return NULL.
21190
21191 2010-05-27 Robert Millan <rmh@gnu.org>
21192
21193 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
21194 partmap module to handle cross-partmap setups.
21195 Reported by Orestes Mas. Gràcies!
21196
21197 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
21198
21199 * util/grub-mkrescue.in: Initialise override_dir rather than
21200 assuming that it's unset or empty in the environment.
21201
21202 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
21203
21204 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
21205 variable index into p_index to suppress a warning with -Wshadow.
21206
21207 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
21208
21209 * INSTALL: Added flex >= 2.5.35 requirement.
21210
21211 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21212
21213 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
21214
21215 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21216
21217 cmostest support.
21218
21219 * commands/i386/cmostest.c: New file.
21220 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
21221 (cmostest_mod_SOURCES): New variable.
21222 (cmostest_mod_CFLAGS): Likewise.
21223 (cmostest_mod_LDFLAGS): Likewise.
21224 * conf/i386-pc.rmk: Likewise.
21225 * docs/grub.texi (Vendor power-on keys): New section.
21226 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
21227 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
21228 and GRUB_BUTTON_CMOS_ADDRESS.
21229 * util/grub.d/00_header.in: Handle powering-on by separate button.
21230
21231 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21232
21233 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
21234 Removed drawing_scrollbar argument. All users updated
21235 Fixes #29792.
21236 Reported by Jo Shields
21237
21238 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21239
21240 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
21241 buffer since gfxterm handles double repaint.
21242
21243 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21244
21245 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
21246 * term/gfxterm.c (real_scroll): Likewise.
21247
21248 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21249
21250 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
21251 before calling BIOS.
21252
21253 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21254
21255 * include/grub/i18n.h: Always enable grub_gettext.
21256
21257 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21258
21259 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
21260 partition naming style.
21261
21262 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
21263
21264 * util/grub-mkconfig.in: Fix handling of -o so that it works when
21265 not the first option.
21266
21267 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
21268
21269 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
21270
21271 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
21272
21273 * util/misc.c: Move inclusion of <limits.h> to ...
21274 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
21275
21276 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
21277
21278 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
21279 Fix merge error in NetBSD code.
21280 (find_partition_start) [__NetBSD__]: Likewise.
21281
21282 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
21283
21284 Fix grub-mkrescue usage unit testing.
21285
21286 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
21287
21288 2010-05-18 Christian Franke <franke@computer.org>
21289
21290 * util/grub.d/10_windows.in: Use path names instead of
21291 drive letters to prevent warning from Cygwin 1.7.
21292 Add drivemap command to menuentry if needed.
21293
21294 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
21295
21296 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
21297 gnumach and gnumach.gz.
21298
21299 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21300
21301 * include/grub/i18n.h (gettext): Inline instead of using #define.
21302 (grub_gettext): Likewise.
21303 (_): Likewise.
21304
21305 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21306
21307 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
21308 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
21309 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
21310 (main): Add a slash after pkglibdirroot.
21311
21312 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21313
21314 * util/grub-install.in: Add missing "in" keyword.
21315
21316 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21317
21318 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
21319 Reported by: Seth Goldberg.
21320
21321 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21322
21323 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
21324
21325 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21326
21327 * configure.ac: Check for Linux device-mapper support.
21328
21329 * util/hostdisk.c (device_is_mapped): New function.
21330 (find_partition_start): New function, partly broken out from
21331 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
21332 device-mapper support added.
21333 (linux_find_partition): Use find_partition_start.
21334 (convert_system_partition_to_system_disk): Add `st' argument.
21335 Support Linux /dev/mapper/* devices if device-mapper support is
21336 available; only DM-RAID devices are understood at present.
21337 (find_system_device): Add `st' argument. Pass it to
21338 convert_system_partition_to_system_disk.
21339 (grub_util_biosdisk_get_grub_dev): Pass stat result to
21340 find_system_device and convert_system_partition_to_system_disk. Use
21341 find_partition_start.
21342
21343 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
21344 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
21345 * util/deviceiter.c [__linux__]: Define MINOR.
21346 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
21347 * util/mkdevicemap.c (grub_putchar): New function.
21348 (grub_getkey): New function.
21349 (grub_refresh): New function.
21350 (main): Set debug=all if -v -v is used.
21351
21352 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21353
21354 Fix build with non-GNU libcs.
21355
21356 * util/misc.c (canonicalize_file_name): Move to ...
21357 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
21358 grub_make_system_path_relative_to_its_root.
21359
21360 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21361
21362 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
21363 we handle finding grub-mkimage. Default to finding grub-mkimage in
21364 ${bindir} with program_transform_name applied, and provide a
21365 --grub-mkimage option to override this.
21366
21367 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21368
21369 Remove grub-mkisofs.
21370
21371 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
21372 (grub_mkisofs_SOURCES): Removed.
21373 (grub_mkisofs_CFLAGS): Removed.
21374 * util/mkisofs/defaults.h: Removed.
21375 * util/mkisofs/eltorito.c: Likewise.
21376 * util/mkisofs/exclude.h: Likewise.
21377 * util/mkisofs/hash.c: Likewise.
21378 * util/mkisofs/include/: Likewise.
21379 * util/mkisofs/include/fctldefs.h: Likewise.
21380 * util/mkisofs/include/mconfig.h: Likewise.
21381 * util/mkisofs/include/prototyp.h: Likewise.
21382 * util/mkisofs/include/statdefs.h: Likewise.
21383 * util/mkisofs/iso9660.h: Likewise.
21384 * util/mkisofs/joliet.c: Likewise.
21385 * util/mkisofs/match.c: Likewise.
21386 * util/mkisofs/match.h: Likewise.
21387 * util/mkisofs/mkisofs.c: Likewise.
21388 * util/mkisofs/mkisofs.h: Likewise.
21389 * util/mkisofs/msdos_partition.h: Likewise.
21390 * util/mkisofs/multi.c: Likewise.
21391 * util/mkisofs/name.c: Likewise.
21392 * util/mkisofs/rock.c: Likewise.
21393 * util/mkisofs/tree.c: Likewise.
21394 * util/mkisofs/write.c: Likewise.
21395
21396 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21397
21398 Unify grub-mkimage accross platforms.
21399
21400 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
21401 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
21402 (grub_mkelfimage_SOURCES): Removed.
21403 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
21404 (util/grub-mkimage.c_DEPENDENCIES): .. this.
21405 (bin_UTILITIES): Add grub-mkimage.
21406 (grub_mkimage_SOURCES): New variable.
21407 (kernel_img_HEADERS): Remove machine/kernel.h.
21408 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
21409 (pkglib_PROGRAMS): Add kernel.img.
21410 (kernel_img_HEADERS): Add machine/kernel.h.
21411 (kernel_img_FORMAT): Removed.
21412 (bin_UTILITIES): Remove grub-mkimage.
21413 (grub_mkimage_SOURCES): Removed.
21414 (grub_mkimage_CFLAGS): Likewise.
21415 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21416 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
21417 (pkglib_PROGRAMS): Add kernel.img.
21418 (bin_UTILITIES): Remove grub-mkimage.
21419 (grub_mkimage_SOURCES): Removed.
21420 (grub_mkimage_CFLAGS): Likewise.
21421 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21422 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
21423 (pkglib_PROGRAMS): Add kernel.img.
21424 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
21425 (pkglib_PROGRAMS): Add kernel.img.
21426 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
21427 (grub_mkimage_SOURCES): Removed.
21428 (grub_mkimage_CFLAGS): Likewise.
21429 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21430 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
21431 (pkglib_PROGRAMS): Add kernel.img.
21432 (bin_UTILITIES): Remove grub-mkimage.
21433 (grub_mkimage_SOURCES): Removed.
21434 (grub_mkimage_CFLAGS): Likewise.
21435 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21436 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
21437 (grub_mkimage_SOURCES): Removed.
21438 (grub_mkimage_CFLAGS): Likewise.
21439 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21440 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
21441 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
21442 (grub_pe32_optional_header): ... this.
21443 (grub_pe64_optional_header): ... and this. All users updated.
21444 (GRUB_PE32_PE32_MAGIC): Split into ..
21445 (GRUB_PE32_PE32_MAGIC): .. this.
21446 (GRUB_PE32_PE64_MAGIC): .. and this.
21447 (GRUB_PE32_SIGNATURE_SIZE): New definition.
21448 * include/grub/elf.h (PT_GNU_STACK): New definition.
21449 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
21450 * include/grub/i386/efi/kernel.h: Likewise.
21451 * include/grub/i386/kernel.h: Likewise.
21452 * include/grub/i386/pc/kernel.h: Likewise.
21453 * include/grub/i386/qemu/boot.h: Likewise.
21454 * include/grub/mips/kernel.h: Likewise.
21455 * include/grub/mips/qemu-mips/kernel.h: Likewise.
21456 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21457 * include/grub/powerpc/kernel.h: Likewise.
21458 * include/grub/sparc64/ieee1275/boot.h: Likewise.
21459 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21460 * include/grub/sparc64/kernel.h: Likewise.
21461 * include/grub/x86_64/efi/kernel.h: Likewise.
21462 * include/grub/x86_64/kernel.h: Likewise.
21463 * include/grub/offsets.h: New file.
21464 * include/grub/kernel.h (grub_module_info): Split into ...
21465 (grub_module_info32): ... this.
21466 (grub_module_info64): ... and this.
21467 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
21468 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
21469 (grub_boot_blocklist): Moved from here ...
21470 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
21471 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
21472 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
21473 * include/grub/types.h (grub_target_to_host16): Removed.
21474 (grub_target_to_host32): Likewise.
21475 (grub_target_to_host64): Likewise.
21476 (grub_host_to_target16): Likewise.
21477 (grub_host_to_target32): Likewise.
21478 (grub_host_to_target64): Likewise.
21479 (grub_host_to_target_addr): Likewise.
21480
21481 Support grub-mkrescue for efi, coreboot and qemu.
21482
21483 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
21484 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
21485 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
21486 * util/grub-mkrawimage.c: Moved from here ...
21487 * util/grub-mkimage.c: ... here. All users updated.
21488 (ALIGN_ADDR): Use image_target.
21489 (TARGET_NO_FIELD): New const.
21490 (image_target_desc): New type.
21491 (image_targets): New array.
21492 (grub_target_to_host64): Use image_target.
21493 (grub_target_to_host32): Likewise.
21494 (grub_target_to_host16): Likewise.
21495 (grub_host_to_target64): Likewise.
21496 (grub_host_to_target32): Likewise.
21497 (grub_host_to_target16): Likewise.
21498 (grub_host_to_target_addr): Likewise.
21499 (generate_image): Handle multiimage.
21500 (main): Require -O parameter. All users updated.
21501 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
21502 util/efi/grub-mkimage.c
21503 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
21504 New option --rom-directory.
21505 Use xorriso.
21506 * util/i386/efi/grub-mkimage.c: Removed.
21507 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
21508 (grub_target_to_host32): Likewise.
21509 (grub_target_to_host64): Likewise.
21510 (grub_host_to_target16): Likewise.
21511 (grub_host_to_target32): Likewise.
21512 (grub_host_to_target64): Likewise.
21513 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
21514 (grub_target_to_host32): Likewise.
21515 (grub_target_to_host64): Likewise.
21516 (grub_host_to_target16): Likewise.
21517 (grub_host_to_target32): Likewise.
21518 (grub_host_to_target64): Likewise.
21519
21520 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
21521
21522 Source tree is reorganized for emu build.
21523
21524 * include/grub/util/console.h: Move from here...
21525 * include/grub/emu/console.h: ...to here.
21526 * include/grub/util/getroot.h: Move from here...
21527 * include/grub/emu/getroot.h: ...to here.
21528 * include/grub/util/hostdisk.h: Move from here...
21529 * include/grub/emu/hostdisk.h: ...to here.
21530 * util/console.c: Move from here...
21531 * kern/emu/console.c: ...to here.
21532 * util/getroot.c: Move from here...
21533 * kern/emu/getroot.c: ...to here.
21534 * util/grub-emu.c: Move from here...
21535 * kern/emu/main.c: ...to here.
21536 * util/hostdisk.c: Move from here...
21537 * kern/emu/hostdisk.c: ...to here.
21538 * util/hostfs.c: Move from here...
21539 * kern/emu/hostfs.c: ...to here.
21540 * util/mm.c: Move from here...
21541 * kern/emu/mm.c: ...to here.
21542 * util/pci.c: Move from here...
21543 * bus/emu/pci.c: ...to here.
21544 * util/sdl.c: Move from here...
21545 * video/emu/sdl.c: ...to here.
21546 * util/time.c: Move from here...
21547 * kern/emu/time.c: ...to here.
21548 * util/usb.c: Move from here...
21549 * bus/usb/emu/usb.c: ...to here.
21550
21551 * include/grub/emu/misc.h: New header for grub-emu functions.
21552 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
21553
21554 * conf/any-emu.rmk: Rule updates for above renames.
21555 * conf/common.rmk: Likewise.
21556 * conf/i386-pc.rmk: Likewise.
21557 * conf/i386-qemu.rmk: Likewise.
21558 * conf/mips.rmk: Likewise.
21559 * conf/sparc64-ieee1275.rmk: Likewise.
21560 * conf/x86-efi.rmk: Likewise.
21561
21562 * disk/lvm.h: #include updates for above renames.
21563 * util/grub-mkrelpath.c: Likewise.
21564 * util/grub-probe.c: Likewise.
21565 * util/i386/pc/grub-setup.c: Likewise.
21566 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21567 * kern/emu/console.c: Likewise.
21568 * kern/emu/getroot.c: Likewise.
21569 * kern/emu/hostdisk.c: Likewise.
21570 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
21571
21572 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
21573 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
21574 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
21575 * util/misc.c: Remove grub-emu functions.
21576
21577 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
21578
21579 Fix gfxmenu crash.
21580 Reported by: Thorsten Grützmacher.
21581
21582 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
21583 timeout hook.
21584 (circprog_set_property): Register and unregister timeout hook.
21585 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
21586 (label_destroy): Free template. and unregister hook.
21587 (label_set_state): New function.
21588 (label_set_property): Handle templates and hooks.
21589 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
21590 timeout hook.
21591 (progress_bar_set_property): Register and unregister timeout hook.
21592 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
21593 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
21594 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
21595 (update_timeout_visit): Removed.
21596 (update_timeouts): New function.
21597 (redraw_timeouts): Likewise.
21598 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
21599 (grub_gfxmenu_clear_timeout): Likewise.
21600 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
21601 (grub_gfxmenu_timeout_notify): Likewise.
21602 (grub_gfxmenu_timeout_notifications): New external variable.
21603 (grub_gfxmenu_timeout_register): New function.
21604 (grub_gfxmenu_timeout_unregister): Likewise.
21605
21606 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
21607
21608 Transform (broken) vga terminal into (working) vga video driver.
21609
21610 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
21611 video/i386/pc/vga.c.
21612 * include/grub/video.h (grub_video_driver_id):
21613 Add GRUB_VIDEO_DRIVER_VGA.
21614 * term/i386/pc/vga.c: Renamed to ...
21615 * video/i386/pc/vga.c: ...this
21616 (DEBUG_VGA): Removed.
21617 (CHAR_WIDTH): Likewise.
21618 (CHAR_HEIGHT): Likewise.
21619 (TEXT_WIDTH): Likewise.
21620 (TEXT_HEIGHT): Likewise.
21621 (DEFAULT_FG_COLOR): Likewise.
21622 (DEFAULT_BG_COLOR): Likewise.
21623 (colored_char): Likewise.
21624 (xpos): Likewise.
21625 (ypos): Likewise.
21626 (cursor_state): Likewise.
21627 (fg_color): Likewise.
21628 (bg_color): Likewise.
21629 (text_buf): Likewise.
21630 (page): Likewise.
21631 (font): Likewise.
21632 (framebuffer): New variable.
21633 (set_read_map): Disabled.
21634 (setup): New variable.
21635 (is_target): Likewise.
21636 (grub_vga_mod_init): Likewise.
21637 (grub_vga_mod_fini): Likewise.
21638 (check_vga_mem): Likewise.
21639 (write_char): Likewise.
21640 (write_cursor): Likewise.
21641 (scroll_up): Likewise.
21642 (grub_vga_putchar): Likewise.
21643 (grub_vga_getcharwidth): Likewise.
21644 (grub_vga_getwh): Likewise.
21645 (grub_vga_getxy): Likewise.
21646 (grub_vga_gotoxy): Likewise.
21647 (grub_vga_cls): Likewise.
21648 (grub_vga_setcolorstate): Likewise.
21649 (grub_vga_setcursor): Likewise.
21650 (grub_video_vga_init): New function.
21651 (grub_video_vga_setup): Likewise.
21652 (grub_video_vga_fini): Likewise.
21653 (update_target): Likewise.
21654 (grub_video_vga_blit_bitmap): Likewise.
21655 (grub_video_vga_blit_render_target): Likewise.
21656 (grub_video_vga_set_active_render_target): Likewise.
21657 (grub_video_vga_get_active_render_target): Likewise.
21658 (grub_video_vga_swap_buffers): Likewise.
21659 (grub_video_vga_set_palette): Likewise.
21660 (grub_video_vga_get_info_and_fini): Likewise.
21661 (grub_vga_term): Removed.
21662 (grub_video_vga_adapter): New variable.
21663 (GRUB_MOD_INIT): Register a video driver instead of terminal.
21664 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
21665
21666 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21667
21668 * video/readers/jpeg.c: Indented.
21669
21670 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21671
21672 Various jpeg cleanups.
21673
21674 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
21675 (grub_jpeg_decode_quan_table): Use sizeof.
21676 (grub_jpeg_decode_du): Use ARRAY_SIZE.
21677
21678 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
21679
21680 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
21681 tables. Ignore non-last ac bit.
21682 (grub_jpeg_decode_quan_table): Likewise.
21683
21684 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21685
21686 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
21687 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
21688 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21689 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
21690 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
21691 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
21692
21693 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21694
21695 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
21696 error.
21697
21698 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21699
21700 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
21701
21702 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21703
21704 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
21705 condition.
21706
21707 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21708
21709 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
21710 part.
21711
21712 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21713
21714 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
21715 pointers.
21716
21717 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21718
21719 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
21720
21721 2010-05-01 Christian Franke <franke@computer.org>
21722
21723 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
21724 Remove broken Cygwin path conversion.
21725 * util/misc.c: [__CYGWIN__] Add include and define.
21726 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
21727 for Cygwin 1.7.
21728 (make_system_path_relative_to_its_root): Simplify loop, replace early
21729 return by break.
21730 [__CYGWIN__] Add conversion to win32 path.
21731 Include "/" case in trailing slash removal.
21732
21733 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21734
21735 * kern/main.c (grub_load_config): Fix copy-pasted comment.
21736 Reported by: Seth Goldberg
21737
21738 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21739
21740 * commands/help.c (grub_cmd_help): Fix a typo.
21741 Reported by: Seth Goldberg
21742
21743 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21744
21745 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
21746 name and add N_.
21747 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
21748 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
21749 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
21750 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
21751 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
21752 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
21753 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
21754 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
21755 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
21756 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
21757 * normal/context.c (GRUB_MOD_INIT): Likewise.
21758 * normal/main.c (GRUB_MOD_INIT): Likewise.
21759 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
21760 * term/serial.c (GRUB_MOD_INIT): Likewise.
21761 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
21762
21763 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21764
21765 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
21766 extra == 0.
21767
21768 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21769
21770 * commands/iorw.c: New file.
21771 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
21772 (iorw_mod_SOURCES): New variable.
21773 (iorw_mod_CFLAGS): Likewise.
21774 (iorw_mod_LDFLAGS): Likewise.
21775
21776 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21777
21778 Hotkey support
21779
21780 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
21781 * normal/main.c (hotkey_aliases): New variable.
21782 (grub_normal_add_menu_entry): Parse "--hotkey".
21783 * normal/menu_text.c (run_menu): Handle hotkeys.
21784
21785 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21786
21787 * kern/i386/coreboot/init.c (grub_machine_init): Call
21788 grub_machine_mmap_init on qemu.
21789
21790 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21791
21792 * boot/i386/qemu/boot.S: Add a missing .code16.
21793
21794 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21795
21796 Use LBIO on coreboot.
21797
21798 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
21799 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
21800 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
21801 New declaration.
21802 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
21803 grub_machine_mmap_init on coreboot.
21804 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
21805 GRUB_LINUXBIOS_MEMBER_LINK.
21806 (grub_machine_mmap_iterate): Fix declaration.
21807 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
21808
21809 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21810
21811 Split coreboot and multiboot ports.
21812
21813 * conf/i386-multiboot.rmk: New file.
21814 * configure.ac: Add multiboot port.
21815 * include/grub/i386/multiboot/boot.h: New file.
21816 * include/grub/i386/multiboot/console.h: Likewise.
21817 * include/grub/i386/multiboot/init.h: Likewise.
21818 * include/grub/i386/multiboot/kernel.h: Likewise.
21819 * include/grub/i386/multiboot/loader.h: Likewise.
21820 * include/grub/i386/multiboot/memory.h: Likewise.
21821 * include/grub/i386/multiboot/serial.h: Likewise.
21822 * include/grub/i386/multiboot/time.h: Likewise.
21823 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
21824 * loader/multiboot.c: Likewise.
21825 * loader/multiboot_mbi2.c: Likewise.
21826 * util/grub-mkrescue.in: Generate multiboot rescue.
21827
21828 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21829
21830 * kern/parser.c (grub_parser_execute): Cope with read-only config.
21831
21832 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21833
21834 Merge handling of input and output terminals. Fix a hang.
21835
21836 * commands/terminal.c (abstract_terminal): New struct.
21837 (handle_command): New function. Based on grub_cmd_terminal_input.
21838 (grub_cmd_terminal_input): Use handle_command.
21839 (grub_cmd_terminal_output): Use handle_command.
21840
21841 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
21842
21843 Fix comment handling.
21844
21845 * tests/grub_script_comments.in: New testcase.
21846 * conf/tests.rmk: Rules for new testcase.
21847 * script/yylex.l: Updated flex rules.
21848
21849 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
21850
21851 * docs/grub.texi (play): Document that zero pitches produce rests.
21852 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
21853 if argc is 1.
21854
21855 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
21856
21857 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
21858 autogen issues.
21859
21860 2010-04-26 Christian Franke <franke@computer.org>
21861
21862 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
21863 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
21864 (grub_get_prefix): Remove function.
21865 * util/grub-emu.c (main): Replace grub_get_prefix () call by
21866 make_system_path_relative_to_its_root ().
21867 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
21868
21869 2010-04-24 Christian Franke <franke@computer.org>
21870
21871 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
21872 (kernel_img_LDFLAGS): Remove -static-libgcc.
21873
21874 2010-04-24 Christian Franke <franke@computer.org>
21875
21876 * configure.ac: Do not CHECK_BSS_START_SYMBOL
21877 and CHECK_END_SYMBOL if grub-emu is built.
21878 Unset TARGET_OBJ2ELF if grub-emu is built
21879 without module support.
21880
21881 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
21882
21883 Nilfs2 support.
21884
21885 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
21886 (grub_fstest_SOURCES): Likewise.
21887 (pkglib_MODULES): Add nilfs2.mod.
21888 (nilfs2_mod_SOURCES): New variable.
21889 (nilfs2_mod_CFLAGS): Likewise.
21890 (nilfs2_mod_LDFLAGS): Likewise.
21891 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21892 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21893 * fs/nilfs2.c: New file.
21894
21895 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
21896
21897 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
21898 is not supported.
21899
21900 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
21901
21902 Add grub-mkconfig support for NetBSD.
21903
21904 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
21905 * util/grub-mkconfig.in: export new NetBSD specific variables.
21906 * po/POTFILES-shell: added 10_netbsd.in.
21907 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
21908
21909 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
21910
21911 Fix emu build with grub-emu-pci and grub-emu-modules.
21912
21913 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
21914 functions.
21915 * include/grub/libpciaccess.h: New file.
21916 * conf/any-emu.rmk: Update kernel headers for emu build.
21917
21918 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21919
21920 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
21921
21922 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21923
21924 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
21925
21926 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21927
21928 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
21929 Retrieve chosen/bootpath if bootpath isn't hardcoded.
21930 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
21931 util/ieee1275/ofpath.c.
21932 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
21933 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
21934 * include/grub/sparc64/ieee1275/boot.h
21935 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
21936 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
21937 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
21938 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
21939 const char *.
21940 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
21941 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
21942 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
21943 install.
21944
21945 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21946
21947 * util/grub-mkconfig.in: Corrected two == equality tests.
21948 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
21949 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
21950 expect a number appended to it.
21951 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
21952 expects a number appended to it.
21953
21954 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21955
21956 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
21957
21958 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21959
21960 * util/hostdisk.c (make_device_name): Change to new partition naming.
21961
21962 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
21963
21964 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
21965
21966 2010-04-17 Christian Franke <franke@computer.org>
21967
21968 * Makefile.in: Add missing localedir setting.
21969
21970 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
21971
21972 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
21973 mistake in r2156. Noticed by Anthony Fok.
21974
21975 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
21976 @localedir@.
21977 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
21978
21979 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
21980
21981 Fix a spurious, uninitialized variable warning.
21982
21983 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
21984 Initialize variable, shdr.
21985 (grub_freebsd_load_elfmodule): Likewise.
21986 (grub_freebsd_load_elf_meta): Likewise.
21987
21988 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
21989
21990 Fix for escaped dollar in double quoted strings.
21991
21992 * script/yylex.l: Updated flex rules.
21993 * conf/tests.rmk: Rule for new testcase.
21994 * tests/grub_script_dollar.in: New testcase.
21995
21996 2010-04-13 Carles Pina i Estany <carles@pina.cat>
21997 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
21998
21999 Enclose all translated strings in grub.cfg in single quotes, and
22000 escape them appropriately (Ubuntu bug #552921).
22001
22002 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
22003 * util/grub.d/10_hurd.in: Use it.
22004 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
22005 * util/grub.d/10_linux.in (linux_entry): Likewise.
22006
22007 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22008
22009 Fix cygwin compilation.
22010
22011 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
22012 * include/grub/misc.h (__register_frame_info)
22013 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
22014 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
22015 * kern/misc.c (__register_frame_info)
22016 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
22017 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
22018
22019 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22020
22021 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
22022
22023 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22024
22025 Unify libgcc processing.
22026
22027 * Makefile.in (kernel_img_LDFLAGS): New variable.
22028 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
22029 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
22030 overwriting.
22031 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
22032 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
22033 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
22034 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
22035 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
22036 overwriting. Remove -lgcc and -static-libgcc
22037 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
22038 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
22039 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
22040 (kernel_img_LDFLAGS): Append instead of overwriting.
22041 Remove -lgcc and -static-libgcc
22042 * conf/sparc64-ieee1275.rmk: Likewise.
22043 * include/grub/powerpc/libgcc.h: Move to ...
22044 * include/grub/libgcc.h: .. this.
22045 * include/grub/libgcc.h: Don't export most of the function on x86.
22046 (__bswapsi2): New export.
22047 (__bswapdi2): Likewise.
22048 * include/grub/mips/libgcc.h: Removed.
22049 * include/grub/sparc64/libgcc.h: Likewise.
22050
22051 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22052
22053 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
22054 disk_info_msg (conflicts with gettexting into languages with cases).
22055
22056 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
22057
22058 Add grub-probe support for NetBSD.
22059
22060 * util/getroot.c (find_root_device): Convert block device to
22061 character device on NetBSD.
22062 * util/probe.c (probe): Require character device on NetBSD.
22063 * util/hostdisk.c: NetBSD specific headers.
22064 (configure_device_driver): new function to tune device driver
22065 parameters (currently only for NetBSD floppy driver).
22066 (grub_util_biosdisk_open): NetBSD specific code (get disk size
22067 via disklabel ioctl).
22068 (open_device): call configure_device_driver on NetBSD.
22069 (convert_system_partition_to_system_disk): NetBSD specific code.
22070 (device_is_wholedisk): Likewise.
22071 (grub_util_biosdisk_get_grub_dev): Likewise.
22072 (make_device_name): Fixed a typo in bsd_part_str.
22073 * configure.ac: check for opendisk() and getrawpartition() on
22074 NetBSD and set LIBUTIL.
22075 * Makefile.in: add LIBUTIL to LIBS.
22076
22077 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22078
22079 Documentation fix.
22080
22081 * util/grub-script-check.c: Better help message.
22082
22083 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22084
22085 Fix FreeBSD build.
22086
22087 * configure.ac: Flex version check.
22088 * conf/common.rmk: Add -Wno-error to sh.mod.
22089 * script/yylex.l: Remove all #pragma.
22090
22091 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22092
22093 * include/grub/util/misc.h (canonicalise_file_name): Add missing
22094 prototype.
22095 Reported by: Seth Goldberg.
22096
22097 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22098
22099 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
22100 Rename "module" to "module2".
22101 Reported by: Seth Goldberg.
22102
22103 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22104
22105 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
22106 EXPORT_FUNC.
22107 Reported by: Seth Goldberg.
22108
22109 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22110
22111 * lib/posix_wrap/locale.h: Add missing file.
22112 Reported by: Seth Goldberg.
22113
22114 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22115
22116 grub-emu module load support.
22117
22118 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
22119 NO_DYNAMIC_MODULES switched to this.
22120 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
22121 (CFLAGS): Likewise.
22122 * conf/any-emu.rmk: Generate symlist.
22123 (kernel_img_HEADERS): Add util/datetime.h.
22124 (kernel_img_HEADERS) [sdl]: Add sdl.h.
22125 (kernel_img_HEADERS) [libusb]: Add libusb.h.
22126 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
22127 kern/$(target_cpu)/cache.S.
22128 * configure.ac (grub-emu-modules): New option.
22129 * genmk.rb: Handle multiple source lists.
22130 * include/grub/sdl.h: New file.
22131 * include/grub/libusb.h: Likewise.
22132 * util/grub-emu.c (main): Hanle (host) root.
22133 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
22134 GRUB_ERR_UNKNOWN_DEVICE.
22135 * util/misc.c: Move mm functions to ...
22136 * util/mm.c: ... here. All users updated.
22137
22138 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22139
22140 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
22141 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
22142 missing files.
22143 (maintainer-clean): Remove libgcrypt-grub.
22144
22145 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22146
22147 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
22148
22149 2010-04-09 EFI Coder <eficoder@hotmail.com>
22150
22151 * normal/menu_text.c (print_message): Clean up the message and show
22152 the Fn information when on EFI
22153 * term/efi/console.c (grub_console_checkkey): Add F4 support.
22154
22155 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22156
22157 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
22158 All users updated.
22159 * normal/crypto.c (read_crypto_list): Likewise.
22160 * normal/dyncmd.c (read_command_list): Likewise.
22161 * normal/term.c (read_terminal_list): Likewise.
22162 * normal/main.c (read_lists): Use explicit prefix.
22163 (read_lists_hook): Use read_lists.
22164 (grub_normal_execute): Likewise.
22165
22166 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22167
22168 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
22169 Reported by: Thomas Schmitt.
22170 Add -no-emul-boot to grub-mkisofs parameters.
22171
22172 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22173
22174 * font/font.c: Indented.
22175
22176 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22177
22178 Elif support to GRUB script (by Deepak Vankadaru).
22179
22180 * tests/grub_script_if.in: New testcase.
22181 * conf/tests.rmk: Rule for new testcase.
22182 * script/parser.y: Grammar rules for elif.
22183
22184 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22185
22186 While and until loops support to GRUB script.
22187
22188 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
22189 (grub_script_create_cmdwhile): New function prototype.
22190 (grub_script_execute_cmdwhile): New function prototype.
22191 * script/execute.c (grub_script_execute_cmdwhile): New function.
22192 * script/parser.y (command): New commands.
22193 (whilecmd): New grammar rule.
22194 (untilcmd): New grammar rule.
22195 * script/script.c (grub_script_create_cmdwhile): New function.
22196 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
22197 function.
22198
22199 * tests/grub_script_while1.in: New testcase.
22200 * conf/tests.rmk: Rule for new testcase.
22201
22202 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22203
22204 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
22205 as *.jpg.
22206
22207 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
22208
22209 GRUB_BACKGROUND support.
22210
22211 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
22212 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
22213
22214 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22215
22216 Load fonts and modules for gfxmenu in grub-mkconfig.
22217 Idea by: Mario Vazquez
22218
22219 * util/grub.d/00_header.in: Load pf2 and image modules.
22220
22221 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22222
22223 grub-mkconfig multiple terminal support.
22224
22225 * util/grub-mkconfig.in: Handle multiple terminals correctly.
22226 * util/grub.d/00_header.in: Likewise.
22227
22228 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22229
22230 * Makefile.in: Specify files explicitly instead of using $< and $@ since
22231 we use cd $(srcdir).
22232
22233 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
22234
22235 * util/grub.d/10_linux.in: Only use the first word of
22236 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
22237 spaces in GRUB_DISTRIBUTOR.
22238 * util/grub.d/10_kfreebsd.in: Likewise.
22239 * util/grub.d/10_hurd.in: Likewise.
22240
22241 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
22242
22243 Fix unit testing framework for Qemu 0.12.
22244
22245 * tests/util/grub-shell.in: Remove -serial stdio option.
22246
22247 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
22248
22249 POSIX header file wrappers.
22250
22251 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
22252 equivalents.
22253 * lib/posix_wrap/ctype.h: Likewise.
22254 * lib/posix_wrap/errno.h: Likewise.
22255 * lib/posix_wrap/langinfo.h: Likewise.
22256 * lib/posix_wrap/limits.h: Likewise.
22257 * lib/posix_wrap/localcharset.h: Likewise.
22258 * lib/posix_wrap/stdint.h: Likewise.
22259 * lib/posix_wrap/stdio.h: Likewise.
22260 * lib/posix_wrap/stdlib.h: Likewise.
22261 * lib/posix_wrap/string.h: Likewise.
22262 * lib/posix_wrap/sys/types.h: Likewise.
22263 * lib/posix_wrap/unistd.h: Likewise.
22264 * lib/posix_wrap/wchar.h: Likewise.
22265 * lib/posix_wrap/wctype.h: Likewise.
22266 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
22267 (grub_script.yy.h): Likewise.
22268 * script/yylex.l: Remove POSIX emulation #defines.
22269 * Makefile.in (POSIX_CFLAGS): New variable.
22270 (GNULIB_UTIL_CFLAGS): Likewise.
22271
22272 Regexp support.
22273
22274 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
22275 (regexp_mod_SOURCES): New variable.
22276 (regexp_mod_CFLAGS): Likewise.
22277 (regexp_mod_LDFLAGS): Likewise.
22278 * commands/regexp.c: New file.
22279 * gnulib/regcomp.c: New file. Imported from gnulib.
22280 * gnulib/regex.c: Likewise.
22281 * gnulib/regex_internal.c: Likewise.
22282 * gnulib/regex_internal.h: Likewise.
22283 * gnulib/regexec.c: Likewise.
22284 * gnulib/regex.h: Likewise.
22285
22286 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22287
22288 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
22289 unsupported video mode types.
22290
22291 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22292
22293 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
22294
22295 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22296
22297 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
22298 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
22299
22300 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
22301
22302 Remove unused grub_vga_get_font.
22303
22304 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
22305 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
22306
22307 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22308
22309 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
22310 * include/grub/misc.h: Likewise.
22311
22312 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22313
22314 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
22315 for which failure is fatal.
22316
22317 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22318
22319 * util/grub-install.in: Use mkdir -p to create grub directory.
22320 * util/i386/efi/grub-install.in: Likewise.
22321 * util/ieee1275/grub-install.in: Likewise.
22322
22323 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22324
22325 * Makefile.in (LEX): new variable.
22326
22327 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22328
22329 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
22330 `=' and added double quotes on operands of this equality test.
22331
22332 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22333
22334 * Makefile.in (uninstall): Remove a leftover debug echo.
22335 Reported by: Grégoire Sutre
22336
22337 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22338
22339 MIPS multiboot2 support.
22340
22341 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
22342 (multiboot2_mod_SOURCES): New variable.
22343 (multiboot2_mod_CFLAGS): Likewise.
22344 (multiboot2_mod_LDFLAGS): Likewise.
22345 (multiboot2_mod_ASFLAGS): Likewise.
22346 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
22347 definition.
22348 (MULTIBOOT_ENTRY_REGISTER): Likewise.
22349 (MULTIBOOT_MBI_REGISTER): Likewise.
22350 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
22351 (MULTIBOOT_ELF32_MACHINE): Likewise.
22352 (MULTIBOOT_ELF64_MACHINE): Likewise.
22353 * include/grub/mips/multiboot.h: New file.
22354 * include/grub/video.h (grub_video_driver_id): New type
22355 GRUB_VIDEO_DRIVER_SM712.
22356 (grub_video_get_info_and_fini): Export.
22357 (grub_video_get_palette): Likewise.
22358 (grub_video_get_driver_id): Likewise.
22359 * include/multiboot2.h: Resynced with spec.
22360 * loader/i386/multiboot.c: Moved from here ...
22361 * loader/multiboot.c: ... here. All users updated.
22362 (grub_multiboot_boot): Use platform-specific macros.
22363 * loader/i386/multiboot_elfxx.c: Moved from here ...
22364 * loader/multiboot_elfxx.c: ... here. All users updated.
22365 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
22366 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
22367 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
22368
22369 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
22370
22371 Import gnulib argp module.
22372
22373 * gnulib/argp-ba.c: New file.
22374 * gnulib/argp-eexst.c: Likewise.
22375 * gnulib/argp-fmtstream.c: Likewise.
22376 * gnulib/argp-fmtstream.h: Likewise.
22377 * gnulib/argp-fs-xinl.c: Likewise.
22378 * gnulib/argp-help.c: Likewise.
22379 * gnulib/argp-namefrob.h: Likewise.
22380 * gnulib/argp-parse.c: Likewise.
22381 * gnulib/argp-pin.c: Likewise.
22382 * gnulib/argp-pv.c: Likewise.
22383 * gnulib/argp-pvh.c: Likewise.
22384 * gnulib/argp-version-etc.c: Likewise.
22385 * gnulib/argp-version-etc.h: Likewise.
22386 * gnulib/argp-xinl.c: Likewise.
22387 * gnulib/argp.h: Likewise.
22388
22389 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22390
22391 * kern/device.c (grub_device_iterate): Clear errors after failed
22392 opening device.
22393
22394 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22395
22396 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
22397 returned by firmware.
22398
22399 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
22400
22401 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
22402 compilation on coreboot and qemu
22403
22404 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22405
22406 * include/multiboot2.h: Resync with spec.
22407
22408 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22409
22410 Multiboot2 tag support
22411
22412 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
22413 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
22414 Remove loader/multiboot_loader.c.
22415 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
22416 (grub_multiboot2_real_boot): Likewise.
22417 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
22418 (grub_get_multiboot_mmap_count): New proto.
22419 (grub_fill_multiboot_mmap): Likewise.
22420 (grub_multiboot_set_video_mode): Likewise.
22421 (grub_multiboot_set_console): Likewise.
22422 (grub_multiboot_load): Likewise.
22423 (grub_multiboot_load_elf): Likewise.
22424 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
22425 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
22426 * include/multiboot.h: Resynced with specification.
22427 * include/multiboot2.h: Resynced with specification.
22428 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
22429 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
22430 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
22431 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
22432 users updated.
22433 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
22434 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
22435 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
22436 Removed.
22437 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
22438 Moved from here...
22439 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
22440 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22441 Moved from here...
22442 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
22443 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
22444 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
22445 All users updated.
22446 * loader/i386/multiboot_mbi2.c: New file.
22447
22448 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22449
22450 Resync with gnulib.
22451
22452 * Makefile.in (GNULIB_CFLAGS): New variable.
22453 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
22454 (grub_script_check_CFLAGS): New variable.
22455 * gnulib/alloca.h: Resync with gnulib.
22456 * gnulib/error.c: Likewise.
22457 * gnulib/error.h: Likewise.
22458 * gnulib/fnmatch.c: Likewise.
22459 * gnulib/fnmatch_loop.c: Likewise.
22460 * gnulib/getdelim.c: Likewise.
22461 * gnulib/getline.c: Likewise.
22462 * gnulib/getopt.c: Likewise.
22463 * gnulib/getopt1.c: Likewise.
22464 * gnulib/getopt_int.h: Likewise.
22465 * gnulib/gettext.h: Likewise.
22466 * gnulib/progname.c: Likewise.
22467 * gnulib/progname.h: Likewise.
22468
22469 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
22470
22471 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
22472 which is the case with --disabled-nls.
22473
22474 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
22475 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
22476 * util/misc.c: Likewise.
22477 * util/mkisofs/mkisofs.c: Likewise.
22478 * util/mkisofs/mkisofs.h: Likewise.
22479
22480 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22481
22482 Simplify Apple CC support.
22483
22484 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
22485 Add 0 byte at the end not to have a symbol with empty target.
22486 * mmap/i386/pc/mmap_helper.S: Likewise.
22487 * genmk.rb: Ignore errors 2030 and 2050.
22488 * kern/i386/pc/startup.S: Use LOCAL when possible.
22489
22490 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
22491
22492 Testcase and the fix for final semicolon on cmdline.
22493
22494 * tests/grub_script_final_semicolon.in: New testcase.
22495 * conf/tests.rmk: Rules for the new testcase.
22496 * script/parser.y: Grammar fix.
22497
22498 2010-03-26 BVK Chaitanya <bvk@localhost>
22499
22500 Blank lines testcase for GRUB script.
22501
22502 * tests/grub_script_blanklines.in: New testcase.
22503 * conf/tests.rmk: Rules for the new testcase.
22504
22505 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22506
22507 Don't use __FILE__.
22508
22509 * genmk.rb: Add -DGRUB_FILE to all C targets.
22510 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
22511 * include/grub/list.h: Likewise.
22512 * include/grub/misc.h: Likewise.
22513 * include/grub/mm.h: Likewise.
22514 * include/grub/test.h: Likewise.
22515 * kern/mm.c: Likewise.
22516 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
22517
22518 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22519
22520 Sunpc partitions support.
22521
22522 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
22523 (grub_fstest_SOURCES): Likewise.
22524 (pkglib_MODULES): Add part_sunpc.mod.
22525 (part_sunpc_mod_SOURCES): New variable.
22526 (part_sunpc_mod_CFLAGS): Likewise.
22527 (part_sunpc_mod_LDFLAGS): Likewise.
22528 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
22529 * partmap/sunpc.c: New file.
22530
22531 2010-03-26 BVK Chaitanya <bvk@localhost>
22532
22533 For loop support to GRUB script.
22534
22535 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
22536 (grub_script_create_cmdfor): New function prototype.
22537 (grub_script_execute_cmdfor): New function prototype.
22538 * script/execute.c (grub_script_execute_cmdfor): New function.
22539 * script/parser.y (command): New for command.
22540 (forcmd): New grammar rule.
22541 * script/script.c (grub_script_create_cmdfor): New function.
22542 * util/grub-script-check.c (grub_script_execute_cmdfor): New
22543 function.
22544 * tests/grub_script_for1.in: New testcase.
22545 * conf/tests.rmk: Rules for new testcase.
22546
22547 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22548
22549 Nested partitions
22550
22551 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
22552 'partition' is NULL, grub_partition_get_start already does that.
22553 * commands/loadenv.c (check_blocklists): Likewise.
22554 (write_blocklists): Likewise.
22555 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
22556 (grub_fstest_SOURCES): Likewise.
22557 (pkglib_MODULES): Add part_bsd.mod.
22558 (part_bsd_mod_SOURCES): New variable.
22559 (part_bsd_mod_CFLAGS): Likewise.
22560 (part_bsd_mod_LDFLAGS): Likewise.
22561 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
22562 (grub_emu_SOURCES): Likewise.
22563 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22564 * include/grub/bsdlabel.h: New file.
22565 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
22566 'get_name'.
22567 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
22568 (grub_partition_map_list): New variable.
22569 (grub_partition_map_register): Inline.
22570 (grub_partition_map_unregister): Likewise.
22571 (FOR_PARTITION_MAPS): New macro.
22572 (grub_partition_map_iterate): Removed.
22573 (grub_partition_get_start): Handle nested partitions.
22574 * include/grub/msdos_partition.h: Remove bsd-related entries.
22575 (grub_pc_partition): Remove.
22576 * kern/disk.c (grub_disk_close): Free partition data.
22577 (grub_disk_adjust_range): Handle nested partitions.
22578 * kern/partition.c (grub_partition_map_probe): New function.
22579 (grub_partition_probe): Parse name to number, handle subpartitions.
22580 (get_partmap): New function.
22581 (grub_partition_iterate): Handle subpartitions.
22582 (grub_partition_get_name): Likewise.
22583 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
22584 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
22585 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
22586 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
22587 Set 'number'.
22588 (acorn_partition_map_probe): Remove.
22589 (acorn_partition_map_get_name): Likewise.
22590 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
22591 Set 'number'.
22592 Set 'index' to 0 since there can be only one partition entry per sector.
22593 (amiga_partition_map_probe): Remove.
22594 (amiga_partition_map_get_name): Likewise.
22595 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
22596 Set 'number'.
22597 Set 'offset' and 'index' to real positions of partitions.
22598 (apple_partition_map_probe): Remove.
22599 (apple_partition_map_get_name): Likewise.
22600 * partmap/bsdlabel.c: New file.
22601 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
22602 Set 'number'.
22603 Allocate 'data' so it can be correctly freed.
22604 Set 'index' to offset inside sector.
22605 (gpt_partition_map_probe): Remove.
22606 (gpt_partition_map_get_name): Likewise.
22607 * partmap/msdos.c (grub_partition_parse): Remove.
22608 (pc_partition_map_iterate): Don't force raw access.
22609 Set 'number'.
22610 Make 'ext_offset' a local variable.
22611 (pc_partition_map_probe): Remove.
22612 (pc_partition_map_get_name): Remove.
22613 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
22614 Set 'number'.
22615 (sun_partition_map_probe): Remove.
22616 (sun_partition_map_get_name): Likewise.
22617 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
22618 (grub_pcpart_type): Likewise.
22619 * util/hostdisk.c (open_device): Handle new numbering scheme.
22620 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
22621 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
22622 * util/grub-probe.c (probe_partmap): Handle nested paritions.
22623 * util/grub-install.in: Insert all subpartition modules.
22624 * util/ieee1275/grub-install.in: Likewise.
22625
22626 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
22627
22628 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
22629 grammar.
22630
22631 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
22632
22633 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
22634
22635 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
22636
22637 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
22638 match where 'make install' puts them.
22639 * util/i386/efi/grub-install.in: Likewise.
22640
22641 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
22642
22643 * .bzrignore: Add gentrigtables, grub-script-check,
22644 grub_script_check_init.c, grub_script_check_init.h, and
22645 trigtables.c.
22646
22647 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
22648
22649 * kern/parser.c: Indented.
22650
22651 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22652
22653 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
22654
22655 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22656
22657 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
22658 alpha_mask_size == 0 case.
22659
22660 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
22661
22662 GRUB shell lexer and parser improvements.
22663
22664 * conf/any-emu.rmk: Build rule updates.
22665 * conf/common.rmk: Likewise.
22666 * conf/i386-coreboot.rmk: Likewise.
22667 * conf/i386-efi.rmk: Likewise.
22668 * conf/i386-ieee1275.rmk: Likewise.
22669 * conf/i386-pc.rmk: Likewise.
22670 * conf/powerpc-ieee1275.rmk: Likewise.
22671 * conf/x86_64-efi.rmk: Likewise.
22672
22673 * configure.ac: Configure check for flex.
22674
22675 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
22676 types.
22677 (grub_lexer_param): Struct member updates.
22678 (grub_parser_param): Likewise.
22679 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
22680 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
22681 (grub_script_lexer_init): Prototype update.
22682 (grub_script_lexer_record_start): Likewise.
22683 (grub_script_lexer_record_stop): Likewise.
22684 (grub_script_lexer_yywrap): New function prototype.
22685 (grub_script_lexer_fini): Likewise.
22686 (grub_script_execute_argument_to_string): Removed by...
22687 (grub_script_execute_argument_to_argv): ...better version.
22688
22689 * script/execute.c (ROUND_UPTO): New macro.
22690 (grub_script_execute_cmdline): Out of memory fixes.
22691 (grub_script_execute_menuentry): Likewise.
22692 (grub_script_execute_argument_to_string): Removed. Update all
22693 users by...
22694 (grub_script_execute_argument_to_argv): ...better version.
22695 * script/function.c (grub_script_function_create): Use
22696 grub_script_execute_argument_to_argv instead of
22697 grub_script_execute_argument_to_string.
22698
22699 * script/lexer.c (check_varstate): Removed.
22700 (check_textstate): Removed.
22701 (grub_script_lexer_record_start): Likewise.
22702 (grub_script_lexer_record_stop): Likewise.
22703 (recordchar): Replaced with...
22704 (grub_script_lexer_record): ...new function.
22705 (nextchar): Removed.
22706 (grub_script_lexer_init): Rewritten.
22707 (grub_script_yylex): Rewritten.
22708 (append_newline): New function.
22709 (grub_script_lexer_yywrap): New function.
22710 (grub_script_lexer_fini): New function.
22711 (grub_script_yyerror): Sets error flag.
22712
22713 * script/yylex.l: New file.
22714 (grub_lexer_yyfree): Wrapper for flex yyffre.
22715 (grub_lexer_yyalloc): Likewise.
22716 (grub_lexer_yyrealloc): Likewise.
22717 * script/parser.y: Refactored.
22718
22719 * script/script.c (grub_script_arg_add): Out of memory fixes.
22720 (grub_script_add_arglist): Likewise.
22721 (grub_script_create_cmdline): Likewise.
22722 (grub_script_create_cmdmenu): Likewise.
22723 (grub_script_add_cmd): Likewise.
22724 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
22725 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
22726 unnecessary code.
22727
22728 * tests/grub_script_echo1.in: New testcase.
22729 * tests/grub_script_vars1.in: New testcase.
22730 * tests/grub_script_echo_keywords.in: New testcase.
22731
22732 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22733
22734 Remove some redundancy in build system.
22735
22736 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
22737 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
22738 (TARGET_LDFLAGS): Add -nostdlib.
22739 (TARGET_IMG_LDFLAGS): Likewise.
22740 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
22741 anything since mmap isn't available.
22742 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
22743 Add util/time.c.
22744 (pkglib_MODULES): Remove reboot.mod.
22745 (reboot_mod_SOURCES): Removed.
22746 (reboot_mod_CFLAGS): Likewise.
22747 (reboot_mod_LDFLAGS): Likewise.
22748 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
22749 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
22750 (DEFSYMFILES): Add kernel_syms.lst.
22751 (kernel_img_HEADERS): Add common headers.
22752 (symlist.c): New target.
22753 (kernel_syms.lst): Likewise.
22754 (pkglib_MODULES): Add memdisk.mod.
22755 (memdisk_mod_SOURCES): New variable.
22756 (memdisk_mod_CFLAGS): Likewise.
22757 (memdisk_mod_LDFLAGS): Likewise.
22758 (pkglib_MODULES): Add reboot.mod.
22759 (reboot_mod_SOURCES): New variable.
22760 (reboot_mod_CFLAGS): Likewise.
22761 (reboot_mod_LDFLAGS): Likewise.
22762 (pkglib_MODULES): Add date.mod.
22763 (date_mod_SOURCES): New variable.
22764 (date_mod_CFLAGS): Likewise.
22765 (date_mod_LDFLAGS): Likewise.
22766 (pkglib_MODULES): Add datehook.mod.
22767 (datehook_mod_SOURCES): New variable.
22768 (datehook_mod_CFLAGS): Likewise.
22769 (datehook_mod_LDFLAGS): Likewise.
22770 (pkglib_MODULES): Add lsmmap.mod.
22771 (lsmmap_mod_SOURCES): New variable.
22772 (lsmmap_mod_CFLAGS): Likewise.
22773 (lsmmap_mod_LDFLAGS): Likewise.
22774 (pkglib_MODULES): Add boot.mod.
22775 (boot_mod_SOURCES): New variable.
22776 (boot_mod_CFLAGS): Likewise.
22777 (boot_mod_LDFLAGS): Likewise.
22778 * conf/i386-coreboot.rmk: Removed redundant parts.
22779 * conf/i386-ieee1275.rmk: Likewise.
22780 * conf/i386-pc.rmk: Likewise.
22781 * conf/mips-yeeloong.rmk: Likewise.
22782 * conf/mips.rmk: Likewise.
22783 * conf/powerpc-ieee1275.rmk: Likewise.
22784 * conf/sparc64-ieee1275.rmk: Likewise.
22785 * conf/x86_64-efi.rmk: Likewise.
22786 * conf/i386-coreboot.rmk: Moved qemu parts ..
22787 * conf/i386-qemu.rmk: ... here
22788 * conf/i386-efi.rmk: Moved common parts to...
22789 * conf/x86-efi.rmk: ... here.
22790 * conf/i386.rmk: Added modules common to all x86 variants.
22791 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
22792 * disk/memdisk.c: Remove grub/machine/kernel.h.
22793 * gensymlist.sh.in: Include symbol.h.
22794 * hook/datehook.c: Correct module name.
22795 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
22796 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
22797 * include/grub/i386/efi/serial.h: New file.
22798 * include/grub/x86_64/efi/serial.h: Likewise.
22799 * util/time.c: Likewise.
22800 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
22801
22802 2010-03-14 Colin King <colin.king@ubuntu.com>
22803 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22804
22805 Shrink the pre-partition-table part of boot.img by eight bytes.
22806
22807 * boot/i386/pc/boot.S (ERR): New macro.
22808 (chs_mode): Use ERR.
22809 (geometry_error): Likewise.
22810 (hd_probe_error): Remove. This is only used once, so we wrwite
22811 it inline instead.
22812 (read_error): Instead of printing read_error_string, just set up
22813 %si and fall through to ...
22814 (error_message): ... this new function, also used by ERR.
22815
22816 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22817
22818 Speed up consecutive hostdisk operations on the same device.
22819
22820 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
22821 (grub_util_biosdisk_open): Initialise disk->data.
22822 (struct linux_partition_cache): New structure.
22823 (linux_find_partition): Cache partition start positions; these are
22824 expensive to compute on every read and write.
22825 (open_device): Cache open file descriptor in disk->data, so that we
22826 don't have to reopen it and flush the buffer cache for consecutive
22827 operations on the same device.
22828 (grub_util_biosdisk_close): New function.
22829 (grub_util_biosdisk_dev): Set `close' member.
22830
22831 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
22832 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
22833 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22834 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
22835 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
22836
22837 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22838
22839 Compile parts of grub-emu as modules.
22840
22841 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
22842 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
22843 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
22844 (all-local): Add $(GRUB_EMU).
22845 (install-local): Install $(GRUB_EMU).
22846 (uninstall): Uninstall $(GRUB_EMU).
22847 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
22848 * kern/dl.c: Likewise.
22849 * commands/sleep.c: Not include machine/time.h.
22850 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
22851 (COMMON_CFLAGS): Likewise.
22852 (sbin_UTILITIES): Remove grub-emu.
22853 (grub_emu_SOURCES): Removed.
22854 (kernel_img_RELOCATABLE): New variable.
22855 (pkglib_PROGRAMS): Add kernel.img.
22856 (kernel_img_SOURCES): New variable
22857 (kernel_img_CFLAGS): Likewise.
22858 (kernel_img_LDFLAGS): Likewise.
22859 (TARGET_NO_STRIP): Likewise.
22860 (TARGET_NO_DYNAMIC_MODULES): Likewise.
22861 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
22862 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
22863 (grub-emu): New target.
22864 (GRUB_EMU): New variable.
22865 * configure.ac: Whitelist -emu as possible x86_64 architecture.
22866 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
22867 * loader/xnu.c: Likewise.
22868 * include/grub/pci.h: Likewise.
22869 * genemuinit.sh: New file.
22870 * genemuinitheader.sh: Likewise.
22871 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
22872 Support TARGET_NO_DYNAMIC_MODULES.
22873 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
22874 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
22875 * disk/loopback.c: Likewise.
22876 * font/font_cmd.c: Likewise.
22877 * partmap/acorn.c: Likewise.
22878 * partmap/amiga.c: Likewise.
22879 * partmap/apple.c: Likewise.
22880 * partmap/gpt.c: Likewise.
22881 * partmap/msdos.c: Likewise.
22882 * partmap/sun.c: Likewise.
22883 * parttool/msdospart.c: Likewise.
22884 * term/gfxterm.c: Likewise.
22885 * video/bitmap.c: Likewise.
22886 * video/readers/jpeg.c: Likewise.
22887 * video/readers/png.c: Likewise.
22888 * video/readers/tga.c: Likewise.
22889 * video/video.c: Likewise.
22890 * util/grub-emu.c (read_command_list): Removed.
22891 (main): Don't call util_init_nls.
22892 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
22893 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
22894
22895 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22896
22897 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
22898 date.mod, datehook.mod.
22899 (datetime_mod_SOURCES): New variable.
22900 (datetime_mod_CFLAGS): Likewise.
22901 (datetime_mod_LDFLAGS): Likewise.
22902 (date_mod_SOURCES): Likewise.
22903 (date_mod_CFLAGS): Likewise.
22904 (date_mod_LDFLAGS): Likewise.
22905 (datehook_mod_SOURCES): Likewise.
22906 (datehook_mod_CFLAGS): Likewise.
22907 (datehook_mod_LDFLAGS): Likewise.
22908 * conf/sparc64-ieee1275.rmk: Likewise.
22909 * lib/ieee1275/datetime.c: New file.
22910
22911 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22912
22913 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
22914 (ieee1275_fb_mod_SOURCES): New variable.
22915 (ieee1275_fb_mod_CFLAGS): Likewise.
22916 (ieee1275_fb_mod_LDFLAGS): Likewise.
22917 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
22918 New proto.
22919 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
22920 (HEAP_MAX_ADDR): Likewise.
22921 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
22922 type.
22923 Correct stop condition.
22924 (grub_ieee1275_devices_iterate): New function.
22925 * video/ieee1275.c: New file.
22926
22927 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22928
22929 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
22930
22931 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
22932 as scratch.
22933 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
22934 SCRATCH_PAD_DISKBOOT as scratch.
22935 (bootit): Pass Openfirmware pointer in %o4.
22936 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
22937 of 0x200000.
22938 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
22939 with util/grub-mkrawimage.c.
22940 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
22941 * include/grub/aout.h (AOUT_MID_SUN): New definition.
22942 (grub_aout_get_type) [GRUB_UTIL]: Removed.
22943 (grub_aout_load) [GRUB_UTIL]: Likewise.
22944 * include/grub/kernel.h (grub_modules_get_end): New proto.
22945 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
22946 (SCRATCH_PAD_BOOT): New definition.
22947 (SCRATCH_PAD_DISKBOOT): Likewise.
22948 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
22949 * include/grub/sparc64/ieee1275/ieee1275.h
22950 (grub_ieee1275_original_stack): New variable
22951 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
22952 New definition
22953 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
22954 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
22955 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
22956 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
22957 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
22958 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
22959 (grub_platform_image_format_t): New type.
22960 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
22961 * kern/main.c (grub_modules_get_end)
22962 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
22963 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
22964 (codestart): Switch stacks.
22965 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
22966 variable.
22967 (grub_heap_init): Use grub_modules_get_end.
22968 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
22969 stack.
22970 * util/grub-mkrawimage.c (generate_image): Support sparc64.
22971 (main): Likewise.
22972 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
22973
22974 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
22975
22976 * util/grub-mkrescue.in: Base ISO UUID on UTC.
22977
22978 2010-03-08 Matt Kraai <kraai@ftbfs.org>
22979
22980 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
22981 bug #559005).
22982
22983 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
22984
22985 * genmoddep.awk: Output all missing symbols and not only first.
22986
22987 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22988
22989 * NEWS: Put the date of 1.98 release.
22990
22991 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22992
22993 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
22994 ft2build.h.
22995
22996 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22997
22998 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
22999 completition in the middle of string.
23000
23001 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23002
23003 * util/grub-mkrescue.in: Use mktemp with explicit template.
23004
23005 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23006
23007 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
23008
23009 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23010
23011 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
23012 right pointer.
23013
23014 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
23015
23016 Fix FreeBSD compilation.
23017
23018 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
23019 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
23020
23021 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
23022
23023 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
23024
23025 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23026
23027 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
23028
23029 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23030
23031 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
23032
23033 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
23034
23035 Support relative image path in theme file.
23036
23037 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
23038 (image_set_property): Handle theme_dir and relative path.
23039
23040 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23041
23042 * configure.ac: Alias amd64 to x86_64.
23043
23044 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23045
23046 * NEWS: mention multiboot on EFI.
23047
23048 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23049
23050 * kern/main.c (grub_load_modules): Handle errors from init functions of
23051 embeded modules.
23052
23053 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23054
23055 * normal/autofs.c (autoload_fs_module): Handle errors.
23056
23057 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23058
23059 Disable linux.mod on qemu-mips since it's not functional and leads
23060 to compilation failure.
23061
23062 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
23063 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
23064 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
23065 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
23066 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
23067 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
23068 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
23069 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
23070 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
23071 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
23072 Reported by: BVK Chaitanya
23073
23074 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
23075
23076 * INSTALL: Add gettext as a dependency and add qemu to a new section
23077 "Prerequisites for make-check".
23078
23079 2010-03-04 Christian Franke <franke@computer.org>
23080
23081 * util/grub-pe2elf.c: Add missing include "progname.h".
23082
23083 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23084
23085 * normal/crypto.c (read_crypto_list): Fix a typo.
23086 Reported by: Seth Goldberg.
23087
23088 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23089
23090 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
23091 Reported by: Seth Goldberg.
23092
23093 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23094
23095 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
23096 ascii.bitmaps.
23097
23098 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23099
23100 * genmk.rb: Remove terminal*.lst in make clean.
23101 Reported by: Seth Goldberg.
23102
23103 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23104
23105 * util/i386/efi/grub-install.in: Copy gettext files.
23106
23107 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23108
23109 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
23110
23111 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23112
23113 Wait for user entry basing on presence of output rather than on errors.
23114
23115 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
23116 (grub_install_newline_hook): Likewise.
23117 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
23118 * normal/menu.c (show_menu): Check line_counter to determine presence
23119 of output.
23120 * normal/term.c (grub_normal_line_counter): New variable.
23121 (grub_normal_get_line_counter): New function.
23122 (grub_install_newline_hook): Likewise.
23123
23124 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23125
23126 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
23127
23128 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23129
23130 * configure.ac: Update version to 1.98.
23131
23132 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
23133
23134 * util/grub.d/10_linux.in (linux_entry): Don't default to
23135 gfxpayload=keep if Linux doesn't support video handover.
23136
23137 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
23138
23139 Don't compile video modules on yeeloong since video subsystem is part
23140 of kernel.
23141
23142 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
23143 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
23144 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
23145 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
23146 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
23147 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
23148 * include/grub/bitmap_scale.h: Likewise.
23149 * include/grub/bufio.h: Likewise.
23150 * include/grub/font.h: Likewise.
23151 * include/grub/gfxterm.h: Likewise.
23152 * include/grub/video.h: Likewise.
23153 * include/grub/vbe.h: Don't include video_fb.h.
23154 * video/i386/pc/vbe.c: Include video_fb.h.
23155 * commands/i386/pc/vbetest.c: Include video.h.
23156
23157 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
23158
23159 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
23160 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
23161 default entry if GRUB_SAVEDEFAULT=true. This allows using
23162 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
23163 saving a new default on every boot.
23164
23165 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23166
23167 * normal/crypto.c (read_crypto_list): Fix a memory leak.
23168 * normal/term.c (read_terminal_list): Likewise.
23169 * normal/main.c (grub_normal_init_page): Likewise.
23170 (grub_normal_read_line_real): Likewise.
23171
23172 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23173
23174 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
23175 memory leak.
23176 Reported by: Seth Goldberg.
23177
23178 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
23179
23180 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
23181 duplicate declaration of `start'.
23182
23183 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23184
23185 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
23186 filename.
23187 Reported by: Georgy Buranov
23188
23189 2010-02-20 Carles Pina i Estany <carles@pina.cat>
23190
23191 * util/grub-mkrawimage.c (usage): Change string formatting to
23192 improve gettext.
23193
23194 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
23195
23196 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
23197 backspace keys.
23198
23199 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23200
23201 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
23202 Reported by: Michael Suchanek.
23203
23204 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
23205
23206 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
23207 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
23208
23209 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
23210
23211 Remove any reference to non-free fonts.
23212
23213 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
23214 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
23215 uses non-free components.
23216 * font/font.c (grub_font_get_name): Remove example name.
23217 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
23218 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
23219 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
23220 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
23221
23222 2010-02-16 Georgy Buranov <gburanov@gmail.com>
23223
23224 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
23225
23226 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23227
23228 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
23229 Double divisor.
23230 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
23231 features.
23232 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
23233
23234 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23235
23236 * gensymlist.sh.in: Use TARGET_CC instead of CC.
23237
23238 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23239
23240 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
23241 * docs/grub.texi (Command-line and menu entry commands): Document play
23242 command.
23243
23244 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23245
23246 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
23247 parse arguments as inline tempo and notes. Move code for playing notes
23248 to...
23249 (play): ... new function.
23250
23251 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23252
23253 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
23254 grub_uint16_t instead of short.
23255 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
23256 disk from little endian to cpu endianness.
23257
23258 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
23259
23260 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
23261 GRUB_TICKS_PER_SECOND instead of 120.
23262
23263 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23264
23265 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
23266 escape sequence after \e.
23267
23268 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23269
23270 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
23271 non-ASCII characters.
23272
23273 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23274
23275 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
23276 set root in single quotes to prevent \, from being unescaped.
23277
23278 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23279
23280 Prevent unknown commands from stopping menuentry execution.
23281
23282 * script/execute.c (grub_script_execute_cmdline): Print error after
23283 unknown command.
23284
23285 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23286
23287 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
23288 Reported by: Pavel Pisa.
23289
23290 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23291
23292 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
23293
23294 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23295
23296 Merge grub_ieee1275_map_physical into grub_map and rename to
23297 grub_ieee1275_map
23298
23299 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
23300 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
23301 Remove.
23302 * kern/ieee1275/openfw.c (grub_map): Rename to ...
23303 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
23304 necessary.
23305 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
23306
23307 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23308
23309 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
23310 opening and not after.
23311
23312 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23313
23314 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
23315 constants.
23316
23317 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23318
23319 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
23320 (alloc_phys): Use ALIGN_UP instead of align_addr.
23321
23322 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23323
23324 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
23325
23326 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23327
23328 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
23329
23330 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23331
23332 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
23333 verbose dprintf.
23334
23335 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23336
23337 Fix over-4GiB seek on sparc64.
23338
23339 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
23340 Replace pos_i and pos_lo with pos. All users updated.
23341 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23342 New constant.
23343 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23344 Likewise.
23345 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
23346 and pos_lo.
23347
23348 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23349
23350 * util/grub-mkrawimage.c (main): Call set_program_name.
23351
23352 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23353
23354 Properly align 64-bit targets.
23355
23356 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
23357 (generate_image): Use ALIGN_ADDR.
23358
23359 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23360
23361 Properly create cross-endian images.
23362
23363 * include/grub/types.h (grub_host_to_target_addr): New macro
23364 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
23365
23366 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23367
23368 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
23369
23370 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23371
23372 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
23373
23374 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
23375 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
23376 (grub_linux_boot): Divide by 64K when on VESA.
23377
23378 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23379
23380 Support GRUB_GFXPAYLOAD_LINUX.
23381
23382 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
23383 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
23384
23385 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23386
23387 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
23388 to show messages instead of discarding them.
23389 Process errors after executing command and not before. Keep old method
23390 too as precaution.
23391
23392 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
23393
23394 * configure.ac: Check for ft2build.h.
23395
23396 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23397
23398 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
23399
23400 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23401
23402 * genkernsyms.sh.in: Use TARGET_CC.
23403
23404 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
23405
23406 * NEWS: Update.
23407
23408 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23409
23410 * include/grub/multiboot2.h: Remove leftover file.
23411 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
23412 * include/grub/partition.h [GRUB_UTIL]: Likewise.
23413
23414 2010-02-07 Yves Blusseau <blusseau@zetam.org>
23415
23416 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
23417
23418 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23419
23420 Fix warnings in grub-emu when compiling with maximum warning options.
23421
23422 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
23423 (grub_arch_modules_addr): Return 0 and not NULL.
23424 * util/misc.c (ENABLE_RELOCATABLE): New definition.
23425 (xstrdup): Use newstr instead of dup.
23426 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
23427 of disk to dsk to avoid shadowing.
23428 (find_free_slot): Fix prototype.
23429 * util/getroot.c (grub_util_is_dmraid): Make static.
23430 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
23431 Add missing prototype.
23432 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
23433
23434 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23435
23436 * loader/i386/linux.c (grub_linux_setup_video): Handle error
23437 appropriately.
23438
23439 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23440
23441 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
23442 code out.
23443
23444 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23445
23446 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
23447 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
23448 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
23449 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
23450 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
23451 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
23452
23453 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23454
23455 * include/grub/err.h (grub_err_printf): Don't export.
23456
23457 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23458
23459 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
23460
23461 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23462
23463 * include/grub/i18n.h (grub_gettext_dummy): Removed.
23464 * kern/misc.c (grub_gettext_dummy): Make static.
23465
23466 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23467
23468 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
23469 by non-valid ones.
23470 * kern/term.c (grub_putchar): Likewise.
23471
23472 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23473
23474 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
23475 buggy hook call and memory leak.
23476
23477 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23478
23479 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
23480
23481 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23482
23483 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
23484
23485 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23486
23487 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
23488 modevar.
23489 Return grub_errno on allocation error.
23490
23491 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23492
23493 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
23494
23495 2010-02-06 Yves Blusseau <blusseau@zetam.org>
23496
23497 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
23498 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
23499
23500 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23501
23502 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
23503 non-pxe disk.
23504 (grub_pxefs_open): Likewise.
23505
23506 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23507
23508 * util/grub.d/10_hurd.in: Add --class information to menuentries.
23509 * util/grub.d/10_kfreebsd.in: Likewise.
23510 * util/grub.d/10_linux.in: Likewise.
23511
23512 2010-02-06 Colin D Bennett <colin@gibibit.com>
23513
23514 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
23515 (gfxmenu_mod_SOURCES): New variable.
23516 (gfxmenu_mod_CFLAGS): Likewise.
23517 (gfxmenu_mod_LDFLAGS): Likewise.
23518 * include/grub/term.h (grub_term_set_current_output): Declare
23519 argument as const.
23520 * docs/gfxmenu-theme-example.txt: New file.
23521 * gfxmenu/gfxmenu.c: Likewise.
23522 * gfxmenu/gui_box.c: Likewise.
23523 * gfxmenu/gui_canvas.c: Likewise.
23524 * gfxmenu/gui_circular_progress.c: Likewise.
23525 * gfxmenu/gui_image.c: Likewise.
23526 * gfxmenu/gui_label.c: Likewise.
23527 * gfxmenu/gui_list.c: Likewise.
23528 * gfxmenu/gui_progress_bar.c: Likewise.
23529 * gfxmenu/gui_string_util.c: Likewise.
23530 * gfxmenu/gui_util.c: Likewise.
23531 * gfxmenu/icon_manager.c: Likewise.
23532 * gfxmenu/model.c: Likewise.
23533 * gfxmenu/named_colors.c: Likewise.
23534 * gfxmenu/theme_loader.c: Likewise.
23535 * gfxmenu/view.c: Likewise.
23536 * gfxmenu/widget-box.c: Likewise.
23537 * include/grub/gfxmenu_model.h: Likewise.
23538 * include/grub/gfxmenu_view.h: Likewise.
23539 * include/grub/gfxwidgets.h: Likewise.
23540 * include/grub/gui.h: Likewise.
23541 * include/grub/gui_string_util.h: Likewise.
23542 * include/grub/icon_manager.h: Likewise.
23543
23544 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23545
23546 Agglomerate scrolling in gfxterm.
23547
23548 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
23549 (grub_virtual_screen_setup): Initialise 'total_screen'.
23550 (write_char): Split to ...
23551 (paint_char): ... this ...
23552 (write_char): ... and this.
23553 (paint_char): Handle delayed scrolling.
23554 (draw_cursor): Likewise.
23555 (scroll_up): Split to ...
23556 (real_scroll): ... this ...
23557 (scroll_up): ... and this.
23558 (real_scroll): Handle multi-line scroll and draw below-the-bottom
23559 characters.
23560 (grub_gfxterm_refresh): Call real_scroll.
23561
23562 2010-02-06 Colin D Bennett <colin@gibibit.com>
23563
23564 * include/grub/misc.h (grub_iscntrl): New inline function.
23565 (grub_isalnum): Likewise.
23566 (grub_strtol): Likewise.
23567
23568 2010-02-06 Colin D Bennett <colin@gibibit.com>
23569
23570 * normal/menu_text.c (get_entry_number): Move from here ...
23571 * normal/menu.c (get_entry_number): ... moved here.
23572 * include/grub/menu.h (grub_menu_get_default_entry_index):
23573 New prototype.
23574 * normal/menu.c (grub_menu_get_default_entry_index): New function.
23575 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
23576 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
23577 (grub_menu_viewer_should_return): Likewise.
23578 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
23579 * normal/menu_text.c (run_menu): Enable menu switching.
23580 * normal/menu_viewer.c (should_return): New variable.
23581 (menu_viewer_changed): Likewise.
23582 (grub_menu_viewer_show_menu): Handle menu viewer changes.
23583 (grub_menu_viewer_should_return): New function.
23584 (menuviewer_write_hook): Likewise.
23585 (grub_menu_viewer_init): Likewise.
23586
23587 2010-02-06 Colin D Bennet <colin@gibibit.com>
23588 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23589
23590 Support for gfxterm in a window.
23591
23592 * include/grub/gfxterm.h: New file.
23593 * include/grub/video.h (struct grub_video_rect): New declaration.
23594 (grub_video_rect_t): Likewise.
23595 * term/gfxterm.c (struct grub_gfxterm_window): New type.
23596 (refcount): New variable.
23597 (render_target): Likewise.
23598 (window): Likewise.
23599 (repaint_callback): Likewise.
23600 (grub_virtual_screen_setup): Use 'render_target'.
23601 (init_window): New function.
23602 (grub_gfxterm_init_window): Likewise.
23603 (grub_gfxterm_init): Check reference counter.
23604 Use init_window.
23605 (destroy_window): New function.
23606 (grub_gfxterm_destroy_window): Likewise.
23607 (grub_gfxterm_fini): Check reference counter.
23608 Use destroy_window.
23609 (redraw_screen_rect): Restore viewport.
23610 Use 'render_target' and 'window'.
23611 Call 'repaint_callback'.
23612 (write_char): Use 'render_target'.
23613 (draw_cursor): Likewise.
23614 (scroll_up): Restore viewport.
23615 Use 'render_target' and 'window'.
23616 Call 'repaint_callback'.
23617 (grub_gfxterm_cls): Likewise.
23618 (grub_gfxterm_refresh): Use 'window'.
23619 (grub_gfxterm_set_repaint_callback): New function.
23620 (grub_gfxterm_background_image_cmd): Use 'window'.
23621 (grub_gfxterm_get_term): New function.
23622 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
23623
23624 2010-02-06 Colin D Bennett <colin@gibibit.com>
23625
23626 Bitmap scaling support.
23627
23628 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
23629 (bitmap_scale_mod_SOURCES): New variable.
23630 (bitmap_scale_mod_CFLAGS): Likewise.
23631 (bitmap_scale_mod_LDFLAGS): Likewise.
23632 * include/grub/bitmap_scale.h: New file.
23633 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
23634 (background_image_cmd_options): New variable.
23635 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
23636 (cmd): Rename and change type to ...
23637 (background_image_cmd_handle): ... this. All users updated.
23638 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
23639 * video/bitmap_scale.c: New file.
23640
23641 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23642
23643 SDL support.
23644
23645 * Makefile.in (LIBSDL): New variable.
23646 (enable_grub_emu_sdl): Likewise.
23647 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
23648 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
23649 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
23650 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
23651 * util/sdl.c: New file.
23652
23653 2010-02-06 Colin D Bennett <colin@gibibit.com>
23654 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23655
23656 Double buffering support.
23657
23658 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
23659 * include/grub/video.h: Update comment.
23660 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
23661 New type.
23662 (grub_video_fb_doublebuf_blit_init): New prototype.
23663 * term/gfxterm.c (scroll_up): Support double buffering.
23664 (grub_gfxterm_refresh): Likewise.
23665 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
23666 (grub_video_fb_doublebuf_blit_init): Likewise.
23667 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
23668 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
23669 'displayed_page', 'render_page' and 'update_screen'.
23670 (grub_video_vbe_fini): Free offscreen buffer.
23671 (doublebuf_pageflipping_commit): New function.
23672 (doublebuf_pageflipping_update_screen): Likewise.
23673 (doublebuf_pageflipping_init): Likewise.
23674 (double_buffering_init): Likewise.
23675 (grub_video_vbe_setup): Enable doublebuffering.
23676 (grub_video_vbe_swap_buffers): Implement.
23677 (grub_video_vbe_set_active_render_target): Handle double buffering.
23678 (grub_video_vbe_get_active_render_target): Likewise.
23679 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
23680 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
23681 (grub_video_vbe_enable_double_buffering): Likewise.
23682 (grub_video_vbe_swap_buffers): Use update_screen.
23683 (grub_video_set_mode): Use double buffering.
23684
23685 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23686
23687 * maintainance/gentrigtables.py: Remove.
23688 * lib/trig.c: Likewise.
23689
23690 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
23691
23692 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
23693 `trigtables.c'.
23694 (trigtables.c): New rule.
23695 (gentrigtables): Likewise.
23696 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
23697
23698 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23699
23700 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
23701 integer constants.
23702
23703 2010-02-06 Colin D Bennet <colin@gibibit.com>
23704
23705 Trigonometry support.
23706
23707 * include/grub/trig.h: New file.
23708 * lib/trig.c: Likewise.
23709 * maintainance/gentrigtables.py: Likewise.
23710 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
23711 (trig_mod_SOURCES): New variable.
23712 (trig_mod_CFLAGS): Likewise.
23713 (trig_mod_LDFLAGS): Likewise.
23714
23715 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23716
23717 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
23718 disk devices.
23719
23720 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23721
23722 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
23723 error.
23724
23725 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23726
23727 * util/hostdisk.c (open_device): Don't use partition device when reading
23728 before the partition.
23729 (grub_util_biosdisk_read): Don't read from partition and before the
23730 partition in single operation.
23731 (grub_util_biosdisk_write): Don't write to partition and before the
23732 partition in single operation.
23733
23734 2010-02-03 Torsten Landschoff <torsten@debian.org>
23735
23736 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23737 last sectors.
23738
23739 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23740
23741 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
23742 CDROM reads.
23743 (grub_biosdisk_write): Refuse to write to CDROM.
23744
23745 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23746
23747 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
23748
23749 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23750
23751 * font/font.c (find_glyph): Check that bmp_idx is available before
23752 using it.
23753 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
23754 with (font == NULL).
23755
23756 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
23757
23758 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
23759
23760 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
23761
23762 * include/grub/script_sh.h (sourcecode): Add const qualifier.
23763 * util/grub-script-check.c (getline): Fix empty lines case.
23764
23765 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
23766
23767 * Makefile.in (check): Exit with fail status when one of the tests
23768 fails.
23769 * tests/example_functional_test.c (example_test): Fix reversed assert.
23770 * tests/example_unit_test.c (example_test): Likewise.
23771
23772 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
23773
23774 * util/grub.d/10_linux.in: This script does not use any of the
23775 contents of gettext.sh, only the external command `gettext', so stop
23776 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
23777 the same prefix as GRUB.)
23778 * util/grub.d/10_kfreebsd.in: Likewise.
23779
23780 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23781
23782 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
23783 of the line.
23784
23785 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23786
23787 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23788 last sectors.
23789
23790 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23791
23792 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
23793 having a 4KiB and not 32KiB buffer size.
23794
23795 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23796
23797 * util/hostfs.c: Include `<errno.h>'.
23798 (grub_hostfs_read): Handle errors from fseeko() and fread().
23799
23800 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23801
23802 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
23803 loop when using read hooks on files whose size isn't sector-aligned.
23804
23805 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23806
23807 Remove unused parameter.
23808
23809 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
23810 (grub_iso9660_open): Remove initialization of `data->length'.
23811
23812 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23813
23814 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
23815 memleak conditions.
23816
23817 2010-01-27 Carles Pina i Estany <carles@pina.cat>
23818
23819 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
23820 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
23821
23822 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23823
23824 * util/bin2h.c (usage): Fix warning (space after backslash).
23825
23826 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23827
23828 * font/font.c: Include `grub/fontformat.h.
23829 Remove font file format constants.
23830 (grub_font_load): Use the new macros.
23831 * include/grub/fontformat.h: New file.
23832 * util/grub-mkfont.c: Include `grub/fontformat.c'.
23833 (write_font_pf2): Use the new macros.
23834
23835 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23836
23837 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
23838 does.
23839
23840 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23841
23842 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
23843
23844 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
23845 (_start): Macroify `0x7F'.
23846
23847 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
23848 (make_install_device): Use "(pxe)" as fallback prefix when booting
23849 via PXE.
23850
23851 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
23852
23853 * configure.ac: Reset LIBS after check for libgcc symbols.
23854
23855 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
23856
23857 * util/hostdisk.c (open_device): Add trailing newline to debug
23858 message.
23859
23860 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
23861
23862 * configure.ac: Check for `limits.h'.
23863 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
23864
23865 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
23866
23867 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
23868 capitalize error strings.
23869
23870 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
23871
23872 * util/grub.d/10_hurd.in: Add a recovery mode.
23873
23874 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
23875
23876 * configure.ac: Check for libgcc symbols with -nostdlib.
23877
23878 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
23879
23880 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
23881
23882 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23883
23884 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
23885 stack since heap may be unavailable at that point.
23886 (grub_ofconsole_gotoxy): Likewise.
23887
23888 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23889
23890 * configure.ac: Check for _restgpr_14_x.
23891 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
23892 and _savegpr_* prototypes.
23893
23894 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
23895
23896 Use generic grub_reboot() for i386-efi.
23897
23898 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
23899 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
23900 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
23901
23902 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23903
23904 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
23905 presence of "prefix" variable as it breaks when normal.mod is
23906 embedded.
23907
23908 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23909
23910 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
23911 stack since heap is unavailable at that point.
23912
23913 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23914
23915 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
23916 (grub_freebsd_bootinfo): Rewritten.
23917 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
23918
23919 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23920
23921 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
23922
23923 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
23924
23925 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
23926 domain now.
23927
23928 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
23929
23930 * util/misc.c (make_system_path_relative_to_its_root): Change the work
23931 around for handling "/" to the correct fix. Fix a memory leak. Use
23932 xstrdup instead of strdup.
23933
23934 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23935
23936 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
23937
23938 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23939
23940 Optimise glyph lookup by Basic Multilingual Plane lookup array.
23941
23942 * font/font.c (struct grub_font): New member 'bmp_idx'.
23943 (font_init): Initialise 'bmp_idx'.
23944 (load_font_index): Fill 'bmp_idx'.
23945 (find_glyph): Make inline. Use bmp_idx for BMP characters.
23946
23947 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23948
23949 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
23950 unnecessary calls.
23951
23952 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23953
23954 Move context handling out of the kernel.
23955
23956 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
23957 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
23958 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
23959 * conf/i386-efi.rmk: Likewise.
23960 * conf/i386-ieee1275.rmk: Likewise.
23961 * conf/i386-pc.rmk: Likewise.
23962 * conf/powerpc-ieee1275.rmk: Likewise.
23963 * conf/sparc64-ieee1275.rmk: Likewise.
23964 * conf/x86_64-efi.rmk: Likewise.
23965 * include/grub/env.h: Include grub/menu.h.
23966 (grub_env_var_type): Removed.
23967 (grub_env_var): Replaced field 'type' with 'global'.
23968 (grub_env_find): New prototype.
23969 (grub_env_context_open): Remove EXPORT_FUNC.
23970 (grub_env_context_close): Likewise.
23971 (grub_env_export): Likewise.
23972 (grub_env_set_data_slot): Removed.
23973 (grub_env_get_data_slot): Likewise.
23974 (grub_env_unset_data_slot): Likewise.
23975 (grub_env_unset_menu): New prototype.
23976 (grub_env_set_menu): Likewise.
23977 (grub_env_get_menu): Likewise.
23978 * include/grub/env_private.h: New file.
23979 * include/grub/normal.h (grub_context_init): New prototype.
23980 (grub_context_fini): Likewise.
23981 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
23982 * normal/context.c (grub_cmd_export): ... to here.
23983 * kern/env.c: Include env_private.h.
23984 (HASHSZ): Moved to include/grub/env_private.h.
23985 (grub_env_context): Likewise.
23986 (grub_env_sorted_var): Likewise.
23987 (current_context): Renamed from this ...
23988 (grub_current_context): ...to this. 'static' removed. All users updated.
23989 (grub_env_find): Removed 'static'.
23990 (grub_env_context_open): Moved to normal/context.c.
23991 (grub_env_context_close): Likewise.
23992 (grub_env_export): Likewise.
23993 (mangle_data_slot_name): Removed.
23994 (grub_env_set_data_slot): Likewise.
23995 (grub_env_get_data_slot): Likewise.
23996 (grub_env_unset_data_slot): Likewise.
23997 * kern/main.c (grub_set_root_dev): Don't export root.
23998 It will be done later.
23999 (grub_main): Don't export prefix.
24000 It will be done later.
24001 * normal/context.c: New file.
24002 * normal/main.c (free_menu): Use grub_env_unset_menu.
24003 (grub_normal_add_menu_entry): Use grub_env_get_menu.
24004 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
24005 (GRUB_MOD_INIT(normal)): Call grub_context_init.
24006 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
24007
24008 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24009
24010 setpci support.
24011
24012 * commands/setpci.c: New file.
24013 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
24014 (setpci_mod_SOURCES): New variable.
24015 (setpci_mod_CFLAGS): Likewise.
24016 (setpci_mod_LDFLAGS): Likewise.
24017
24018 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24019
24020 Byte-addressable PCI configuration space.
24021
24022 * bus/pci.c (grub_pci_make_address): Use byte address instead of
24023 dword address.
24024 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
24025 GRUB_PCI_REG_CACHELINE.
24026 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
24027 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
24028 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
24029 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
24030 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
24031 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
24032 grub_pci_make_address.
24033 (lock_rom_area): Likewise.
24034 * commands/lspci.c (grub_lspci_iter): Use macroses
24035 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
24036 of grub_pci_make_address.
24037 * disk/ata.c (grub_ata_pciinit): Likewise.
24038 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
24039 (GRUB_PCI_REG_VENDOR): Likewise.
24040 (GRUB_PCI_REG_DEVICE): Likewise.
24041 (GRUB_PCI_REG_COMMAND): Likewise.
24042 (GRUB_PCI_REG_STATUS): Likewise.
24043 (GRUB_PCI_REG_REVISION): Likewise.
24044 (GRUB_PCI_REG_CLASS): Likewise.
24045 (GRUB_PCI_REG_CACHELINE): Likewise.
24046 (GRUB_PCI_REG_LAT_TIMER): Likewise.
24047 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
24048 (GRUB_PCI_REG_BIST): Likewise.
24049 (GRUB_PCI_REG_ADDRESSES): Likewise.
24050 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24051 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24052 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24053 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24054 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24055 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24056 (GRUB_PCI_REG_CIS_POINTER): Likewise.
24057 (GRUB_PCI_REG_SUBVENDOR): Likewise.
24058 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
24059 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
24060 (GRUB_PCI_REG_CAP_POINTER): Likewise.
24061 (GRUB_PCI_REG_IRQ_LINE): Likewise.
24062 (GRUB_PCI_REG_IRQ_PIN): Likewise.
24063 (GRUB_PCI_REG_MIN_GNT): Likewise.
24064 (GRUB_PCI_REG_MAX_LAT): Likewise.
24065 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
24066 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
24067 * video/efi_uga.c (find_framebuf): Likewise.
24068 * video/sm712.c (grub_video_sm712_setup): Likewise.
24069 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
24070 space.
24071
24072 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24073
24074 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
24075 can be reliably determined to be supported.
24076
24077 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24078
24079 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
24080 that VESA is supported.
24081 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
24082 supported.
24083
24084 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24085
24086 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
24087
24088 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24089
24090 * util/misc.c (make_system_path_relative_to_its_root): Work around
24091 special-casing of "/", as previous incarnation of this routine did.
24092
24093 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24094
24095 Fix any-emu compilation.
24096
24097 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
24098 * grub_bin2h_SOURCES: New variable.
24099
24100 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24101
24102 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
24103
24104 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24105
24106 * util/grub.d/00_header.in: Fix handling of locale_dir.
24107
24108 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24109
24110 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
24111 as possible unifont location (Gentoo).
24112 Reported by: Alexander Brüning
24113
24114 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24115
24116 Don't try to generate lists for kernel.img.
24117
24118 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
24119 (pkglib_MODULES): Remove kernel.img.
24120 (kernel_img_EXPORTS): Removed.
24121 (kernel_img_RELOCATABLE): New variable.
24122 * conf/x86_64-efi.rmk: Likewise.
24123 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
24124
24125 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24126
24127 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
24128 grub_xasprintf or grub_snprintf.
24129 (grub_vsprintf): Likewise.
24130 (grub_snprintf): New proto.
24131 (grub_vsnprintf): Likewise.
24132 (grub_xasprintf): Likewise.
24133 (grub_xvasprintf): Likewise.
24134 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
24135 (grub_sprintf): Removed.
24136 (grub_vsnprintf): New function.
24137 (grub_snprintf): Likewise.
24138 (grub_xvasprintf): Likewise.
24139 (grub_xasprintf): Likewise.
24140 (grub_vsprintf): Renamed to ...
24141 (grub_vsnprintf_real): ...this. New argument max_len.
24142
24143 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
24144
24145 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
24146 fix grub-script-check warning.
24147
24148 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24149
24150 * include/grub/font.h (grub_font_load): Fix prototype.
24151
24152 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24153
24154 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
24155
24156 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24157
24158 * include/grub/x86_64/at_keyboard.h: New file.
24159
24160 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24161
24162 * loader/mips/linux.c: Include missing grub/i18n.h.
24163
24164 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24165
24166 * normal/menu.c (notify_execution_failure): Clarify error message.
24167
24168 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24169
24170 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
24171 return value (and revert all return statements). Update users.
24172
24173 2010-01-20 Dan Merillat <debian@dan.merillat.org>
24174
24175 * kern/device.c (grub_device_iterate): Allocate new part_ent
24176 structure based on sizeof (*p) rather than sizeof (p->next), to
24177 account for structure padding.
24178
24179 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
24180 disk is NULL, which might happen for LVM physical volumes with no
24181 LVM signature.
24182
24183 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24184
24185 * loader/mips/linux.c (grub_cmd_initrd)
24186 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
24187
24188 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24189
24190 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
24191 (grub_video_video_init, grub_video_bitmap_init)
24192 (grub_font_manager_init, grub_term_gfxterm_init)
24193 (grub_at_keyboard_init): New extern declarations.
24194 (grub_machine_init): Initialize gfxterm and at_keyboard.
24195
24196 * kern/main.c (grub_main): Revert grub_printf delay kludge.
24197
24198 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
24199 `gfxterm.mod' into core image.
24200
24201 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24202 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24203 (kernel_img_FORMAT): Copy to ...
24204
24205 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24206 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24207 (kernel_img_FORMAT): ... here, and ...
24208
24209 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24210 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24211 (kernel_img_FORMAT): ... here.
24212
24213 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
24214 and input (at_keyboard) terminals in kernel.
24215 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
24216
24217 (pkglib_MODULES): Remove `pci.mod'.
24218 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
24219 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
24220 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
24221 (at_keyboard_mod_LDFLAGS): Remove variables.
24222
24223 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
24224
24225 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
24226
24227 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
24228
24229 * include/grub/mips/libgcc.h: Only export symbols for functions
24230 that libgcc provides.
24231
24232 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
24233
24234 MIPS support.
24235
24236 * bus/bonito.c: New file.
24237 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
24238 GRUB_PCI_NUM_DEVICES.
24239 * term/i386/pc/serial.c: Move to ...
24240 * term/serial.c: ... here. All users updated.
24241 * util/i386/pc/grub-mkimage.c: Move to ...
24242 * util/grub-mkrawimage.c: ... here. All users updated.
24243 * term/i386/pc/at_keyboard.c: Move to ...
24244 * term/at_keyboard.c: ... here. All users updated.
24245 * conf/mips-qemu-mips.rmk: New file.
24246 * conf/mips-yeeloong.rmk: Likewise.
24247 * conf/mips.rmk: Likewise.
24248 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
24249 mipsel-qemu-mips.
24250 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
24251 to port addresses.
24252 (grub_ata_pciinit): Support CS5536.
24253 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
24254 * font/font_cmd.c (loadfont_command): Open file before passing it to
24255 grub_font_load.
24256 (pseudo_file_read): New function.
24257 (pseudo_file_close): Likewise.
24258 (pseudo_fs): New structure.
24259 (load_font_module): New function.
24260 (GRUB_MOD_INIT(font_manager)): Load embedded font.
24261 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
24262 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
24263 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
24264 * include/grub/i386/at_keyboard.h: Split into ...
24265 * include/grub/at_keyboard.h: ... this ...
24266 * include/grub/i386/at_keyboard.h: ... and this.
24267 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
24268 New prototype.
24269 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
24270 updated.
24271 (grub_elf64_size): Likewise.
24272 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
24273 filename.
24274 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
24275 * include/grub/i386/coreboot/serial.h: Rewritten.
24276 * include/grub/i386/ieee1275/serial.h: Include
24277 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
24278 * include/grub/i386/pc/serial.h: Moved from here ...
24279 * include/grub/serial.h: ... to here. All users updated.
24280 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
24281 (GRUB_PCI_NUM_BUS): Likewise.
24282 (GRUB_PCI_NUM_DEVICES): Likewise.
24283 (grub_pci_device_map_range): Add missing volatile keyword.
24284 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
24285 * include/grub/mips/at_keyboard.h: New file.
24286 * include/grub/mips/cache.h: Likewise.
24287 * include/grub/mips/io.h: Likewise.
24288 * include/grub/mips/kernel.h: Likewise.
24289 * include/grub/mips/libgcc.h: Likewise.
24290 * include/grub/mips/pci.h: Likewise.
24291 * include/grub/mips/qemu-mips/boot.h: Likewise.
24292 * include/grub/mips/qemu-mips/kernel.h: Likewise.
24293 * include/grub/mips/qemu-mips/loader.h: Likewise.
24294 * include/grub/mips/qemu-mips/memory.h: Likewise.
24295 * include/grub/mips/qemu-mips/serial.h: Likewise.
24296 * include/grub/mips/qemu-mips/time.h: Likewise.
24297 * include/grub/mips/relocator.h: Likewise.
24298 * include/grub/mips/time.h: Likewise.
24299 * include/grub/mips/types.h: Likewise.
24300 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
24301 * include/grub/mips/yeeloong/boot.h: Likewise.
24302 * include/grub/mips/yeeloong/kernel.h: Likewise.
24303 * include/grub/mips/yeeloong/loader.h: Likewise.
24304 * include/grub/mips/yeeloong/memory.h: Likewise.
24305 * include/grub/mips/yeeloong/pci.h: Likewise.
24306 * include/grub/mips/yeeloong/serial.h: Likewise.
24307 * include/grub/mips/yeeloong/time.h: Likewise.
24308 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
24309 * kern/elf.c (grub_elf32_size): New parameter. All users
24310 updated.
24311 (grub_elf64_size): Likewise.
24312 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
24313 Load modules before saying "Welcome to GRUB!".
24314 Call grub_refresh after saying "Welcome to GRUB!".
24315 * kern/mips/cache.S: New file.
24316 * kern/mips/cache_flush.S: Likewise.
24317 * kern/mips/dl.c: Likewise.
24318 * kern/mips/init.c: Likewise.
24319 * kern/mips/qemu-mips/init.c: Likewise.
24320 * kern/mips/startup.S: Likewise.
24321 * kern/mips/yeeloong/init.c: Likewise.
24322 * kern/term.c (grub_putcode): Handle NULL terminal.
24323 (grub_getcharwidth): Likewise.
24324 (grub_getkey): Likewise.
24325 (grub_checkkey): Likewise.
24326 (grub_getkeystatus): Likewise.
24327 (grub_getxy): Likewise.
24328 (grub_getwh): Likewise.
24329 (grub_gotoxy): Likewise.
24330 (grub_cls): Likewise.
24331 (grub_setcolorstate): Likewise.
24332 (grub_setcolor): Likewise.
24333 (grub_getcolor): Likewise.
24334 (grub_refresh): Likewise.
24335 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
24336 (write_jump): Add hatch nop.
24337 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
24338 * lib/mips/setjmp.S: New file.
24339 * loader/mips/linux.c: Likewise.
24340 * term/i386/pc/at_keyboard.c: Move from here ...
24341 * term/at_keyboard.c: ... to here.
24342 * term/i386/pc/serial.c: Moved from here ...
24343 * term/serial.c: ... to here. All users updated.
24344 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
24345 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
24346 (serial_translate_key_sequence): Avoid deadlock.
24347 (grub_serial_getkey): Handle backspace.
24348 (grub_serial_putchar): Fix newline handling.
24349 * util/i386/pc/grub-mkimage.c: Move from here ...
24350 * util/grub-mkrawimage.c: ... to here. All users updated.
24351 (generate_image): New parameters 'font_path' and 'format'.
24352 Support embedding font.
24353 Use grub_host_to_target* instead of grub_cpu_to_le*.
24354 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
24355 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
24356 (options): New option "--font".
24357 (usage): Likewise.
24358 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
24359 (main): Handle "--font".
24360 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
24361 (grub_virtual_screen_setup): Set bg_color_display.
24362 (redraw_screen_rect): Use bg_color_display instead of incorrect
24363 bg_color.
24364 (grub_gfxterm_cls): Likewise.
24365 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
24366 Support embedding config file.
24367 (add_segments): Likewise.
24368 (options): New option "--config".
24369 (main): Handle "--config".
24370 * video/sm712.c: New file.
24371
24372 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24373
24374 Fix parallel builds.
24375
24376 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
24377 font.c depend on ascii.h).
24378
24379 2010-01-12 Carles Pina i Estany <carles@pina.cat>
24380
24381 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
24382
24383 2010-01-11 Carles Pina i Estany <carles@pina.cat>
24384
24385 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
24386 By default: disabled.
24387 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
24388 parameter.
24389
24390 2010-01-10 Carles Pina i Estany <carles@pina.cat>
24391
24392 * font/font.c: Update copyright years.
24393 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
24394
24395 2010-01-10 Carles Pina i Estany <carles@pina.cat>
24396
24397 * font/font.c: Include `ascii.h'.
24398 (ASCII_BITMAP_SIZE): New macro.
24399 (ascii_font_glyph): Define.
24400 (ascii_glyph_lookup): New function.
24401 (grub_font_get_string_width): Change comment. If glyph not found, use
24402 ascii_glyph_lookup.
24403 (grub_font_get_glyph_with_fallback): If glyph not available returns
24404 ascii_glyph_lookup.
24405 * util/grub-mkfont.c (file_formats): New enum.
24406 (options): Add `ascii-bitmaps' new option.
24407 (usage): Add `asii-bitmaps' new option.
24408 (write_font_ascii_bitmap): New function.
24409 (write_font): Rename to ...
24410 (write_font_p2): ... this. Remove print_glyphs call.
24411 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
24412 used. Call print_glyphs.
24413 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
24414
24415 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24416
24417 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
24418 (grub_bin2h_SOURCES): New variable.
24419 * util/bin2h.c: New file.
24420
24421 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24422
24423 * include/multiboot.h: Resynced with spec.
24424 * include/multiboot2.h: Likewise.
24425 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
24426 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
24427
24428 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24429
24430 * include/grub/term.h (grub_term_register_input,
24431 grub_term_register_output): Check return of terminal init()
24432 routines, and abort if errors are raised.
24433
24434 * commands/terminal.c: Update copyright year.
24435
24436 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24437
24438 * commands/terminal.c (grub_cmd_terminal_input)
24439 (grub_cmd_terminal_output): Check return of terminal init()
24440 routines, and abort if errors are raised.
24441
24442 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24443
24444 * include/grub/i386/bsd.h: Fix include pathes.
24445
24446 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24447
24448 Add missing *BSD copyright headers.
24449
24450 * include/grub/aout.h: Add BSD licence.
24451 * include/grub/i386/bsd.h: Parts under different licences moved to ...
24452 * include/grub/i386/freebsd_linker.h: ... here,
24453 * include/grub/i386/freebsd_reboot.h: ... here,
24454 * include/grub/i386/netbsd_bootinfo.h: ... here,
24455 * include/grub/i386/netbsd_reboot.h: ... here,
24456 * include/grub/i386/openbsd_bootarg.h: ... here,
24457 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
24458 licence to each file.
24459
24460 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24461
24462 * acinclude.m4: Remove `nop' assembly instruction; it's not
24463 implemented by all architectures.
24464
24465 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24466
24467 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
24468 ELILO. This is no longer necessary.
24469
24470 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
24471
24472 Added new tool, grub-scrit-check to verify grub.cfg syntax.
24473
24474 * util/grub-script-check.c: grub-script-check tool.
24475 * conf/common.rmk: Make rules for grub-script-check.
24476
24477 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24478
24479 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
24480 spotting it back in 2008. Shame on me for forgetting he did.
24481
24482 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
24483
24484 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24485
24486 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
24487 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
24488 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
24489 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
24490 (GRUB_VIDEO_TYPE_EFI): Rename to ...
24491 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
24492
24493 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
24494
24495 * include/grub/test.h: Add license header.
24496 * tests/example_functional_test.c: Likewise.
24497 * tests/example_unit_test.c: Likewise.
24498 * tests/lib/functional_test.c: Likewise.
24499 * tests/lib/test.c: Likewise.
24500 * tests/lib/unit_test.c: Likewise.
24501
24502 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
24503
24504 Use flag-based instead of hook-based video mode selection and "auto"
24505 keyword.
24506
24507 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
24508 (grub_video_set_mode): Changed prototype. All users updated.
24509 (grub_video_check_mode_flag): New inline function.
24510 * video/video.c (parse_modespec): New function.
24511 (grub_video_set_mode): Parse flags and keywords.
24512
24513 2010-01-17 Carles Pina i Estany <carles@pina.cat>
24514
24515 * util/misc.c (grub_util_info): Fix the order of the parameters in a
24516 fprintf call.
24517
24518 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
24519
24520 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
24521
24522 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24523
24524 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
24525 string.
24526 * util/grub-emu.c (usage): Likewise.
24527 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
24528 * util/i386/efi/grub-mkimage.c (usage): Likewise.
24529 * util/i386/pc/grub-mkimage.c (usage): Likewise.
24530 * util/i386/pc/grub-setup.c (usage): Likewise.
24531
24532 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24533
24534 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
24535 the message.
24536 (grub_util_info): Likewise.
24537 (grub_util_error): Likewise.
24538 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
24539 and/or new lines in `grub_util_warna', `grub_util_info',
24540 `grub_util_error' calls.
24541 * util/getroot.c: Likewise.
24542 * util/grub-editenv.c: Likewise.
24543 * util/grub-emu.c: Likewise.
24544 * util/grub-fstest.c: Likewise.
24545 * util/grub-mkdevicemap.c: Likewise.
24546 * util/grub-mkfont.c: Likewise.
24547 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24548 * util/grub-mkrelpath.c: Likewise.
24549 * util/grub-pe2elf.c: Likewise.
24550 * util/grub-probe.c: Likewise.
24551 * util/hostdisk.c: Likewise.
24552 * util/i386/efi/grub-mkimage.c: Likewise.
24553 * util/i386/pc/grub-mkimage.c: Likewise.
24554 * util/i386/pc/grub-setup.c: Likewise.
24555 * util/ieee1275/ofpath.c: Likewise.
24556 * util/mkisofs/eltorito.c: Likewise.
24557 * util/mkisofs/rock.c: Likewise.
24558 * util/mkisofs/write.c: Likewise.
24559 * util/raid.c: Likewise.
24560 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
24561 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24562
24563 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24564
24565 Enable multiboot on non-pc.
24566
24567 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
24568 multiboot.mod and multiboot2.mod to ...
24569 * conf/i386.rmk (pkglib_MODULES): ... here.
24570 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
24571 Moved to ...
24572 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
24573 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
24574 Moved to ...
24575 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
24576 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
24577 Moved to ...
24578 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
24579 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
24580 Moved to ...
24581 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
24582 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
24583 relocator.mod.
24584 (ata_mod_SOURCES): Removed.
24585 (ata_mod_CFLAGS): Likewise.
24586 (ata_mod_LDFLAGS): Likewise.
24587 (relocator_mod_SOURCES): Removed.
24588 (relocator_mod_CFLAGS): Likewise.
24589 (relocator_mod_ASFLAGS): Likewise.
24590 (relocator_mod_LDFLAGS): Likewise.
24591 Include i386.mk.
24592 * include/grub/x86_64/multiboot.h: New file.
24593 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
24594 Terminate EFI.
24595
24596 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24597
24598 Video multiboot support.
24599
24600 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
24601 New prototype.
24602 * include/multiboot.h: Resynced with multiboot specification.
24603 * include/multiboot2.h: Likewise.
24604 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
24605 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
24606 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
24607 (HAS_VGA_TEXT): Likewise.
24608 (accepts_video): New variable.
24609 (grub_multiboot_set_accepts_video): New function.
24610 (grub_multiboot_get_mbi_size): Account for video structures.
24611 (set_video_mode): New function.
24612 (retrieve_video_parameters): Likewise.
24613 (grub_multiboot_make_mbi): Fill video fields.
24614
24615 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24616
24617 Video driver ids.
24618
24619 * include/grub/video.h (grub_video_driver_id): New type.
24620 (grub_video_adapter): New member 'id'. All users updated.
24621 (grub_video_get_driver_id): New proto.
24622 * video/video.c (grub_video_get_driver_id): New function.
24623
24624 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24625
24626 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
24627 `var=val'.
24628
24629 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24630
24631 * normal/cmdline.c (print_completion): Gettextizze.
24632
24633 2001-01-14 Carles Pina i Estany <carles@pina.cat>
24634
24635 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
24636
24637 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24638
24639 * gettext/gettext.c (grub_gettext_translate): Push and pop
24640 grub_errno.
24641 (grub_gettext_delete_list): Change comment style.
24642 * kern/err.c (grub_error): Gettextizze.
24643 (grub_fatal): Gettextizze.
24644
24645 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24646
24647 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
24648 (grub_linux16_real_boot): ... this.
24649 * kern/i386/loader.S: Likewise.
24650 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
24651 (grub_linux16_boot): New function. Switches to text mode and calls
24652 grub_linux16_real_boot().
24653
24654 * loader/i386/bsd.c: Include `<grub/video.h>'.
24655 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
24656 text mode before calling grub_unix_real_boot().
24657
24658 * loader/i386/multiboot.c: Include `<grub/video.h>'.
24659 (grub_multiboot_boot): Switch to text mode before calling
24660 grub_relocator32_boot().
24661
24662 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
24663 (grub_chainloader_boot): Switch to text mode before calling
24664 grub_chainloader_real_boot().
24665
24666 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24667 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24668
24669 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
24670 non-empty value.
24671
24672 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24673 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24674
24675 * util/grub.d/00_header.in: Define a "savedefault" function for use
24676 in menu entries.
24677 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
24678
24679 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24680 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24681
24682 * util/grub-mkconfig_lib.in (save_default_entry): Only set
24683 saved_entry if boot_once is unset.
24684 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
24685 previous saved entry (i.e. grub-reboot).
24686
24687 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24688
24689 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
24690
24691 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24692
24693 * util/grub.d/00_header.in: Use `set var=val' rather than plain
24694 `var=val'.
24695 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
24696
24697 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24698
24699 * util/grub-reboot.in: Fix --version output.
24700 * util/grub-set-default.in: Likewise.
24701
24702 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24703
24704 * util/grub.d/00_header.in: Silently ignore zero-sized environment
24705 blocks.
24706
24707 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24708
24709 * util/grub.d/00_header.in: Quote the value assigned to `default',
24710 in case it contains spaces.
24711
24712 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24713
24714 * util/grub.d/30_os-prober.in: Fix merge error that moved a
24715 `save_default_entry' call from the macosx case to the linux case.
24716
24717 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
24718 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
24719
24720 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
24721 in `chosen' environment variable.
24722 * normal/menu_text.c (get_entry_number): Check if the variable
24723 matches the title of a menu entry.
24724 (run_menu): Pass menu to get_entry_number.
24725
24726 * util/grub-reboot.in: New file.
24727 * util/grub-set-default.in: New file.
24728 * conf/common.rmk (grub-reboot): New utility.
24729 (grub-set-default): New utility.
24730
24731 * util/grub-mkconfig_lib.in (save_default_entry): New function.
24732 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
24733 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
24734 move it to `saved_entry' for the next boot. Load environment on
24735 initialisation.
24736 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
24737 * util/grub.d/10_hurd.in: Likewise.
24738 * util/grub.d/10_linux.in (linux_entry): Likewise.
24739 * util/grub.d/10_windows.in: Likewise.
24740 * util/grub.d/30_os-prober.in: Likewise.
24741
24742 * util/grub-install.in: Create environment block.
24743 * util/i386/efi/grub-install.in: Likewise.
24744 * util/ieee1275/grub-install.in: Likewise.
24745 * util/sparc64/ieee1275/grub-install.in: Likewise.
24746
24747 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
24748
24749 Unit testing framework for GRUB.
24750
24751 * Makefile.in: Test framework build rules for 'make check'.
24752 * conf/tests.rmk: Build rules for individual tests and framework.
24753
24754 * include/grub/test.h: Header file for whitebox tests.
24755 * tests/lib/functional_test.c: Framework support for whitebox
24756 functional tests.
24757 * tests/lib/test.c: Common whitebox testing code for unit and
24758 functional tests.
24759 * tests/lib/unit_test.c: Framework support for whitebox unit
24760 tests.
24761
24762 * tests/util/grub-shell-tester.in: Support utility for grub-script
24763 tests.
24764 * tests/util/grub-shell.in: Utility to execute grub-script
24765 commands in a Qemu instance.
24766
24767 * tests/example_functional_test.c: Example whitebox functional
24768 test.
24769 * tests/example_grub_script_test.in: Example grub-script test.
24770 * tests/example_scripted_test.in: Example scripted test.
24771 * tests/example_unit_test.c: Example whitebox unit test.
24772
24773 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
24774
24775 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
24776 Add loader/i386/multiboot_mbi.c.
24777 (multiboot2_mod_SOURCES): Likewise.
24778 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
24779 (multiboot2_mod_SOURCES): Likewise.
24780 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
24781 (grub_multiboot_make_mbi): Likewise.
24782 (grub_multiboot_free_mbi): Likewise.
24783 (grub_multiboot_init_mbi): Likewise.
24784 (grub_multiboot_add_module): Likewise.
24785 (grub_multiboot_set_bootdev): Likewise.
24786 * loader/i386/multiboot.c (mbi): Removed.
24787 (mbi_dest): Likewise.
24788 (alloc_mbi): New variable.
24789 (grub_multiboot_payload_size): Removed. All users updated.
24790 (grub_multiboot_pure_size): New variable.
24791 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
24792 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
24793 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
24794 (grub_fill_multiboot_mmap): Likewise.
24795 (grub_multiboot_get_bootdev): Likewise.
24796 (grub_multiboot): Use multiboot_mbi functions.
24797 * loader/i386/multiboot_mbi.c: New file.
24798
24799 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24800
24801 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
24802 it would result in module crash.
24803
24804 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24805
24806 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
24807 (grub_ofconsole_getwh): Split to ...
24808 (grub_ofconsole_getwh): ... this.
24809 (grub_ofconsole_dimensions): ...and this.
24810 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
24811
24812 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
24813
24814 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
24815
24816 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24817
24818 * loader/i386/pc/multiboot2.c: Removed stalled file.
24819
24820 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24821
24822 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
24823 Reported by: Grégoire Sutre
24824
24825 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
24826
24827 * util/misc.c (canonicalize_file_name): New function.
24828 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
24829 instead of realpath().
24830
24831 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
24832
24833 * util/grub-install.in (usage): Clarify meaning of --root-directory,
24834 and make it clearer that it's optional. Based on confusion
24835 witnessed on IRC.
24836
24837 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24838
24839 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
24840 in premature implicit newline.
24841
24842 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24843
24844 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
24845 which resulted in garbled command line at the end of screen.
24846
24847 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24848
24849 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
24850 initialization with similar approach as with other Linux loaders.
24851
24852 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24853
24854 Fix i386-ieee1275 build.
24855
24856 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
24857 and grub_term_height() for video_{width,height} initialization.
24858
24859 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24860
24861 Fix grub-emu build.
24862
24863 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
24864
24865 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24866 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24867
24868 Support for multiple terminals.
24869
24870 * Makefile.in (pkglib_DATA): terminal.lst.
24871 (terminal.lst): New target.
24872 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
24873 (GRUB_MOD_INIT(handler)): Likewise.
24874 (GRUB_MOD_FINI(handler)): Likewise.
24875 * commands/help.c (grub_cmd_help): Handle multiple terminals.
24876 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
24877 * commands/sleep.c (do_print): Use grub_term_restore_pos.
24878 (grub_cmd_sleep): Use grub_term_save_pos.
24879 * commands/terminal.c: New file.
24880 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
24881 commands/terminal.c and lib/charset.c.
24882 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
24883 (pkglib_MODULES): Add terminal.mod.
24884 (terminal_mod_SOURCES): New variable.
24885 (terminal_mod_CFLAGS): Likewise.
24886 (terminal_mod_LDFLAGS): Likewise.
24887 * genhandlerlist.sh: Don't handle terminals.
24888 * genmk.rb: Generate terminal-*.lst.
24889 * genterminallist.sh: New file.
24890 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
24891 (grub_is_valid_utf8): Likewise.
24892 (grub_utf8_to_ucs4_alloc): Likewise.
24893 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
24894 (grub_menu_register_viewer): Changed argument.
24895 (grub_menu_try_text): New proto.
24896 (grub_gfxmenu_try_hook): New declaration.
24897 * include/grub/normal.h (grub_normal_exit_level): New declaration.
24898 (grub_menu_init_page): Additional argument term.
24899 (grub_normal_init_page): Likewise.
24900 (grub_cmdline_get): Arguments simplified.
24901 (grub_utf8_to_ucs4_alloc): Removed.
24902 (grub_print_ucs4): Additional argument term.
24903 (grub_getstringwidth): Likewise.
24904 (grub_print_message_indented): Likewise.
24905 (grub_menu_text_register_instances): New proto.
24906 (grub_show_menu): Likewise.
24907 (read_terminal_list): Likewise.
24908 (grub_set_more): Likewise.
24909 * include/grub/parser.h: Include handler.h.
24910 * include/grub/reader.h: Rewritten.
24911 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
24912 (GRUB_TERM_WIDTH): Changed to function.
24913 (GRUB_TERM_HEIGHT): Likewise.
24914 (GRUB_TERM_BORDER_WIDTH): Likewise.
24915 (GRUB_TERM_BORDER_HEIGHT): Likewise.
24916 (GRUB_TERM_NUM_ENTRIES): Likewise.
24917 (GRUB_TERM_ENTRY_WIDTH): Likewise.
24918 (GRUB_TERM_CURSOR_X): Likewise.
24919 (grub_term_input_class): Likewise.
24920 (grub_term_output_class): Likewise.
24921 (grub_term_outputs_disabled): New declaration.
24922 (grub_term_inputs_disabled): Likewise.
24923 (grub_term_outputs): Likewise.
24924 (grub_term_inputs): Likewise.
24925 (grub_term_register_input): Rewritten.
24926 (grub_term_register_output): Likewise.
24927 (grub_term_unregister_input): Likewise.
24928 (grub_term_unregister_output): Likewise.
24929 (FOR_ACTIVE_TERM_INPUTS): New macro.
24930 (FOR_DISABLED_TERM_INPUTS): Likewise.
24931 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24932 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24933 * include/grub/terminfo.h: Add oterm argument to all protypes.
24934 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
24935 Use grub_rescue_run.
24936 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
24937 All users updated.
24938 * kern/reader.c: Removed. All users updated.
24939 * kern/rescue_reader.c (grub_rescue_init): Removed.
24940 (grub_rescue_reader): Likewise.
24941 (grub_register_rescue_reader): Likewise.
24942 (grub_rescue_run): New function based on kern/reader.c.
24943 * kern/term.c: Adapted for multiterm.
24944 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
24945 (grub_is_valid_utf8): Likewise.
24946 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
24947 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
24948 right terminal.
24949 * loader/i386/linux.c (grub_linux_boot): Likewise.
24950 * normal/auth.c (grub_username_get): New function.
24951 (grub_auth_check_authentication): Use grub_username_get.
24952 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
24953 * normal/color.c: Adapt for multiterm.
24954 * normal/main.c (read_config_file): Don't use grub_reader_loop.
24955 (grub_normal_init_page): Additional argument term.
24956 (read_lists): Call read_terminal_lists.
24957 (grub_enter_normal_mode): Call grub_cmdline_run.
24958 Handle grub_normal_exit_level.
24959 (grub_cmd_normal): Make reentrant.
24960 (grub_cmd_normal_exit): New function.
24961 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
24962 * normal/menu.c: Adapt for multiterm.
24963 * normal/menu_entry.c: Likewise.
24964 * normal/menu_text.c: Likewise.
24965 * normal/menu_viewer.c: Removed. All users updated.
24966 * normal/term.c: New file.
24967 * util/console.c: Change order of includes to workaround a bug in
24968 ncurses headers.
24969 * term/terminfo.c: New argument oterm on all exported functions.
24970 All users updated.
24971 * util/grub-editenv.c (grub_term_input_class): Removed.
24972 (grub_term_output_class): Likewise.
24973
24974 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24975
24976 Make loader output a bit more user-friendly.
24977
24978 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
24979 is being loaded. Likewise for the Hurd.
24980
24981 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
24982 that kernel of FreeBSD ${version} is being loaded.
24983
24984 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
24985 grub_dprintf().
24986 (grub_cmd_initrd): Likewise.
24987 * util/grub.d/10_linux.in (linux_entry): Print message indicating
24988 that Linux ${version} is being loaded. Likewise for initrd.
24989
24990 2010-01-09 Carles Pina i Estany <carles@pina.cat>
24991
24992 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
24993
24994 2010-01-08 Carles Pina i Estany <carles@pina.cat>
24995
24996 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
24997 (GRUB_MOD_INIT): Gettextizze.
24998 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
24999 (GRUB_MOD_INIT): Gettextizze.
25000 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
25001 (grub_cmd_linux): Capitalise Linux.
25002 (GRUB_MOD_INIT): Gettextizze.
25003 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
25004 (grub_cmd_linux): Capitalise Linux.
25005 (GRUB_MOD_INIT): Gettextizze.
25006 * loader/i386/linux.c: Include `<grub/i18n.h>'.
25007 (grub_cmd_linux): Capitalise Linux.
25008 (GRUB_MOD_INIT): Gettextizze.
25009 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
25010 (GRUB_MOD_INIT): Gettextizze.
25011 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
25012 (grub_cmd_linux): Capitalise Linux.
25013 (GRUB_MOD_INIT): Gettextizze.
25014 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
25015 (grub_cpu_xnu_init): Gettextizze.
25016 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
25017 (GRUB_MOD_INIT): Gettextizze.
25018 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
25019 (GRUB_MOD_INIT): Gettextizze.
25020 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
25021 (grub_linux_load64): Capitalise Linux.
25022 (GRUB_MOD_INIT): Gettextizze.
25023 * loader/xnu.c: Include `<grub/i18n.h>'.
25024 (GRUB_MOD_INIT): Gettextizze.
25025 * po/POTFILES: Add `loader/efi/appleloader.c',
25026 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
25027 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
25028 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
25029 `loader/i386/xnu.c', `loader/multiboot_loader.c',
25030 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
25031 and `loader/xnu.c'.
25032
25033 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
25034
25035 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
25036
25037 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
25038
25039 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
25040 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
25041 * util/mkisofs/mkisofs.c (main): Readjust --version output.
25042
25043 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25044
25045 Reset Multiboot 2 support. New loader implements the draft in
25046 /branches/multiboot2 and shares as much code as possible with the
25047 production Multiboot 1 implementation.
25048
25049 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
25050 * loader/multiboot2.c: Likewise.
25051 * loader/i386/multiboot_helper.S: Likewise.
25052 * include/multiboot2.h: Replace with latest version from the draft
25053 in /branches/multiboot2.
25054
25055 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
25056 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
25057 and `loader/multiboot2.c'.
25058 (pkglib_MODULES): Add `multiboot2.mod'.
25059 (multiboot2_mod_SOURCES): New variable.
25060 (multiboot2_mod_LDFLAGS): Likewise.
25061 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
25062
25063 * conf/i386-pc.rmk: Likewise.
25064
25065 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
25066 (multiboot_mod_SOURCES): Remove variable.
25067 (multiboot_mod_LDFLAGS): Likewise.
25068 (multiboot_mod_CFLAGS): Likewise.
25069
25070 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
25071 `<multiboot2.h>' instead of `<multiboot.h>'.
25072 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
25073 (MULTIBOOT_HEADER_MAGIC): New macros.
25074
25075 * loader/multiboot_loader.c (module_version_status): Remove variable.
25076 (find_multi_boot2_header): Remove function.
25077 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
25078 logic. Always check for the Multiboot version we're compiling for.
25079 (grub_cmd_module_loader): Likewise.
25080 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
25081 command instead of `multiboot'.
25082
25083 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25084
25085 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
25086 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
25087 all users.
25088
25089 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25090 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25091
25092 Fix breakage introduced with previous commit.
25093
25094 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
25095 commands.
25096 * normal/handler.c (read_handler_list): Revert part of previous commit
25097 affecting this file.
25098 * normal/main.c (read_lists): Move read_handler_list() call back to ...
25099 (grub_normal_execute): ... here.
25100
25101 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25102
25103 Merge prefix-redefinition-fix branch.
25104
25105 * normal/autofs.c (read_fs_list): Make function capable of being
25106 run multiple times, gracefuly replacing the previous data
25107 structures.
25108 * normal/dyncmd.c (read_command_list): Likewise.
25109 * normal/handler.c (read_handler_list): Likewise.
25110 * normal/main.c (read_lists): New function. Calls all the
25111 list reading functions.
25112 (grub_normal_execute): Use read_lists() instead of calling all
25113 list reading functions explicitly. Register read_lists() as a
25114 variable hook attached to ${prefix}.
25115
25116 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25117
25118 Merge crypto branch.
25119
25120 * Makefile.in (pkglib_DATA): Add crypto.lst.
25121 (crypto.lst): New target.
25122 * commands/hashsum.c: New file.
25123 * commands/password.c (check_password): Use grub_crypto_memcmp.
25124 * commands/password_pbkdf2.c: New file.
25125 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
25126 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
25127 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
25128 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
25129 -I$(srcdir)/lib/libgcrypt_wrap.
25130 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
25131 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
25132 password_pbkdf2.mod.
25133 (crypto_mod_SOURCES): New variable.
25134 (crypto_mod_CFLAGS): Likewise.
25135 (crypto_mod_LDFLAGS): Likewise.
25136 (hashsum_mod_SOURCES): New variable.
25137 (hashsum_mod_CFLAGS): Likewise.
25138 (hashsum_mod_LDFLAGS): Likewise.
25139 (pbkdf2_mod_SOURCES): New variable.
25140 (pbkdf2_mod_CFLAGS): Likewise.
25141 (pbkdf2_mod_LDFLAGS): Likewise.
25142 (password_pbkdf2_mod_SOURCES): New variable.
25143 (password_pbkdf2_mod_CFLAGS): Likewise.
25144 (password_pbkdf2_mod_LDFLAGS): Likewise.
25145 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
25146 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
25147 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
25148 Include conf/gcry.rmk.
25149 * include/grub/auth.h: Rewritten.
25150 * include/grub/crypto.h: New file.
25151 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
25152 * include/grub/normal.h (read_crypto_list): New prototype.
25153 * lib/crypto.c: New file.
25154 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
25155 * lib/pbkdf2.c: Likewise.
25156 * normal/auth.c (grub_auth_strcmp): Removed.
25157 (grub_iswordseparator): Likewise.
25158 (grub_auth_strword): Likewise.
25159 (is_authenticated): Use grub_strword.
25160 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
25161 and grub_strword. Pass entered password to authentication callback.
25162 * normal/crypto.c: New file.
25163 * normal/main.c: Call read_crypto_list.
25164 * util/grub-mkpasswd-pbkdf2.c: New file.
25165 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
25166
25167 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
25168
25169 Fix descent and ascent calculation.
25170
25171 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
25172 (options): New option "asce".
25173 (usage): Likewise.
25174 (add_char): Ignore invalid glyphs for descent calculation.
25175 Calculate ascent from actual content.
25176 (print_glyphs): Use 'asce'.
25177 (write_font): Likewise. Allow ascent override.
25178 (main): Handle "asce" option.
25179
25180 2010-01-06 Carles Pina i Estany <carles@pina.cat>
25181
25182 * kern/err.c: Include `<grub/i18n.h>'.
25183 (grub_print_error): Add full stop. Gettextizze.
25184 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
25185 (grub_bsd_load_elf): Capitalise ELF.
25186 (grub_cmd_freebsd_loadenv): Add `s' in error string.
25187 (grub_cmd_freebsd_module): Likewise.
25188 (grub_cmd_freebsd_module_elf): Likewise.
25189 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
25190
25191 2010-01-06 Carles Pina i Estany <carles@pina.cat>
25192
25193 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
25194 * commands/search_file.c (HELP_MESSAGE): New macro.
25195 * commands/search_label.c (HELP_MESSAGE): Likewise.
25196 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
25197 * po/POTFILES: Add `commands/search_file.c',
25198 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
25199 `commands/search.c'.
25200
25201 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25202
25203 * config.rpath: Update from Gnulib.
25204
25205 2010-01-05 Yves Blusseau <blusseau@zetam.org>
25206
25207 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
25208
25209 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
25210
25211 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
25212
25213 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
25214
25215 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
25216 arguments to fread so that we get a return value in bytes, rather
25217 than something that will normally be rounded down to 0.
25218 Adjust error handling to avoid producing garbage when size_t is not
25219 the same size as long long.
25220
25221 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
25222
25223 * util/mkisofs/write.c (padblock_write): Check return value of
25224 fread.
25225
25226 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25227
25228 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
25229 floppy images now.
25230
25231 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
25232
25233 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25234
25235 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
25236 instead of manual alignment.
25237 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
25238 verbose). Avoid attempts to read past end of the device
25239 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
25240 but GRUB_DISK_CACHE_SIZE may exceed that).
25241
25242 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25243
25244 * commands/crc.c (grub_cmd_crc): Abort on read errors.
25245 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
25246 it to upper layer.
25247
25248 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25249
25250 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
25251 New constant.
25252 (grub_efi_piwg_device_path): New structure
25253 (grub_efi_piwg_device_path_t): New type.
25254 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
25255 (devpath_1): Transform to a structure. All users updated.
25256 (devpath_2): Likewise.
25257 (devpath_3): Likewise.
25258 (devpath_4): Likewise.
25259 (devpath_5): Likewise.
25260
25261 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25262
25263 * loader/efi/appleloader.c: Restored. Update all users.
25264
25265 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25266
25267 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
25268
25269 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
25270 (struct boot_blocklist): Move from here ...
25271 * include/grub/i386/pc/boot.h [ASM_FILE]
25272 (struct grub_boot_blocklist): ... to here. Update all users.
25273 (setup): Only initialize `start' member of `first_block'
25274 structure. Add assert() calls to verify the other members.
25275
25276 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
25277 (generate_image): Fix broken blocklist length initialization.
25278 Add assert() call to verify blocklist `segment' field.
25279
25280 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25281
25282 * loader/efi/appleloader.c: Remove. Update all users.
25283
25284 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25285
25286 * boot/i386/pc/boot.S: Update copyright year.
25287 * boot/i386/pc/cdboot.S: Likewise.
25288 * boot/i386/pc/diskboot.S: Likewise.
25289 * boot/i386/pc/lnxboot.S: Likewise.
25290 * boot/i386/pc/pxeboot.S: Likewise.
25291 * bus/pci.c: Likewise.
25292 * commands/cmp.c: Likewise.
25293 * commands/help.c: Likewise.
25294 * commands/hexdump.c: Likewise.
25295 * commands/i386/pc/halt.c: Likewise.
25296 * commands/i386/pc/play.c: Likewise.
25297 * commands/i386/pc/vbeinfo.c: Likewise.
25298 * commands/ls.c: Likewise.
25299 * commands/test.c: Likewise.
25300 * disk/dmraid_nvidia.c: Likewise.
25301 * disk/i386/pc/biosdisk.c: Likewise.
25302 * disk/ieee1275/nand.c: Likewise.
25303 * disk/ieee1275/ofdisk.c: Likewise.
25304 * disk/lvm.c: Likewise.
25305 * disk/raid.c: Likewise.
25306 * disk/raid6_recover.c: Likewise.
25307 * disk/scsi.c: Likewise.
25308 * fs/affs.c: Likewise.
25309 * fs/cpio.c: Likewise.
25310 * fs/ext2.c: Likewise.
25311 * fs/hfs.c: Likewise.
25312 * fs/iso9660.c: Likewise.
25313 * fs/ntfs.c: Likewise.
25314 * fs/sfs.c: Likewise.
25315 * fs/udf.c: Likewise.
25316 * fs/ufs.c: Likewise.
25317 * fs/xfs.c: Likewise.
25318 * gencmdlist.sh: Likewise.
25319 * genmk.rb: Likewise.
25320 * include/grub/disk.h: Likewise.
25321 * include/grub/efi/api.h: Likewise.
25322 * include/grub/efi/efi.h: Likewise.
25323 * include/grub/efi/pe32.h: Likewise.
25324 * include/grub/elf.h: Likewise.
25325 * include/grub/fs.h: Likewise.
25326 * include/grub/i386/at_keyboard.h: Likewise.
25327 * include/grub/i386/pc/memory.h: Likewise.
25328 * include/grub/i386/pc/vbe.h: Likewise.
25329 * include/grub/i386/pci.h: Likewise.
25330 * include/grub/i386/tsc.h: Likewise.
25331 * include/grub/ieee1275/ieee1275.h: Likewise.
25332 * include/grub/ntfs.h: Likewise.
25333 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
25334 * include/grub/sparc64/libgcc.h: Likewise.
25335 * include/grub/symbol.h: Likewise.
25336 * include/grub/types.h: Likewise.
25337 * include/multiboot2.h: Likewise.
25338 * io/gzio.c: Likewise.
25339 * kern/device.c: Likewise.
25340 * kern/disk.c: Likewise.
25341 * kern/efi/efi.c: Likewise.
25342 * kern/efi/mm.c: Likewise.
25343 * kern/elf.c: Likewise.
25344 * kern/file.c: Likewise.
25345 * kern/i386/dl.c: Likewise.
25346 * kern/i386/pc/init.c: Likewise.
25347 * kern/i386/pc/startup.S: Likewise.
25348 * kern/ieee1275/ieee1275.c: Likewise.
25349 * kern/ieee1275/init.c: Likewise.
25350 * kern/main.c: Likewise.
25351 * kern/mm.c: Likewise.
25352 * kern/powerpc/dl.c: Likewise.
25353 * kern/sparc64/dl.c: Likewise.
25354 * kern/x86_64/dl.c: Likewise.
25355 * lib/hexdump.c: Likewise.
25356 * loader/efi/appleloader.c: Likewise.
25357 * loader/i386/ieee1275/linux.c: Likewise.
25358 * loader/i386/pc/chainloader.c: Likewise.
25359 * loader/i386/pc/linux.c: Likewise.
25360 * loader/i386/pc/multiboot2.c: Likewise.
25361 * loader/ieee1275/multiboot2.c: Likewise.
25362 * loader/multiboot2.c: Likewise.
25363 * loader/multiboot_loader.c: Likewise.
25364 * loader/powerpc/ieee1275/linux.c: Likewise.
25365 * normal/completion.c: Likewise.
25366 * normal/menu_entry.c: Likewise.
25367 * partmap/apple.c: Likewise.
25368 * util/grub.d/10_hurd.in: Likewise.
25369 * util/hostfs.c: Likewise.
25370 * video/readers/png.c: Likewise.
25371
25372 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
25373
25374 * include/grub/misc.h (GNUC_PREREQ): New macro.
25375 (ATTRIBUTE_ERROR): New macro.
25376 * include/grub/list.h (grub_bad_type_cast_real): Use
25377 ATTRIBUTE_ERROR.
25378
25379 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25380
25381 * normal/menu_text.c (print_message): Change messages.
25382
25383 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25384
25385 * normal/menu_entry.c (store_completion): Gettextizze.
25386
25387 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25388
25389 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
25390
25391 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25392
25393 * po/POTFILES: Sort correctly.
25394
25395 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25396
25397 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
25398 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
25399 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
25400 full stop.
25401 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
25402 summary. Gettextizze the strings.
25403 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
25404 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
25405 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
25406 full stop.
25407 (GRUB_MOD_INIT): Remove command name from summary.
25408 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
25409 summary.
25410 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
25411 * term/i386/pc/serial.c (options): Add full stops.
25412 (GRUB_MOD_INIT): Remove command name from the summary.
25413
25414 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25415
25416 * commands/acpi.c: Gettextizze help strings and/or options. Include
25417 `grub/i18n.h' if needed.
25418 * commands/blocklist.c: Likewise.
25419 * commands/boot.c: Likewise.
25420 * commands/cat.c: Likewise.
25421 * commands/cmp.c: Likewise.
25422 * commands/configfile.c: Likewise.
25423 * commands/crc.c: Likewise.
25424 * commands/date.c: Likewise.
25425 * commands/echo.c: Likewise.
25426 * commands/efi/fixvideo.c: Likewise.
25427 * commands/efi/loadbios.c: Likewise.
25428 * commands/gptsync.c: Likewise.
25429 * commands/halt.c: Likewise.
25430 * commands/handler.c: Likewise.
25431 * commands/hdparm.c: Likewise.
25432 * commands/hexdump.c: Likewise.
25433 * commands/i386/cpuid.c: Likewise.
25434 * commands/i386/pc/drivemap.c: Likewise.
25435 * commands/i386/pc/halt.c: Likewise.
25436 * commands/i386/pc/pxecmd.c: Likewise.
25437 * commands/i386/pc/vbeinfo.c: Likewise.
25438 * commands/i386/pc/vbetest.c: Likewise.
25439 * commands/ieee1275/suspend.c: Likewise.
25440 * commands/keystatus.c: Likewise.
25441 * commands/loadenv.c: Likewise.
25442 * commands/ls.c: Likewise.
25443 * commands/lsmmap.c: Likewise.
25444 * commands/lspci.c: Likewise.
25445 * commands/memrw.c: Likewise.
25446 * commands/minicmd.c: Likewise.
25447 * commands/parttool.c: Likewise.
25448 * commands/password.c: Likewise.
25449 * commands/probe.c: Likewise.
25450 * commands/read.c: Likewise.
25451 * commands/reboot.c: Likewise.
25452 * commands/search.c: Likewise.
25453 * commands/sleep.c: Likewise.
25454 * commands/test.c: Likewise.
25455 * commands/true.c: Likewise.
25456 * commands/usbtest.c: Likewise.
25457 * commands/videotest.c: Likewise.
25458 * commands/xnu_uuid.c: Likewise.
25459 * disk/loopback.c: Likewise.
25460 * hello/hello.c: Likewise.
25461 * loader/i386/bsd.c: Likewise.
25462 * term/i386/pc/serial.c: Likewise.
25463 * po/POTFILES: Add new files.
25464
25465 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
25466
25467 * term/i386/pc/at_keyboard.c
25468 (keyboard_controller_wait_untill_ready): Rename to ...
25469 (keyboard_controller_wait_until_ready): ... this. Update all users.
25470
25471 2010-01-01 Carles Pina i Estany <carles@pina.cat>
25472
25473 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
25474 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
25475 string using string width.
25476 * normal/menu_text.c (grub_print_message_indented): Use
25477 grub_print_spaces and not print_spaces.
25478 (print_timeout): Likewise.
25479 (print_spaces): Move to...
25480 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
25481
25482 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
25483
25484 Import from Gnulib.
25485
25486 * gnulib/getdelim.c: New file.
25487 * gnulib/getline.c: Likewise.
25488
25489 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
25490
25491 * include/grub/list.h (grub_assert_fail): Removed.
25492 (grub_bad_type_cast_real): New function.
25493 (grub_bad_type_cast): New macro.
25494 (GRUB_AS_LIST): Use grub_bad_type_cast.
25495 (GRUB_AS_LIST_P): Likewise.
25496 (GRUB_AS_NAMED_LIST): Likewise.
25497 (GRUB_AS_NAMED_LIST_P): Likewise.
25498 (GRUB_AS_PRIO_LIST): Likewise.
25499 (GRUB_AS_PRIO_LIST_P): Likewise.
25500 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
25501
25502 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
25503
25504 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
25505 Fix syntax error.
25506
25507 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
25508
25509 * configure.ac: Check for TARGET_CFLAGS initialization before we
25510 initialize it ourselves (sigh).
25511 Move a few modifications to TARGET_CFLAGS to be unconditional
25512 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
25513 eh_frame)
25514
25515 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
25516 * term/i386/pc/at_keyboard.c
25517 (keyboard_controller_wait_untill_ready): Likewise.
25518 (keyboard_controller_led): Rename `led_status' paramter to avoid
25519 name conflict.
25520
25521 2009-12-28 Carles Pina i Estany <carles@pina.cat>
25522
25523 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
25524 quotes.
25525
25526 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25527
25528 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
25529
25530 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25531
25532 * normal/menu_text.c (grub_print_message_indented): Prevent
25533 past-the-end-of-array dereference.
25534
25535 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25536
25537 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
25538 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
25539
25540 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25541
25542 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
25543 * normal/main.c (grub_normal_read_line): Remove a space from the
25544 default prompt.
25545
25546 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25547
25548 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
25549 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25550 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25551 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25552 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25553 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25554 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25555
25556 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25557
25558 * video/readers/jpeg.c (cmd): Declare.
25559 (grub_cmd_jpegtest): 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/png.c (cmd): Declare.
25564 (grub_cmd_pngtest): 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 * video/readers/tga.c (cmd): Declare.
25569 (grub_cmd_tgatest): Use `grub_command_t' type.
25570 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25571 Assign to `cmd'.
25572 (GRUB_MOD_FINI): Use `cmd' to unregister.
25573
25574 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25575
25576 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
25577 stops.
25578 * kern/corecmd.c (grub_register_core_commands): Likewise.
25579 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
25580 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25581 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
25582 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25583 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25584 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
25585 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25586 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
25587 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25588 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25589 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25590 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25591 * normal/handler.c (insert_handler): Likewise.
25592 * normal/main.c (GRUB_MOD_INIT): Likewise.
25593 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25594
25595 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25596
25597 * commands/help.c (grub_cmd_help): Print the command name before the
25598 summary.
25599 (GRUB_MOD_INIT): Remove command name from the summary.
25600 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
25601 string as summary.
25602 * lib/arg.c (find_long): Print the command name before the summary.
25603 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
25604 summary.
25605 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
25606 * commands/cat.c (GRUB_MOD_INIT): Likewise.
25607 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
25608 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25609 * commands/crc.c (GRUB_MOD_INIT): Likewise.
25610 * commands/date.c (GRUB_MOD_INIT): Likewise.
25611 * commands/echo.c (GRUB_MOD_INIT): Likewise.
25612 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
25613 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25614 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25615 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
25616 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
25617 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
25618 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
25619 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25620 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
25621 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
25622 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
25623 * commands/ls.c (GRUB_MOD_INIT): Likewise.
25624 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25625 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25626 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25627 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
25628 * commands/password.c (GRUB_MOD_INIT): Likewise.
25629 * commands/probe.c (GRUB_MOD_INIT): Likewise.
25630 * commands/read.c (GRUB_MOD_INIT): Likewise.
25631 * commands/search.c (GRUB_MOD_INIT): Likewise.
25632 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
25633 * commands/test.c (GRUB_MOD_INIT): Likewise.
25634 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
25635 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25636 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25637 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
25638 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25639 * lib/arg.c (GRUB_MOD_INIT): Likewise.
25640 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
25641 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25642 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25643 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25644 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25645 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
25646 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
25647 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
25648
25649 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25650
25651 Use search command for preliminar UUID search.
25652
25653 * commands/search.c: Split into ...
25654 * commands/search_wrap.c: ...this
25655 * commands/search.c: ...and this.
25656 * commands/search_file.c: New file.
25657 * commands/search_label.c: New file.
25658 * commands/search_uuid.c: New file.
25659 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
25660 Add commands/search_wrap.c, commands/search_file.c,
25661 commands/search_label.c and commands/search_uuid.c.
25662 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
25663 (search_mod_SOURCES): Set to commands/search_wrap.c.
25664 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
25665 search_label.mod.
25666 (search_fs_file_mod_SOURCES): New variable.
25667 (search_fs_file_mod_CFLAGS): Likewise.
25668 (search_fs_file_mod_LDFLAGS): Likewise.
25669 (search_label_mod_SOURCES): Likewise.
25670 (search_label_mod_CFLAGS): Likewise.
25671 (search_label_mod_LDFLAGS): Likewise.
25672 (search_fs_uuid_mod_SOURCES): New variable.
25673 (search_fs_uuid_mod_CFLAGS): Likewise.
25674 (search_fs_uuid_mod_LDFLAGS): Likewise.
25675 (fs_file_mod_SOURCES): Removed.
25676 (fs_file_mod_CFLAGS): Likewise.
25677 (fs_file_mod_LDFLAGS): Likewise.
25678 (fs_uuid_mod_SOURCES): Removed.
25679 (fs_uuid_mod_CFLAGS): Likewise.
25680 (fs_uuid_mod_LDFLAGS): Likewise.
25681 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
25682 Set to util/grub-install.in.
25683 * disk/fs_file.c: Removed.
25684 * disk/fs_uuid.c: Likewise.
25685 * include/grub/search.h: New file.
25686 * util/grub-install.in: Handle sparc64.
25687 Create and use load.cfg.
25688 * util/sparc64/ieee1275/grub-install.in: Removed.
25689
25690 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25691
25692 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
25693 Ignore return status if CF is cleared.
25694 (grub_biosdisk_get_diskinfo_standard): Likewise.
25695
25696 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25697
25698 * term/i386/pc/at_keyboard.c
25699 (keyboard_controller_wait_untill_ready): New function.
25700 (grub_keyboard_controller_write, grub_keyboard_controller_read)
25701 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
25702 for keyboard polling, rather than duplicate the same loop. This
25703 saves a few bytes in code size.
25704
25705 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25706
25707 Support for (pxe[:server[:gateway]]) syntax and
25708 use environment variable for PXE.
25709
25710 * commands/i386/pc/pxecmd.c (options): Removed.
25711 (print_ip): Removed.
25712 (grub_cmd_pxe): Removed
25713 (grub_cmd_pxe_unload): New function.
25714 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
25715 (grub_pxe_your_ip): Made static.
25716 (grub_pxe_default_server_ip): Likewise.
25717 (grub_pxe_default_gateway_ip): Likewise.
25718 (grub_pxe_blksize): Likewise.
25719 (parse_ip): New function.
25720 (grub_pxe_open): Support server and gateway specification.
25721 (grub_pxe_close): Free disk->data.
25722 (grub_pxefs_open): Use disk->data.
25723 (grub_pxefs_read): Likewise.
25724 (grub_env_write_readonly): New function.
25725 (set_mac_env): Likewise.
25726 (set_env_limn_ro): Likewise.
25727 (parse_dhcp_vendor): Likewise.
25728 (grub_pxe_detect): Set the environment variables.
25729 (set_ip_env): New function.
25730 (write_ip_env): Likewise.
25731 (grub_env_write_pxe_default_server): Likewise.
25732 (grub_env_write_pxe_default_gateway): Likewise.
25733 (grub_env_write_pxe_blocksize): Likewise.
25734 (GRUB_MOD_INIT(pxe)): Set environment variables.
25735 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
25736 (grub_pxe_mac_addr_t): ... this. All users updated.
25737 (grub_pxe_your_ip): Removed.
25738 (grub_pxe_server_ip): Likewise.
25739 (grub_pxe_gateway_ip): Likewise.
25740 (grub_pxe_blksize): Likewise.
25741
25742 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25743
25744 * commands/help.c: Include `<grub/i18n.h>'.
25745 (grub_cmd_help): Gettextizze.
25746 (GRUB_MOD_INIT): Likewise.
25747 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
25748 (GRUB_MOD_INIT): Gettextizze.
25749 * commands/search.c: Include `<grub/i18n.h>'.
25750 (options): Gettextizze.
25751 (GRUB_MOD_INIT): Gettextizze.
25752 * lib/arg.c: Include `<grub/i18n.h>'.
25753 (help_options): Gettextizze.
25754 (find_long): Likewise.
25755 (grub_arg_show_help): Likewise.
25756 * normal/dyncmd.c: Include `<grub/i18n.h>'.
25757 (read_command_list): Gettextizze.
25758 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
25759 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
25760
25761 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25762
25763 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
25764 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
25765 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
25766 (led_status): New variable.
25767 (keyboard_controller_led): New function.
25768 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
25769 update led status for caps lock, num lock and scroll lock.
25770
25771 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
25772
25773 * util/hostdisk.c (open_device): Fix a comment.
25774
25775 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25776
25777 * util/grub-install.in (host_os): New variable.
25778 * util/i386/efi/grub-install.in (host_os): Likewise.
25779
25780 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25781
25782 * util/mkisofs/write.c (padblock_write): Abort when given an
25783 excedingly large embed image, instead of silently truncating it.
25784
25785 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25786
25787 * include/multiboot.h: Indentation fixes.
25788
25789 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25790
25791 * include/multiboot.h (struct multiboot_aout_symbol_table)
25792 (struct multiboot_elf_section_header_table): New structure
25793 declarations (stolen from GRUB Legacy).
25794 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
25795 table information.
25796
25797 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
25798 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
25799 type aliases.
25800
25801 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25802
25803 * include/multiboot.h: Make comments src2texi-friendly.
25804
25805 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25806
25807 For consistency with [multiboot]/docs/boot.S.
25808
25809 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
25810 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
25811 (MULTIBOOT_MAGIC2): Rename from this ...
25812 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
25813
25814 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25815
25816 * include/multiboot.h: Remove `<grub/types.h>'.
25817 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
25818 types. Update all users.
25819
25820 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25821
25822 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
25823 `couldn't' and `can not' by `cannot'.
25824 * commands/i386/pc/drivemap.c: Likewise.
25825 * disk/ata.c: Likewise.
25826 * disk/ieee1275/nand.c: Likewise.
25827 * fs/affs.c: Likewise.
25828 * fs/fat.c: Likewise.
25829 * fs/hfs.c: Likewise.
25830 * fs/hfsplus.c: Likewise.
25831 * fs/iso9660.c: Likewise.
25832 * fs/jfs.c: Likewise.
25833 * fs/minix.c: Likewise.
25834 * fs/reiserfs.c: Likewise.
25835 * fs/sfs.c: Likewise.
25836 * fs/udf.c: Likewise.
25837 * fs/ufs.c: Likewise.
25838 * fs/xfs.c: Likewise.
25839 * loader/powerpc/ieee1275/linux.c: Likewise.
25840 * loader/sparc64/ieee1275/linux.c: Likewise.
25841 * util/grub-probe.c: Likewise.
25842 * util/misc.c: Likewise.
25843
25844 2009-12-24 Carles Pina i Estany <carles@pina.cat>
25845
25846 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
25847 grub_errno calls.
25848 * commands/acpi.c: Likewise.
25849 * commands/blocklist.c: Likewise.
25850 * commands/efi/loadbios.c: Likewise.
25851 * commands/i386/pc/drivemap.c: Likewise.
25852 * commands/loadenv.c: Likewise.
25853 * commands/memrw.c: Likewise.
25854 * commands/password.c: Likewise.
25855 * commands/videotest.c: Likewise.
25856 * disk/ata.c: Likewise.
25857 * disk/ata_pthru.c: Likewise.
25858 * disk/dmraid_nvidia.c: Likewise.
25859 * disk/ieee1275/nand.c: Likewise.
25860 * disk/ieee1275/ofdisk.c: Likewise.
25861 * disk/loopback.c: Likewise.
25862 * disk/lvm.c: Likewise.
25863 * disk/mdraid_linux.c: Likewise.
25864 * disk/raid.c: Likewise.
25865 * disk/raid6_recover.c: Likewise.
25866 * disk/scsi.c: Likewise.
25867 * efiemu/main.c: Likewise.
25868 * efiemu/mm.c: Likewise.
25869 * efiemu/pnvram.c: Likewise.
25870 * efiemu/symbols.c: Likewise.
25871 * font/font.c: Likewise.
25872 * fs/cpio.c: Likewise.
25873 * fs/hfsplus.c: Likewise.
25874 * fs/iso9660.c: Likewise.
25875 * fs/jfs.c: Likewise.
25876 * fs/minix.c: Likewise.
25877 * fs/ntfs.c: Likewise.
25878 * fs/ntfscomp.c: Likewise.
25879 * fs/reiserfs.c: Likewise.
25880 * fs/ufs.c: Likewise.
25881 * fs/xfs.c: Likewise.
25882 * gettext/gettext.c: Likewise.
25883 * include/grub/auth.h: Likewise.
25884 * kern/elf.c: Likewise.
25885 * kern/file.c: Likewise.
25886 * kern/ieee1275/init.c: Likewise.
25887 * kern/ieee1275/mmap.c: Likewise.
25888 * kern/ieee1275/openfw.c: Likewise.
25889 * kern/powerpc/dl.c: Likewise.
25890 * kern/sparc64/dl.c: Likewise.
25891 * lib/arg.c: Likewise.
25892 * loader/i386/bsd.c: Likewise.
25893 * loader/i386/bsdXX.c: Likewise.
25894 * loader/i386/efi/linux.c: Likewise.
25895 * loader/i386/efi/xnu.c: Likewise.
25896 * loader/i386/ieee1275/linux.c: Likewise.
25897 * loader/i386/linux.c: Likewise.
25898 * loader/i386/multiboot.c: Likewise.
25899 * loader/i386/pc/linux.c: Likewise.
25900 * loader/i386/pc/multiboot2.c: Likewise.
25901 * loader/i386/xnu.c: Likewise.
25902 * loader/ieee1275/multiboot2.c: Likewise.
25903 * loader/macho.c: Likewise.
25904 * loader/machoXX.c: Likewise.
25905 * loader/multiboot2.c: Likewise.
25906 * loader/multiboot_loader.c: Likewise.
25907 * loader/powerpc/ieee1275/linux.c: Likewise.
25908 * loader/sparc64/ieee1275/linux.c: Likewise.
25909 * loader/xnu.c: Likewise.
25910 * loader/xnu_resume.c: Likewise.
25911 * mmap/i386/pc/mmap.c: Likewise.
25912 * normal/menu_viewer.c: Likewise.
25913 * partmap/acorn.c: Likewise.
25914 * partmap/amiga.c: Likewise.
25915 * partmap/apple.c: Likewise.
25916 * script/lexer.c: Likewise.
25917 * term/gfxterm.c: Likewise.
25918 * term/i386/pc/serial.c: Likewise.
25919 * term/i386/pc/vga.c: Likewise.
25920 * term/ieee1275/ofconsole.c: Likewise.
25921 * term/terminfo.c: Likewise.
25922 * video/bitmap.c: Likewise.
25923 * video/efi_gop.c: Likewise.
25924 * video/efi_uga.c: Likewise.
25925 * video/fb/video_fb.c: Likewise.
25926 * video/i386/pc/vbe.c: Likewise.
25927 * video/readers/tga.c: Likewise.
25928 * video/video.c: Likewise.
25929
25930 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
25931
25932 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
25933 * commands/lspci.c: Likewise.
25934 * commands/probe.c: Likewise.
25935 * commands/xnu_uuid.c: Likewise.
25936 * conf/i386-coreboot.rmk: Likewise.
25937 * conf/i386-efi.rmk: Likewise.
25938 * conf/i386-ieee1275.rmk: Likewise.
25939 * conf/i386-pc.rmk: Likewise.
25940 * conf/powerpc-ieee1275.rmk: Likewise.
25941 * conf/sparc64-ieee1275.rmk: Likewise.
25942 * conf/x86_64-efi.rmk: Likewise.
25943 * fs/i386/pc/pxe.c: Likewise.
25944 * gettext/gettext.c: Likewise.
25945 * include/grub/efi/graphics_output.h: Likewise.
25946 * include/grub/i386/pc/memory.h: Likewise.
25947 * kern/env.c: Likewise.
25948 * kern/i386/qemu/startup.S: Likewise.
25949 * lib/i386/pc/biosnum.c: Likewise.
25950 * lib/i386/relocator.c: Likewise.
25951 * lib/i386/relocator_asm.S: Likewise.
25952 * lib/relocator.c: Likewise.
25953 * loader/i386/bsd.c: Likewise.
25954 * loader/i386/multiboot.c: Likewise.
25955 * loader/i386/pc/chainloader.c: Likewise.
25956 * loader/i386/xnu.c: Likewise.
25957 * loader/xnu.c: Likewise.
25958 * normal/main.c: Likewise.
25959 * normal/menu_text.c: Likewise.
25960 * util/getroot.c: Likewise.
25961 * util/grub-mkconfig_lib.in: Likewise.
25962 * util/grub.d/00_header.in: Likewise.
25963 * util/i386/pc/grub-mkimage.c: Likewise.
25964 * util/mkisofs/eltorito.c: Likewise.
25965 * util/mkisofs/exclude.h: Likewise.
25966 * util/mkisofs/hash.c: Likewise.
25967 * util/mkisofs/iso9660.h: Likewise.
25968 * util/mkisofs/joliet.c: Likewise.
25969 * util/mkisofs/mkisofs.c: Likewise.
25970 * util/mkisofs/mkisofs.h: Likewise.
25971 * util/mkisofs/multi.c: Likewise.
25972 * util/mkisofs/name.c: Likewise.
25973 * util/mkisofs/rock.c: Likewise.
25974 * util/mkisofs/tree.c: Likewise.
25975 * util/mkisofs/write.c: Likewise.
25976 * video/efi_gop.c: Likewise.
25977
25978 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
25979
25980 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
25981 size counting.
25982
25983 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25984
25985 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
25986 * genmk.rb (class SCRIPT): Modify the target file instead of source.
25987
25988 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25989
25990 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
25991 (GRUB_MOD_INIT(memrw)): Update help line.
25992
25993 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25994
25995 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
25996 Use grub_extcmd_t. All users updated.
25997 (options): New variable.
25998 (grub_cmd_read): Restructure for readability. Support "-v" option.
25999 (grub_cmd_write): Restructure for readability.
26000
26001 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
26002
26003 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
26004
26005 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
26006
26007 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
26008 with the actual contents of the correspondending make variable.
26009 * util/grub-mkrescue.in (pkglib_DATA): New variable.
26010 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
26011 specifying `*.lst' and `efiemu??.o'
26012
26013 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
26014
26015 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
26016 after function name.
26017 Noticed by Rene Engelhard <rene@debian.org>.
26018
26019 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26020
26021 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
26022 (options): New variable.
26023 (iospace): Likewise.
26024 (grub_lspci_iter): List IO spaces if "-i" was given.
26025 (grub_cmd_lspci): Parse options.
26026 (GRUB_MOD_INIT(lspci)): Use extcmd.
26027 (GRUB_MOD_FINI(lspci)): Likewise.
26028
26029 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
26030
26031 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
26032 `function' keyword.
26033 Patch by Tony Mancill <tmancill@debian.org>.
26034
26035 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26036
26037 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
26038 (grub_uhci_portstatus): Likewise.
26039 (grub_uhci_portstatus): Add necessary delay.
26040 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
26041
26042 2009-12-21 Carles Pina i Estany <carles@pina.cat>
26043
26044 * commands/acpi.c (options): Fix capitalizations and/or full stops.
26045 (GRUB_MOD_INIT): Likewise.
26046 * commands/boot.c (GRUB_MOD_INIT): Likewise.
26047 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
26048 * commands/echo.c (options): Fix capitalizations and/or full stops.
26049 * commands/efi/loadbios.c (enable_rom_area): Likewise.
26050 (enable_rom_area): Likewise.
26051 (GRUB_MOD_INIT): Likewise.
26052 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
26053 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
26054 * commands/handler.c (GRUB_MOD_INIT): Likewise.
26055 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
26056 * commands/hexdump.c (options): Likewise.
26057 * commands/i386/cpuid.c (options): Likewise.
26058 (GRUB_MOD_INIT): Likewise.
26059 * commands/i386/pc/drivemap.c (options): Likewise.
26060 (GRUB_MOD_INIT): Likewise.
26061 * commands/i386/pc/halt (options): Likewise.
26062 (GRUB_MOD_INIT): Likewise.
26063 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
26064 * commands/i386/pc/pxecmd.c (options): Likewise.
26065 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
26066 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
26067 * commands/keystatus.c (options): Likewise.
26068 (GRUB_MOD_INIT): Likewise.
26069 * commands/loadenv.c (options): Likewise.
26070 * commands/ls.c (options): Likewise.
26071 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
26072 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
26073 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
26074 * commands/parttool.c (helpmsg): Likewise.
26075 * commands/probe.c (options): Likewise.
26076 * commands/read.c (GRUB_MOD_INIT): Likewise.
26077 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
26078 * commands/search.c (options): Likewise.
26079 * commands/sleep.c (options): Likewise.
26080 * commands/test.c (GRUB_MOD_INIT): Likewise.
26081 * commands/true.c (GRUB_MOD_INIT): Likewise.
26082 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
26083 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
26084 * lib/arg.c (help_options): Likewise.
26085 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
26086 `$(XGETTEXT)'.
26087 * po/POTFILES: Add `commands/loadenv.c'.
26088
26089 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
26090
26091 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
26092 instead of specifying them explicit.
26093
26094 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26095
26096 * NEWS: Add grub-probe support for GNU/Hurd.
26097
26098 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26099
26100 * NEWS: gettext was added after 1.97.
26101
26102 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26103
26104 * util/mkisofs/msdos_partition.h: New file (based on
26105 include/grub/msdos_partition.h).
26106 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
26107 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
26108 (ld_options, main): Recognize --protective-msdos-label.
26109 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
26110 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
26111 (padblock_write): If `use_protective_msdos_label' is set, patch a
26112 protective DOS-style label in the output image.
26113
26114 * util/grub-mkrescue.in: Use --protective-msdos-label.
26115
26116 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26117
26118 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
26119 boot.
26120
26121 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26122
26123 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
26124 variables.
26125 (ld_options, main): Recognize `--embedded-boot'.
26126 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
26127 declarations.
26128 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
26129 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
26130 (padblock_write): Likewise. Rewrite to support embedded boot image.
26131
26132 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
26133 for BIOS-based disk boot instead of only ElTorito.
26134
26135 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26136
26137 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
26138 build (not needed for bootstrap).
26139
26140 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26141
26142 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
26143 from i386-pc build (not needed for bootstrap).
26144 Rewrite a pair of strings.
26145
26146 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26147
26148 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
26149
26150 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
26151
26152 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
26153
26154 2009-12-21 Andreas Born <futur.andy@googlemail.com>
26155
26156 * kern/env.c (grub_env_context_open): Mark exported variable for
26157 reexport.
26158
26159 2009-12-21 Andreas Born <futur.andy@googlemail.com>
26160
26161 * kern/env.c (grub_env_export): Create nonexistent variables before
26162 exporting.
26163
26164 2009-12-20 Carles Pina i Estany <carles@pina.cat>
26165
26166 * include/grub/auth.h: Include `<grub/i18n.h>'.
26167 (GRUB_GET_PASSWORD): Gettextizze string.
26168 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
26169 menu_text.c.
26170 (grub_utf8_to_ucs4_alloc): Fix indentation.
26171 (grub_print_ucs4): Likewise.
26172 (grub_getstringwidth): Likewise.
26173 (print_message_indented): New declaration.
26174 * normal/auth.c: Include `<grub/i18n.h>'.
26175 (grub_auth_check_authentication): Gettexttize string.
26176 * normal/cmdline.c: Include `<grub/i18n.h>'.
26177 (grub_cmdline_get): Gettextizze.
26178 * normal/color.c: Include `<grub/i18n.h>'.
26179 (grub_parse_color_name_pair): Gettexttize strings.
26180 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
26181 string (use `print_message_indented').
26182 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
26183 `include/grub/normal.h'.
26184 (print_message_indented): Renamed to ...
26185 (grub_print_message_indented): ... this. Remove `static' qualifer (now
26186 used in normal/main.c).
26187 (print_message): Use `grub_print_message_indented' instead of
26188 `print_message_indented'.
26189 (print_timeout): Likewise.
26190 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
26191 (grub_normal_print_device_info): Gettexttize strings.
26192 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
26193
26194 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26195
26196 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
26197 of arguments. Return number of tokens and not arguments. All users
26198 updated.
26199
26200 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26201
26202 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
26203 non-MSDOS paritions.
26204
26205 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
26206
26207 * include/grub/types.h (UNUSED): Removed since it conflicts with
26208 NetBSD headers. All users changed to direct __attribute__ ((unused)).
26209 Reported by Grégoire Sutre.
26210
26211 2009-12-19 Carles Pina i Estany <carles@pina.cat>
26212
26213 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
26214 (grub_print_ucs4_alloc): Likewise.
26215 (grub_getstringwidth): Likewise.
26216 * normal/main.c (grub_normal_init_page): Gettextize version string.
26217 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
26218 (getstringwidth): Renamed to ...
26219 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
26220 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
26221 (grub_print_ucs4): Remove `static' qualifer (now used in
26222 normal/main.c).
26223 * po/POTFILES: Add normal/main.c.
26224
26225 2009-12-19 Carles Pina i Estany <carles@pina.cat>
26226
26227 * normal/menu_text.c (STANDARD_MARGIN): New macro.
26228 (print_message_indented): Add `margin_left' and `margin_right'
26229 parameters.
26230 (print_message): Update `print_message_indented' calls. Adds '\n' to the
26231 strings.
26232 (print_timeout): Use `print_message_indented' to print the message.
26233 Deletes `second_stage' parameter.
26234 (run_menu): Update `print_timeout' calls.
26235
26236 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26237
26238 Fix console palette on OpenFirmware.
26239
26240 * term/ieee1275/ofconsole.c (MAX): Removed.
26241 (colors): Redone based on VGA palette.
26242 (grub_ofconsole_setcolor): Discard brightness bit since only 8
26243 colors are supported.
26244 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
26245
26246 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26247
26248 Fix potential EfiEmu double prepare.
26249
26250 * efiemu/main.c (prepared): New variable
26251 (grub_efiemu_unload): Set prepare to '0'.
26252 (grub_efiemu_prepare): Return if already prepared. Set prepared.
26253
26254 set_virtual_address_map support.
26255
26256 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
26257 prototype.
26258 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
26259 prototype.
26260 (grub_efiemu_crc32): Likewise.
26261 (grub_efiemu_crc64): Likewise.
26262 (grub_efiemu_set_virtual_address_map): Likewise.
26263 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
26264 New definition.
26265 (grub_autoefi_set_virtual_address_map): Likewise.
26266 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
26267 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
26268 Restructure flow to accomodate it.
26269 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
26270 (grub_efiemu_crc): Recompute CRC32.
26271 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
26272 (efiemu_ptv_relocated): ... this. Made global. All users updated.
26273 * efiemu/symbols.c (relocated_handle): New variable.
26274 (grub_efiemu_free_syms): Free relocated_handle.
26275 (grub_efiemu_alloc_syms): Allocate relocated_handle.
26276 (grub_efiemu_write_sym_markers): New function.
26277 (grub_efiemu_set_virtual_address_map): Likewise.
26278
26279 Newer XNU parameters.
26280
26281 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
26282 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
26283 (grub_xnu_fill_devicetree): New prototype.
26284 (grub_xnu_heap_real_start): New variable.
26285 * loader/xnu.c (get_name_ptr): New function.
26286 (grub_xnu_load_driver): Fill namelen and name.
26287
26288 64-bit xnu support.
26289
26290 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
26291 and 'loader/macho64.c'.
26292 * conf/i386-pc.rmk: Likewise.
26293 * conf/x86_64-efi.rmk: Likewise.
26294 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
26295 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
26296 * include/grub/macho.h (grub_macho_segment64): New structure.
26297 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
26298 (grub_macho_size32): ... to this.
26299 (grub_macho32_get_entry_point): Renamed from ...
26300 (grub_macho_get_entry_point32): ... to this.
26301 (grub_macho_contains_macho64): New prototype.
26302 (grub_macho_size64): Likewise.
26303 (grub_macho_get_entry_point64): Likewise.
26304 (grub_macho32_load): Renamed from ...
26305 (grub_macho_load32): ... to this.
26306 (grub_macho32_filesize): Renamed from ...
26307 (grub_macho_filesize32): ... to this.
26308 (grub_macho32_readfile): Renamed from ...
26309 (grub_macho_readfile32): ... to this.
26310 (grub_macho_filesize64): New prototype.
26311 (grub_macho_readfile64): Likewise.
26312 (grub_macho_parse32): Likewise.
26313 (grub_macho_parse64): Likewise.
26314 * loader/macho.c: Split into ...
26315 * loader/machoXX.c: ... and this. Replace 32 with XX.
26316 * loader/macho32.c: New file.
26317 * loader/macho64.c: Likewise.
26318 * loader/xnu.c (grub_xnu_is_64bit): New variable.
26319 (grub_cmd_xnu_kernel): Make 32-bit only.
26320 (grub_cmd_xnu_kernel64): New function.
26321 (grub_xnu_load_driver): Support Mach-O 64.
26322 (grub_cmd_xnu_mkext): Likewise.
26323 * util/grub.d/30_os-prober.in (osx_entry): New function.
26324 Generate entries for 64-bit boot too.
26325
26326 Eliminate ad-hoc tree format in XNU and EfiEmu.
26327
26328 * efiemu/main.c (grub_efiemu_prepare): Update comment.
26329 * efiemu/pnvram.c: Rewritten to use environment variables.
26330 All users updated.
26331
26332 Inline utf16_to_utf8.
26333
26334 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
26335 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
26336 All users updated.
26337 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
26338
26339 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
26340 * commands/usbtest.c (grub_usb_get_string): ... move here.
26341 (usb_print_str): Fix error handling.
26342 * include/grub/usb.h (grub_usb_get_string): Remove.
26343
26344 UTF-8 to UTF-16 transformation.
26345
26346 * conf/common.rmk (pkglib_MODULES): Add charset.mod
26347 (charset_mod_SOURCES): New variable.
26348 (charset_mod_CFLAGS): Likewise.
26349 (charset_mod_LDFLAGS): Likewise.
26350 * include/grub/utf.h: New file.
26351 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
26352
26353 Support for device properties.
26354
26355 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
26356 (grub_xnu_devprop_device_header): Likewise.
26357 (grub_xnu_devprop_device_descriptor): Likewise.
26358 (grub_xnu_devprop_add_device): New prototype.
26359 (grub_xnu_devprop_remove_device): Likewise.
26360 (grub_xnu_devprop_remove_property): Likewise.
26361 (grub_xnu_devprop_add_property_utf8): Likewise.
26362 (grub_xnu_devprop_add_property_utf16): Likewise.
26363 (grub_cpu_xnu_init): Likewise.
26364 (grub_cpu_xnu_fini): Likewise.
26365 (grub_cpu_xnu_unload): Likewise.
26366 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
26367 (property_descriptor): Likewise.
26368 (devices): New variable.
26369 (grub_xnu_devprop_remove_property): New function.
26370 (grub_xnu_devprop_add_device): Likewise.
26371 (grub_xnu_devprop_remove_device): Likewise.
26372 (grub_xnu_devprop_add_property): Likewise.
26373 (grub_xnu_devprop_add_property_utf8): Likewise.
26374 (grub_xnu_devprop_add_property_utf16): Likewise.
26375 (hextoval): Likewise.
26376 (grub_cpu_xnu_fill_devprop): Likewise.
26377 (grub_cmd_devprop_load): Likewise.
26378 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
26379 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
26380 (cmd_devprop_load): New variable.
26381 (grub_cpu_xnu_init): New function.
26382 (grub_cpu_xnu_fini): Likewise.
26383 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
26384 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
26385 (grub_cmd_xnu_devtree): Likewise.
26386 (hextoval): New function.
26387 (unescape): Likewise.
26388 (grub_xnu_fill_devicetree): Likewise.
26389
26390 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
26391 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
26392
26393 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26394
26395 Workaround for broken ATI VBE.
26396
26397 * video/i386/pc/vbe.c (last_set_mode): New variable.
26398 (grub_vbe_set_video_mode): Set 'last_set_mode'.
26399 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
26400 (grub_video_vbe_setup): Don't check for reserved flag.
26401
26402 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
26403
26404 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
26405 the `find' command.
26406
26407 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
26408
26409 UUID support for HFS.
26410
26411 * fs/hfs.c (grub_hfs_uuid): New function.
26412 (grub_hfs_fs): New value .uuid.
26413 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
26414
26415 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
26416
26417 Fix a segfault with parsing unknown long options.
26418
26419 * util/grub-mkrelpath.c (options): Zero terminate it.
26420
26421 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26422
26423 * include/grub/misc.h (grub_puts): New declaration.
26424 (grub_puts_): Likewise.
26425 * kern/misc.c (grub_puts): New definition.
26426 (grub_puts_): Likewise.
26427
26428 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26429
26430 * util/grub-probe.c (probe): Improve error message.
26431
26432 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26433
26434 * loader/i386/multiboot_elfxx.c
26435 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
26436 initialization.
26437
26438 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26439
26440 Relocator framework
26441
26442 * loader/i386/xnu_helper.S: Removed. All users updated.
26443 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
26444 (relocator_mod_SOURCES): New variable.
26445 (relocator_mod_CFLAGS): Likewise.
26446 (relocator_mod_LDFLAGS): Likewise.
26447 (relocator_mod_ASFLAGS): Likewise.
26448 * conf/x86_64.rmk: Likewise.
26449 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
26450 (grub_multiboot_payload_entry_offset): Likewise.
26451 (grub_multiboot_forward_relocator): Likewise.
26452 (grub_multiboot_forward_relocator_end): Likewise.
26453 (grub_multiboot_backward_relocator): Likewise.
26454 (grub_multiboot_backward_relocator_end): Likewise.
26455 (grub_multiboot_payload_eip): New variable.
26456 (grub_multiboot_payload_orig): Likewise.
26457 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
26458 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
26459 * include/grub/i386/memory.h
26460 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
26461 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
26462 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
26463 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
26464 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
26465 * include/grub/i386/relocator.h: New file.
26466 * include/grub/x86_64/relocator.h: Likewise.
26467 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
26468 (XNU_RELOCATOR): New macro.
26469 (grub_xnu_launcher_start): Remove.
26470 (grub_xnu_launcher_end): Likewise.
26471 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
26472 (grub_xnu_heap_real_start): Remove.
26473 (grub_xnu_heap_start): Change to void *. All users updated.
26474 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
26475 * lib/i386/relocator.c: New file.
26476 * lib/i386/relocator_asm.S: Likewise.
26477 * lib/i386/relocator_backward.S: Likewise.
26478 * lib/mips/relocator.c: Likewise.
26479 * lib/mips/relocator_asm.S: Likewise.
26480 * lib/relocator.c: Likewise.
26481 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
26482 (entry): Removed.
26483 (playground): Likewise.
26484 (grub_multiboot_payload_orig): New variable.
26485 (grub_multiboot_payload_dest): Likewise.
26486 (grub_multiboot_payload_size): Likewise.
26487 (grub_multiboot_payload_eip): Likewise.
26488 (grub_multiboot_payload_esp): Likewise.
26489 (grub_multiboot_boot): Use grub_relocator32_boot.
26490 (grub_multiboot_unload): Free relocators.
26491 (grub_multiboot): Setup stack. Use relocators.
26492 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
26493 (grub_multiboot_load_elfXX): Use relocators.
26494 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
26495 (grub_multiboot_payload_size): Likewise.
26496 (grub_multiboot_payload_dest): Likewise.
26497 (grub_multiboot_payload_entry_offset): Likewise.
26498 (grub_multiboot_forward_relocator): Likewise.
26499 (grub_multiboot_backward_relocator): Likewise.
26500 (grub_multiboot_real_boot): Likewise.
26501 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
26502 (grub_xnu_entry_point): Likewise.
26503 (grub_xnu_arg1): Likewise.
26504 (grub_xnu_stack): Likewise.
26505 (grub_xnu_launch): Removed.
26506 (grub_xnu_boot_resume): New function.
26507 (grub_xnu_boot): Use relocators.
26508 * loader/i386/xnu_helper.S: Removed.
26509 * loader/xnu.c (grub_xnu_heap_start): New variable.
26510 (grub_xnu_heap_size): Likewise.
26511 (grub_xnu_heap_malloc): Use relocators.
26512 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
26513
26514 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26515
26516 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
26517 anything.
26518
26519 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26520
26521 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
26522 GRUB_ERR_NONE before calling grub_env_set.
26523
26524 2009-12-12 Robert Millan <rmh@aybabtu.com>
26525
26526 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
26527 * genmk.rb (video): New variable.
26528 (CLEANFILES, VIDEOFILES): Add #{video}.
26529 (#{video}): New target rule.
26530 * genvideolist.sh: New file.
26531 * Makefile.in (pkglib_DATA): Add video.lst.
26532 (video.lst): New target rule.
26533 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
26534 `video.lst'.
26535 * util/grub.d/30_os-prober.in: Replace `vbe' with
26536 ${GRUB_VIDEO_BACKEND}.
26537
26538 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
26539
26540 * THANKS: Add David Miller.
26541
26542 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
26543
26544 libpciaccess support.
26545
26546 * Makefile.in (LIBPCIACCESS): New variable.
26547 (enable_grub_emu_pci): Likewise.
26548 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
26549 util/pci.c and commands/lspci.c.
26550 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
26551 * configure.ac (grub-emu-pci): New option.
26552 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
26553 (grub_pci_device_unmap_range): Likewise.
26554 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
26555 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
26556 (grub_pci_address_t) [!GRUB_UTIL]: New type.
26557 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
26558 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
26559 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
26560 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
26561 * include/grub/pciutils.h: New file.
26562 * util/pci.c: Likewise.
26563
26564 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
26565
26566 * util/misc.c: Don't include <errno.h> twice.
26567
26568 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
26569
26570 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
26571 name in an error message.
26572 (grub_biosdisk_rw): Likewise.
26573
26574 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26575
26576 Eliminate NTFS 4Gib barrier.
26577
26578 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
26579 (read_run_data): Likewise.
26580 (grub_ntfs_read_run_list): Likewise.
26581 (grub_ntfs_read_block): Likewise.
26582 (grub_ntfs_iterate_dir): Likewise.
26583 (read_mft): Likewise.
26584 (read_data): Likewise.
26585 Use COM_LOG_LEN.
26586 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
26587 to avoid 64-bit division
26588 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
26589 (grub_ntfs_rlst): Use grub_disk_addr_t.
26590
26591 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26592
26593 Eliminate grub-fstest 4Gib barrier.
26594
26595 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
26596 (read_file): Fix error reporting.
26597
26598 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26599
26600 Eliminate hexdump 4Gib barrier.
26601
26602 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
26603 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
26604
26605 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26606
26607 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
26608 Fixes amarsh bug.
26609
26610 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
26611
26612 Remove miscellaneous files in distclean target.
26613
26614 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
26615
26616 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
26617
26618 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
26619 if they're already set. This resolves the conflict between my
26620 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
26621 fixing the --grub-probe option again.
26622 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
26623 change on 2009-10-06, so that we now once again source
26624 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26625
26626 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
26627
26628 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
26629 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
26630 `util/devicemap.c'.
26631
26632 2009-12-08 Carles Pina i Estany <carles@pina.cat>
26633
26634 * include/grub/misc.h (grub_printf_): New declaration.
26635 * kern/misc.c (grub_printf_): New definition.
26636 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
26637 instead of `grub_printf' and `_'.
26638 * normal/menu_entry.c (store_completion): Likewise.
26639 (run): Likewise.
26640 (grub_menu_entry_run): Likewise.
26641 * normal/menu_text.c (grub_wait_after_message): Likewise.
26642 (notify_booting): Likewise.
26643 (notify_fallback): Likewise.
26644 (notify_execution_failure): Likewise.
26645
26646 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
26647
26648 * configure.ac: Check for vasprintf.
26649 * util/misc.c (asprintf): Move allocation from here ...
26650 (vasprintf): ... to here. New function.
26651 (xasprintf): New function.
26652 * include/grub/util/misc.h (vasprintf, xasprintf): Add
26653 prototypes.
26654 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26655 * util/grub-mkfont.c (write_font): Likewise.
26656 * util/grub-probe.c (probe): Likewise.
26657 * util/hostdisk.c (make_device_name): Likewise.
26658
26659 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
26660
26661 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
26662 anything even prefixed with 'cdrom' as a cdrom.
26663
26664 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
26665
26666 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
26667 mount points.
26668
26669 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26670
26671 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
26672 grub_gettext_msg_list.
26673 (grub_gettext_gettranslation_from_position): Return const char *
26674 and not char *.
26675 (grub_gettext_translate): Add the translated strings into a list,
26676 returns from the list if existing there.
26677 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
26678 (grub_gettext_delete_list): Delete the list.
26679 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
26680 lang environment variable is changed.
26681 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
26682
26683 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26684
26685 Rename kernel.mod to kernel.img.
26686
26687 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
26688 (kernel_mod_EXPORTS): Rename to ...
26689 (kernel_img_EXPORTS): ... this.
26690 (kernel_mod_SOURCES): Rename to ...
26691 (kernel_img_SOURCES): ... this.
26692 (kernel_mod_HEADERS): Rename to ...
26693 (kernel_img_HEADERS): ... this. All users updated.
26694 (kernel_mod_CFLAGS): Rename to ...
26695 (kernel_img_CFLAGS): ... this.
26696 (kernel_mod_ASFLAGS): Rename to ...
26697 (kernel_img_ASFLAGS): ... this.
26698 (kernel_mod_LDFLAGS): Rename to ...
26699 (kernel_img_LDFLAGS): ... this.
26700 * conf/x86_64-efi.rmk: Likewise.
26701 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
26702 (read_kernel_image): ... this. All users updated.
26703 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
26704
26705 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26706
26707 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
26708 (print_spaces): New function.
26709 (grub_print_ucs4): New function.
26710 (getstringwidth): New function.
26711 (print_message_indented): New function.
26712 (print_message): Gettexttize strings using print_message_indented.
26713 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
26714 width.
26715 (get_entry_number): Gettextize and uses dynamic terminal width.
26716 (notify_booting, notify_fallback, notify_execution_failure):
26717 Gettextize.
26718 * normal/menu_entry.c (store_completion): Cleanup the gettextized
26719 string.
26720 (run): Likewise.
26721 (grub_menu_entry_run): Likewise.
26722 * PO/POTFILES: Add normal/menu_entry.c.
26723
26724 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26725
26726 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
26727
26728 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26729
26730 * util/grub-install.in: Install gettext .mo files.
26731 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
26732
26733 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26734
26735 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
26736 grub_dprintf.
26737
26738 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
26739
26740 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
26741 non-firmware-dependant one in realmode.S takes precedence.
26742
26743 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
26744
26745 * commands/halt.c: Replace misc arch-specific headers with
26746 `<grub/misc.h>'.
26747 * commands/reboot.c: Likewise.
26748 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
26749 `<grub/misc.h>'.
26750 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
26751 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
26752 (kernel_img_SOURCES): ... to here.
26753
26754 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
26755 * include/grub/i386/pc/init.h: Likewise.
26756 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
26757 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26758
26759 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
26760
26761 * include/grub/i386/halt.h: Remove.
26762 * include/grub/i386/reboot.h: Likewise.
26763
26764 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
26765
26766 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
26767
26768 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
26769 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
26770 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
26771 "progname.h"
26772 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26773 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26774 (usage): Add missing comma in printf.
26775
26776 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
26777
26778 Use the same reboot approach on i386 coreboot and qemu as we do on
26779 BIOS.
26780
26781 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
26782 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
26783 * kern/i386/reboot.c: Remove.
26784 * include/grub/i386/reboot.h (grub_reboot): Export function.
26785 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
26786 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
26787 0xf000:0xfff0 instead of 0xffff:0x0000.
26788 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
26789 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
26790
26791 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
26792
26793 Fix $srcdir != $objdir build.
26794
26795 * Makefile.in (po/%.po): Rewrite as ...
26796 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
26797
26798 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
26799
26800 Fix GNU/Hurd grub-install crash.
26801 * util/grub-probe.c (probe): Try to access `path' only when it is not
26802 NULL.
26803
26804 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26805
26806 Correct module naming.
26807
26808 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26809 (GRUB_MOD_INIT(efi_uga)): ... to this
26810 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26811 (GRUB_MOD_FINI(efi_uga)): ... to this
26812 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26813 (GRUB_MOD_INIT(efi_gop)): ... to this
26814 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26815 (GRUB_MOD_FINI(efi_gop)): ... to this
26816
26817 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
26818
26819 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
26820 translatable.
26821 (usage): Translate `arg' strings using gettext().
26822 Thanks to Jordi Mallach for the suggestion.
26823
26824 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26825
26826 GOP support. Based on patch from Bean
26827 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26828
26829 * video/efi_gop.c: New file.
26830 * include/grub/efi/graphics_output.h: Likewise.
26831 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
26832 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26833 variables.
26834 * conf/x86_64-efi.rmk: Likewise.
26835
26836 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26837
26838 Rename efi_fb to efi_uga.
26839
26840 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26841 'efi_uga.mod'.
26842 (efi_fb_mod_SOURCES): Rename this ...
26843 (efi_uga_mod_SOURCES): ... to this.
26844 (efi_fb_mod_CFLAGS): Rename this ...
26845 (efi_uga_mod_CFLAGS): ... to this.
26846 (efi_fb_mod_LDFLAGS): Rename this ...
26847 (efi_uga_mod_LDFLAGS): ... to this.
26848 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26849 'efi_uga.mod'.
26850 (efi_fb_mod_SOURCES): Rename this ...
26851 (efi_uga_mod_SOURCES): ... to this.
26852 (efi_fb_mod_CFLAGS): Rename this ...
26853 (efi_uga_mod_CFLAGS): ... to this.
26854 (efi_fb_mod_LDFLAGS): Rename this ...
26855 (efi_uga_mod_LDFLAGS): ... to this.
26856 * video/efi_fb.c: Move this ...
26857 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
26858
26859 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26860
26861 * po/README: New file. Explain our PO file workflow.
26862
26863 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26864
26865 * po/ChangeLog: Remove. Move relevant entries back to ...
26866 * ChangeLog: ... here.
26867 * po/ca.po: Remove (now handled by TLP).
26868 * po/id.po: Likewise.
26869 * po/zh_CN.po: Likewise.
26870 * Makefile.in (LINGUAS): Initialize in a way that supports
26871 empty set.
26872
26873 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26874
26875 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
26876 reliing on po/LINGUAS.
26877 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
26878 (po/%.po): ... this.
26879
26880 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26881
26882 * util/i386/efi/grub-mkimage.c: Include "progname.h".
26883 (main): Use `program_name' instead of nonexistent `progname'.
26884
26885 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26886
26887 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26888 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
26889
26890 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26891
26892 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
26893 commit.
26894 * conf/i386-efi.rmk: Likewise.
26895 * conf/i386-ieee1275.rmk: Likewise.
26896 * conf/powerpc-ieee1275.rmk: Likewise.
26897 * conf/sparc64-ieee1275.rmk: Likewise.
26898 * conf/x86_64-efi.rmk: Likewise.
26899
26900 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26901
26902 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
26903
26904 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26905
26906 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
26907
26908 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26909
26910 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
26911 (grub_mkdevicemap_SOURCES): New variable.
26912 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
26913 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
26914 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
26915 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
26916 (grub_mkdevicemap_SOURCES): Remove.
26917 * conf/i386-efi.rmk: Likewise.
26918 * conf/i386-ieee1275.rmk: Likewise.
26919 * conf/i386-pc.rmk: Likewise.
26920 * conf/powerpc-ieee1275.rmk: Likewise.
26921 * conf/sparc64-ieee1275.rmk: Likewise.
26922 * conf/x86_64-efi.rmk: Likewise.
26923 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
26924 (usage): Fix strings to use `program_name'.
26925 (main): Initialize gettext.
26926 * util/grub-editenv.c: Likewise.
26927 * util/grub-emu.c: Likewise.
26928 * util/grub-fstest.c: Likewise.
26929 * util/grub-mkdevicemap.c: Likewise.
26930 * util/grub-mkfont.c: Likewise.
26931 * util/grub-mkrelpath.c: Likewise.
26932 * util/grub-pe2elf.c: Likewise.
26933 * util/grub-probe.c: Likewise.
26934 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
26935 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26936 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26937
26938 * util/misc.c: Include `"progname.h"'.
26939 (progname): Remove variable.
26940 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
26941
26942 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26943
26944 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
26945 printf and print a newline after the menuentry header line.
26946 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26947
26948 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26949
26950 autoconf >= 2.60 support $(localedir).
26951
26952 * INSTALL: Note that autoconf 2.60 is required.
26953 * configure.ac (AC_PREREQ): Bump to 2.60.
26954 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
26955 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
26956
26957 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
26958
26959 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
26960 aclocal is run.
26961
26962 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26963
26964 * normal/main.c (grub_normal_read_line): Fix off-by-one
26965 buffer overflow.
26966
26967 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26968
26969 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
26970 "parser.grub" in grub_command_execute() call.
26971
26972 2009-11-24 Carles Pina i Estany <carles@pina.cat>
26973
26974 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
26975 * conf/i386-efi.rmk: Likewise.
26976 * conf/i386-ieee1275.rmk: Likewise.
26977 * conf/i386-pc.rmk: Likewise.
26978 * conf/powerpc-ieee1275.rmk: Likewise.
26979 * conf/sparc64-ieee1275.rmk: Likewise.
26980 * conf/x86_64-efi.rmk: Likewise.
26981 * gettext/gettex.c: Include <grub/i18n.h>.
26982 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
26983 here ...
26984 * include/grub/i18n.h: ... to here
26985 * include/grub/i18n.h: ... to here.
26986 * kern/misc.c: Include <grub/i18n.h>
26987 (grub_gettext_dummy): Move above user.
26988
26989 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26990
26991 * util/Makefile.in (install-local): Convert a `for' into a normal
26992 shell expansion.
26993
26994 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
26995
26996 * autogen.sh: Add automake call.
26997 * config.guess: Remove.
26998 * config.sub: Likewise.
26999 * install-sh: Likewise.
27000
27001 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27002
27003 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
27004
27005 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27006
27007 * util/Makefile.in (install-local): Convert a make `$(foreach)'
27008 function to a normal shell `for'.
27009
27010 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27011
27012 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27013
27014 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27015
27016 * util/grub-mkrelpath.c: New file.
27017 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
27018 (grub_mkrelpath_SOURCES): New variable.
27019 * include/grub/util/misc.h: New function prototype.
27020 * util/misc.c (make_system_path_relative_to_its_root): New function.
27021
27022 * util/grub-mkconfig_lib.in (bindir): New variable.
27023 (grub_mkrelpath): Likewise.
27024 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
27025
27026 * util/probe.c (probe): Make the file path relative to its root.
27027 Change a info message to use the GRUB path. Enable again the
27028 check if we can read the file with GRUB facilities.
27029
27030 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
27031 to its root.
27032
27033 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27034
27035 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
27036 platform.
27037
27038 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27039
27040 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
27041 strncmp().
27042
27043 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27044
27045 * util/getroot.c (grub_util_is_dmraid): New function.
27046 (grub_util_get_dev_abstraction): Treat dmraid and multipath
27047 devices as normal ones, not as LVM.
27048
27049 2009-11-23 Carles Pina i Estany <carles@pina.cat>
27050
27051 * conf/common.rmk: Add grub-gettext_lib target and updates
27052 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
27053 LDFLAGS.
27054 * gettext/gettext.c: New file. (Reads mo files).
27055 * include/grub/file.h (grub_file_pread): New prototype.
27056 * include/grub/i18n.h (_): New prototype.
27057 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
27058 prototypes.
27059 * kern/misc.c (grub_gettext_dummy): New function.
27060 * normal/menu_text.c: Include <grub/i18n.h>.
27061 * normal/menu_text.c (print_timeout): Gettexttize string.
27062 * normal/menu_text.c (print_message): Gettexttize string.
27063 * po/POTFILES: Add `normal/menu_text.c'.
27064 * po/ca.po: Add new translations.
27065 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
27066 gettext module and defines locale_dir and lang in grub.cfg.
27067 * NEWS: Add gettext support.
27068
27069 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27070
27071 * util/hostdisk.c: Include `<grub/i18n.h>'.
27072 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
27073 (make_device_name): Rewrite using asprintf.
27074 (convert_system_partition_to_system_disk): Replace 0 with NULL.
27075 (find_system_device): If a device is not found, generate one just
27076 by reusing the OS path name.
27077 (read_device_map): Make it permissible for device.map not to exist.
27078
27079 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27080
27081 * script/sh/execute.c: Move from here ...
27082 * script/execute.c: ... to here. Update all users.
27083 * script/sh/function.c: Move from here ...
27084 * script/function.c: ... to here. Update all users.
27085 * script/sh/lexer.c: Move from here ...
27086 * script/lexer.c: ... to here. Update all users.
27087 * script/sh/main.c: Move from here ...
27088 * script/main.c: ... to here. Update all users.
27089 * script/sh/parser.y: Move from here ...
27090 * script/parser.y: ... to here. Update all users.
27091 * script/sh/script.c: Move from here ...
27092 * script/script.c: ... to here. Update all users.
27093
27094 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27095
27096 * configure.ac: Detect all `emu' platforms. Define
27097 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
27098 --enable-grub-emu logic. Disable include/grub/machine
27099 symlink on `emu' platforms.
27100
27101 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
27102 * gensymlist.sh.in: Likewise.
27103
27104 * include/grub/i386/coreboot/machine.h: Remove file.
27105 * include/grub/i386/efi/machine.h: Likewise.
27106 * include/grub/i386/ieee1275/machine.h: Likewise.
27107 * include/grub/i386/pc/machine.h: Likewise.
27108 * include/grub/i386/qemu/machine.h: Likewise.
27109 * include/grub/powerpc/ieee1275/machine.h: Likewise.
27110 * include/grub/sparc64/ieee1275/machine.h: Likewise.
27111 * include/grub/x86_64/efi/machine.h: Likewise.
27112
27113 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
27114 * commands/halt.c: Likewise.
27115 * commands/reboot.c: Likewise.
27116 * include/grub/autoefi.h: Likewise.
27117 * include/grub/i386/at_keyboard.h: Likewise.
27118 * include/grub/i386/kernel.h: Likewise.
27119 * include/grub/i386/loader.h: Likewise.
27120 * include/grub/i386/pc/memory.h: Likewise.
27121 * kern/dl.c: Likewise.
27122 * kern/i386/coreboot/init.c: Likewise.
27123 * loader/i386/bsd.c: Likewise.
27124 * loader/i386/linux.c: Likewise.
27125 * loader/multiboot_loader.c: Likewise.
27126 * term/i386/pc/serial.c: Likewise.
27127 * term/usb_keyboard.c: Likewise.
27128
27129 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
27130 `<grub/machine/machine.h>'
27131 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
27132 * util/misc.c: Remove `<grub/machine/machine.h>' and
27133 `<grub/machine/time.h>'.
27134
27135 * Makefile.in (enable_grub_emu): Remove variable.
27136 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
27137
27138 * conf/any-emu.rmk: New file.
27139 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
27140 (grub_emu_init.c): Move from here ...
27141 * conf/any-emu.rmk: ... to here.
27142
27143 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
27144 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
27145 * conf/any-emu.rmk: ... to here.
27146
27147 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27148
27149 * include/grub/parser.h (grub_parser_register): Document need
27150 of `name' parameter.
27151 * normal/main.c (grub_normal_read_line): Simplify prompt string.
27152 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
27153 "sh" to "grub".
27154
27155 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27156
27157 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
27158 `$(XGETTEXT)'.
27159 * include/grub/i18n.h (N_): New macro.
27160 * util/mkisofs/mkisofs.h: Likewise.
27161 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
27162 around N_().
27163 (usage): Use gettext() to translate help strings when printing them.
27164
27165 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27166
27167 Based on patch from Bean
27168 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
27169
27170 * video/efi_fb.c: New file.
27171 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
27172 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
27173 variables.
27174 * conf/x86_64-efi.rmk: Likewise.
27175
27176 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
27177
27178 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
27179 * util/i386/pc/grub-setup.c: Likewise.
27180
27181 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
27182
27183 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
27184 <hurd/fs.h>
27185 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
27186 file_get_storage_info to implement grub_guess_root_device.
27187
27188 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
27189
27190 * Makefile.in (target): Use make's builtin $(shell) function
27191 instead of calling directly $(SHELL) to create the locale directories,
27192 inside the $(foreach) function.
27193
27194 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
27195
27196 * util/grub-mkrescue.in: Print an error and usage if output option
27197 has not been given.
27198
27199 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
27200
27201 Patch from Loïc Minier <loic.minier@ubuntu.com>.
27202 * util/grub.d/30_os-prober.in: Cope with Linux entries where
27203 root and /boot are on different devices.
27204
27205 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27206
27207 Fix build for srcdir != objdir.
27208
27209 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
27210 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
27211 $(srcdir).
27212 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
27213 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
27214 reference for input.
27215
27216 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27217
27218 * util/grub-mkrescue.in: Use source directory direcly (without copiing
27219 or hardlinking it). Remove -J option, Joliet is not compatible with
27220 multiple source directories.
27221
27222 2009-11-21 Carles Pina i Estany <carles@pina.cat>
27223 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27224
27225 * util/grub-mkrescue.in: Recognize `--override-directory' option.
27226 (process_input_dir): New function. Process an arbitrary input
27227 directory.
27228 Misc adjustments to support both "override mode" and system-wide mode.
27229
27230 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
27231
27232 * configure.ac (UNIFONT_BDF): Rename to ...
27233 (FONT_SOURCE): ... this. Update all users.
27234
27235 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
27236
27237 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
27238 to the list of unifont files to look for.
27239
27240 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27241
27242 Patch from Joe Auricchio <jauricchio@gmail.com>
27243 * commands/minicmd.c (grub_mini_cmd_clear): New function.
27244 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
27245 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
27246
27247 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
27248
27249 * Makefile.in (install-local): Add a missing backslash.
27250
27251 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
27252
27253 * include/grub/x86_64/io.h: New file.
27254
27255 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27256
27257 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
27258 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
27259 Include `"progname.h"'.
27260 (main): Initialize gettext.
27261 * util/i386/pc/grub-setup.c: Gettexttize.
27262 * util/i386/pc/grub-mkimage.c: Likewise.
27263
27264 * Makefile.in (po/*.po): Redefine as ...
27265 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
27266
27267 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
27268
27269 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27270
27271 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
27272 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
27273 (program_name): Remove.
27274 (main): Initialize gettext support.
27275 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
27276 Include `<libintl.h>'.
27277 (_): New macro.
27278
27279 * util/mkisofs/eltorito.c: Gettexttize.
27280 * util/mkisofs/joliet.c: Likewise.
27281 * util/mkisofs/mkisofs.c: Likewise.
27282 * util/mkisofs/multi.c: Likewise.
27283 * util/mkisofs/rock.c: Likewise.
27284 * util/mkisofs/tree.c: Likewise.
27285 * util/mkisofs/write.c: Likewise.
27286
27287 * po/POTFILES: Update with new files.
27288
27289 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27290
27291 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
27292 * util/mkisofs/iso9660.h: Likewise.
27293 * util/mkisofs/joliet.c: Likewise.
27294 * util/mkisofs/mkisofs.c: Likewise.
27295 * util/mkisofs/mkisofs.h: Likewise.
27296 * util/mkisofs/rock.c: Likewise.
27297 * util/mkisofs/tree.c: Likewise.
27298 * util/mkisofs/write.c: Likewise.
27299
27300 * util/mkisofs/eltorito.c (rcsid): Remove.
27301 * util/mkisofs/hash.c: Likewise.
27302 * util/mkisofs/joliet.c: Likewise.
27303 * util/mkisofs/name.c: Likewise.
27304 * util/mkisofs/rock.c: Likewise.
27305 * util/mkisofs/tree.c: Likewise.
27306 * util/mkisofs/write.c: Likewise.
27307
27308 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27309
27310 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
27311 instead of static allocation.
27312 * util/mkisofs/match.h: Likewise.
27313
27314 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27315
27316 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
27317 and `util/grub.d/10_linux.in'.
27318 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
27319 translatable Shell files.
27320
27321 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27322
27323 * Makefile.in ($(srcdir)/aclocal.m4): New target.
27324
27325 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27326
27327 * INSTALL: Document Automake is needed for bootstrap.
27328 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
27329 * util/grub.d/10_kfreebsd.in (bindir): New variable.
27330 Add gettext initialization.
27331 (kfreebsd_entry): Make menuentry output translatable.
27332
27333 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27334
27335 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
27336 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
27337 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
27338 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
27339 (LINGUAS): Auto-generate using `po/LINGUAS'.
27340 * po/LINGUAS: New file.
27341
27342 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27343
27344 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
27345 other things).
27346 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
27347 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
27348 bindtextdomain() calls for gettext initialization.
27349
27350 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27351
27352 * gnulib/progname.c: New file (imported from Gnulib).
27353 * gnulib/progname.h: Likewise.
27354 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27355 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
27356 (usage): Replace `progname' with `program_name'.
27357 (main): Use set_program_name() for program name initialization.
27358
27359 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27360
27361 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
27362 from here ...
27363 * Makefile.in (CPPFLAGS): ... to here.
27364
27365 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27366
27367 * aclocal.m4: Move from here ...
27368 * acinclude.m4: ... to here.
27369 * autogen.sh: Add call to `aclocal'.
27370 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
27371
27372 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27373
27374 * Makefile.in (CLEANFILES): Add `po/*.mo'.
27375 (LINGUAS): New variable.
27376 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
27377 (install-local): Install MO files.
27378 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
27379 * include/grub/i18n.h: New file.
27380 * po/POTFILES: New file.
27381 * po/ca.po: New file.
27382 * util/grub.d/10_linux.in (bindir): New variable.
27383 Add gettext initialization.
27384 (linux_entry): Make menuentry output translatable.
27385 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
27386 (usage): Make --help output translatable.
27387 (main): Initialize gettext.
27388
27389 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27390
27391 * import_gcry.py: New file (written by Vladimir with minor
27392 adjustments).
27393 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
27394 ciphers.
27395 * INSTALL: Document that Python is required for bootstrap.
27396
27397 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27398
27399 Import ciphers from libgcrypt 1.4.4.
27400
27401 * lib/libgcrypt/cipher/ChangeLog
27402 * lib/libgcrypt/cipher/ac.c
27403 * lib/libgcrypt/cipher/arcfour.c
27404 * lib/libgcrypt/cipher/bithelp.h
27405 * lib/libgcrypt/cipher/blowfish.c
27406 * lib/libgcrypt/cipher/camellia-glue.c
27407 * lib/libgcrypt/cipher/camellia.c
27408 * lib/libgcrypt/cipher/camellia.h
27409 * lib/libgcrypt/cipher/cast5.c
27410 * lib/libgcrypt/cipher/cipher.c
27411 * lib/libgcrypt/cipher/crc.c
27412 * lib/libgcrypt/cipher/des.c
27413 * lib/libgcrypt/cipher/dsa.c
27414 * lib/libgcrypt/cipher/ecc.c
27415 * lib/libgcrypt/cipher/elgamal.c
27416 * lib/libgcrypt/cipher/hash-common.c
27417 * lib/libgcrypt/cipher/hash-common.h
27418 * lib/libgcrypt/cipher/hmac-tests.c
27419 * lib/libgcrypt/cipher/md.c
27420 * lib/libgcrypt/cipher/md4.c
27421 * lib/libgcrypt/cipher/md5.c
27422 * lib/libgcrypt/cipher/primegen.c
27423 * lib/libgcrypt/cipher/pubkey.c
27424 * lib/libgcrypt/cipher/rfc2268.c
27425 * lib/libgcrypt/cipher/rijndael-tables.h
27426 * lib/libgcrypt/cipher/rijndael.c
27427 * lib/libgcrypt/cipher/rmd.h
27428 * lib/libgcrypt/cipher/rmd160.c
27429 * lib/libgcrypt/cipher/rsa.c
27430 * lib/libgcrypt/cipher/seed.c
27431 * lib/libgcrypt/cipher/serpent.c
27432 * lib/libgcrypt/cipher/sha1.c
27433 * lib/libgcrypt/cipher/sha256.c
27434 * lib/libgcrypt/cipher/sha512.c
27435 * lib/libgcrypt/cipher/tiger.c
27436 * lib/libgcrypt/cipher/twofish.c
27437 * lib/libgcrypt/cipher/whirlpool.c
27438
27439 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27440
27441 Fix build for systems without error().
27442
27443 * gnulib/error.c: New file (imported from Gnulib).
27444 * gnulib/error.h: Likewise.
27445 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
27446 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
27447 (this variable is now used by error()).
27448
27449 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27450
27451 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
27452 instead of relying that char is signed.
27453
27454 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
27455
27456 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
27457 blocksize different from specified.
27458 (grub_pxefs_read): Likewise.
27459
27460 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27461
27462 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
27463
27464 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
27465 (grub_ata_readwrite): Likewise. Update 2 format strings.
27466 (grub_atapi_read): Likewise.
27467
27468 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
27469 * conf/i386.rmk (pkglib_MODULES): ... to here ...
27470 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
27471 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
27472 (ata_mod_LDFLAGS): Move from here ...
27473 * conf/i386.rmk: ... to here ...
27474 * conf/x86_64-efi.rmk: ... and here.
27475 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
27476 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
27477
27478 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27479
27480 Relicense multiboot.h, with RMS' blessing.
27481
27482 * include/multiboot.h: Change to X11 license.
27483
27484 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
27485
27486 Support --version in grub-mkisofs.
27487
27488 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
27489 (OPTION_VERSION): New macro.
27490 (ld_options): Recognize --version.
27491 (usage): Move `program_name' from here ...
27492 (program_name): ... to here. Add `static' qualifier.
27493 (main): Recognize `OPTION_VERSION'.
27494
27495 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
27496
27497 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
27498 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
27499
27500 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27501
27502 Fix help2man generation for mkisofs.
27503
27504 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
27505 (usage): Send output to stdout (rather than stderr).
27506
27507 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27508
27509 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
27510 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27511 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
27512 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27513 (bin_SCRIPTS): Add `grub-mkfloppy'.
27514 (grub_mkfloppy_SOURCES): New variable.
27515
27516 * util/grub-mkrescue.in: New file.
27517 * util/i386/pc/grub-mkfloppy.in: New file.
27518
27519 * util/i386/coreboot/grub-mkrescue.in: Remove.
27520 * util/i386/pc/grub-mkrescue.in: Remove.
27521
27522 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27523
27524 * include/grub/multiboot.h (struct grub_multiboot_header): Move
27525 from here ...
27526 * include/multiboot.h (struct multiboot_header): ... to here. Update
27527 all users.
27528 * include/grub/multiboot.h (struct grub_multiboot_info): Move
27529 from here ...
27530 * include/multiboot.h (struct multiboot_info): ... to here. Update
27531 all users.
27532 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
27533 from here ...
27534 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
27535 Update all users.
27536 * include/grub/multiboot.h (struct grub_mod_list): Move
27537 from here ...
27538 * include/multiboot.h (struct multiboot_mod_list): ... to here.
27539 Update all users.
27540
27541 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27542
27543 * include/multiboot2.h (multiboot_word): Rename from this ...
27544 (multiboot2_word): ... to this. Update all users.
27545 (multiboot_header): Rename from this ...
27546 (multiboot2_header): ... to this. Update all users.
27547 (multiboot_tag_header): Rename from this ...
27548 (multiboot2_tag_header): ... to this. Update all users.
27549 (multiboot_tag_start): Rename from this ...
27550 (multiboot2_tag_start): ... to this. Update all users.
27551 (multiboot_tag_name): Rename from this ...
27552 (multiboot2_tag_name): ... to this. Update all users.
27553 (multiboot_tag_module): Rename from this ...
27554 (multiboot2_tag_module): ... to this. Update all users.
27555 (multiboot_tag_memory): Rename from this ...
27556 (multiboot2_tag_memory): ... to this. Update all users.
27557 (multiboot_tag_unused): Rename from this ...
27558 (multiboot2_tag_unused): ... to this. Update all users.
27559 (multiboot_tag_end): Rename from this ...
27560 (multiboot2_tag_end): ... to this. Update all users.
27561
27562 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27563
27564 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
27565 this platform we should support Multiboot1 first.
27566
27567 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
27568 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
27569 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
27570
27571 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27572
27573 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
27574 of write calls (converting them to fwrite() if they aren't already).
27575 (get_torito_desc): Likewise.
27576 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
27577
27578 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27579
27580 * util/i386/pc/grub-install.in: Move from here ...
27581 * util/grub-install.in: ... to here. Update all users.
27582
27583 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
27584
27585 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
27586
27587 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27588
27589 Support for El Torito without floppy emulation.
27590
27591 * util/mkisofs/eltorito.c: Include `<errno.h>'.
27592 (init_boot_catalog): Improve error handling.
27593 (get_torito_desc): Don't use floppy emulation unless requested by
27594 user. Patch boot information table when requested via
27595 `-boot-info-table'.
27596 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
27597 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
27598 (use_boot_info_table): New variables.
27599 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
27600 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
27601 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
27602 `--eltorito-emul-floppy'.
27603 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
27604 and `OPTION_ELTORITO_EMUL_FLOPPY'.
27605 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
27606 (use_boot_info_table, get_731): New prototypes.
27607 * util/mkisofs/write.c (get_731): New function.
27608
27609 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
27610
27611 Fix the generation of the man page.
27612
27613 * util/pc/i386/grub-install.in: Source
27614 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
27615
27616 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27617
27618 Large file support for grub-mkisofs.
27619
27620 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
27621 * util/mkisofs/mkisofs.c (next_extent, last_extent)
27622 (session_start): Upgrade type to `uint64_t'. Update all users.
27623 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
27624 (struct directory_entry): Upgrade type of `starting_block' and
27625 `size' to `uint64_t'. Update all users.
27626 (struct deferred): Remove unused structure.
27627 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
27628 Update all users.
27629 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
27630 file is larger than `UINT32_MAX'.
27631 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
27632 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
27633 return value.
27634 (struct deferred_write): Upgrade type of `extent' and `size' to
27635 `uint64_t'. Update all users.
27636 (last_extent_written): Upgrade type to `uint64_t'. Update all
27637 users.
27638 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
27639 Update all users. Upgrade type of `remain' to `int64_t' and
27640 `use' to `size_t'. Use error() to handle fread() errors.
27641 (write_files): Rely on write_one_file() rather than calling
27642 xfwrite() directly.
27643
27644 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
27645
27646 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
27647
27648 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27649
27650 * util/mkisofs/fnmatch.c: Remove.
27651 * util/mkisofs/getopt1.c: Likewise.
27652 * util/mkisofs/getopt.c: Likewise.
27653 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
27654 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
27655 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
27656 `gnulib/getopt1.c' and `gnulib/getopt.c'.
27657 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
27658
27659 * configure.ac: Detect `mingw32msvc' host_os.
27660 Check for lstat(), getuid() and getgid().
27661
27662 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
27663 instances of `u_char' with `uint8_t'.
27664
27665 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
27666 [!HAVE_GETUID] (getuid): New function (stub).
27667 [!HAVE_GETGID] (getgid): Likewise.
27668 [!HAVE_LSTAT] (lstat): Likewise.
27669 [!S_IROTH] (S_IROTH): New macro (dummy).
27670 [!S_IRGRP] (S_IRGRP): Likewise.
27671
27672 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27673
27674 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
27675 conditional expression).
27676
27677 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27678
27679 Import from Gnulib.
27680
27681 * gnulib/fnmatch.c: New file.
27682 * gnulib/fnmatch.h: Likewise.
27683 * gnulib/fnmatch_loop.c: Likewise.
27684 * gnulib/getopt.c: Likewise.
27685 * gnulib/getopt.h: Likewise.
27686 * gnulib/getopt1.c: Likewise.
27687 * gnulib/getopt_int.h: Likewise.
27688 * gnulib/gettext.h: Likewise.
27689
27690 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27691
27692 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
27693 * normal/handler.c (read_handler_list): Likewise.
27694
27695 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27696
27697 Misc cleanup.
27698
27699 * kern/command.c (grub_register_command_prio): Use
27700 grub_zalloc() instead of explicitly zeroing data.
27701 * kern/list.c: Include `<grub/mm.h>'.
27702 (grub_named_list_find): Replace `0' with `NULL'.
27703 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
27704 (fs_module_list): Change type to `grub_named_list_t'. Update all
27705 users.
27706 * normal/dyncmd.c (read_command_list): Add space between function
27707 call and parenthesis.
27708 * normal/handler.c (read_handler_list): Likewise.
27709
27710 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27711
27712 * normal/auth.c (punishment_delay): Moved from here ...
27713 (grub_auth_strcmp): ... to here (inside function).
27714
27715 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27716
27717 * include/grub/list.h (struct grub_named_list): Remove `const'
27718 qualifier from `name'.
27719 (struct grub_prio_list): Likewise.
27720
27721 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27722
27723 * normal/auth.c: Include `<grub/time.h>'.
27724 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
27725
27726 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27727
27728 * normal/auth.c (punishment_delay): New variable.
27729 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
27730 (grub_auth_check_authentication): Punish failed login attempts with
27731 an incremental (2^N) delay.
27732
27733 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27734
27735 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
27736 path with $(srcdir).
27737
27738 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27739
27740 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
27741
27742 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27743
27744 * util/i386/coreboot/grub-mkrescue.in: New file.
27745 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
27746 variables.
27747
27748 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
27749 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
27750 * configure.ac: Add header and function checks to satisfy grub-mkisofs
27751 requirements.
27752 * util/mkisofs/defaults.h: New file.
27753 * util/mkisofs/eltorito.c: Likewise.
27754 * util/mkisofs/exclude.h: Likewise.
27755 * util/mkisofs/fnmatch.c: Likewise.
27756 * util/mkisofs/getopt.c: Likewise.
27757 * util/mkisofs/getopt1.c: Likewise.
27758 * util/mkisofs/hash.c: Likewise.
27759 * util/mkisofs/include/fctldefs.h: Likewise.
27760 * util/mkisofs/include/mconfig.h: Likewise.
27761 * util/mkisofs/include/prototyp.h: Likewise.
27762 * util/mkisofs/include/statdefs.h: Likewise.
27763 * util/mkisofs/iso9660.h: Likewise.
27764 * util/mkisofs/joliet.c: Likewise.
27765 * util/mkisofs/match.c: Likewise.
27766 * util/mkisofs/match.h: Likewise.
27767 * util/mkisofs/mkisofs.c: Likewise.
27768 * util/mkisofs/mkisofs.h: Likewise.
27769 * util/mkisofs/multi.c: Likewise.
27770 * util/mkisofs/name.c: Likewise.
27771 * util/mkisofs/rock.c: Likewise.
27772 * util/mkisofs/tree.c: Likewise.
27773 * util/mkisofs/write.c: Likewise.
27774
27775 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27776
27777 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
27778 being insecure.
27779
27780 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27781
27782 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
27783 `grub-mkimage' (and use $0 when possible).
27784
27785 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27786
27787 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
27788 error message for excessively large memory map.
27789
27790 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27791
27792 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
27793 executable bit.
27794
27795 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27796
27797 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
27798 message for coreboot users.
27799
27800 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
27801
27802 Fix build with GNU gold.
27803
27804 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
27805 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
27806 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
27807 link addresses.
27808 * aclocal.m4: Likewise.
27809
27810 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
27811
27812 * configure.ac (AC_PREREQ): Bump to 2.59d.
27813 * INSTALL: Make it more clear when Autoconf and Ruby are
27814 needed and when to run `./autogen.sh'.
27815
27816 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27817
27818 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
27819 OSes.
27820
27821 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27822
27823 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
27824
27825 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27826
27827 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
27828 giving it to GNU Mach.
27829
27830 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27831
27832 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
27833 GNU partition number to get internal GRUB partition number.
27834
27835 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27836
27837 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
27838 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
27839
27840 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
27841
27842 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
27843 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
27844 case.
27845
27846 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
27847
27848 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
27849
27850 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27851
27852 Fix build problem.
27853
27854 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
27855 `-isystem=$(srcdir)/include'.
27856
27857 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27858
27859 * util/i386/pc/grub-install.in: Remove hint that device.map should be
27860 checked (grub-install doesn't currently rely on it).
27861
27862 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
27863
27864 Revert SVN r2660.
27865
27866 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
27867 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27868 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
27869 * conf/i386-ieee1275.rmk: Likewise.
27870 * conf/i386-pc.rmk: Likewise.
27871 * conf/powerpc-ieee1275.rmk: Likewise.
27872 * conf/sparc64-ieee1275.rmk: Likewise.
27873 * conf/x86_64-efi.rmk: Likewise.
27874
27875 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27876
27877 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
27878
27879 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27880
27881 * include/grub/misc.h: Stop checking for APPLE_CC.
27882
27883 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27884
27885 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
27886 doesn't cause an infinite call loop.
27887
27888 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
27889
27890 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
27891 strings.
27892
27893 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27894
27895 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
27896 variable.
27897 * Makefile.in: Likewise.
27898
27899 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27900
27901 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
27902
27903 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27904
27905 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
27906
27907 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27908
27909 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
27910
27911 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27912
27913 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
27914 from here ...
27915 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
27916
27917 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27918
27919 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
27920 in $(MAKEINFO) invocation. This makes it clear in output that
27921 errors are being ignored.
27922
27923 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27924
27925 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
27926 from here ...
27927 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27928 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
27929 * conf/i386-ieee1275.rmk: Likewise.
27930 * conf/i386-pc.rmk: Likewise.
27931 * conf/powerpc-ieee1275.rmk: Likewise.
27932 * conf/sparc64-ieee1275.rmk: Likewise.
27933 * conf/x86_64-efi.rmk: Likewise.
27934
27935 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27936
27937 * util/grub-editenv.c (main): If only a command is given, use
27938 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
27939 (usage): FILENAME is now optional and has a default.
27940
27941 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27942
27943 Improve grub-mkconfig performance when there are several menu
27944 entries on a single filesystem.
27945
27946 * util/grub.d/10_linux.in (linux_entry): Cache the output of
27947 prepare_grub_to_access_device.
27948 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27949 * util/grub.d/30_os-prober.in: Likewise.
27950
27951 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27952
27953 * util/grub.d/10_freebsd.in: Remove.
27954 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
27955 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
27956
27957 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27958
27959 * docs/grub.cfg: Fix example usage of *BSD loaders.
27960
27961 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27962
27963 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
27964 grub_util_error() call.
27965
27966 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27967
27968 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
27969 `reserved_first_sector' member.
27970 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
27971 `reserved_first_sector' to 1.
27972 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
27973 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
27974 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
27975 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
27976 filesystems which begin at first sector.
27977 (options): New option --skip-fs-probe.
27978 (main): Handle --skip-fs-probe and pass it to setup().
27979
27980 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27981
27982 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
27983 (memset): Fix function prototype.
27984
27985 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27986 2009-10-25 Vasily Averin <vvs@parallels.com>
27987
27988 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
27989 `dirent.direntlen == 0'.
27990
27991 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27992
27993 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
27994 `cpio'.
27995 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
27996
27997 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27998
27999 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
28000 `__trampoline_setup' and `__ucmpdi2'.
28001 * include/grub/powerpc/libgcc.h: Only export symbols for functions
28002 that libgcc provides.
28003
28004 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28005
28006 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
28007 * include/grub/sparc64/libgcc.h (memset): Likewise.
28008 * include/grub/misc.h (memset, memcmp): New function prototypes.
28009
28010 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28011
28012 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
28013 `cpio'.
28014 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
28015
28016 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28017
28018 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
28019 * docs/grub.cfg: Compensate for recent change in multiboot
28020 loader (since 2009-08-14 it won't pass filename to payload).
28021 * util/grub.d/10_hurd.in: Likewise.
28022
28023 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
28024
28025 * config.guess: Update to latest version from config git
28026 repository.
28027 * config.sub: Likewise.
28028
28029 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
28030
28031 Fix build on sparc64.
28032
28033 * configure.ac: Perform checks for libgcc symbols before
28034 adding `-nostdlib' to LDFLAGS.
28035
28036 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
28037
28038 Let user specify OpenBSD root device.
28039
28040 * loader/i386/bsd.c (openbsd_root): New variable.
28041 (openbsd_opts): New option 'root'.
28042 (OPENBSD_ROOT_ARG): New macro.
28043 (grub_openbsd_boot): Use 'openbsd_root'.
28044 (grub_cmd_openbsd): Fill 'openbsd_root'.
28045
28046 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
28047
28048 * NEWS: Misc adjustments.
28049
28050 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
28051
28052 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
28053
28054 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
28055
28056 * configure.ac: Bump version to 1.97.
28057
28058 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
28059
28060 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
28061 -mno-3dnow on x86 architectures. Some toolchains enable these
28062 features by default, but they rely on registers that aren't enabled
28063 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
28064
28065 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
28066
28067 Make entry text a bit more readable.
28068
28069 * util/grub.d/10_linux.in: Add `with' before `Linux'.
28070
28071 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28072
28073 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
28074
28075 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28076
28077 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
28078 operations.
28079
28080 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28081
28082 * configure.ac: Add missing dollar.
28083
28084 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28085
28086 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
28087
28088 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
28089 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
28090 exports.
28091 * include/grub/sparc64/libgcc.h: Likewise. Use
28092 preprocessor conditionals.
28093
28094 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28095
28096 * conf/common.rmk (grub-dumpbios): Remove rule.
28097 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
28098 * util/grub-dumpbios.in: Remove file.
28099
28100 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28101
28102 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
28103 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
28104
28105 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
28106 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
28107 users.
28108
28109 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
28110 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
28111 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
28112 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
28113 users.
28114
28115 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
28116
28117 * term/tparm.c: Switch to GPLv3.
28118
28119 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28120
28121 * include/grub/i386/cpuid.h: Add header protection.
28122
28123 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28124
28125 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
28126
28127 * include/grub/i386/cpuid.h: New file.
28128 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
28129 (has_longmode): Rename to ...
28130 (grub_cpuid_has_longmode): ... this. Update all users. Remove
28131 `static' attribute.
28132 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
28133 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
28134 on a CPU that doesn't implement AMD64 instruction set.
28135
28136 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
28137
28138 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
28139 that version.texi is rebuilt on version number changes.
28140
28141 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
28142
28143 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
28144 Fixes bug #27602.
28145
28146 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
28147
28148 * util/i386/pc/grub-install.in: Source
28149 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
28150 that the --grub-probe option will work.
28151 * util/sparc64/ieee1275/grub-install.in: Likewise.
28152
28153 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
28154
28155 * configure.ac: Bump version to 1.97~beta4.
28156
28157 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
28158
28159 Resync grub-mkdevicemap in x86_64-efi.
28160
28161 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
28162 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
28163 `util/devicemap.c'.
28164
28165 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
28166
28167 * util/grub-editenv.c (create_envblk_file): Write new block with a
28168 .new suffix and then rename it into place, to ensure atomic
28169 creation.
28170
28171 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
28172
28173 Do not automatically install headers.
28174
28175 * Makefile.in (include_DATA): Remove. Update all users.
28176
28177 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
28178
28179 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
28180 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
28181
28182 * util/osdetect.lua: Remove.
28183 * script/lua/lauxlib.c: Likewise.
28184 * script/lua/ldebug.c: Likewise.
28185 * script/lua/grub_main.c: Likewise.
28186 * script/lua/lauxlib.h: Likewise.
28187 * script/lua/ldebug.h: Likewise.
28188 * script/lua/ltablib.c: Likewise.
28189 * script/lua/liolib.c: Likewise.
28190 * script/lua/lstrlib.c: Likewise.
28191 * script/lua/lualib.h: Likewise.
28192 * script/lua/ldo.c: Likewise.
28193 * script/lua/ldump.c: Likewise.
28194 * script/lua/ldo.h: Likewise.
28195 * script/lua/loslib.c: Likewise.
28196 * script/lua/lundump.c: Likewise.
28197 * script/lua/grub_lib.c: Likewise.
28198 * script/lua/ldblib.c: Likewise.
28199 * script/lua/lundump.h: Likewise.
28200 * script/lua/lmem.c: Likewise.
28201 * script/lua/grub_lib.h: Likewise.
28202 * script/lua/lmathlib.c: Likewise.
28203 * script/lua/lstate.c: Likewise.
28204 * script/lua/ltm.c: Likewise.
28205 * script/lua/lvm.c: Likewise.
28206 * script/lua/lmem.h: Likewise.
28207 * script/lua/lstate.h: Likewise.
28208 * script/lua/ltm.h: Likewise.
28209 * script/lua/ltable.c: Likewise.
28210 * script/lua/lvm.h: Likewise.
28211 * script/lua/llex.c: Likewise.
28212 * script/lua/lgc.c: Likewise.
28213 * script/lua/grub_lua.h: Likewise.
28214 * script/lua/loadlib.c: Likewise.
28215 * script/lua/lfunc.c: Likewise.
28216 * script/lua/lopcodes.c: Likewise.
28217 * script/lua/lparser.c: Likewise.
28218 * script/lua/ltable.h: Likewise.
28219 * script/lua/llex.h: Likewise.
28220 * script/lua/lgc.h: Likewise.
28221 * script/lua/lfunc.h: Likewise.
28222 * script/lua/lbaselib.c: Likewise.
28223 * script/lua/lopcodes.h: Likewise.
28224 * script/lua/lparser.h: Likewise.
28225 * script/lua/lzio.c: Likewise.
28226 * script/lua/linit.c: Likewise.
28227 * script/lua/lobject.c: Likewise.
28228 * script/lua/llimits.h: Likewise.
28229 * script/lua/lstring.c: Likewise.
28230 * script/lua/lzio.h: Likewise.
28231 * script/lua/lapi.c: Likewise.
28232 * script/lua/lcode.c: Likewise.
28233 * script/lua/lua.h: Likewise.
28234 * script/lua/lobject.h: Likewise.
28235 * script/lua/lstring.h: Likewise.
28236 * script/lua/lapi.h: Likewise.
28237 * script/lua/lcode.h: Likewise.
28238 * script/lua/luaconf.h: Likewise.
28239
28240 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
28241
28242 * docs/grub.texi (Command-line and menu entry commands): Document
28243 date and echo commands.
28244
28245 2009-09-24 Pavel Roskin <proski@gnu.org>
28246
28247 * include/grub/kernel.h (struct grub_module_header): Remove
28248 `grub_module_header_types'. Make `type' unsigned. Make `size'
28249 32-bit on all platforms.
28250 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
28251 8-bit field. Use grub_host_to_target32() for `size'.
28252 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
28253 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
28254 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
28255
28256 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28257
28258 Fix "lost keypress" bug in at_keyboard.
28259
28260 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
28261 Checks for readyness of input buffer (without flushing it).
28262 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
28263 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
28264
28265 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28266
28267 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
28268 size check within GRUB_MACHINE_PCBIOS section.
28269
28270 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28271
28272 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
28273 return value.
28274 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
28275 KEYBOARD_ISREADY check.
28276 (grub_at_keyboard_checkkey): Rename to ...
28277 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
28278 Remove gratuitous cast.
28279
28280 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
28281
28282 * configure.ac: Call AC_PROG_MKDIR_P.
28283 * Makefile.in (docs/stamp-vti): Create docs directory. Create
28284 version.texi in $(builddir) rather than $(srcdir).
28285 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
28286 to makeinfo's @include search path.
28287
28288 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
28289
28290 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
28291
28292 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
28293
28294 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
28295 for `*.dpkg-new'.
28296
28297 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
28298
28299 Build info documentation. Some code borrowed from Automake.
28300
28301 * configure.ac: Check for makeinfo.
28302 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
28303 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
28304 docs/version.texi.
28305 (MOSTLYCLEANFILES): Add vti.tmp.
28306 (docs/version.texi, docs/stamp-vti): Update automatically.
28307 (docs/grub.info): Build info documentation. Use --force and ignore
28308 errors for now.
28309 (all-local): Add $(INFOS).
28310 (install-local): Install info files.
28311 (uninstall): Uninstall info files.
28312 * docs/version.texi: Remove from revision control. This file is
28313 automatically generated on build now.
28314 * gendistlist.sh: Add `*.info'.
28315
28316 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
28317
28318 * kern/term.c: Fix indentation.
28319
28320 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
28321
28322 * util/hostdisk.c: Fix a comment.
28323
28324 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
28325
28326 Fix regression introduced in r2539.
28327
28328 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
28329 to 0xA1.
28330
28331 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
28332
28333 * util/grub.d/30_os-prober.in: Don't throw away stderr from
28334 os-prober. Under normal operation, it does not print anything to
28335 stderr; if it does, we need to debug it, and throwing away stderr
28336 makes that excessively difficult.
28337
28338 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
28339
28340 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
28341
28342 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28343
28344 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
28345 AC_LANG_PROGRAM from autoconf.
28346 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
28347 prototypes (fixes warning).
28348
28349 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
28350 `--disable-werror' was used.
28351
28352 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28353
28354 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
28355 uninitialized `lastaddr'.
28356
28357 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
28358
28359 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
28360
28361 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
28362
28363 * commands/test.c (get_fileinfo): Return immediately if
28364 grub_fs_probe fails.
28365
28366 2009-09-14 José Martínez <xosemp@gmail.com>
28367
28368 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
28369
28370 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
28371
28372 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
28373 output.
28374
28375 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
28376
28377 * configure.ac: Remove --enable-grub-pe2elf. Only build
28378 grub-pe2elf when needed by the build system itself.
28379 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
28380
28381 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28382
28383 * configure.ac: Bump version to 1.97~beta3.
28384 * docs/version.texi: Likewise.
28385
28386 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28387
28388 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
28389 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
28390 from here ...
28391 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
28392 (grub_linux_setup_video): ... to here (with some adjustments).
28393
28394 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28395
28396 Fix memory corruption issue (spotted by Colin Watson).
28397
28398 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
28399 causing returned size to be stored in an incorrect memory location.
28400 Fix use of uninitialized value when storing the returned size.
28401
28402 2009-09-12 Yves Blusseau <blusseau@zetam.org>
28403
28404 Change clean rules to properly remove files
28405
28406 * genmk.rb: add new clean rules
28407 * Makefile.in (clean): add the new targets
28408 (mostlyclean): likewise
28409
28410 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
28411
28412 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
28413 to grub_uint64_t.
28414 * fs/ntfs.c (init_file): Understand 64-bit sizes for
28415 non-resident files.
28416
28417 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
28418
28419 * configure.ac: Don't look for help2man when cross-compiling. Fixes
28420 part of bug #27349.
28421
28422 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
28423
28424 * util/grub-mkconfig.in: Make the created config mode 400 and
28425 print a warning if it fails.
28426
28427 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
28428
28429 * util/grub.d/40_custom.in: Ask user to type custom entries below
28430 comment, rather than below 'exec tail' line.
28431
28432 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
28433
28434 * util/grub.d/40_custom.in: Make sure that the explanatory text is
28435 visible in grub.cfg.
28436
28437 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
28438
28439 * util/grub.d/40_custom.in: Make it a little clearer how to use this
28440 file.
28441
28442 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
28443
28444 * docs/grub.cfg: Add an example menu entry for memtest86+.
28445
28446 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
28447
28448 * config.guess: Update to latest version from config git.
28449 * config.sub: Likewise.
28450
28451 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
28452
28453 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
28454 unknown-command case. Fixes bug #27320.
28455
28456 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
28457
28458 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
28459 `help' if the command exists.
28460
28461 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
28462
28463 * INSTALL: Require GCC 4.1.3 or later.
28464
28465 2009-09-06 Yves Blusseau <blusseau@zetam.org>
28466
28467 * Makefile.in (RMKFILES): add i386-qemu.rmk
28468 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
28469 $(srcdir)/stamp-h.in
28470
28471 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
28472
28473 * util/grub-probe.c (probe): Comment out buggy codepath, which
28474 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
28475 should be re-enabled after 1.97.
28476
28477 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
28478
28479 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
28480 find searches for.
28481
28482 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
28483
28484 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
28485 unnecessary calls to grub_error.
28486
28487 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
28488
28489 * NEWS: Mention `keystatus' and Unicode fonts.
28490
28491 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
28492
28493 * configure.ac: Bump version to 1.97~beta2.
28494 * docs/version.texi: Likewise.
28495
28496 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28497
28498 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
28499 containing unwind information in some cases where it previously did
28500 not. Use -fno-dwarf2-cfi-asm if available to restore the old
28501 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
28502 discussion.
28503
28504 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
28505
28506 Embedding loadenv module into grub-emu
28507
28508 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
28509 commands/loadenv.c
28510 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
28511 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
28512 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
28513 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
28514 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
28515 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
28516
28517 2009-09-03 Magnus Granberg <zorry@ume.nu>
28518
28519 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
28520 include -fPIE in the default specs.
28521 * configure.ac: Check if pie_possible is yes and add -fno-PIE
28522 to TARGET_CFLAGS.
28523
28524 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
28525
28526 * INSTALL: Note that GNU Bison 2.3 or later is required.
28527
28528 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28529
28530 * kern/i386/pc/startup.S: Fix typo.
28531
28532 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
28533
28534 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
28535 according to GCS.
28536
28537 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28538
28539 * docs/grub.texi (Naming convention): Describe one-based partition
28540 numbering.
28541 (Device syntax): Likewise.
28542 (File name syntax): Likewise.
28543 (Block list syntax): Likewise.
28544 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
28545 menu.lst.
28546 (File name syntax): Likewise.
28547 (Command-line and menu entry commands): Document acpi, blocklist,
28548 crc, export, insmod, keystatus, ls, set, and unset commands.
28549
28550 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28551
28552 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
28553 to avoid implying that only one of --shift, --ctrl, or --alt may be
28554 used.
28555
28556 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28557
28558 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
28559 rather than comparing against S_IFREG, which will almost never work.
28560
28561 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
28562
28563 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
28564 (write_blocklists): Likewise.
28565
28566 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
28567
28568 * script/lua/grub_lua.h (fputs): Supply a format string as the first
28569 argument to grub_printf.
28570
28571 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
28572
28573 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
28574 non GNU test.
28575
28576 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28577
28578 * kern/file.c (grub_file_read): Spelling fix
28579
28580 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28581
28582 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
28583 loading of headers in some cases.
28584
28585 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
28586
28587 * configure.ac: Bump version to 1.97~beta1.
28588 * docs/version.texi: Likewise.
28589
28590 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
28591
28592 * include/grub/i386/xnu.h: Add license header.
28593 include grub/err.h explicitly.
28594
28595 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28596
28597 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
28598 to `ufs' in the vfs.root.mountfrom kernel parameter.
28599
28600 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28601
28602 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
28603
28604 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
28605 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
28606
28607 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
28608 `ARRAY_SIZE' macro.
28609
28610 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28611
28612 * kern/file.c (grub_file_read): Check offset.
28613 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
28614 * fs/jfs.c (grub_jfs_read_file): Likewise.
28615 * fs/ntfs.c (grub_ntfs_read): Likewise.
28616 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
28617 * fs/minix.c (grub_minix_read_file): Correct offset check.
28618 * fs/ufs.c (grub_ufs_read_file): Likewise.
28619
28620 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28621
28622 * term/i386/pc/console.c (bios_data_area): Cast
28623 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
28624
28625 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28626
28627 1-bit optimised blitters.
28628
28629 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
28630 prototype.
28631 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28632 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28633 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28634 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28635 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28636 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28637 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
28638 function.
28639 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28640 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28641 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28642 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28643 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28644 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28645 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
28646 when possible.
28647 * video/video.c (grub_video_get_blit_format): Return
28648 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
28649
28650 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28651
28652 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
28653 the first argument to grub_printf.
28654
28655 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28656 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
28657
28658 Add `getkeystatus' terminal method. Add a new `keystatus' command
28659 to query it.
28660
28661 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
28662 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
28663 modifier key bitmasks.
28664 (struct grub_term_input): Add `getkeystatus' member.
28665 (grub_getkeystatus): Add prototype.
28666 * kern/term.c (grub_getkeystatus): New function.
28667
28668 * include/grub/i386/pc/memory.h
28669 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
28670 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
28671 Data Area layout.
28672 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
28673 (grub_console_term_input): Set `getkeystatus' member.
28674 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
28675 constants.
28676 (grub_usb_keyboard_getreport): Likewise.
28677 (grub_usb_keyboard_checkkey): Likewise.
28678 (grub_usb_keyboard_getkeystatus): New function.
28679 (grub_usb_keyboard_term): Set `getkeystatus' member.
28680
28681 * commands/keystatus.c: New file.
28682 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
28683 (keystatus_mod_SOURCES): New variable.
28684 (keystatus_mod_CFLAGS): Likewise.
28685 (keystatus_mod_LDFLAGS): Likewise.
28686 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
28687 commands/keystatus.c.
28688 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28689 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28690 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28691 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28692 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28693 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28694
28695 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28696
28697 Split befs.mod and afs.mod into *_be.mod and *.mod
28698
28699 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
28700 (grub_fstest_SOURCES): Likewise.
28701 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
28702 (afs_be_mod_SOURCES): New variable.
28703 (afs_be_mod_CFLAGS): Likewise.
28704 (afs_be_mod_LDFLAGS): Likewise.
28705 (befs_be_mod_SOURCES): Likewise.
28706 (befs_be_mod_CFLAGS): Likewise.
28707 (befs_be_mod_LDFLAGS): Likewise.
28708 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
28709 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28710 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28711 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28712 (grub_emu_SOURCES): Likewise.
28713 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28714 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28715 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28716 * fs/afs_be.c: New file.
28717 * fs/befs_be.c: New file.
28718 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
28719 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
28720 (U16): Replaced with ...
28721 (grub_afs_to_cpu16): ...this. All users updated.
28722 (U32): Replaced with ...
28723 (grub_afs_to_cpu32): ...this. All users updated.
28724 (U64): Replaced with ...
28725 (grub_afs_to_cpu64): ...this. All users updated.
28726 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
28727 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
28728 (grub_afs_validate_sblock): Check only one endianness.
28729 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28730 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28731 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28732 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28733 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28734 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28735 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28736 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28737
28738 2009-08-26 Bean <bean123ch@gmail.com>
28739
28740 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
28741 64-bit number.
28742 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
28743 (grub_xfs_inode_block): Change return type to grub_uint64_t.
28744 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
28745
28746 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28747
28748 NetBSD memory map support.
28749
28750 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
28751 (grub_netbsd_btinfo_mmap_header): New structure.
28752 (grub_netbsd_btinfo_mmap_entry): Likewise.
28753 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
28754
28755 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28756
28757 Enable bsd.mod on coreboot.
28758
28759 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
28760 (bsd_mod_SOURCES): New variable.
28761 (bsd_mod_CFLAGS): Likewise.
28762 (bsd_mod_LDFLAGS): Likewise.
28763 (bsd_mod_ASFLAGS): Likewise.
28764 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
28765 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
28766
28767 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28768
28769 Cleanup NetBSD root support.
28770
28771 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
28772 grub_bsd_get_device.
28773 Fix typo.
28774
28775 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
28776
28777 * util/grub.d/00_header.in: Move check for the video backend of
28778 gfxterm from here ...
28779 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
28780 a suitable video backend.
28781
28782 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28783
28784 Fix breakage in grub-setup.
28785
28786 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
28787 "msdos_partition_map".
28788
28789 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28790
28791 Fix breakage in normal/auth.c.
28792
28793 * normal/auth.c (grub_iswordseparator): New function.
28794
28795 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28796
28797 Authentication support.
28798
28799 * commands/password.c: New file.
28800 * conf/common.rmk (pkglib_MODULES): Add password.mod.
28801 (password_mod_SOURCES): New variable.
28802 (password_mod_CFLAGS): Likewise.
28803 (password_mod_LDFLAGS): Likewise.
28804 (normal_mod_SOURCES): Add normal/auth.c.
28805 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
28806 normal/auth.c.
28807 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28808 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28809 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28810 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28811 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28812 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28813 * include/grub/auth.h: New file.
28814 * include/grub/err.h (grub_err_t): New enum value
28815 GRUB_ERR_ACCESS_DENIED.
28816 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
28817 'users'.
28818 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
28819 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
28820 users updated.
28821 * normal/auth.c: New file.
28822 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
28823 (grub_cmdline_run): Don't allow to go to command line without
28824 authentication.
28825 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
28826 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
28827 menuentry without superuser rights.
28828 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
28829 user isn't a superuser.
28830
28831 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28832
28833 Save space by inlining misc.c functions.
28834
28835 * kern/misc.c (grub_iswordseparator): Made static.
28836 * kern/misc.c (grub_strcat): Moved from here ...
28837 * include/grub/misc.h (grub_strcat): ... here. Inlined.
28838 * kern/misc.c (grub_strncat): Moved from here ...
28839 * include/grub/misc.h (grub_strncat): ... here. Inlined.
28840 * kern/misc.c (grub_strcasecmp): Moved from here ...
28841 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
28842 * kern/misc.c (grub_strncasecmp): Moved from here ...
28843 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
28844 * kern/misc.c (grub_isalpha): Moved from here ...
28845 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
28846 * kern/misc.c (grub_isdigit): Moved from here ...
28847 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
28848 * kern/misc.c (grub_isgraph): Moved from here ...
28849 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
28850 * kern/misc.c (grub_tolower): Moved from here ...
28851 * include/grub/misc.h (grub_tolower): ... here. Inlined.
28852
28853 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28854
28855 * script/sh/function.c (grub_script_function_find): Cut error message
28856 not to flood terminal.
28857 * script/sh/lexer.c (grub_script_yylex): Remove command line length
28858 limit.
28859 * script/sh/script.c (grub_script_arg_add): Duplicate string.
28860
28861 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
28862
28863 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
28864 `report' grub_uint8_t *.
28865 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
28866 Use a 50-millisecond timeout rather than just repeating
28867 grub_usb_keyboard_getreport 50 times.
28868 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
28869
28870 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28871
28872 Rename *_partition_map to part_*
28873
28874 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
28875 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
28876 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
28877 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
28878 All users updated.
28879 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
28880 All users updated.
28881 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
28882 * util/grub-probe.c (probe_partmap): Don't transform partition name
28883 to get module name.
28884
28885 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28886
28887 Fix OpenBSD and NetBSD support.
28888
28889 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
28890 memory address conflict.
28891 (OPENBSD_MMAP_ACPI): New definition.
28892 (OPENBSD_MMAP_NVS): Likewise.
28893 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
28894 and OPENBSD_MMAP_NVS.
28895 Add memory map terminator
28896 Explicit cast when calling grub_unix_real_boot.
28897 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
28898
28899 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28900
28901 Let user specify NetBSD root device.
28902
28903 * loader/i386/bsd.c (netbsd_root): New variable.
28904 (netbsd_opts): New option 'root'.
28905 (NETBSD_ROOT_ARG): New macro.
28906 (grub_netbsd_boot): Use 'netbsd_root'.
28907 (grub_bsd_unload): Free 'netbsd_root'.
28908 (grub_cmd_netbsd): Fill 'netbsd_root'.
28909
28910 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28911
28912 Support for 64-bit NetBSD.
28913
28914 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
28915 point when booting non-FreeBSD.
28916
28917 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28918
28919 Support --no-smp and --no-acpi for NetBSD.
28920
28921 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
28922 (NETBSD_AB_NOACPI): Likewise.
28923 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
28924 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
28925
28926 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28927
28928 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
28929 errors.
28930 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
28931 errors. Call grub_error when needed.
28932
28933 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28934
28935 * commands/search.c (search_fs): Try searching without autoload first.
28936 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
28937 filesystem module explicitly for faster booting.
28938
28939 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28940
28941 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
28942
28943 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28944
28945 * util/grub.d/30_os-prober.in: Disable os-prober if
28946 `GRUB_DISABLE_OS_PROBER' was set to true.
28947
28948 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
28949
28950 * partmap/pc.c: Rename to ...
28951 * partmap/msdos.c: ... this. Update all users.
28952 (grub_pc_partition_map): Rename to ...
28953 (grub_msdos_partition_map): ... this. Update all users.
28954
28955 * parttool/pcpart.c: Rename to ...
28956 * parttool/msdospart.c: ... this. Update all users.
28957
28958 * include/grub/pc_partition.h: Rename to ...
28959 * include/grub/msdos_partition.h: ... this. Update all users.
28960 (grub_pc_partition_bsd_entry): Rename to ...
28961 (grub_msdos_partition_bsd_entry): ... this. Update all users.
28962 (grub_pc_partition_disk_label): Rename to ...
28963 (grub_msdos_partition_disk_label): ... this. Update all users.
28964 (grub_pc_partition_entry): Rename to ...
28965 (grub_msdos_partition_entry): ... this. Update all users.
28966 (grub_pc_partition_mbr): Rename to ...
28967 (grub_msdos_partition_mbr): ... this. Update all users.
28968 (grub_pc_partition): Rename to ...
28969 (grub_msdos_partition): ... this. Update all users.
28970 (grub_pc_partition_is_empty): Rename to ...
28971 (grub_msdos_partition_is_empty): ... this. Update all users.
28972 (grub_pc_partition_is_extended): Rename to ...
28973 (grub_msdos_partition_is_extended): ... this. Update all users.
28974 (grub_pc_partition_is_bsd): Rename to ...
28975 (grub_msdos_partition_is_bsd): ... this. Update all users.
28976
28977 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
28978 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
28979 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
28980 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
28981 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
28982 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
28983 (gpt_mod_LDFLAGS): Rename to ...
28984 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
28985 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
28986 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
28987 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
28988 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
28989 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
28990 (part_gpt_mod_LDFLAGS): ... this.
28991 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
28992 `pcpart.mod' to `msdospart.mod'.
28993 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
28994 to ...
28995 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
28996 (msdospart_mod_LDFLAGS): ... this.
28997
28998 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28999
29000 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
29001 (openbsd_opts): Likewise.
29002 (netbsd_opts): Likewise.
29003 (freebsd_flags): Added 0 terminator.
29004 (openbsd_flags): Likewise.
29005 (netbsd_flags): Likewise.
29006 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
29007 (grub_cmd_freebsd): Transformed into extended command.
29008 (grub_cmd_openbsd): Likewise.
29009 (grub_cmd_netbsd): Likewise.
29010 (cmd_freebsd): Changed type to grub_extcmd_t.
29011 (cmd_openbsd): Likewise.
29012 (cmd_netbsd): Likewise.
29013 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
29014 grub_cmd_openbsd as extended commands.
29015 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
29016 cmd_netbsd and cmd_openbsd
29017
29018 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
29019
29020 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
29021
29022 2009-08-21 Pavel Roskin <proski@gnu.org>
29023
29024 * Makefile.in (install-local): When checking if a file is in the
29025 build directory, use "test -e" to detect symlinks.
29026
29027 * Makefile.in (install-local): Remove all files in
29028 $(DESTDIR)$(pkglibdir) before installing new files there.
29029
29030 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
29031
29032 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
29033 grub-mkelfimage.
29034
29035 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
29036
29037 * util/grub-mkconfig.in: Don't use gfxterm by default if not
29038 explicitly specified by the user.
29039
29040 2009-08-18 Pavel Roskin <proski@gnu.org>
29041
29042 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
29043 grub_uint8_t pointer for data.
29044 * include/grub/fbutil.h (struct grub_video_fbblit_info):
29045 Likewise.
29046 * video/fb/fbutil.c: Remove unnecessary casts.
29047
29048 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
29049
29050 VBE cleanup.
29051
29052 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
29053 (grub_vbe_set_video_mode): Save active mode info
29054 only after setting the mode.
29055 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
29056 second argument.
29057
29058 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
29059
29060 Rename variables for clarity.
29061
29062 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
29063 (active_vbe_mode_info): ... this. All users updated.
29064 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
29065 All users updated.
29066 (initial_mode): Rename to ...
29067 (initial_vbe_mode): ... this. All users updated.
29068 (mode_in_use): Rename to ..
29069 (vbe_mode_in_use): ... this. All users updated.
29070 (mode_list): Rename to ..
29071 (vbe_mode_list): ... this. All users updated.
29072 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
29073 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
29074 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
29075 'mode_list_size' to 'vbe_mode_list_size'.
29076 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
29077 'best_mode_info' to 'best_vbe_mode_info' and
29078 'best_mode' to 'best_vbe_mode'
29079
29080 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
29081
29082 Remove duplicate grub_video_fb_get_video_ptr.
29083
29084 * include/grub/fbutil.h (get_data_ptr): Rename to ...
29085 (grub_video_fb_get_video_ptr): ... this.
29086 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
29087 * video/fb/fbutil.c: Add comment about addressing.
29088 (get_data_ptr): Rename to ...
29089 (grub_video_fb_get_video_ptr): ... this. All users updated.
29090 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
29091
29092 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29093
29094 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
29095 grub_dprintf() that was just added.
29096
29097 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29098
29099 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
29100 (DEFAULT_VIDEO_MODE): Remove macros.
29101 (grub_linux_boot): Remove assumption that Linux has FB support,
29102 and use "text" as default video mode.
29103
29104 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
29105
29106 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
29107 grub_dprintf.
29108 * fs/fat.c (grub_fat_read_data): Likewise.
29109
29110 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29111
29112 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
29113 payload.
29114 (grub_module): Likewise.
29115
29116 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29117
29118 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
29119 mbi->cmdline but free playground.
29120
29121 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29122
29123 Handle group offset on UFS1.
29124
29125 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
29126 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
29127
29128 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29129
29130 Split ufs.mod into ufs1.mod and ufs2.mod.
29131
29132 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
29133 (grub_fstest_SOURCES): Likewise.
29134 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
29135 (ufs_mod_SOURCES): Remove.
29136 (ufs_mod_CFLAGS): Likewise.
29137 (ufs_mod_LDFLAGS): Likewise.
29138 (ufs1_mod_SOURCES): New variable.
29139 (ufs1_mod_CFLAGS): Likewise.
29140 (ufs1_mod_LDFLAGS): Likewise.
29141 (ufs2_mod_SOURCES): New variable.
29142 (ufs2_mod_CFLAGS): Likewise.
29143 (ufs2_mod_LDFLAGS): Likewise.
29144 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
29145 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29146 Likewise.
29147 (grub_emu_SOURCES): Likewise.
29148 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29149 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29150 (grub_setup_SOURCES): Likewise.
29151 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29152 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
29153 (grub_setup_SOURCES): Likewise.
29154 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29155 Likewise.
29156 * fs/ufs2.c: New file.
29157 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
29158
29159 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29160
29161 Framebuffer split.
29162
29163 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
29164 subsystem at the end.
29165 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
29166 (video_fb_mod_SOURCES): New variable.
29167 (video_fb_mod_CFLAGS): Likewise.
29168 (video_fb_mod_LDFLAGS): Likewise.
29169 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
29170 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
29171 * video/i386/pc/vbeblit.c: Moved from here ...
29172 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
29173 * video/i386/pc/vbefill.c: Moved from here ...
29174 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
29175 * video/i386/pc/vbeutil.c: Moved from here ...
29176 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
29177 * include/grub/i386/pc/vbeblit.h: Moved from here ...
29178 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
29179 * include/grub/i386/pc/vbefill.h: Moved from here ...
29180 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
29181 * include/grub/i386/pc/vbeutil.h: Moved from here ...
29182 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
29183 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
29184 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
29185 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
29186 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
29187 (grub_video_adapter): Added 'get_info_and_fini'.
29188 (grub_video_get_info_and_fini): New prototype.
29189 (grub_video_set_mode): make modestring const char *.
29190 * loader/i386/linux.c (grub_linux_setup_video): Use
29191 grub_video_get_info_and_fini.
29192 (grub_linux_boot): Move modesetting just before booting.
29193 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
29194 grub_video_get_info_and_fini.
29195 * video/i386/pc/vbe.c: Moved framebuffer part ...
29196 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
29197 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
29198 grub_video_fbstd_colors and grub_video_fb_set_palette.
29199 (grub_video_vbe_init): Clear 'framebuffer' variable and use
29200 grub_video_fb_init.
29201 (grub_video_vbe_fini): Use grub_video_fb_fini.
29202 (grub_video_vbe_setup): Use framebuffer.render_target instead of
29203 render_target and use grub_video_fb_set_active_render_target and
29204 grub_video_fb_set_palette.
29205 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
29206 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
29207 (grub_video_vbe_adapter): Use framebuffer.
29208 * video/video.c (grub_video_get_info_and_fini): New function.
29209 (grub_video_set_mode): Make modestring const char *.
29210 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
29211 values are already initialised.
29212
29213 2009-08-14 Pavel Roskin <proski@gnu.org>
29214
29215 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
29216 ABS and APPLE_CC.
29217 * boot/i386/pc/diskboot.S: Likewise.
29218 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
29219 sectors allow compilation on MacOSX.
29220 * conf/i386-pc.rmk: Enable unconditional compilation of
29221 lnxboot.img.
29222
29223 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
29224
29225 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
29226 * util/grub.d/00_header.in: Enter interruptible sleep if
29227 GRUB_HIDDEN_TIMEOUT is set.
29228
29229 2009-08-13 Yves Blusseau <blusseau@zetam.org>
29230
29231 * include/grub/symbol.h: Add the LOCAL macro.
29232 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
29233 starting with "L_".
29234
29235 2009-08-13 Pavel Roskin <proski@gnu.org>
29236
29237 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
29238 any modern compilers we support.
29239
29240 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
29241 Use local labels starting with "L_" so that Apple assembler
29242 knows they are local.
29243
29244 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
29245
29246 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
29247 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
29248 (bsd_kernel_types): ... this enum.
29249
29250 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
29251 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
29252 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
29253
29254 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
29255 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
29256 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
29257 messages.
29258
29259 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29260
29261 * util/grub-dumpdevtree: Moved from here ...
29262 * util/i386/efi/grub-dumpdevtree: ... to here.
29263 (hexify): New function. Converts a string to its hex version.
29264 Generate hex versions of "efi" and "device-properties" by calling
29265 hexify() on the ASCII strings rather than by hardcoding numbers.
29266
29267 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29268
29269 * fs/jfs.c: Update copyright year.
29270
29271 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
29272
29273 * util/grub.d/00_header.in: Fix a comment.
29274 * util/grub.d/10_linux.in: Likewise.
29275 * util/grub.d/10_windows.in: Likewise.
29276 * util/grub.d/10_hurd.in: Likewise.
29277
29278 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
29279
29280 * util/grub-mkconfig.in: Allow the user to specify the used font
29281 with GRUB_FONT.
29282
29283 2009-08-08 Pavel Roskin <proski@gnu.org>
29284
29285 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
29286 available, xfs.mod needs it now.
29287
29288 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
29289 the "g" modifier in sed when the intention is to strip something
29290 once. This fixes comparison of kernels with multiple dashes.
29291
29292 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
29293 on it. Add missing space before closing bracket. Fix
29294 misleading formatting.
29295
29296 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29297
29298 * docs/grub.texi: Major overhaul. Remove all sections that are
29299 specific to GRUB Legacy, or mostly composed of Legacy-specific
29300 information.
29301
29302 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29303
29304 * docs/version.texi: New file. Provides version information for
29305 grub.texi.
29306
29307 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29308
29309 * docs/grub.texi: Update CVS information to SVN.
29310 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
29311
29312 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29313
29314 * util/grub-mkconfig.in: Remove a wrong `fi'.
29315
29316 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29317
29318 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
29319 (grub_jfs_uuid): New function.
29320 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
29321
29322 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29323
29324 * util/grub-mkconfig_lib.in (font_path): Move the functionality
29325 of it to ...
29326 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
29327 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
29328
29329 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29330
29331 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
29332 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
29333 Update all users.
29334
29335 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
29336 not just "vmlinu[zx]".
29337 Moved from here ...
29338 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
29339 all users.
29340
29341 * util/grub.d/10_linux.in (find_latest): Moved from here ...
29342 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
29343 all users.
29344
29345 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29346
29347 * util/grub.d/10_freebsd.in: Use an absolute device path for
29348 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
29349
29350 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
29351
29352 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
29353 handling of multiple abstraction modules.
29354
29355 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
29356
29357 Fix a bug resulting in black screen when loading Linux using a
29358 packed video mode.
29359
29360 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
29361 function.
29362
29363 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
29364 (grub_vbe_bios_getset_dac_palette_width): New function.
29365 (grub_vbe_bios_get_dac_palette_width)
29366 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
29367 grub_vbe_bios_getset_dac_palette_width()).
29368
29369 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
29370 check for return status.
29371 (grub_vbe_get_video_mode_info): When getting information for a packed
29372 mode (<= 8 bpp), obtain DAC palette width using
29373 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
29374 {red,green,blue}_mark_size.
29375
29376 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
29377
29378 * commands/search.c (options): Fix help output to match actual code.
29379
29380 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
29381
29382 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
29383 of homegrown code.
29384
29385 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29386
29387 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
29388 on XFS or ReiserFS.
29389
29390 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29391
29392 Support Apple partition map with sector size different from 512 bytes.
29393
29394 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
29395 (apple_partition_map_iterate): Respect 'aheader.blocksize'
29396 and 'apart.partmap_size'.
29397
29398 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29399 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
29400
29401 Fix cpuid command.
29402
29403 * commands/i386/cpuid.c (options): New variable.
29404 (grub_cmd_cpuid): Return real error.
29405 (GRUB_MOD_INIT(cpuid)): Declare options.
29406
29407 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
29408
29409 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
29410 valid.
29411
29412 2009-07-31 Bean <bean123ch@gmail.com>
29413
29414 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
29415 log2_inode.
29416 (grub_fshelp_node): Move inode field to the end.
29417 (grub_xfs_data): Remove inode field.
29418 (grub_xfs_inode_block): Calculate inode size using sblock.
29419 (grub_xfs_inode_offset): Likewise.
29420 (grub_xfs_read_inode): Calculate inode size using sblock.
29421 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
29422 (grub_xfs_iterate_dir): Calculate inode size using sblock.
29423 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
29424 to match inode size.
29425 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
29426 not accessible when data is null.
29427 (grub_xfs_open): Likewise.
29428
29429 2009-07-31 Bean <bean123ch@gmail.com>
29430
29431 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
29432 Don't change pv->disk if it's already set.
29433
29434 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
29435 (grub_raid_register): ... here.
29436 (grub_raid_rescan): Removed.
29437
29438 * include/grub/raid.h (grub_raid_rescan): Removed.
29439
29440 * util/grub-fstest.c: Remove include file <grub/raid.h>.
29441 (fstest): Replace grub_raid_rescan with module fini function followed
29442 by init function.
29443
29444 * util/grub-probe.c: Add include file <grub/raid.h>.
29445 (probe_raid_level): New function.
29446 (probe): Detect abstraction by walking the disk device, support two
29447 level of abstraction (LVM on RAID) when detecting partition map.
29448
29449 2009-07-31 Pavel Roskin <proski@gnu.org>
29450
29451 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
29452 to grub_zalloc(), it was erroneous.
29453 Reported by Bean <bean123ch@gmail.com>
29454
29455 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
29456
29457 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
29458 embedding zone, not only the first one.
29459
29460 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
29461
29462 * term/gfxterm.c (clear_char): New function.
29463 (grub_virtual_screen_setup): Use clear_char.
29464 (scroll_up): Likewise.
29465 (grub_virtual_screen_cls): Likewise.
29466
29467 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
29468
29469 * util/deviceiter.c (get_acceleraid_disk_name): New static
29470 function.
29471 (grub_util_iterate_devices): Handle Accelraid devices.
29472 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
29473
29474 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
29475
29476 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
29477 separator for the suggested gfxpayload string (';' collides with the
29478 parser and needs escaping).
29479
29480 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
29481
29482 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
29483 Clear direction flag before jumping to OS.
29484 (grub_multiboot2_real_boot): Likewise.
29485
29486 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29487
29488 * util/i386/pc/grub-install: Fix parsing of --disk-module
29489 option.
29490
29491 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29492
29493 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
29494 when embedding.
29495
29496 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
29497
29498 * util/grub-mkconfig.in (package_version): New variable.
29499 Use it do display the version.
29500
29501 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29502
29503 * kern/file.c (grub_file_open): Revert to previous check with
29504 grub_errno.
29505
29506 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29507
29508 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
29509 from help line. It's out of sync with code.
29510
29511 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29512
29513 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
29514 entries on failed boot.
29515
29516 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29517
29518 * kern/file.c (grub_file_open): Fix an error check.
29519
29520 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
29521
29522 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
29523 partition map couldn't be identified.
29524
29525 2009-07-23 Pavel Roskin <proski@gnu.org>
29526
29527 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
29528 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
29529 case of little endian words becomes just an optimization.
29530 Respect const modifier.
29531 (md5_final): Use code that doesn't depend on endianness.
29532
29533 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
29534 to avoid loss of upper bits if align is unsigned and shorter
29535 than addr.
29536
29537 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29538
29539 UUID support for UFS
29540
29541 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
29542 (grub_ufs_uuid): New function.
29543 (grub_ufs_fs): add .uuid
29544
29545 2009-07-21 Pavel Roskin <proski@gnu.org>
29546
29547 * kern/dl.c (grub_dl_check_header): Make static.
29548
29549 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
29550
29551 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
29552 add drivemap for Vista. It breaks Windows 7.
29553
29554 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29555
29556 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
29557 128 bytes
29558
29559 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29560
29561 Add BFS support
29562
29563 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
29564 (grub_fstest_SOURCES): Likewise.
29565 (pkglib_MODULES): Add befs.mod.
29566 (befs_mod_SOURCES): New variable.
29567 (befs_mod_CFLAGS): Likewise.
29568 (befs_mod_LDFLAGS): Likewise.
29569 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29570 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29571 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29572 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29573 (grub_setup_SOURCES): Likewise.
29574 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29575 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29576 (grub_setup_SOURCES): Likewise.
29577 * fs/befs.c: New file.
29578 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
29579 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
29580 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
29581 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
29582 (B_KEY_INDEX_ALIGN): New declaration.
29583 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
29584 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
29585 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
29586 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
29587 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
29588 (grub_afs_mount) [MODE_BFS]: Likewise.
29589 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
29590 (grub_afs_fs): Use GRUB_AFS_FSNAME
29591 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
29592 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
29593 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
29594 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
29595
29596 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
29597
29598 * util/getroot.c (find_root_device): Add support for MacOSX.
29599 * util/hostdisk.c: Likewise.
29600
29601 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29602
29603 * font/font.c (find_glyph): Check whether a font is present to avoid
29604 segmentation fault.
29605
29606 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
29607
29608 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
29609
29610 2009-07-20 Pavel Roskin <proski@gnu.org>
29611
29612 * configure.ac: Trim excessively wordy excuses.
29613
29614 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29615
29616 Add symlink, mtime and label support to AtheFS.
29617
29618 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
29619 (grub_afs_iterate_dir): Handle symlinks.
29620 (grub_afs_open): Use grub_afs_read_symlink.
29621 (grub_afs_dir): Likewise.
29622 Pass mtime.
29623 (grub_afs_label): New function.
29624 (grub_afs_fs): Add grub_afs_label.
29625 (grub_afs_read_symlink): New function.
29626
29627 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29628
29629 Fix AtheFS support.
29630
29631 * fs/afs.c: Fix comments style.
29632 (grub_afs_blockrun): Declare as packed.
29633 (grub_afs_datastream): Likewise.
29634 (grub_afs_bnode): Likewise.
29635 (grub_afs_btree): Likewise.
29636 (grub_afs_sblock): Likewise.
29637 Declare `name' as char.
29638 (grub_afs_inode): Declare as packed.
29639 Change void *vnode to grub_uint32_t unused.
29640 (grub_afs_iterate_dir): Check that key_size is positive.
29641 (grub_afs_mount): Don't read superblock twice.
29642 (grub_afs_dir): Don't free node in case of error,
29643 grub_fshelp_find_file already handles this.
29644 (grub_afs_open): Likewise.
29645
29646 2009-07-19 Pavel Roskin <proski@gnu.org>
29647
29648 * Makefile.in: Remove LIBLZO and enable_lzo.
29649 * conf/i386-pc.rmk: Remove lzo support.
29650 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
29651 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
29652 support.
29653 * kern/i386/pc/lzo1x.S: Remove.
29654 * kern/i386/pc/startup.S: Remove lzo support.
29655 * util/i386/pc/grub-mkimage.c: Likewise.
29656
29657 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
29658
29659 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
29660 * fs/xfs.c (grub_xfs_dir): Likewise.
29661 * fs/afs.c (grub_afs_dir): Likewise.
29662 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
29663 (grub_iso9660_open): Likewise.
29664 * fs/jfs.c (grub_jfs_open): Likewise.
29665 * fs/ext2.c (grub_ext2_dir): Likewise.
29666 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
29667 * script/sh/lexer.c (grub_script_yylex): Likewise.
29668
29669 2009-07-16 Pavel Roskin <proski@gnu.org>
29670
29671 * configure.ac: Never add "-c" to CFLAGS.
29672
29673 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
29674
29675 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
29676 grub_cv_cc_efiemu should be used.
29677
29678 * configure.ac: Typo fixes.
29679
29680 * kern/mm.c (grub_zalloc): New function.
29681 (grub_debug_zalloc): Likewise.
29682 * include/grub/mm.h: Declare grub_zalloc() and
29683 grub_debug_zalloc().
29684 * util/misc.c (grub_zalloc): New function.
29685 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
29686 instead of grub_malloc(), remove unneeded initializations.
29687 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
29688 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
29689 * commands/parttool.c (grub_cmd_parttool): Likewise.
29690 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
29691 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
29692 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
29693 * disk/usbms.c (grub_usbms_finddevs): Likewise.
29694 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
29695 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
29696 (grub_cmd_efiemu_pnvram): Likewise.
29697 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
29698 * fs/iso9660.c (grub_iso9660_mount): Likewise.
29699 (grub_iso9660_iterate_dir): Likewise.
29700 * fs/jfs.c (grub_jfs_opendir): Likewise.
29701 * fs/ntfs.c (list_file): Likewise.
29702 (grub_ntfs_mount): Likewise.
29703 * kern/disk.c (grub_disk_open): Likewise.
29704 * kern/dl.c (grub_dl_load_core): Likewise.
29705 * kern/elf.c (grub_elf_file): Likewise.
29706 * kern/env.c (grub_env_context_open): Likewise.
29707 (grub_env_set): Likewise.
29708 (grub_env_set_data_slot): Likewise.
29709 * kern/file.c (grub_file_open): Likewise.
29710 * kern/fs.c (grub_fs_blocklist_open): Likewise.
29711 * loader/i386/multiboot.c (grub_module): Likewise.
29712 * loader/xnu.c (grub_xnu_create_key): Likewise.
29713 (grub_xnu_create_value): Likewise.
29714 * normal/main.c (grub_normal_add_menu_entry): Likewise.
29715 (read_config_file): Likewise.
29716 * normal/menu_entry.c (make_screen): Likewise.
29717 * partmap/sun.c (sun_partition_map_iterate): Likewise.
29718 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
29719 * script/sh/script.c (grub_script_parse): Likewise.
29720 * video/bitmap.c (grub_video_bitmap_create): Likewise.
29721 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
29722 * video/readers/png.c (grub_png_output_byte): Likewise.
29723 (grub_video_reader_png): Likewise.
29724
29725 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29726
29727 Enable all targets that can be built by default
29728
29729 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
29730 grub-mkfont and grub-fstest if they can be built
29731
29732 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29733
29734 Fix hang and segmentation fault in grub-emu-usb
29735
29736 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
29737 * util/usb.c (grub_libusb_devices): likewise
29738 (grub_libusb_init): rename to ...
29739 (GRUB_MOD_INIT (libusb)):...this
29740 (grub_libusb_fini): rename to ..
29741 (GRUB_MOD_FINI (libusb)):...this
29742 * disk/usbms.c (grub_usbms_transfer): fix retry logic
29743 * include/grub/disk.h (grub_raid_init): removed, it's useless
29744 (grub_raid_fini): likewise
29745 (grub_lvm_init): likewise
29746 (grub_lvm_fini): likewise
29747 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
29748 by grub_init_all
29749
29750 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29751
29752 Fix libusb
29753
29754 * Makefile.in (LIBUSB): new macro
29755 * genmk.rb (Utility/print_tail): new method
29756 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
29757 (top level): call util.print_tail at the end.
29758
29759 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29760
29761 Make FreeBSD accept zpool.cache
29762
29763 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
29764 type is /boot/zfs/zpool.cache
29765
29766 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29767
29768 Fix 64-bit efiemu
29769
29770 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
29771 correct wrong typedef
29772 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
29773
29774 2009-07-15 Pavel Roskin <proski@gnu.org>
29775
29776 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
29777 * kern/disk.c (struct grub_disk_cache): Likewise.
29778
29779 * commands/probe.c (options): Typo fix.
29780
29781 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
29782 Increase to 0x5a to accommodate FAT32. Adjust other offsets
29783 accordingly.
29784 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
29785
29786 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
29787 the end of "Error" to make the message more readable.
29788
29789 * boot/i386/pc/boot.S (kernel_segment): Remove.
29790 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
29791 for destination.
29792
29793 * boot/i386/pc/boot.S (boot_version): Remove.
29794 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
29795 Remove.
29796
29797 * include/grub/i386/pc/boot.h: Sort all offsets.
29798 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
29799 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
29800 * boot/i386/pc/boot.S: Assert location of every offset listed in
29801 include/grub/i386/pc/boot.h.
29802
29803 2009-07-13 Pavel Roskin <proski@gnu.org>
29804
29805 * include/grub/i386/coreboot/machine.h: Rename
29806 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
29807 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
29808 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
29809
29810 * kern/dl.c: Force native word size to suppress warnings when
29811 compiling grub-emu.
29812
29813 * kern/device.c (grub_device_iterate): Change struct part_ent to
29814 hold the name, not a pointer to it. Use one grub_malloc() per
29815 partition, not two. Free partition_name if grub_malloc() fails.
29816 Set ents to NULL only before grub_partition_iterate() is called.
29817
29818 2009-07-11 Bean <bean123ch@gmail.com>
29819
29820 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
29821 childname.
29822
29823 2009-07-10 Bean <bean123ch@gmail.com>
29824 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
29825
29826 * kern/ieee1275/openfw.c (grub_children_iterate)
29827 (grub_devalias_iterate): Fix size evaluation for property or path
29828 strings, which was broken since r2132.
29829
29830 2009-07-07 Pavel Roskin <proski@gnu.org>
29831
29832 * commands/search.c (search_file): Merge into ...
29833 (search_fs): ... this. Accept search type as argument.
29834 (grub_cmd_search): Pass search type to search_fs().
29835
29836 * include/grub/util/console.h: New file.
29837 * util/console.c: Use it instead of grub/machine/console.h.
29838 * util/grub-emu.c: Likewise.
29839
29840 * lib/arg.c (find_long_option): Remove.
29841 (find_long): Add `len' argument, make `s' const char *.
29842 (grub_arg_parse): Parse long options in place, not in a
29843 temporary buffer.
29844
29845 2009-07-06 Pavel Roskin <proski@gnu.org>
29846
29847 * commands/search.c (search_fs): Fix potential NULL pointer
29848 dereference.
29849
29850 * commands/search.c (search_fs): Replace QUID macro with quid_fn
29851 function pointer.
29852
29853 2009-07-06 Daniel Mierswa <impulze@impulze.org>
29854
29855 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
29856 comparison.
29857
29858 2009-07-05 Pavel Roskin <proski@gnu.org>
29859
29860 * include/grub/i386/linux.h (struct linux_kernel_params):
29861 Restore padding3, it's still needed.
29862
29863 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
29864 FreeBSD.
29865 * util/osdetect.lua: Likewise.
29866
29867 2009-07-05 Bean <bean123ch@gmail.com>
29868
29869 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
29870
29871 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
29872 (grub_lua_getenv): Likewise.
29873 (grub_lua_setenv): Likewise.
29874 (save_errno): New function.
29875 (push_result): Likewise.
29876 (grub_lua_enum_device): Likewise.
29877 (grub_lua_enum_file): Likewise.
29878 (grub_lua_file_open): Likewise.
29879 (grub_lua_file_close): Likewise.
29880 (grub_lua_file_seek): Likewise.
29881 (grub_lua_file_read): Likewise.
29882 (grub_lua_file_getline): Likewise.
29883 (grub_lua_file_getsize): Likewise.
29884 (grub_lua_file_getpos): Likewise.
29885 (grub_lua_file_eof): Likewise.
29886 (grub_lua_file_exist): Likewise.
29887 (grub_lua_add_menu): Likewise.
29888
29889 * script/lua/grub_lua.h (isupper): New inline function.
29890 (islower): Likewise.
29891 (ispunct): Likewise.
29892 (isxdigit): Likewise.
29893 (strcspn): Change to normal function.
29894 (strpbkr): New function declaration.
29895 (memchr): Likewise.
29896
29897 * script/lua/grub_main.c (scan_str): New function.
29898 (strcspn): Likewise.
29899 (strpbrk): Likewise.
29900 (memchr): Likewise.
29901
29902 * script/lua/linit.c (lualibs): Enable the string library.
29903
29904 * util/osdetect.lua: New file.
29905
29906 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
29907
29908 * include/grub/i386/linux.h (struct linux_kernel_params): Add
29909 `capabilities' member.
29910
29911 2009-07-02 Pavel Roskin <proski@gnu.org>
29912
29913 * genparttoollist.sh: Add missing newline at the end.
29914
29915 2009-07-01 Pavel Roskin <proski@gnu.org>
29916
29917 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
29918
29919 * util/hostdisk.c (open_device): Remove `const' from
29920 `sysctl_size', as sysctlbyname() can change it (in this case it
29921 doesn't actually happen).
29922
29923 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
29924 using signed long int constants.
29925
29926 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
29927 constant to avoid a warning on FreeBSD.
29928
29929 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
29930 where it's needed.
29931
29932 * Makefile.in: Install include/grub/machine symlink.
29933
29934 * Makefile.in: When installing symlinks, use "cp -fR", which
29935 works on FreeBSD and MacOSX.
29936 From Yves Blusseau <cl7m42e02@sneakemail.com>
29937
29938 * kern/dl.c (grub_dl_resolve_symbol): Make static.
29939 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
29940
29941 * util/misc.c: Move grub_reboot() and grub_halt() ...
29942 * util/grub-emu.c: ... here. Make main_env static.
29943 * include/grub/util/misc.h: Remove main_env.
29944
29945 * kern/mm.c: Use correct format to print size_t.
29946
29947 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
29948 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
29949 * kern/powerpc/dl.c: Likewise.
29950 * kern/sparc64/dl.c: Likewise.
29951 * kern/x86_64/dl.c: Likewise.
29952
29953 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29954
29955 Fix grub-emu build on sparc64-ieee1275.
29956
29957 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
29958 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
29959
29960 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29961
29962 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
29963 (grub_reboot, grub_halt): New functions.
29964
29965 * util/i386/pc/misc.c: Delete. Update all users.
29966 * util/sparc64/ieee1275/misc.c: Likewise.
29967 * util/powerpc/ieee1275/misc.c: Likewise.
29968
29969 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29970
29971 * conf/i386.rmk (setjmp_mod_SOURCES)
29972 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
29973 * conf/common.rmk (setjmp_mod_SOURCES)
29974 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
29975 to use $(target_cpu).
29976 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
29977 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
29978 * conf/powerpc-ieee1275.rmk: Likewise.
29979 * conf/sparc64-ieee1275.rmk: Likewise.
29980
29981 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
29982 $(target_cpu) for kern/$(target_cpu)/dl.c.
29983 * conf/i386-efi.rmk: Likewise.
29984 * conf/i386-ieee1275.rmk: Likewise.
29985 * conf/x86_64-efi.rmk: Likewise.
29986 * conf/i386-coreboot.rmk: Likewise.
29987 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
29988 $(target_cpu) for kern/$(target_cpu)/dl.c and for
29989 kern/$(target_cpu)/cache.S.
29990 * conf/sparc64-ieee1275.rmk: Likewise.
29991
29992 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29993
29994 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
29995 type to `grub_uint8_t', and adjust `padding9' accordingly.
29996
29997 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29998
29999 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
30000
30001 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
30002 assembly in final jump, using register constraints.
30003
30004 (grub_linux_boot): For text mode, initialize `have_vga' using
30005 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
30006
30007 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
30008 right before the final jump.
30009
30010 Set `video_mode' to 0x3.
30011
30012 Document initialization of `video_page', `video_mode' and
30013 `video_ega_bx'.
30014
30015 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30016
30017 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
30018 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
30019 and set GRUB_LINUX_FLAG_QUIET appropriately.
30020
30021 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30022
30023 Fix build on Debian / sparc.
30024
30025 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
30026
30027 2009-06-28 Pavel Roskin <proski@gnu.org>
30028
30029 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
30030 fix a warning.
30031
30032 * util/grub.d/10_linux.in: Match SUSE style initrd names.
30033
30034 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30035
30036 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
30037 `err'.
30038
30039 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30040
30041 Revert r2338.
30042
30043 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
30044 file can't be opened. grub_file_open() is already supposed to set
30045 grub_errno / grub_errmsg appropriately.
30046 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30047
30048 2009-06-27 Pavel Roskin <proski@gnu.org>
30049 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30050
30051 * include/grub/dl.h: Include grub/elf.h.
30052 (struct grub_dl): Add symtab field.
30053 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
30054 GRUB_MODULES_MACHINE_READONLY.
30055 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
30056 of the header for read-only modules.
30057 (grub_dl_unload): Free mod->symtab for read-only modules.
30058 * kern/i386/dl.c: Use mod->symtab.
30059 * kern/powerpc/dl.c: Likewise.
30060 * kern/sparc64/dl.c: Likewise.
30061 * kern/x86_64/dl.c: Likewise.
30062
30063 * conf/i386-qemu.rmk: New file.
30064 * kern/i386/qemu/startup.S: Likewise.
30065 * kern/i386/qemu/mmap.c: Likewise.
30066 * boot/i386/qemu/boot.S: Likewise.
30067 * include/grub/i386/qemu/time.h: Likewise.
30068 * include/grub/i386/qemu/serial.h: Likewise.
30069 * include/grub/i386/qemu/kernel.h: Likewise.
30070 * include/grub/i386/qemu/console.h: Likewise.
30071 * include/grub/i386/qemu/boot.h: Likewise.
30072 * include/grub/i386/qemu/init.h: Likewise.
30073 * include/grub/i386/qemu/machine.h: Likewise.
30074 * include/grub/i386/qemu/loader.h: Likewise.
30075 * include/grub/i386/qemu/memory.h: Likewise.
30076
30077 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
30078 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
30079 [qemu] (pkglib_IMAGES): Add `boot.img'.
30080 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
30081 [qemu] (boot_img_FORMAT): New variables.
30082 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
30083 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
30084 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
30085 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30086 [qemu] (kernel_img_FORMAT): New variables.
30087
30088 * configure.ac: Recognise `i386-qemu'.
30089
30090 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
30091 (for no compression).
30092 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
30093 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
30094 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
30095 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
30096 ifdefs).
30097
30098 2009-06-27 Pavel Roskin <proski@gnu.org>
30099
30100 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
30101 read.
30102 * efiemu/prepare32.c: Likewise.
30103 * efiemu/prepare64.c: Likewise.
30104
30105 2009-06-26 Pavel Roskin <proski@gnu.org>
30106
30107 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
30108 * include/grub/elf.h: Define symbols without "32" or "64" based
30109 on GRUB_TARGET_WORDSIZE.
30110 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
30111 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
30112 ELF definitions.
30113 * efiemu/loadcore64.c: Likewise.
30114 * loader/i386/bsd32.c: Likewise.
30115 * loader/i386/bsd64.c: Likewise.
30116 * kern/dl.c: Remove own ELF definitions.
30117 * util/i386/efi/grub-mkimage.c: Likewise.
30118
30119 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
30120
30121 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
30122 segment 0x0 unconditionally, because the reference generated by
30123 GAS is an absolute address.
30124
30125 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30126
30127 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
30128 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
30129
30130 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30131
30132 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
30133 indexes. Check for -f explicitly.
30134 (search_file): Improve error message.
30135 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
30136
30137 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30138
30139 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
30140 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
30141
30142 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30143
30144 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
30145 * conf/i386-ieee1275.rmk: Likewise.
30146 * conf/i386-coreboot.rmk: Likewise.
30147
30148 * kern/i386/pc/startup.S (grub_stop): Remove function.
30149 * kern/i386/ieee1275/startup.S: Likewise.
30150 * kern/i386/coreboot/startup.S: Likewise.
30151 * kern/i386/misc.S (grub_stop): New function.
30152
30153 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30154
30155 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
30156 * kern/i386/realmode.S (real_to_prot): ... to here.
30157
30158 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30159
30160 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
30161 with `kernel.img'.
30162 (kernel_elf_SOURCES): Rename to ...
30163 (kernel_img_SOURCES): ... this.
30164 (kernel_elf_HEADERS): Rename to ...
30165 (kernel_img_HEADERS): ... this. Update all users.
30166 (kernel_elf_ASFLAGS): Rename to ...
30167 (kernel_img_ASFLAGS): ... this.
30168 (kernel_elf_CFLAGS): Rename to ...
30169 (kernel_img_CFLAGS): ... this.
30170 (kernel_elf_LDFLAGS): Rename to ...
30171 (kernel_img_LDFLAGS): ... this.
30172 * conf/i386-coreboot.rmk: Likewise.
30173 * conf/powerpc-ieee1275.rmk: Likewise.
30174
30175 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
30176 with "kernel.img".
30177
30178 2009-06-21 Pavel Roskin <proski@gnu.org>
30179
30180 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
30181 to match nested functions.
30182 * loader/sparc64/ieee1275/linux.c: Likewise.
30183
30184 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
30185
30186 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30187
30188 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
30189 all i386 platforms.
30190
30191 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30192
30193 Fix asm file handling on ELF, and remove workarounds.
30194
30195 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
30196 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
30197 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
30198 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
30199
30200 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
30201
30202 Load BSD ELF modules
30203
30204 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
30205 and loader/i386/bsd64.c
30206 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
30207 (FREEBSD_MODTYPE_ELF_MODULE): New definition
30208 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
30209 (grub_freebsd_load_elfmodule32): New declaration
30210 (grub_freebsd_load_elfmoduleobj64): Likewise
30211 (grub_freebsd_load_elf_meta32): Likewise
30212 (grub_freebsd_load_elf_meta64): Likewise
30213 (grub_freebsd_add_meta): Likewise
30214 (grub_freebsd_add_meta_module): Likewise
30215 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
30216 (grub_freebsd_add_meta_module): Likewise and move module-specific
30217 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
30218 (grub_cmd_freebsd): Add elf-kernel specific parts
30219 based on grub_freebsd_add_meta_module
30220 (grub_cmd_freebsd_module): Add type parsing moved from
30221 grub_freebsd_add_meta_module
30222 (grub_cmd_freebsd_module_elf): New function
30223 (cmd_freebsd_module_elf): New variable
30224 (GRUB_MOD_INIT): Register freebsd_module_elf
30225 * loader/i386/bsd32.c: New file
30226 * loader/i386/bsd64.c: Likewise
30227 * loader/i386/bsdXX.c: Likewise
30228 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
30229 (grub_elf64_load): Likewise
30230 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
30231 All users updated
30232 (grub_elf64_load_hook_t): Likewise
30233
30234 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
30235
30236 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
30237 variable.
30238 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
30239 don't write a menu entry for recovery mode.
30240
30241 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30242
30243 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
30244 after it's no longer needed.
30245
30246 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30247
30248 * include/grub/i386/loader.h (grub_linux_prot_size)
30249 (grub_linux_tmp_addr, grub_linux_real_addr)
30250 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
30251 GRUB_MACHINE_PCBIOS.
30252 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
30253 common grub_util_info() call to ...
30254 (generate_image): ... here.
30255 Fix use of uninitialized memory, comparison of signed with
30256 unsigned integers and memory leak.
30257 Remove bogus module address message.
30258
30259 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
30260
30261 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
30262 grub_raid_register
30263 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
30264
30265 2009-06-19 Pavel Roskin <proski@gnu.org>
30266
30267 * configure.ac: Remove stray AC_MSG_CHECKING.
30268
30269 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
30270
30271 * disk/scsi.c (grub_scsi_open): use continue instead of big if
30272
30273 2009-06-18 Pavel Roskin <proski@gnu.org>
30274
30275 * conf/common.rmk: Add fs_file.mod.
30276 * disk/fs_file.c: New file.
30277 * include/grub/disk.h (enum grub_disk_dev_id): Add
30278 GRUB_DISK_DEVICE_FILE_ID.
30279
30280 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30281
30282 Fix build with Apple's toolchain. Part 2
30283
30284 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
30285 a fake start
30286
30287 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30288
30289 Fix build with Apple's toolchain. Part 1
30290
30291 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
30292 for long calls
30293 * configure.ac: remove a leftover AC_MSG_RESULT
30294 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
30295 Apple's toolchain
30296
30297 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30298
30299 Fix warnings
30300
30301 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
30302 (decomp_block): initialize ch
30303 use grub_memcpy instead of memcpy
30304
30305 2009-06-17 Pavel Roskin <proski@gnu.org>
30306
30307 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
30308 version, use declarations needed to use vga_text as the startup
30309 console.
30310
30311 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
30312 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
30313 the kernel.
30314 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
30315 and grub_at_keyboard_fini(), it's done on module load and
30316 unload.
30317
30318 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
30319
30320 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
30321 file can't be found.
30322 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30323
30324 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30325
30326 Fix newline handling
30327
30328 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
30329 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
30330 (grub_script_yylex): don't segfault on unterminated script
30331 newline terminates command and variable
30332
30333 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30334
30335 avoid double grub_adjust_range call. Bug reported by David Simner
30336
30337 * kern/disk.c (grub_disk_write): change to raw disk access before
30338 calling disk_read
30339
30340 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
30341
30342 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
30343 spaces, for the benefit of help2man.
30344 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30345
30346 2009-06-16 Pavel Roskin <proski@gnu.org>
30347
30348 * kern/i386/halt.c: Include grub/machine/init.h.
30349 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
30350
30351 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
30352
30353 * util/grub.d/30_os-prober.in: Use ${root} in the generated
30354 drivemap menuentry.
30355
30356 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
30357
30358 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
30359 `echo' command.
30360
30361 2009-06-16 Pavel Roskin <proski@gnu.org>
30362
30363 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
30364 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
30365 save %dx, we only need %dl and we never change it.
30366 * boot/i386/pc/cdboot.S: Don't set the root drive.
30367 * boot/i386/pc/pxeboot.S: Likewise.
30368 * include/grub/i386/pc/boot.h: Remove
30369 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
30370 GRUB_BOOT_MACHINE_DRIVE_CHECK.
30371 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
30372 * kern/i386/pc/init.c (make_install_device): Remove references
30373 to grub_root_drive.
30374 * kern/i386/pc/startup.S: Likewise.
30375 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
30376
30377 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30378
30379 xnu_uuid command
30380
30381 * commands/xnu_uuid.c: new file
30382 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
30383 (xnu_uuid_mod_SOURCES): new variable
30384 (xnu_uuid_mod_CFLAGS): likewise
30385 (xnu_uuid_mod_LDFLAGS): likewise
30386 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30387 * conf/i386-ieee1275.rmk: likewise
30388 * conf/i386-pc.rmk: likewise
30389 * conf/powerpc-ieee1275.rmk: likewise
30390 * conf/sparc64-ieee1275.rmk: likewise
30391 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
30392
30393 2009-06-16 Pavel Roskin <proski@gnu.org>
30394
30395 * configure.ac: Avoid '==' in test command, it's not portable.
30396
30397 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30398
30399 Probe command
30400
30401 * commands/probe.c: new file
30402 * conf/common.rmk (pkglib_MODULES): add probe.mod
30403 (probe_mod_SOURCES): new variable
30404 (probe_mod_CFLAGS): likewise
30405 (probe_mod_LDFLAGS): likewise
30406 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30407 * conf/i386-ieee1275.rmk: likewise
30408 * conf/i386-pc.rmk: likewise
30409 * conf/powerpc-ieee1275.rmk: likewise
30410 * conf/sparc64-ieee1275.rmk: likewise
30411
30412 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
30413
30414 Fix handling of string like \"hello\" and "a
30415 b"
30416
30417 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
30418 (grub_script_yylex): fix parsing of quoting, escaping and newline
30419
30420 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
30421
30422 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
30423 handling
30424
30425 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
30426
30427 * util/grub-mkconfig.in: Fix parsing of --output option.
30428
30429 2009-06-12 Pavel Roskin <proski@gnu.org>
30430
30431 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
30432 genmk.rb don't need to be generated or installed.
30433
30434 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
30435
30436 * commands/i386/pc/drivemap_int13h.S: add more comments
30437
30438 2009-06-11 Pavel Roskin <proski@gnu.org>
30439
30440 * Makefile.in (uninstall): Uninstall manuals.
30441
30442 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
30443 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
30444 and update-grub_lib in two places.
30445 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
30446
30447 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
30448 a compiler warning.
30449
30450 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
30451 `entry_lo' to fix variable shadowing.
30452
30453 2009-06-11 Christian Franke <franke@computer.org>
30454
30455 * kern/misc.c (__enable_execute_stack): Add missing return type
30456 to prevent gcc warning.
30457
30458 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30459
30460 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
30461
30462 2009-06-11 Pavel Roskin <proski@gnu.org>
30463
30464 * Makefile.in: Don't rely on any scripts being executable.
30465 Always use $(SHELL) to run shell scripts.
30466
30467 * configure.ac: Always define ___main if using -nostdlib. This
30468 fixes tests on Cygwin.
30469
30470 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
30471
30472 UDF fix
30473
30474 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
30475 is in bytes and not in blocks
30476
30477 2009-06-11 Pavel Roskin <proski@gnu.org>
30478
30479 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
30480 warning.
30481
30482 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30483
30484 * util/grub.d/30_os-prober.in: Fix a comment. Source
30485 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
30486 to set the root device. Place drivemap command in the generated
30487 chain entry.
30488
30489 2009-06-11 Pavel Roskin <proski@gnu.org>
30490
30491 * configure.ac: Remove host_m32. Issues with 64-bit utilities
30492 have long been resolved.
30493
30494 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
30495
30496 * util/grub.d/10_linux.in: Capitalise "Linux".
30497
30498 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
30499
30500 2009-06-11 Pavel Roskin <proski@gnu.org>
30501
30502 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
30503 fix a gcc warning and ensure that the function won't ever exit.
30504
30505 * kern/i386/ieee1275/init.c: Add missing prototype for
30506 grub_stop_floppy().
30507
30508 * loader/ieee1275/multiboot2.c [__i386__]: Include
30509 grub/cpu/multiboot.h.
30510
30511 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
30512 casts to short - they are not portable and cause warnings. Fix
30513 use of uninitialized values in input_buf. Use ARRAY_SIZE.
30514
30515 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
30516
30517 Drivemap fixes
30518
30519 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
30520 new function
30521 (grub_get_root_biosnumber_saved): new variable
30522 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
30523 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
30524 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
30525 %dx after the call if necessary
30526 * conf/common.rmk (pkglib_MODULES): remove boot.mod
30527 (boot_mod_SOURCES): remove
30528 (boot_mod_CFLAGS): remove
30529 (boot_mod_LDFLAGS): remove
30530 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
30531 (boot_mod_SOURCES): new variable
30532 (boot_mod_CFLAGS): likewise
30533 (boot_mod_LDFLAGS): likewise
30534 * conf/i386-efi.rmk: likewise
30535 * conf/i386-ieee1275.rmk: likewise
30536 * conf/i386-pc.rmk: likewise
30537 * conf/powerpc-ieee1275.rmk: likewise
30538 * conf/sparc64-ieee1275.rmk: likewise
30539 * conf/x86_64-efi.rmk: likewise
30540 * include/grub/i386/pc/biosnum.h: new file
30541 * lib/i386/pc/biosnum.c: likewise
30542 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
30543 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
30544 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
30545
30546 2009-06-10 Pavel Roskin <proski@gnu.org>
30547
30548 * io/gzio.c (test_header): Don't reuse one buffer for all data.
30549 Use separate variables. Read only the file size at the end, but
30550 not the checksum that we don't use.
30551
30552 * kern/file.c (grub_file_read): Use void pointer for the buffer.
30553 Adjust all callers.
30554
30555 * kern/ieee1275/openfw.c: Remove libc includes.
30556 * kern/ieee1275/cmain.c: Likewise.
30557 * include/grub/ieee1275/ieee1275.h: Likewise.
30558
30559 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
30560 compiler warnings.
30561
30562 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30563
30564 * Makefile.in: Remove all trailing whitespace.
30565 * conf/i386-pc.rmk: Likewise.
30566 * conf/powerpc-ieee1275.rmk: Likewise.
30567 * conf/sparc64-ieee1275.rmk: Likewise.
30568 * docs/grub.texi: Likewise.
30569 * docs/texinfo.tex: Likewise.
30570 * disk/fs_uuid.c: Likewise.
30571 * disk/lvm.c: Likewise.
30572 * disk/scsi.c: Likewise.
30573 * disk/ata.c: Likewise.
30574 * disk/ieee1275/ofdisk.c: Likewise.
30575 * disk/i386/pc/biosdisk.c: Likewise.
30576 * disk/host.c: Likewise.
30577 * disk/raid.c: Likewise.
30578 * disk/efi/efidisk.c: Likewise.
30579 * disk/usbms.c: Likewise.
30580 * disk/memdisk.c: Likewise.
30581 * disk/loopback.c: Likewise.
30582 * kern/powerpc/dl.c: Likewise.
30583 * kern/device.c: Likewise.
30584 * kern/dl.c: Likewise.
30585 * kern/sparc64/dl.c: Likewise.
30586 * kern/ieee1275/ieee1275.c: Likewise.
30587 * kern/term.c: Likewise.
30588 * kern/fs.c: Likewise.
30589 * kern/i386/dl.c: Likewise.
30590 * kern/i386/pc/startup.S: Likewise.
30591 * kern/i386/pc/init.c: Likewise.
30592 * kern/i386/pc/mmap.c: Likewise.
30593 * kern/i386/pc/lzo1x.S: Likewise.
30594 * kern/i386/ieee1275/init.c: Likewise.
30595 * kern/i386/realmode.S: Likewise.
30596 * kern/i386/tsc.c: Likewise.
30597 * kern/partition.c: Likewise.
30598 * kern/corecmd.c: Likewise.
30599 * kern/file.c: Likewise.
30600 * kern/efi/efi.c: Likewise.
30601 * kern/efi/init.c: Likewise.
30602 * kern/efi/mm.c: Likewise.
30603 * kern/main.c: Likewise.
30604 * kern/err.c: Likewise.
30605 * kern/env.c: Likewise.
30606 * kern/disk.c: Likewise.
30607 * kern/generic/millisleep.c: Likewise.
30608 * kern/generic/rtc_get_time_ms.c: Likewise.
30609 * kern/misc.c: Likewise.
30610 * kern/parser.c: Likewise.
30611 * genmk.rb: Likewise.
30612 * configure.ac: Likewise.
30613 * boot/i386/pc/diskboot.S: Likewise.
30614 * boot/i386/pc/pxeboot.S: Likewise.
30615 * boot/i386/pc/boot.S: Likewise.
30616 * boot/i386/pc/lnxboot.S: Likewise.
30617 * boot/i386/pc/cdboot.S: Likewise.
30618 * parttool/pcpart.c: Likewise.
30619 * video/readers/tga.c: Likewise.
30620 * video/video.c: Likewise.
30621 * video/bitmap.c: Likewise.
30622 * lib/envblk.c: Likewise.
30623 * lib/i386/setjmp.S: Likewise.
30624 * fs/xfs.c: Likewise.
30625 * fs/afs.c: Likewise.
30626 * fs/fat.c: Likewise.
30627 * fs/ntfs.c: Likewise.
30628 * fs/udf.c: Likewise.
30629 * fs/affs.c: Likewise.
30630 * fs/iso9660.c: Likewise.
30631 * fs/hfs.c: Likewise.
30632 * fs/fshelp.c: Likewise.
30633 * fs/ext2.c: Likewise.
30634 * fs/jfs.c: Likewise.
30635 * fs/reiserfs.c: Likewise.
30636 * fs/hfsplus.c: Likewise.
30637 * fs/minix.c: Likewise.
30638 * fs/cpio.c: Likewise.
30639 * fs/sfs.c: Likewise.
30640 * fs/ufs.c: Likewise.
30641 * efiemu/prepare.c: Likewise.
30642 * efiemu/loadcore_common.c: Likewise.
30643 * efiemu/runtime/efiemu.sh: Likewise.
30644 * efiemu/runtime/efiemu.S: Likewise.
30645 * efiemu/runtime/efiemu.c: Likewise.
30646 * efiemu/pnvram.c: Likewise.
30647 * efiemu/main.c: Likewise.
30648 * efiemu/i386/pc/cfgtables.c: Likewise.
30649 * efiemu/i386/loadcore64.c: Likewise.
30650 * efiemu/i386/loadcore32.c: Likewise.
30651 * efiemu/loadcore.c: Likewise.
30652 * efiemu/symbols.c: Likewise.
30653 * efiemu/mm.c: Likewise.
30654 * include/grub/autoefi.h: Likewise.
30655 * include/grub/datetime.h: Likewise.
30656 * include/grub/term.h: Likewise.
30657 * include/grub/hfs.h: Likewise.
30658 * include/grub/lvm.h: Likewise.
30659 * include/grub/i386/tsc.h: Likewise.
30660 * include/grub/i386/linux.h: Likewise.
30661 * include/grub/i386/xnu.h: Likewise.
30662 * include/grub/i386/efiemu.h: Likewise.
30663 * include/grub/i386/pc/biosdisk.h: Likewise.
30664 * include/grub/i386/pc/memory.h: Likewise.
30665 * include/grub/i386/pc/vbe.h: Likewise.
30666 * include/grub/parttool.h: Likewise.
30667 * include/grub/video.h: Likewise.
30668 * include/grub/memory.h: Likewise.
30669 * include/grub/fs.h: Likewise.
30670 * include/grub/partition.h: Likewise.
30671 * include/grub/xnu.h: Likewise.
30672 * include/grub/efi/api.h: Likewise.
30673 * include/grub/efi/pe32.h: Likewise.
30674 * include/grub/efi/memory.h: Likewise.
30675 * include/grub/multiboot.h: Likewise.
30676 * include/grub/usbdesc.h: Likewise.
30677 * include/grub/multiboot2.h: Likewise.
30678 * include/grub/acpi.h: Likewise.
30679 * include/grub/efiemu/efiemu.h: Likewise.
30680 * include/grub/disk.h: Likewise.
30681 * include/grub/ieee1275/ieee1275.h: Likewise.
30682 * include/grub/net.h: Likewise.
30683 * include/grub/machoload.h: Likewise.
30684 * include/grub/macho.h: Likewise.
30685 * include/multiboot.h: Likewise.
30686 * genmoddep.awk: Likewise.
30687 * normal/main.c: Likewise.
30688 * normal/menu_entry.c: Likewise.
30689 * normal/menu_viewer.c: Likewise.
30690 * normal/completion.c: Likewise.
30691 * normal/cmdline.c: Likewise.
30692 * normal/misc.c: Likewise.
30693 * normal/datetime.c: Likewise.
30694 * bus/usb/usbtrans.c: Likewise.
30695 * bus/usb/ohci.c: Likewise.
30696 * bus/usb/uhci.c: Likewise.
30697 * bus/usb/usb.c: Likewise.
30698 * mmap/efi/mmap.c: Likewise.
30699 * mmap/i386/pc/mmap_helper.S: Likewise.
30700 * mmap/i386/pc/mmap.c: Likewise.
30701 * mmap/i386/mmap.c: Likewise.
30702 * mmap/i386/uppermem.c: Likewise.
30703 * mmap/mmap.c: Likewise.
30704 * commands/acpi.c: Likewise.
30705 * commands/echo.c: Likewise.
30706 * commands/blocklist.c: Likewise.
30707 * commands/loadenv.c: Likewise.
30708 * commands/usbtest.c: Likewise.
30709 * commands/boot.c: Likewise.
30710 * commands/parttool.c: Likewise.
30711 * commands/search.c: Likewise.
30712 * commands/cat.c: Likewise.
30713 * commands/i386/pc/play.c: Likewise.
30714 * commands/i386/pc/drivemap.c: Likewise.
30715 * commands/i386/pc/vbeinfo.c: Likewise.
30716 * commands/i386/pc/acpi.c: Likewise.
30717 * commands/i386/pc/vbetest.c: Likewise.
30718 * commands/ls.c: Likewise.
30719 * commands/cmp.c: Likewise.
30720 * commands/test.c: Likewise.
30721 * commands/efi/acpi.c: Likewise.
30722 * commands/gptsync.c: Likewise.
30723 * commands/help.c: Likewise.
30724 * partmap/amiga.c: Likewise.
30725 * partmap/apple.c: Likewise.
30726 * partmap/acorn.c: Likewise.
30727 * partmap/pc.c: Likewise.
30728 * partmap/sun.c: Likewise.
30729 * partmap/gpt.c: Likewise.
30730 * script/sh/lexer.c: Likewise.
30731 * script/sh/function.c: Likewise.
30732 * font/font.c: Likewise.
30733 * font/font_cmd.c: Likewise.
30734 * loader/powerpc/ieee1275/linux.c: Likewise.
30735 * loader/efi/chainloader.c: Likewise.
30736 * loader/multiboot_loader.c: Likewise.
30737 * loader/macho.c: Likewise.
30738 * loader/i386/multiboot.c: Likewise.
30739 * loader/i386/linux.c: Likewise.
30740 * loader/i386/pc/linux.c: Likewise.
30741 * loader/i386/pc/multiboot2.c: Likewise.
30742 * loader/i386/pc/chainloader.c: Likewise.
30743 * loader/i386/pc/xnu.c: Likewise.
30744 * loader/i386/bsd_trampoline.S: Likewise.
30745 * loader/i386/efi/linux.c: Likewise.
30746 * loader/i386/multiboot_elfxx.c: Likewise.
30747 * loader/i386/bsd_helper.S: Likewise.
30748 * loader/i386/bsd.c: Likewise.
30749 * loader/i386/linux_trampoline.S: Likewise.
30750 * loader/i386/xnu_helper.S: Likewise.
30751 * loader/i386/xnu.c: Likewise.
30752 * loader/i386/bsd_pagetable.c: Likewise.
30753 * loader/i386/multiboot_helper.S: Likewise.
30754 * loader/xnu.c: Likewise.
30755 * loader/xnu_resume.c: Likewise.
30756 * io/gzio.c: Likewise.
30757 * term/efi/console.c: Likewise.
30758 * term/terminfo.c: Likewise.
30759 * term/ieee1275/ofconsole.c: Likewise.
30760 * term/i386/pc/serial.c: Likewise.
30761 * term/i386/pc/vesafb.c: Likewise.
30762 * term/i386/pc/vga.c: Likewise.
30763 * term/usb_keyboard.c: Likewise.
30764 * term/gfxterm.c: Likewise.
30765 * aclocal.m4: Likewise.
30766 * util/lvm.c: Likewise.
30767 * util/grub.d/30_os-prober.in: Likewise.
30768 * util/grub.d/10_hurd.in: Likewise.
30769 * util/console.c: Likewise.
30770 * util/grub-macho2img.c: Likewise.
30771 * util/grub-probe.c: Likewise.
30772 * util/hostfs.c: Likewise.
30773 * util/i386/pc/grub-mkimage.c: Likewise.
30774 * util/i386/pc/grub-setup.c: Likewise.
30775 * util/i386/efi/grub-mkimage.c: Likewise.
30776 * util/grub-mkconfig.in: Likewise.
30777 * util/raid.c: Likewise.
30778 * util/resolve.c: Likewise.
30779 * util/grub-mkdevicemap.c: Likewise.
30780 * util/grub-emu.c: Likewise.
30781 * util/getroot.c: Likewise.
30782 * util/hostdisk.c: Likewise.
30783 * util/usb.c: Likewise.
30784 * util/grub-editenv.c: Likewise.
30785 * util/misc.c: Likewise.
30786
30787 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30788
30789 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
30790 `genparttoollist.sh'.
30791 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
30792 Add `*.sh' to the list find searches for and change `mdate.sh'
30793 to `mdate-sh'.
30794
30795 2009-06-10 Pavel Roskin <proski@gnu.org>
30796
30797 * include/grub/multiboot2.h: Provide compatibility defines for
30798 multiboot2.h.
30799 * include/multiboot2.h: Include stdint.h only if needed, using
30800 angle brackets.
30801 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
30802 grub/multiboot2.h.
30803 * loader/ieee1275/multiboot2.c: Likewise.
30804 * loader/multiboot2.c: Likewise.
30805 * loader/multiboot_loader.c: Likewise.
30806
30807 * configure.ac: Use -nostdlib when probing for the target. It
30808 should not be required to have libc for the target.
30809
30810 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
30811 they fail without libc headers for the target.
30812 * include/grub/powerpc/libgcc.h: Use weak attribute for all
30813 exports.
30814 * include/grub/sparc64/libgcc.h: Likewise. Don't use
30815 preprocessor conditionals.
30816
30817 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
30818 build system doesn't need to be aware of the tar.c internals.
30819
30820 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
30821
30822 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
30823
30824 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
30825
30826 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
30827 disk limit to 26 for IDE, Virtio, Xen and SCSI.
30828
30829 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
30830
30831 * util/i386/pc/grub-install.in: Change the error message if UUIDs
30832 aren't available if ata.mod gets used.
30833
30834 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
30835
30836 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
30837 initialising controller.
30838 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30839
30840 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30841
30842 * util/i386/pc/grub-install.in: Add a parameter --disk-module
30843 to choose between ata and biosdisk module on i386-pc.
30844
30845 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
30846
30847 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
30848 Subclass and Programming Interface fields in terms of the 3 byte
30849 Class Code register.
30850 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30851
30852 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
30853 interface is OHCI. Add grub_dprintf for symmetry with
30854 bus/usb/uhci.c.
30855 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
30856 interface is UHCI. Add interf variable for programming
30857 interface. Print interface with class/subclass.
30858
30859 * bus/usb/ohci.c: Set interf with correct field.
30860
30861 * bus/usb/uhci.c: Remove unneeded doubled lines.
30862 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
30863 Remove whitespace inside comment.
30864
30865 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
30866
30867 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
30868 as fallback an equivalent option without depth.
30869
30870 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30871
30872 Not fail if unable to retrieve C/H/S on LBA disks
30873
30874 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
30875 if unable to retrieve C/H/S on LBA disks
30876
30877 2009-06-08 Pavel Roskin <proski@gnu.org>
30878
30879 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
30880 about aliasing.
30881
30882 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30883
30884 * Makefile.in (uninstall): Remove all $lib_DATA files.
30885
30886 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30887
30888 Bugfix: install on partitionless device
30889
30890 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
30891 is a whole disk
30892
30893 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30894
30895 * Makefile.in (uninstall): Remove all $include_DATA files.
30896
30897 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30898
30899 * commands/true.c: New file. Implement the true and false commands.
30900 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
30901 (true_mod_SOURCES): New variable.
30902 (true_mod_CFLAGS): Likewise.
30903 (true_mod_LDFLAGS): Likewise.
30904
30905 2009-06-05 Colin D Bennett <colin@gibibit.com>
30906
30907 Optimized font character lookup using binary search instead of linear
30908 search. Fonts now are required to have the character index ordered by
30909 code point.
30910
30911 * font/font.c (load_font_index): Verify that fonts have ordered
30912 character indices.
30913 (find_glyph): Use binary search instead of linear search to find a
30914 character in a font.
30915
30916 2009-06-05 Michael Scherer <misc@mandriva.org>
30917
30918 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
30919 uses case sensitive btree.
30920 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
30921 only for case insensitive filesystems.
30922
30923 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
30924
30925 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
30926 * conf/common.rmk (search_mod_CFLAGS): likewise
30927
30928 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30929
30930 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
30931 compensate a compiler bug
30932
30933 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30934
30935 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
30936 instead of '\b'
30937
30938 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30939
30940 Definitions for creating asm symbols with Apple's CC
30941
30942 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
30943 [APPLE_CC] (VARIABLE): likewise
30944
30945 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30946
30947 Disable lnxboot.img when compiled
30948 with Apple's CC
30949
30950 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
30951 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
30952 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
30953 [! APPLE_CC] (CODE_LENG): skip
30954 [! APPLE_CC] (setup_sects): likewise
30955 [! APPLE_CC]: skip filling
30956
30957 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30958
30959 Address in trampolines based on 32-bit registers when compiled
30960 with Apple's CC
30961
30962 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
30963 for addresses
30964 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
30965
30966 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30967
30968 Avoid aliases when compiling with Apple's CC for PCBIOS machine
30969
30970 * kern/misc.c [APPLE_CC] (memcpy): new function
30971 [APPLE_CC] (memmove): likewise
30972 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
30973 (memcpy): define alias conditionally on !APPLE_CC
30974 (memset): likewise
30975 (abort): likewise
30976 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
30977 APPLE_CC are defined
30978 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
30979 (grub_assert_fail): make prototype conditional
30980
30981 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30982
30983 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
30984
30985 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
30986 grub-macho2img
30987 (CLEANFILES): add grub-macho2img
30988 (grub_macho2img_SOURCES): new variable
30989 * kern/i386/pc/startup.S (bss_start): new variable
30990 (bss_end): likewise
30991 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
30992 * util/grub-macho2img.c: new file
30993
30994 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30995
30996 Use objconv when compiling with Apple's CC
30997
30998 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
30999 (efiemu64.o): likewise
31000 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
31001 when compiling with Apple's CC
31002 (efiemu64_s.o): likewise
31003 * configure.ac: check for objconv when compiling with Apple's CC
31004 * genmk.rb: use objconv for modules when compiled with Apple's CC
31005
31006 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31007
31008 Define segment as well as section when compiling with
31009 Apple's CC
31010
31011 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
31012 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
31013 (efiemu_convert_pointer): likewise
31014 (efiemu_set_virtual_address_map): likewise
31015 (efiemu_convert_pointer): likewise
31016 (efiemu_getcrc32): likewise
31017 (init_crc32_table): likewise
31018 (reflect): likewise
31019 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
31020 (GRUB_MOD_DEP): likewise
31021
31022 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31023
31024 Allow a compilation without -mcmodel=large
31025
31026 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
31027 when compiled without -mcmodel=large
31028 (filter_memory_map): remove memory post 4 GiB when compiled
31029 without -mcmodel=large
31030 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
31031 TARGET_CFLAGS when -mcmodel=large isn't supported
31032
31033 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31034
31035 Remove nested functions in efiemu core
31036
31037 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
31038
31039 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31040
31041 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
31042
31043 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
31044 temporary storage
31045 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
31046 using Apple's CC
31047 (grub_cpu_is_tsc_supported): likewise
31048 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
31049
31050 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31051
31052 Absolute addressing through constant with Apple's cc
31053
31054 * kern/i386/pc/startup.S: Define necessary constants
31055 and address through it when using ABS with Apple's CC
31056 * boot/i386/pc/diskboot.S: likewise
31057 * boot/i386/pc/boot.S: likewise
31058 * boot/i386/pc/lnxboot.S: likewise
31059 * boot/i386/pc/cdboot.S: likewise
31060 * mmap/i386/pc/mmap_helper.S: likewise
31061 * commands/i386/pc/drivemap_int13h.S: likewise
31062
31063 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31064
31065 Check if compiler is apple cc
31066
31067 * Makefile.in (ASFLAGS): new variable
31068 (TARGET_ASFLAGS): likewise
31069 (TARGET_MODULE_FORMAT): likewise
31070 (TARGET_APPLE_CC): likewise
31071 (OBJCONV): likewise
31072 (TARGET_IMG_CFLAGS): likewise
31073 (TARGET_CPPFLAGS): add includedir
31074 * configure.ac: call grub_apple_cc and grub_apple_target_cc
31075 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
31076 Check for linker script only if compiler isn't Apple's CC
31077 (TARGET_MODULE_FORMAT): set
31078 (TARGET_APPLE_CC): likewise
31079 (TARGET_ASFLAGS): likewise
31080 (ASFLAGS): likewise
31081 Check for objcopy only if compiler isn't Apple's CC
31082 Check for BSS symbol only if compiler isn't Apple's CC
31083 * genmk.rb: adapt nm options if we use Apple's utils
31084 * aclocal.m4 (grub_apple_cc): new test
31085 (grub_apple_target_cc): likewise
31086
31087 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31088
31089 Simplify sed expressions and improve awk
31090
31091 * Makefile.in (install-local): simplify sed expression
31092 * gencmdlist.sh: likewise
31093 * genmoddep.awk: avoid adding module as a dependency of itself
31094
31095 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31096
31097 Add missing start symbols
31098
31099 * boot/i386/pc/boot.S: add start
31100 * boot/i386/pc/pxeboot.S: likewise
31101
31102 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31103
31104 Fix wrong assumptions with grub-mkimage on EFI
31105
31106 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
31107 (relocate_addresses): consider both r_addend and value at offset
31108 (make_mods_section): zerofill modinfo and header
31109 (convert_elf): write prefix here
31110
31111 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31112
31113 Use .asciz instead of .string
31114
31115 * i386/pc/diskboot.S: use .asciz instead of .string
31116 * i386/pc/boot.S: likewise
31117 * include/grub/dl.h (GRUB_MOD_DEP): likewise
31118 (GRUB_MOD_NAME): likewise
31119
31120 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31121
31122 gfxpayload support
31123
31124 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
31125 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
31126 (grub_video_setup): remove
31127 (grub_video_set_mode): new prototype
31128 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
31129 (vid_mode): remove
31130 (linux_vesafb_res): compile only on PCBIOS
31131 (grub_linux_boot): support gfxpayload
31132 * loader/i386/pc/xnu.c (video_hook): new function
31133 (grub_xnu_set_video): support gfxpayload
31134 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
31135 (DEFAULT_VIDEO_HEIGHT): likewise
31136 (DEFAULT_VIDEO_FLAGS): likewise
31137 (DEFAULT_VIDEO_MODE): new definition
31138 (video_hook): new function
31139 (grub_gfxterm_init): use grub_video_set_mode
31140 * util/grub.d/30_os-prober.in: remove explicit modesetting before
31141 loading xnu
31142 * video/video.c (grub_video_setup): removed
31143 (grub_video_set_mode): new function based on grub_gfxterm_init and
31144 grub_video_setup
31145
31146 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31147
31148 Avoid calling biosdisk in drivemap
31149
31150 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
31151 (revparse_biosdisk): likewise
31152 (list_mappings): derive name from id directly
31153 (grub_cmd_drivemap): use tryparse_diskstring
31154
31155 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31156
31157 Script fixes
31158
31159 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
31160 (grub_lexer_param): add tokenonhold
31161 (grub_script_create_cmdline): remove cmdline. All callers updated
31162 (grub_script_function_create): make functionname
31163 grub_script_arg. All callers updated
31164 (grub_script_execute_argument_to_string): new prototype
31165 * kern/parser.c (state_transitions): reorder
31166 (grub_parser_cmdline_state): fix a bug and make more compact
31167 * script/sh/execute.c (grub_script_execute_argument_to_string):
31168 make global
31169 (grub_script_execute_cmdline): use new format
31170 * script/sh/function.c (grub_script_function_create): make functionname
31171 grub_script_arg. All callers updated
31172 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
31173 (grub_script_yylex): remove
31174 (grub_script_yylex2): renamed to ...
31175 (grub_script_yylex): ...renamed
31176 parse the expressions like a${b}c
31177 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
31178 (GRUB_PARSER_TOKEN_VAR): remove
31179 (GRUB_PARSER_TOKEN_NAME): likewise
31180 ("if"): declare as typeless
31181 ("while"): likewise
31182 ("function"): likewise
31183 ("else"): likewise
31184 ("then"): likewise
31185 ("fi"): likewise
31186 (text): remove
31187 (argument): likewise
31188 (script): accept empty scripts and make exit on error
31189 (arguments): use GRUB_PARSER_TOKEN_ARG
31190 (function): likewise
31191 (command): move error handling to script
31192 (menuentry): move grub_script_lexer_ref before
31193 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
31194 argument. All callers updated
31195
31196 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31197
31198 Prevent GRUB from probing floppies during boot.
31199
31200 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
31201 * commands/search.c (options): Add --no-floppy.
31202 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
31203 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
31204 --no-floppy when searching for UUIDs.
31205
31206 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31207
31208 Simplify the code duplication in commands/search.c.
31209
31210 * commands/search.c (search_label, search_fs_uuid): Merge into ...
31211 (search_fs): ... this. Update all users.
31212
31213 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
31214
31215 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
31216
31217 2009-05-28 Pavel Roskin <proski@gnu.org>
31218
31219 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
31220 Remove the original symlink explicitly.
31221
31222 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
31223 just one slash. That's how grub_fshelp_find_file() does it.
31224
31225 2009-05-26 Pavel Roskin <proski@gnu.org>
31226
31227 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
31228 to `str'.
31229
31230 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
31231 possibly unused.
31232
31233 2009-05-25 Christian Franke <franke@computer.org>
31234
31235 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
31236 register.
31237 (grub_atapi_identify): Add wait after drive select.
31238 (grub_ata_identify): Do more strict status register check before
31239 calling grub_atapi_identify (). Suppress error message if status
31240 register is 0x00 after command failure. Add status register
31241 check after PIO read to avoid bogus identify due to stuck DRQ.
31242 Thanks to Pavel Roskin for testing.
31243 (grub_device_initialize): Remove unsafe status register check.
31244 Thanks to 'phcoder' for problem report and patch.
31245 Prevent sign extension in debug message.
31246
31247 2009-05-23 Colin D Bennett <colin@gibibit.com>
31248
31249 Cleaned up `include/grub/normal.h'. Grouped prototypes by
31250 definition file, and functions defined in `normal/menu.c' have had
31251 their prototypes moved to `include/grub/menu.h' for consistency.
31252
31253 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
31254 from normal.h.
31255 (grub_menu_get_entry): Likewise.
31256 (grub_menu_get_timeout): Likewise.
31257 (grub_menu_set_timeout): Likewise.
31258 (grub_menu_execute_entry): Likewise.
31259 (grub_menu_execute_with_fallback): Likewise.
31260 (grub_menu_entry_run): Likewise.
31261
31262 * include/grub/normal.h: Re-ordered and grouped function
31263 prototypes by file that the function is defined in.
31264 (grub_menu_execute_callback): Removed; moved to menu.h.
31265 (grub_menu_get_entry): Likewise.
31266 (grub_menu_get_timeout): Likewise.
31267 (grub_menu_set_timeout): Likewise.
31268 (grub_menu_execute_entry): Likewise.
31269 (grub_menu_execute_with_fallback): Likewise.
31270 (grub_menu_entry_run): Likewise.
31271 (grub_menu_addentry): Renamed from this ...
31272 (grub_normal_add_menu_entry): ... to this.
31273
31274 * normal/main.c (grub_menu_addentry): Renamed from this ...
31275 (grub_normal_add_menu_entry): ... to this.
31276
31277 * script/sh/execute.c (grub_script_execute_menuentry): Update
31278 reference to renamed grub_menu_addentry function.
31279
31280 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
31281
31282 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
31283
31284 2009-05-22 Pavel Roskin <proski@gnu.org>
31285
31286 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
31287 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
31288 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
31289 compiling for the i386 targets, but not for the utilities.
31290
31291 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
31292 to grub_uint8_t.
31293 (grub_root_drive): Likewise.
31294 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
31295 remove alignment.
31296 (grub_root_drive): Change size to byte.
31297 (grub_start_addr): Remove.
31298 (grub_end_addr): Likewise.
31299 (grub_apm_bios_info): Likewise.
31300
31301 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
31302
31303 * normal/i386: Remove.
31304 * normal/powerpc: Likewise.
31305 * normal/sparc64: Likewise.
31306 * normal/x86_64: Likewise.
31307
31308 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
31309
31310 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
31311 * loader/i386/linux_trampoline.S: Fix indentation
31312 * loader/i386/xnu_helper.S: Likewise
31313
31314 2009-05-18 Colin D Bennett <colin@gibibit.com>
31315
31316 Display error messages when parsing a Lua statement fails.
31317 Previously, executing a syntactically invalid statement like
31318 ")foo" or "bar;" would silently fail.
31319
31320 * script/lua/grub_main.c (handle_lua_error): New function.
31321 (grub_lua_parse_line): Improved reporting of Lua parser and
31322 execution errors.
31323
31324 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31325
31326 Remove -Werror which causes build to fail on some systems
31327
31328 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
31329 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
31330 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
31331
31332 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31333
31334 trampoline for linux on 64-bit platform
31335
31336 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
31337 loader/i386/efi/linux_trampoline.S
31338 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
31339 declaration
31340 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
31341 here
31342 * loader/i386/linux_trampoline.S: moved here
31343 * loader/i386/efi/linux.c (allocate_pages): reserve space for
31344 trampoline
31345 (jumpvector): removed
31346 (grub_linux_trampoline_start): new declaration
31347 (grub_linux_trampoline_end): likewise
31348 (grub_linux_boot): use trampoline when on 64-bit platform
31349 * loader/i386/linux.c: likewise
31350
31351 2009-05-16 Pavel Roskin <proski@gnu.org>
31352
31353 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
31354 const to avoid a warning.
31355 (grub_lua_setenv): Likewise.
31356 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
31357 lmsg to fix a warning.
31358
31359 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
31360
31361 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
31362 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31363 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
31364 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31365 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31366 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31367 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31368 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31369
31370 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
31371
31372 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
31373
31374 2009-05-16 Bean <bean123ch@gmail.com>
31375
31376 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
31377 (lua_mod_SOURCES): New variable.
31378 (lua_mod_CFLAGS): Likewise.
31379 (lua_mod_LDFLAGS): Likewise.
31380
31381 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
31382 (setjmp_mod_SOURCES): New variable.
31383 (setjmp_mod_CFLAGS): Likewise.
31384 (setjmp_LDFLAGS): Likewise.
31385
31386 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
31387 (setjmp_mod_SOURCES): New variable.
31388 (setjmp_mod_CFLAGS): Likewise.
31389 (setjmp_LDFLAGS): Likewise.
31390
31391 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31392 (setjmp_mod_SOURCES): New variable.
31393 (setjmp_mod_CFLAGS): Likewise.
31394 (setjmp_LDFLAGS): Likewise.
31395
31396 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31397 (setjmp_mod_SOURCES): New variable.
31398 (setjmp_mod_CFLAGS): Likewise.
31399 (setjmp_LDFLAGS): Likewise.
31400
31401 * normal/i386/setjmp.S: Moved from here ...
31402 * lib/i386/setjmp.S: ... Moved here
31403 * normal/x86_64/setjmp.S: Moved from here ...
31404 * lib/x86_64/setjmp.S: ... Moved here
31405 * normal/powerpc/setjmp.S: Moved from here ...
31406 * lib/powerpc/setjmp.S: ... Moved here
31407 * normal/sparc64/setjmp.S: Moved from here ...
31408 * lib/sparc64/setjmp.S: ... Moved here
31409
31410 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
31411 returns_twice in mingw.
31412
31413 * script/lua/grub_lib.c: New file.
31414 * script/lua/grub_lib.h: Likewise.
31415 * script/lua/grub_lua.h: Likewise.
31416 * script/lua/grub_main.c: Likewise.
31417 * script/lua/lapi.c: Likewise.
31418 * script/lua/lapi.h: Likewise.
31419 * script/lua/lauxlib.c: Likewise.
31420 * script/lua/lauxlib.h: Likewise.
31421 * script/lua/lbaselib.c: Likewise.
31422 * script/lua/lcode.c: Likewise.
31423 * script/lua/lcode.h: Likewise.
31424 * script/lua/ldblib.c: Likewise.
31425 * script/lua/ldebug.c: Likewise.
31426 * script/lua/ldebug.h: Likewise.
31427 * script/lua/ldo.c: Likewise.
31428 * script/lua/ldo.h: Likewise.
31429 * script/lua/ldump.c: Likewise.
31430 * script/lua/lfunc.c: Likewise.
31431 * script/lua/lfunc.h: Likewise.
31432 * script/lua/lgc.c: Likewise.
31433 * script/lua/lgc.h: Likewise.
31434 * script/lua/linit.c: Likewise.
31435 * script/lua/liolib.c: Likewise.
31436 * script/lua/llex.c: Likewise.
31437 * script/lua/llex.h: Likewise.
31438 * script/lua/llimits.h: Likewise.
31439 * script/lua/lmathlib.c: Likewise.
31440 * script/lua/lmem.c: Likewise.
31441 * script/lua/lmem.h: Likewise.
31442 * script/lua/loadlib.c: Likewise.
31443 * script/lua/lobject.c: Likewise.
31444 * script/lua/lobject.h: Likewise.
31445 * script/lua/lopcodes.c: Likewise.
31446 * script/lua/lopcodes.h: Likewise.
31447 * script/lua/loslib.c: Likewise.
31448 * script/lua/lparser.c: Likewise.
31449 * script/lua/lparser.h: Likewise.
31450 * script/lua/lstate.c: Likewise.
31451 * script/lua/lstate.h: Likewise.
31452 * script/lua/lstring.c: Likewise.
31453 * script/lua/lstring.h: Likewise.
31454 * script/lua/lstrlib.c: Likewise.
31455 * script/lua/ltable.c: Likewise.
31456 * script/lua/ltable.h: Likewise.
31457 * script/lua/ltablib.c: Likewise.
31458 * script/lua/ltm.c: Likewise.
31459 * script/lua/ltm.h: Likewise.
31460 * script/lua/lua.h: Likewise.
31461 * script/lua/luaconf.h: Likewise.
31462 * script/lua/lualib.h: Likewise.
31463 * script/lua/lundump.c: Likewise.
31464 * script/lua/lundump.h: Likewise.
31465 * script/lua/lvm.c: Likewise.
31466 * script/lua/lvm.h: Likewise.
31467 * script/lua/lzio.c: Likewise.
31468 * script/lua/lzio.h: Likewise.
31469
31470 2009-05-16 Bean <bean123ch@gmail.com>
31471
31472 * include/grub/kernel.h (grub_module_header_types): Add type
31473 OBJ_TYPE_CONFIG.
31474
31475 * kern/main.c (grub_load_config): New function.
31476 (grub_main): Call grub_load_config to read boot config.
31477
31478 * grub-mkimage (generate_image): New parameter config_path.
31479 (options): New option --config.
31480 (main): Parse --config option, and pass it to generate_image.
31481
31482 2009-05-14 Christian Franke <franke@computer.org>
31483
31484 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
31485 This fixes build on Cygwin.
31486
31487 2009-05-14 Pavel Roskin <proski@gnu.org>
31488
31489 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
31490 jump. This saves two bytes, so the typical case of 2 swapped
31491 drives would fit 32 bytes.
31492
31493 2009-05-13 Pavel Roskin <proski@gnu.org>
31494
31495 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
31496 grub_uint32_t to avoid a warning.
31497
31498 * loader/i386/linux.c (allocate_pages): When assigning
31499 real_mode_mem, cast through grub_size_t to fix a warning. The
31500 code already makes sure that the value would fit a pointer.
31501 (grub_linux_setup_video): Cast render_target->data to
31502 grub_size_t to fix a warning.
31503
31504 2009-05-13 Javier Martín <lordhabbit@gmail.com>
31505
31506 * commands/i386/pc/drivemap.c: New file - implement drivemap
31507 command.
31508 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
31509 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
31510
31511 2009-05-13 Pavel Roskin <proski@gnu.org>
31512
31513 * util/i386/pc/grub-setup.c (setup): Remove unused variable
31514 embedding_area_exists.
31515
31516 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
31517
31518 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
31519 it easier to understand / work with.
31520 Improve warning messages for cases where there's no embedding area,
31521 or when it is too small (or core.img too large).
31522
31523 2009-05-13 Pavel Roskin <proski@gnu.org>
31524
31525 * loader/i386/pc/multiboot2.c: Add necessary includes for
31526 grub_multiboot2_real_boot().
31527
31528 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
31529 PX record is always little-endian. We only need the lower 2
31530 bytes of the mode.
31531
31532 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
31533 facilitate code reuse.
31534 (grub_cpio_mount): Use "struct head", not a char buffer. This
31535 fixes a warning reported by gcc 4.4.
31536
31537 * kernel/disk.c (grub_disk_read): Use void pointer for the
31538 buffer.
31539 (grub_disk_write): Use const void pointer for the buffer.
31540 Adjust all callers. Remove unnecessary casts.
31541
31542 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
31543
31544 * util/i386/pc/grub-install.in: Update copyright year.
31545
31546 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31547
31548 gptsync
31549
31550 * commands/gptsync.c: new file
31551 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
31552 (gptsync_mod_SOURCES): new variable
31553 (gptsync_mod_CFLAGS): likewise
31554 (gptsync_mod_LDFLAGS): likewise
31555 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
31556 new definition
31557 (GRUB_PC_PARTITION_TYPE_HFS): likewise
31558 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
31559 * conf/i386-ieee1275.rmk: likewise
31560 * conf/i386-pc.rmk: likewise
31561 * conf/powerpc-ieee1275.rmk: likewise
31562
31563 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31564
31565 Fixed grub-emu
31566
31567 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
31568 (grub_dl_ref): likewise
31569
31570 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
31571
31572 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
31573 split in two functions (one for msdos and one for gpt).
31574
31575 2009-05-08 Pavel Roskin <proski@gnu.org>
31576
31577 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
31578 not modified.
31579
31580 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
31581 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
31582 Initialize them with -1. Add sanity check for bad1. Eliminate
31583 nerr variable.
31584
31585 2009-05-08 David S. Miller <davem@davemloft.net>
31586
31587 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
31588
31589 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
31590
31591 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
31592 existence.
31593
31594 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
31595
31596 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31597 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
31598
31599 2009-05-05 David S. Miller <davem@davemloft.net>
31600
31601 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
31602
31603 2009-05-05 Pavel Roskin <proski@gnu.org>
31604
31605 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
31606 of grub_dl_ref() and grub_dl_unref().
31607 * commands/parttool.c: Remove preprocessor conditionals around
31608 grub_dl_ref() and grub_dl_unref().
31609 * fs/affs.c: Likewise.
31610 * fs/afs.c: Likewise.
31611 * fs/cpio.c: Likewise.
31612 * fs/ext2.c: Likewise.
31613 * fs/fat.c: Likewise.
31614 * fs/hfs.c: Likewise.
31615 * fs/hfsplus.c: Likewise.
31616 * fs/iso9660.c: Likewise.
31617 * fs/jfs.c: Likewise.
31618 * fs/minix.c: Likewise.
31619 * fs/ntfs.c: Likewise.
31620 * fs/reiserfs.c: Likewise.
31621 * fs/sfs.c: Likewise.
31622 * fs/udf.c: Likewise.
31623 * fs/ufs.c: Likewise.
31624 * fs/xfs.c: Likewise.
31625 * include/grub/dl.h: Likewise.
31626 * loader/xnu.c: Likewise.
31627
31628 2009-05-04 Pavel Roskin <proski@gnu.org>
31629
31630 * commands/acpi.c: Remove unused variable my_mod.
31631 * partmap/amiga.c: Likewise.
31632 * partmap/apple.c: Likewise.
31633 * partmap/gpt.c: Likewise.
31634 * partmap/pc.c: Likewise.
31635 * partmap/sun.c: Likewise.
31636 * term/gfxterm.c: Likewise.
31637 * term/i386/pc/vesafb.c: Likewise.
31638 * term/i386/pc/vga.c: Likewise.
31639
31640 2009-05-04 David S. Miller <davem@davemloft.net>
31641
31642 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
31643 pointer args to grub_ieee1275_get_property().
31644
31645 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
31646
31647 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
31648 devices, and do not traverse down under controller nodes.
31649
31650 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
31651 (grub_ofdisk_open): Use it to un-escape "," characters.
31652 * kern/disk.c (find_part_sep): New.
31653 (grub_disk_open): Use it to find the first non-escaped ','
31654 character in the disk name.
31655 * util/ieee1275/devicemap.c (escape_of_path): New.
31656 (grub_util_emit_devicemap_entry): Use it.
31657 * util/sparc64/ieee1275/grub-install.in: Update script to
31658 strip partition specifiers properly by not triggering on
31659 '\' escaped ',' characters.
31660
31661 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31662
31663 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
31664 to 0x300.
31665 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
31666 resolutions.
31667 (linux_vesafb_modes): Add a lot of additional modes to the list (based
31668 on documentation from Wikipedia).
31669
31670 2009-05-04 Pavel Roskin <proski@gnu.org>
31671
31672 * disk/ata.c: Spelling fixes.
31673 * disk/raid.c: Likewise.
31674 * disk/usbms.c: Likewise.
31675 * disk/dmraid_nvidia.c: Likewise.
31676 * kern/ieee1275/openfw.c: Likewise.
31677 * kern/ieee1275/init.c: Likewise.
31678 * kern/ieee1275/cmain.c: Likewise.
31679 * boot/i386/pc/cdboot.S: Likewise.
31680 * video/readers/png.c: Likewise.
31681 * video/i386/pc/vbe.c: Likewise.
31682 * fs/udf.c: Likewise.
31683 * fs/hfs.c: Likewise.
31684 * fs/reiserfs.c: Likewise.
31685 * efiemu/runtime/efiemu.c: Likewise.
31686 * efiemu/main.c: Likewise.
31687 * efiemu/mm.c: Likewise.
31688 * include/grub/elf.h: Likewise.
31689 * include/grub/xnu.h: Likewise.
31690 * include/grub/usbdesc.h: Likewise.
31691 * include/grub/usb.h: Likewise.
31692 * include/grub/script_sh.h: Likewise.
31693 * include/grub/lib/LzmaEnc.h: Likewise.
31694 * include/grub/efiemu/efiemu.h: Likewise.
31695 * include/grub/command.h: Likewise.
31696 * normal/menu.c: Likewise.
31697 * normal/main.c: Likewise.
31698 * normal/datetime.c: Likewise.
31699 * bus/usb/uhci.c: Likewise.
31700 * mmap/i386/uppermem.c: Likewise.
31701 * mmap/mmap.c: Likewise.
31702 * commands/acpi.c: Likewise.
31703 * commands/test.c: Likewise.
31704 * partmap/apple.c: Likewise.
31705 * font/font.c: Likewise.
31706 * loader/sparc64/ieee1275/linux.c: Likewise.
31707 * loader/macho.c: Likewise.
31708 * loader/i386/bsd_trampoline.S: Likewise.
31709 * loader/i386/bsd.c: Likewise.
31710 * loader/xnu.c: Likewise.
31711 * term/i386/pc/vesafb.c: Likewise.
31712 * term/usb_keyboard.c: Likewise.
31713 * util/resolve.c: Likewise.
31714 * util/getroot.c: Likewise.
31715
31716 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31717
31718 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
31719
31720 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31721
31722 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
31723 build error.
31724
31725 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31726
31727 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
31728 parameter only available on BIOS.
31729
31730 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31731
31732 Removed wrong semicolon in declaration
31733
31734 * grub/misc.h (grub_dprintf): remove semicolon
31735
31736 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31737
31738 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
31739 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
31740 is done by grub_cmd_linux() now).
31741 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
31742 restore video to text mode.
31743 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
31744 indicates lack of "vga=" parameter. "vga=0" is mapped to
31745 `GRUB_LINUX_VID_MODE_NORMAL'.
31746
31747 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31748
31749 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
31750 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
31751 and `normal/script.c'. Add `kern/rescue_reader.c',
31752 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
31753 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
31754 `grub_script.tab.c'.
31755
31756 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31757 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31758 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31759 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31760 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31761
31762 * Makefile.in: Remove duplicated 2008 in Copyright line.
31763
31764 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31765
31766 * util/misc.c (grub_util_warn): New function. Emits a warning
31767 unconditionally.
31768 * include/grub/util/misc.h (grub_util_warn): New declaration.
31769
31770 * util/i386/pc/grub-install.in: Understand --force and pass it down
31771 to grub-setup.
31772
31773 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
31774 down to setup().
31775 (setup): Improve error messages and add warnings when requested to
31776 install in odd layouts. Refuse to install using blocklists unless
31777 --force was set.
31778
31779 2009-05-04 martin f. krafft <madduck@madduck.net>
31780
31781 * disk/raid.c (grub_raid_scan_device): Improve debug message.
31782
31783 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31784
31785 Updated copyright year
31786
31787 * fs/hfsplus.c: updated copyright year
31788
31789 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31790
31791 HFS+ UUID
31792
31793 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
31794 in the space previously used by unused3
31795 (grub_hfsplus_uuid): new function
31796 (grub_hfsplus_fs): added uuid field
31797
31798 2009-05-03 Pavel Roskin <proski@gnu.org>
31799
31800 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
31801 suppress warnings. It's no longer needed.
31802 * disk/host.c: Likewise.
31803 * disk/ata_pthru.c: Likewise.
31804 * disk/loopback.c: Likewise.
31805 * hook/datehook.c: Likewise.
31806 * parttool/pcpart.c: Likewise.
31807 * fs/i386/pc/pxe.c: Likewise.
31808 * fs/ntfscomp.c: Likewise.
31809 * efiemu/main.c: Likewise.
31810 * mmap/mmap.c: Likewise.
31811 * commands/crc.c: Likewise.
31812 * commands/hexdump.c: Likewise.
31813 * commands/hdparm.c: Likewise.
31814 * commands/acpi.c: Likewise.
31815 * commands/echo.c: Likewise.
31816 * commands/minicmd.c: Likewise.
31817 * commands/blocklist.c: Likewise.
31818 * commands/memrw.c: Likewise.
31819 * commands/loadenv.c: Likewise.
31820 * commands/usbtest.c: Likewise.
31821 * commands/lsmmap.c: Likewise.
31822 * commands/boot.c: Likewise.
31823 * commands/parttool.c: Likewise.
31824 * commands/configfile.c: Likewise.
31825 * commands/search.c: Likewise.
31826 * commands/ieee1275/suspend.c: Likewise.
31827 * commands/cat.c: Likewise.
31828 * commands/i386/pc/pxecmd.c: Likewise.
31829 * commands/i386/pc/play.c: Likewise.
31830 * commands/i386/pc/halt.c: Likewise.
31831 * commands/i386/pc/vbeinfo.c: Likewise.
31832 * commands/i386/pc/vbetest.c: Likewise.
31833 * commands/lspci.c: Likewise.
31834 * commands/date.c: Likewise.
31835 * commands/handler.c: Likewise.
31836 * commands/ls.c: Likewise.
31837 * commands/test.c: Likewise.
31838 * commands/cmp.c: Likewise.
31839 * commands/efi/loadbios.c: Likewise.
31840 * commands/efi/fixvideo.c: Likewise.
31841 * commands/halt.c: Likewise.
31842 * commands/help.c: Likewise.
31843 * commands/reboot.c: Likewise.
31844 * hello/hello.c: Likewise.
31845 * script/sh/main.c: Likewise.
31846 * loader/xnu.c: Likewise.
31847 * term/terminfo.c: Likewise.
31848 * term/i386/pc/serial.c: Likewise.
31849 * term/usb_keyboard.c: Likewise.
31850
31851 2009-05-03 David S. Miller <davem@davemloft.net>
31852
31853 * normal/menu.c: Include grub/parser.h
31854
31855 2009-05-03 Pavel Roskin <proski@gnu.org>
31856
31857 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
31858 not char*.
31859 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
31860 Suggested by Javier Martín <lordhabbit@gmail.com>
31861
31862 * util/i386/pc/grub-mkrescue.in: Allow for the case when
31863 efiemu??.o doesn't exist.
31864 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
31865 copying.
31866
31867 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
31868
31869 FreeBSD 64-bit support
31870
31871 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
31872 and loader/i386/bsd_trampoline.S
31873 (bsd_mod_ASFLAGS): new variable
31874 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
31875 (FREEBSD_MODTYPE_KERNEL64): likewise
31876 (grub_bsd64_trampoline_start): likewise
31877 (grub_bsd64_trampoline_end): likewise
31878 (grub_bsd64_trampoline_selfjump): likewise
31879 (grub_bsd64_trampoline_gdt): likewise
31880 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
31881 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
31882 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
31883 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
31884 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
31885 of "attrib" member
31886 * loader/i386/bsd_pagetable.c: new file
31887 * loader/i386/bsd_trampoline.S: likewise
31888 * loader/i386/bsd.c (ALIGN_QWORD): new macro
31889 (ALIGN_VAR): likewise
31890 (entry_hi): new variable
31891 (kern_end_mdofs): likewise
31892 (is_64bit): likewise
31893 (grub_freebsd_add_meta): use ALIGN_VAR
31894 (grub_e820_mmap): new declaration
31895 (grub_freebsd_add_mmap): new function
31896 (grub_freebsd_add_meta_module): support 64 bit kernels
31897 (grub_freebsd_list_modules): use ALIGN_VAR
31898 (gdt_descriptor): new declaration
31899 (grub_freebsd_boot): support 64 bit kernels
31900 (grub_bsd_elf64_hook): new function
31901 (grub_bsd_load_elf): support elf64
31902
31903 2009-05-03 Bean <bean123ch@gmail.com>
31904
31905 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
31906 after we get the result of if statement.
31907
31908 2009-05-03 Bean <bean123ch@gmail.com>
31909
31910 * Makefile.in (enable_efiemu): New variable.
31911
31912 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
31913 set.
31914 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
31915 path.
31916 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
31917 path, add -mno-red-zone option.
31918 (efiemu64_s.o): Likewise.
31919 (efiemu64.o): Use macro $^ for source file.
31920
31921 * configure.ac (--enable-efiemu): New option.
31922
31923 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
31924
31925 xnu support
31926
31927 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
31928 (pkglib_MODULES): add xnu.mod
31929 (xnu_mod_SOURCES): new variable
31930 (xnu_mod_CFLAGS): likewise
31931 (xnu_mod_LDFLAGS): likewise
31932 (xnu_mod_ASFLAGS): likewise
31933 * conf/i386-pc.rmk: likewise
31934 * conf/x86_64-efi.rmk: likewise
31935 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
31936 new declaration
31937 * include/grub/i386/macho.h: new file
31938 * include/grub/i386/xnu.h: likewise
31939 * include/grub/macho.h: likewise
31940 * include/grub/machoload.h: likewise
31941 * include/grub/x86_64/macho.h: likewise
31942 * include/grub/x86_64/xnu.h: likewise
31943 * include/grub/xnu.h: likewise
31944 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
31945 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
31946 * loader/i386/efi/xnu.c: new file
31947 * loader/i386/pc/xnu.c: likewise
31948 * loader/i386/xnu.c: likewise
31949 * loader/i386/xnu_helper.S: likewise
31950 * loader/macho.c: likewise
31951 * loader/xnu.c: likewise
31952 * loader/xnu_resume.c: likewise
31953 * util/grub-dumpdevtree: likewise
31954 * include/grub/i386/pit.h: include grub/err.h
31955 (grub_pit_wait): export
31956 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
31957
31958 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31959
31960 Efiemu
31961
31962 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
31963 _linux_efi, linux_efi.
31964 new files in grub-emu
31965 new targets efiemu32.o and efiemu64.o
31966 * loader/linux_normal_efiemu.c: likewise
31967 * loader/i386/efi/linux.c: added preliminary efiemu support
31968 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
31969 files to copy
31970 * include/grub/autoefi.h: new file
31971 * include/grub/i386/efiemu.h: likewise
31972 * include/grub/i386/pc/efiemu.h: likewise
31973 * include/grub/efi/api.h: add LL suffix when necessary
31974 new definitions relating to tables
31975 * include/grub/efiemu/efiemu.h: new file
31976 * include/grub/efiemu/runtime.h: likewise
31977 * efiemu/prepare.c: likewise
31978 * efiemu/loadcore_common.c: likewise
31979 * efiemu/loadcore64.c: likewise
31980 * efiemu/runtime/efiemu.sh: likewise
31981 * efiemu/runtime/efiemu.S: likewise
31982 * efiemu/runtime/efiemu.c: likewise
31983 * efiemu/runtime/config.h: likewise
31984 * efiemu/prepare32.c: likewise
31985 * efiemu/main.c: likewise
31986 * efiemu/modules/pnvram.c: likewise
31987 * efiemu/modules/i386: likewise
31988 * efiemu/modules/i386/pc: likewise
31989 * efiemu/modules/acpi.c: likewise
31990 * efiemu/i386/pc/cfgtables.c: likewise
31991 * efiemu/i386/loadcore64.c: likewise
31992 * efiemu/i386/loadcore32.c: likewise
31993 * efiemu/prepare64.c: likewise
31994 * efiemu/loadcore.c: likewise
31995 * efiemu/symbols.c: likewise
31996 * efiemu/mm.c: likewise
31997 * efiemu/loadcore32.c: likewise
31998
31999 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32000
32001 ACPI spoofing
32002
32003 * commands/acpi.c: new file
32004 * commands/i386/pc/acpi.c: likewise
32005 * commands/efi/acpi.c: likewise
32006 * include/grub/acpi.h: likewise
32007 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
32008 (acpi_mod_SOURCES): new variable
32009 (acpi_mod_CFLAGS): likewise
32010 (acpi_mod_LDFLAGS): likewise
32011 * conf/i386-efi.rmk: likewise
32012 * conf/x86_64-efi.rmk: likewise
32013
32014 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32015
32016 Missing part from mmap patch
32017
32018 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
32019 (grub_mmap_unregister)
32020 (grub_mmap_free_and_unregister): use grub_mmap_register
32021
32022 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32023
32024 Mmap services
32025
32026 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
32027 * loader/i386/linux.c (find_mmap_size): likewise
32028 (allocate_pages): likewise
32029 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
32030 (grub_fill_multiboot_mmap): likewise
32031 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
32032 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
32033 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
32034 (OPENBSD_MMAP_RESERVED): likewise
32035 * include/grub/i386/pc/memory.h: include grub/memory.h
32036 (grub_lower_mem): removed
32037 (grub_upper_mem): likewise
32038 (GRUB_MACHINE_MEMORY_ACPI): new definition
32039 (GRUB_MACHINE_MEMORY_NVS): likewise
32040 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
32041 (GRUB_MACHINE_MEMORY_HOLE): likewise
32042 (grub_machine_mmap_register): likewise
32043 (grub_machine_mmap_unregister): likewise
32044 (grub_machine_get_upper): likewise
32045 (grub_machine_get_lower): likewise
32046 (grub_machine_get_post64): likewise
32047 * include/grub/i386/efi/memory.h: new file
32048 * include/grub/x86_64/efi/memory.h: likewise
32049 * include/grub/efi/memory.h: likewise
32050 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
32051 (mmap_mod_SOURCES): new variable
32052 (mmap_mod_LDFLAGS): likewise
32053 (mmap_mod_ASFLAGS): likewise
32054 * conf/i386-coreboot.rmk: likewise
32055 * conf/i386-ieee1275.rmk: likewise
32056 * conf/i386-efi.rmk: likewise
32057 * conf/x86_64-efi.rmk: likewise
32058 * include/grub/types.h (UINT_TO_PTR): new macro
32059 (PTR_TO_UINT32): likewise
32060 (PTR_TO_UINT64): likewise
32061 * include/grub/memory.h: new file
32062 * mmap/i386/pc/mmap.c: likewise
32063 * mmap/i386/pc/mmap_helper.S: likewise
32064 * mmap/i386/uppermem.c: likewise
32065 * mmap/mmap.c: likewise
32066 * mmap/efi/mmap.c: likewise
32067 * kern/i386/coreboot/init.c (grub_machine_init): don't use
32068 grub_upper_mem
32069 * kern/i386/pc/init.c (grub_lower_mem): removed variable
32070 (grub_upper_mem): likewise
32071 (grub_machine_init): don't use grub_upper_mem,
32072 make grub_lower_mem local
32073 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
32074 grub_mmap_iterate and grub_mmap_get_upper
32075 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
32076
32077 2009-05-02 Bean <bean123ch@gmail.com>
32078
32079 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
32080 script/sh/parser.y.
32081 (pkglib_MODULES): Add normal.mod and sh.mod.
32082 (normal_SOURCES): New variable.
32083 (normal_mod_CFLAGS): Likewise.
32084 (normal_mod_LDFLAGS): Likewise.
32085 (sh_mod_SOURCES): Likewise.
32086 (sh_mod_CFLAGS): Likewise.
32087 (sh_mod_LDFLAGS): Likewise.
32088
32089 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
32090 script/sh/lexer.c_DEPENDENCIES.
32091 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
32092 kern/rescue_reader.c and kern/rescue_parser.c.
32093 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
32094 (grub_emu_SOURCES): Change source files.
32095 (pkglib_MODULES): Remove normal.mod.
32096 (normal_SOURCES): Removed.
32097 (normal_mod_CFLAGS): Likewise.
32098 (normal_mod_LDFLAGS): Likewise.
32099 * conf/i386-coreboot.rmk: Likewise.
32100 * conf/i386-efi.rmk: Likewise.
32101 * conf/i386-ieee1276.rmk: Likewise.
32102 * conf/powerpc-ieee1275.rmk: Likewise.
32103 * conf/sparc64-ieee1275.rmk: Likewise.
32104 * conf/x86_64-efi.rmk: Likewise.
32105
32106 * include/grub/command.h (grub_command_execute): New inline function.
32107
32108 * include/grub/menu.h (grub_menu_entry): Removed commands field.
32109
32110 * include/grub/normal.h: Remove <grub/setjmp.h>.
32111 (grub_fs_module_list): Moved to normal/autofs.c.
32112 (grub_exit_env): Removed.
32113 (grub_command_execute): Likewise.
32114 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
32115 parameter script.
32116 (read_command_list): New function declaration.
32117 (read_fs_list): Likewise.
32118
32119 * include/parser.h: Include <grub/reader.h>.
32120 (grub_parser_split_cmdline): Change type of getline parameter.
32121 (grub_parser): New structure.
32122 (grub_parser_class): New variable.
32123 (grub_parser_execute): New function declaration.
32124 (grub_register_rescue_parser): Likewise.
32125 (grub_parser_register): New inline function.
32126 (grub_parser_unregister): Likewise.
32127 (grub_parser_get_current): Likewise.
32128 (grub_parser_set_current): Likewise.
32129
32130 * include/grub/reader.h: New file.
32131 * kern/reader.c: Likewise.
32132 * kern/rescue_parser.c: Likewise.
32133 * kern/rescue_reader.c: Likewise.
32134 * normal/autofs.c: Likewise.
32135 * normal/dyncmd.c: Likewise.
32136
32137 * include/grub/rescue.h: Removed.
32138 * normal/command.h: Likewise.
32139
32140 * include/grub/script.h: Moved to ...
32141 * include/grub/script_sh.h: ... Moved here.
32142 * normal/execute.c: Moved to ...
32143 * script/sh/execute.c: ... Moved here.
32144 * normal/function.c: Moved to ...
32145 * script/sh/function.c: ... Moved here.
32146 * normal/lexer.c: Moved to ...
32147 * script/sh/lexer.c: ... Moved here.
32148 * normal/parser.y: Moved to ...
32149 * script/sh/parser.y: ... Moved here.
32150 * normal/script.c: Moved to ...
32151 * script/sh/script.c: ... Moved here.
32152
32153 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
32154 <grub/reader.h>.
32155 (grub_exit_env): Removed.
32156 (fs_module_list): Moved to normal/autofs.c.
32157 (grub_file_getline): Don't handle comment here.
32158 (free_menu): Skip removed field entry->commands.
32159 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
32160 script parameter.
32161 (read_config_file): Removed nested parameter, change getline function.
32162 (grub_enter_normal_mode): Removed.
32163 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
32164 (read_command_list): Likewise.
32165 (autoload_fs_module): Moved to normal/autofs.c.
32166 (read_fs_list): Likewise.
32167 (reader_nested): New variable.
32168 (grub_normal_execute): Run parser.sh to switch to sh parser.
32169 (grub_cmd_rescue): Removed.
32170 (cmd_normal): Removed.
32171 (grub_cmd_normal): Unregister itself at the beginning. Don't register
32172 rescue command.
32173 (grub_cmdline_run): New function.
32174 (grub_normal_reader_init): Likewise.
32175 (grub_normal_read_line): Likewise.
32176 (grub_env_write_pager): Likewise.
32177 (cmdline): New variable.
32178 (grub_normal_reader): Likewise.
32179 (GRUB_MOD_INIT): Register normal reader and set as current, register
32180 pager hook, register normal command with grub_register_command_prio,
32181 so that it won't show up in command.lst.
32182 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
32183 grub_fs_autoload_hook.
32184
32185 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
32186 (grub_menu_execute_entry): Replace grub_script_execute with
32187 grub_parser_execute, change parameter to grub_command_execute.
32188
32189 * normal/menu_text.c: Remove <grub/script.h>.
32190
32191 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
32192 and <grub/parser.h>.
32193 (run): Change editor_getline to use new parser interface. Change
32194 parameter to grub_command_execute.
32195
32196 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
32197 <grub/reader.h> and <grub/parser.h>.
32198 (grub_load_normal_mode): Execute normal command.
32199 (grub_main): Call grub_register_core_commands,
32200 grub_register_rescue_parser and grub_register_rescue_reader, use
32201 grub_reader_loop to enter input loop.
32202
32203 * kern/parser.c (grub_parser_split_cmdline): Change type of
32204 getline parameter.
32205 (grub_parser_class): New variable.
32206 (grub_parser_execute): New function.
32207
32208 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
32209 * loader/multiboot2.c: Likewise.
32210 * loader/sparc64/ieee1275/linux.c: Likewise.
32211
32212 * util/grub-emu.c (read_command_list): New dummy function.
32213
32214 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32215
32216 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
32217 count to 16 for CCISS and IDA.
32218
32219 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32220
32221 * normal/menu_text.c (grub_wait_after_message): Print a newline
32222 after waiting for user input.
32223
32224 * loader/i386/linux.c: Include `<grub/normal.h>'.
32225 (grub_cmd_linux): Improve the error message about `ask' mode, by
32226 waiting for user input so it's not missed (we can do this, since
32227 user requested interaction).
32228
32229 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32230
32231 Added missing lst to grub-mkrescue
32232
32233 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
32234 and ${input_dir}/parttool.lst
32235
32236 2009-04-30 David S. Miller <davem@davemloft.net>
32237
32238 * util/hostdisk.c (device_is_wholedisk): New function.
32239 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
32240 zero only if device_is_wholedisk() returns true.
32241
32242 * util/hostdisk.c (convert_system_partition_to_system_disk):
32243 Handle virtual disk devices named /dev/vdiskX as found on sparc
32244 and powerpc.
32245
32246 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
32247 lettered partition specifier is found, convert to numbered.
32248
32249 2009-04-29 David S. Miller <davem@davemloft.net>
32250
32251 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
32252 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32253
32254 * normal/command.c: Add missing newline at end of file.
32255
32256 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
32257 warnings.
32258 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
32259 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
32260 grub_ofdisk_read): Likewise, and deal similarly with the fact that
32261 ihandles have a 32-bit type but need to be stored in a "void *".
32262
32263 2009-04-28 Pavel Roskin <proski@gnu.org>
32264
32265 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
32266 not disk. Adjust all dependencies.
32267 (grub_fs_uuid_close): Use grub_device_close(), not
32268 grub_disk_close().
32269
32270 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
32271 parent's partition, don't copy it by reference, as it gets freed
32272 on close.
32273
32274 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32275
32276 Preboot hooks support
32277
32278 * commands/boot.c (struct grub_preboot_t): new declaration
32279 (preboots_head): new variable
32280 (preboots_tail): likewise
32281 (grub_loader_register_preboot_hook): new function
32282 (grub_loader_unregister_preboot_hook): likewise
32283 (grub_loader_set): launch preboot hooks
32284 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
32285 (grub_loader_register_preboot_hook): new declaration
32286 (grub_loader_unregister_preboot_hook): likewise
32287
32288 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32289
32290 Warning fix
32291
32292 * disk/scsi.c (grub_scsi_open): added missing cast when
32293 calling grub_dprintf
32294
32295 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
32296
32297 Bug and warning fixes
32298
32299 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
32300 declaration
32301 * commands/test.c (test_parse): fixed bug with file tests and corrected
32302 declaration of find_file
32303
32304 2009-04-26 Pavel Roskin <proski@gnu.org>
32305
32306 * Makefile.in: Don't install empty manual pages if help2man is
32307 missing. Use help2man option for output, not shell redirection.
32308
32309 2009-04-26 David S. Miller <davem@davemloft.net>
32310
32311 * util/grub-mkdevicemap.c (make_device_map): Add missing
32312 NESTED_FUNC_ATTR to process_device().
32313
32314 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32315
32316 Test command
32317
32318 * commands/test.c: rewritten to use bash-like test
32319
32320 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32321
32322 Parttool autoloading and improvements
32323
32324 * Makefile.in (pkglib_DATA): add parttool.lst
32325 (parttool.lst): new target
32326 * genmk.rb: generate parttool-*
32327 (CLEANFILES): add #{parttool}
32328 (PARTTOOLFILES): new variable
32329 * genparttoollist.sh: new file
32330 * parttool/pcpart.c (grub_pcpart_boot): more feedback
32331 (grub_pcpart_type): likewise
32332 * commands/parttool.c (helpmsg): new variable
32333 (grub_cmd_parttool): output help if not enough arguments are supplied
32334 autoload modules
32335 (GRUB_MOD_INIT(parttool)): use helpmsg
32336
32337 2009-04-24 David S. Miller <davem@davemloft.net>
32338
32339 Avoiding opening same device multiple times in device iterator.
32340
32341 * kern/device.c: (grub_device_iterate): Define struct part_ent,
32342 and use it to build a list of partitions in iterate_disk() and
32343 iterate_partition().
32344
32345 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
32346 on disk->data.
32347
32348 * disk/ieee1275/nand.c (grub_nand_iterate): Return
32349 grub_devalias_iterate() result instead of unconditional 0.
32350 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
32351 Also, capture hook return value, either directly or via
32352 grub_children_iterate(), and propagate to caller.
32353 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
32354 grub_children_iterate): Return value is now 'int' instead of
32355 'grub_err_t'.
32356 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
32357 like a proper iterator, stopping when hooks return non-zero.
32358 (grub_devalias_iterate): Likewise.
32359
32360 2009-04-23 David S. Miller <davem@davemloft.net>
32361
32362 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
32363
32364 2009-04-22 David S. Miller <davem@davemloft.net>
32365
32366 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
32367 is larger than address_cells, use that value for address_cells too.
32368
32369 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
32370 IEEE1275_MAX_PATH_LEN): Define.
32371 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
32372 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
32373 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
32374 'devtype'. Explicitly NULL terminate devalias expansion.
32375
32376 * util/sparc64/ieee1275/misc.c: New file.
32377 * util/sparc64/ieee1275/grub-setup.c: New file.
32378 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
32379 * util/sparc64/ieee1275/grub-mkimage.c: New file.
32380 * util/sparc64/ieee1275/grub-install.in: New file.
32381 * util/ieee1275/ofpath.c: New file.
32382 * util/ieee1275/devicemap.c: New file.
32383 * util/devicemap.c: New file.
32384 * util/deviceiter.c: New file.
32385 * kern/sparc64/ieee1275/init.c: New file.
32386 * include/grub/util/ofpath.h: New file.
32387 * include/grub/util/deviceiter.h: New file.
32388 * util/grub-mkdevicemap.c: Include deviceiter.h.
32389 Implement using grub_util_emit_devicemap_entry and
32390 grub_util_iterate_devices.
32391 * conf/i386-corebook.rmk: Build util/deviceiter.c and
32392 util/devicemap.c into grub-mkdevicemap
32393 * conf/i386-efi.rmk: Likewise.
32394 * conf/i386-ieee1275.rmk: Likewise.
32395 * conf/i386-pc.rmk: Likewise.
32396 * conf/powerpc-ieee1275.rmk: Likewise.
32397 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
32398 images and installation utilities. Build kernel as image
32399 instead of as elf binary. Use common rules as much as possible.
32400
32401 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
32402
32403 Correct GPT definition
32404
32405 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
32406 of "attrib" member
32407
32408 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
32409
32410 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
32411
32412 2009-04-19 David S. Miller <davem@davemloft.net>
32413
32414 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
32415 (grub_rescue_cmd_linux): Rename to...
32416 (grub_cmd_linux): and fix prototype.
32417 (grub_rescue_cmd_initrd): Rename to...
32418 (grub_cmd_initrd): and fix prototype.
32419 (cmd_linux, cmd_initrd): New.
32420 (GRUB_MOD_INIT(linux)): Use grub_register_command().
32421 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
32422
32423 2009-04-17 Pavel Roskin <proski@gnu.org>
32424
32425 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
32426 format.
32427 (grub_ohci_transfer): Likewise.
32428
32429 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
32430
32431 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
32432 return without a value. Fix inconsistent indentation.
32433
32434 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
32435 match struct grub_fs.
32436
32437 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
32438 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
32439 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32440 * commands/lspci.c (grub_lspci_iter): Likewise.
32441
32442 2009-04-16 Bean <bean123ch@gmail.com>
32443
32444 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
32445 value.
32446
32447 2009-04-15 Pavel Roskin <proski@gnu.org>
32448
32449 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
32450 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
32451 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
32452 definitions.
32453
32454 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32455
32456 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
32457 that no multiple data or metadata areas are supported and `Unknown
32458 metadata header'.
32459
32460 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32461
32462 Move loader out of the kernel
32463
32464 * kern/loader.c: moved to ...
32465 * commands/boot.c: ... moved here
32466 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
32467 * commands/boot.c (grub_cmd_boot): moved here. All users updated
32468 * include/grub/kernel.h (grub_machine_fini): export
32469 * include/grub/loader.h (grub_loader_is_loaded): update declaration
32470 (grub_loader_set): likewise
32471 (grub_loader_unset): likewise
32472 (grub_loader_boot): likewise
32473 * conf/common.rmk: new module boot.mod
32474 (pkglib_MODULES): add boot.mod
32475 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
32476 (grub_emu_SOURCES): likewise
32477 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
32478 (grub_emu_SOURCES): likewise
32479 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
32480 (grub_emu_SOURCES): likewise
32481 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
32482 (grub_emu_SOURCES): likewise
32483 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
32484 (grub_emu_SOURCES): likewise
32485 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
32486 (grub_emu_SOURCES): likewise
32487 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
32488 (grub_emu_SOURCES): likewise
32489
32490 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32491
32492 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
32493
32494 * kern/misc.c (grub_itoa): Removed function
32495 (grub_ltoa): likewise
32496 (grub_vsprintf): use grub_lltoa
32497
32498 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32499
32500 Restore grub-emu
32501
32502 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
32503 * conf/i386-coreboot.rmk: likewise
32504 * conf/i386-ieee1275.rmk: likewise
32505 * conf/powerpc-ieee1275.rmk: likewise
32506
32507 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32508
32509 * INSTALL: Add that `./autogen.sh' needs to be run before
32510 `./configure.'.
32511
32512 2009-04-14 Bean <bean123ch@gmail.com>
32513
32514 * Makefile.in (pkglib_DATA): Add handler.lst.
32515 (handler.lst): New rule.
32516
32517 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
32518 * conf/i386-coreboot.rmk: Likewise.
32519 * conf/i386-ieee1275.rmk: Likewise.
32520 * conf/i386-efi.rmk: Likewise.
32521 * conf/x86_64-efi.rmk: Likewise.
32522 * conf/powerpc-ieee1275.rmk: Likewise.
32523 * conf/sparc64-ieee1275.rmk: Likewise.
32524
32525 * genhandlerlist.sh: New file.
32526
32527 * genmk.rb: Add rules to generate handler.lst.
32528
32529 * include/grub/normal.h (grub_file_getline): New function definition.
32530 (read_handler_list): Likewise.
32531 (free_handler_list): Likewise.
32532
32533 * include/grub/term.h (grub_term_register_input): Add name parameter
32534 for auto generation of handler.lst.
32535 (grub_term_register_output): Likewise.
32536
32537 * normal/handler.c: New file.
32538
32539 * normal/main.c (get_line): Renamed to grub_file_getline.
32540 (read_config_file): Use the newly renamed grub_file_getline.
32541 (read_command_list): Likewise.
32542 (read_fs_list): Likewise.
32543 (grub_normal_execute): Call read_handler_list to parse handler.lst.
32544 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
32545
32546 * term/efi/console.c (grub_console_init): Add name parameter for auto
32547 generation of handler.lst.
32548 * term/gfxterm.c: Likewise.
32549 * term/i386/pc/at_keyboard.c: Likewise.
32550 * term/i386/pc/console.c: Likewise.
32551 * term/i386/pc/serial.c: Likewise.
32552 * term/i386/pc/vesafb.c: Likewise.
32553 * term/i386/pc/vga.c: Likewise.
32554 * term/i386/pc/vga_text.c: Likewise.
32555 * term/ieee1275/ofconsole.c: Likewise.
32556 * term/usb_keyboard.c: Likewise.
32557
32558 2009-04-14 Bean <bean123ch@gmail.com>
32559
32560 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
32561 properly with null character.
32562
32563 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32564
32565 * configure: Remove.
32566 * config.h.in: Likewise.
32567 * stamp-h.in: Likewise.
32568 * DISTLIST: Likewise.
32569 * conf/common.mk: Likewise.
32570 * conf/i386-coreboot.mk: Likewise.
32571 * conf/i386-efi.mk: Likewise.
32572 * conf/i386-ieee1275.mk: Likewise.
32573 * conf/i386.mk: Likewise.
32574 * conf/i386-pc.mk: Likewise.
32575 * conf/powerpc-ieee1275.mk: Likewise.
32576 * conf/sparc64-ieee1275.mk: Likewise.
32577 * conf/x86_64-efi.mk: Likewise.
32578
32579 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
32580 develop on GRUB.
32581
32582 2009-04-14 John Stanley <jpsinthemix@verizon.net>
32583 David S. Miller <davem@davemloft.net>
32584
32585 * util/hostdisk.c (make_device_name): Fix buffer length
32586 calculations.
32587
32588 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32589
32590 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
32591 <sys/param.h> and <sys/sysctl.h>.
32592 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
32593 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
32594 opening the device and reset them afterwards.
32595
32596 2009-04-13 Pavel Roskin <proski@gnu.org>
32597
32598 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
32599 Reported by John Stanley <jpsinthemix@verizon.net>
32600
32601 2009-04-13 Robert Millan <rmh@aybabtu.com>
32602
32603 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
32604 that name for menuentries when appropriate.
32605
32606 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32607
32608 * util/grub.d/10_freebsd.in: Add a missing `fi'.
32609
32610 2009-04-13 Robert Millan <rmh@aybabtu.com>
32611
32612 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
32613 to Linux, simply abort telling the user it's no longer supported.
32614
32615 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32616
32617 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
32618 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
32619 `freebsd_loadenv' only when devices.hints exist.
32620
32621 2009-04-13 Pavel Roskin <proski@gnu.org>
32622
32623 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
32624
32625 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32626
32627 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
32628 partition number.
32629 (grub_drive): Likewise.
32630
32631 2009-04-13 David S. Miller <davem@davemloft.net>
32632
32633 * kern/sparc64/ieee1275/ieee1275.c: New file.
32634 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
32635 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
32636 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
32637 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
32638 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
32639 grub_ieee1275_alloc_physmem): Declare new exported functions.
32640
32641 * include/grub/sparc64/ieee1275/loader.h: New file.
32642 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32643 * include/grub/sparc64/kernel.h: Likewise.
32644 * loader/sparc64/ieee1275/linux.c: Likewise.
32645
32646 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
32647 (grub_fstest_SOURCES): Likewise.
32648
32649 * util/hostdisk.c (make_device_name): Do not make any assumptions
32650 about the length of drive names.
32651
32652 * kern/dl.c (grub_dl_load_file): Close file immediately when
32653 we are done using it.
32654
32655 2009-04-12 David S. Miller <davem@davemloft.net>
32656
32657 * kern/misc.c (grub_ltoa): Fix cast when handling negative
32658 values. Noticed by Pavel Roskin.
32659
32660 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
32661 target compiler.
32662
32663 * genmk.rb: Add more flexible image type specification, also
32664 pass --strip-unneeded to objcopy.
32665 * conf/i386-pc.rmk: Use *_FORMAT.
32666 * conf/i386-pc.mk: Rebuilt.
32667
32668 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
32669 (OFDISK_HASH_SZ): Define.
32670 (ofdisk_hash): New hash table.
32671 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
32672 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
32673 instead of device phandle which is not unique.
32674
32675 * kern/sparc64/ieee1275/init.c: Delete, replace with...
32676 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
32677 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
32678 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
32679 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
32680 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
32681 GRUB_KERNEL_MACHINE_DATA_END): Define.
32682 (grub_kernel_image_size, grub_total_module_size): Declare.
32683
32684 2009-04-12 Pavel Roskin <proski@gnu.org>
32685
32686 * configure.ac: Change the logic when we check for target tools.
32687 Do it when the target is specified and it's different from the
32688 specified value of the host.
32689
32690 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
32691
32692 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
32693 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
32694 GNU/kFreeBSD. Check if a device is a character device. Use
32695 DIOCGMEDIASIZE to get the size.
32696 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
32697 support for GNU/kFreeBSD.
32698 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
32699 is a character device instead of a block device. Add support for
32700 FreeBSD device names.
32701
32702 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
32703 is a character device instead of a block device.
32704
32705 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
32706 is a character device instead of a block device.
32707
32708 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
32709
32710 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
32711 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
32712 FreeBSD. Check if a device is a character device. Use
32713 DIOCGMEDIASIZE to get the size.
32714 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
32715 support for FreeBSD.
32716 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
32717 is a character device instead of a block device. Add support for
32718 FreeBSD device names.
32719
32720 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
32721 a character device instead of a block device.
32722 (grub_util_check_char_device): New function.
32723
32724 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
32725 a character device instead of a block device.
32726
32727 * include/grub/util/getroot.h (grub_util_check_char_device): New
32728 prototype.
32729
32730 2009-04-11 David S. Miller <davem@davemloft.net>
32731
32732 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
32733 static libgcc.
32734 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
32735 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
32736 function, if present.
32737 (__bswapdi2): Likewise.
32738
32739 * include/grub/sparc64/ieee1275/boot.h: New file.
32740 * boot/sparc64/ieee1275/boot.S: Likewise.
32741 * boot/sparc64/ieee1275/diskboot.S: Likewise.
32742
32743 * kern/misc.c (grub_ltoa): New function.
32744 (grub_vsprintf): Use it to format 'long' integers.
32745
32746 2009-04-10 David S. Miller <davem@davemloft.net>
32747
32748 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
32749 slots are of type grub_ieee1275_cell_t.
32750 (grub_nand_read): Likewise.
32751 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
32752 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
32753 macros are used to compare values in arg/ret block of the call.
32754 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
32755 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
32756 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
32757 grub_ieee1275_instance_to_path, grub_ieee1275_write,
32758 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
32759 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
32760 grub_ieee1275_close, grub_ieee1275_set_property,
32761 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
32762 grub_ieee1275_cell_t.
32763 * kern/ieee1275/openfw.c (grub_map): Likewise.
32764 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
32765 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
32766
32767 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
32768 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
32769 (grub_devalias_iterate): Likewise.
32770
32771 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
32772
32773 UFS improvements
32774
32775 * fs/ufs.c (INODE_NBLOCKS): new definition
32776 (struct grub_ufs_dirent): added fields for non-BSD dirents
32777 (grub_ufs_get_file_block): fixed double indirect handling
32778 (grub_ufs_lookup_symlink): use more robust way to determine whether
32779 symlink is inline
32780 (grub_ufs_find_file): support for non-BSD dirents
32781 (grub_ufs_dir): support for non-BSD dirents
32782
32783 2009-04-10 Bean <bean123ch@gnail.com>
32784
32785 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
32786 attribute, otherwise the size would be wrong for i386 platform.
32787
32788 * include/grub/pci.h (grub_pci_read_word): New inline function.
32789 (grub_pci_read_byte): Likewise.
32790 (grub_pci_write): Likewise.
32791 (grub_pci_write_word): Likewise.
32792 (grub_pci_write_byte): Likewise.
32793
32794 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
32795
32796 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
32797 (find_framebuf): Scan pci to locate the frame buffer address.
32798
32799 * commands/efi/fixvideo.c: New file.
32800
32801 * commands/efi/loadbios.c: Likewise.
32802
32803 * commands/memrw.c: Likewise.
32804
32805 * util/grub-dumpbios.in: Likewise.
32806
32807 * conf/common.rmk (grub-dumpbios): New utility.
32808 (pkglib_MODULES): New module memrw.mod.
32809 (memrw_mod_SOURCE): New macro.
32810 (memrw_mod_CFLAGS): Likewise.
32811 (memrw_mod_LDFLAGS): Likewise.
32812
32813 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
32814 fixvideo.mod.
32815 (loadbios_mod_SOURCE): New macro.
32816 (loadbios_mod_CFLAGS): Likewise.
32817 (loadbios_mod_LDFLAGS): Likewise.
32818 (fixvideo_mod_SOURCE): Likewise.
32819 (fixvideo_mod_CFLAGS): Likewise.
32820 (fixvideo_mod_LDFLAGS): Likewise.
32821
32822 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
32823 fixvideo.mod.
32824 (loadbios_mod_SOURCE): New macro.
32825 (loadbios_mod_CFLAGS): Likewise.
32826 (loadbios_mod_LDFLAGS): Likewise.
32827 (fixvideo_mod_SOURCE): Likewise.
32828 (fixvideo_mod_CFLAGS): Likewise.
32829 (fixvideo_mod_LDFLAGS): Likewise.
32830
32831 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
32832
32833 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
32834
32835 2009-04-07 David S. Miller <davem@davemloft.net>
32836
32837 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
32838 support for R_SPARC_OLO10 relocations. Fix compile warning for
32839 R_SPARC_WDISP30 case.
32840 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
32841
32842 2009-04-06 Pavel Roskin <proski@gnu.org>
32843
32844 * include/grub/misc.h (ARRAY_SIZE): New macro.
32845 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
32846 New macro.
32847 * loader/i386/linux.c (allocate_pages): Use free_pages().
32848 (grub_linux_unload): Don't use free_pages().
32849 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
32850 wrong index. Treat all other modes as text modes.
32851 (grub_cmd_linux): Initialize vid_mode unconditionally to
32852 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
32853
32854 * commands/help.c (print_command_help): Use cmd->prio, not
32855 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
32856
32857 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
32858
32859 Parttool
32860
32861 * parttool/pcpart.c: new file
32862 * commands/parttool.c: likewise
32863 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
32864 (parttool_mod_SOURCES): new variable
32865 (parttool_mod_CFLAGS): likewise
32866 (parttool_mod_LDFLAGS): likewise
32867 (pcpart_mod_SOURCES): likewise
32868 (pcpart_mod_CFLAGS): likewise
32869 (pcpart_mod_LDFLAGS): likewise
32870 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
32871 and parttool/pcpart.c
32872 * conf/i386-efi.rmk: likewise
32873 * conf/i386-ieee1275.rmk: likewise
32874 * conf/i386-pc.rmk: likewise
32875 * conf/powerpc-ieee1275.rmk: likewise
32876 * conf/sparc64-ieee1275.rmk: likewise
32877 * conf/x86_64-ieee1275.rmk: likewise
32878
32879 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32880
32881 Support for mtime and further expandability of dir command
32882
32883 * include/grub/lib/datetime.h: moved to ...
32884 * include/grub/datetime.h: ... moved here and added
32885 declaration of grub_unixtime2datetime. All users updated
32886 * include/grub/fs.h: new syntax for dir and mtime functions in
32887 struct grub_fs
32888 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
32889 and GRUB_FSHELP_FLAGS_MASK
32890 * commands/ls.c (grub_ls_list_files): Write mtime in long format
32891 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
32892 (grub_ext2_mtime): new function
32893 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
32894 (grub_hfsplus_mtime): new function
32895 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
32896 (GRUB_UFS_ATTR_FILE): likewise
32897 (GRUB_UFS_ATTR_LNK): likewise
32898 (struct grub_ufs_sblock): new fields mtime
32899 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
32900 all users updated
32901 (grub_ufs_dir): mtime support
32902 (grub_ufs_mtime): new function
32903 * fs/affs.c (grub_affs_dir): use new dir syntax
32904 * fs/afs.c (grub_afs_dir): likewise
32905 * fs/cpio.c (grub_cpio_dir): likewise
32906 * fs/fat.c (grub_fat_find_dir): likewise
32907 * fs/hfs.c (grub_hfs_dir): likewise
32908 * fs/iso9660.c (grub_iso9660_dir): likewise
32909 * fs/jfs.c (grub_jfs_dir): likewise
32910 * fs/minix.c (grub_minix_dir): likewise
32911 * fs/ntfs.c (grub_ntfs_dir): likewise
32912 * fs/reiserfs.c (grub_reiserfs_dir): likewise
32913 * fs/sfs.c (grub_sfs_dir): likewise
32914 * fs/xfs.c (grub_xfs_dir): likewise
32915 * util/hostfs.c (grub_hostfs_dir): likewise
32916 * lib/datetime.c: moved to ...
32917 * normal/datetime.c: ... moved here
32918 (grub_unixtime2datetime): new function
32919 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
32920 * normal/completion.c (iterate_dir): use new dir syntax
32921 * normal/misc.c (grub_normal_print_device_info): tell the
32922 last modification time of a volume
32923 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
32924 * conf/common.rmk: added lib/datetime.c to ls.mod
32925 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
32926 (normal_mod_SOURCES): likewise
32927 (datetime_mod_SOURCES): Removed lib/datetime.c
32928 * conf/i386-efi.rmk: likewise
32929 * conf/i386-ieee1275.rmk: likewise
32930 * conf/i386-pc.rmk: likewise
32931 * conf/powerpc-ieee1275.rmk: likewise
32932 * conf/sparc64-ieee1275.rmk: likewise
32933 * conf/x86_64-efi.rmk: likewise
32934
32935 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32936
32937 Trim trailing spaces in FAT label and support mtools-like labels
32938
32939 * fs/fat.c (grub_fat_iterate_dir): New function based
32940 on grub_fat_find_dir
32941 (grub_fat_find_dir): use grub_fat_iterate_dir
32942 (grub_fat_label): likewise
32943
32944 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
32945
32946 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
32947 and command.h
32948 remove extraneous kernel_elf_HEADERS
32949
32950 2009-04-04 Bean <bean123ch@gnail.com>
32951
32952 * include/grub/util/misc.h: Add dummy function fsync for mingw.
32953
32954 * util/misc.c: Likewise.
32955
32956 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
32957
32958 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
32959 instead of grub_printf.
32960
32961 2009-04-03 Robert Millan <rmh@aybabtu.com>
32962
32963 * loader/i386/linux.c (grub_linux_setup_video): Fill
32964 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
32965 values from `mode info' structure instead of hardcoded
32966 values.
32967
32968 2009-04-01 Pavel Roskin <proski@gnu.org>
32969
32970 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
32971 unused now.
32972 * genmk.rb: Likewise.
32973 * configure.ac: Likewise.
32974
32975 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
32976
32977 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
32978 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
32979
32980 2009-04-01 David S. Miller <davem@davemloft.net>
32981
32982 * normal/sparc64/setjmp.S: Fix setjmp implementation.
32983 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
32984 (grub_setjmp): Mark with 'returns_twice' attribute.
32985 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
32986 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
32987 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
32988
32989 2009-04-01 Robert Millan <rmh@aybabtu.com>
32990
32991 Reapply fix from 2008-07-28 which was accidentally reverted; also
32992 perform the same fix to a similar check in same function.
32993
32994 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
32995 with the same number are found, just use issue a warning with
32996 grub_dprintf(), as this error has been reported to be non-fatal.
32997
32998 2009-03-31 Pavel Roskin <proski@gnu.org>
32999
33000 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
33001 for cross-compilation.
33002
33003 2009-03-30 Robert Millan <rmh@aybabtu.com>
33004
33005 Fix i386-ieee1275 build.
33006
33007 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
33008 Remove declaration.
33009
33010 2009-03-30 Pavel Roskin <proski@gnu.org>
33011
33012 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
33013 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
33014 zero-terminated, rely only on the strlen value. Fix comparison
33015 of strings differing in length.
33016
33017 2009-03-30 Robert Millan <rmh@aybabtu.com>
33018
33019 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
33020 checking for abi version. Improve error messages on BIOS to notify
33021 user about `linux16' command.
33022
33023 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
33024
33025 Leak fixes
33026
33027 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
33028 in case of collision
33029 * disk/scsi.c (grub_scsi_open): free scsi in case of error
33030
33031 2009-03-29 Robert Millan <rmh@aybabtu.com>
33032
33033 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
33034 set `vid_mode' accordingly.
33035 (grub_linux_boot): Process `vid_mode' and set video mode.
33036
33037 2009-03-29 Robert Millan <rmh@aybabtu.com>
33038
33039 * util/grub.d/10_linux.in (linux_entry): New function.
33040 Factorize generation of Linux boot entries.
33041
33042 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
33043
33044 Make the format of Environment Block plain text. The boot loader
33045 part is not tested well yet.
33046
33047 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
33048 (buffer): Removed.
33049 (envblk): Likewise.
33050 (usage): Remove "info" and "clear". Add "unset". Update the
33051 description of "set", as this does not delete variables any
33052 longer.
33053 (create_envblk_file): Complete rewrite.
33054 (open_envblk_file): Likewise.
33055 (cmd_info): Removed.
33056 (cmd_list): Likewise.
33057 (cmd_set): Likewise.
33058 (cmd_clear): Likewise.
33059 (list_variables): New function.
33060 (write_envblk): Likewise.
33061 (set_variables): Likewise.
33062 (unset_variables): Likewise.
33063 (main): Complete rewrite.
33064
33065 * commands/loadenv.c (buffer): Removed.
33066 (envblk): Likewise.
33067 (open_envblk_file): New function.
33068 (read_envblk_file): Complete rewrite.
33069 (grub_cmd_load_env): Likewise.
33070 (grub_cmd_list_env): Likewise.
33071 (struct blocklist): New struct.
33072 (free_blocklists): New function.
33073 (check_blocklists): Likewise.
33074 (write_blocklists): Likewise.
33075 (grub_cmd_save_env): Complete rewrite.
33076
33077 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
33078 a plain text signature.
33079 (GRUB_ENVBLK_MAXLEN): Removed.
33080 (struct grub_envblk): Complete rewrite.
33081 (grub_envblk_find): Removed.
33082 (grub_envblk_insert): Likewise.
33083 (grub_envblk_open): New prototype.
33084 (grub_envblk_set): Likewise.
33085 (grub_envblk_delete): Put const to VALUE.
33086 (grub_envblk_iterate): Put const to NAME and VALUE.
33087 (grub_envblk_close): New prototype.
33088 (grub_envblk_buffer): New inline function.
33089 (grub_envblk_size): Likewise.
33090
33091 * lib/envblk.c: Include grub/mm.h.
33092 (grub_env_find): Removed.
33093 (grub_envblk_open): New function.
33094 (grub_envblk_close): Likewise.
33095 (escaped_value_len): Likewise.
33096 (find_next_line): Likewise.
33097 (grub_envblk_insert): Removed.
33098 (grub_envblk_set): New function.
33099 (grub_envblk_delete): Complete rewrite.
33100 (grub_envblk_iterate): Likewise.
33101
33102 2009-03-28 Robert Millan <rmh@aybabtu.com>
33103
33104 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
33105 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
33106 variables. Use 16-bit loader.
33107 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
33108 loader.
33109 * kern/i386/loader.S (grub_linux_boot): Rename to ...
33110 (grub_linux16_boot): ... this. Update all users.
33111 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
33112 (grub_linux_boot): ... this. Update all users.
33113
33114 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
33115 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
33116 commands to `linux16' and `initrd16'.
33117 (GRUB_MOD_FINI(linux)): Rename to ...
33118 (GRUB_MOD_FINI(linux16)): ... this.
33119
33120 2009-03-24 Pavel Roskin <proski@gnu.org>
33121
33122 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
33123 not just for compilation.
33124
33125 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
33126
33127 Move multiboot helper out of kernel
33128
33129 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
33130 `loader/i386/multiboot_helper.S'.
33131 * conf/i386-coreboot.rmk: Likewise
33132 * conf/i386-ieee1275.rmk: Likewise
33133
33134 * kern/i386/loader.S: Move multiboot helpers from here...
33135 * loader/i386/multiboot_helper.S: ...moved here
33136 * include/grub/i386/loader.h: Move declarations of multiboot
33137 helpers from here...
33138 * include/grub/i386/multiboot.h: ...moved here
33139 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
33140
33141 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33142
33143 * kern/env.c (grub_env_context_open): Added an argument to specify
33144 whether a new context inherits exported variables from current
33145 one. This is useful when making a sandbox to interpret a config
33146 file.
33147 All callers updated.
33148
33149 * include/grub/env.h (grub_env_context_open): Updated the prototype.
33150
33151 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33152
33153 * kern/env.c (grub_env_context_close): Fix memory leaks.
33154
33155 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33156
33157 * normal/main.c (grub_normal_execute): Added an argument
33158 BATCH to specify if an interactive interface should be provided
33159 after reading a config file.
33160 All callers updated.
33161 (read_command_list): Prevent being executed twice.
33162 (read_fs_list): Likewise.
33163
33164 * include/grub/normal.h (grub_normal_execute): Updated the
33165 prototype.
33166
33167 2009-03-22 Pavel Roskin <proski@gno.org>
33168
33169 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
33170 _start.
33171 * kern/i386/pc/startup.S: Likewise.
33172 * kern/i386/efi/startup.S: Likewise.
33173 * kern/i386/ieee1275/startup.S: Likewise.
33174 * kern/i386/coreboot/startup.S: Likewise.
33175 * kern/x86_64/efi/startup.S: Likewise.
33176
33177 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
33178 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
33179 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
33180
33181 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
33182
33183 Bugfixes in multiboot for bugs uncovered by solaris kernel.
33184
33185 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
33186 limit detection.
33187 Use vaddr of correct segment for entry_point.
33188
33189 2009-03-21 Bean <bean123ch@gmail.com>
33190
33191 * commands/blocklist.c: Add include file <grub/command.h>, remove
33192 <grub/normal.h> and <grub/arg.h>.
33193 (grub_cmd_blocklist): Use the new command interface.
33194 (GRUB_MOD_INIT): Likewise.
33195 (GRUB_MOD_FINI): Likewise.
33196 * commands/boot.c: Likewise.
33197 * commands/cat.c: Likewise.
33198 * commands/cmp.c: Likewise.
33199 * commands/configfile.c: Likewise.
33200 * commands/crc.c: Likewise.
33201 * commands/echo.c: Likewise.
33202 * commands/halt.c: Likewise.
33203 * commands/handler.c: Likewise.
33204 * commands/hdparm.c: Likewise.
33205 * commands/help.c: Likewise.
33206 * commands/hexdump.c: Likewise.
33207 * commands/loadenv.c: Likewise.
33208 * commands/ls.c: Likewise.
33209 * commands/lsmmap.c: Likewise.
33210 * commands/lspci.c: Likewise.
33211 * commands/loadenv.c: Likewise.
33212 * commands/read.c: Likewise.
33213 * commands/reboot.c: Likewise.
33214 * commands/search.c: Likewise.
33215 * commands/sleep.c: Likewise.
33216 * commands/test.c: Likewise.
33217 * commands/usbtest.c: Likewise.
33218 * commands/videotest.c: Likewise.
33219 * commands/i386/cpuid.c: Likewise.
33220 * commands/i386/pc/halt.c: Likewise.
33221 * commands/i386/pc/play.c: Likewise.
33222 * commands/i386/pc/pxecmd.c: Likewise.
33223 * commands/i386/pc/vbeinfo.c: Likewise.
33224 * commands/i386/pc/vbetest.c: Likewise.
33225 * commands/ieee1275/suspend.c: Likewise.
33226 * disk/loopback.c: Likewise.
33227 * font/font_cmd.c: Likewise.
33228 * hello/hello.c: Likewise.
33229 * loader/efi/appleloader.c: Likewise.
33230 * loader/efi/chainloader.c: Likewise.
33231 * loader/i386/bsd.c: Likewise.
33232 * loader/i386/efi/linux.c: Likewise.
33233 * loader/i386/ieee1275/linux.c: Likewise.
33234 * loader/i386/linux.c: Likewise.
33235 * loader/i386/pc/chainloader.c: Likewise.
33236 * loader/i386/pc/linux.c: Likewise.
33237 * loader/powerpc/ieee1275/linux.c: Likewise.
33238 * loader/multiboot_loader.c: Likewise.
33239 * term/gfxterm.c: Likewise.
33240 * term/i386/pc/serial.c: Likewise.
33241 * term/terminfo.c: Likewise.
33242
33243 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
33244 * term/i386/pc/vga.c: Likewise.
33245 * video/readers/jpeg.c: Likewise.
33246 * video/readers/png.c: Likewise.
33247 * video/readers/tga.c: Likewise.
33248
33249 * util/grub-fstest (cmd_loopback): Removed.
33250 (cmd_blocklist): Likewise.
33251 (cmd_ls): Likewise.
33252 (grub_register_command): Likewise.
33253 (grub_unregister_command): Likewise.
33254 (execute_command): Use grub_command_find to locate command and execute
33255 it.
33256
33257 * include/grub/efi/chainloader.h: Removed.
33258 * loader/efi/chainloader_normal.c: Likewise.
33259 * loader/i386/bsd_normal.c: Likewise.
33260 * loader/i386/pc/chainloader_normal.c: Likewise.
33261 * loader/i386/pc/multiboot_normal.c: Likewise.
33262 * loader/linux_normal.c: Likewise.
33263 * loader/multiboot_loader_normal.c: Likewise.
33264 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
33265
33266 * gencmdlist.sh: Scan new registration command grub_register_extcmd
33267 and grub_register_command_p1.
33268
33269 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
33270 kern/command.c, lib/arg.c and commands/extcmd.c.
33271 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
33272 (minicmd_mod_SOURCES): New variable.
33273 (minicmd_mod_CFLAGS): Likewise.
33274 (minicmd_mod_LDFLAGS): Likewise.
33275 (extcmd_mod_SOURCES): Likewise.
33276 (extcmd_mod_CFLAGS): Likewise.
33277 (extcmd_mod_LDFLAGS): Likewise.
33278 (boot_mod_SOURCES): Removed.
33279 (boot_mod_CFLAGS): Likewise.
33280 (boot_mod_LDFLAGS): Likewise.
33281
33282 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
33283 kern/corecmd.c.
33284 (kernel_img_HEADERS): Add command.h.
33285 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
33286 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
33287 and lib/arg.c.
33288 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
33289 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
33290 remove the corresponding normal mode command.
33291 (normal_mod_SOURCES): Remove normal/arg.c.
33292 * conf/i386-coreboot.rmk: Likewise.
33293 * conf/i386-efi.rmk: Likewise.
33294 * conf/i386-ieee1275.rmk: Likewise.
33295 * conf/powerpc-ieee1275.rmk: Likewise.
33296 * conf/x86_64-efi.rmk: Likewise.
33297
33298 * include/grub/arg.h: Move from here ...
33299 * include/grub/lib/arg.h: ... to here.
33300
33301 * normal/arg.c: Move from here ...
33302 * lib/arg.c: ... to here.
33303
33304 * commands/extcmd.c: New file.
33305 * commands/minicmd.c: Likewise.
33306 * include/grub/command.h: Likewise.
33307 * include/grub/extcmd.h: Likewise.
33308 * kern/command.c: Likewise.
33309 * kern/corecmd.c: Likewise.
33310
33311 * kern/list.c (grub_list_iterate): Return int instead of void.
33312 (grub_list_insert): New function.
33313 (grub_prio_list_insert): Likewise.
33314
33315 * kern/rescue.c (grub_rescue_command): Removed.
33316 (grub_rescue_command_list): Likewise.
33317 (grub_rescue_register_command): Likewise.
33318 (grub_rescue_unregister_command): Likewise.
33319 (grub_rescue_cmd_boot): Move to minicmd.c
33320 (grub_rescue_cmd_help): Likewise.
33321 (grub_rescue_cmd_info): Likewise.
33322 (grub_rescue_cmd_boot): Likewise.
33323 (grub_rescue_cmd_testload): Likewise.
33324 (grub_rescue_cmd_dump): Likewise.
33325 (grub_rescue_cmd_rmmod): Likewise.
33326 (grub_rescue_cmd_lsmod): Likewise.
33327 (grub_rescue_cmd_exit): Likewise.
33328 (grub_rescue_print_devices): Moved to corecmd.c.
33329 (grub_rescue_print_files): Likewise.
33330 (grub_rescue_cmd_ls): Likewise.
33331 (grub_rescue_cmd_insmod): Likewise.
33332 (grub_rescue_cmd_set): Likewise.
33333 (grub_rescue_cmd_unset): Likewise.
33334 (attempt_normal_mode): Use grub_command_find to get normal module.
33335 (grub_enter_rescue_mode): Use grub_register_core_commands to register
33336 commands, remove grub_rescue_register_command calls.
33337
33338 * normal/command.c (grub_register_command): Removed.
33339 (grub_unregister_command): Likewise.
33340 (grub_command_find): Likewise.
33341 (grub_iterate_commands): Likewise.
33342 (rescue_command): Likewise.
33343 (export_command): Moved to corecmd.c.
33344 (set_command): Removed.
33345 (unset_command): Likewise.
33346 (insmod_command): Likewise.
33347 (rmmod_command): Likewise.
33348 (lsmod_command): Likewise.
33349 (grub_command_init): Likewise.
33350
33351 * normal/completion.c (iterate_command): Use cmd->prio to check for
33352 active command.
33353 (complete_arguments): Use grub_extcmd_t structure to find options.
33354 (grub_normal_do_completion): Change function grub_iterate_commands to
33355 grub_command_iterate.
33356
33357 * normal/execute.c (grub_script_execute_cmd): No need to parse
33358 argument here.
33359
33360 * normal/main.c (grub_dyncmd_dispatcher): New function.
33361 (read_command_list): Register unload commands as dyncmd.
33362 (grub_cmd_normal): Use new command interface, register rescue,
33363 unregister normal at entry, register normal, unregister rescue at exit.
33364
33365 * include/grub/list.h (grub_list_test_t): New type.
33366 (grub_list_iterate): Return int instead of void.
33367 (grub_list_insert): New function.
33368 (GRUB_AS_NAMED_LIST_P): New macro.
33369 (GRUB_AS_PRIO_LIST): Likewise.
33370 (GRUB_AS_PRIO_LIST_P): Likewise.
33371 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
33372 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
33373 (grub_prio_list): New structure.
33374 (grub_prio_list_insert): New function.
33375 (grub_prio_list_remove): New inline function.
33376
33377 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
33378 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
33379 (GRUB_COMMAND_FLAG_MENU): Likewise.
33380 (GRUB_COMMAND_FLAG_BOTH): Likewise.
33381 (GRUB_COMMAND_FLAG_TITLE): Likewise.
33382 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
33383 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
33384 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
33385 (grub_command): Likewise.
33386 (grub_register_command): Likewise.
33387 (grub_command_find): Likewise.
33388 (grub_iterate_commands): Likewise.
33389 (grub_command_init): Likewise.
33390 (grub_arg_parse): Likewise.
33391 (grub_arg_show_help): Likewise.
33392
33393 * include/grub/rescue.h (grub_rescue_register_command): Removed.
33394 (grub_rescue_unregister_command): Likewise.
33395
33396 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
33397 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
33398 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
33399
33400 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
33401 grub_rescue_cmd_initrd.
33402 * include/grub/i386/loader.h: Likewise.
33403 * include/grub/x86_64/loader.h: Likewise.
33404
33405 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
33406
33407 2009-03-21 Bean <bean123ch@gmail.com>
33408
33409 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
33410 instead of stat in mingw environment.
33411
33412 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
33413
33414 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
33415
33416 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
33417 AC_CONFIG_LINKS.
33418
33419 2009-03-21 Bean <bean123ch@gmail.com>
33420
33421 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
33422 out of range error.
33423
33424 2009-03-18 Michel Dänzer <michel@daenzer.net>
33425
33426 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
33427 checking inode flags for EXT4_EXTENTS_FLAG.
33428
33429 2009-03-18 Robert Millan <rmh@aybabtu.com>
33430
33431 * loader/i386/linux.c: Include `<grub/video.h>' and
33432 `<grub/i386/pc/vbe.h>'..
33433 (grub_linux_setup_video): New function. Loosely based on the EFI one.
33434 (grub_linux32_boot): Attempt to configure video settings with
33435 grub_linux_setup_video().
33436 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
33437 to avoid grub_console_fini() which would step out of graphical mode
33438 unconditionally.
33439
33440 2009-03-14 Robert Millan <rmh@aybabtu.com>
33441
33442 Fix build on powerpc.
33443 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
33444
33445 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
33446
33447 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
33448 background image command.
33449
33450 2009-03-12 Colin D Bennett <colin@gibibit.com>
33451
33452 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
33453 (grub_gfxterm_putchar): Extract pairs of identical calls to
33454 draw_cursor out of conditional blocks.
33455
33456 2009-03-11 Pavel Roskin <proski@gnu.org>
33457
33458 * fs/hfs.c (grub_hfs_strncasecmp): New function.
33459 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
33460
33461 2009-03-11 Robert Millan <rmh@aybabtu.com>
33462
33463 * loader/i386/multiboot_elfxx.c
33464 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
33465
33466 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
33467
33468 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
33469 `kern/handler.c'.
33470
33471 2009-03-11 Robert Millan <rmh@aybabtu.com>
33472
33473 * loader/i386/multiboot.c (code_size): New variable.
33474 (grub_multiboot): Define offsets by adding to `code_size' rather
33475 than subtracting from `grub_multiboot_payload_size'. Provide
33476 4-byte alignment to MBI and others by increasing
33477 `boot_loader_name_length' appropriately.
33478
33479 * loader/i386/multiboot_elfxx.c
33480 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
33481
33482 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
33483
33484 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
33485 `fs/ext2.c'.
33486
33487 2009-03-08 Robert Millan <rmh@aybabtu.com>
33488
33489 Make loader/i386/linux.c usable on i386-pc again.
33490
33491 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
33492 memory to heap.
33493 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
33494 `#error' stanza.
33495
33496 2009-03-07 Bean <bean123ch@gmail.com>
33497
33498 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
33499 allocation.
33500
33501 2009-03-06 Robert Millan <rmh@aybabtu.com>
33502
33503 Fix display issue on terminals with screen size other than 80x25
33504 (e.g. gfxterm with resolution higher than 640x480).
33505
33506 * normal/main.c (grub_normal_init_page): Display title text in a
33507 position relative to the center of the terminal instead of relying
33508 on a hardcoded offset.
33509
33510 2009-03-04 Robert Millan <rmh@aybabtu.com>
33511
33512 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
33513 installed.
33514
33515 * Makefile.in (host_kernel): New variable.
33516 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
33517 scripts instead of just the windows one.
33518 * configure.ac: Initialize and AC_SUBST `host_kernel'.
33519
33520 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33521
33522 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
33523 `kern/handler.c'.
33524 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33525 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33526 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33527 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33528 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33529 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33530
33531 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33532
33533 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
33534 or if there's no space for the disk label and print the partition number on a
33535 invalid magic.
33536
33537 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33538
33539 * util/misc.c: Include <time.h>.
33540 (grub_millisleep): New function.
33541
33542 2009-03-04 Bean <bean123ch@gmail.com>
33543
33544 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
33545 another option -mno-red-zone.
33546
33547 * commands/handler.c: Change module description.
33548
33549 * kern/handler.c: Add missing space at the end of description line.
33550
33551 * kern/list.c: Likewise.
33552
33553 2009-03-03 Robert Millan <rmh@aybabtu.com>
33554
33555 Move more components to the relocation area, and fix mbi pointer
33556 handling to use the destination rather than the origin (thanks to
33557 Vladimir Serbinenko for spotting).
33558
33559 * loader/i386/multiboot.c (mbi_dest): New variable.
33560 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
33561 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
33562 relocation area.
33563
33564 2009-03-01 Bean <bean123ch@gmail.com>
33565
33566 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
33567 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
33568 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
33569 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
33570
33571 * loader/i386/efi/linux.c (acpi_guid): New variable.
33572 (acpi_guid): Likewise.
33573 (EBDA_SEG_ADDR): New constant.
33574 (LOW_MEM_ADDR): Likewise.
33575 (FAKE_EBDA_SEG): Likewise.
33576 (fake_bios_data): New function.
33577 (grub_linux_boot): Call fake_bios_data.
33578
33579 2009-03-01 Bean <bean123ch@gmail.com>
33580
33581 * commands/terminal.c: Removed.
33582
33583 * commands/handler.c: New file.
33584
33585 * include/grub/list.h: Likewise.
33586
33587 * include/grub/handler.h: Likewise.
33588
33589 * kern/list.c: Likewise.
33590
33591 * kern/handler.c: Likewise.
33592
33593 * kern/term.h: Include header file <grub/handler.h>.
33594 (grub_term_input): Move next field to the beginning.
33595 (grub_term_output): Likewise.
33596 (grub_term_input_class): New variable.
33597 (grub_term_output_class): Likewise.
33598 (grub_term_register_input): Changed to inline function.
33599 (grub_term_register_output): Likewise.
33600 (grub_term_unregister_input): Likewise.
33601 (grub_term_unregister_output): Likewise.
33602 (grub_term_set_current_input): Likewise.
33603 (grub_term_set_current_output): Likewise.
33604 (grub_term_get_current_input): Likewise.
33605 (grub_term_get_current_output): Likewise.
33606 (grub_term_iterate_input): Removed.
33607 (grub_term_iterate_output): Likewise.
33608
33609 * kern/term.c (grub_term_list_input): Removed.
33610 (grub_term_list_output): Likewise.
33611 (grub_term_input_class): New variable.
33612 (grub_term_output_class): Likewise.
33613 (grub_cur_term_input): Change variable as macro.
33614 (grub_cur_term_output): Likewise.
33615 (grub_term_register_input): Removed.
33616 (grub_term_register_output): Likewise.
33617 (grub_term_unregister_input): Likewise.
33618 (grub_term_unregister_output): Likewise.
33619 (grub_term_set_current_input): Likewise.
33620 (grub_term_set_current_output): Likewise.
33621 (grub_term_iterate_input): Likewise.
33622 (grub_term_iterate_output): Likewise.
33623 (grub_term_get_current_input): Likewise.
33624 (grub_term_get_current_output): Likewise.
33625
33626 * util/grub-editenv.c: Include header file <grub/handler.h>.
33627 (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-fstest.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/grub-probe.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 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
33643 (grub_term_get_current_output): Likewise.
33644 (grub_term_input_class): New variable.
33645 (grub_term_output_class): Likewise.
33646
33647 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
33648 (terminal_mod_SOURCES): Likewise.
33649 (terminal_mod_CFLAGS): Likewise.
33650 (terminal_mod_LDFLAGS): Likewise.
33651
33652 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
33653 handler.c.
33654 (kernel_img_SOURCES): Add list.c and handler.c.
33655 (kernel_img_HEADERS): Add list.h and handler.h.
33656
33657 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33658 handler.c.
33659 (kernel_mod_SOURCES): Add list.c and handler.c.
33660 (kernel_mod_HEADERS): Add list.h and handler.h.
33661
33662 * conf/i386-coreboot.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/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33668 handler.c.
33669 (kernel_elf_SOURCES): Add list.c and handler.c.
33670 (kernel_elf_HEADERS): Add list.h and handler.h.
33671
33672 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33673 handler.c.
33674 (kernel_mod_SOURCES): Add list.c and handler.c.
33675 (kernel_mod_HEADERS): Add list.h and handler.h.
33676
33677 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33678 handler.c.
33679 (kernel_elf_SOURCES): Add list.c and handler.c.
33680 (kernel_elf_HEADERS): Add list.h and handler.h.
33681
33682 2009-02-27 Robert Millan <rmh@aybabtu.com>
33683
33684 Factorize elf32 / elf64 code in Multiboot loader. This will
33685 prevent it from getting out of sync again.
33686
33687 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
33688 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
33689 grub_multiboot_load_elf64): Move from here ...
33690 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
33691 grub_multiboot_load_elf): ... to here (new file).
33692
33693 2009-02-27 Robert Millan <rmh@aybabtu.com>
33694
33695 * util/grub.d/10_linux.in: Rename "single-user mode" to
33696 "recovery mode".
33697
33698 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
33699
33700 Don't leak in SCSI code.
33701 * disk/scsi.c (grub_scsi_close): free `scsi'.
33702
33703 2009-02-27 Robert Millan <rmh@aybabtu.com>
33704
33705 * loader/i386/pc/multiboot.c: Move from here ...
33706 * loader/i386/multiboot.c: ... to here. Update all users.
33707
33708 2009-02-27 Robert Millan <rmh@aybabtu.com>
33709
33710 Patch from Alexandre Bique <bique.alexandre@gmail.com>
33711 * util/i386/pc/grub-setup.c (setup): Fix directory path.
33712
33713 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
33714
33715 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
33716 b-tree.
33717
33718 2009-02-27 Robert Millan <rmh@aybabtu.com>
33719
33720 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
33721 `0x' qualifier as 0 when base is specified as parameter).
33722
33723 2009-02-24 Bean <bean123ch@gmail.com>
33724
33725 * configure.ac: Check for -mcmodel=large in x86_64 target.
33726
33727 * include/grub/efi/api.h (efi_call_10): New macro.
33728 (efi_wrap_10): New function.
33729
33730 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
33731 (GRUB_PE32_REL_BASED_HIGH): Likewise.
33732 (GRUB_PE32_REL_BASED_LOW): Likewise.
33733 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
33734 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
33735 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
33736 (GRUB_PE32_REL_BASED_SECTION): Likewise.
33737 (GRUB_PE32_REL_BASED_REL): Likewise.
33738 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
33739 (GRUB_PE32_REL_BASED_DIR64): Likewise.
33740 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
33741
33742 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
33743 issue.
33744
33745 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
33746 (efi_wrap_10): New function.
33747
33748 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
33749
33750 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
33751 MB/MBP model (NV chipset).
33752 (devdata_devs): Add devpath_5 to the list.
33753
33754 * load/i386/efi/linux.c (video_base): Remove variable.
33755 (RGB_MASK): New macro.
33756 (RGB_MAGIC): Likewise.
33757 (LINE_MIN): Likewise.
33758 (LINE_MAX): Likewise.
33759 (FBTEST_STEP): Likewise.
33760 (FBTEST_COUNT): Likewise.
33761 (fb_list): New variable.
33762 (grub_find_video_card): Remove function.
33763 (find_framebuf): New function.
33764 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
33765 line length.
33766
33767 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
33768 problem for x86_64.
33769
33770 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
33771
33772 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
33773
33774 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
33775 coding tool name.
33776
33777 2009-02-22 Robert Millan <rmh@aybabtu.com>
33778
33779 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
33780 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
33781 in our relocation, instead of using it directly from heap. Also
33782 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
33783
33784 2009-02-21 Robert Millan <rmh@aybabtu.com>
33785
33786 Implement USB keyboard support (based on patch by Marco Gerards)
33787
33788 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
33789 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
33790 (usb_keyboard_mod_LDFLAGS): New variables.
33791
33792 * term/usb_keyboard.c: New file.
33793
33794 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
33795
33796 Corrected wrong declaration
33797
33798 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
33799
33800 2009-02-14 Christian Franke <franke@computer.org>
33801
33802 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
33803 (grub_lspci_iter): Print class code and programming interface byte.
33804
33805 2009-02-14 Christian Franke <franke@computer.org>
33806
33807 * gendistlist.sh: Ignore `.svn' directories.
33808
33809 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
33810
33811 * fs/fat.c: Add 2009 to Copyright line.
33812
33813 2009-02-14 Christian Franke <franke@computer.org>
33814
33815 * commands/hdparm.c: New file. Provides `hdparm' command
33816 which sends ATA commands via grub_disk_ata_pass_through ().
33817
33818 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
33819
33820 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
33821 and <grub/cpu/io.h> to include/grub/ata.h.
33822 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
33823 (GRUB_CDROM_SECTOR_SIZE): Remove.
33824 (GRUB_ATA_*): Move to include/grub/ata.h.
33825 (GRUB_ATAPI_*): Likewise.
33826 (enum grub_ata_commands): Likewise.
33827 (enum grub_ata_timeout_milliseconds): Likewise.
33828 (struct grub_ata_device): Likewise.
33829 (grub_ata_regset): Likewise.
33830 (grub_ata_regget): Likewise.
33831 (grub_ata_regset2): Likewise.
33832 (grub_ata_regget2): Likewise.
33833 (grub_ata_check_ready): Likewise.
33834 (grub_ata_wait_not_busy): Remove static, exported in
33835 include/grub/ata.h.
33836 (grub_ata_wait_drq): Likewise.
33837 (grub_ata_pio_read): Likewise.
33838
33839 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
33840 function for hdparm.mod.
33841
33842 * include/grub/ata.h: New file, contains declarations from
33843 disk/ata.c.
33844 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
33845
33846 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
33847 (grub_disk_ata_pass_through): New exported variable.
33848
33849 * kern/disk.c (grub_disk_ata_pass_through): New variable.
33850
33851 2009-02-13 Colin D Bennett <colin@gibibit.com>
33852
33853 Support multiple fallback entries, and provide an API to support
33854 executing default+fallback menu entries. Renamed the `terminal' menu
33855 viewer to `text'.
33856
33857 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
33858 variable declaration.
33859 (grub_menu_execute_callback): New structure declaration.
33860 (grub_menu_execute_callback_t): New typedef.
33861 (grub_menu_execute_with_fallback): New function declaration.
33862 (grub_menu_get_entry): Likewise.
33863 (grub_menu_get_timeout): Likewise.
33864 (grub_menu_set_timeout): Likewise.
33865
33866 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
33867
33868 * normal/menu.c (grub_wait_after_message): Moved to
33869 `normal/menu_text.c'.
33870 (draw_border): Likewise.
33871 (print_message): Likewise.
33872 (print_entry): Likewise.
33873 (print_entries): Likewise.
33874 (grub_menu_init_page): Likewise.
33875 (get_entry_number): Likewise.
33876 (print_timeout): Likewise.
33877 (run_menu): Likewise.
33878 (grub_menu_execute_entry): Likewise.
33879 (show_text_menu): Likewise.
33880 (get_and_remove_first_entry_number): New function.
33881 (grub_menu_execute_with_fallback): Likewise.
33882 (get_entry): Renamed to ...
33883 (grub_menu_get_entry): .. this and made it global.
33884 (get_timeout): Renamed to ...
33885 (grub_menu_get_timeout): ... this and made it global.
33886 (set_timeout): Renamed to ...
33887 (grub_menu_set_timeout): ... this and made it global.
33888 (grub_normal_terminal_menu_viewer): Renamed to ...
33889 (grub_normal_text_menu_viewer): ... this.
33890
33891 * normal/menu_text.c: New file. Extracted text-menu-specific code
33892 from normal/menu.c.
33893
33894 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
33895 (normal_mod_SOURCES): Likewise.
33896
33897 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33898 (normal_mod_SOURCES): Likewise.
33899
33900 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33901 (normal_mod_SOURCES): Likewise.
33902
33903 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
33904 (normal_mod_SOURCES): Likewise.
33905
33906 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33907 (normal_mod_SOURCES): Likewise.
33908
33909 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33910 (normal_mod_SOURCES): Likewise.
33911
33912 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33913 (normal_mod_SOURCES): Likewise.
33914
33915 2009-02-11 Robert Millan <rmh@aybabtu.com>
33916
33917 * util/grub.d/00_header.in: Update old reference to `font' command.
33918
33919 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
33920
33921 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
33922
33923 Based on patch from Javier Martín.
33924
33925 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33926
33927 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
33928 to avoid false positives with FAT.
33929 (grub_fstest_SOURCES): Likewise.
33930 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33931 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33932 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33933 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33934 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33935 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33936
33937 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33938
33939 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
33940 bpb.version_specific.fat12_or_fat16.fstype and
33941 bpb.version_specific.fat32.fstype.
33942
33943 2009-02-08 Robert Millan <rmh@aybabtu.com>
33944
33945 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
33946
33947 2009-02-08 Robert Millan <rmh@aybabtu.com>
33948
33949 * Makefile.in (host_os, host_cpu): New variables.
33950 (target_os): Remove. Update all users.
33951
33952 2009-02-08 Marco Gerards <marco@gnu.org>
33953
33954 * Makefile.in (enable_grub_emu_usb): New variable.
33955 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
33956 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
33957 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
33958 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
33959 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
33960 `usbtest.mod' and `usbms.mod'.
33961 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
33962 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
33963 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
33964 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
33965 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
33966 variables.
33967
33968 * disk/usbms.c: New file.
33969
33970 * include/grub/usb.h: Likewise.
33971
33972 * include/grub/usbtrans.h: Likewise.
33973
33974 * include/grub/usbdesc.h: Likewise.
33975
33976 * bus/usb/usbtrans.c: Likewise.
33977
33978 * bus/usb/ohci.c: Likewise.
33979
33980 * bus/usb/uhci.c: Likewise.
33981
33982 * bus/usb/usbhub.c: Likewise.
33983
33984 * bus/usb/usb.c: Likewise.
33985
33986 * commands/usbtest.c: Likewise.
33987
33988 * util/usb.c: Likewise.
33989
33990 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
33991
33992 * configure.ac: Test for libusb presence.
33993
33994 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
33995
33996 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
33997
33998 * kern/mm.c: Add more comments.
33999
34000 2009-02-08 Robert Millan <rmh@aybabtu.com>
34001
34002 Patch from Javier Martín.
34003 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
34004 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
34005
34006 2009-02-08 Robert Millan <rmh@aybabtu.com>
34007
34008 * fs/cpio.c: Split tar functionality to ...
34009 * fs/tar.c: ... here (new file). Update all users.
34010
34011 2009-02-07 Robert Millan <rmh@aybabtu.com>
34012
34013 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
34014 backward-incompatible features.
34015
34016 Based on patch from Javier Martín, with some adjustments.
34017
34018 2009-02-07 Michael Scherer <misc@mandriva.org>
34019
34020 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
34021
34022 2009-02-07 Robert Millan <rmh@aybabtu.com>
34023
34024 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
34025 position of `disk/lvm.c' to ensure grub_init_all() always picks it
34026 after the RAID stuff.
34027
34028 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
34029
34030 Fixes problem when running vbetest command as reported by
34031 Vladimir Serbinenko <phcoder@gmail.com>.
34032
34033 * (grub_vbe_set_video_mode): Fixed problem with text modes.
34034
34035 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
34036
34037 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
34038 /dev/md/NpN style mdraid devices.
34039
34040 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
34041
34042 * util/unifont2pff.rb: Remove.
34043
34044 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
34045
34046 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
34047 `#'.
34048
34049 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
34050
34051 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
34052 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34053 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34054 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34055 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34056 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34057 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34058
34059 2009-02-02 Christian Franke <franke@computer.org>
34060
34061 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
34062
34063 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
34064
34065 * INSTALL: Note that we now require at least autoconf 2.59 and
34066 that LZO is optional.
34067
34068 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34069
34070 Base on patch on bug #24154 created by Tomas Tintera
34071 <trosos@seznam.cz>.
34072
34073 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
34074
34075 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34076
34077 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
34078 <bero@arklinux.org>.
34079
34080 * normal/parser.y (script_init): Add missing semicolon.
34081
34082 2009-01-31 Colin D Bennett <colin@gibibit.com>
34083
34084 * normal/main.c: Add include to grub/menu_viewer.h.
34085 (free_menu_entry_classes): Added.
34086 (grub_normal_menu_addentry): Added class property handling.
34087 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
34088 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
34089
34090 * normal/menu_viewer.c: New file.
34091
34092 * normal/menu.c (run_menu_entry): Renamed to ...
34093 (grub_menu_execute_entry): ... this and made it as global.
34094 (grub_menu_run): Renamed to ...
34095 (show_text_menu): ... this and made it local.
34096 (show_text_menu): Adapt to new function names.
34097 (grub_normal_terminal_menu_viewer): New global variable.
34098
34099 * include/grub/menu.h: New file.
34100
34101 * include/grub/menu_viewer.h: New file.
34102
34103 * include/grub/normal.h: Added include to grub/menu.h.
34104 (grub_menu_entry): Moved to include/grub/menu.h.
34105 (grub_menu_entry_t): Likewise.
34106 (grub_menu): Likewise.
34107 (grub_menu_t): Likewise.
34108 (grub_normal_terminal_menu_viewer): Added.
34109 (grub_menu_execute_entry): Likewise.
34110 (grub_menu_run): Removed.
34111
34112 * DISTLIST: Added include/grub/menu.h.
34113 Added include/grub/menu_viewer.h.
34114 Added normal/menu_viewer.c.
34115
34116 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
34117
34118 * normal/execute.c (grub_script_execute_menuentry): Changed to use
34119 arglist for menutitle arguments.
34120
34121 * normal/main.c (grub_normal_menu_addentry): Likewise.
34122
34123 * normal/parser.y (menuentry): Likewise.
34124
34125 * normal/script.c (grub_script_create_cmdmenu): Likewise.
34126
34127 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
34128 (grub_script_create_cmdmenu): Likewise.
34129
34130 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
34131
34132 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
34133 changes.
34134
34135 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
34136
34137 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
34138
34139 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
34140
34141 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34142
34143 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34144
34145 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34146
34147 2009-01-30 Christian Franke <franke@computer.org>
34148
34149 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
34150 in option help text.
34151
34152 2009-01-27 Pavel Roskin <proski@gnu.org>
34153
34154 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
34155
34156 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34157
34158 * commands/lsmmap.c: Add include to grub/machine/memory.h.
34159
34160 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
34161
34162 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
34163 unregister function.
34164
34165 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34166
34167 * disk/scsi.c (grub_scsi_read): Fix sign problem.
34168
34169 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
34170
34171 * util/grub-mkfont.c (usage): Fix typo.
34172
34173 * util/elf/grub-mkimage.c (load_modules): Fix warning.
34174
34175 2009-01-26 Daniel Mierswa <impulze@impulze.org>
34176
34177 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
34178
34179 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
34180
34181 * kern/misc.c (grub_strcasecmp): New function.
34182 (grub_strcasecmp): Use grub_size_t instead of int for length.
34183 Fix return value.
34184 * include/grub/misc.h: Update function prototypes.
34185
34186 2009-01-26 Robert Millan <rmh@aybabtu.com>
34187
34188 * configure.ac: Fix cross-compilation check.
34189
34190 2009-01-22 Christian Franke <franke@computer.org>
34191
34192 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
34193 (precision) digit string. Allow `.format2' without `format1' (width).
34194 Limit input chars for `%s' output to `format2' if specified. This is
34195 compatible with standard printf ().
34196
34197 2009-01-22 Christian Franke <franke@computer.org>
34198
34199 * disk/ata.c (grub_ata_wait_status): Replace by ...
34200 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
34201 other status bits may be invalid while BSY is asserted.
34202 (grub_ata_check_ready): New function.
34203 (grub_ata_cmd): Removed.
34204 (grub_ata_wait_drq): New function.
34205 (grub_ata_strncpy): Remove inline.
34206 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
34207 and error check now done by grub_ata_wait_drq ().
34208 (grub_ata_pio_write): Likewise.
34209 (grub_atapi_identify): Set DEV before check for !BSY. Use
34210 grub_ata_wait_drq () to wait for data.
34211 (grub_ata_device_initialize): Add status register check to
34212 detect missing SATA slave devices. Add debug messages.
34213 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
34214 (grub_atapi_packet): Set DEV before check for !BSY. Replace
34215 transfer loop by grub_ata_pio_write ().
34216 (grub_ata_identify): Set DEV before check for !BSY. Use
34217 grub_ata_wait_drq () to wait for data.
34218 (grub_ata_setaddress): Set DEV before check for !BSY.
34219 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
34220 read/write in one loop. Fix invalid command on write. Fix incomplete
34221 command on (size % batch) == 0. Add missing error check after write of
34222 last block. Add debug messages.
34223 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
34224
34225 2009-01-19 Christian Franke <franke@computer.org>
34226
34227 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
34228 (GRUB_ATAPI_IREASON_*): Likewise.
34229 (grub_ata_pio_write): Fix timeout error return.
34230 (grub_atapi_identify): Add grub_ata_wait () after cmd.
34231 (grub_atapi_wait_drq): New function.
34232 (grub_atapi_packet): New parameter `size'.
34233 Use grub_atapi_wait_drq () and direct write instead of
34234 grub_ata_pio_write ().
34235 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
34236 reads the number of bytes requested by the device for each DRQ
34237 assertion.
34238 (grub_atapi_write): Remove old implementation, return not
34239 implemented instead.
34240
34241 2009-01-19 Christian Franke <franke@computer.org>
34242
34243 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
34244 of 512 to calculate data size.
34245 (grub_scsi_read12): Likewise.
34246 (grub_scsi_write10): Likewise.
34247 (grub_scsi_write12): Likewise.
34248 (grub_scsi_read): Adjust size according to blocksize.
34249 Add checks for invalid blocksize and unaligned transfer.
34250
34251 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
34252
34253 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
34254
34255 * term/gfxterm.c (write_char): Fix background rendering for wide
34256 width glyphs.
34257
34258 2009-01-19 Robert Millan <rmh@aybabtu.com>
34259
34260 * config.guess: Update to latest version from config git.
34261 * config.sub: Likewise.
34262
34263 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
34264
34265 * Makefile.in: Change font compilation to use new grub-mkfont instead
34266 of java version.
34267
34268 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
34269 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34270 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34271 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34272 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34273 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34274 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34275 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34276 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34277
34278 2009-01-16 Christian Franke <franke@computer.org>
34279
34280 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
34281 (enum grub_ata_timeout_milliseconds): New enum.
34282 (grub_ata_wait_status): Add parameter milliseconds.
34283 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
34284 recovery from timed-out commands.
34285 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
34286 return grub_errno instead of REG_ERROR.
34287 (grub_ata_pio_write): Add parameter milliseconds.
34288 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
34289 Pass milliseconds to grub_ata_wait_status () and
34290 grub_ata_pio_read ().
34291 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
34292 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
34293 grub_ata_wait_status (). Fix IDENTIFY timeout check.
34294 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
34295 It is not suitable for device detection, because DEV bit is ignored,
34296 the command may run too long, and not all devices set the signature
34297 properly.
34298 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
34299 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
34300 Fix device selection, DEV bit must be set first to address the registers
34301 of the correct device.
34302 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
34303 grub_ata_pio_read/write ().
34304 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
34305 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
34306
34307 2009-01-13 Carles Pina i Estany <carles@pina.cat>
34308
34309 * util/grub-editenv.c (main): Use fseeko(), not fseek().
34310
34311 2009-01-13 Bean <bean123ch@gmail.com>
34312
34313 * util/grub-mkfont.c (write_font): forget to remove some debug code.
34314
34315 2009-01-13 Bean <bean123ch@gmail.com>
34316
34317 * Makefile.in: (enable_grub_mkfont): New variable.
34318 (freetype_cflags): Likewise.
34319 (freetype_libs): Likewise.
34320
34321 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
34322 (grub_mkfont_SOURCES): New variable.
34323 (grub_mkfont_CFLAGS): Likewise.
34324 (grub_mkfont_LDFLAGS): Likewise.
34325
34326 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
34327 library if `--enable-grub-mkfont' is requested.
34328 (enable_grub_mkfont): New variable.
34329 (freetype_cflags): Likewise.
34330 (freetype_libs): Likewise.
34331
34332 * util/grub-mkfont.c: New file.
34333
34334 2009-01-12 Christian Franke <franke@computer.org>
34335
34336 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
34337 mode check. Fix setting of compat_use[].
34338
34339 2009-01-10 Robert Millan <rmh@aybabtu.com>
34340
34341 Update a few copyright years which we forgot to do in 2008 (only for
34342 files whose changes made in 2008 were copyright-significant)
34343
34344 * Makefile.in: Add 2008 to Copyright line.
34345 * disk/ieee1275/ofdisk.c: Likewise.
34346 * disk/efi/efidisk.c: Likewise.
34347 * kern/dl.c: Likewise.
34348 * kern/sparc64/ieee1275/init.c: Likewise.
34349 * kern/mm.c: Likewise.
34350 * kern/efi/mm.c: Likewise.
34351 * boot/i386/pc/boot.S: Likewise.
34352 * genfslist.sh: Likewise.
34353 * fs/iso9660.c: Likewise.
34354 * fs/hfs.c: Likewise.
34355 * fs/jfs.c: Likewise.
34356 * fs/minix.c: Likewise.
34357 * fs/ufs.c: Likewise.
34358 * gensymlist.sh.in: Likewise.
34359 * genkernsyms.sh.in: Likewise.
34360 * include/grub/misc.h: Likewise.
34361 * include/grub/types.h: Likewise.
34362 * include/grub/symbol.h: Likewise.
34363 * include/grub/elf.h: Likewise.
34364 * include/grub/kernel.h: Likewise.
34365 * include/grub/disk.h: Likewise.
34366 * include/grub/dl.h: Likewise.
34367 * include/grub/i386/linux.h: Likewise.
34368 * include/grub/i386/pc/biosdisk.h: Likewise.
34369 * include/grub/efi/api.h: Likewise.
34370 * include/grub/efi/pe32.h: Likewise.
34371 * include/grub/util/misc.h: Likewise.
34372 * normal/execute.c: Likewise.
34373 * normal/arg.c: Likewise.
34374 * normal/completion.c: Likewise.
34375 * normal/lexer.c: Likewise.
34376 * normal/parser.y: Likewise.
34377 * normal/misc.c: Likewise.
34378 * commands/i386/pc/vbeinfo.c: Likewise.
34379 * commands/hexdump.c: Likewise.
34380 * commands/terminal.c: Likewise.
34381 * commands/ls.c: Likewise.
34382 * commands/help.c: Likewise.
34383 * partmap/pc.c: Likewise.
34384 * loader/efi/chainloader.c: Likewise.
34385 * loader/multiboot_loader.c: Likewise.
34386 * loader/i386/pc/multiboot2.c: Likewise.
34387 * term/efi/console.c: Likewise.
34388 * term/i386/pc/serial.c: Likewise.
34389 * util/lvm.c: Likewise.
34390 * util/console.c: Likewise.
34391 * util/i386/efi/grub-mkimage.c: Likewise.
34392 * util/raid.c: Likewise.
34393
34394 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
34395
34396 * commands/videotest.c: Removed include to grub/machine/memory.h.
34397
34398 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
34399 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
34400 (video_mod_SOURCES): Removed.
34401 (video_mod_CFLAGS): Likewise.
34402 (video_mod_LDFLAGS): Likewise.
34403 (gfxterm_mod_SOURCES): Likewise.
34404 (gfxterm_mod_CFLAGS): Likewise.
34405 (gfxterm_mod_LDFLAGS): Likewise.
34406 (videotest_mod_SOURCES): Likewise.
34407 (videotest_mod_CFLAGS): Likewise.
34408 (videotest_mod_LDFLAGS): Likewise.
34409 (bitmap_mod_SOURCES): Likewise.
34410 (bitmap_mod_CFLAGS): Likewise.
34411 (bitmap_mod_LDFLAGS): Likewise.
34412 (tga_mod_SOURCES): Likewise.
34413 (tga_mod_CFLAGS): Likewise.
34414 (tga_mod_LDFLAGS): Likewise.
34415 (jpeg_mod_SOURCES): Likewise.
34416 (jpeg_mod_CFLAGS): Likewise.
34417 (jpeg_mod_LDFLAGS): Likewise.
34418 (png_mod_SOURCES): Likewise.
34419 (png_mod_CFLAGS): Likewise.
34420 (png_mod_LDFLAGS): Likewise.
34421
34422 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
34423 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
34424 (video_mod_SOURCES): Added.
34425 (video_mod_CFLAGS): Likewise.
34426 (video_mod_LDFLAGS): Likewise.
34427 (videotest_mod_SOURCES): Likewise.
34428 (videotest_mod_CFLAGS): Likewise.
34429 (videotest_mod_LDFLAGS): Likewise.
34430 (bitmap_mod_SOURCES): Likewise.
34431 (bitmap_mod_CFLAGS): Likewise.
34432 (bitmap_mod_LDFLAGS): Likewise.
34433 (tga_mod_SOURCES): Likewise.
34434 (tga_mod_CFLAGS): Likewise.
34435 (tga_mod_LDFLAGS): Likewise.
34436 (jpeg_mod_SOURCES): Likewise.
34437 (jpeg_mod_CFLAGS): Likewise.
34438 (jpeg_mod_LDFLAGS): Likewise.
34439 (png_mod_SOURCES): Likewise.
34440 (png_mod_CFLAGS): Likewise.
34441 (png_mod_LDFLAGS): Likewise.
34442 (gfxterm_mod_SOURCES): Likewise.
34443 (gfxterm_mod_CFLAGS): Likewise.
34444 (gfxterm_mod_LDFLAGS): Likewise.
34445
34446 * term/gfxterm.c: Removed include to grub/machine/memory.h,
34447 grub/machine/console.h.
34448
34449 2009-01-04 Jerone Young <jerone@gmail.com>
34450
34451 Make on screen instructions clearer
34452
34453 Based on patch created by Jidanni <jidanni@jidanni.org>
34454
34455 * normal/menu.c: print clearer instructions on the screen
34456
34457 2009-01-02 Colin D Bennett <colin@gibibit.com>
34458
34459 New font engine.
34460
34461 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
34462 build system and fixed gfxterm.c to work with different sized fonts.
34463
34464 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34465
34466 * configure: Re-generated.
34467
34468 * DISTLIST: Removed font/manager.c.
34469 Added font/font.c.
34470 Added font/font_cmd.c.
34471
34472 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
34473 compilation.
34474
34475 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34476
34477 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
34478
34479 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34480
34481 * normal/menu.c: Likewise.
34482
34483 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
34484 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34485
34486 * include/grub/font.h: Replaced with new file.
34487
34488 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
34489 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
34490 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
34491 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
34492 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34493 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
34494 fg_red, fg_green, fg_blue, fg_alpha.
34495 (grub_video_adapter): Removed blit_glyph.
34496 (grub_video_blit_glyph): Removed.
34497
34498 * font/manager.c: Removed file.
34499
34500 * font/font.c: New file.
34501
34502 * font/font_cmd.c: Likewise.
34503
34504 * video/video.c (grub_video_blit_glyph): Removed.
34505
34506 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
34507 (grub_video_vbe_map_rgba): Likewise.
34508 (grub_video_vbe_unmap_color_int): Likewise.
34509 (grub_video_vbe_blit_glyph): Removed.
34510 (grub_video_vbe_adapter): Removed blit_glyph.
34511
34512 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
34513 (get_pixel): Likewise.
34514 (set_pixel): Likewise.
34515
34516 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34517
34518 * term/gfxterm.c: Adapted to new font engine.
34519
34520 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34521
34522 * term/i386/pc/vga.c: Likewise.
34523
34524 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34525
34526 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34527
34528 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34529
34530 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34531
34532 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34533
34534 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34535
34536 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34537
34538 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34539
34540 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34541
34542 * util/grub.d/00_header.in: Changed to use new loadfont command.
34543
34544 * util/grub-mkconfig_lib.in: Changed font extension.
34545
34546 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
34547
34548 * util/getroot.c (grub_util_get_grub_dev): Add support for
34549 /dev/md/dNNpNN style partitionable mdraid devices.
34550
34551 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
34552
34553 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
34554 at a time limit of the PXE TFTP API correctly.
34555 (grub_pxefs_close): Likewise.
34556
34557 2008-11-29 Robert Millan <rmh@aybabtu.com>
34558
34559 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
34560 grub_ata_device_initialize() calls.
34561
34562 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
34563
34564 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
34565 iteration failed.
34566 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
34567
34568 2008-11-28 Robert Millan <rmh@aybabtu.com>
34569
34570 Fix build on powerpc-ieee1275. Based on patch created by
34571 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
34572 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34573 `kern/ieee1275/mmap.c'.
34574 * include/grub/powerpc/ieee1275/memory.h: New file.
34575
34576 Provide grub-install on coreboot.
34577 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
34578 (grub_install_SOURCES): New variable.
34579 * util/i386/pc/grub-install.in: Add a few condition checks to make it
34580 usable on coreboot.
34581
34582 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
34583
34584 * util/grub-fstest.c (grub_term_get_current_input): Change return type
34585 to `grub_term_input_t'.
34586 (grub_term_get_current_output): Change return type to
34587 `grub_term_output_t'.
34588
34589 2008-11-22 Robert Millan <rmh@aybabtu.com>
34590
34591 Fix breakage on coreboot due to declaration mismatch.
34592 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
34593 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
34594 grub_vga_text_cls().
34595
34596 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34597 comments. Avoid copying one more byte than necessary (just in case).
34598
34599 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
34600 to 0x200000 (avoids trouble with some OFW implementations, and matches
34601 with the one in Yaboot).
34602 Reported by Manoel Abranches
34603
34604 2008-11-20 Robert Millan <rmh@aybabtu.com>
34605
34606 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
34607 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
34608
34609 * util/grub-mkconfig_lib.in (grub_warn): New function.
34610 (convert_system_path_to_grub_path): Use grub_warn() when issuing
34611 warnings, to obtain consistent formatting.
34612 * util/grub.d/00_header.in: Likewise.
34613 * util/update-grub_lib.in: Likewise.
34614
34615 * loader/i386/linux.c (allocate_pages): Fix a warning.
34616 Move comment text to `#error' stanza.
34617
34618 Harmonize ieee1275's grub_available_iterate() with the generic
34619 grub_machine_mmap_iterate() interface (fixes a recently-introduced
34620 build problem on i386-ieee1275):
34621 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
34622 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
34623 parameter `type'. Update all users of this function.
34624 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
34625 `kern/ieee1275/mmap.c'.
34626 * kern/ieee1275/init.c
34627 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
34628 with ...
34629 (grub_machine_mmap_iterate): ... this.
34630 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
34631 return type to `grub_err_t'. Update all implementations of this
34632 function prototype.
34633 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
34634 Likewise.
34635
34636 Add `lsmmap' command (lists firmware-provided memory map):
34637 * commands/lsmmap.c: New file.
34638 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
34639 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
34640 variables.
34641 * conf/powerpc-ieee1275.rmk: Likewise.
34642 * conf/i386-coreboot.rmk: Likewise.
34643 * conf/i386-ieee1275.rmk: Likewise.
34644
34645 2008-11-19 Robert Millan <rmh@aybabtu.com>
34646
34647 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
34648 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
34649 constraints to initrd allocation (based on code from
34650 loader/i386/pc/linux.c). Without them, initrd was allocated too high
34651 for Linux to find it.
34652
34653 2008-11-14 Robert Millan <rmh@aybabtu.com>
34654
34655 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
34656 order to cope with duplicate slashes.
34657
34658 2008-11-14 Robert Millan <rmh@aybabtu.com>
34659
34660 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
34661 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
34662 don't want to mess with lower memory, because it is used in the Linux
34663 loader.
34664
34665 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34666 an appropriate place in lower memory, between 0x10000 and 0x90000,
34667 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
34668 is in our heap (probably as a result of it being corrupted during
34669 decompression). Add #error instance with comment to explain why this
34670 loader isn't currently usable on PC/BIOS.
34671
34672 2008-11-14 Robert Millan <rmh@aybabtu.com>
34673
34674 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34675 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
34676
34677 2008-11-12 Robert Millan <rmh@aybabtu.com>
34678
34679 Make loader/i386/linux.c buildable on i386-pc (although disabled).
34680
34681 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
34682 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
34683 from here ...
34684 * include/grub/i386/pc/memory.h: ... to here.
34685
34686 2008-11-12 Robert Millan <rmh@aybabtu.com>
34687
34688 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
34689 split).
34690
34691 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
34692 (grub_console_cur_color, grub_console_real_putchar)
34693 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34694 (grub_console_setcolorstate, grub_console_setcolor)
34695 (grub_console_getcolor): Move from here ...
34696 * include/grub/i386/vga_common.h: ... to here (new file).
34697
34698 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
34699 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
34700 `<grub/i386/io.h>'.
34701 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
34702 `<grub/i386/vga_common.h>'.
34703
34704 2008-11-12 Robert Millan <rmh@aybabtu.com>
34705
34706 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
34707 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
34708 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
34709 variables.
34710 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34711 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
34712
34713 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
34714 grub_console_init() with call to grub_vga_text_init().
34715 (grub_machine_fini): Replace call to
34716 grub_console_fini() with call to grub_vga_text_fini() and
34717 grub_at_keyboard_fini().
34718
34719 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
34720 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34721 (grub_console_setcolorstate, grub_console_setcolor)
34722 (grub_console_getcolor): New function prototypes.
34723
34724 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
34725 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
34726 (grub_vga_text_setcursor): Static-ize.
34727 (grub_vga_text_term): New structure.
34728 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
34729
34730 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
34731 (grub_console_cur_color, grub_console_standard_color)
34732 (grub_console_normal_color, grub_console_highlight_color)
34733 (map_char, grub_console_putchar, grub_console_getcharwidth)
34734 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
34735 (grub_console_getcolor): Move from here ...
34736 * term/i386/vga_common.c: ... to here (same function names).
34737
34738 2008-11-12 Robert Millan <rmh@aybabtu.com>
34739
34740 Use newly-added Multiboot support in coreboot.
34741
34742 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34743 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
34744
34745 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
34746 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
34747 (codestart): Store the MBI in `startup_multiboot_info' when we're
34748 being loaded using Multiboot.
34749
34750 * kern/i386/coreboot/init.c (grub_machine_init): Move
34751 grub_at_keyboard_init() call to beginning of function (useful for
34752 debugging). Call grub_machine_mmap_init() before attempting to use
34753 grub_machine_mmap_iterate().
34754 (grub_lower_mem, grub_upper_mem): Move from here ...
34755 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
34756 here (new file).
34757
34758 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
34759 function prototype.
34760
34761 2008-11-12 Robert Millan <rmh@aybabtu.com>
34762
34763 Fix a regression introduced by the at_keyboard.mod split. Because
34764 some terminals are default on some platforms and non-default on
34765 others, the first terminal being registered determines which is
34766 going to be default.
34767
34768 * kern/term.c (grub_term_register_input): If this is the first
34769 terminal being registered, set it as the current one.
34770 (grub_term_register_output): Likewise.
34771
34772 * term/efi/console.c (grub_console_init): Do not call
34773 grub_term_set_current_output() or grub_term_set_current_input().
34774 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
34775 * term/i386/pc/console.c (grub_console_init): Likewise.
34776 (grub_console_fini): Do not call grub_term_set_current_input()
34777 (but leave grub_term_set_current_output() to restore text mode).
34778
34779 2008-11-10 Robert Millan <rmh@aybabtu.com>
34780
34781 * util/grub.d/00_header.in: Add backward compatibility check for
34782 versions of terminal.mod that don't understand `terminal_input' or
34783 `terminal_output'.
34784
34785 2008-11-09 Robert Millan <rmh@aybabtu.com>
34786
34787 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
34788 `terminal_input' / `terminal_output', not `terminal'.
34789
34790 2008-11-08 Robert Millan <rmh@aybabtu.com>
34791
34792 * Makefile.in (include_DATA): Fix srcdir=. assumption.
34793 (DISTCLEANFILES): Add `build_env.mk'.
34794
34795 2008-11-08 Robert Millan <rmh@aybabtu.com>
34796
34797 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
34798 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34799 members. Update all users.
34800 * util/console.c (grub_ncurses_term): Split in ...
34801 (grub_ncurses_term_input): ... this, and ...
34802 (grub_ncurses_term_output): ... this. Update all users.
34803 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
34804
34805 2008-11-08 Robert Millan <rmh@aybabtu.com>
34806
34807 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
34808 (PKGDATA): Add $(pkgdata_SRCDIR).
34809 (pkglib_BUILDDIR): New variable.
34810 (pkgdata_SRCDIR): New variable.
34811 (build_env.mk): New target.
34812 (include_DATA): New variable.
34813 (install-local): Install $(include_DATA) files in $(includedir).
34814
34815 2008-11-07 Pavel Roskin <proski@gnu.org>
34816
34817 * gendistlist.sh: Use C locale for sorting to ensure consistent
34818 output on all systems.
34819
34820 * util/grub.d/00_header.in: Remove incorrect space before
34821 "serial".
34822
34823 2008-11-07 Robert Millan <rmh@aybabtu.com>
34824
34825 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
34826 per specification.
34827 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
34828 * loader/multiboot_loader.c (find_multi_boot2_header): New function
34829 (based on find_multi_boot1_header).
34830 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
34831 using find_multi_boot2_header(), and abort if neither Multiboot or
34832 Multiboot headers were found.
34833
34834 2008-11-07 Robert Millan <rmh@aybabtu.com>
34835
34836 Modularize at_keyboard.mod:
34837
34838 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
34839 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
34840 (at_keyboard_mod_LDFLAGS): New variables.
34841
34842 Actual terminal split:
34843
34844 * include/grub/term.h (struct grub_term): Split in ...
34845 (struct grub_term_input): ... this, and ...
34846 (struct grub_term_output): ... this. Update all users.
34847 (grub_term_set_current): Split in ...
34848 (grub_term_set_current_input): ... this, and ...
34849 (grub_term_set_current_output): ... this.
34850 (grub_term_get_current): Split in ...
34851 (grub_term_get_current_input): ... this, and ...
34852 (grub_term_get_current_output): ... this.
34853 (grub_term_register): Split in ...
34854 (grub_term_register_input): ... this, and ...
34855 (grub_term_register_output): ... this.
34856 (grub_term_unregister): Split in ...
34857 (grub_term_unregister_input): ... this, and ...
34858 (grub_term_unregister_output): ... this.
34859 (grub_term_iterate): Split in ...
34860 (grub_term_iterate_input): ... this, and ...
34861 (grub_term_iterate_output): ... this.
34862
34863 * kern/term.c (grub_term_list): Split in ...
34864 (grub_term_list_input): ... this, and ...
34865 (grub_term_list_output): ... this. Update all users.
34866 (grub_cur_term): Split in ...
34867 (grub_cur_term_input): ... this, and ...
34868 (grub_cur_term_output): ... this. Update all users.
34869 (grub_term_set_current): Split in ...
34870 (grub_term_set_current_input): ... this, and ...
34871 (grub_term_set_current_output): ... this.
34872 (grub_term_get_current): Split in ...
34873 (grub_term_get_current_input): ... this, and ...
34874 (grub_term_get_current_output): ... this.
34875 (grub_term_register): Split in ...
34876 (grub_term_register_input): ... this, and ...
34877 (grub_term_register_output): ... this.
34878 (grub_term_unregister): Split in ...
34879 (grub_term_unregister_input): ... this, and ...
34880 (grub_term_unregister_output): ... this.
34881 (grub_term_iterate): Split in ...
34882 (grub_term_iterate_input): ... this, and ...
34883 (grub_term_iterate_output): ... this.
34884
34885 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
34886 a check for input and one for output (and only attempt to get keys
34887 from user when input works).
34888
34889 * util/grub-probe.c (grub_term_get_current): Split in ...
34890 (grub_term_get_current_input): ... this, and ...
34891 (grub_term_get_current_output): ... this.
34892 * util/grub-fstest.c: Likewise.
34893 * util/i386/pc/grub-setup.c: Likewise.
34894 * util/grub-editenv.c: Likewise.
34895
34896 Portability adjustments:
34897
34898 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
34899 `term/i386/pc/at_keyboard.c'.
34900 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
34901 grub_keyboard_controller_init() (now handled by terminal .init).
34902 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
34903 grub_at_keyboard_init().
34904 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
34905 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
34906 at_keyboard.mod via input terminal interface).
34907 * include/grub/i386/coreboot/console.h: Convert into a stub for
34908 `<grub/i386/pc/console.h>'.
34909
34910 Migrate full terminals to new API:
34911
34912 * term/efi/console.c (grub_console_term): Split into ...
34913 (grub_console_term_input): ... this, and ...
34914 (grub_console_term_output): ... this. Update all users.
34915 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
34916 (grub_ofconsole_init): Split into ...
34917 (grub_ofconsole_init_input): ... this, and ...
34918 (grub_ofconsole_init_output): ... this.
34919 (grub_ofconsole_term): Split into ...
34920 (grub_ofconsole_term_input): ... this, and ...
34921 (grub_ofconsole_term_output): ... this. Update all users.
34922 * term/i386/pc/serial.c (grub_serial_term): Split into ...
34923 (grub_serial_term_input): ... this, and ...
34924 (grub_serial_term_output): ... this. Update all users.
34925 * term/i386/pc/console.c (grub_console_term): Split into ...
34926 (grub_console_term_input): ... this, and ...
34927 (grub_console_term_output): ... this. Update all users.
34928 (grub_console_term_input): Only enable it on PC/BIOS platform.
34929 (grub_console_init): Remove grub_keyboard_controller_init() call.
34930
34931 Migrate input terminals to new API:
34932
34933 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
34934 `i386' and `i386/pc' to enable build on x86_64 (this driver is
34935 i386-specific anyway).
34936 (grub_console_checkkey): Rename to ...
34937 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
34938 users.
34939 (grub_keyboard_controller_orig): New variable.
34940 (grub_console_getkey): Rename to ...
34941 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
34942 users.
34943 (grub_keyboard_controller_init): Static-ize. Save original
34944 controller value so that it can be restored ...
34945 (grub_keyboard_controller_fini): ... here (new function).
34946 (grub_at_keyboard_term): New structure.
34947 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
34948 functions.
34949
34950 Migrate output terminals to new API:
34951
34952 * term/i386/pc/vga.c (grub_vga_term): Change type to
34953 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34954 members. Update all users.
34955 * term/gfxterm.c (grub_video_term): Change type to
34956 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34957 members. Update all users.
34958 * include/grub/i386/pc/console.h (grub_console_checkkey)
34959 (grub_console_getkey): Do not export (no longer needed by gfxterm,
34960 etc).
34961
34962 Migrate `terminal' command and userland tools to new API:
34963
34964 * commands/terminal.c (grub_cmd_terminal): Split into ...
34965 (grub_cmd_terminal_input): ... this, and ...
34966 (grub_cmd_terminal_output): ... this.
34967 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
34968 `terminal_input' and `terminal_output'.
34969 * util/grub.d/00_header.in: Adjust `terminal' calls to new
34970 `terminal_input' / `terminal_output' API.
34971 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
34972 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
34973 provided ${GRUB_TERMINAL}, convert it).
34974
34975 2008-11-04 Robert Millan <rmh@aybabtu.com>
34976
34977 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
34978 for FreeBSD.
34979 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
34980
34981 2008-11-03 Bean <bean123ch@gmail.com>
34982
34983 * kern/elf.c (grub_elf32_load): Revert to previous code.
34984 (grub_elf64_load): Likewise.
34985
34986 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
34987
34988 2008-11-01 Robert Millan <rmh@aybabtu.com>
34989
34990 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
34991 (TARGET_CPPFLAGS): Likewise.
34992 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
34993
34994 2008-11-01 Carles Pina i Estany <carles@pina.cat>
34995
34996 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
34997
34998 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34999
35000 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
35001 addition of objects until the code is not going to be able to fail.
35002
35003 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
35004
35005 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
35006 (add a missing NULL check, and correct them by moving the pointer
35007 operations after the actual check).
35008
35009 2008-10-29 Robert Millan <rmh@aybabtu.com>
35010
35011 * util/i386/pc/grub-install.in: Handle empty string as output from
35012 make_system_path_relative_to_its_root().
35013
35014 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
35015
35016 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
35017 circular metadata worst case scenario. If the metadata is circular
35018 then copy the wrap in place.
35019 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
35020 project lib/format_text/layout.h
35021 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
35022
35023 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
35024
35025 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
35026
35027 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
35028
35029 * util/update-grub_lib.in: Mention filename in warning message.
35030
35031 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
35032
35033 * NEWS: Update for rename of update-grub to grub-mkconfig.
35034
35035 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
35036
35037 * util/update-grub_lib.in: Copy to ...
35038 * util/grub-mkconfig_lib.in: ... this. Update all users.
35039 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
35040 * util/update-grub.in: Rename to ...
35041 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
35042 option. Add `--output' option to allow users to specify the generated
35043 configuration file. Default to stdout.
35044 (update_grub_dir): Rename to ...
35045 (grub_mkconfig_dir): ... this.
35046 (grub_cfg): Default to an empty string.
35047 * conf/common.rmk (update-grub): Rename to ...
35048 (grub-mkconfig): ... this.
35049 (update-grub_lib): Copy to ...
35050 (grub-mkconfig_lib): ... this.
35051 (update-grub_SCRIPTS): Copy to ...
35052 (grub-mkconfig_SCRIPTS): ... this. Update all users.
35053 (update-grub_DATA): Rename to ...
35054 (grub-mkconfig_DATA): ... this.
35055
35056 2008-09-28 Robert Millan <rmh@aybabtu.com>
35057
35058 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
35059 to `modified'. Add the real `created' field.
35060 (grub_iso9660_uuid): Use `modified' rather than `created' for
35061 constructing the UUID.
35062
35063 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
35064
35065 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
35066 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
35067
35068 2008-09-28 Bean <bean123ch@gmail.com>
35069
35070 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
35071 Thanks to Christian Franke for finding this bug.
35072
35073 2008-09-25 Robert Millan <rmh@aybabtu.com>
35074
35075 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
35076 instances of grub_util_get_disk_name() (see previous commit).
35077
35078 2008-09-25 Robert Millan <rmh@aybabtu.com>
35079
35080 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
35081 `util/i386/get_disk_name.c'.
35082 * conf/i386-efi.rmk: Likewise.
35083 * conf/x86_64-efi.rmk: Likewise.
35084 * conf/i386-coreboot.rmk: Likewise.
35085 * conf/i386-ieee1275.rmk: Likewise.
35086 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
35087 `util/ieee1275/get_disk_name.c'.
35088 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
35089 * util/ieee1275/get_disk_name.c: Remove file.
35090 * util/i386/get_disk_name.c: Remove file.
35091 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
35092 "hd%d" for device.map entries, rather than using
35093 grub_util_get_disk_name().
35094
35095 2008-09-24 Carles Pina i Estany <carles@pina.cat>
35096
35097 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
35098 warning.
35099 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
35100
35101 2008-09-24 Carles Pina i Estany <carles@pina.cat>
35102
35103 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
35104 Changed to 0x5100.
35105 (GRUB_TERM_PPAGE): Changed to 0x4900.
35106
35107 2008-09-24 Robert Millan <rmh@aybabtu.com>
35108
35109 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
35110 macros (they were i386-pc specific).
35111 * include/grub/sparc64/ieee1275/console.h: Likewise.
35112 * include/grub/efi/console.h: Likewise.
35113
35114 2008-09-22 Bean <bean123ch@gmail.com>
35115
35116 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
35117 resident and in attribute list.
35118
35119 * include/grub/ntfs.h (BMP_LEN): Removed.
35120
35121 2008-09-22 Bean <bean123ch@gmail.com>
35122
35123 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
35124 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
35125
35126 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
35127 error occurs, as grub_disk_open will call grub_disk_close, which will
35128 call p->close (scsi).
35129
35130 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
35131
35132 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
35133 (AC_PREREQ): Bumped to 2.59.
35134 (AC_TRY_COMPILE): Replace obsolete macro with ...
35135 (AC_COMPILE_IFELSE): ... this.
35136 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
35137 (AC_LINK_IFELSE): ... this.
35138
35139 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
35140
35141 * autogen.sh: Add a call to `gendistlist.sh'.
35142
35143 2008-09-19 Christian Franke <franke@computer.org>
35144
35145 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
35146 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
35147 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
35148 Export __enable_execute_stack() to modules.
35149 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
35150 New function.
35151
35152 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
35153
35154 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
35155 Sort the list.
35156
35157 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
35158
35159 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
35160 #include <grub/util/hostdisk.h>.
35161
35162 2008-09-08 Robert Millan <rmh@aybabtu.com>
35163
35164 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
35165 segments when their filesz is zero (grub_file_read() interprets
35166 zero-size as "read until EOF", which results in memory corruption).
35167 Use `lowest_segment' rather than 0 for calculating the current
35168 segment load address.
35169
35170 2008-09-08 Robert Millan <rmh@aybabtu.com>
35171
35172 * util/hostdisk.c (open_device): Replace a grub_util_info() call
35173 with grub_dprintf("hostdisk", ...), as it was so verbose that it
35174 clobbered useful information.
35175
35176 2008-09-08 Robert Millan <rmh@aybabtu.com>
35177
35178 * include/grub/util/biosdisk.h: Move to ...
35179 * include/grub/util/hostdisk.h: ... here. Update all users.
35180 * util/biosdisk.c: Move to ...
35181 * util/hostdisk.c: ... here. Update all users.
35182
35183 2008-09-07 Robert Millan <rmh@aybabtu.com>
35184
35185 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
35186 variables.
35187 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
35188 and length can be stored directly in the `mbi->mmap_addr' and
35189 `mbi->mmap_length' struct fields.
35190
35191 2008-09-07 Robert Millan <rmh@aybabtu.com>
35192
35193 * conf/i386.rmk: New file. Provides declaration for building
35194 `cpuid.mod'.
35195 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
35196 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
35197 variables.
35198 Include `conf/i386.mk'.
35199 * conf/i386-efi.rmk: Likewise.
35200 * conf/x86_64-efi.rmk: Likewise.
35201 * conf/i386-coreboot.rmk: Likewise.
35202 * conf/i386-ieee1275.rmk: Likewise.
35203
35204 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
35205
35206 Based on patch created by Colin D Bennett <colin@gibibit.com>.
35207 Adds optimization support for BGR based modes.
35208
35209 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
35210 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35211 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35212 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35213 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35214 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35215 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35216 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35217 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35218 (grub_video_i386_vbeblit_index_index): Likewise.
35219 (grub_video_i386_vbeblit_replace_directN): Added.
35220 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35221 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35222 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35223 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35224 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35225 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
35226 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
35227 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35228 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35229 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35230 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35231 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35232 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
35233
35234 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
35235 (grub_video_i386_vbefill_R8G8B8): Likewise.
35236 (grub_video_i386_vbefill_index): Likewise.
35237 (grub_video_i386_vbefill_direct32): Added.
35238 (grub_video_i386_vbefill_direct24): Likewise.
35239 (grub_video_i386_vbefill_direct16): Likewise.
35240 (grub_video_i386_vbefill_direct8): Likewise.
35241
35242 * include/grub/video.h (grub_video_blit_format): Removed
35243 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
35244 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
35245 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
35246 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
35247 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
35248
35249 * video/video.c (grub_video_get_blit_format): Updated to use new
35250 blit formats. Added handling for 16 bit color modes.
35251
35252 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
35253 fillers.
35254 (common_blitter): Updated to use new blitters.
35255
35256 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
35257 Removed.
35258 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35259 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35260 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35261 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35262 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35263 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35264 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35265 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35266 (grub_video_i386_vbeblit_index_index): Likewise.
35267 (grub_video_i386_vbeblit_replace_directN): Added.
35268 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35269 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35270 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35271 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35272 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35273 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
35274 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
35275 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35276 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35277 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35278 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35279 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35280 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
35281
35282 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
35283 (grub_video_i386_vbefill_R8G8B8): Likewise.
35284 (grub_video_i386_vbefill_index): Likewise.
35285 (grub_video_i386_vbefill_direct32): Added.
35286 (grub_video_i386_vbefill_direct24): Likewise.
35287 (grub_video_i386_vbefill_direct16): Likewise.
35288 (grub_video_i386_vbefill_direct8): Likewise.
35289
35290 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
35291 types.
35292
35293 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
35294 types.
35295
35296 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
35297 blitter types.
35298
35299 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
35300 types.
35301
35302 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
35303
35304 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
35305 RAID level 1.
35306
35307 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
35308
35309 * fs/iso9660.c (grub_iso9660_date): New structure.
35310 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
35311 (grub_iso9660_uuid): New function.
35312
35313 2008-09-05 Bean <bean123ch@gmail.com>
35314
35315 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
35316
35317 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
35318 insensitive bit for names in Win32 and Win32 & DOS namespace.
35319
35320 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
35321
35322 * include/grub/types.h (LONG_MAX): Likewise.
35323
35324 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
35325
35326 * util/getroot.c: Include <config.h>.
35327 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
35328 add support for /dev/md/N devices and handle LVM double dash escaping.
35329
35330 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
35331
35332 * config.guess: Update to latest version from config git.
35333 * config.sub: Likewise.
35334
35335 2008-09-03 Robert Millan <rmh@aybabtu.com>
35336
35337 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
35338 `disk->total_sectors'.
35339
35340 2008-09-01 Colin D Bennett <colin@gibibit.com>
35341
35342 * include/grub/normal.h: Fixed incorrect comment for
35343 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
35344
35345 2008-09-01 Colin D Bennett <colin@gibibit.com>
35346
35347 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
35348 values with defines.
35349
35350 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
35351 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
35352 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
35353 (GRUB_VBE_MODEATTR_COLOR): Likewise.
35354 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
35355 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
35356 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
35357 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
35358 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
35359 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
35360 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
35361 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
35362 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
35363 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
35364 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
35365 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
35366 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
35367 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
35368 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
35369
35370 2008-08-31 Robert Millan <rmh@aybabtu.com>
35371
35372 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
35373 declaration.
35374 (grub_multiboot): Fix a few warnings.
35375
35376 2008-08-31 Robert Millan <rmh@aybabtu.com>
35377
35378 * loader/i386/pc/multiboot.c: Update comment not to say that
35379 boot_device support is unimplemented.
35380
35381 2008-08-31 Robert Millan <rmh@aybabtu.com>
35382
35383 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
35384 or memory map support are unimplemented.
35385
35386 2008-08-31 Colin D Bennett <colin@gibibit.com>
35387
35388 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
35389
35390 2008-08-31 Colin D Bennett <colin@gibibit.com>
35391
35392 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
35393 total video memory in 'vbeinfo' output; show color format details for
35394 each video mode.
35395
35396 2008-08-30 Pavel Roskin <proski@gnu.org>
35397
35398 * util/genmoddep.c: Remove for real this time.
35399 * DISTLIST: Remove util/genmoddep.c.
35400
35401 2008-08-30 Robert Millan <rmh@aybabtu.com>
35402
35403 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
35404 as required by Multiboot spec (it was already 4-byte aligned, but
35405 only by chance).
35406
35407 2008-08-29 Pavel Roskin <proski@gnu.org>
35408
35409 * kern/powerpc/ieee1275/crt0.S: Rename to ...
35410 * kern/powerpc/ieee1275/startup.S: ... this.
35411 * conf/powerpc-ieee1275.rmk: Adjust for the above.
35412 * DISTLIST: Likewise.
35413
35414 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
35415 grub/cpu/kernel.h. Add start label for consistency with other
35416 platforms. Add grub_prefix immediately after start. Add jump
35417 to the code after grub_prefix.
35418 * include/grub/powerpc/kernel.h: Provide valid values for
35419 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
35420
35421 2008-08-29 Bean <bean123ch@gmail.com>
35422
35423 * configure.ac: Change host_os to cygwin for mingw.
35424 (asprintf): New check for function.
35425
35426 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
35427 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
35428
35429 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
35430 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
35431 sync, sleep and grub_util_get_disk_size for mingw.
35432
35433 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
35434 to get size in mingw.
35435 (open_device): Use flag O_BINARY if it's defined.
35436 (find_root_device): Add dummy code for mingw.
35437
35438 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
35439 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
35440 (get_scsi_disk_name): Return 0 for mingw.
35441
35442 * util/hostfs.c: #include <grub/util/misc.h>.
35443 (grub_hostfs_open): Use "rb" flag to open file, use
35444 grub_util_get_disk_size to get disk size for mingw.
35445
35446 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
35447 (asprintf): New function if HAVE_ASPRINTF is not set.
35448 (sync): New function for mingw.
35449 (sleep): Likewise.
35450 (grub_util_get_disk_size): Likewise.
35451
35452 2008-08-28 Pavel Roskin <proski@gnu.org>
35453
35454 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35455 kern/time.c.
35456
35457 2008-08-28 Robert Millan <rmh@aybabtu.com>
35458
35459 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
35460
35461 2008-08-28 Robert Millan <rmh@aybabtu.com>
35462
35463 Change find_grub_drive() syntax so it doesn't prevent it from
35464 detecting NULL names as errors.
35465
35466 * util/biosdisk.c (find_grub_drive): Move free slot search code
35467 from here ...
35468 (find_free_slot): ... to here.
35469 (read_device_map): Use find_free_slot() to search for free slots.
35470
35471 2008-08-27 Marco Gerards <marco@gnu.org>
35472
35473 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
35474 (scsi_mod_SOURCES): New variable.
35475 (scsi_mod_CFLAGS): Likewise
35476 (scsi_mod_LDFLAGS): Likewise.
35477
35478 * disk/scsi.c: New file.
35479
35480 * include/grub/scsi.h: Likewise.
35481
35482 * include/grub/scsicmd.h: Likewise.
35483
35484 * disk/ata.c: Include <grub/scsi.h>.
35485 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
35486 instead.
35487 (grub_ata_iterate): Skip ATAPI devices.
35488 (grub_ata_open): Only handle ATAPI devices.
35489 (struct grub_atapi_read): Removed.
35490 (grub_atapi_readsector): Likewise.
35491 (grub_ata_read): No longer handle ATAPI devices.
35492 (grub_ata_write): Likewise.
35493 (grub_atapi_iterate): New function.
35494 (grub_atapi_read): Likewise.
35495 (grub_atapi_write): Likewise.
35496 (grub_atapi_open): Likewise.
35497 (grub_atapi_close): Likewise.
35498 (grub_atapi_dev): New variable.
35499 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
35500 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
35501
35502 * include/grub/disk.h (enum grub_disk_dev_id): Add
35503 `GRUB_DISK_DEVICE_SCSI_ID'.
35504
35505 2008-08-26 Robert Millan <rmh@aybabtu.com>
35506
35507 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
35508 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
35509 descriptive.
35510
35511 2008-08-23 Bean <bean123ch@gmail.com>
35512
35513 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
35514 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35515 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
35516 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
35517 dm_nv.mod.
35518 (raid5rec_mod_SOURCES): New macro.
35519 (raid5rec_mod_CFLAGS): Likewise.
35520 (raid5rec_mod_LDFLAGS): Likewise.
35521 (raid6rec_mod_SOURCES): Likewise.
35522 (raid6rec_mod_CFLAGS): Likewise.
35523 (raid6rec_mod_LDFLAGS): Likewise.
35524 (mdraid_mod_SOURCES): Likewise.
35525 (mdraid_mod_CFLAGS): Likewise.
35526 (mdraid_mod_LDFLAGS): Likewise.
35527 (dm_nv_mod_SOURCES): Likewise.
35528 (dm_nv_mod_CFLAGS): Likewise.
35529 (dm_nv_mod_LDFLAGS): Likewise.
35530
35531 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
35532 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35533 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35534
35535 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
35536 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35537
35538 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35539
35540 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35541
35542 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35543
35544 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35545
35546 * disk/raid5_recover.c: New file.
35547
35548 * disk/raid6_recover.c: Likewise.
35549
35550 * disk/mdraid_linux.c: Likewise.
35551
35552 * disk/dmraid_nvidia.c: Likewise.
35553
35554 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
35555 ULONG_MAX.
35556
35557 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
35558 calculate the size of raid device.
35559 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
35560 different layout of raid5.
35561 (grub_raid_scan_device): Remove code specific to mdraid.
35562 (grub_raid_list): New variable.
35563 (free_array): New function.
35564 (grub_raid_register): Likewise.
35565 (grub_raid_unregister): Likewise.
35566 (grub_raid_rescan): Likewise.
35567 (GRUB_MOD_INIT): Don't iterate device here.
35568 (GRUB_MOD_FINI): Use free_array to release resource.
35569
35570 * include/grub/raid.h: Remove macro and structure specific to mdraid.
35571 (grub_raid5_recover_func_t): New function variable type.
35572 (grub_raid6_recover_func_t): Likewise.
35573 (grub_raid5_recover_func): New variable.
35574 (grub_raid6_recover_func): Likewise.
35575 (grub_raid_register): New function.
35576 (grub_raid_unregister): Likewise.
35577 (grub_raid_rescan): Likewise.
35578 (grub_raid_block_xor): Likewise.
35579
35580 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
35581 (CMD_CRC): New macro.
35582 (part): Removed.
35583 (read_file): Handle device as well as file.
35584 (cmd_crc): New function.
35585 (fstest): Handle multiple disks.
35586 (options): Remove part, raw and long, add root and diskcount.
35587 (usage): Add crc, remove -p, -r, -l, add -r and -c.
35588 (main): Find the first non option entry and ignore subsequent options,
35589 add handling for the new options, support multiple disks.
35590
35591 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
35592
35593 2008-08-23 Bean <bean123ch@gmail.com>
35594
35595 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
35596
35597 * genfslist.sh: Ignore kernel.mod.
35598
35599 * genpartmaplist.sh: Likewise.
35600
35601 2008-08-23 Robert Millan <rmh@aybabtu.com>
35602
35603 * util/getroot.c (find_root_device): Skip anything that starts with
35604 a dot, not just directories. This avoids things like /dev/.tmp.md0.
35605
35606 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
35607
35608 * util/update-grub.in (GRUB_GFXMODE): Export variable.
35609 * util/grub.d/00_header.in: Allow the administrator to change default
35610 gfxmode via ${GRUB_GFXMODE}.
35611
35612 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
35613
35614 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
35615
35616 2008-08-21 Robert Millan <rmh@aybabtu.com>
35617
35618 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
35619 loader.
35620 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
35621 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
35622
35623 2008-08-20 Carles Pina i Estany <carles@pina.cat>
35624
35625 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
35626 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
35627
35628 2008-08-19 Robert Millan <rmh@aybabtu.com>
35629
35630 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
35631 (struct grub_virtual_screen): Remove `cursor_color'.
35632 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
35633 initialization.
35634 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
35635
35636 2008-08-18 Robert Millan <rmh@aybabtu.com>
35637
35638 Unify (identical) linux_normal.c files.
35639 * loader/i386/efi/linux_normal.c: Move from here ...
35640 * loader/linux_normal.c: ... to here. Update all users.
35641 * loader/i386/pc/linux_normal.c: Delete. Update all users.
35642 * loader/i386/ieee1275/linux_normal.c: Likewise.
35643
35644 2008-08-18 Robert Millan <rmh@aybabtu.com>
35645
35646 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
35647 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
35648 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
35649 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
35650 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
35651 New macros.
35652 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
35653 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
35654 (GRUB_LINUX_CL_END_OFFSET): ... to here.
35655 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
35656 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
35657 (GRUB_EFI_CL_END_OFFSET): Rename to ...
35658 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
35659 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
35660 Initialize `params->video_cursor_x' and `params->video_cursor_y'
35661 portably using grub_getxy().
35662 Replace `-EFI' with `-bzImage' in boot message.
35663
35664 2008-08-17 Robert Millan <rmh@aybabtu.com>
35665
35666 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
35667
35668 2008-08-17 Robert Millan <rmh@aybabtu.com>
35669
35670 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
35671
35672 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
35673 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
35674 (grub_machine_mmap_iterate): New function declaration.
35675 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
35676 structure.
35677 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
35678 macros.
35679
35680 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
35681 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
35682 Move e820 parsing from here ...
35683 * kern/i386/pc/mmap.c: New file.
35684 (grub_machine_mmap_iterate): ... to here.
35685
35686 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
35687 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
35688 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
35689 (grub_available_iterate): Redeclare to return `void', and redeclare
35690 its hook to use grub_uint64_t as addr and size parameters, and rename
35691 to ...
35692 (grub_machine_mmap_iterate): ... this. Update all users.
35693
35694 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
35695 to make it more readable. Rename to ...
35696 (grub_machine_mmap_iterate): ... this.
35697
35698 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
35699 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
35700 (grub_multiboot): Allocate an extra region after the payload, and fill
35701 it with a Multiboot memory map. Adjust a.out loader to calculate size
35702 with the extra space.
35703 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
35704 with the extra space.
35705
35706 2008-08-17 Carles Pina i Estany <carles@pina.cat>
35707
35708 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
35709
35710 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
35711
35712 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
35713 mdate-sh to the list `find' searches for.
35714 * DISTLIST: Regenerated.
35715
35716 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
35717
35718 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
35719 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
35720 genmoddep.awk, gensymlist.sh.in.
35721 (DISTDIRS): Add bus, docs, hook, lib.
35722 * DISTLIST: Regenerated.
35723 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
35724
35725 2008-08-16 Robert Millan <rmh@aybabtu.com>
35726
35727 * disk/raid.c (grub_raid_init): Handle/report errors set by
35728 grub_device_iterate().
35729 * disk/lvm.c (grub_lvm_init): Likewise.
35730
35731 2008-08-15 Bean <bean123ch@gmail.com>
35732
35733 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35734 and datehook.mod.
35735 (datetime_mod_SOURCES): New macro.
35736 (datetime_mod_CFLAGS): Likewise.
35737 (datetime_mod_LDFLAGS): Likewise.
35738 (date_mod_SOURCES): Likewise.
35739 (date_mod_CFLAGS): Likewise.
35740 (date_mod_LDFLAGS): Likewise.
35741 (datehook_mod_SOURCES): Likewise.
35742 (datehook_mod_CFLAGS): Likewise.
35743 (datehook_mod_LDFLAGS): Likewise.
35744
35745 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35746 and datehook.mod.
35747 (datetime_mod_SOURCES): New macro.
35748 (datetime_mod_CFLAGS): Likewise.
35749 (datetime_mod_LDFLAGS): Likewise.
35750 (date_mod_SOURCES): Likewise.
35751 (date_mod_CFLAGS): Likewise.
35752 (date_mod_LDFLAGS): Likewise.
35753 (datehook_mod_SOURCES): Likewise.
35754 (datehook_mod_CFLAGS): Likewise.
35755 (datehook_mod_LDFLAGS): Likewise.
35756
35757 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35758 and datehook.mod.
35759 (datetime_mod_SOURCES): New macro.
35760 (datetime_mod_CFLAGS): Likewise.
35761 (datetime_mod_LDFLAGS): Likewise.
35762 (date_mod_SOURCES): Likewise.
35763 (date_mod_CFLAGS): Likewise.
35764 (date_mod_LDFLAGS): Likewise.
35765 (datehook_mod_SOURCES): Likewise.
35766 (datehook_mod_CFLAGS): Likewise.
35767 (datehook_mod_LDFLAGS): Likewise.
35768
35769 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35770 and datehook.mod.
35771 (datetime_mod_SOURCES): New macro.
35772 (datetime_mod_CFLAGS): Likewise.
35773 (datetime_mod_LDFLAGS): Likewise.
35774 (date_mod_SOURCES): Likewise.
35775 (date_mod_CFLAGS): Likewise.
35776 (date_mod_LDFLAGS): Likewise.
35777 (datehook_mod_SOURCES): Likewise.
35778 (datehook_mod_CFLAGS): Likewise.
35779 (datehook_mod_LDFLAGS): Likewise.
35780
35781 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35782 and datehook.mod.
35783 (datetime_mod_SOURCES): New macro.
35784 (datetime_mod_CFLAGS): Likewise.
35785 (datetime_mod_LDFLAGS): Likewise.
35786 (date_mod_SOURCES): Likewise.
35787 (date_mod_CFLAGS): Likewise.
35788 (date_mod_LDFLAGS): Likewise.
35789 (datehook_mod_SOURCES): Likewise.
35790 (datehook_mod_CFLAGS): Likewise.
35791 (datehook_mod_LDFLAGS): Likewise.
35792
35793 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
35794
35795 * commands/date.c: New file.
35796
35797 * hook/datehook.c: Likewise.
35798
35799 * include/grub/lib/datetime.h: Likewise.
35800
35801 * include/grub/i386/cmos.h: Likewise.
35802
35803 * lib/datetime.c: Likewise.
35804
35805 * lib/i386/datetime.c: Likewise.
35806
35807 * lib/efi/datetime.c: Likewise.
35808
35809 2008-08-14 Robert Millan <rmh@aybabtu.com>
35810
35811 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
35812 (grub_mkelfimage_SOURCES): New variable.
35813 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
35814
35815 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
35816 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
35817 * conf/powerpc-ieee1275.rmk: Likewise.
35818 * conf/i386-ieee1275.rmk: Likewise.
35819
35820 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
35821 * kern/i386/coreboot/init.c: Likewise.
35822
35823 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
35824 with `<grub/cpu/kernel.h>'.
35825 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
35826 to ...
35827 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
35828 * kern/i386/coreboot/startup.S: Likewise.
35829
35830 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
35831 (GRUB_MOD_GAP): Remove.
35832 * include/grub/powerpc/kernel.h: New file.
35833 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
35834 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35835 * include/grub/i386/kernel.h: New file.
35836 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
35837 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
35838 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35839
35840 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
35841 `grub-mkelfimage'.
35842 Use --directory when invoking grub_mkimage.
35843
35844 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
35845 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
35846 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
35847 and GRUB_KERNEL_CPU_PREFIX.
35848
35849 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
35850
35851 * include/grub/err.h (grub_err_printf): New function prototype.
35852 * util/misc.c (grub_err_printf): New function.
35853 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
35854 grub_printf.
35855 * kern/err.c (grub_print_error): Use grub_err_printf.
35856
35857 2008-08-13 Robert Millan <rmh@aybabtu.com>
35858
35859 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
35860
35861 2008-08-13 Robert Millan <rmh@aybabtu.com>
35862
35863 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
35864 boot entry.
35865
35866 2008-08-12 Robert Millan <rmh@aybabtu.com>
35867
35868 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
35869 of the relocation code from here ...
35870 (grub_multiboot): ... to here.
35871 (forward_relocator, backward_relocator): Move from here ...
35872 * kern/i386/loader.S (grub_multiboot_forward_relocator)
35873 (grub_multiboot_backward_relocator): ... to here.
35874 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
35875 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
35876 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
35877 (grub_multiboot_forward_relocator_end)
35878 (grub_multiboot_backward_relocator)
35879 (grub_multiboot_backward_relocator_end): New variables.
35880
35881 2008-08-12 Bean <bean123ch@gmail.com>
35882
35883 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
35884
35885 2008-08-11 Robert Millan <rmh@aybabtu.com>
35886
35887 * kern/i386/linuxbios/startup.S: Move from here ...
35888 * kern/i386/coreboot/startup.S: ... to here.
35889
35890 * kern/i386/linuxbios/init.c: Move from here ...
35891 * kern/i386/coreboot/init.c: ... to here.
35892
35893 * kern/i386/linuxbios/table.c: Move from here ...
35894 * kern/i386/coreboot/mmap.c: ... to here.
35895
35896 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
35897
35898 2008-08-11 Robert Millan <rmh@aybabtu.com>
35899
35900 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
35901 errors. Leave it to the upper layer to handle them.
35902
35903 2008-08-09 Christian Franke <franke@computer.org>
35904
35905 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
35906 * conf/common.rmk: Install `grub-pe2elf' only if requested.
35907 Install `grub.d/10_windows' only on Cygwin.
35908 * configure.ac: Add subst of `target_os'.
35909 Check `target_os' also before setting TARGET_OBJ2ELF.
35910 Add `--enable-grub-pe2elf'.
35911
35912 2008-08-08 Robert Millan <rmh@aybabtu.com>
35913
35914 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35915 (grub_last_time): Change type to grub_uint64_t.
35916 (grub_disk_open): Migrate code from to using grub_get_time_ms().
35917 (grub_disk_close): Likewise.
35918
35919 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35920 (run_menu): Migrate code from to using grub_get_time_ms().
35921
35922 * util/misc.c (grub_get_time_ms): New function.
35923
35924 2008-08-08 Marco Gerards <marco@gnu.org>
35925
35926 * disk/ata.c (grub_ata_regget): Change return type to
35927 `grub_uint8_t'.
35928 (grub_ata_regget2): Likewise.
35929 (grub_ata_wait_status): New function.
35930 (grub_ata_wait_busy): Removed function, updated all users to use
35931 `grub_ata_wait_status'.
35932 (grub_ata_wait_drq): Likewise.
35933 (grub_ata_cmd): New function.
35934 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
35935 error handling.
35936 (grub_ata_pio_write): Add error handling.
35937 (grub_atapi_identify): Likewise.
35938 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
35939 handling.
35940 (grub_ata_identify): Use `grub_ata_cmd' and improve error
35941 handling. Actually use the detected registers. Reorder the
35942 detection logic such that it is easier to read.
35943 (grub_ata_pciinit): Do not assign the same ID to each controller.
35944 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
35945 handling.
35946 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
35947
35948 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
35949
35950 2008-08-08 Marco Gerards <marco@gnu.org>
35951
35952 * NEWS: Update.
35953
35954 2008-08-07 Bean <bean123ch@gmail.com>
35955
35956 * include/grub/x86_64/pci.h: New file.
35957
35958 2008-08-07 Christian Franke <franke@computer.org>
35959
35960 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
35961 (TIMER2_GATE): Likewise.
35962 (grub_pit_wait): Add enable/disable of the timer2 gate
35963 bit of port 0x61. This fixes a possible infinite loop.
35964
35965 2008-08-07 Bean <bean123ch@gmail.com>
35966
35967 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
35968 kern/i386/tsc.c and kern/i386/pit.c.
35969
35970 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
35971 x86_64 platform.
35972
35973 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
35974 <grub/i386/tsc.h>.
35975
35976 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
35977
35978 2008-08-07 Bean <bean123ch@gmail.com>
35979
35980 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
35981
35982 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
35983
35984 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
35985 multiple inclusion. Add #include <grub/types.h>.
35986
35987 2008-08-06 Christian Franke <franke@computer.org>
35988
35989 * conf/common.rmk: Build and install `10_windows'.
35990 * util/grub.d/10_windows.in: New script.
35991
35992 2008-08-06 Pavel Roskin <proski@gnu.org>
35993
35994 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
35995
35996 2008-08-06 Robert Millan <rmh@aybabtu.com>
35997
35998 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
35999 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
36000
36001 2008-08-06 Bean <bean123ch@gmail.com>
36002
36003 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
36004 (grub_pxefs_fs_int): Remove dummy definition.
36005 (grub_pxefs_open): Use data->block_size to store the current block
36006 size setting.
36007 (grub_pxefs_read): Use block size stored in data->block_size. As the
36008 value of grub_pxe_blksize can be changed after the file is opened.
36009
36010 2008-08-06 Bean <bean123ch@gmail.com>
36011
36012 * fs/i386/pc/pxe.c (curr_file): new variable.
36013 (grub_pxefs_open): Simply the handling of pxe file system. Don't
36014 require the dummy internal file system anymore.
36015 (grub_pxefs_read): Removed.
36016 (grub_pxefs_close): Likewise.
36017 (grub_pxefs_fs_int): Likewise.
36018 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
36019 connection when we switch file.
36020 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
36021
36022 2008-08-06 Robert Millan <rmh@aybabtu.com>
36023
36024 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
36025 `halt.mod'.
36026 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
36027 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
36028
36029 * kern/i386/halt.c: New file.
36030 * kern/i386/reboot.c: Likewise.
36031 * include/grub/i386/reboot.h: Likewise.
36032 * include/grub/i386/halt.h: Likewise.
36033
36034 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
36035 Include `<grub/cpu/halt.h>'.
36036 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
36037 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
36038
36039 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
36040 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
36041 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
36042 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
36043 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
36044 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
36045 from here ...
36046 * include/grub/i386/at_keyboard.h: ... to here.
36047
36048 2008-08-05 Robert Millan <rmh@aybabtu.com>
36049
36050 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
36051 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
36052 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
36053 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36054 `kern/generic/millisleep.c'.
36055
36056 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
36057 instead of grub_get_rtc().
36058 (grub_tsc_init): Initialize `tsc_boot_time'.
36059
36060 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
36061 (grub_machine_init): Use grub_tsc_init() rather than
36062 installing an RTC-based handler via grub_install_get_time_ms().
36063
36064 * kern/i386/pit.c: New file.
36065 * include/grub/i386/pit.h: Likewise.
36066
36067 2008-08-05 Bean <bean123ch@gmail.com>
36068
36069 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
36070
36071 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
36072 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
36073 (pxe_mod_SOURCES): New macro.
36074 (pxe_mod_CFLAGS): Likewise.
36075 (pxe_mod_LDFLAGS): Likewise.
36076 (pxecmd_mod_SOURCES): Likewise.
36077 (pxecmd_mod_CFLAGS): Likewise.
36078 (pxecmd_mod_LDFLAGS): Likewise.
36079
36080 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
36081 (grub_pxe_call): Likewise.
36082
36083 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
36084
36085 * commands/i386/pc/pxecmd.c: New file.
36086
36087 * fs/i386/pc/pxe.c: Likewise.
36088
36089 * include/grub/i386/pc/pxe.h: Likewise.
36090
36091 2008-08-05 Bean <bean123ch@gmail.com>
36092
36093 * util/console.c (grub_console_cur_color): New variable.
36094 (grub_console_standard_color): Likewise.
36095 (grub_console_normal_color): Likewise.
36096 (grub_console_highlight_color): Likewise.
36097 (color_map): Likewise.
36098 (use_color): Likewise.
36099 (NUM_COLORS): New macro.
36100 (grub_ncurses_setcolorstate): Handle color properly.
36101 (grub_ncurses_setcolor): Don't change color here, just remember the
36102 settings, color will be set in grub_ncurses_setcolorstate.
36103 (grub_ncurses_getcolor): New function.
36104 (grub_ncurses_init): Initialize color pairs.
36105 (grub_ncurses_term): New member grub_ncurses_getcolor.
36106
36107 2008-08-05 Colin D Bennett <colin@gibibit.com>
36108
36109 High resolution timer support. Implemented for x86 CPUs using TSC.
36110 Extracted generic grub_millisleep() so it's linked in only as needed.
36111 This requires a Pentium compatible CPU; if the RDTSC instruction is
36112 not supported, then it falls back on the generic grub_get_time_ms()
36113 implementation that uses the machine's RTC.
36114
36115 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
36116 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36117 `kern/generic/millisleep.c'.
36118
36119 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
36120 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
36121
36122 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
36123 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
36124
36125 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36126
36127 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
36128 `kern/generic/millisleep.c'.
36129
36130 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36131
36132 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
36133
36134 * kern/generic/rtc_get_time_ms.c: New file.
36135
36136 * kern/generic/millisleep.c: New file.
36137
36138 * kern/misc.c: Don't include
36139 <kern/time.h> anymore.
36140 (grub_millisleep_generic): Removed.
36141
36142 * commands/sleep.c (grub_interruptible_millisleep): Uses
36143 grub_get_time_ms() instead of grub_get_rtc().
36144
36145 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
36146 function.
36147 (grub_cpu_is_cpuid_supported): New inline function.
36148 (grub_cpu_is_tsc_supported): New inline function.
36149 (grub_tsc_init): New function prototype.
36150 (grub_tsc_get_time_ms): New function prototype.
36151
36152 * kern/i386/tsc.c (grub_get_time_ms): New file.
36153
36154 * include/grub/time.h: Include <grub/types.h.
36155 (grub_millisleep_generic): Removed.
36156 (grub_get_time_ms): New prototype.
36157 (grub_install_get_time_ms): New prototype.
36158 (grub_rtc_get_time_ms): New prototype.
36159
36160 * kern/time.c (grub_get_time_ms): New function.
36161 (grub_install_get_time_ms): New function.
36162
36163 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
36164 <grub/time.h> anymore.
36165 (grub_millisleep): Removed.
36166 (grub_machine_init): Call grub_tsc_init.
36167
36168 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
36169 get_time_ms() implementation.
36170
36171 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
36172 (ieee1275_get_time_ms): New function.
36173 (grub_machine_init): Install get_time_ms() implementation.
36174
36175 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
36176 (grub_machine_init): Call grub_tsc_init().
36177 (grub_millisleep): Removed.
36178
36179 * kern/ieee1275/init.c (grub_millisleep): Removed.
36180 (grub_machine_init): Install ieee1275_get_time_ms()
36181 implementation.
36182 (ieee1275_get_time_ms): New function.
36183 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
36184 real work.
36185
36186 2008-08-05 Marco Gerards <marco@gnu.org>
36187
36188 * disk/ata.c: Include <grub/pci.h>.
36189 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
36190 (grub_ata_initialize): Rewritten.
36191 (grub_ata_device_initialize): New function.
36192
36193 2008-08-04 Pavel Roskin <proski@gnu.org>
36194
36195 * kern/main.c: Include grub/mm.h.
36196
36197 2008-08-04 Robert Millan <rmh@aybabtu.com>
36198
36199 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
36200 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
36201 corruption problem).
36202
36203 2008-08-04 Robert Millan <rmh@aybabtu.com>
36204
36205 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
36206 warnings introduced in my last commit.
36207
36208 2008-08-03 Robert Millan <rmh@aybabtu.com>
36209
36210 Make PCI available on all i386 architectures.
36211
36212 * include/grub/i386/pc/pci.h: Move from here ...
36213 * include/grub/i386/pci.h: ... to here.
36214
36215 * include/grub/i386/pc/pci.h: Remove.
36216 * include/grub/i386/efi/pci.h: Remove.
36217 * include/grub/x86_64/efi/pci.h: Remove.
36218
36219 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
36220 `<grub/cpu/pci.h>'.
36221
36222 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
36223 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
36224 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
36225
36226 * conf/i386-ieee1275.rmk: Likewise.
36227
36228 2008-08-03 Robert Millan <rmh@aybabtu.com>
36229
36230 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
36231 (grub_console_setcursor): Make it possible to set cursor off.
36232
36233 2008-08-03 Robert Millan <rmh@aybabtu.com>
36234
36235 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
36236 of modules instead of assuming which platform provides what.
36237 * util/update-grub.in: Likewise.
36238
36239 2008-08-03 Robert Millan <rmh@aybabtu.com>
36240
36241 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
36242 instead of `grub_install_dos_part' to determine whether a drive needs
36243 to be prepended to prefix (`grub_install_dos_part' is not reliable,
36244 because it can be overridden when loading GRUB via Multiboot).
36245
36246 2008-08-02 Robert Millan <rmh@aybabtu.com>
36247
36248 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
36249
36250 2008-08-02 Robert Millan <rmh@aybabtu.com>
36251
36252 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
36253 of informational grub_dprintf() calls.
36254
36255 2008-08-02 Robert Millan <rmh@aybabtu.com>
36256
36257 * disk/memdisk.c (memdisk_size): Don't initialize.
36258 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
36259
36260 * include/grub/i386/pc/kernel.h
36261 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
36262 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
36263 (grub_memdisk_image_size, grub_arch_memdisk_addr)
36264 (grub_arch_memdisk_size): Remove.
36265
36266 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
36267 field (was only used to transfer a constant). Add `type' field to
36268 support multiple module types.
36269 (grub_module_iterate): New function.
36270
36271 * kern/device.c (grub_device_open): Do not hide error messages
36272 when grub_disk_open() fails. Use grub_print_error() instead.
36273
36274 * kern/i386/pc/init.c (grub_arch_modules_addr)
36275 (grub_arch_memdisk_size): Remove functions.
36276 (grub_arch_modules_addr): Return the module address in high memory
36277 (now that it isn't copied anymore).
36278
36279 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
36280 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
36281 decompression routine (grub_total_module_size already includes that
36282 now). Don't copy modules back to low memory.
36283
36284 * kern/main.c: Include `<grub/mm.h>'.
36285 (grub_load_modules): Split out (and use) ...
36286 (grub_module_iterate): ... this function, which iterates through
36287 module objects and runs a hook.
36288 Comment out grub_mm_init_region() call, as it would cause non-ELF
36289 modules to be overwritten.
36290
36291 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
36292 the memdisk image in its own region, make it part of the module list.
36293 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
36294 (main): Parse --memdisk|-m option, and pass user-provided path as
36295 parameter to generate_image().
36296 (add_segments): Pass `memdisk_path' down to load_modules().
36297 (load_modules): Embed memdisk image in module section when requested.
36298 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
36299 `header.type' instead of `header.offset'.
36300
36301 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
36302 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
36303 (memdisk_mod_LDFLAGS): New variables.
36304 * conf/i386-coreboot.rmk: Likewise.
36305 * conf/i386-ieee1275.rmk: Likewise.
36306
36307 2008-08-02 Robert Millan <rmh@aybabtu.com>
36308
36309 * loader/i386/pc/multiboot.c (playground, forward_relocator)
36310 (backward_relocator): New variables. Used to allocate and relocate
36311 the payload, respectively.
36312 (grub_multiboot_load_elf32): Load into heap instead of requested
36313 address, install the appropriate relocator code in each bound of
36314 the payload, and set the entry point such that
36315 grub_multiboot_real_boot() will jump to one of them.
36316
36317 * kern/i386/loader.S (grub_multiboot_payload_size)
36318 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36319 (grub_multiboot_payload_entry_offset): New variables.
36320 (grub_multiboot_real_boot): Set cpu context to what the relocator
36321 expects, and jump to the relocator instead of the payload.
36322
36323 * include/grub/i386/loader.h (grub_multiboot_payload_size)
36324 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36325 (grub_multiboot_payload_entry_offset): Export.
36326
36327 2008-08-01 Bean <bean123ch@gmail.com>
36328
36329 * normal/menu_entry.c (editor_getline): Don't return the original
36330 string as result, as it will be released by lexer once it has done
36331 using it.
36332
36333 2008-08-01 Robert Millan <rmh@aybabtu.com>
36334
36335 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
36336 within menuentries, not before them.
36337 util/grub.d/10_hurd.in: Likewise.
36338
36339 2008-08-01 Bean <bean123ch@gmail.com>
36340
36341 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
36342 (bufio_mod_SOURCES): New macro.
36343 (bufio_mod_CFLAGS): Likewise.
36344 (bufio_mod_LDFLAGS): Likewise.
36345
36346 * include/grub/bufio.h: New file.
36347
36348 * io/bufio.c: Likewise.
36349
36350 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
36351 (grub_video_reader_png): Use grub_buffile_open to open file.
36352
36353 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
36354 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
36355
36356 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
36357 (grub_video_reader_tga): Use grub_buffile_open to open file.
36358
36359 * font/manager.c: Include <grub/bufio.h>.
36360 (add_font): Use grub_buffile_open to open file.
36361
36362 2008-07-31 Robert Millan <rmh@aybabtu.com>
36363
36364 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
36365 ELF segments, use a macro for arbitrarily accessing any of them instead
36366 of preparing a pointer that allows access to one at a time.
36367 (grub_multiboot_load_elf64): Likewise.
36368
36369 2008-07-31 Bean <bean123ch@gmail.com>
36370
36371 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
36372 GRUB_KERNEL_MACHINE_DATA_END.
36373
36374 2008-07-30 Robert Millan <rmh@aybabtu.com>
36375
36376 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
36377 Increase from 0x50 to 0x60.
36378 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
36379 use UUIDs to identify the root drive for them. If that's not
36380 possible, abort.
36381 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
36382 check, for cross-disk installs.
36383
36384 2008-07-30 Robert Millan <rmh@aybabtu.com>
36385
36386 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
36387 is non-empty, use it to set the `prefix' environment variable instead
36388 of the usual approach.
36389 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
36390 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
36391 environment variable instead of dummy make_install_device().
36392
36393 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
36394 (start): Insert a data section, with `grub_prefix' variable.
36395 * kern/i386/linuxbios/startup.S: Likewise.
36396
36397 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
36398 New variable reference.
36399 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
36400 New macro. Defines offset of `grub_prefix' within startup.S (relative
36401 to `start').
36402 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
36403 section within startup.S (relative to `start').
36404 * include/grub/i386/coreboot/kernel.h: Likewise.
36405
36406 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
36407 Overwrite grub_prefix with its contents, at the beginning of the
36408 first segment.
36409 (main): Understand -p|--prefix.
36410
36411 2008-07-30 Robert Millan <rmh@aybabtu.com>
36412
36413 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
36414
36415 2008-07-30 Robert Millan <rmh@aybabtu.com>
36416
36417 * term/i386/pc/vga_text.c (grub_console_cls): Use
36418 grub_console_gotoxy() to go back to beginning of the screen.
36419 Found by Patrick Georgi <patrick.georgi@coresystems.de>
36420
36421 2008-07-29 Christian Franke <franke@computer.org>
36422
36423 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
36424 Add conversion of emulated mount points on Cygwin.
36425
36426 2008-07-29 Christian Franke <franke@computer.org>
36427
36428 * util/update-grub.in: Add a check for admin
36429 group on Cygwin.
36430 Remove old `grub.cfg.new' before creation.
36431 Add `-f' to `mv' to handle the different filesystem
36432 semantics of Windows.
36433
36434 2008-07-29 Bean <bean123ch@gmail.com>
36435
36436 * normal/main.c (get_line): Fix buffer overflow bug.
36437
36438 2008-07-28 Robert Millan <rmh@aybabtu.com>
36439
36440 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
36441 (struct grub_apple_header): New struct. Describes the layout of
36442 the partmap header.
36443 (apple_partition_map_iterate): Check the header magic as well as the
36444 partition magic (which was already being checked).
36445
36446 2008-07-28 Pavel Roskin <proski@gnu.org>
36447
36448 * genmk.rb: Add a warning to the beginning of the output that
36449 it's a generated file and should not be edited.
36450
36451 2008-07-28 Robert Millan <rmh@aybabtu.com>
36452
36453 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36454 with the same number are found, just use issue a warning with
36455 grub_dprintf(), as this error has been reported to be non-fatal.
36456
36457 2008-07-27 Robert Millan <rmh@aybabtu.com>
36458
36459 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
36460 information.
36461
36462 2008-07-27 Bean <bean123ch@gmail.com>
36463
36464 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
36465 (grub_fat_find_dir): Ignore case when comparing filename.
36466
36467 2008-07-27 Bean <bean123ch@gmail.com>
36468
36469 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
36470 smallino, as it's more descriptive, and i8count can be confused with
36471 the other field count.
36472 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
36473 inode type.
36474
36475 2008-07-27 Bean <bean123ch@gmail.com>
36476
36477 * commands/crc.c: New file.
36478
36479 * lib/crc.c: Likewise.
36480
36481 * include/grub/lib/crc.h: Likewise.
36482
36483 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
36484
36485 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
36486 (hexdump): Move this function to ...
36487
36488 * lib/hexdump.c: ... here.
36489
36490 * include/grub/hexdump.h: Renamed to ...
36491
36492 * include/grub/lib/hexdump.h: ... this.
36493
36494 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
36495
36496 * util/grub-editenv.c: Likewise.
36497
36498 * include/envblk.h: Renamed to ...
36499
36500 * include/lib/envblk.h: ... this.
36501
36502 * util/envblk.c: Renamed to ...
36503
36504 * lib/envblk.c: ... this.
36505
36506 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
36507 lib/hexdump.c.
36508 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
36509 (pkglib_MODULES): Add crc.mod.
36510 (hexdump_mod_SOURCES): Add lib/hexdump.c.
36511 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
36512 (crc_mod_SOURCES): New macro.
36513 (crc_mod_CFLAGS): Likewise.
36514 (crc_mod_LDFLAGS): Likewise.
36515
36516 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
36517
36518 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36519
36520 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36521
36522 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36523
36524 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36525
36526 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
36527
36528 * commands/help.c: Include <grub/term.h>.
36529 (TERM_WIDTH): Removed. Updated all users.
36530
36531 2008-07-27 Pavel Roskin <proski@gnu.org>
36532
36533 * util/getroot.c (find_root_device): Rephrase a comment to avoid
36534 spurious warnings about a comment within a comment.
36535
36536 2008-07-25 Robert Millan <rmh@aybabtu.com>
36537
36538 * util/getroot.c (find_root_device): Skip devices that match
36539 /dev/dm-[0-9]. This lets the real device be found for any type of
36540 abstraction (LVM, EVMS, RAID..).
36541 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
36542 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
36543 device is found first, find_root_device() will now skip it.
36544
36545 2008-07-24 Pavel Roskin <proski@gnu.org>
36546
36547 * include/grub/types.h: Use __builtin_bswap32() and
36548 __builtin_bswap64() with gcc 4.3 and newer.
36549
36550 2008-07-24 Christian Franke <franke@computer.org>
36551
36552 * util/i386/pc/grub-install.in: If `--debug' is specified,
36553 pass `--verbose' to grub-setup.
36554 Abort script if make_system_path_relative_to_its_root() fails.
36555
36556 2008-07-24 Bean <bean123ch@gmail.com>
36557
36558 * configure.ac: Fixed a bug caused by the previous cygwin patch,
36559 variable `target_platform' should be `platform'.
36560
36561 2008-07-24 Bean <bean123ch@gmail.com>
36562
36563 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
36564 (grub_png_init_fixed_block): New function.
36565 (grub_png_decode_image_data): Handle fixed huffman code compression.
36566
36567 2008-07-24 Bean <bean123ch@gmail.com>
36568
36569 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
36570 (grub_pe2elf_SOURCES): New macro.
36571 (CLEANFILES): Add grub-pe2elf.
36572
36573 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
36574 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
36575 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
36576 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
36577 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
36578 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
36579 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
36580 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
36581 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
36582 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
36583 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
36584 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
36585 (GRUB_PE32_DT_FUNCTION): Likewise.
36586 (GRUB_PE32_REL_I386_DIR32): Likewise.
36587 (GRUB_PE32_REL_I386_REL32): Likewise.
36588 (grub_pe32_symbol): New structure.
36589 (grub_pe32_reloc): Likewise.
36590
36591 * util/grub-pe2elf.c: New file.
36592
36593 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
36594 start symbol in non pc platform.
36595
36596 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
36597
36598 The following patches are from Christian Franke.
36599
36600 * include/grub/dl.h: Remove .previous, gas supports this only
36601 for ELF format.
36602
36603 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
36604 Remove .type, gas supports this only for ELF format.
36605
36606 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
36607 nullbytes in symbol table. This fixes an infinite loop if table is
36608 zero filled.
36609
36610 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
36611 TARGET_IMG_LDFLAGS and EXEEXT.
36612
36613 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
36614 TARGET_IMG_LDFLAGS_AC.
36615 (grub_CHECK_STACK_ARG_PROBE): New function.
36616
36617 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
36618
36619 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
36620
36621 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
36622 to set TARGET_IMG_LD* accordingly.
36623 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
36624 Add call to grub_CHECK_STACK_ARG_PROBE.
36625 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
36626
36627 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
36628
36629 * genmk.rb: Add EXEEXT to CLEANFILES.
36630
36631 2008-07-23 Robert Millan <rmh@aybabtu.com>
36632
36633 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
36634 define the codes for arrows and lines used for the menu).
36635 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
36636 as well.
36637
36638 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
36639 fonts, because the latter are too slow.
36640
36641 2008-07-21 Bean <bean123ch@gmail.com>
36642
36643 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
36644 a20. Run keyboard test last, as it will cause macbook to halt.
36645
36646 2008-07-18 Pavel Roskin <proski@gnu.org>
36647
36648 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
36649 load foreign architecture modules correctly anyway. Keep
36650 support for loading host architecture modules, whether we
36651 compile them or not.
36652
36653 2008-07-17 Pavel Roskin <proski@gnu.org>
36654
36655 * configure.ac: Use -m32 or -m64 regardless of whether we had to
36656 change target_cpu. The compiler default can mismatch target_cpu
36657 in any case.
36658
36659 * disk/efi/efidisk.c: Fix format warnings on x86_64.
36660 * kern/efi/efi.c: Likewise.
36661
36662 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
36663 target compiler is functional.
36664 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
36665 are set up.
36666
36667 * configure.ac: Default to efi platform for x86_64-apple. Allow
36668 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
36669 adjustments from the rest, only do them if target is not
36670 explicitly given. Merge other adjustments with the final sanity
36671 check. Remove an extraneous check for supported CPU. Be
36672 specific which CPU and which platform is not supported.
36673
36674 * configure.ac: Default to pc platform for x86_64.
36675
36676 2008-07-17 Robert Millan <rmh@aybabtu.com>
36677
36678 Partial LinuxBIOS -> Coreboot rename.
36679
36680 * conf/i386-linuxbios.rmk: Renamed to ...
36681 * conf/i386-coreboot.rmk: ... this.
36682 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
36683 * configure.ac: Accept "coreboot" as input platform (but maintain
36684 compatibility with "linuxbios").
36685 * include/grub/i386/linuxbios: Renamed to ...
36686 * include/grub/i386/coreboot: ... this.
36687
36688 2008-07-17 Bean <bean123ch@gmail.com>
36689
36690 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
36691 (appleldr_mod_SOURCE): New variable.
36692 (appleldr_mod_CFLAGS): Likewise.
36693 (appleldr_mod_LDFLAGS): Likewise.
36694 (pci_mod_SOURCES): Likewise.
36695 (pci_mod_CFLAGS): Likewise.
36696 (pci_mod_LDFLAGS): Likewise.
36697 (lspci_mod_SOURCES): Likewise.
36698 (lspci_mod_CFLAGS): Likewise.
36699 (lspci_mod_LDFLAGS): Likewise.
36700
36701 * conf/x86_64-efi.rmk: New file.
36702
36703 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
36704 macro.
36705 (grub_efidisk_write): Likewise.
36706
36707 * include/efi/api.h (efi_call_0): New macro.
36708 (efi_call_1): Likewise.
36709 (efi_call_2): Likewise.
36710 (efi_call_3): Likewise.
36711 (efi_call_4): Likewise.
36712 (efi_call_5): Likewise.
36713 (efi_call_6): Likewise.
36714
36715 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
36716 grub_rescue_cmd_chainloader.
36717
36718 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
36719 (grub_pe32_optional_header): Change some fields based on i386 or
36720 x86_64 platform.
36721 (GRUB_PE32_PE32_MAGIC): Likewise.
36722
36723 * include/grub/efi/uga_draw.h: New file.
36724
36725 * include/grub/elf.h (STN_ABS): New constant.
36726 (R_X86_64_NONE): Relocation constant for x86_64.
36727 (R_X86_64_64): Likewise.
36728 (R_X86_64_PC32): Likewise.
36729 (R_X86_64_GOT32): Likewise.
36730 (R_X86_64_PLT32): Likewise.
36731 (R_X86_64_COPY): Likewise.
36732 (R_X86_64_GLOB_DAT): Likewise.
36733 (R_X86_64_JUMP_SLOT): Likewise.
36734 (R_X86_64_RELATIVE): Likewise.
36735 (R_X86_64_GOTPCREL): Likewise.
36736 (R_X86_64_32): Likewise.
36737 (R_X86_64_32S): Likewise.
36738 (R_X86_64_16): Likewise.
36739 (R_X86_64_PC16): Likewise.
36740 (R_X86_64_8): Likewise.
36741 (R_X86_64_PC8): Likewise.
36742
36743 * include/grub/i386/efi/pci.h: New file.
36744
36745 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
36746 Change it value based on platform.
36747 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
36748 (GRUB_E820_RAM): Likewise.
36749 (GRUB_E820_RESERVED): Likewise.
36750 (GRUB_E820_ACPI): Likewise.
36751 (GRUB_E820_NVS): Likewise.
36752 (GRUB_E820_EXEC_CODE): Likewise.
36753 (GRUB_E820_MAX_ENTRY): Likewise.
36754 (grub_e820_mmap): New structure.
36755 (linux_kernel_header): Change the efi field according to different
36756 kernel version, also field from linux_kernel_header.
36757
36758 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
36759
36760 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
36761 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
36762 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
36763 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
36764 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
36765 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
36766 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
36767 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
36768 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
36769 (GRUB_PCI_ADDR_IO_MASK): Likewise.
36770
36771 * include/grub/x86_64/efi/kernel.h: New file.
36772
36773 * include/grub/x86_64/efi/loader.h: Likewise.
36774
36775 * include/grub/x86_64/efi/machine.h: Likewise.
36776
36777 * include/grub/x86_64/efi/pci.h: Likewise.
36778
36779 * include/grub/x86_64/efi/time.h: Likewise.
36780
36781 * include/grub/x86_64/linux.h: Likewise.
36782
36783 * include/grub/x86_64/setjmp.h: Likewise.
36784
36785 * include/grub/x86_64/time.h: Likewise.
36786
36787 * include/grub/x86_64/types.h: Likewise.
36788
36789 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
36790 GRUB_TARGET_SIZEOF_VOID_P.
36791
36792 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
36793 (grub_efi_locate_handle): Likewise.
36794 (grub_efi_open_protocol): Likewise.
36795 (grub_efi_set_text_mode): Likewise.
36796 (grub_efi_stall): Likewise.
36797 (grub_exit): Likewise.
36798 (grub_reboot): Likewise.
36799 (grub_halt): Likewise.
36800 (grub_efi_exit_boot_services): Likewise.
36801 (grub_get_rtc): Likewise.
36802
36803 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
36804 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
36805 (grub_efi_allocate_pages): Wrap efi calls.
36806 (grub_efi_free_pages): Wrap efi calls.
36807 (grub_efi_get_memory_map): Wrap efi calls.
36808
36809 * kern/x86_64/dl.c: New file.
36810
36811 * kern/x86_64/efi/callwrap.S: Likewise.
36812
36813 * kern/x86_64/efi/startup.S: Likewise.
36814
36815 * loader/efi/appleloader.c: Likewise.
36816
36817 * loader/efi/chainloader.c (cmdline): New variable.
36818 (grub_chainloader_unload): Wrap efi calls.
36819 (grub_chainloader_boot): Likewise.
36820 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
36821 command line.
36822
36823 * loader/efi/chainloader_normal.c (chainloader_command):
36824 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
36825 command line.
36826
36827 * loader/i386/efi/linux.c (allocate_pages): Change allocation
36828 method.
36829 (grub_e820_add_region): New function.
36830 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
36831 booting.
36832 (grub_find_video_card): New function.
36833 (grub_linux_setup_video): New function.
36834 (grub_rescue_cmd_linux): Probe for video information.
36835
36836 * normal/x86_64/setjmp.S: New file.
36837
36838 * term/efi/console.c (map_char): New function.
36839 (grub_console_putchar): Map unicode char.
36840 (grub_console_checkkey): Wrap efi calls.
36841 (grub_console_getkey): Likewise.
36842 (grub_console_getwh): Likewise.
36843 (grub_console_gotoxy): Likewise.
36844 (grub_console_cls): Likewise.
36845 (grub_console_setcolorstate): Likewise.
36846 (grub_console_setcursor): Likewise.
36847
36848 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
36849
36850 2008-07-16 Pavel Roskin <proski@gnu.org>
36851
36852 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
36853 format strings.
36854
36855 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
36856 pointer, not an integer. This fixes a warning and prevents
36857 precision loss on 64-bit systems.
36858 (relocate_addresses): Remove unneeded cast.
36859
36860 2008-07-15 Pavel Roskin <proski@gnu.org>
36861
36862 * kern/i386/ieee1275/init.c: Include grub/cache.h.
36863
36864 * term/ieee1275/ofconsole.c: Disable code unused on i386.
36865
36866 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
36867 Fix comparison between signed and unsigned.
36868
36869 * include/grub/i386/ieee1275/console.h: Declare
36870 grub_console_init() and grub_console_fini().
36871
36872 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
36873 It's empty and unused.
36874
36875 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
36876 beginning to avoid warnings with some compilers.
36877
36878 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
36879 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
36880
36881 2008-07-14 Pavel Roskin <proski@gnu.org>
36882
36883 * kern/env.c (grub_register_variable_hook): Don't copy empty
36884 string, it leaks memory. Pass "" to grub_env_set(), it should
36885 handle constant strings.
36886
36887 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
36888 * commands/cmp.c (grub_cmd_cmp): Likewise.
36889 * kern/dl.c (grub_dl_flush_cache): Likewise.
36890 (grub_dl_load_core): Likewise.
36891 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
36892 (grub_elf64_load_phdrs): Likewise.
36893
36894 2008-07-13 Pavel Roskin <proski@gnu.org>
36895
36896 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
36897 between signed and unsigned.
36898 (LzmaEnc_Finish): Fix warning about an unused parameter.
36899
36900 2008-07-13 Bean <bean123ch@gmail.com>
36901
36902 * Makefile.in (enable_lzo): New rule.
36903
36904 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
36905
36906 * configure.ac (ENABLE_LZO): New option --enable-lzo.
36907
36908 * boot/i386/pc/lnxboot.S: #include <config.h>.
36909
36910 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
36911 its value according to the compression algorithm used, lzo or lzma.
36912
36913 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
36914 compression algorithm according to configure macro.
36915
36916 * kern/i386/pc/startup.S (codestart): Likewise.
36917
36918 * kern/i386/pc/lzma_decode.S: New file.
36919
36920 * include/grub/lib/LzFind.h: Likewise.
36921
36922 * include/grub/lib/LzHash.h: Likewise.
36923
36924 * include/grub/lib/LzmaDec.h: Likewise.
36925
36926 * include/grub/lib/LzmaEnc.h: Likewise.
36927
36928 * include/grub/lib/LzmaTypes.h: Likewise.
36929
36930 * lib/LzFind.c: Likewise.
36931
36932 * lib/LzmaDec.c: Likewise.
36933
36934 * lib/LzmaEnc.c: Likewise.
36935
36936 2008-07-13 Bean <bean123ch@gmail.com>
36937
36938 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
36939 (grub_ext4_extent_header): New structure.
36940 (grub_ext4_extent): Likewise.
36941 (grub_ext4_extent_idx): Likewise.
36942 (grub_ext4_find_leaf): New function.
36943 (grub_ext2_read_block): Handle extents.
36944
36945 2008-07-12 Robert Millan <rmh@aybabtu.com>
36946
36947 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
36948
36949 2008-07-11 Robert Millan <rmh@aybabtu.com>
36950
36951 * util/grub.d/40_custom.in: New file. Example on how to add custom
36952 entries to /etc/grub.d.
36953 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
36954 40_custom (implicitly, by merging all the grub.d rules).
36955
36956 2008-07-11 Pavel Roskin <proski@gnu.org>
36957
36958 * commands/read.c (grub_getline): Fix invalid memory access.
36959 Don't add newline to the variable value.
36960
36961 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
36962 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
36963 (serial_hw_get_port): Check validity of the port number.
36964 (grub_cmd_serial): Check return value of serial_hw_get_port().
36965
36966 2008-07-07 Pavel Roskin <proski@gnu.org>
36967
36968 * boot/i386/pc/diskboot.S (notification_string): Replace
36969 "Loading kernel" with just "loading". This is shorter, less
36970 confusing and saves a few bytes for possible future changes.
36971
36972 2008-07-05 Pavel Roskin <proski@gnu.org>
36973
36974 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
36975 size for ATAPI devices, they are undefined. Output sector
36976 number in decimal form.
36977
36978 * disk/ata.c: Use named constants for status bits.
36979
36980 2008-07-04 Pavel Roskin <proski@gnu.org>
36981
36982 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
36983 grub_addr_t before casting it to the void pointer to fix a
36984 warning. Non-addressable regions are discarded earlier.
36985 (grub_arch_modules_addr): Cast _end to grub_addr_t.
36986 * kern/i386/linuxbios/table.c: Include grub/misc.h.
36987 (check_signature): Don't shadow table_header.
36988 (grub_linuxbios_table_iterate): Cast numeric constants to
36989 grub_linuxbios_table_header_t.
36990 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
36991 grub_stop().
36992
36993 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
36994 prevent warnings.
36995
36996 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
36997 pointer, which can cause warnings. Support 64-bit addresses.
36998
36999 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
37000 of sizeof(long). This fixes PowerPC image generation on x86_64.
37001
37002 2008-07-04 Robert Millan <rmh@aybabtu.com>
37003
37004 This fixes a performance issue when pc & gpt partmap iterators
37005 didn't abort iteration even after our hook found what it was
37006 looking for (often causing expensive probes of non-existent drives).
37007
37008 Some callers relied on previous buggy behaviour, since they would
37009 raise an error when their own hooks caused early abortion of its
37010 iteration.
37011
37012 * kern/device.c (grub_device_open): Improve error message.
37013 * disk/lvm.c (grub_lvm_open): Likewise.
37014 * disk/raid.c (grub_raid_open): Likewise.
37015
37016 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
37017 when hook requests it, independently of grub_errno.
37018 (pc_partition_map_probe): Do not fail when find_func() caused
37019 early abortion of pc_partition_map_iterate().
37020
37021 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
37022 when hook requests it, independently of grub_errno.
37023 (gpt_partition_map_probe): Do not fail when find_func() caused
37024 early abortion of gpt_partition_map_iterate().
37025
37026 * kern/partition.c (grub_partition_iterate): Abort parent iteration
37027 when hook requests it, independently of grub_errno. Do not fail when
37028 part_map_iterate_hook() caused early abortion of p->iterate().
37029
37030 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
37031 when grub_partition_iterate() returned with non-zero.
37032
37033 2008-07-03 Pavel Roskin <proski@gnu.org>
37034
37035 * disk/ata.c (grub_ata_pio_write): Check status before writing,
37036 like we do in grub_ata_pio_read().
37037 (grub_ata_readwrite): Always write individual sectors. Fix the
37038 sector count for the remainder.
37039 (grub_ata_write): Enable writing to ATA devices. Correctly
37040 report error for ATAPI devices.
37041
37042 2008-07-02 Pavel Roskin <proski@gnu.org>
37043
37044 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
37045 warning.
37046
37047 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
37048 for every read sector, we already increment it for the whole
37049 batch. This fixes reading more than 256 sectors at once.
37050
37051 * util/grub-editenv.c (cmd_info): Cast argument to long
37052 explicitly. ptrdiff_t reduces to int on i386.
37053
37054 * util/grub-editenv.c (main): Be specific which parameter is
37055 missing.
37056
37057 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
37058 (memdisk): Make memdisk_orig_addr a pointer.
37059
37060 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
37061 for file offsets, use grub_off_t instead. Fix printf format
37062 warnings.
37063
37064 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
37065 there. Real unexpected warnings should not drown in the noise
37066 about known problems.
37067
37068 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
37069 grub_disk_addr_t for memory addresses.
37070
37071 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
37072 explicitly to fix a warning.
37073
37074 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
37075
37076 * Makefile.in (MODULE_LDFLAGS): New variable.
37077 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
37078 the linker accepts --build-id=none.
37079 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
37080 MODULE_LDFLAGS.
37081 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
37082
37083 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
37084 those in Linux XFS code. Provide a way to access 64-bit parent
37085 inode.
37086 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
37087 the end of struct grub_xfs_dir_header.
37088
37089 2008-07-02 Bean <bean123ch@gmail.com>
37090
37091 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
37092 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37093 and GRUB_IEEE1275_FLAG_NO_ANSI.
37094
37095 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
37096 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37097 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
37098
37099 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
37100 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
37101
37102 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
37103 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
37104
37105 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
37106 esc sequence on non ANSI terminal.
37107 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
37108
37109 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
37110 beginning of file.
37111
37112 2008-07-02 Bean <bean123ch@gmail.com>
37113
37114 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
37115 (grub_editenv_SOURCES): New variable.
37116 (pkglib_MODULES): Add loadenv.mod.
37117 (loadenv_mod_SOURCES): New variable.
37118 (loadenv_mod_CFLAGS): Likewise.
37119 (loadenv_mod_LDFLAGS): Likewise.
37120
37121 * include/grub/envblk.h: New file.
37122
37123 * util/envblk.c: New file.
37124
37125 * util/grub-editenv.c: New file.
37126
37127 * commands/loadenv.c: New file.
37128
37129 2008-07-01 Pavel Roskin <proski@gnu.org>
37130
37131 * include/multiboot2.h (struct multiboot_tag_module): Use char,
37132 not unsigned char. This fixes warnings and is consistent with
37133 other tags.
37134
37135 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
37136
37137 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
37138
37139 * term/tparm.c (analyze): Always set *popcount.
37140
37141 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
37142 cast to fix a warning.
37143
37144 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
37145 cast to suppress a warning.
37146
37147 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
37148 grub_fshelp_read_file() expects.
37149
37150 * fs/fat.c: Fix UUID calculation on big-endian systems. We
37151 write uuid as a 32-bit value in CPU byte order, so declare and
37152 use it as such.
37153
37154 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
37155 long if the format specifier expects it.
37156 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
37157 * partmap/pc.c (pc_partition_map_iterate): Likewise.
37158 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
37159 long to fix a warning.
37160 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
37161 grub_dprintf() arguments to fix warnings.
37162
37163 2008-06-30 Pavel Roskin <proski@gnu.org>
37164
37165 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
37166 install_bsd_part immediately before core.img is embedded or
37167 modified on disk. This fixes core.img verification if core.img
37168 cannot be embedded.
37169
37170 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
37171 core_path to calculate the blocklist.
37172 Patch from Javier Martín <lordhabbit@gmail.com>
37173
37174 2008-06-29 Robert Millan <rmh@aybabtu.com>
37175
37176 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
37177 block to disk block.
37178 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
37179 Patch from Niels Böhm <bitbucket@arcor.de>
37180
37181 2008-06-29 Robert Millan <rmh@aybabtu.com>
37182
37183 * util/update-grub_lib.in (font_path): Search for fonts in
37184 /boot/grub first, which is more likely to be readable (we aren't
37185 deciding where fonts live, just looking for them).
37186
37187 2008-06-26 Pavel Roskin <proski@gnu.org>
37188
37189 * util/biosdisk.c (read_device_map): Don't leave dead map
37190 entries for devices failing stat() check.
37191
37192 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
37193 core_path_dev for the core.img path on the target device.
37194
37195 2008-06-26 Robert Millan <rmh@aybabtu.com>
37196
37197 * disk/fs_uuid.c: New file.
37198 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
37199 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
37200 (fs_uuid_mod_LDFLAGS): New variables.
37201 * include/grub/disk.h (grub_disk_dev_id): Add
37202 `GRUB_DISK_DEVICE_UUID_ID'.
37203 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
37204 implement iterate().
37205
37206 2008-06-26 Robert Millan <rmh@aybabtu.com>
37207
37208 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
37209 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
37210 Linux image includes no initrd.
37211
37212 2008-06-21 Javier Martín <lordhabbit@gmail.com>
37213
37214 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
37215 call to resolve the core image location that effectively appended the
37216 name twice.
37217
37218 2008-06-21 Robert Millan <rmh@aybabtu.com>
37219
37220 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
37221 call from here ...
37222
37223 * util/grub.d/10_hurd.in: ... to here ...
37224 * util/grub.d/10_linux.in: ... and here.
37225
37226 2008-06-19 Robert Millan <rmh@aybabtu.com>
37227
37228 * kern/main.c (grub_main): Export `prefix' variable immediately
37229 after it has been set by grub_machine_set_prefix().
37230
37231 2008-06-19 Robert Millan <rmh@aybabtu.com>
37232
37233 * commands/search.c (search_label, search_fs_uuid, search_file): Print
37234 search result when not saving to variable, not the other way around.
37235 When saving to variable, abort iteration as soon as a match is found.
37236
37237 2008-06-19 Robert Millan <rmh@aybabtu.com>
37238
37239 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
37240 check for partition that provides /boot/grub. Its logic is flawed,
37241 as it prevents prepare_grub_to_access_device() from being called
37242 multiple times.
37243
37244 2008-06-19 Robert Millan <rmh@aybabtu.com>
37245
37246 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
37247 "insmod" command directly when abstraction modules are needed,
37248 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
37249 since it had already been processed).
37250
37251 2008-06-19 Pavel Roskin <proski@gnu.org>
37252
37253 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
37254 changed. This is needed in case GRUB_LIBDIR changes.
37255 * conf/i386-ieee1275.rmk: Likewise.
37256 * conf/i386-linuxbios.rmk: Likewise.
37257 * conf/i386-pc.rmk: Likewise.
37258 * conf/powerpc-ieee1275.rmk: Likewise.
37259
37260 2008-06-18 Pavel Roskin <proski@gnu.org>
37261
37262 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
37263 kernel_elf_symlist.c to symlist.c for consistency with other
37264 architectures. Update all users.
37265 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37266
37267 2008-06-18 Robert Millan <rmh@aybabtu.com>
37268
37269 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
37270 it in prefix.
37271
37272 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
37273 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
37274 a RAID device, run setup() for all members independently on whether
37275 LVM abstraction is being used.
37276 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
37277 If grub-mkimage has set `*install_dos_part == -2', don't override this
37278 value.
37279 Perform *install_dos_part adjustments independently on whether
37280 we're embedding or not.
37281 Clarify error message when image is too big for embedding.
37282 Remove duplicate *install_dos_part stanza.
37283
37284 2008-06-17 Robert Millan <rmh@aybabtu.com>
37285
37286 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
37287 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
37288 variables.
37289 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
37290 values in grub_ofconsole_normal_color and
37291 grub_ofconsole_highlight_color (they're not directly related to
37292 background and foreground).
37293 (grub_ofconsole_setcolorstate): Extract background and foreground
37294 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
37295
37296 2008-06-17 Robert Millan <rmh@aybabtu.com>
37297
37298 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
37299 /boot/grub for the check in last commit, not /boot (they could be
37300 different partitions).
37301
37302 2008-06-16 Robert Millan <rmh@aybabtu.com>
37303
37304 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
37305 asked to setup access for the same partition that provides /boot,
37306 don't bother using UUIDs since our root already has the value we
37307 want.
37308
37309 2008-06-16 Robert Millan <rmh@aybabtu.com>
37310
37311 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
37312 I2O devices.
37313 Patch from Sven Mueller <sven@debian.org>.
37314
37315 2008-06-16 Robert Millan <rmh@aybabtu.com>
37316
37317 * util/update-grub.in: Check for $EUID instead of $UID.
37318 Reported by Vincent Zweije.
37319
37320 2008-06-16 Bean <bean123ch@gmail.com>
37321
37322 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
37323 (grub_ext2_read_block): Likewise.
37324 (grub_ext2_read_inode): Likewise.
37325 (grub_ext2_mount): Likewise.
37326 (grub_ext2_close): Likewise.
37327 (grub_ext3_get_journal): Removed.
37328
37329 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
37330 (grub_reiserfs_read_symlink): Likewise.
37331 (grub_reiserfs_mount): Likewise.
37332 (grub_reiserfs_open): Likewise.
37333 (grub_reiserfs_read): Likewise.
37334 (grub_reiserfs_close): Likewise.
37335 (grub_reiserfs_get_journal): Removed.
37336
37337 * fs/fshelp.c (grub_fshelp_read): Removed.
37338 (grub_fshelp_map_block): Likewise.
37339
37340 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
37341 (grub_fshelp_journal): Likewise.
37342 (grub_fshelp_read): Likewise.
37343 (grub_fshelp_map_block): Likewise.
37344
37345 2008-06-16 Pavel Roskin <proski@gnu.org>
37346
37347 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
37348 floating point anymore.
37349 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
37350
37351 2008-06-15 Pavel Roskin <proski@gnu.org>
37352
37353 * commands/ls.c (grub_ls_list_files): Use integer calculations
37354 for human readable format, avoid floating point use.
37355 * kern/misc.c (grub_ftoa): Remove.
37356 (grub_vsprintf): Remove floating point support.
37357
37358 2008-06-15 Robert Millan <rmh@aybabtu.com>
37359
37360 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
37361 devices.
37362 Reported by Max Vozeler.
37363
37364 2008-06-15 Robert Millan <rmh@aybabtu.com>
37365
37366 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
37367 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
37368 skipped later.
37369 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
37370 the beginning of the prefix.
37371
37372 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
37373 It is assumed that if we have a memdisk, grub-mkimage has set
37374 grub_prefix to include the "(memdisk)" drive in it.
37375
37376 2008-06-15 Robert Millan <rmh@aybabtu.com>
37377
37378 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
37379 Initialize keyboard controller after registering the terminal, so that
37380 grub_printf() can be called from grub_keyboard_controller_init().
37381
37382 2008-06-15 Robert Millan <rmh@aybabtu.com>
37383
37384 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
37385 extent-btree which is written as big endian on disk.
37386 Reported by Alain Greppin <al@chilibi.org>.
37387
37388 2008-06-14 Robert Millan <rmh@aybabtu.com>
37389
37390 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
37391 * util/i386/pc/grub-install.in (modules): Likewise.
37392
37393 2008-06-13 Pavel Roskin <proski@gnu.org>
37394
37395 * commands/ls.c (grub_ls_list_files): Fix format warnings.
37396
37397 2008-06-13 Bean <bean123ch@gmail.com>
37398
37399 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
37400
37401 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
37402
37403 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
37404 to indicate sparse block.
37405
37406 2008-06-12 Pavel Roskin <proski@gnu.org>
37407
37408 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
37409 number, grub_fshelp_read() does it for us.
37410
37411 * fs/fshelp.c (grub_fshelp_read): New function. Implement
37412 linear disk read with journal translation.
37413 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
37414 * include/grub/fshelp.h: Declare grub_fshelp_read().
37415
37416 2008-06-09 Pavel Roskin <proski@gnu.org>
37417
37418 * fs/minix.c (grub_minix_mount): Handle error reading
37419 superblock.
37420
37421 2008-06-08 Robert Millan <rmh@aybabtu.com>
37422
37423 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
37424 don't append the RAID prefix afterwards.
37425 Reported by Clint Adams.
37426
37427 2008-06-08 Robert Millan <rmh@aybabtu.com>
37428
37429 Based on description from Pavel:
37430 * kern/disk.c (grub_disk_check_range): Rename to ...
37431 (grub_disk_adjust_range): ... this. Add a comment explaining the
37432 tasks performed by this function.
37433
37434 2008-06-08 Robert Millan <rmh@aybabtu.com>
37435
37436 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
37437 `num_serial' (for consistency with other variables).
37438 (struct grub_ntfs_data): Add `uuid' member.
37439 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
37440 (grub_ntfs_uuid): New function.
37441 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
37442
37443 2008-06-07 Pavel Roskin <proski@gnu.org>
37444
37445 * util/biosdisk.c (open_device): Revert last change to the
37446 function, it broke installation. The sector needs to be
37447 different dependent on which device is opened.
37448
37449 2008-06-06 Robert Millan <rmh@aybabtu.com>
37450
37451 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
37452 rest of GRUB, and breakage doesn't happen if its value were modified.
37453
37454 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37455 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
37456 a constant (same value).
37457 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
37458 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
37459
37460 2008-06-06 Robert Millan <rmh@aybabtu.com>
37461
37462 * util/biosdisk.c (open_device): Do not modify sector offset when
37463 accessing a partition. kern/disk.c already handles this for us.
37464
37465 2008-06-06 Robert Millan <rmh@aybabtu.com>
37466
37467 * util/grub-emu.c (grub_machine_init): Move code in this function from
37468 here ...
37469 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
37470 segfault in case grub_printf() is called).
37471
37472 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
37473 grub_probe. Update all users not to explicitly add it again.
37474 (grub_device): New variable; contains corresponding device for grubdir.
37475 (fs_module, partmap_module, devabstraction_module): Pass
37476 `--device ${grub_device}' to grub_probe to avoid traversing /dev
37477 every time.
37478
37479 2008-06-05 Robert Millan <rmh@aybabtu.com>
37480
37481 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
37482 is found, print it (same layout as with labels).
37483
37484 2008-06-04 Robert Millan <rmh@aybabtu.com>
37485
37486 * util/biosdisk.c (get_drive): Rename to ...
37487 (find_grub_drive): ... this. Update all users.
37488
37489 (get_os_disk): Rename to ...
37490 (convert_system_partition_to_system_disk): ... this. Update all users.
37491
37492 (find_drive): Rename to ...
37493 (find_system_device): ... this. Update all users.
37494
37495 2008-06-04 Robert Millan <rmh@aybabtu.com>
37496
37497 * util/biosdisk.c (get_os_disk): Handle IDA devices.
37498 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37499 (make_device_map): Likewise.
37500
37501 2008-06-01 Robert Millan <rmh@aybabtu.com>
37502
37503 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
37504 before dereferencing it.
37505
37506 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
37507 union with fat12/fat16-specific ones. Add some new fields, including
37508 `num_serial' for both versions.
37509 (struct grub_fat_data): Add `uuid' member.
37510 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
37511 names. Initialize `data->uuid' using `num_serial'.
37512 (grub_fat_uuid): New function.
37513 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
37514
37515 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
37516 (grub_reiserfs_uuid): New function.
37517 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
37518 member.
37519
37520 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
37521 (grub_xfs_uuid): New function.
37522 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
37523
37524 2008-06-01 Robert Millan <rmh@aybabtu.com>
37525
37526 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
37527 code that is backward compatible with pre-uuid search command.
37528
37529 2008-05-31 Robert Millan <rmh@aybabtu.com>
37530
37531 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
37532 floppies after everything else, to ensure floppy drive isn't accessed
37533 unnecessarily (patch from Bean).
37534
37535 2008-05-31 Robert Millan <rmh@aybabtu.com>
37536
37537 * commands/search.c (search_label, search_fs_uuid, search_file): Do
37538 not print device names when we were asked to set a variable.
37539
37540 2008-05-31 Robert Millan <rmh@aybabtu.com>
37541
37542 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
37543 using "cursor-on" and "cursor-off" commands (understood at least by
37544 the Open Firmware flavour on OLPC).
37545
37546 2008-05-31 Michael Gorven <michael@gorven.za.net>
37547
37548 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
37549 on and off sequences.
37550
37551 2008-05-31 Robert Millan <rmh@aybabtu.com>
37552
37553 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
37554 * util/update-grub.in: Likewise.
37555
37556 2008-05-30 Pavel Roskin <proski@gnu.org>
37557
37558 * util/biosdisk.c (linux_find_partition): Simplify logic and
37559 make the code more universal. Keep special processing for
37560 devfs, but use a simple rule for all other devices. If the
37561 device ends with a number, append 'p' and the partition number.
37562 Otherwise, append only the partition number.
37563
37564 2008-05-30 Robert Millan <rmh@aybabtu.com>
37565
37566 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
37567 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
37568 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
37569 the `root' parameter to Linux.
37570
37571 2008-05-30 Robert Millan <rmh@aybabtu.com>
37572
37573 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
37574 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
37575 --fs_uuid with --fs-uuid.
37576 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
37577 all filesystems support them).
37578
37579 2008-05-30 Robert Millan <rmh@aybabtu.com>
37580
37581 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
37582 grub_printf() flags, since we're printing in units of 2 bytes.
37583
37584 2008-05-30 Robert Millan <rmh@aybabtu.com>
37585
37586 * util/grub.d/00_header.in: Remove obsolete comment referencing
37587 convert_system_path_to_grub_path().
37588 * util/update-grub.in: Likewise.
37589 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
37590 (convert_system_path_to_grub_path): Add a warning message explaining
37591 that this function is deprecated. Rely on is_path_readable_by_grub()
37592 for the readability checks.
37593 (font_path): Use is_path_readable_by_grub() for the readability
37594 check rather than convert_system_path_to_grub_path().
37595
37596 2008-05-30 Robert Millan <rmh@aybabtu.com>
37597
37598 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
37599 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
37600 converting it first.
37601 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
37602 grub.cfg for access to font file, and afterwards call it again to set
37603 the root device.
37604
37605 2008-05-30 Robert Millan <rmh@aybabtu.com>
37606
37607 * commands/search.c (options): Add --fs_uuid option.
37608 (search_fs_uuid): New function.
37609 (grub_cmd_search): Fix --set argument passing.
37610 Use search_fs_uuid() when requested via --fs_uuid.
37611 (grub_search_init): Update help message.
37612 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
37613 and redeclare it as an array of 16-bit words.
37614 (grub_ext2_uuid): New function.
37615 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
37616 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
37617 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
37618 (GRUB_DEVICE_BOOT_UUID): New variables.
37619 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
37620 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
37621 whenever possible.
37622 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
37623 just assume `root' variable has the right value.
37624 * util/grub.d/10_linux.in: Likewise.
37625 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
37626 via PRINT_FS_UUID.
37627 (main): Recognise `-t fs_uuid' argument.
37628
37629 2008-05-30 Robert Millan <rmh@aybabtu.com>
37630
37631 * util/biosdisk.c (map): Redefine structure to hold information
37632 about GRUB drive name.
37633 (get_drive): Reimplement without assuming (and verifying) BIOS-like
37634 drive names.
37635 (call_hook): Remove.
37636 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
37637 member. Assume drive has partitions.
37638 (grub_util_biosdisk_open): Access device names via `.device' struct
37639 member.
37640 (open_device): Likewise.
37641 (find_drive): Likewise.
37642 (read_device_map): Adjust map[] usage to match the new struct
37643 definition. Don't check for duplicates (still possible, but not cheap
37644 anymore).
37645 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
37646 (make_device_name): Remove assumption of BIOS-like drive names.
37647
37648 2008-05-30 Pavel Roskin <proski@gnu.org>
37649
37650 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
37651 compiling execute.c doesn't need grub_script.tab.h anymore.
37652 (normal/command.c_DEPENDENCIES): Likewise.
37653 (normal/function.c_DEPENDENCIES): Likewise.
37654 * conf/i386-ieee1275.rmk: Likewise.
37655 * conf/i386-linuxbios.rmk: Likewise.
37656 * conf/i386-pc.rmk: Likewise.
37657 * conf/powerpc-ieee1275.rmk: Likewise.
37658 * conf/sparc64-ieee1275.rmk: Likewise.
37659
37660 2008-05-29 Pavel Roskin <proski@gnu.org>
37661
37662 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
37663 when scanning metadata for volume group name.
37664
37665 * include/grub/script.h: Don't include grub_script.tab.h. It's
37666 a generated file, which may only be included from the files with
37667 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
37668 use union YYSTYPE, as the later allows forward declaration.
37669 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
37670
37671 2008-05-29 Robert Millan <rmh@aybabtu.com>
37672
37673 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
37674 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
37675 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
37676 (grub_console_checkkey): Add grub_dprintf() call to report unknown
37677 scan codes.
37678
37679 2008-05-29 Robert Millan <rmh@aybabtu.com>
37680
37681 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
37682 control key combinations.
37683
37684 2008-05-29 Robert Millan <rmh@aybabtu.com>
37685
37686 * util/powerpc/ieee1275/grub-install.in: Move from here ...
37687 * util/ieee1275/grub-install.in: ... to here.
37688 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
37689 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
37690 (grub_install_SOURCES): Likewise.
37691
37692 2008-05-29 Robert Millan <rmh@aybabtu.com>
37693
37694 * fs/affs.c: Update copyright year.
37695 * fs/ext2.c: Likewise.
37696 * fs/fshelp.c: Likewise.
37697 * fs/hfsplus.c: Likewise.
37698 * fs/ntfs.c: Likewise.
37699 * fs/xfs.c: Likewise.
37700 * include/grub/fshelp.h: Likewise.
37701 * util/grub-mkdevicemap.c: Likewise.
37702
37703 2008-05-28 Robert Millan <rmh@aybabtu.com>
37704
37705 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
37706 might need to be fatfs to support some firmware implementations
37707 (e.g. OFW or EFI).
37708
37709 2008-05-28 Robert Millan <rmh@aybabtu.com>
37710
37711 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
37712 devices.
37713 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37714 (make_device_map): Likewise.
37715
37716 2008-05-20 Bean <bean123ch@gmail.com>
37717
37718 * fs/fshelp.c (grub_fshelp_map_block): New function.
37719 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
37720 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
37721
37722 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
37723 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
37724 (grub_fshelp_journal): New structure.
37725 (grub_fshelp_map_block): New function prototype.
37726 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
37727 (grub_fshelp_map_block): Likewise.
37728
37729 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
37730 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
37731 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
37732 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
37733 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
37734 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
37735 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
37736 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
37737 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
37738 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
37739 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
37740 (grub_ext2_sblock): New members for journal support.
37741 (grub_ext3_journal_header): New structure.
37742 (grub_ext3_journal_revoke_header): Likewise.
37743 (grub_ext3_journal_block_tag): Likewise.
37744 (grub_ext3_journal_sblock): Likewise.
37745 (grub_fshelp_node): New members logfile and journal.
37746 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
37747 grub_fshelp_map_block to get real block number.
37748 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
37749 number.
37750 (grub_ext2_read_inode): Likewise.
37751 (grub_ext3_get_journal): New function.
37752 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
37753 (grub_ext2_close): Release memory used by journal.
37754
37755 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
37756 (REISERFS_MAGIC_DESC_BLOCK): New macro.
37757 (grub_reiserfs_transaction_header): Renamed to
37758 grub_reiserfs_description_block, replace field data with real_blocks.
37759 (grub_reiserfs_commit_block): New structure.
37760 (grub_reiserfs_data): New member journal.
37761 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
37762 number.
37763 (grub_reiserfs_read_symlink): Likewise.
37764 (grub_reiserfs_iterate_dir): Likewise.
37765 (grub_reiserfs_open): Likewise.
37766 (grub_reiserfs_read): Likewise.
37767 (grub_reiserfs_get_journal): New function.
37768 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
37769 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
37770 using grub_reiserfs_get_journal.
37771 (grub_reiserfs_close): Release memory used by journal.
37772
37773 * fs/affs.c (grub_affs_read_block): Change block type to
37774 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
37775
37776 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
37777
37778 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
37779
37780 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
37781
37782 * fs/udf.c (grub_udf_read_block): Change block type to
37783 grub_disk_addr_t. Use type cast to avoid warning.
37784
37785 * fs/xfs.c (grub_xfs_read_block): Likewise.
37786
37787 2008-05-16 Christian Franke <franke@computer.org>
37788
37789 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
37790 to ensure that break with ESC will always work.
37791 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
37792 Remove ESC from keyboard queue.
37793
37794 2008-05-16 Christian Franke <franke@computer.org>
37795
37796 * util/biosdisk.c: [__CYGWIN__] Add includes.
37797 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
37798 (get_os_disk): Move variable declarations to OS specific
37799 parts to avoid warning.
37800 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
37801 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
37802 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
37803 Cygwin.
37804 * util/getroot.c: [__CYGWIN__] Add includes.
37805 (strip_extra_slashes): Fix "/" case.
37806 [__CYGWIN__] (get_win32_path): New function.
37807 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
37808 [__CYGWIN__] (find_root_device): Disable.
37809 [__CYGWIN__] (get_bootsec_serial): New function.
37810 [__CYGWIN__] (find_cygwin_root_device): Likewise.
37811 [__linux__] (grub_guess_root_device): Add early returns to simplify
37812 structure.
37813 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
37814 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
37815 check for Linux only.
37816
37817 2008-05-15 Bean <bean123ch@gmail.com>
37818
37819 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
37820 keyboard hang problem in apple's intel mac.
37821
37822 2008-05-09 Robert Millan <rmh@aybabtu.com>
37823
37824 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
37825 devices.
37826 * util/grub-mkdevicemap.c (get_virtio_disk_name)
37827 (make_device_map): Likewise.
37828 Reported by Aurelien Jarno <aurel32@debian.org>
37829
37830 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
37831
37832 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
37833 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
37834 (make_device_map): Output entries for xvd type disks.
37835
37836 2008-05-07 Robert Millan <rmh@aybabtu.com>
37837
37838 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
37839 devices.
37840 * util/grub-mkdevicemap.c (get_cciss_disk_name)
37841 (make_device_map): Likewise.
37842 Reported by Roland Dreier <rdreier@cisco.com>
37843
37844 2008-05-07 Robert Millan <rmh@aybabtu.com>
37845
37846 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
37847 grub_strstr() call. Correct a few mistakes in failure path handling.
37848
37849 2008-05-06 Robert Millan <rmh@aybabtu.com>
37850
37851 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
37852 Do not print a trailing slash (therefore, the root directory is an
37853 empty string).
37854 (convert_system_path_to_grub_path): Do not remove trailing slash
37855 from make_system_path_relative_to_its_root() output.
37856
37857 * util/i386/pc/grub-install.in: Add trailing slash to output from
37858 make_system_path_relative_to_its_root().
37859
37860 2008-05-06 Robert Millan <rmh@aybabtu.com>
37861
37862 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
37863 ensures that output lines aren't intermangled with those sent to
37864 stderr (via grub_util_info()).
37865 * util/grub-probe.c (grub_refresh): Likewise.
37866 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
37867
37868 2008-05-05 Christian Franke <franke@computer.org>
37869
37870 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
37871 Add Cygwin device names.
37872 (get_ide_disk_name) [__CYGWIN__]: Likewise.
37873 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
37874 (check_device): Return error instead of success on empty name.
37875 (make_device_map): Move label inside linux specific code to
37876 prevent compiler warning.
37877
37878 2008-04-30 Robert Millan <rmh@aybabtu.com>
37879
37880 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
37881 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
37882 first boot option.
37883 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
37884
37885 2008-04-29 Robert Millan <rmh@aybabtu.com>
37886
37887 * docs/grub.cfg: New file (example GRUB configuration).
37888
37889 2008-04-26 Robert Millan <rmh@aybabtu.com>
37890
37891 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
37892 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
37893 and `disk/ieee1275/nand.c'.
37894
37895 2008-04-25 Bean <bean123ch@gmail.com>
37896
37897 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
37898 i386-linuxbios.
37899
37900 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
37901 change the buffer size to 4096 for cdrom device.
37902
37903 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
37904 and nand.mod.
37905 (_linux_mod_SOURCES): New variable.
37906 (_linux_mod_CFLAGS): Likewise.
37907 (_linux_mod_LDFLAGS): Likewise.
37908 (linux_mod_SOURCES): Likewise.
37909 (linux_mod_CFLAGS): Likewise.
37910 (linux_mod_LDFLAGS): Likewise.
37911 (nand_mod_SOURCES): Likewise.
37912 (nand_mod_CFLAGS): Likewise.
37913 (nand_mod_LDFLAGS): Likewise.
37914
37915 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
37916 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
37917 type property. (nand device in olpc don't have this property)
37918
37919 * include/grub/disk.h (grub_disk_dev_id): New macro
37920 GRUB_DISK_DEVICE_NAND_ID.
37921
37922 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
37923 function prototype.
37924 (grub_rescue_cmd_initrd): Likewise.
37925
37926 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
37927 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
37928 ofw_cif_handler and ofw_idt, adjust padding number.
37929
37930 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
37931 GRUB_MACHINE_IEEE1275 is defined.
37932
37933 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
37934 Use NESTED_FUNC_ATTR attribute on the hook parameter.
37935
37936 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
37937 on nested function heap_init.
37938 (grub_upper_mem): New variable for i386-ieee1275.
37939 (grub_get_extended_memory): New function for i386-ieee1275.
37940 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
37941
37942 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
37943 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
37944 property.
37945
37946 * loader/i386/ieee1275/linux.c: New file.
37947
37948 * loader/i386/ieee1275/linux_normal.c: New file.
37949
37950 * disk/ieee1275/nand.c: New file.
37951
37952 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
37953
37954 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
37955 value.
37956 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
37957
37958 2008-04-18 Robert Millan <rmh@aybabtu.com>
37959
37960 Restructures early code path on ieee1275 to unify grub_main() as
37961 the first C function that is executed in every platform.
37962
37963 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
37964 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
37965 cmain().
37966 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
37967 * kern/ieee1275/cmain.c (cmain): Rename to ...
37968 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
37969 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
37970 at the beginning.
37971
37972 2008-04-18 Robert Millan <rmh@aybabtu.com>
37973
37974 * util/update-grub.in: Fix syntax error when setting
37975 `GRUB_PRELOAD_MODULES'.
37976 Reported by Stephane Chazelas <stephane@artesyncp.com>
37977
37978 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
37979
37980 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
37981 section into account, newer toolchains generate unique build ids
37982 * configure.ac: remove the test for --build-id=none acceptance,
37983 we want build ids to be preserved
37984 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
37985 far from other sections don't cause the raw binary images grow
37986 size
37987
37988 2008-04-15 Robert Millan <rmh@aybabtu.com>
37989
37990 * disk/lvm.c: Update copyright year.
37991 * kern/misc.c: Likewise.
37992
37993 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37994
37995 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
37996 there is no memory left for physical volume name.
37997
37998 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37999
38000 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
38001 volume name mapping to support bigger than 9 character names properly.
38002
38003 2008-04-13 Robert Millan <rmh@aybabtu.com>
38004
38005 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
38006 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
38007
38008 2008-04-13 Christian Franke <franke@computer.org>
38009
38010 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
38011 to create a floppy emulation boot CD when non emulation mode
38012 does not work.
38013 Enable Joliet CD filesystem extension.
38014
38015 2008-04-13 Robert Millan <rmh@aybabtu.com>
38016
38017 * kern/misc.c (grub_strncat): Fix off-by-one error.
38018 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
38019
38020 * kern/env.c (grub_env_context_close): Clear current context, not
38021 previous one.
38022 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
38023
38024 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
38025
38026 2008-04-13 Robert Millan <rmh@aybabtu.com>
38027
38028 Improve robustness when handling LVM.
38029
38030 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
38031 (and leave `*p' unmodified).
38032 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
38033 through it.
38034 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
38035 iterating through it.
38036 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
38037 through it.
38038 (grub_lvm_scan_device): Check the return value (and fail gracefully
38039 when due) on each grub_lvm_getvalue() or grub_strstr() call.
38040 Don't assume `vg->pvs != NULL' when iterating through it.
38041
38042 2008-04-13 Robert Millan <rmh@aybabtu.com>
38043
38044 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
38045 * genmk.rb (partmap): New variable.
38046 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
38047 (#{partmap}): New target rule.
38048 * genpartmaplist.sh: New file.
38049 * Makefile.in (pkglib_DATA): Add partmap.lst.
38050 (partmap.lst): New target rule.
38051 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
38052 modules (including all partition maps), instead of preloading them.
38053
38054 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
38055
38056 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
38057 `linux-boot-prober' (if installed) to detect other operating
38058 systems which are installed on the computer and add them to
38059 the boot menu.
38060 * conf/common.rmk: Build and install 30_os-prober.
38061
38062 2008-04-12 Robert Millan <rmh@aybabtu.com>
38063
38064 * kern/powerpc/ieee1275/init.c: Move from here ...
38065 * kern/ieee1275/init.c: ... to here. Update all users.
38066
38067 * kern/powerpc/ieee1275/cmain.c: Move from here ...
38068 * kern/ieee1275/cmain.c: ... to here. Update all users.
38069
38070 * kern/powerpc/ieee1275/openfw.c: Move from here ...
38071 * kern/ieee1275/openfw.c: ... to here. Update all users.
38072
38073 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
38074 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
38075
38076 2008-04-10 Pavel Roskin <proski@gnu.org>
38077
38078 * configure.ac: Always use "_cv_" in cache variables for
38079 compatibility with Autoconf 2.62.
38080
38081 2008-04-07 Robert Millan <rmh@aybabtu.com>
38082
38083 Revert grub/machine/init.h addition by Pavel (since it breaks on
38084 i386-ieee1275 and others):
38085 * util/i386/pc/misc.c: Remove grub/machine/init.h.
38086 * util/powerpc/ieee1275/misc.c: Likewise.
38087
38088 2008-04-07 Robert Millan <rmh@aybabtu.com>
38089
38090 * util/grub-probe.c (probe): Improve error message.
38091
38092 2008-04-07 Robert Millan <rmh@aybabtu.com>
38093
38094 * util/biosdisk.c (read_device_map): Skip devices that don't exist
38095 (this prevents the presence of a bogus entry from ruining the whole
38096 thing).
38097
38098 2008-04-06 Pavel Roskin <proski@gnu.org>
38099
38100 * util/biosdisk.c: Include grub/util/biosdisk.h.
38101 * util/grub-fstest.c (execute_command): Make static.
38102 * util/grub-mkdevicemap.c (check_device): Likewise.
38103 * util/i386/pc/misc.c: Include grub/machine/init.h.
38104 * util/powerpc/ieee1275/misc.c: Likewise.
38105 * util/lvm.c: Include grub/util/lvm.h.
38106 * util/misc.c: Include grub/kernel.h, grub/misc.h and
38107 grub/cache.h.
38108 * util/raid.c: Include grub/util/raid.h.
38109 (grub_util_getdiskname): Make static.
38110
38111 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
38112 grub_hostfs_fini(), as they are called from grub_init_all() and
38113 grub_fini_all() respectively. This fixes an infinite loop in
38114 grub-fstest due to double registration of hostfs.
38115 Reported by Christian Franke <Christian.Franke@t-online.de>
38116
38117 2008-04-05 Pavel Roskin <proski@gnu.org>
38118
38119 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
38120 all 8 functions. Otherwise, probe function 0 only.
38121
38122 2008-04-04 Pavel Roskin <proski@gnu.org>
38123
38124 * commands/lspci.c (grub_lspci_iter): Print the bus number
38125 correctly.
38126
38127 * commands/lspci.c (grub_pci_classes): Fix typos.
38128 (grub_lspci_iter): Don't print func twice. Print vendor ID
38129 before device ID, as it's normally done.
38130
38131 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
38132 Fix signedness warnings.
38133 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
38134 Likewise.
38135 * util/ieee1275/get_disk_name.c: Include config.h so that
38136 _GNU_SOURCE is defined and getline() is declared. Mark an
38137 unused argument as such. Fix a signedness warning.
38138
38139 2008-04-02 Pavel Roskin <proski@gnu.org>
38140
38141 * genkernsyms.sh.in: Use more robust assignments for CC and
38142 srcdir. Quote srcdir.
38143 * gensymlist.sh.in: Likewise. Assert at the compile time that
38144 the symbol table is not empty.
38145
38146 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
38147 * fs/cpio.c (grub_cpio_read): Likewise.
38148
38149 2008-04-01 Pavel Roskin <proski@gnu.org>
38150
38151 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
38152 * disk/host.c (grub_host_open): Likewise.
38153 * disk/loopback.c (grub_loopback_open): Likewise.
38154 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
38155 disk->id as in disk/host.c, not a multi-character constant.
38156
38157 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
38158 later is obsolete, potentially dangerous and sets a bad example.
38159 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
38160 * util/misc.c (grub_util_get_image_size): Likewise.
38161
38162 * disk/loopback.c (options): Improve help for "--partitions".
38163
38164 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
38165 options to align them with the short options, e.g. "echo -e".
38166
38167 2008-03-31 Bean <bean123ch@gmail.com>
38168
38169 * video/reader/png.c (grub_png_data): New member is_16bit and
38170 image_data.
38171 (grub_png_decode_image_header): Detect 16 bit png image.
38172 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
38173 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
38174 (grub_video_reader_png): Release memory occupied by image_data.
38175
38176 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
38177 4096 bytes.
38178 (grub_nfs_mount): Skip the test for sector per cluster.
38179
38180 * include/grub/ntfs.h (MAX_SPC): Removed.
38181
38182 2008-03-31 Bean <bean123ch@gmail.com>
38183
38184 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
38185 (grub_probe_SOURCES): Add fs/afs.c.
38186 (grub_fstest_SOURCES): Likewise.
38187 (afs_mod_SOURCES): New variable.
38188 (afs_mod_CFLAGS): Likewise.
38189 (afs_mod_LDFLAGS): Likewise.
38190
38191 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
38192 (grub_emu_SOURCES): Likewise.
38193
38194 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38195
38196 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38197
38198 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38199
38200 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38201
38202 * fs/afs.c: New file.
38203
38204 2008-03-30 Pavel Roskin <proski@gnu.org>
38205
38206 * disk/host.c: Include grub/misc.h to fix a warning.
38207 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
38208 warnings about implicit declarations.
38209
38210 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
38211 variable.
38212 * include/grub/i386/loader.h: Change declaration of
38213 grub_linux_boot() to match what grub_loader_set() expects.
38214 * util/getroot.c (grub_guess_root_device): Return const char* to
38215 fix a warning.
38216 * util/grub-probe.c (probe): Fix a warning about uninitialized
38217 abstraction_name variable.
38218 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
38219 second argument as unused to fix a warning.
38220
38221 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
38222 missing grub_error() call.
38223
38224 * util/update-grub_lib.in: Define datarootdir, since Autoconf
38225 2.60 and newer uses it to define datadir.
38226
38227 * commands/sleep.c: Fix warning about implicit declaration.
38228 * disk/memdisk.c: Likewise.
38229 * loader/aout.c: Likewise.
38230 * loader/i386/bsd_normal.c: Likewise.
38231 * util/grub-probe.c: Likewise.
38232
38233 * commands/i386/cpuid.c (has_longmode): Make static.
38234 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
38235 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
38236
38237 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
38238 GDT. This is more robust, as %ds can change.
38239 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
38240 calling real_to_prot().
38241 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
38242
38243 2008-03-28 Pavel Roskin <proski@gnu.org>
38244
38245 * kern/i386/pc/startup.S: Assert that uncompressed functions
38246 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
38247 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
38248 code, as they push parts of the code (error handlers) beyond
38249 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
38250 code as correctness and size.
38251
38252 2008-03-28 Pavel Roskin <proski@gnu.org>
38253
38254 * kern/i386/pc/startup.S
38255 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
38256 data block address to the real mode, keep offset minimal. This
38257 works around a bug in AWARD BIOS on old Athlon systems, which
38258 makes CD detection hang.
38259
38260 2008-03-26 Pavel Roskin <proski@gnu.org>
38261
38262 * normal/color.c (grub_parse_color_name_pair): Make `name' a
38263 const.
38264 * include/grub/normal.h: Add grub_parse_color_name_pair()
38265 declaration.
38266
38267 2008-03-24 Bean <bean123ch@gmail.com>
38268
38269 * disk/i386/pc/biosdisk.c (cd_start): Removed.
38270 (cd_count): Removed.
38271 (cd_drive): New variable.
38272 (grub_biosdisk_get_drive): Don't check for (cdN) device.
38273 (grub_biosdisk_call_hook): Likewise.
38274 (grub_biosdisk_iterate): Change cdrom detection method.
38275 (grub_biosdisk_open): Replace cd_start with cd_drive.
38276 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
38277 detect cdrom device.
38278
38279 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
38280 Removed.
38281 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
38282 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
38283 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
38284 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
38285 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
38286 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
38287 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
38288 (grub_biosdisk_cdrp): New structure.
38289 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
38290
38291 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
38292
38293 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
38294 device.
38295
38296 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
38297 New function.
38298
38299 2008-03-20 Robert Millan <rmh@aybabtu.com>
38300
38301 Remove 2 TiB limit in ata.mod.
38302 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
38303 (grub_ata_dumpinfo): Print sector count with 0x%llx.
38304 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
38305 grub_uint64_t instead of grub_uint32_t.
38306
38307 2008-03-05 Bean <bean123ch@gmail.com>
38308
38309 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
38310 (grub_multiboot): Set boot device.
38311
38312 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
38313
38314 2008-03-02 Bean <bean123ch@gmail.com>
38315
38316 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
38317 symlink_buffer.
38318
38319 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
38320
38321 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
38322 texinfo.tex.
38323
38324 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
38325 modified.
38326
38327 * docs/fdl.texi: New file.
38328
38329 * docs/mdate-sh: New file. Copied from gnulib.
38330 * docs/texinfo.tex: Likewise.
38331
38332 * config.guess: Updated from gnulib.
38333 * install-sh: Likewise.
38334
38335 2008-02-28 Robert Millan <rmh@aybabtu.com>
38336
38337 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
38338 (aout_mod_SOURCES): New variable.
38339 (aout_mod_CFLAGS): Likewise.
38340 (aout_mod_LDFLAGS): Likewise.
38341
38342 * conf/i386-ieee1275.rmk: Likewise.
38343
38344 2008-02-28 Robert Millan <rmh@aybabtu.com>
38345
38346 * util/update-grub.in: Reorganise terminal validity check. Accept
38347 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
38348 Based on suggestion by Franklin PIAT.
38349
38350 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
38351
38352 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
38353 function.
38354 * util/getroot.c (grub_util_check_block_device): New function that
38355 returns the given argument if it is a block device and returns NULL else.
38356 * util/grub-probe.c (argument_is_device): New variable.
38357 (probe): Promote device_name from a variable to an argument. Receive
38358 device_name from grub_util_check_block_device() if path is NULL and from
38359 grub_guess_root_device() else. Do not free() device_name anymore.
38360 (options): Introduce new parameter '-d, --device'.
38361 (main): Add description of the new parameter to the help screen.
38362 Rename path variable to argument. Set argument_is_device if the '-d'
38363 option is given. Pass argument to probe() depending on
38364 argument_is_device.
38365
38366 2008-02-24 Bean <bean123ch@gmail.com>
38367
38368 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
38369 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
38370 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
38371 (GRUB_ISO9660_VOLDESC_PART): Likewise.
38372 (GRUB_ISO9660_VOLDESC_END): Likewise.
38373 (grub_iso9660_primary_voldesc): New member escape.
38374 (grub_iso9660_data): New member joliet.
38375 (grub_iso9660_convert_string): New function.
38376 (grub_iso9660_mount): Detect joliet extension.
38377 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
38378 (grub_iso9660_iso9660_label): Likewise.
38379
38380 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
38381 (grub_setup_SOURCES): Add fs/udf.c.
38382 (grub_fstest_SOURCES): Likewise.
38383 (udf_mod_SOURCES): New variable.
38384 (udf_mod_CFLAGS): Likewise.
38385 (udf_mod_LDFLAGS): Likewise.
38386
38387 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
38388 (grub_emu_SOURCES): Likewise.
38389
38390 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38391
38392 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38393
38394 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38395
38396 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38397
38398 * fs/udf.c: New file.
38399
38400 2008-02-24 Robert Millan <rmh@aybabtu.com>
38401
38402 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
38403 (normal/lexer.c_DEPENDENCIES): New variables.
38404 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38405 (normal/lexer.c_DEPENDENCIES): Likewise.
38406 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
38407 (normal/lexer.c_DEPENDENCIES): Likewise.
38408 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
38409 (normal/lexer.c_DEPENDENCIES): Likewise.
38410 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38411 (normal/lexer.c_DEPENDENCIES): Likewise.
38412 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38413 (normal/lexer.c_DEPENDENCIES): Likewise.
38414
38415 2008-02-23 Robert Millan <rmh@aybabtu.com>
38416
38417 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
38418 since they were intended to be in hex. This didn't break previously
38419 because of a bug in gpt_partition_map_iterate() (see below).
38420
38421 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
38422 when checking the validity of GPT header.
38423 Remove `partno', since it always provides the same information as `i'.
38424
38425 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
38426
38427 * include/grub/efi/time.h: Fix a wrong comment.
38428
38429 2008-02-19 Pavel Roskin <proski@gnu.org>
38430
38431 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
38432 message.
38433
38434 2008-02-19 Bean <bean123ch@gmail.com>
38435
38436 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
38437 (aout_mod_SOURCES): New variable.
38438 (aout_mod_CFLAGS): Likewise.
38439 (aout_mod_LDFLAGS): Likewise.
38440 (_bsd_mod_SOURCES): New variable.
38441 (_bsd_mod_CFLAGS): Likewise.
38442 (_bsd_mod_LDFLAGS): Likewise.
38443 (bsd_mod_SOURCES): New variable.
38444 (bsd_mod_CFLAGS): Likewise.
38445 (bsd_mod_LDFLAGS): Likewise.
38446
38447 * include/grub/aout.h: New file.
38448
38449 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
38450
38451 * include/grub/i386/bsd.h: New file.
38452
38453 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
38454 to make it public.
38455
38456 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
38457 function is called, so that it's possible to change it inside the hook.
38458 (grub_elf64_load): Likewise.
38459 (grub_elf_file): Don't close the file if elf header is not found.
38460 (grub_elf_close): Close the file if grub_elf_file fails (The new
38461 grub_elf_file won't close it).
38462 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
38463 (grub_elf64_size): Likewise.
38464
38465 * kern/i386/loader.S (grub_unix_real_boot): New function.
38466
38467 * loader/aout.c: New file.
38468
38469 * loader/i386/bsd.c: New file.
38470
38471 * loader/i386/bsd_normal.c: New file.
38472
38473 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
38474
38475 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
38476 can test other formats.
38477
38478 2008-02-19 Robert Millan <rmh@aybabtu.com>
38479
38480 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
38481 (grub_gpt_partition_type_empty): Redefine with macro from
38482 `<grub/gpt_partition.h>'.
38483 (gpt_partition_map_iterate): Adjust partition type comparison.
38484
38485 Export `entry' as partmap-specific `part.data' struct.
38486 (grub_gpt_header, grub_gpt_partentry): Move from here ...
38487
38488 * include/grub/gpt_partition.h (grub_gpt_header)
38489 (grub_gpt_partentry): ... to here (new file).
38490
38491 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
38492
38493 (grub_gpt_partition_type_bios_boot): New const variable, defined
38494 with macro from `<grub/gpt_partition.h>'.
38495
38496 (setup): Replace `first_start' with `embed_region', which keeps
38497 track of the embed region (and is partmap-agnostic).
38498
38499 Replace find_first_partition_start() with find_usable_region(),
38500 which finds a usable region for embedding using partmap-specific
38501 knowledge (supports PC/MSDOS and GPT).
38502
38503 Fix all assumptions that the embed region start at sector 1, using
38504 `embed_region.start' from now on. Similarly, use `embed_region.end'
38505 rather than `first_start' to calculate available size.
38506
38507 In grub_util_info() message, replace "into after the MBR" with an
38508 indication of the specific sector our embed region starts at.
38509
38510 2008-02-19 Robert Millan <rmh@aybabtu.com>
38511
38512 * DISTLIST: Replace `commands/ieee1275/halt.c' and
38513 `commands/ieee1275/reboot.c' with `commands/halt.c' and
38514 `commands/reboot.c'.
38515 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38516 (halt_mod_SOURCES): Likewise.
38517 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38518 (halt_mod_SOURCES): Likewise.
38519
38520 2008-02-17 Christian Franke <franke@computer.org>
38521
38522 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
38523
38524 2008-02-17 Robert Millan <rmh@aybabtu.com>
38525
38526 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38527 set `first_start' to 0 for non-PC/MSDOS partition maps.
38528
38529 2008-02-16 Robert Millan <rmh@aybabtu.com>
38530
38531 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38532 do not assume partition map is PC/MSDOS before performing checks that
38533 are specific to that layout.
38534
38535 2008-02-13 Robert Millan <rmh@aybabtu.com>
38536
38537 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
38538 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
38539 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
38540
38541 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
38542
38543 * configure.ac: Only a cosmetic change on the handling of
38544 -fno-stack-protector.
38545
38546 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
38547
38548 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
38549 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
38550 reboot.c.
38551 (grub_install_SOURCES): Add halt.mod and reboot.mod.
38552 (halt_mod_SOURCES): New variable.
38553 (halt_mod_CFLAGS): Likewise.
38554 (halt_mod_LDFLAGS): Likewise.
38555 (reboot_mod_SOURCES): Likewise.
38556 (reboot_mod_CFLAGS): Likewise.
38557 (reboot_mod_LDFLAGS): Likewise.
38558
38559 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
38560 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
38561 reboot.c.
38562 (halt_mod_SOURCES): Likewise.
38563 (reboot_mod_SOURCES): Likewise.
38564
38565 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
38566 commands/i386/pc/reboot.c by commands/reboot.c.
38567 (reboot_mod_SOURCES): Likewise.
38568
38569 * commands/i386/pc/reboot.c: merge this file ...
38570
38571 * commands/ieee1275/reboot.c: ... and this file ...
38572
38573 * commands/reboot.c: ... to this file.
38574 Add some precompiler directive to include the correct header for
38575 each machine.
38576
38577 * commands/ieee1275/halt.c: move this file ...
38578
38579 * commands/halt.c: ... to here.
38580 Add some precompiler directive to include the correct header for
38581 each machine.
38582
38583 * include/grub/efi/efi.h (grub_reboot): New function declaration.
38584 (grub_halt): Likewise.
38585
38586 * kern/efi/efi.c (grub_reboot): New function.
38587 (grub_halt): Likewise.
38588
38589 2008-02-12 Robert Millan <rmh@aybabtu.com>
38590
38591 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
38592 /dev (like it is done for /dev/mapper). This doesn't provide support
38593 for EVMS, but at least it is now easy to identify the problem when it
38594 arises.
38595
38596 2008-02-11 Robert Millan <rmh@aybabtu.com>
38597
38598 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
38599 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
38600 comparing it with -1, not 0.
38601
38602 2008-02-10 Robert Millan <rmh@aybabtu.com>
38603
38604 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
38605 `disk/lvm.c'.
38606 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38607 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
38608
38609 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
38610 `disk/lvm.c' to the end of the list.
38611 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38612 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38613
38614 2008-02-10 Robert Millan <rmh@aybabtu.com>
38615
38616 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
38617 grub_print_error() instead. This will let user know why we're entering
38618 rescue mode.
38619 Based on suggestions from Sam Morris.
38620
38621 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
38622
38623 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
38624 on remaining N args, instead of "--" arg N times.
38625
38626 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
38627
38628 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
38629 (fill_with_default_glyph): Changed to use unknown_glyph for fill
38630 pattern for unknown glyphs.
38631
38632 2008-02-09 Robert Millan <rmh@aybabtu.com>
38633
38634 * configure.ac: Probe for `help2man'.
38635 * Makefile.in (builddir): New variable.
38636 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
38637 or otherwise add a few flags/options to it.
38638 (install-local): For every executable utility or script that is
38639 installed, invoke $(HELP2MAN) to install a manpage based on --help
38640 output.
38641
38642 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
38643 that it doesn't prevent --help from working in build tree.
38644
38645 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
38646 with `bug-grub@gnu.org'.
38647 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
38648 * util/update-grub.in (usage): New function.
38649 Implement proper argument check, with support for --help and --version
38650 (as well as existing -y).
38651
38652 2008-02-09 Christian Franke <franke@computer.org>
38653
38654 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
38655 avoid overwriting previous output.
38656 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
38657
38658 2008-02-09 Robert Millan <rmh@aybabtu.com>
38659
38660 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
38661 drawing the menu.
38662
38663 2008-02-09 Robert Millan <rmh@aybabtu.com>
38664
38665 * commands/sleep.c: New file.
38666 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
38667 (sleep_mod_SOURCES): New variable.
38668 (sleep_mod_CFLAGS): Likewise.
38669 (sleep_mod_LDFLAGS): Likewise.
38670
38671 2008-02-09 Robert Millan <rmh@aybabtu.com>
38672
38673 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
38674 situations in which we can deduce the RAID size and the superblock
38675 doesn't match it.
38676
38677 2008-02-09 Robert Millan <rmh@aybabtu.com>
38678
38679 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
38680 and return a grub_diskmemberlist_t composed of LVM physical volumes.
38681 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
38682
38683 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
38684 and return a grub_diskmemberlist_t composed of physical array members.
38685 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
38686
38687 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
38688 prototype.
38689 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
38690 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
38691 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
38692
38693 * util/grub-probe.c (probe): Move partmap probing code from here ...
38694 (probe_partmap): ... to here.
38695 (probe): Use probe_partmap() once for the disk we're probing, and
38696 additionally, when such disk contains a memberlist() struct member,
38697 once for each disk that is contained in the structure returned by
38698 memberlist().
38699
38700 2008-02-09 Robert Millan <rmh@aybabtu.com>
38701
38702 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
38703 environment variable to 'all' in order to obtain debug output from
38704 non-util/ code.
38705 * util/i386/pc/grub-setup.c (main): Likewise.
38706
38707 2008-02-08 Robert Millan <rmh@aybabtu.com>
38708
38709 * disk/raid.c (grub_raid_scan_device): Check for
38710 `array->device[sb.this_disk.number]' rather than for
38711 `array->device[sb.this_disk.number]->name', since the latter is not
38712 guaranteed to be accessible.
38713
38714 2008-02-08 Robert Millan <rmh@aybabtu.com>
38715
38716 * disk/raid.c: Update copyright.
38717 * fs/cpio.c: Likewise.
38718 * include/grub/raid.h: Likewise.
38719 * loader/i386/pc/multiboot.c: Likewise.
38720 * util/hostfs.c: Likewise.
38721
38722 2008-02-08 Robert Millan <rmh@aybabtu.com>
38723
38724 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
38725 to a grub_disk_t array.
38726 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
38727 `device[x]'.
38728 (grub_raid_scan_device): Replace `device[x].name' accesses with
38729 `device[x]->name'. Simplify initialization of `array->device[x]'.
38730
38731 2008-02-08 Robert Millan <rmh@aybabtu.com>
38732
38733 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
38734 grub_dprintf() calls.
38735 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
38736 error message.
38737
38738 2008-02-07 Christian Franke <franke@computer.org>
38739
38740 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
38741 instead of fseek and ftell to support large files.
38742 (grub_hostfs_read): Likewise.
38743
38744 2008-02-07 Robert Millan <rmh@aybabtu.com>
38745
38746 Patch from Jeroen Dekkers.
38747 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
38748 failure, since successfully reading all array members might not be
38749 required.
38750
38751 2008-02-06 Robert Millan <rmh@aybabtu.com>
38752
38753 * util/grub-probe.c (probe): Simplify partmap probing (with the
38754 assumption that the first word up to the underscore equals to
38755 the module name).
38756
38757 2008-02-06 Christian Franke <franke@computer.org>
38758
38759 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
38760 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
38761 last block of a cpio or tar stream.
38762 Check for "TRAILER!!!" instead of any empty data
38763 block to detect last block of a cpio stream.
38764 (grub_cpio_dir): Fix constness of variable np.
38765 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
38766 cpio or tar trailer is detected. This fixes a crash
38767 on open of a non existing file.
38768
38769 2008-02-05 Bean <bean123ch@gmail.com>
38770
38771 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
38772 address of entry.
38773 (grub_multiboot_load_elf64): Likewise.
38774 (grub_multiboot): Initialize mbi structure.
38775
38776 * util/grub-fstest.c: Don't include unused header file script.h.
38777
38778 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
38779 of file.
38780 (grub_fstest_SOURCES): Likewise.
38781
38782 2008-02-05 Robert Millan <rmh@aybabtu.com>
38783
38784 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
38785 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
38786 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
38787 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
38788
38789 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
38790 (translation_table): Replace hardcoded values with macros
38791 provided by `<grub/term.h>'.
38792
38793 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
38794 (keyboard_map): Correct/add a few values, with macros provided
38795 by `<grub/term.h>'.
38796 (keyboard_map_shift): Zero values that don't differ from their
38797 `keyboard_map' equivalents.
38798 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
38799 Discard the second scan code that is always sent by Caps lock.
38800 Only use `keyboard_map_shift' when it provides a non-zero value,
38801 otherwise fallback to `keyboard_map'.
38802
38803 2008-02-04 Bean <bean123ch@gmail.com>
38804
38805 * Makefile.in (enable_grub_fstest): New variable.
38806
38807 * conf/common.rmk (grub_fstest_init.lst): New rule.
38808 (grub_fstest_init.h): Likewise.
38809 (grub_fstest_init.c): Likewise.
38810 (util/grub-fstest.c_DEPENDENCIES): New variable.
38811 (grub_fstest_SOURCES): Likewise.
38812
38813 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
38814
38815 * util/grub-fstest.c: New file.
38816
38817 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38818
38819 Make grub-setup handle a separate root device.
38820
38821 * util/i386/pc/grub-setup.c (setup): Always open the root device,
38822 so that the root device can be compared with the destination
38823 device.
38824 When embedding the core image, if the root and destination devices
38825 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
38826 0xFF.
38827 When not embedding, set ROOT_DRIVE to 0xFF.
38828
38829 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38830
38831 Add support for having a grub directory in a different drive. This
38832 is still only the data handling part.
38833
38834 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
38835 (codestart): Save %dh in GRUB_ROOT_DRIVE.
38836 (grub_root_drive): New variable.
38837
38838 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
38839 instead of GRUB_BOOT_DRIVE to construct a device name. Set
38840 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
38841 as it was.
38842
38843 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
38844
38845 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
38846 macro.
38847 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
38848
38849 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
38850 is bogus, because PXE booting does not specify any drive
38851 correctly.
38852
38853 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
38854 am not sure if this is really correct.
38855
38856 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
38857 is always identical to the boot drive when booting from a CD.
38858
38859 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
38860 longer.
38861 (root_drive): New variable.
38862 (real_start): Unconditionally set %dh to ROOT_DRIVE.
38863 (setup_sectors): Push %dx right after popping it, because %dh will
38864 be modified later.
38865 (copy_buffer): Restore %dx.
38866
38867 2008-02-03 Robert Millan <rmh@aybabtu.com>
38868
38869 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
38870 use `cdboot.img' for cdrom images.
38871
38872 2008-02-03 Robert Millan <rmh@aybabtu.com>
38873
38874 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
38875 only setup gfxterm when `font' command has succeeded.
38876
38877 2008-02-03 Robert Millan <rmh@aybabtu.com>
38878
38879 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
38880 (grub_rescue_cmd_multiboot_loader)
38881 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
38882
38883 2008-02-03 Pavel Roskin <proski@gnu.org>
38884
38885 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
38886 %edx and %esi from stack only after grub_gate_a20() is called.
38887 grub_gate_a20() clobbers %edx.
38888
38889 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38890
38891 * configure.ac (AC_INIT): Bumped to 1.96.
38892
38893 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
38894 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
38895 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
38896 video/readers/png.c.
38897
38898 2008-02-03 Bean <bean123ch@gmail.com>
38899
38900 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
38901 (cdboot_img_SOURCES): New variable.
38902 (cdboot_img_ASFLAGS): New variable.
38903 (cdboot_img_LDFLAGS): New variable.
38904
38905 * boot/i386/pc/cdboot.S: New file.
38906
38907 * disk/i386/pc/biosdisk.c (cd_start): New variable.
38908 (cd_count): Likewise.
38909 (grub_biosdisk_get_drive): Add support for cd device.
38910 (grub_biosdisk_call_hook): Likewise.
38911 (grub_biosdisk_iterate): Likewise.
38912 (grub_biosdisk_open): Likewise.
38913 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
38914 (grub_biosdisk_rw): Support reading from cd device.
38915 (GRUB_MOD_INIT): Iterate cd devices.
38916
38917 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
38918 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
38919 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
38920
38921 * kern/i386/pc/init.c (make_install_device): Check for cd device.
38922
38923 2008-02-02 Robert Millan <rmh@aybabtu.com>
38924
38925 * commands/read.c: New file.
38926 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
38927 (read_mod_SOURCES): New variable.
38928 (read_mod_CFLAGS): Likewise.
38929 (read_mod_LDFLAGS): Likewise.
38930
38931 2008-02-02 Robert Millan <rmh@aybabtu.com>
38932
38933 * normal/main.c (grub_normal_execute): Check for `menu->size' when
38934 determining whether menu has to be displayed.
38935
38936 2008-02-02 Marco Gerards <marco@gnu.org>
38937
38938 * bus/pci.c: New file.
38939
38940 * include/grub/pci.h: Likewise.
38941
38942 * include/grub/i386/pc/pci.h: Likewise.
38943
38944 * commands/lspci.c: Likewise.
38945
38946 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
38947 `lspci.mod'.
38948 (pci_mod_SOURCES): New variable.
38949 (pci_mod_CFLAGS): Likewise.
38950 (pci_mod_LDFLAGS): Likewise.
38951 (lspci_mod_SOURCES): Likewise.
38952 (lspci_mod_CFLAGS): Likewise.
38953 (lspci_mod_LDFLAGS): Likewise.
38954
38955 2008-02-02 Bean <bean123ch@gmail.com>
38956
38957 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
38958 (grub_ufs_get_file_block): Fix indirect block calculation problem.
38959
38960 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
38961 (grub_xfs_btree_node): New structure.
38962 (grub_xfs_btree_root): New structure.
38963 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
38964 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
38965 (GRUB_XFS_EXTENT_BLOCK): Likewise.
38966 (GRUB_XFS_EXTENT_SIZE): Likewise.
38967 (grub_xfs_read_block): Support btree format type.
38968 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
38969 Use directory block as basic unit.
38970
38971 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
38972
38973 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
38974 __attribute__ ((__regparm__ (1))).
38975
38976 2008-02-01 Robert Millan <rmh@aybabtu.com>
38977
38978 Correct a mistake in previous commit.
38979
38980 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
38981 top.
38982 (normal/command.c_DEPENDENCIES): New variable.
38983
38984 2008-02-01 Robert Millan <rmh@aybabtu.com>
38985
38986 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
38987 top.
38988 (normal/command.c_DEPENDENCIES): New variable.
38989 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
38990 * conf/i386-ieee1275.rmk: Likewise.
38991 * conf/i386-linuxbios.rmk: Likewise.
38992 * conf/i386-pc.rmk: Likewise.
38993 * conf/sparc64-ieee1275.rmk: Likewise.
38994 * conf/powerpc-ieee1275.rmk: Likewise.
38995 (grub_emu_SOURCES): Add `fs/fshelp.c'.
38996
38997 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
38998
38999 2008-02-01 Robert Millan <rmh@aybabtu.com>
39000
39001 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
39002 call at beginning of function.
39003
39004 2008-01-31 Pavel Roskin <proski@gnu.org>
39005
39006 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
39007 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
39008 (grub_mkrescue_SOURCES): Likewise.
39009 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
39010
39011 2008-01-30 Robert Millan <rmh@aybabtu.com>
39012
39013 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
39014 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
39015 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
39016 (grub_probe_SOURCES): ... to here.
39017
39018 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
39019 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
39020 * conf/i386-ieee1275.rmk: Likewise.
39021 * conf/i386-linuxbios.rmk: Likewise.
39022 * conf/powerpc-ieee1275.rmk: Likewise.
39023
39024 2008-01-30 Tristan Gingold <gingold@free.fr>
39025
39026 * kern/rescue.c: Silently accept empty lines.
39027
39028 2008-01-29 Bean <bean123ch@gmail.com>
39029
39030 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
39031 (real_code_2): Code cleanup and change comment style.
39032 (move_memory): Avoid using 32-bit address mode.
39033
39034 2008-01-29 Bean <bean123ch@gmail.com>
39035
39036 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
39037 (png_mod_SOURCES): New variable.
39038 (png_mod_CFLAGS): Likewise.
39039 (png_mod_LDFLAGS): Likewise.
39040
39041 * video/readers/png.c: New file.
39042
39043 2008-01-28 Robert Millan <rmh@aybabtu.com>
39044
39045 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
39046 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
39047 `ifndef GRUB_MOD_GAP' hack.
39048 * util/elf/grub-mkimage.c (add_segments): Likewise.
39049
39050 2008-01-27 Robert Millan <rmh@aybabtu.com>
39051
39052 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
39053 `GRUB_MOD_GAP' for platforms in which it's not defined.
39054 * util/elf/grub-mkimage.c (add_segments): Likewise.
39055
39056 2008-01-27 Robert Millan <rmh@aybabtu.com>
39057
39058 Get grub-emu to build again (including parallel builds).
39059
39060 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
39061 Split into ...
39062 (util/grub-emu.c_DEPENDENCIES): ... this, ...
39063 (normal/execute.c_DEPENDENCIES): ... this, ...
39064 (grub-emu_DEPENDENCIES): ... and this.
39065
39066 * conf/i386-efi.rmk: Likewise.
39067 * conf/i386-linuxbios.rmk: Likewise.
39068 * conf/i386-ieee1275.rmk: Likewise.
39069 * conf/powerpc-ieee1275.rmk: Likewise.
39070 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
39071
39072 2008-01-27 Robert Millan <rmh@aybabtu.com>
39073
39074 * NEWS: Add a few items.
39075
39076 2008-01-27 Robert Millan <rmh@aybabtu.com>
39077
39078 Fix parallel builds with grub-emu. Based on earlier commit for
39079 grub-probe and grub-setup.
39080
39081 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39082 (util/grub-emu.c_DEPENDENCIES): ... this.
39083 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39084 (util/grub-emu.c_DEPENDENCIES): ... this.
39085 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39086 (util/grub-emu.c_DEPENDENCIES): ... this.
39087 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39088 (util/grub-emu.c_DEPENDENCIES): ... this.
39089 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39090 (util/grub-emu.c_DEPENDENCIES): ... this.
39091
39092 2008-01-27 Pavel Roskin <proski@gnu.org>
39093
39094 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
39095 to create a gap between _end and the modules added to the image
39096 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
39097 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
39098 * util/elf/grub-mkimage.c (add_segments): Likewise.
39099
39100 2008-01-26 Pavel Roskin <proski@gnu.org>
39101
39102 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
39103 just return an error.
39104
39105 2008-01-26 Bean <bean123ch@gmail.com>
39106
39107 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
39108 (grub_reiserfs_get_item): Save offset of the next item.
39109 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
39110
39111 2008-01-25 Robert Millan <rmh@aybabtu.com>
39112
39113 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
39114 make all filesystem sources appear together (possibly fixing omissions
39115 while at it).
39116 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39117 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39118 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39119 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39120
39121 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
39122 add `kern/file.c'.
39123 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
39124 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39125 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
39126 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39127
39128 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
39129 (probe): Add a sanity check to make sure of our ability to read
39130 requested files when probing for filesystem type.
39131
39132 * genmk.rb: Update copyright year (2007).
39133
39134 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
39135 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
39136 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
39137 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
39138 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
39139 : Remove function prototypes.
39140
39141 2008-01-25 Robert Millan <rmh@aybabtu.com>
39142
39143 Revert my previous commits (based on wrong assumption of how grub_errno
39144 works).
39145
39146 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
39147 * kern/file.c (grub_file_open): Likewise.
39148
39149 2008-01-24 Pavel Roskin <proski@gnu.org>
39150
39151 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
39152 that hang if GRUB tries to setup colors.
39153 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
39154 colors for firmwares that don't support it.
39155 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
39156 Recognize Open Hack'Ware, set flags to work around its
39157 limitations.
39158
39159 2008-01-24 Robert Millan <rmh@aybabtu.com>
39160
39161 * kern/file.c (grub_file_open): Do not account previous failures of
39162 unrelated functions when grub_errno is checked for.
39163 Reported by Oleg Strikov.
39164
39165 2008-01-24 Bean <bean123ch@gmail.com>
39166
39167 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
39168 (grub_ufs_sblock): New member volume name.
39169 (grub_ufs_find_file): Fix string copy bug.
39170 (grub_ufs_label): Implement this function properly.
39171
39172 * fs/hfs.c (grub_hfs_cnid_type): New enum.
39173 (grub_hfs_iterate_records): Use the correct file number for extents
39174 and catalog file. Fix problem in next index calculation.
39175 (grub_hfs_find_node): Replace recursive function call with loop.
39176 (grub_hfs_iterate_dir): Replace recursive function call with loop.
39177
39178 2008-01-23 Robert Millan <rmh@aybabtu.com>
39179
39180 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
39181 `<grub/symbol.h>' and `<grub/multiboot.h>'.
39182 (grub_multiboot2_real_boot): New function prototype.
39183
39184 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
39185 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
39186
39187 * kern/i386/ieee1275/init.c (grub_os_area_addr)
39188 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
39189
39190 2008-01-23 Robert Millan <rmh@aybabtu.com>
39191
39192 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
39193 #ifdef'ed out grub_printf().
39194
39195 2008-01-23 Robert Millan <rmh@aybabtu.com>
39196
39197 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
39198 grub_dprintf calls, since they make "debug=all" mode unusable.
39199 (grub_console_checkkey): Likewise.
39200
39201 2008-01-23 Robert Millan <rmh@aybabtu.com>
39202
39203 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
39204 `term/i386/pc/at_keyboard.c'.
39205 (pkglib_MODULES): Add `serial.mod'.
39206 (serial_mod_SOURCES): New variable.
39207 (serial_mod_CFLAGS): Likewise.
39208 (serial_mod_LDFLAGS): Likewise.
39209
39210 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
39211 `<grub/powerpc/ieee1275/console.h>'.
39212 (grub_keyboard_controller_init): New function prototype.
39213 (grub_console_checkkey): Likewise.
39214 (grub_console_getkey): Likewise.
39215
39216 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
39217 keyboard on i386.
39218
39219 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
39220 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
39221
39222 2008-01-23 Robert Millan <rmh@aybabtu.com>
39223
39224 * kern/i386/pc/init.c (make_install_device): When memdisk image is
39225 present, "(memdisk)/boot/grub" becomes the default prefix.
39226
39227 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
39228 a memdisk tarball with all the modules. Add --overlay=DIR option that
39229 allows users to overlay additional files into the image.
39230
39231 2008-01-23 Robert Millan <rmh@aybabtu.com>
39232
39233 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
39234 and `machine/memory.h'.
39235 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
39236 (_multiboot_mod_SOURCES): New variable.
39237 (_multiboot_mod_CFLAGS): Likewise.
39238 (_multiboot_mod_LDFLAGS): Likewise.
39239 (multiboot_mod_SOURCES): Likewise.
39240 (multiboot_mod_CFLAGS): Likewise.
39241 (multiboot_mod_LDFLAGS): Likewise.
39242
39243 * include/grub/i386/ieee1275/loader.h: New file.
39244
39245 * include/grub/i386/ieee1275/machine.h: Likewise.
39246
39247 * include/grub/i386/ieee1275/memory.h: Likewise.
39248
39249 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
39250 variable declaration.
39251 (grub_os_area_size): Likewise.
39252
39253 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
39254 (grub_lower_mem, grub_upper_mem): New variables.
39255 (grub_stop_floppy): New function (just to make
39256 grub_multiboot2_real_boot() happy).
39257
39258 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
39259 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
39260 (grub_stop): New function.
39261 Include `"../realmode.S"' and `"../loader.S"'.
39262
39263 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
39264 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
39265
39266 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
39267 rely on grub_multiboot2_real_boot() for final boot.
39268
39269 2008-01-22 Robert Millan <rmh@aybabtu.com>
39270
39271 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
39272 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
39273 device that doesn't look like an SD card.
39274 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
39275 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
39276 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
39277 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
39278 found.
39279
39280 2008-01-22 Robert Millan <rmh@aybabtu.com>
39281
39282 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
39283 avoid claiming over our own code.
39284
39285 2008-01-22 Bean <bean123ch@gmail.com>
39286
39287 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
39288 (jpeg_mod_SOURCES): New variable.
39289 (jpeg_mod_CFLAGS): Likewise.
39290 (jpeg_mod_LDFLAGS): Likewise.
39291
39292 * video/readers/jpeg.c : New file.
39293
39294 2008-01-22 Bean <bean123ch@gmail.com>
39295
39296 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
39297 there are no more items.
39298
39299 2008-01-21 Robert Millan <rmh@aybabtu.com>
39300
39301 * kern/mm.c (grub_mm_init_region): Improve debug message.
39302
39303 2008-01-21 Robert Millan <rmh@aybabtu.com>
39304
39305 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
39306 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
39307 address.
39308 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
39309 a C macro.
39310 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
39311 Indicates start of upper memory.
39312 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
39313 (generate_image): Abort when image size is big enough to corrupt
39314 upper memory.
39315
39316 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
39317 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
39318 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39319 instead of hardcoding 0xA0000.
39320 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
39321 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39322 instead of hardcoding 0xA0000.
39323
39324 2008-01-21 Robert Millan <rmh@aybabtu.com>
39325
39326 * disk/memdisk.c (memdisk_size): New variable.
39327 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
39328 `memdisk_size'.
39329 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
39330 image to dynamic memory.
39331 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
39332 `memdisk_size'. Free memdisk block.
39333
39334 2008-01-21 Robert Millan <rmh@aybabtu.com>
39335
39336 Fix detection of very small filesystems (like tar).
39337
39338 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
39339 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
39340 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
39341 a problem with this disk).
39342
39343 2008-01-21 Robert Millan <rmh@aybabtu.com>
39344
39345 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
39346 on grub_biosdisk_rw_standard() error.
39347
39348 2008-01-21 Robert Millan <rmh@aybabtu.com>
39349
39350 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
39351 recent changes.
39352 * kern/elf.c: Likewise.
39353 * kern/ieee1275/ieee1275.c: Likewise.
39354 * kern/powerpc/ieee1275/openfw.c: Likewise.
39355 * term/ieee1275/ofconsole.c: Likewise.
39356
39357 2008-01-21 Robert Millan <rmh@aybabtu.com>
39358
39359 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
39360
39361 * include/grub/kernel.h (grub_arch_memdisk_addr)
39362 (grub_arch_memdisk_size): Moved from here ...
39363
39364 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
39365 (grub_arch_memdisk_size): ... to here.
39366
39367 2008-01-21 Robert Millan <rmh@aybabtu.com>
39368
39369 Mostly based on bugfix from Bean.
39370
39371 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
39372 attribute with hook() parameter.
39373 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
39374 declaration.
39375 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
39376 attribute with hook() parameter.
39377 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
39378 declaration.
39379
39380 2008-01-21 Robert Millan <rmh@aybabtu.com>
39381
39382 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
39383 (pkglib_MODULES): Add `memdisk.mod'.
39384 (memdisk_mod_SOURCES): New variable.
39385 (memdisk_mod_CFLAGS): Likewise.
39386 (memdisk_mod_LDFLAGS): Likewise.
39387
39388 * disk/memdisk.c: New file.
39389
39390 * include/grub/disk.h (grub_disk_dev_id): Add
39391 `GRUB_DISK_DEVICE_MEMDISK_ID'.
39392
39393 * include/grub/i386/pc/kernel.h
39394 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
39395 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
39396 (grub_kernel_image_size): New variable declaration.
39397 (grub_total_module_size): Likewise.
39398 (grub_memdisk_image_size): Likewise.
39399
39400 * include/grub/i386/pc/memory.h
39401 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
39402
39403 * include/grub/kernel.h: Include `<grub/symbol.h>'.
39404 (grub_arch_memdisk_addr): New variable declaration.
39405 (grub_arch_memdisk_size): Likewise.
39406
39407 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
39408 (grub_arch_memdisk_size): Likewise.
39409
39410 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
39411 (codestart): Replace hardcoded `0x100000' with
39412 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
39413
39414 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
39415 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
39416 not NULL, append the contents of the file it refers to, at the end of
39417 the compressed kernel image. Initialize `grub_memdisk_image_size'
39418 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
39419 (options): Add "memdisk"|'m' option.
39420 (main): Parse --memdisk|-m option, and pass user-provided path as
39421 parameter to generate_image().
39422
39423 2008-01-20 Robert Millan <rmh@aybabtu.com>
39424
39425 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
39426 grub_dprintf() calls from here ...
39427 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
39428
39429 2008-01-20 Robert Millan <rmh@aybabtu.com>
39430
39431 Fix detection of "real mode" when /options/real-mode? doesn't exist.
39432
39433 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
39434 declaration.
39435 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
39436 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
39437 `GRUB_IEEE1275_FLAG_REAL_MODE'.
39438 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
39439 property).
39440 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
39441 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
39442
39443 2008-01-19 Robert Millan <rmh@aybabtu.com>
39444
39445 Get rid of confusing function (superseded by
39446 `grub_ieee1275_get_integer_property')
39447 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
39448 prototype.
39449 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
39450 function.
39451 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
39452 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
39453 in native endianness from grub_ieee1275_get_integer_property().
39454
39455 2008-01-19 Robert Millan <rmh@aybabtu.com>
39456
39457 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
39458 command after "shut-down", since implementations differ on which
39459 the command for halt is.
39460
39461 2008-01-19 Robert Millan <rmh@aybabtu.com>
39462
39463 * include/grub/i386/linuxbios/console.h: Add header protection.
39464 (grub_keyboard_controller_init): New function prototype.
39465 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
39466 (KEYBOARD_COMMAND_READ): Likewise.
39467 (KEYBOARD_COMMAND_WRITE): Likewise.
39468 (KEYBOARD_SCANCODE_SET1): Likewise.
39469 (grub_keyboard_controller_write): New function.
39470 (grub_keyboard_controller_read): Likewise.
39471 (grub_keyboard_controller_init): Likewise.
39472
39473 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
39474 (grub_console_init): On coreboot/LinuxBIOS, call
39475 grub_keyboard_controller_init().
39476
39477 2008-01-19 Robert Millan <rmh@aybabtu.com>
39478
39479 PowerPC changes provided by Pavel Roskin.
39480
39481 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
39482 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
39483 don't rely on cmain() doing it.
39484 * kern/i386/ieee1275/startup.S (_start): Store %eax in
39485 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
39486
39487 2008-01-16 Robert Millan <rmh@aybabtu.com>
39488
39489 * include/grub/i386/linuxbios/memory.h
39490 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
39491 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
39492 receive `table_header' as argument. Instead, probe for it in the
39493 known memory ranges where it can be present.
39494 (grub_available_iterate): Do not pass a fixed `table_header' address
39495 to grub_linuxbios_table_iterate().
39496
39497 2008-01-15 Robert Millan <rmh@aybabtu.com>
39498
39499 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
39500 * conf/i386-ieee1275.rmk: New file.
39501 * include/grub/i386/ieee1275/console.h: Likewise.
39502 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
39503 * include/grub/i386/ieee1275/kernel.h: Likewise.
39504 * include/grub/i386/ieee1275/time.h: Likewise.
39505 * kern/i386/ieee1275/init.c: Likewise.
39506 * kern/i386/ieee1275/startup.S: Likewise.
39507
39508 2008-01-15 Robert Millan <rmh@aybabtu.com>
39509
39510 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
39511 when pointers are 32-bit (but still do set it to one when they are
39512 64-bit).
39513
39514 2008-01-15 Robert Millan <rmh@aybabtu.com>
39515
39516 * include/grub/ieee1275/ieee1275.h
39517 (grub_ieee1275_get_integer_property): New function prototype.
39518
39519 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
39520 (grub_ieee1275_get_integer_property): New function. Wraps around
39521 grub_ieee1275_get_property() to handle endianness.
39522
39523 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
39524 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
39525 where appropriate.
39526 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
39527 (grub_map): Likewise.
39528 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
39529
39530 2008-01-15 Bean <bean123ch@gmail.com>
39531
39532 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
39533 (grub_script_execute_cmdline): Reset grub_errno.
39534
39535 * normal/main.c (read_config_file): Reset grub_errno.
39536
39537 * normal/parse.y (script_init): New.
39538 (script): Move function and menuentry here.
39539 (delimiter): New.
39540 (command): Add delimiter at the end of command.
39541 (commands): Adjust to match the new command.
39542 (commandblock): Remove grub_script_lexer_record_start.
39543 (menuentry): Add grub_script_lexer_record_start, use the new commands.
39544 (if): Use the new commands.
39545
39546 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
39547
39548 2008-01-15 Robert Millan <rmh@aybabtu.com>
39549
39550 * normal/menu.c (run_menu): Move timeout message from here ...
39551 (print_timeout): ... to here.
39552 (run_menu): Use print_timeout() once during initial draw to print
39553 the whole message, and again in every clock tick to update only
39554 the number of seconds.
39555
39556 2008-01-15 Robert Millan <rmh@aybabtu.com>
39557
39558 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
39559 actual size of `available' from grub_ieee1275_get_property(), and
39560 restrict parsing to that bound.
39561
39562 2008-01-15 Christian Franke <franke@computer.org>
39563
39564 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
39565 (argp_program_version): Remove variable.
39566 (argp_program_bug_address): Likewise.
39567 (options): Convert from struct argp_option to struct option.
39568 (struct arguments): Remove.
39569 (parse_opt): Remove.
39570 (usage): New function.
39571 (main): Replace struct args members by simple variables.
39572 Replace argp_parse() by getopt_long().
39573 Add switch to evaluate options.
39574 Add missing "(...)" around root_dev in prefix string.
39575
39576 2008-01-14 Robert Millan <rmh@aybabtu.com>
39577
39578 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
39579 for grub_ieee1275_exit(), in order to improve portability.
39580
39581 2008-01-14 Robert Millan <rmh@aybabtu.com>
39582
39583 * util/grub.d/10_linux.in (prefix): Define.
39584 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
39585
39586 2008-01-13 Pavel Roskin <proski@gnu.org>
39587
39588 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
39589 grub_errno if no errors have been detected.
39590
39591 2008-01-12 Robert Millan <rmh@aybabtu.com>
39592
39593 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
39594 (grub_util_get_dev_abstraction): New function prototype.
39595
39596 * util/getroot.c: Include `<grub/util/getroot.h>'
39597 (grub_util_get_grub_dev): Move detection of abstraction type to ...
39598 (grub_util_get_dev_abstraction): ... here (new function).
39599
39600 * util/grub-probe.c: Convert PRINT_* to an enum. Add
39601 `PRINT_ABSTRACTION'.
39602 (probe): Probe for abstraction type when requested.
39603 (main): Understand `--target=abstraction'.
39604
39605 * util/i386/efi/grub-install.in: Add abstraction module to core
39606 image when it is found to be necessary.
39607 * util/i386/pc/grub-install.in: Likewise.
39608 * util/powerpc/ieee1275/grub-install.in: Likewise.
39609
39610 * util/update-grub_lib.in (font_path): Return system path without
39611 converting to GRUB path.
39612 * util/update-grub.in: Convert system path returned by font_path()
39613 to a GRUB path. Use `grub-probe -t abstraction' to determine what
39614 abstraction module is needed for loading fonts (if any). Export
39615 that as `GRUB_PRELOAD_MODULES'.
39616 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
39617 insmod commands).
39618
39619 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
39620
39621 Remove some unused code from reiserfs.
39622
39623 * fs/reiserfs.c (struct grub_reiserfs_key)
39624 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
39625 (struct grub_reiserfs_node_body): Removed.
39626 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39627 Likewise.
39628 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39629 Likewise.
39630 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39631 Likewise.
39632 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39633 Likewise.
39634 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39635 Likewise.
39636 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
39637 Likewise.
39638 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39639 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39640 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39641
39642 2008-01-10 Robert Millan <rmh@aybabtu.com>
39643
39644 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
39645 Determines if a file is garbage left by packaging systems, etc.
39646 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
39647 for processing /etc/grub.d scripts.
39648 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
39649 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
39650 as a condition for processing Linux images.
39651
39652 2008-01-10 Pavel Roskin <proski@gnu.org>
39653
39654 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
39655 to compile reiserfs.c on PowerPC.
39656
39657 2008-01-10 Robert Millan <rmh@aybabtu.com>
39658
39659 * kern/device.c (grub_device_iterate): Do not abort device iteration
39660 when one of the devices cannot be opened.
39661 * kern/disk.c (grub_disk_open): Do not account previous failures of
39662 unrelated functions when grub_errno is checked for.
39663
39664 2008-01-08 Robert Millan <rmh@aybabtu.com>
39665
39666 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
39667 `! grub_linux_is_bzimage', change order of address comparison to make
39668 it more intuitive, and improve "too big zImage" error message.
39669
39670 2008-01-08 Robert Millan <rmh@aybabtu.com>
39671
39672 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
39673 `$(update-grub_DATA)'.
39674 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
39675 targets.
39676
39677 2008-01-07 Robert Millan <rmh@aybabtu.com>
39678
39679 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
39680 which instruction is modified by grub-setup during installation
39681 (since it wasn't obvious by only looking at this file).
39682
39683 2008-01-07 Robert Millan <rmh@aybabtu.com>
39684
39685 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
39686 listing actual TODO items.
39687
39688 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39689
39690 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
39691 correctly.
39692 (grub_reiserfs_get_key_offset): Likewise.
39693 (grub_reiserfs_set_key_offset): Likewise.
39694 (grub_reiserfs_set_key_type): Likewise.
39695 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
39696
39697 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
39698 better to remove the bitfield version completely.
39699
39700 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39701
39702 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
39703 allocated from the heap, due to the fshelp implementation.
39704 (grub_reiserfs_dir): Free NODE, due to the same reason.
39705
39706 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39707
39708 Mostly from Vincent Pelletier:
39709
39710 * fs/reiserfs.c: New file.
39711
39712 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
39713 (reiserfs_mod_SOURCES): New variable.
39714 (reiserfs_mod_CFLAGS): Likewise.
39715 (reiserfs_mod_LDFLAGS): Likewise.
39716
39717 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
39718 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
39719 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
39720 normal/color.c.
39721
39722 2008-01-06 Robert Millan <rmh@aybabtu.com>
39723
39724 * normal/color.c: Remove `<grub/env.h>'.
39725
39726 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
39727
39728 * include/grub/normal.h: Include <grub/env.h>.
39729
39730 2008-01-05 Robert Millan <rmh@aybabtu.com>
39731
39732 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
39733 usage example with `(hd0,1)'.
39734 Reported by Samuel Thibault.
39735
39736 2008-01-05 Robert Millan <rmh@aybabtu.com>
39737
39738 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
39739 (grub_linux_boot_zimage): Rename to ...
39740 (grub_linux_boot): ... this.
39741 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
39742 (grub_linux_boot_zimage): Conditionalize zImage copy.
39743
39744 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
39745 (grub_linux_boot_bzimage): Remove prototype.
39746 (grub_linux_boot_zimage): Rename to ...
39747 (grub_linux_boot): ... this.
39748
39749 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
39750 (grub_linux_boot): Remove function.
39751
39752 2008-01-05 Robert Millan <rmh@aybabtu.com>
39753
39754 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
39755 (grub_env_write_color_highlight): Likewise.
39756 (grub_wait_after_message): Likewise.
39757
39758 * normal/color.c: New file.
39759
39760 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39761 (normal_mod_DEPENDENCIES): Likewise.
39762
39763 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39764 (normal_mod_DEPENDENCIES): Likewise.
39765
39766 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39767 (normal_mod_DEPENDENCIES): Likewise.
39768
39769 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39770 (normal_mod_DEPENDENCIES): Likewise.
39771
39772 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
39773 for waiting after a message is printed.
39774 * normal/main.c (read_config_file): Likewise.
39775 (grub_normal_init): Register grub_env_write_color_normal() and
39776 grub_env_write_color_highlight() hooks. Mark `color_normal' and
39777 `color_highlight' variables as global.
39778
39779 * normal/menu.c (grub_wait_after_message): New function.
39780 (grub_color_menu_normal): New variable. Replaces ...
39781 (GRUB_COLOR_MENU_NORMAL): ... this macro.
39782 (grub_color_menu_highlight): New variable. Replaces ...
39783 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
39784 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
39785 `GRUB_TERM_COLOR_STANDARD'.
39786 (print_message): Use `grub_setcolorstate' to reload colors. Rename
39787 `normal_code' and `highlight_code' to `old_color_normal' and
39788 `old_color_highlight', respectively.
39789 (grub_menu_init_page): Update colors when drawing the menu, based on
39790 `menu_color_normal' and `menu_color_highlight' variables.
39791 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
39792 a message is printed.
39793
39794 2008-01-05 Robert Millan <rmh@aybabtu.com>
39795
39796 * kern/env.c (grub_env_context_open): Propagate hooks for global
39797 variables to new context.
39798
39799 * kern/main.c (grub_set_root_dev): Export `root' variable.
39800
39801 2008-01-05 Robert Millan <rmh@aybabtu.com>
39802
39803 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
39804 discs unconditionally, since udev and others have options to provide
39805 them.
39806
39807 2008-01-05 Robert Millan <rmh@aybabtu.com>
39808
39809 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
39810
39811 2008-01-04 Christian Franke <franke@computer.org>
39812
39813 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
39814 of eisa_mmap.
39815
39816 2008-01-03 Pavel Roskin <proski@gnu.org>
39817
39818 * kern/i386/linuxbios/init.c: Put "void" to all function
39819 declarations with no arguments.
39820 * kern/powerpc/ieee1275/init.c: Likewise.
39821 * term/i386/pc/at_keyboard.c: Likewise.
39822 * term/i386/pc/vga_text.c: Likewise.
39823 * util/grub-mkdevicemap.c: Likewise.
39824
39825 2008-01-02 Robert Millan <rmh@aybabtu.com>
39826
39827 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
39828 message when loaded image is out of bounds.
39829 (grub_multiboot_load_elf64): Likewise.
39830
39831 2008-01-02 Pavel Roskin <proski@gnu.org>
39832
39833 * util/grub.d/10_linux.in: Try version without ".old" when
39834 looking for initrd. It's better to use initrd from the newer
39835 kernel of the same version than no initrd at all.
39836
39837 2008-01-01 Robert Millan <rmh@aybabtu.com>
39838
39839 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
39840
39841 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
39842
39843 * include/grub/video.h: Added grub_video_unmap_color and
39844 grub_video_get_active_render_target.
39845 (grub_video_adapter): Added unmap_color and get_active_render_target.
39846
39847 * video/video.c: Added grub_video_unmap_color and
39848 grub_video_get_active_render_target.
39849 (grub_video_get_info): Changed method to accept NULL pointer as an
39850 argument to allow detection of active video adapter.
39851
39852 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
39853 grub_video_vbe_unmap_color_int.
39854 Added grub_video_vbe_unmap_color and
39855 grub_video_vbe_get_active_render_target.
39856 (grub_video_vbe_adapter): Added unmap_color and
39857 get_active_render_target.
39858
39859 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
39860 with grub_video_vbe_unmap_color_int.
39861
39862 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
39863 (DEFAULT_NORMAL_COLOR): Likewise.
39864 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
39865 (DEFAULT_FG_COLOR): Removed.
39866 (DEFAULT_BG_COLOR): Likewise.
39867 (DEFAULT_CURSOR_COLOR): Changed value.
39868 (grub_virtual_screen): Added standard_color_setting,
39869 normal_color_setting, highlight_color_setting and term_color.
39870 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
39871 (bitmap_width): Added.
39872 (bitmap_height): Likewise.
39873 (bitmap): Likewise.
39874 (set_term_color): Likewise.
39875 (grub_virtual_screen_setup): Changed to use new terminal coloring
39876 settings.
39877 (grub_gfxterm_init): Added init for bitmap.
39878 (grub_gfxterm_fini): Added destroy for bitmap.
39879 (redraw_screen_rect): Updated to use background bitmap and new
39880 terminal coloring.
39881 (scroll_up): Added optimization for case when there is no bitmap.
39882 (grub_gfxterm_cls): Fixed to use correct background color.
39883 (grub_virtual_screen_setcolorstate): Changed to use new terminal
39884 coloring.
39885 (grub_virtual_screen_setcolor): Likewise.
39886 (grub_virtual_screen_getcolor): Added.
39887 (grub_gfxterm_background_image_cmd): Likewise.
39888 (grub_video_term): Added setcolor and getcolor.
39889 (MOD_INIT): Added registration of background_image command.
39890 (MOD_TERM): Added unregistration for background_image command.
39891
39892 2007-12-30 Pavel Roskin <proski@gnu.org>
39893
39894 * loader/multiboot_loader.c: Fix multiboot command
39895 unregistration. Fix all typos in the word "multiboot".
39896
39897 2007-12-29 Pavel Roskin <proski@gnu.org>
39898
39899 * util/grub.d/10_linux.in: Refactor search for initrd. Add
39900 support for initrd names used in Fedora.
39901
39902 2007-12-26 Bean <bean123ch@gmail.com>
39903
39904 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
39905 (cpio_mod_SOURCES): New variable.
39906 (cpio_mod_CFLAGS): Likewise.
39907 (cpio_mod_LDFLAGS): Likewise.
39908
39909 * fs/cpio.c: New file.
39910
39911 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
39912
39913 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39914
39915 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39916
39917 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39918
39919 2007-12-25 Robert Millan <rmh@aybabtu.com>
39920
39921 * include/grub/term.h (struct grub_term): Add `getcolor' function.
39922 (grub_getcolor): New function.
39923
39924 * kern/term.c (grub_getcolor): New function.
39925 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
39926 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
39927 (print_entry): Set normal and highlight colors to
39928 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
39929 respectively, before printing and restore them to old
39930 values afterwards.
39931 (grub_menu_init_page): Likewise. Fill an additional colored space
39932 that would otherwise be left blank.
39933
39934 * term/efi/console.c (grub_console_getcolor): New function.
39935 (struct grub_console_term.getcolor): New variable.
39936 * term/i386/pc/console.c (grub_console_getcolor): New function.
39937 (struct grub_console_term.getcolor): New variable.
39938 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
39939 (struct grub_console_term.getcolor): New variable.
39940
39941 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
39942 (struct grub_console_term.setcolor): Remove variable.
39943 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
39944 (struct grub_console_term.setcolor): Remove variable.
39945 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
39946 (struct grub_console_term.setcolor): Remove variable.
39947 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
39948 (struct grub_console_term.setcolor): Remove variable.
39949
39950 2007-12-25 Robert Millan <rmh@aybabtu.com>
39951
39952 * configure.ac: Search for possible unifont.hex locations, and
39953 define UNIFONT_HEX if found.
39954
39955 * Makefile.in (UNIFONT_HEX): Define variable.
39956 (DATA): Rename to ...
39957 (PKGLIB): ... this. Update all users.
39958 (PKGDATA): New variable.
39959 (pkgdata_IMAGES): Rename to ...
39960 (pkglib_IMAGES): ... this. Update all users.
39961 (pkgdata_MODULES): Rename to ...
39962 (pkglib_MODULES): ... this. Update all users.
39963 (pkgdata_PROGRAMS): Rename to ...
39964 (pkglib_PROGRAMS): ... this. Update all users.
39965 (pkgdata_DATA): Rename to ...
39966 (pkglib_DATA): ... this. Update all users.
39967 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
39968 (unicode.pff, ascii.pff): New rules.
39969 (all-local): Add `$(PKGDATA)' dependency.
39970 (install-local): Process `$(PKGDATA)'.
39971
39972 * util/update-grub_lib.in (font_path): Search for *.pff files in
39973 a few more locations, including `${pkgdata}'.
39974
39975 2007-12-23 Robert Millan <rmh@aybabtu.com>
39976
39977 Patch from Bean <bean123ch@gmail.com>:
39978 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
39979 `size'.
39980
39981 2007-12-21 Bean <bean123ch@gmail.com>
39982
39983 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
39984 (ntfscomp_mod_SOURCES): New variable.
39985 (ntfscomp_mod_CFLAGS): Likewise.
39986 (ntfscomp_mod_LDFLAGS): Likewise.
39987
39988 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
39989 (grub_probe_SOURCES): Likewise.
39990 (grub_emu_SOURCES): Likewise.
39991
39992 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39993 (grub_emu_SOURCES): Likewise.
39994
39995 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39996 (grub_emu_SOURCES): Likewise.
39997
39998 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39999 (grub_emu_SOURCES): Likewise.
40000
40001 * fs/ntfs.c (grub_ntfscomp_func): New variable.
40002 (read_run_list): Renamed to grub_ntfs_read_run_list.
40003 (decomp_nextvcn): Moved to ntfscomp.c.
40004 (decomp_getch): Likewise.
40005 (decomp_get16): Likewise.
40006 (decomp_block): Likewise.
40007 (read_block): Likewise.
40008 (read_data): Partially moved to ntfscomp.c.
40009 (fixup): Change unsigned to grub_uint16_t.
40010 (read_mft): Change unsigned long to grub_uint32_t.
40011 (read_attr): Likewise.
40012 (read_data): Likewise.
40013 (read_run_data): Likewise.
40014 (read_run_list): Likewise.
40015 (read_mft): Likewise.
40016
40017 * fs/ntfscomp.c: New file.
40018
40019 * include/grub/ntfs.h: New file.
40020
40021 2007-12-16 Robert Millan <rmh@aybabtu.com>
40022
40023 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
40024 IDE disk check, since Linux is known to support 20 IDE disks.
40025 Reported by Colin Watson.
40026
40027 2007-12-15 Bean <bean123ch@gmail.com>
40028
40029 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
40030 (lnxboot_img_SOURCES): New variable.
40031 (lnxboot_img_ASFLAGS): Likewise.
40032 (lnxboot_img_LDFLAGS): Likewise.
40033
40034 * boot/i386/pc/lnxboot.S: New file.
40035
40036 2007-11-24 Pavel Roskin <proski@gnu.org>
40037
40038 * configure.ac: Test if '--build-id=none' is supported by the
40039 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
40040 objcopy to generate incorrect binary files (binutils
40041 2.17.50.0.18-1 as shipped by Fedora 8).
40042 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
40043 linking, so that build ID doesn't break the test.
40044
40045 2007-11-24 Pavel Roskin <proski@gnu.org>
40046
40047 * include/grub/i386/time.h: use "void" in the argument list
40048 of grub_cpu_idle().
40049 * include/grub/powerpc/time.h: Likewise.
40050 * include/grub/sparc64/time.h: Likewise.
40051
40052 2007-11-18 Christian Franke <franke@computer.org>
40053
40054 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
40055 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
40056 This fixes the problem that function keys did not work in grub-emu.
40057
40058 2007-11-18 Christian Franke <franke@computer.org>
40059
40060 * disk/host.c (grub_host_open): Remove attribute unused from
40061 name parameter. Add check for "host". This fixes the problem
40062 that grub-emu does not find partitions.
40063
40064 2007-11-18 Christian Franke <franke@computer.org>
40065
40066 * util/hostfs.c (is_dir): New function.
40067 (grub_hostfs_dir): Handle missing dirent.d_type case.
40068 (grub_hostfs_read): Add missing fseek().
40069 (grub_hostfs_label): Clear label pointer. This fixes a crash
40070 of grub-emu on "ls (host)".
40071
40072 2007-11-18 Christian Franke <franke@computer.org>
40073
40074 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
40075 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
40076 to 64 bit boundary by default.
40077
40078 2007-11-18 Bean <bean123ch@gmail.com>
40079
40080 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
40081 (hexdump_mod_SOURCES): New variable.
40082 (hexdump_mod_CFLAGS): Likewise.
40083 (hexdump_mod_LDFLAGS): Likewise.
40084
40085 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40086
40087 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40088
40089 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40090
40091 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40092
40093 * include/grub/hexdump.h: New file.
40094
40095 * commands/hexdump.c: New file.
40096
40097 2007-11-10 Robert Millan <rmh@aybabtu.com>
40098
40099 * commands/i386/pc/play.c (beep_off): Switch order of arguments
40100 in grub_outb() calls.
40101 (beep_on): Likewise.
40102
40103 2007-11-10 Christian Franke <franke@computer.org>
40104
40105 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
40106 (grub_menu_run): Likewise.
40107
40108 2007-11-10 Robert Millan <rmh@aybabtu.com>
40109
40110 * include/grub/i386/efi/machine.h: New file.
40111 * include/grub/i386/linuxbios/machine.h: Likewise.
40112 * include/grub/i386/pc/machine.h: Likewise.
40113 * include/grub/powerpc/ieee1275/machine.h: Likewise.
40114 * include/grub/sparc64/ieee1275/machine.h: Likewise.
40115
40116 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
40117 (serial_hw_io_addr): New variable.
40118 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
40119 instead of `(unsigned short *) 0x400'.
40120
40121 2007-11-10 Bean <bean123ch@gmail.com>
40122
40123 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
40124
40125 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40126
40127 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
40128 (vga_mod_SOURCES): Added.
40129 (vga_mod_CFLAGS): Likewise.
40130 (vga_mod_LDFLAGS): Likewise.
40131
40132 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
40133 grub_outb() calls.
40134 (set_map_mask): Likewise.
40135 (set_read_map): Likewise.
40136 (set_read_address): Likewise.
40137 (vga_font): Removed variable.
40138 (get_vga_glyph): Removed function.
40139 (invalidate_char): Likewise.
40140 (write_char): Changed to use grub_font_get_glyph() for font
40141 information.
40142 (grub_vga_putchar): Likewise.
40143 (grub_vga_getcharwidth): Likewise.
40144
40145 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40146
40147 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
40148 flags.
40149 (pxeboot_img_LDFLAGS): Likewise.
40150 (diskboot_img_LDFLAGS): Likewise.
40151 (kernel_img_LDFLAGS): Likewise.
40152
40153 2007-11-06 Robert Millan <rmh@aybabtu.com>
40154
40155 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
40156 in grub_outb() calls.
40157 (serial_hw_init): Likewise.
40158
40159 2007-11-05 Robert Millan <rmh@aybabtu.com>
40160
40161 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
40162 spaces. Skip non-regular files.
40163
40164 2007-11-05 Robert Millan <rmh@aybabtu.com>
40165
40166 * kern/disk.c (grub_disk_firmware_fini)
40167 (grub_disk_firmware_is_tainted): New variables.
40168
40169 * include/grub/disk.h (grub_disk_firmware_fini)
40170 (grub_disk_firmware_is_tainted): Likewise.
40171
40172 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
40173 (grub_disk_biosdisk_fini): ... to here.
40174 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
40175 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
40176 is set. Register grub_disk_biosdisk_fini() in
40177 `grub_disk_firmware_fini'.
40178
40179 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
40180 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
40181 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
40182 to finish existing firmware disk interface.
40183
40184 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
40185 (ata_mod_SOURCES): New variable.
40186 (ata_mod_CFLAGS): Likewise.
40187 (ata_mod_LDFLAGS): Likewise.
40188
40189 2007-11-05 Robert Millan <rmh@aybabtu.com>
40190
40191 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
40192 (grub_ata_wait): Reimplement using grub_millisleep().
40193
40194 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
40195 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
40196
40197 2007-11-03 Marco Gerards <marco@gnu.org>
40198
40199 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
40200 (CRTC_ADDR_PORT): New macro.
40201 (CRTC_DATA_PORT): Likewise.
40202 (CRTC_CURSOR): Likewise.
40203 (CRTC_CURSOR_ADDR_HIGH): Likewise.
40204 (CRTC_CURSOR_ADDR_LOW): Likewise.
40205 (update_cursor): New function.
40206 (grub_console_real_putchar): Call `update_cursor'.
40207 (grub_console_gotoxy): Likewise.
40208 (grub_console_cls): Set the default color when clearing the
40209 screen.
40210 (grub_console_setcursor): Implemented.
40211
40212 2007-11-03 Marco Gerards <marco@gnu.org>
40213
40214 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
40215 become activate.
40216 (grub_ata_pio_write): Likewise.
40217
40218 (grub_atapi_identify): Wait after issuing an ATA command.
40219 (grub_atapi_packet): Likewise.
40220 (grub_ata_identify): Likewise.
40221 (grub_ata_readwrite): Likewise.
40222
40223 2007-11-03 Marco Gerards <marco@gnu.org>
40224
40225 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
40226 (grub_ata_pio_write): Likewise.
40227 (grub_ata_readwrite): Use `grub_error', instead of
40228 returning `grub_errno'.
40229
40230 2007-11-03 Marco Gerards <marco@gnu.org>
40231
40232 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
40233 grub_ata_pio_write once for every single sector, instead of for
40234 multiple sectors.
40235
40236 2007-10-31 Robert Millan <rmh@aybabtu.com>
40237
40238 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
40239
40240 * conf/i386-linuxbios.rmk: New file.
40241
40242 * kern/i386/pc/hardware.c: Likewise.
40243 * term/i386/pc/at_keyboard.c: Likewise.
40244 * term/i386/pc/vga_text.c: Likewise.
40245
40246 * include/grub/i386/linuxbios/boot.h: Likewise.
40247 * include/grub/i386/linuxbios/console.h: Likewise.
40248 * include/grub/i386/linuxbios/init.h: Likewise.
40249 * include/grub/i386/linuxbios/kernel.h: Likewise.
40250 * include/grub/i386/linuxbios/loader.h: Likewise.
40251 * include/grub/i386/linuxbios/memory.h: Likewise.
40252 * include/grub/i386/linuxbios/serial.h: Likewise.
40253 * include/grub/i386/linuxbios/time.h: Likewise.
40254
40255 * kern/i386/linuxbios/init.c: Likewise.
40256 * kern/i386/linuxbios/startup.S: Likewise.
40257 * kern/i386/linuxbios/table.c: Likewise.
40258
40259 2007-10-31 Marco Gerards <marco@gnu.org>
40260
40261 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
40262 (ata_mod_SOURCES): New variable.
40263 (ata_mod_CFLAGS): Likewise.
40264 (ata_mod_LDFLAGS): Likewise.
40265
40266 * disk/ata.c: New file.
40267
40268 * include/grub/disk.h (grub_disk_dev_id): Add
40269 `GRUB_DISK_DEV_ATA_ID'.
40270
40271 2007-10-31 Robert Millan <rmh@aybabtu.com>
40272
40273 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
40274 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
40275
40276 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
40277 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
40278
40279 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
40280 `<grub/types.h>'.
40281
40282 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
40283
40284 2007-10-27 Robert Millan <rmh@aybabtu.com>
40285
40286 * include/grub/types.h (ULONG_MAX): Define macro.
40287
40288 2007-10-22 Robert Millan <rmh@aybabtu.com>
40289
40290 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
40291 `"../realmode.S"'.
40292 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
40293
40294 2007-10-22 Robert Millan <rmh@aybabtu.com>
40295
40296 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
40297 (pkgdata_MODULES): Add `biosdisk.mod'.
40298 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
40299 variables.
40300
40301 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
40302 (grub_biosdisk_init): Replace with ...
40303 (GRUB_MOD_INIT(biosdisk)): ... this.
40304 (grub_biosdisk_fini): Replace with ...
40305 (GRUB_MOD_FINI(biosdisk)): ... this.
40306
40307 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
40308 (grub_machine_init): Remove call to grub_biosdisk_init().
40309 (grub_machine_fini): Remove call to grub_machine_fini().
40310
40311 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
40312
40313 2007-10-22 Robert Millan <rmh@aybabtu.com>
40314
40315 * include/grub/time.h: New file.
40316 * include/grub/i386/time.h: Likewise.
40317 * include/grub/powerpc/time.h: Likewise.
40318 * include/grub/sparc64/time.h: Likewise.
40319
40320 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
40321 instances to ...
40322 (KERNEL_MACHINE_TIME_HEADER): ... this.
40323 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40324 instances to ...
40325 (KERNEL_MACHINE_TIME_HEADER): ... this.
40326 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40327 instances to ...
40328 (KERNEL_MACHINE_TIME_HEADER): ... this.
40329
40330 * kern/i386/efi/init.c: Include `<grub/time.h>'.
40331 (grub_millisleep): New function.
40332 * kern/i386/pc/init.c: Include `<grub/time.h>'.
40333 (grub_millisleep): New function.
40334 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
40335 Remove `grub/machine/time.h' include.
40336 (grub_millisleep): New function.
40337 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
40338 Remove `grub/machine/time.h' include.
40339 (grub_millisleep): New function.
40340
40341 * include/grub/misc.h (grub_div_roundup): New function.
40342
40343 * kern/misc.c: Include `<grub/time.h>'.
40344 (grub_millisleep_generic): New function.
40345
40346 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
40347 Add `time.h'.
40348 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
40349 Add `time.h'.
40350 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
40351 `machine/time.h'. Add `time.h'.
40352 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40353
40354 2007-10-21 Robert Millan <rmh@aybabtu.com>
40355
40356 * include/grub/misc.h (grub_max): New function.
40357
40358 2007-10-21 Robert Millan <rmh@aybabtu.com>
40359
40360 * util/misc.c (grub_util_info): Call fflush() before returning.
40361
40362 2007-10-20 Robert Millan <rmh@aybabtu.com>
40363
40364 * genmk.rb (Image): Copy `extra_flags' from here ...
40365 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
40366
40367 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
40368 to `argc' and `args' arguments.
40369
40370 2007-10-17 Robert Millan <rmh@aybabtu.com>
40371
40372 * kern/i386/loader.S: New file.
40373
40374 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
40375 * kern/i386/loader.S (grub_linux_prot_size)... to here.
40376 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
40377 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
40378 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
40379 * kern/i386/loader.S (grub_linux_real_addr)... to here.
40380 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
40381 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
40382 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
40383 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
40384 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
40385 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
40386 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
40387 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
40388
40389 * kern/i386/realmode.S: New file.
40390
40391 * kern/i386/pc/startup.S (protstack): Moved from here ...
40392 * kern/i386/realmode.S (protstack)... to here.
40393 * kern/i386/pc/startup.S (gdt): Moved from here ...
40394 * kern/i386/realmode.S (gdt)... to here.
40395 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
40396 * kern/i386/realmode.S (prot_to_real)... to here.
40397
40398 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
40399 `kern/i386/realmode.S'.
40400
40401 2007-10-17 Robert Millan <rmh@aybabtu.com>
40402
40403 * include/grub/i386/loader.h: New file.
40404
40405 * include/grub/i386/pc/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): Moved from here ...
40410 * include/grub/i386/loader.h (grub_linux_prot_size)
40411 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40412 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40413 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40414 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
40415
40416 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
40417
40418 2007-10-15 Robert Millan <rmh@aybabtu.com>
40419
40420 * normal/misc.c (grub_normal_print_device_info): Do not probe for
40421 filesystem when dev->disk is unset.
40422 Do probe for filesystem even when dev->disk->has_partitions is set.
40423 In case a filesystem is found, always report it.
40424 In case it isn't, if dev->disk->has_partitions is set, report that
40425 a partition table was found instead of reporting that no filesystem
40426 could be identified.
40427
40428 2007-10-12 Robert Millan <rmh@aybabtu.com>
40429
40430 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
40431 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
40432
40433 * include/grub/types.h (grub_host_to_target16): New macro.
40434 (grub_host_to_target32): Likewise.
40435 (grub_host_to_target64): Likewise.
40436 (grub_target_to_host16): Likewise.
40437 (grub_target_to_host32): Likewise.
40438 (grub_target_to_host64): Likewise.
40439
40440 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
40441 Renamed from to ...
40442 (GRUB_MOD_ALIGN): ...this. Update all users.
40443
40444 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
40445 grub_host_to_target32.
40446 Replace grub_be_to_cpu32 with grub_target_to_host32.
40447 (load_modules): Likewise.
40448 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
40449 Replace grub_be_to_cpu32 with grub_target_to_host32.
40450 Replace grub_cpu_to_be16 with grub_host_to_target16.
40451 Replace grub_cpu_to_be32 grub_host_to_target32.
40452
40453 2007-10-12 Robert Millan <rmh@aybabtu.com>
40454
40455 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
40456 * util/elf/grub-mkimage.c: ... here.
40457
40458 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
40459 `util/powerpc/ieee1275/grub-mkimage.c'.
40460
40461 2007-10-07 Robert Millan <rmh@aybabtu.com>
40462
40463 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
40464 and make it easier to figure out.
40465 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
40466 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
40467 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
40468 leave us with less than HEAP_MIN_SIZE total heap.
40469 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
40470
40471 2007-10-03 Robert Millan <rmh@aybabtu.com>
40472
40473 * include/grub/i386/io.h: New file.
40474 * commands/i386/pc/play.c (inb): Removed.
40475 (outb): Removed.
40476 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40477 with grub_outb().
40478 * term/i386/pc/serial.c (inb): Removed.
40479 (outb): Removed.
40480 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40481 with grub_outb().
40482 * term/i386/pc/vga.c (inb): Removed.
40483 (outb): Removed.
40484 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40485 with grub_outb().
40486
40487 2007-10-02 Robert Millan <rmh@aybabtu.com>
40488
40489 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
40490 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40491 Reported by Marcin Kurek.
40492
40493 2007-09-07 Robert Millan <rmh@aybabtu.com>
40494
40495 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
40496 SmartFirmware version updates (as released by Sven Luther), and avoid
40497 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
40498 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
40499 known broken.
40500
40501 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40502
40503 From Hitoshi Ozeki:
40504 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
40505 when merging two regions.
40506
40507 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40508
40509 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
40510 * normal/completion.c (grub_normal_do_completion): Likewise.
40511 Reported by Hitoshi Ozeki.
40512
40513 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40514
40515 Do not use devices at boot in chainloading.
40516
40517 * loader/i386/pc/chainloader.c (boot_drive): New variable.
40518 (boot_part_addr): Likewise.
40519 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
40520 with BOOT_DRIVE and BOOT_PART_ADDR.
40521 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
40522 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
40523
40524 2007-08-29 Robert Millan <rmh@aybabtu.com>
40525
40526 Patch from Simon Peter <dn.tlp@gmx.net>:
40527 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
40528 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
40529 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
40530 util/i386/pc/grub-setup.c_DEPENDENCIES.
40531 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
40532 util/grub-probe.c_DEPENDENCIES.
40533 * conf/powerpc-ieee1275.rmk: Likewise.
40534
40535 2007-08-28 Robert Millan <rmh@aybabtu.com>
40536
40537 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
40538 to tell grub-mkdevicemap how to name devices.
40539 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
40540 feature).
40541
40542 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
40543 util/i386/get_disk_name.c.
40544 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
40545 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
40546 util/ieee1275/get_disk_name.c.
40547
40548 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
40549
40550 * DISTLIST: Add util/i386/get_disk_name.c and
40551 util/ieee1275/get_disk_name.c.
40552
40553 * util/grub-mkdevicemap.c: Replace device naming logic with
40554 grub_util_get_disk_name() calls.
40555
40556 2007-08-20 Robert Millan <rmh@aybabtu.com>
40557
40558 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
40559 (so that it works for both plural and singular quantities).
40560
40561 2007-08-05 Robert Millan <rmh@aybabtu.com>
40562
40563 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
40564 so that [xz] isn't taken into account when determining order.
40565
40566 2007-08-02 Marco Gerards <marco@gnu.org>
40567
40568 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
40569 `include/multiboot2.h', `include/grub/elfload.h',
40570 `include/multiboot.h', `include/grub/multiboot.h',
40571 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
40572 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
40573 `kern/elf.c', `loader/multiboot_loader.c',
40574 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
40575 `loader/i386/pc/multiboot2.c',
40576 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
40577 `util/i386/pc/grub-mkrescue.in'. Remove
40578 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
40579 `include/grub/i386/pc/util/biosdisk.h' and
40580 `include/grub/powerpc/ieee1275/multiboot.h'.
40581
40582 2007-08-02 Bean <bean123ch@gmail.com>
40583
40584 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
40585 (ntfs_mod_SOURCES): New variable.
40586 (ntfs_mod_CFLAGS): Likewise.
40587 (ntfs_mod_LDFLAGS): Likewise.
40588
40589 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
40590 (grub_probe_SOURCES): Likewise.
40591 (grub_emu_SOURCES): Likewise.
40592
40593 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40594 (grub_emu_SOURCES): Likewise.
40595
40596 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40597 (grub_emu_SOURCES): Likewise.
40598
40599 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
40600
40601 * fs/ntfs.c: New file.
40602
40603 2007-08-02 Bean <bean123ch@gmail.com>
40604
40605 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
40606
40607 * file.h (grub_file): Likewise.
40608
40609 * fshelp.h (grub_fshelp_read_file): Likewise.
40610
40611 * util/i386/pc/grub-setup.c (setup): Likewise.
40612 (save_first_sector): Likewise.
40613 (save_blocklists): Likewise.
40614
40615 * fs/affs.c (grub_affs_read_file): Likewise.
40616
40617 * fs/ext2.c (grub_ext2_read_file): Likewise.
40618
40619 * fs/fat.c (grub_fat_read_data): Likewise.
40620
40621 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
40622
40623 * fs/hfs.c (grub_hfs_read_file): Likewise.
40624
40625 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
40626
40627 * fs/jfs.c (grub_jfs_read_file): Likewise.
40628
40629 * fs/minix.c (grub_minix_read_file): Likewise.
40630
40631 * fs/sfs.c (grub_sfs_read_file): Likewise.
40632
40633 * fs/ufs.c (grub_ufs_read_file): Likewise.
40634
40635 * fs/xfs.c (grub_xfs_read_file): Likewise.
40636
40637 * command/blocklist.c (read_blocklist): Likewise.
40638 (print_blocklist): Likewise.
40639
40640 2007-08-02 Marco Gerards <marco@gnu.org>
40641
40642 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
40643 `util/hostfs.c'.
40644
40645 * disk/host.c: New file.
40646
40647 * util/hostfs.c: Likewise.
40648
40649 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
40650 return `GRUB_ERR_BAD_FS'.
40651 * fs/sfs.c (grub_sfs_mount): Likewise.
40652 * fs/xfs.c (grub_xfs_mount): Likewise.
40653
40654 * include/grub/disk.h (enum grub_disk_dev_id): Add
40655 `GRUB_DISK_DEVICE_HOST_ID'.
40656
40657 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
40658
40659 2007-07-24 Jerone Young <jerone@gmail.com>
40660
40661 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
40662 modules for compilation.
40663 * conf/powerpc-ieee1275.rmk: Likewise.
40664
40665 * include/multiboot.h: Move multiboot definitions to one file. Rename
40666 many definitions to not get grub specific.
40667 * include/multiboot2.h: Create header with multiboot 2 definitions.
40668 * include/grub/multiboot.h: Header for grub specific function
40669 prototypes and definitions.
40670 * include/grub/multiboot2.h: Likewise.
40671 * include/grub/multiboot_loader.h: Likewise.
40672 * include/grub/i386/pc/multiboot.h: Removed.
40673 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
40674
40675 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
40676 and 2 to allow for one multiboot and module commands.
40677 * loader/multiboot2.c: Add multiboot2 functionality.
40678 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
40679 and definition names.
40680 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
40681 2 functions.
40682 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
40683 ieee1275 specific multiboot2 code.
40684
40685 * kern/i386/pc/startup.S: Change headers and definition names for
40686 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
40687
40688 2007-07-22 Robert Millan <rmh@aybabtu.com>
40689
40690 * geninitheader.sh: Process file specified in first parameter rather
40691 than hardcoding grub_modules_init.lst.
40692 * geninit.sh: Likewise. Also, construct header name dynamically rather
40693 than hardcoding grub_modules_init.h.
40694
40695 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
40696 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
40697 grub_probe_init.[ch] and grub_setup_init.[ch].
40698
40699 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
40700 grub_modules_init.h with grub_emu_init.h.
40701 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
40702 grub_probe_init.[ch] files.
40703 * conf/i386-efi.rmk: Likewise.
40704 * conf/i386-pc.rmk: Likewise.
40705 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
40706 grub_setup_init.[ch] files.
40707
40708 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
40709 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
40710 to initialize modules rather than a list of hardcoded functions.
40711 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
40712 grub_init_all() to initialize modules rather than a list of hardcoded
40713 functions.
40714
40715 2007-07-22 Robert Millan <rmh@aybabtu.com>
40716
40717 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
40718 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
40719
40720 2007-07-22 Robert Millan <rmh@aybabtu.com>
40721
40722 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
40723 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
40724 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
40725 flag when running on SmartFirmware.
40726 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
40727 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
40728 was set.
40729
40730 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40731 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
40732 rather than decreasing it.
40733
40734 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
40735 there's not enough space to do it, fail in the same way as when it
40736 can't be done because there are no partitions.
40737
40738 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
40739 when nvsetenv failed.
40740
40741 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40742
40743 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
40744 because this rule is automatically generated.
40745 (grub-mkrescue): Removed for the same reason as above.
40746
40747 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40748
40749 Migrate to GNU General Public License Version 3.
40750
40751 * COPYING: Replaced with the plain text version of GPLv3.
40752
40753 * config.guess: Updated from gnulib.
40754 * config.sub: Likewise.
40755
40756 * geninit.sh: Output a GPLv3 copyright notice.
40757 * geninitheader.sh: Likewise.
40758 * genmodsrc.sh: Likewise.
40759 * gensymlist.sh.in: Likewise.
40760
40761 * boot/i386/pc/boot.S: Upgraded to GPLv3.
40762 * boot/i386/pc/diskboot.S: Likewise.
40763 * boot/i386/pc/pxeboot.S: Likewise.
40764 * commands/blocklist.c: Likewise.
40765 * commands/boot.c: Likewise.
40766 * commands/cat.c: Likewise.
40767 * commands/cmp.c: Likewise.
40768 * commands/configfile.c: Likewise.
40769 * commands/echo.c: Likewise.
40770 * commands/help.c: Likewise.
40771 * commands/ls.c: Likewise.
40772 * commands/search.c: Likewise.
40773 * commands/terminal.c: Likewise.
40774 * commands/test.c: Likewise.
40775 * commands/videotest.c: Likewise.
40776 * commands/i386/cpuid.c: Likewise.
40777 * commands/i386/pc/halt.c: Likewise.
40778 * commands/i386/pc/play.c: Likewise.
40779 * commands/i386/pc/reboot.c: Likewise.
40780 * commands/i386/pc/vbeinfo.c: Likewise.
40781 * commands/i386/pc/vbetest.c: Likewise.
40782 * commands/ieee1275/halt.c: Likewise.
40783 * commands/ieee1275/reboot.c: Likewise.
40784 * commands/ieee1275/suspend.c: Likewise.
40785 * disk/loopback.c: Likewise.
40786 * disk/lvm.c: Likewise.
40787 * disk/raid.c: Likewise.
40788 * disk/efi/efidisk.c: Likewise.
40789 * disk/i386/pc/biosdisk.c: Likewise.
40790 * disk/ieee1275/ofdisk.c: Likewise.
40791 * font/manager.c: Likewise.
40792 * fs/affs.c: Likewise.
40793 * fs/ext2.c: Likewise.
40794 * fs/fat.c: Likewise.
40795 * fs/fshelp.c: Likewise.
40796 * fs/hfs.c: Likewise.
40797 * fs/hfsplus.c: Likewise.
40798 * fs/iso9660.c: Likewise.
40799 * fs/jfs.c: Likewise.
40800 * fs/minix.c: Likewise.
40801 * fs/sfs.c: Likewise.
40802 * fs/ufs.c: Likewise.
40803 * fs/xfs.c: Likewise.
40804 * hello/hello.c: Likewise.
40805 * include/grub/acorn_filecore.h: Likewise.
40806 * include/grub/arg.h: Likewise.
40807 * include/grub/bitmap.h: Likewise.
40808 * include/grub/boot.h: Likewise.
40809 * include/grub/cache.h: Likewise.
40810 * include/grub/device.h: Likewise.
40811 * include/grub/disk.h: Likewise.
40812 * include/grub/dl.h: Likewise.
40813 * include/grub/elfload.h: Likewise.
40814 * include/grub/env.h: Likewise.
40815 * include/grub/err.h: Likewise.
40816 * include/grub/file.h: Likewise.
40817 * include/grub/font.h: Likewise.
40818 * include/grub/fs.h: Likewise.
40819 * include/grub/fshelp.h: Likewise.
40820 * include/grub/gzio.h: Likewise.
40821 * include/grub/hfs.h: Likewise.
40822 * include/grub/kernel.h: Likewise.
40823 * include/grub/loader.h: Likewise.
40824 * include/grub/lvm.h: Likewise.
40825 * include/grub/misc.h: Likewise.
40826 * include/grub/mm.h: Likewise.
40827 * include/grub/net.h: Likewise.
40828 * include/grub/normal.h: Likewise.
40829 * include/grub/parser.h: Likewise.
40830 * include/grub/partition.h: Likewise.
40831 * include/grub/pc_partition.h: Likewise.
40832 * include/grub/raid.h: Likewise.
40833 * include/grub/rescue.h: Likewise.
40834 * include/grub/script.h: Likewise.
40835 * include/grub/setjmp.h: Likewise.
40836 * include/grub/symbol.h: Likewise.
40837 * include/grub/term.h: Likewise.
40838 * include/grub/terminfo.h: Likewise.
40839 * include/grub/tparm.h: Likewise.
40840 * include/grub/types.h: Likewise.
40841 * include/grub/video.h: Likewise.
40842 * include/grub/efi/api.h: Likewise.
40843 * include/grub/efi/chainloader.h: Likewise.
40844 * include/grub/efi/console.h: Likewise.
40845 * include/grub/efi/console_control.h: Likewise.
40846 * include/grub/efi/disk.h: Likewise.
40847 * include/grub/efi/efi.h: Likewise.
40848 * include/grub/efi/pe32.h: Likewise.
40849 * include/grub/efi/time.h: Likewise.
40850 * include/grub/i386/linux.h: Likewise.
40851 * include/grub/i386/setjmp.h: Likewise.
40852 * include/grub/i386/types.h: Likewise.
40853 * include/grub/i386/efi/kernel.h: Likewise.
40854 * include/grub/i386/efi/loader.h: Likewise.
40855 * include/grub/i386/efi/time.h: Likewise.
40856 * include/grub/i386/pc/biosdisk.h: Likewise.
40857 * include/grub/i386/pc/boot.h: Likewise.
40858 * include/grub/i386/pc/chainloader.h: Likewise.
40859 * include/grub/i386/pc/console.h: Likewise.
40860 * include/grub/i386/pc/init.h: Likewise.
40861 * include/grub/i386/pc/kernel.h: Likewise.
40862 * include/grub/i386/pc/loader.h: Likewise.
40863 * include/grub/i386/pc/memory.h: Likewise.
40864 * include/grub/i386/pc/multiboot.h: Likewise.
40865 * include/grub/i386/pc/serial.h: Likewise.
40866 * include/grub/i386/pc/time.h: Likewise.
40867 * include/grub/i386/pc/vbe.h: Likewise.
40868 * include/grub/i386/pc/vbeblit.h: Likewise.
40869 * include/grub/i386/pc/vbefill.h: Likewise.
40870 * include/grub/i386/pc/vbeutil.h: Likewise.
40871 * include/grub/i386/pc/vga.h: Likewise.
40872 * include/grub/ieee1275/ieee1275.h: Likewise.
40873 * include/grub/ieee1275/ofdisk.h: Likewise.
40874 * include/grub/powerpc/libgcc.h: Likewise.
40875 * include/grub/powerpc/setjmp.h: Likewise.
40876 * include/grub/powerpc/types.h: Likewise.
40877 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
40878 * include/grub/powerpc/ieee1275/console.h: Likewise.
40879 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
40880 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
40881 * include/grub/powerpc/ieee1275/loader.h: Likewise.
40882 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
40883 * include/grub/powerpc/ieee1275/time.h: Likewise.
40884 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
40885 * include/grub/sparc64/libgcc.h: Likewise.
40886 * include/grub/sparc64/setjmp.h: Likewise.
40887 * include/grub/sparc64/types.h: Likewise.
40888 * include/grub/sparc64/ieee1275/console.h: Likewise.
40889 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
40890 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
40891 * include/grub/sparc64/ieee1275/time.h: Likewise.
40892 * include/grub/util/biosdisk.h: Likewise.
40893 * include/grub/util/getroot.h: Likewise.
40894 * include/grub/util/lvm.h: Likewise.
40895 * include/grub/util/misc.h: Likewise.
40896 * include/grub/util/raid.h: Likewise.
40897 * include/grub/util/resolve.h: Likewise.
40898 * io/gzio.c: Likewise.
40899 * kern/device.c: Likewise.
40900 * kern/disk.c: Likewise.
40901 * kern/dl.c: Likewise.
40902 * kern/elf.c: Likewise.
40903 * kern/env.c: Likewise.
40904 * kern/err.c: Likewise.
40905 * kern/file.c: Likewise.
40906 * kern/fs.c: Likewise.
40907 * kern/loader.c: Likewise.
40908 * kern/main.c: Likewise.
40909 * kern/misc.c: Likewise.
40910 * kern/mm.c: Likewise.
40911 * kern/parser.c: Likewise.
40912 * kern/partition.c: Likewise.
40913 * kern/rescue.c: Likewise.
40914 * kern/term.c: Likewise.
40915 * kern/efi/efi.c: Likewise.
40916 * kern/efi/init.c: Likewise.
40917 * kern/efi/mm.c: Likewise.
40918 * kern/i386/dl.c: Likewise.
40919 * kern/i386/efi/init.c: Likewise.
40920 * kern/i386/efi/startup.S: Likewise.
40921 * kern/i386/pc/init.c: Likewise.
40922 * kern/i386/pc/lzo1x.S: Likewise.
40923 * kern/i386/pc/startup.S: Likewise.
40924 * kern/ieee1275/ieee1275.c: Likewise.
40925 * kern/powerpc/cache.S: Likewise.
40926 * kern/powerpc/dl.c: Likewise.
40927 * kern/powerpc/ieee1275/cmain.c: Likewise.
40928 * kern/powerpc/ieee1275/crt0.S: Likewise.
40929 * kern/powerpc/ieee1275/init.c: Likewise.
40930 * kern/powerpc/ieee1275/openfw.c: Likewise.
40931 * kern/sparc64/cache.S: Likewise.
40932 * kern/sparc64/dl.c: Likewise.
40933 * kern/sparc64/ieee1275/init.c: Likewise.
40934 * kern/sparc64/ieee1275/openfw.c: Likewise.
40935 * loader/efi/chainloader.c: Likewise.
40936 * loader/efi/chainloader_normal.c: Likewise.
40937 * loader/i386/efi/linux.c: Likewise.
40938 * loader/i386/efi/linux_normal.c: Likewise.
40939 * loader/i386/pc/chainloader.c: Likewise.
40940 * loader/i386/pc/chainloader_normal.c: Likewise.
40941 * loader/i386/pc/linux.c: Likewise.
40942 * loader/i386/pc/linux_normal.c: Likewise.
40943 * loader/i386/pc/multiboot.c: Likewise.
40944 * loader/i386/pc/multiboot_normal.c: Likewise.
40945 * loader/powerpc/ieee1275/linux.c: Likewise.
40946 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40947 * normal/arg.c: Likewise.
40948 * normal/cmdline.c: Likewise.
40949 * normal/command.c: Likewise.
40950 * normal/completion.c: Likewise.
40951 * normal/execute.c: Likewise.
40952 * normal/function.c: Likewise.
40953 * normal/lexer.c: Likewise.
40954 * normal/main.c: Likewise.
40955 * normal/menu.c: Likewise.
40956 * normal/menu_entry.c: Likewise.
40957 * normal/misc.c: Likewise.
40958 * normal/parser.y: Likewise.
40959 * normal/script.c: Likewise.
40960 * normal/i386/setjmp.S: Likewise.
40961 * normal/powerpc/setjmp.S: Likewise.
40962 * normal/sparc64/setjmp.S: Likewise.
40963 * partmap/acorn.c: Likewise.
40964 * partmap/amiga.c: Likewise.
40965 * partmap/apple.c: Likewise.
40966 * partmap/gpt.c: Likewise.
40967 * partmap/pc.c: Likewise.
40968 * partmap/sun.c: Likewise.
40969 * term/gfxterm.c: Likewise.
40970 * term/terminfo.c: Likewise.
40971 * term/efi/console.c: Likewise.
40972 * term/i386/pc/console.c: Likewise.
40973 * term/i386/pc/serial.c: Likewise.
40974 * term/i386/pc/vesafb.c: Likewise.
40975 * term/i386/pc/vga.c: Likewise.
40976 * term/ieee1275/ofconsole.c: Likewise.
40977 * util/biosdisk.c: Likewise.
40978 * util/console.c: Likewise.
40979 * util/genmoddep.c: Likewise.
40980 * util/getroot.c: Likewise.
40981 * util/grub-emu.c: Likewise.
40982 * util/grub-mkdevicemap.c: Likewise.
40983 * util/grub-probe.c: Likewise.
40984 * util/lvm.c: Likewise.
40985 * util/misc.c: Likewise.
40986 * util/raid.c: Likewise.
40987 * util/resolve.c: Likewise.
40988 * util/update-grub.in: Likewise.
40989 * util/update-grub_lib.in: Likewise.
40990 * util/grub.d/00_header.in: Likewise.
40991 * util/grub.d/10_hurd.in: Likewise.
40992 * util/grub.d/10_linux.in: Likewise.
40993 * util/i386/efi/grub-install.in: Likewise.
40994 * util/i386/efi/grub-mkimage.c: Likewise.
40995 * util/i386/pc/grub-install.in: Likewise.
40996 * util/i386/pc/grub-mkimage.c: Likewise.
40997 * util/i386/pc/grub-mkrescue.in: Likewise.
40998 * util/i386/pc/grub-setup.c: Likewise.
40999 * util/i386/pc/misc.c: Likewise.
41000 * util/powerpc/ieee1275/grub-install.in: Likewise.
41001 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
41002 * util/powerpc/ieee1275/misc.c: Likewise.
41003 * video/bitmap.c: Likewise.
41004 * video/video.c: Likewise.
41005 * video/i386/pc/vbe.c: Likewise.
41006 * video/i386/pc/vbeblit.c: Likewise.
41007 * video/i386/pc/vbefill.c: Likewise.
41008 * video/i386/pc/vbeutil.c: Likewise.
41009 * video/readers/tga.c: Likewise.
41010
41011 2007-07-02 Robert Millan <rmh@aybabtu.com>
41012
41013 * conf/i386-efi.rmk: Replace obsolete reference to
41014 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
41015 with util/getroot.c.
41016 * conf/powerpc-ieee1275.rmk: Likewise.
41017 * conf/sparc64-ieee1275.rmk: Likewise.
41018
41019 * util/grub-emu.c (main): Fix unchecked pointer handling.
41020
41021 2007-07-02 Robert Millan <rmh@aybabtu.com>
41022
41023 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
41024 invocation to fail, in order to support partition-less media.
41025
41026 * util/i386/pc/grub-install.in: Likewise.
41027
41028 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
41029 which fs or partmap modules are needed (akin to its sister scripts).
41030
41031 Also use grub-probe to get rid of unportable /proc/mounts check.
41032
41033 Print the same informational message that the other scripts do, before
41034 exiting.
41035
41036 2007-06-23 Robert Millan <rmh@aybabtu.com>
41037
41038 * util/update-grub_lib.in (font_path): New function. Determine whether
41039 a font file can be found and, if so, echo the GRUB path to it.
41040
41041 * util/update-grub.in: Handle multiple terminals depending on user
41042 input, platform availability and font file presence. Propagate
41043 variables of our findings to /etc/grub.d/ children.
41044
41045 * util/grub.d/00_header.in: Handle multiple terminals, based on
41046 environment setup by update-grub.
41047
41048 2007-06-23 Robert Millan <rmh@aybabtu.com>
41049
41050 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
41051
41052 2007-06-21 Robert Millan <rmh@aybabtu.com>
41053
41054 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
41055 indicate end of data section in kernel image.
41056 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
41057 GRUB_KERNEL_MACHINE_DATA_END.
41058
41059 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
41060 space for it.
41061 * kern/i386/efi/startup.S: Likewise.
41062
41063 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
41064 during image generation. Implement --prefix option to override this
41065 patch.
41066 * util/i386/efi/grub-mkimage.c: Likewise.
41067
41068 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
41069 code to make path relative to its root into a separate function.
41070
41071 * util/i386/pc/grub-install.in: Use newly provided
41072 make_system_path_relative_to_its_root() to convert ${grubdir}, then
41073 pass the result to grub-install --prefix.
41074
41075 2007-06-13 Robert Millan <rmh@aybabtu.com>
41076
41077 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
41078 DEFAULT_DEVICE_MAP.
41079 * util/grub-emu.c: Use above definitions from misc.h instead of
41080 defining them.
41081 * util/grub-mkdevicemap.c: Likewise.
41082 * util/i386/pc/grub-setup.c: Likewise.
41083 * util/grub-probe.c: Likewise.
41084 (probe): Abort with grub_util_error() when either
41085 grub_guess_root_device or grub_util_get_grub_dev fails.
41086
41087 2007-06-12 Robert Millan <rmh@aybabtu.com>
41088
41089 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
41090 "pager" assignment.
41091 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
41092 "pcdata".
41093 * util/grub-probe.c (probe): Likewise for "drive_name".
41094
41095 2007-06-11 Robert Millan <rmh@aybabtu.com>
41096
41097 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
41098 not just the cdrom one.
41099
41100 2007-06-11 Robert Millan <rmh@aybabtu.com>
41101
41102 * util/i386/pc/grub-mkrescue.in: Add "set -e".
41103 Add --pkglibdir=DIR option to override pkglibdir.
41104 Mention --image-type=TYPE in help output.
41105 Fix --grub-mkimage (it was a no-op).
41106 Abort gracefully when no parameter is given.
41107
41108 2007-06-11 Robert Millan <rmh@aybabtu.com>
41109
41110 * util/i386/pc/grub-mkrescue.in: New file.
41111 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
41112 * Makefile.in: Handle bin_SCRIPTS.
41113
41114 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
41115
41116 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
41117 list of video modes.
41118
41119 2007-06-06 Robert Millan <rmh@aybabtu.com>
41120
41121 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
41122 file doesn't exist, or if it is in a filesystem grub can't read.
41123
41124 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
41125 not abort if GRUB_DRIVE could not be defined. Rearrange generated
41126 header comment to fit in 80 columns when the variables are resolved.
41127
41128 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
41129 could be identified by update-grub. Remove redundant check for
41130 unifont.pff existence (since convert_system_path_to_grub_path now
41131 handles that).
41132
41133 2007-06-04 Robert Millan <rmh@aybabtu.com>
41134
41135 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
41136
41137 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
41138
41139 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
41140
41141 2007-06-04 Robert Millan <rmh@aybabtu.com>
41142
41143 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
41144
41145 * include/grub/partition.h: Declare grub_apple_partition_map_init and
41146 grub_apple_partition_map_fini.
41147
41148 * util/biosdisk.c
41149 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
41150 to access >2 TiB disks).
41151
41152 Print disk->total_sectors with %llu instead of %lu, since this
41153 variable is always 64-bit (prevents wrong disk size from being displayed
41154 on either >2 TiB disk or big-endian CPU).
41155
41156 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
41157 into a generic case that supports all (sane) partition maps.
41158
41159 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
41160 breaks big-endian.
41161
41162 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
41163 and grub_apple_partition_map_fini() after that.
41164
41165 2007-06-01 Robert Millan <rmh@aybabtu.com>
41166
41167 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
41168
41169 * util/grub.d/00_header.in: Only enable gfxterm when
41170 convert_system_path_to_grub_path() succeeds.
41171
41172 2007-05-20 Robert Millan <rmh@aybabtu.com>
41173
41174 * util/update-grub_lib.in: New file.
41175 * DISTLIST: Add update-grub_lib.in.
41176 * conf/common.rmk: Generate update-grub_lib and install it in
41177 $(lib_DATA).
41178 * Makefile.in: Add install routine for $(lib_DATA).
41179
41180 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
41181 function provided by update-grub_lib to support arbitrary paths of
41182 unifont.pff.
41183 * util/update-grub.in: Use convert_system_path_to_grub_path() to
41184 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
41185
41186 2007-05-19 Robert Millan <rmh@aybabtu.com>
41187
41188 * commands/i386/cpuid.c: New module.
41189 * DISTLIST: Add it.
41190 * conf/i386-efi.rmk: Enable cpuid.mod.
41191 * conf/i386-pc.rmk: Likewise.
41192
41193 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41194
41195 * kern/disk.c (grub_disk_read): Check return value of
41196 grub_realloc().
41197
41198 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41199
41200 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
41201 arrays.
41202 * disk/raid.c (grub_raid_open): Likewise.
41203
41204 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41205
41206 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
41207 stack instead of on the heap.
41208
41209 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
41210 before doing a read on it.
41211
41212 * configure.ac: Only use -fno-stack-protector for the target
41213 environment.
41214
41215 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41216
41217 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
41218 __attribute_ ((unused)) to mode_type argument.
41219
41220 * util/getroot.c (grub_guess_root_device): Fix #endif.
41221
41222 * kern/misc.c (memcmp): Fix prototype.
41223
41224 * include/grub/partition.h [GRUB_UTIL]
41225 (grub_gpt_partition_map_init): Add prototype.
41226 (grub_gpt_partition_map_fini): Likewise.
41227
41228 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
41229 at the right place.
41230
41231 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
41232 (grub_fat_read_data): Likewise.
41233 (grub_fat_find_dir): Likewise.
41234
41235 * font/manager.c (find_glyph): Make table a const.
41236 (grub_font_get_glyph): Remove bitmap from if statement.
41237
41238 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
41239
41240 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
41241 code, first search for device in /dev/mapper, then in /dev.
41242 (grub_util_get_grub_dev): New function.
41243 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
41244 prototype.
41245 * util/grub-probe.c (probe): Remove check for RAID, call
41246 grub_util_get_grub_dev() instead of
41247 grub_util_biosdisk_get_grub_dev().
41248 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
41249 grub_util_biosdisk_get_grub_dev().
41250 * util/i386/pc/grub-setup.c (main): Likewise.
41251
41252 2007-05-16 Robert Millan <rmh@aybabtu.com>
41253
41254 * DISTLIST: Update for the latest changes.
41255 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
41256 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
41257 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
41258 grub/util/biosdisk.h.
41259 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
41260 grub/util/biosdisk.h.
41261
41262 2007-05-16 Robert Millan <rmh@aybabtu.com>
41263
41264 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
41265
41266 2007-05-16 Robert Millan <rmh@aybabtu.com>
41267
41268 * util/i386/efi/grub-install.in: New.
41269 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
41270 newly added grub-install.
41271 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
41272 include.
41273 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
41274 grub/util/biosdisk.h.
41275 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
41276 grub/util/biosdisk.h.
41277
41278 2007-05-16 Robert Millan <rmh@aybabtu.com>
41279
41280 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
41281 * include/grub/util/biosdisk.h: ... here.
41282 * util/i386/pc/biosdisk.c: Moved to ...
41283 * util/biosdisk.c: ... here.
41284 * util/i386/pc/getroot.c: Moved to ...
41285 * util/getroot.c: ... here.
41286 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
41287 * util/grub-mkdevicemap.c: ... here.
41288 * util/i386/pc/grub-probe.c: Moved to ...
41289 * util/grub-probe.c: ... here.
41290
41291 2007-05-15 Robert Millan <rmh@aybabtu.com>
41292
41293 * util/update-grub.in: Remove duplicated line in grub.cfg header
41294 message.
41295
41296 2007-05-13 Robert Millan <rmh@aybabtu.com>
41297
41298 * util/update-grub.in: Fix a few assumptions about the devices holding
41299 /, /boot and /boot/grub being the same.
41300 * util/grub.d/00_header.in: Likewise.
41301 * util/grub.d/10_hurd.in: Likewise.
41302 * util/grub.d/10_linux.in: Likewise.
41303
41304 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
41305 patterns. Use that to define the `.old' suffix as older than `'.
41306
41307 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
41308
41309 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
41310 the grub.cfg header message.
41311
41312 2007-05-11 Robert Millan <rmh@aybabtu.com>
41313
41314 * util/update-grub.in: Create device.map if it doesn't already exist,
41315 before attempting to run grub-probe.
41316 Check for grub-probe and grub-mkdevicemap with the same code
41317 grub-install is using.
41318 Remove test mode.
41319
41320 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
41321
41322 * Makefile.in: Add the datarootdir autoconf variable.
41323
41324 2007-05-09 Robert Millan <rmh@aybabtu.com>
41325
41326 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
41327 fail gracefully if dev->disk->partition == NULL.
41328
41329 2007-05-07 Robert Millan <rmh@aybabtu.com>
41330
41331 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
41332 determine partition map module.
41333 * util/i386/pc/grub-install.in: Use this feature to decide which
41334 partition module to load, instead of hardcoding pc and gpt.
41335
41336 2007-05-07 Robert Millan <rmh@aybabtu.com>
41337
41338 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
41339 source directory differs from build directory.
41340
41341 2007-05-05 Robert Millan <rmh@aybabtu.com>
41342
41343 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
41344 initialisation.
41345
41346 2007-05-05 Robert Millan <rmh@aybabtu.com>
41347
41348 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
41349
41350 2007-05-05 Robert Millan <rmh@aybabtu.com>
41351
41352 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
41353 command-line arguments via ${GRUB_CMDLINE_LINUX}.
41354
41355 2007-05-05 Robert Millan <rmh@aybabtu.com>
41356
41357 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
41358 (grub_probe_SOURCES): Likewise.
41359 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
41360 GPT and initialize dos_part and bsd_part accordingly.
41361 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
41362 install_bsd_part.
41363 (main): Activate gpt module for use during partition identification,
41364 and deactivate it afterwards.
41365 * util/i386/pc/grub-install.in: Add gpt module to core.img.
41366 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
41367 partition identification, and deactivate it afterwards.
41368
41369 2007-05-05 Robert Millan <rmh@aybabtu.com>
41370
41371 * term/i386/pc/console.c (grub_console_fini): Call
41372 grub_term_set_current() before grub_term_unregister().
41373
41374 2007-05-04 Robert Millan <rmh@aybabtu.com>
41375
41376 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
41377 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
41378 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
41379 and update-grub_DATA.
41380 * conf/common.rmk: Build and install update-grub components.
41381 * conf/common.mk: Regenerate.
41382 * util/update-grub.in: New. Core of update-grub.
41383 * util/grub.d/00_header.in: New. Generates grub.cfg header.
41384 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
41385 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
41386 * util/grub.d/README: New. Document grub.d directory layout.
41387
41388 2007-05-01 Robert Millan <rmh@aybabtu.com>
41389
41390 * util/grub-emu.c: Move initialization functions
41391 grub_util_biosdisk_init() and grub_init_all() before
41392 grub_util_biosdisk_get_grub_dev(), which relies on them.
41393
41394 2007-04-19 Robert Millan <rmh@aybabtu.com>
41395
41396 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
41397 it is used later.
41398
41399 2007-04-18 Jerone Young <jerone@gmail.com>
41400
41401 * kernel/elf.c: Add missing parenthesis for conditional statement
41402 stanza.
41403
41404 2007-04-10 Jerone Young <jerone@gmail.com>
41405
41406 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
41407 continue on and look for device node with real device name.
41408
41409 2007-04-10 Jerone Young <jerone@gmail.com>
41410
41411 * configure.ac: Add argument for autoconf to use transformation
41412 ability.
41413 * Makefile.in: Add autoconf package transformation code.
41414 * util/i386/pc/grub-install.in: Likewise.
41415 * util/powerpc/ieee1275/grub-install.in: Likewise.
41416
41417 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
41418
41419 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
41420 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
41421 (EXT2_REVISION): Likewise.
41422 (EXT2_INODE_SIZE): Likewise.
41423 (struct grub_ext2_block_group): Added a missing member
41424 "used_dirs".
41425 (grub_ext2_read_inode): Divide by the inode size in a superblock
41426 instead of 128 to obtain INODES_PER_BLOCK.
41427 Use the macro EXT2_INODE_SIZE instead of directly using
41428 SBLOCK->INODE_SIZE.
41429
41430 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
41431
41432 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
41433 superblock instead of the structure size to compute an
41434 offset. This fixes the problem that GRUB could not read a
41435 filesystem when inode size is different from 128-byte.
41436
41437 2007-03-05 Marco Gerards <marco@gnu.org>
41438
41439 * normal/main.c (read_config_file): When "menu" is not set, create
41440 an initial context.
41441
41442 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41443
41444 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
41445 (HEAP_LIMIT): New macro.
41446 (grub_claim_heap): Claim memory up to `heaplimit'.
41447
41448 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41449
41450 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
41451 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
41452 (_start): Likewise.
41453 (grub_arch_modules_addr): Return address after `_end'.
41454 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
41455 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
41456 (add_segments): Calculate `_end' from phdr size and location.
41457 (ALIGN_UP): Moved to ...
41458 * include/grub/misc.h: here.
41459 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
41460 New macro.
41461 (GRUB_IEEE1275_MODULE_BASE): Removed.
41462
41463 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41464
41465 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
41466 loop boundary.
41467
41468 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41469
41470 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
41471 All users updated.
41472 (grub_elf64_load_hook_t): Likewise.
41473 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
41474 debug output.
41475
41476 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41477
41478 * kern/mm.c: Update copyright.
41479 (grub_mm_debug): Correct syntax error.
41480 (grub_mm_dump_free): New function.
41481 (grub_debug_free): Call `grub_free'.
41482 * include/grub/mm.h: Update copyright.
41483 (grub_mm_dump_free): Add declaration.
41484
41485 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41486
41487 * include/grub/ieee1275/ieee1275.h: Update copyright.
41488 * kern/powerpc/ieee1275/init.c: Likewise.
41489 * kern/powerpc/ieee1275/openfw.c: Likewise.
41490
41491 * loader/powerpc/ieee1275/linux.c: Likewise.
41492 * include/grub/elfload.h: Likewise.
41493 * kern/elf.c: Likewise.
41494 (grub_elf32_load): Pass `base' and `size' parameters. Update all
41495 callers.
41496 (grub_elf64_load): Likewise.
41497 (grub_elf32_load_segment): Move to a nested function.
41498 (grub_elf64_load_segment): Likewise.
41499
41500 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41501
41502 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
41503 prototype.
41504 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
41505 (grub_heap_len): Likewise.
41506 (HEAP_SIZE): New macro.
41507 (grub_claim_heap): New function.
41508 (grub_machine_init): Don't claim heap directly. Call
41509 `grub_claim_heap'.
41510 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
41511 (grub_available_iterate): New function.
41512
41513 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
41514
41515 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
41516 * configure.ac: Use it for testing the HOST and TARGET compilers.
41517
41518 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
41519
41520 * Makefile.in (enable_grub_emu): New variable.
41521 * configure.ac (--enable-grub-emu): New option.
41522 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
41523 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
41524 * conf/i386-pc.rmk: Likewise.
41525 * conf/powerpc-ieee1275.rmk: Likewise.
41526 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
41527
41528 2006-12-12 Marco Gerards <marco@gnu.org>
41529
41530 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
41531
41532 * kern/env.c (grub_env_unset): Don't free the member `value' when
41533 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
41534 pointer.
41535
41536 * normal/main.c (current_menu): Removed.
41537 (free_menu): Unset the `menu' environment variable.
41538 (grub_normal_menu_addentry): Make use of the environment variable
41539 `menu', instead of using the global `current_menu'. Allocate
41540 memory for the sourcecode of this entry.
41541 (read_config_file): New argument `nested', changed all callers.
41542 Only in the case of a new context, initialize a new menu. Set the
41543 `menu' environment variable.
41544 (grub_normal_execute): Don't set and unset the environment
41545 variable `menu' here anymore. Only free the menu when leaving the
41546 context.
41547
41548 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
41549 leak.
41550
41551 2006-12-11 Marco Gerards <marco@gnu.org>
41552
41553 * normal/menu_entry.c (run): Fix off by one bug so the last line
41554 is executed. Move the loader check to outside the loop.
41555
41556 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
41557
41558 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
41559
41560 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
41561
41562 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
41563 the number of sectors. Reported by Andrey Shuvikov
41564 <mr_hyro@yahoo.com>.
41565
41566 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
41567
41568 * kern/disk.c (grub_disk_read): When there is a read error, always
41569 try to read only the necessary data.
41570
41571 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
41572 disk/raid.c.
41573 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
41574 prototype.
41575 [GRUB_UTIL] (grub_raid_fini): Likewise.
41576 [GRUB_UTIL] (grub_lvm_init): Likewise.
41577 [GRUB_UTIL] (grub_lvm_fini): Likewise.
41578 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
41579 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
41580 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
41581 and grub_raid_fini().
41582
41583 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
41584
41585 * include/grub/types.h (__unused): Rename to UNUSED.
41586 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
41587 (grub_elf64_size): Likewise.
41588
41589 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41590
41591 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
41592 grub_error_push and grub_error_pop in the error-handling path.
41593 (grub_elf32_load_segment): Only call grub_file_read with non-zero
41594 length.
41595
41596 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41597
41598 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
41599 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41600 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41601 (kernel_elf_SOURCES): Likewise.
41602 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
41603 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
41604 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41605 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41606 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
41607 (elf_mod_SOURCES): New variable.
41608 (elf_mod_CFLAGS): Likewise.
41609 (elf_mod_LDFLAGS): Likewise.
41610 * include/grub/types.h (__unused): New macro.
41611 * include/grub/elfload.h: New file.
41612 * kern/elf.c: Likewise.
41613 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
41614 (ELF32_LOADMASK): New macro.
41615 (ELF64_LOADMASK): Likewise.
41616 (vmlinux): Removed.
41617 (grub_linux_load32): New function.
41618 (grub_linux_load64): Likewise.
41619 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
41620 Use grub_elf_t instead of grub_file_t.
41621
41622 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
41623
41624 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
41625 `catch_result' to struct set_color_args.
41626
41627 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
41628
41629 * normal/menu.c: Include grub/script.h.
41630 * normal/menu_entry.c: Likewise.
41631 * include/grub/normal.h: Do not include grub/script.h.
41632
41633 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41634
41635 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
41636
41637 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41638
41639 * kern/disk.c (grub_disk_open): Print debug messages when opening a
41640 disk.
41641 (grub_disk_close): Print debug messages when closing a disk.
41642 (grub_disk_read): Print debug messages when disk read fails.
41643 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
41644 filesystem type.
41645 * kern/partition.c: Include misc.h.
41646 (grub_partition_iterate): Print debug messages when detecting
41647 partition type.
41648
41649 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41650
41651 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
41652 is negative.
41653 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
41654
41655 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
41656
41657 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41658 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
41659
41660 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
41661
41662 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
41663 instead of sizeof(lv). Patch by Michael Guntsche.
41664
41665 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
41666
41667 * disk/lvm.c: Rename VGS to VG_LIST.
41668 (grub_lvm_iterate): Change VGS->LV to VG-LV.
41669 (grub_lvm_open): Likewise.
41670 Thanks to Michael Guntsche for finding this bug.
41671
41672 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
41673
41674 * configure.ac (AC_INIT): Bumped to 1.95.
41675
41676 2006-10-14 Robert Millan <rmh@aybabtu.com>
41677
41678 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
41679 with "/dev/.static/dev/md".
41680
41681 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41682
41683 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
41684 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
41685 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
41686 DRIVE_NAME are always freed.
41687
41688 * util/i386/pc/biosdisk.c (make_device_name): Add one into
41689 DOS_PART, as a DOS partition is counted from one instead of zero
41690 now. Reported by Robert Millan.
41691
41692 2006-10-14 Robert Millan <rmh@aybabtu.com>
41693
41694 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
41695 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
41696 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
41697 string returned by grub_guess_root_device.
41698 * util/i386/pc/grub-setup.c: Likewise.
41699 * util/i386/pc/grub-probefs.c: Likewise.
41700
41701 * util/i386/pc/grub-probefs.c: Rename to ...
41702 * util/i386/pc/grub-probe.c: ... this.
41703 * DISTLIST: Remove grub-probefs, add grub-probe.
41704 * conf/i386-efi.rmk: Likewise.
41705 * conf/i386-pc.rmk: Likewise.
41706 * util/i386/pc/grub-install.in: Likewise.
41707
41708 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
41709 choose which information we want to print.
41710
41711 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41712
41713 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
41714 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
41715 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
41716 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
41717 video/readers/tga.c and video/i386/pc/vbeutil.c.
41718
41719 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
41720
41721 Added support for RAID and LVM.
41722
41723 * disk/lvm.c: New file.
41724 * disk/raid.c: Likewise.
41725 * include/grub/lvm.h: Likewise.
41726 * include/grub/raid.h: Likewise.
41727 * include/grub/util/lvm.h: Likewise.
41728 * include/grub/util/raid.h: Likewise.
41729 * util/lvm.c: Likewise.
41730 * util/raid.c: Likewise.
41731
41732 * include/grub/disk.h (grub_disk_dev_id): Add
41733 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
41734 (grub_disk_get_size): New prototype.
41735 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
41736 returns a partition.
41737 (grub_disk_get_size): New function.
41738
41739 * kern/i386/pc/init.c (make_install_device): Copy the prefix
41740 verbatim if grub_install_dos_part is -2.
41741
41742 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
41743 and LVM devices.
41744
41745 * util/i386/pc/grub-setup.c (setup): New argument
41746 MUST_EMBED. Force embedding of GRUB when the argument is
41747 true. Close FILE before returning.
41748 (main): Add support for RAID and LVM.
41749
41750 * conf/common.rmk: Add RAID and LVM modules.
41751 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
41752 util/lvm.c.
41753 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
41754
41755 * kern/misc.c (grub_strstr): New function.
41756 * include/grub/misc.h (grub_strstr): New prototype.
41757
41758 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
41759
41760 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
41761
41762 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
41763
41764 * kern/misc.c (grub_strtoull): Guess the base only if not
41765 specified.
41766
41767 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41768
41769 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
41770 PowerMac support.
41771
41772 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41773
41774 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
41775
41776 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
41777 Remove `flags' argument. All callers changed.
41778 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
41779 (IEEE1275_IHANDLE_INVALID): New variable.
41780 (IEEE1275_CELL_INVALID): New variable.
41781 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
41782 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
41783 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
41784 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
41785 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
41786 codes from Open Firmware. All callers updated.
41787 (grub_ieee1275_next_property): Directly return Open Firmware return
41788 code.
41789 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41790 Standardize error checking from `grub_ieee1275_get_property'.
41791 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
41792 `devalias' to `aliases'. Correct comments. Consolidate error paths.
41793
41794 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41795
41796 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
41797 `instance_to_package_args' to `instance_to_path_args'.
41798
41799 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
41800 `grub_ieee1275_chosen'.
41801
41802 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
41803 `grub_ieee1275_interpret'.
41804
41805 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41806
41807 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
41808
41809 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41810
41811 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
41812 (__cmpdi): Likewise.
41813
41814 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
41815 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
41816 `grub_ssize_t'.
41817
41818 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
41819
41820 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
41821 to type `grub_ssize_t'.
41822 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
41823
41824 2006-09-22 Marco Gerards <marco@gnu.org>
41825
41826 * normal/script.c (grub_script_create_cmdmenu): Skip leading
41827 newlines.
41828
41829 2006-09-22 Marco Gerards <marco@gnu.org>
41830
41831 * commands/echo.c: New file.
41832
41833 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
41834
41835 * conf/common.rmk (echo_mod_SOURCES): New variable.
41836 (echo_mod_CFLAGS): Likewise.
41837 (echo_mod_LDFLAGS): Likewise.
41838
41839 2006-09-22 Marco Gerards <marco@gnu.org>
41840
41841 * normal/main.c (get_line): Malloc memory instead of using
41842 preallocated memory. Removed the arguments `cmdline' and
41843 `max_len'. Updated all callers.
41844
41845 2006-09-22 Marco Gerards <marco@gnu.org>
41846
41847 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
41848 (normal_mod_DEPENDENCIES): Likewise.
41849
41850 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
41851 (normal_mod_DEPENDENCIES): Likewise.
41852
41853 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
41854
41855 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
41856
41857 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
41858 programs.
41859 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
41860 (normal_mod_DEPENDENCIES): Likewise.
41861 * conf/i386-pc.mk: Regenerate.
41862 * conf/i386-efi.mk: Likewise
41863 * conf/common.mk: Likewise.
41864 * conf/powerpc-ieee1275.mk: Likewise.
41865 * conf/sparc64-ieee1275.mk: Likewise.
41866
41867 2006-09-22 Robert Millan <rmh@aybabtu.com>
41868
41869 Sync with i386 version.
41870 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
41871 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
41872
41873 2006-09-21 Robert Millan <rmh@aybabtu.com>
41874
41875 Import from GRUB Legacy (lib/device.c):
41876 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
41877 (init_device_map) [__linux__]: Add support for I2O devices.
41878
41879 2006-09-14 Marco Gerards <marco@gnu.org>
41880
41881 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
41882 `-melf_i386'.
41883
41884 2006-09-14 Robert Millan <rmh@aybabtu.com>
41885
41886 * util/i386/pc/grub-install.in: Skip menu.lst when removing
41887 /boot/grub/*.lst.
41888
41889 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
41890
41891 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
41892 before adding it to device.map.
41893
41894 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
41895
41896 * genmk.rb: Let GCC generate dependencies the first time it
41897 compiles a file; using the -MD option.
41898 * conf/common.mk: Regenerate.
41899 * conf/i386-pc.mk: Likewise.
41900 * conf/i386-efi.mk: Likewise.
41901 * conf/powerpc-ieee1275.mk: Likewise.
41902 * conf/sparc64-ieee1275.mk: Likewise.
41903
41904 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
41905
41906 Move the prototypes of grub_setjmp and grub_longjmp to
41907 cpu/setjmp.h, so that each architecture may specify different
41908 attributes.
41909
41910 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
41911 (grub_longjmp): Likewise.
41912 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
41913 (grub_longjmp): Likewise.
41914 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
41915 (grub_longjmp): Likewise.
41916
41917 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
41918 [!GRUB_UTIL] (grub_longjmp): Removed.
41919
41920 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
41921
41922 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
41923 "color!" method does not return any value.
41924
41925 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41926
41927 * include/grub/bitmap.h: New file.
41928
41929 * include/grub/i386/pc/vbeutil.h: Likewise.
41930
41931 * video/bitmap.c: Likewise.
41932
41933 * video/readers/tga.c: Likewise.
41934
41935 * video/i386/pc/vbeutil.c: Likewise.
41936
41937 * commands/videotest.c: Code cleanup and updated to reflect to new
41938 video API.
41939
41940 * term/gfxterm.c: Likewise.
41941
41942 * video/video.c: Likewise.
41943
41944 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
41945 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
41946 (bitmap_mod_SOURCES): New entry.
41947 (bitmap_mod_CFLAGS): Likewise.
41948 (bitmap_mod_LDFLAGS): Likewise.
41949 (tga_mod_SOURCES): Likewise.
41950 (tga_mod_CFLAGS): Likewise.
41951 (tga_mod_LDFLAGS): Likewise.
41952
41953 * include/grub/video.h (grub_video_blit_operators): New enum type.
41954 (grub_video_render_target): Changed as forward declaration and moved
41955 actual definition to be video driver specific.
41956 (grub_video_adapter.blit_bitmap): Added blitting operator.
41957 (grub_video_adapter.blit_render_target): Likewise.
41958 (grub_video_blit_bitmap): Likewise.
41959 (grub_video_blit_render_target): Likewise.
41960
41961 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
41962 driver specific render target definition.
41963 (grub_video_vbe_map_rgba): Added driver internal helper.
41964 (grub_video_vbe_unmap_color): Updated to use
41965 grub_video_i386_vbeblit_info.
41966 (grub_video_vbe_get_video_ptr): Likewise.
41967
41968 * include/grub/i386/pc/vbeblit.h
41969 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
41970 grub_video_i386_vbeblit_info.
41971 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41972 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41973 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41974 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41975 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41976 (grub_video_i386_vbeblit_index_index): Likewise.
41977 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
41978 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41979 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41980 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
41981 operator.
41982 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
41983 operator.
41984
41985 * video/i386/pc/vbeblit.c: Updated to reflect changes on
41986 include/grub/i386/pc/vbeblit.h.
41987
41988 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
41989 Updated to use grub_video_i386_vbeblit_info.
41990 (grub_video_i386_vbefill_R8G8B8): Likewise.
41991 (grub_video_i386_vbefill_index): Likewise.
41992 (grub_video_i386_vbefill): Added generic filler.
41993
41994 * video/i386/pc/vbefill.c: Updated to reflect changes on
41995 include/grub/i386/pc/vbefill.h.
41996
41997 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
41998 grub_video_i386_vbeblit_info.
41999 (grub_video_vbe_unmap_color): Likewise.
42000 (grub_video_vbe_blit_glyph): Likewise.
42001 (grub_video_vbe_scroll): Likewise.
42002 (grub_video_vbe_draw_pixel): Removed function.
42003 (grub_video_vbe_get_pixel): Likewise.
42004 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
42005 updated code to use it.
42006 (common_blitter): Added common blitter for render target and bitmap.
42007 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
42008 (grub_video_vbe_blit_render_target): Likewise.
42009
42010 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
42011
42012 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
42013 is in text mode if there is no console control protocol instance
42014 available.
42015
42016 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42017
42018 * include/grub/video.h: Code cleanup.
42019
42020 * include/grub/i386/pc/vbe.h: Likewise.
42021
42022 * video/i386/pc/vbe.c: Likewise.
42023
42024 * video/i386/pc/vbeblit.c: Likewise.
42025
42026 * video/i386/pc/vbefill.c: Likewise.
42027
42028 * video/video.c: Likewise. Also added more comments.
42029
42030 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42031
42032 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
42033 (struct grub_biosdisk_dap): Likewise.
42034
42035 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
42036 linkage settings for all functions.
42037
42038 2006-07-12 Marco Gerards <marco@gnu.org>
42039
42040 * configure.ac (--enable-mm-debug): Fix typo.
42041
42042 * genkernsyms.sh.in: Use proper quoting for `CC'.
42043
42044 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
42045
42046 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
42047 (normal_mod_ASFLAGS): Remove "-m32".
42048
42049 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
42050
42051 * util/misc.c: Include config.h.
42052 [!HAVE_MEMALIGN]: Do not include malloc.h.
42053 (grub_memalign): Use posix_memalign, if present. Then, use
42054 memalign, if present. Otherwise, emit an error.
42055
42056 * util/grub-emu.c: Do not include malloc.h.
42057
42058 * include/grub/util/misc.h: Include unistd.h. This is required for
42059 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
42060 D. Eades III <hde@foobar-qux.org>.
42061
42062 * configure.ac (AC_GNU_SOURCE): Added.
42063 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
42064 type.
42065
42066 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
42067
42068 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
42069 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
42070
42071 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
42072
42073 * include/grub/types.h (grub_host_addr_t): Rename to
42074 grub_target_addr_t.
42075 (grub_host_off_t): Rename to grub_target_off_t.
42076 (grub_host_size_t): Rename to grub_target_size_t.
42077 (grub_host_ssize_t): Rename to grub_target_ssize_t.
42078 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
42079
42080 * include/grub/kernel.h (struct grub_module_header): Change type
42081 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
42082 (grub_module_info): Likewise.
42083
42084 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42085
42086 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
42087 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
42088 Velazquez <jesus.velazquez@gmail.com>.
42089
42090 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42091
42092 Count partitions from 1 instead of 0 in the string representation
42093 of partitions. Still use 0-based internally.
42094
42095 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
42096 (sun_partition_map_iterate): Use grub_partition_t instead of
42097 struct grub_partition *. Cast DESC->START_CYLINDER to
42098 grub_uint64_t after converting the endian.
42099 (sun_partition_map_probe): Subtract 1 for PARTNUM.
42100 (sun_partition_map_get_name): Add 1 to P->INDEX.
42101
42102 * partmap/pc.c (grub_partition_parse): Subtract 1 for
42103 PCDATA->DOS_PART.
42104 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
42105
42106 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
42107 zero instead of one.
42108 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
42109 (gpt_partition_map_get_name): Add 1 into P->INDEX.
42110
42111 * partmap/apple.c (apple_partition_map_iterate): Change the type
42112 of POS to unsigned.
42113 (apple_partition_map_probe): Subtract 1 for PARTNUM.
42114 (apple_partition_map_get_name): Add 1 into P->INDEX.
42115
42116 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
42117 of POS to unsigned.
42118 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
42119 calculate the offset of a partition.
42120 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
42121 (amiga_partition_map_get_name): Add 1 into P->INDEX.
42122
42123 * partmap/acorn.c (acorn_partition_map_find): Change the type of
42124 SECTOR to grub_disk_addr_t.
42125 (acorn_partition_map_iterate): Likewise.
42126 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
42127 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
42128 top.
42129 (acorn_partition_map_get_name): Add 1 into P->INDEX.
42130
42131 * kern/i386/pc/init.c (make_install_device): Add 1 into
42132 GRUB_INSTALL_DOS_PART.
42133
42134 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
42135 conditional.
42136
42137 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42138
42139 Clean up the code to support 64-bit addressing in disks and
42140 files. This change is not enough for filesystems yet.
42141
42142 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
42143 type of "start" to grub_uint64_t.
42144 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
42145 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
42146 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
42147 convert addresses.
42148
42149 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
42150 to grub_disk_addr_t.
42151
42152 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
42153 string.
42154
42155 * partmap/pc.c (pc_partition_map_iterate): Likewise.
42156
42157 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
42158 to char *.
42159
42160 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
42161
42162 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
42163
42164 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
42165
42166 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
42167 to grub_off_t, to detect an error from grub_file_seek.
42168 (grub_multiboot_load_elf32): Likewise.
42169
42170 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
42171 maximum unsigned long value when an overflow is detected.
42172 (grub_strtoull): New function.
42173 (grub_divmod64): Likewise.
42174 (grub_lltoa): use grub_divmod64.
42175
42176 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
42177 grub_disk_addr_t.
42178 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
42179 the pointer to next character. Use grub_strtoull instead of
42180 grub_strtoul.
42181 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
42182 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
42183 respectively.
42184
42185 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
42186 return value is signed.
42187 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
42188 test if OFFSET is less than zero, as OFFSET is unsigned now.
42189
42190 * kern/disk.c (struct grub_disk_cache): Change the type of
42191 "sector" to grub_disk_addr_t.
42192 (grub_disk_cache_get_index): Change the type of SECTOR to
42193 grub_disk_addr_t. Calculate the hash with SECTOR casted to
42194 unsigned after shifting.
42195 (grub_disk_cache_invalidate): Change the type of SECTOR to
42196 grub_disk_addr_t.
42197 (grub_disk_cache_unlock): Likewise.
42198 (grub_disk_cache_store): Likewise.
42199 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
42200 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
42201 grub_disk_addr_t and grub_uint64_t, respectively.
42202 (grub_disk_read): 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 START_SECTOR, LEN and
42205 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
42206 respectively.
42207 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
42208 body, as the value of OFFSET is tweaked by
42209 grub_disk_check_range. Change the types of LEN and N to
42210 grub_size_t.
42211
42212 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
42213 and "saved_offset" to grub_off_t.
42214 (test_header): Cast BUF to char *.
42215 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
42216 to char *.
42217 (grub_gzio_read): Change the types of OFFSET and SIZE to
42218 grub_off_t and grub_size_t, respectively.
42219
42220 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
42221 Removed.
42222 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
42223 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
42224 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
42225 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
42226 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
42227
42228 * include/grub/types.h (grub_off_t): Unconditionally set to
42229 grub_uint64_t.
42230 (grub_disk_addr_t): Changed to grub_uint64_t.
42231
42232 * include/grub/partition.h (struct grub_partition): Change the
42233 types of "start", "len" and "offset" to grub_disk_addr_t,
42234 grub_uint64_t and grub_disk_addr_t, respectively.
42235 (grub_partition_get_start): Return grub_disk_addr_t.
42236 (grub_partition_get_len): Return grub_uint64_t.
42237
42238 * include/grub/misc.h (grub_strtoull): New prototype.
42239 (grub_divmod64): Likewise.
42240
42241 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
42242 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
42243 grub_off_t, respectively.
42244 All callers and references changed.
42245
42246 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
42247 grub_size_t in "read".
42248 All callers and references changed.
42249
42250 * include/grub/file.h (struct grub_file): Change the types of
42251 "offset" and "size" to grub_off_t and grub_off_t,
42252 respectively. Change the type of SECTOR to grub_disk_addr_t in
42253 "read_hook".
42254 (grub_file_read): Change the type of LEN to grub_size_t.
42255 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
42256 grub_off_t.
42257 (grub_file_size): Return grub_off_t.
42258 (grub_file_tell): Likewise.
42259 All callers and references changed.
42260
42261 * include/grub/disk.h (struct grub_disk_dev): Change the types of
42262 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
42263 "write".
42264 (struct grub_disk): Change the type of "total_sectors" to
42265 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
42266 "read_hook".
42267 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
42268 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
42269 (grub_disk_write): Likewise.
42270 All callers and references changed.
42271
42272 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
42273 char * for grub_strncmp to silence gcc.
42274 (grub_iso9660_mount): Likewise.
42275 (grub_iso9660_mount): Likewise.
42276 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
42277 return statement.
42278 (grub_iso9660_iterate_dir): Likewise.
42279 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
42280
42281 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
42282 LEN to grub_disk_addr_t and grub_size_t, respectively.
42283
42284 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
42285
42286 * fs/jfs.c (grub_jfs_read_file): Likewise.
42287
42288 * fs/minix.c (grub_jfs_read_file): Likewise.
42289
42290 * fs/sfs.c (grub_jfs_read_file): Likewise.
42291
42292 * fs/ufs.c (grub_jfs_read_file): Likewise.
42293
42294 * fs/xfs.c (grub_jfs_read_file): Likewise.
42295
42296 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
42297 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
42298 respectively.
42299
42300 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
42301 BLKNR to -1 instead of returning GRUB_ERRNO.
42302 (grub_ext2_read_file): Change the types of SECTOR and
42303 LEN to grub_disk_addr_t and grub_size_t, respectively.
42304
42305 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
42306 LEN to grub_disk_addr_t and grub_size_t, respectively.
42307
42308 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
42309 grub_file_read.
42310
42311 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
42312 string. Do not cast SECTOR explicitly.
42313
42314 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
42315 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
42316 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
42317 grub_disk_addr_t and grub_size_t, respectively. If the sector is
42318 over 2TB and LBA mode is not supported, raise an error.
42319 (get_safe_sectors): New function.
42320 (grub_biosdisk_read): Use get_safe_sectors.
42321 (grub_biosdisk_write): Likewise.
42322
42323 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
42324 (grub_efidisk_write): Likewise.
42325
42326 * disk/loopback.c (delete_loopback): Cosmetic changes.
42327 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
42328 correctly.
42329 (grub_loopback_open): Likewise.
42330 (grub_loopback_read): Likewise. Also, change the type of POS to
42331 grub_off_t, and fix the usage of grub_memset.
42332
42333 * commands/i386/pc/play.c: Include grub/machine/time.h.
42334
42335 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
42336 print FILE->SIZE.
42337
42338 * commands/configfile.c: Include grub/env.h.
42339
42340 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
42341 GRUB_ERRNO directly instead. Change the type of POS to
42342 grub_off_t. Follow the coding standard.
42343
42344 * commands/blocklist.c: Include grub/partition.h.
42345 (grub_cmd_blocklist): Return an error if the underlying device is
42346 not a disk. Take the starting sector of a partition into account,
42347 if a partition is used.
42348
42349 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
42350 a length field.
42351 (lba_mode): Support 64-bit addresses.
42352 (chs_mode): Likewise.
42353 (copy_buffer): Adapted to the new offsets of a length field and a
42354 segment field.
42355 (blocklist_default_start): Allocate 64-bit space.
42356
42357 * boot/i386/pc/boot.S (force_lba): Removed.
42358 (boot_drive): Moved to under KERNEL_SECTOR.
42359 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
42360 space.
42361 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
42362 is useless.
42363 (lba_mode): Refactored to support a 64-bit address. More size
42364 optimization.
42365 (setup_sectors): Likewise.
42366
42367 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42368
42369 * DISTLIST: Added include/grub/i386/linux.h. Removed
42370 include/grub/i386/pc/linux.h
42371
42372 * configure.ac (AC_INIT): Bumped to 1.94.
42373
42374 * config.guess: Updated from gnulib.
42375 * config.sub: Likewise.
42376 * install-sh: Likewise.
42377 * mkinstalldirs: Likewise.
42378
42379 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42380
42381 * conf/common.rmk (grub_modules_init.lst): Depended on
42382 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
42383 MODSRCFILES.
42384
42385 * genmk.rb (PModule::rule): Reverted the previous change.
42386
42387 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42388
42389 * conf/common.rmk (grub_modules_init.lst): Depends on
42390 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
42391 that the target does not exist before producing.
42392 (grub_modules_init.h): Remove the target before generating.
42393 (grub_emu_init.c): Likewise.
42394
42395 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
42396
42397 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
42398
42399 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
42400 for the target-specific tests. Make sure that we also have the
42401 up-to-date target variables for those tests.
42402
42403 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42404
42405 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
42406 (PModule::rule): Likewise.
42407
42408 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42409
42410 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
42411 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
42412 target-specific flags should be prefixed.
42413 (PModule::rule): Likewise.
42414
42415 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
42416
42417 * configure.ac (CMP): Check if cmp is available explicitly.
42418
42419 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
42420
42421 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
42422 (target_cpu): New variable.
42423 (pkglibdir): Use target_cpu instead of host_cpu.
42424
42425 * util/i386/pc/grub-install.in (host_cpu): Removed.
42426 (target_cpu): New variable.
42427 (pkglibdir): Use target_cpu instead of host_cpu.
42428
42429 * util/genmoddep.c: Removed.
42430
42431 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
42432 instead of GRUB_HOST_SIZEOF_VOID_P.
42433 * kern/dl.c: Likewise.
42434
42435 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
42436 ...
42437 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42438 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42439 (GRUB_TARGET_SIZEOF_LONG): ... this.
42440 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42441 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42442 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42443 to ...
42444 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42445 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42446 (GRUB_TARGET_SIZEOF_LONG): ... this.
42447 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42448 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42449 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42450 to ...
42451 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42452 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42453 (GRUB_TARGET_SIZEOF_LONG): ... this.
42454 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42455 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42456
42457 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
42458 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
42459 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
42460 instead of GRUB_HOST_SIZEOF_LONG.
42461 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
42462 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
42463 GRUB_CPU_WORDS_BIGENDIAN.
42464 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
42465 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
42466 grub_host_ssize_t.
42467
42468 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
42469 (genmoddep_SOURCES): Likewise.
42470 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
42471 (genmoddep_SOURCES): Likewise.
42472 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
42473 (genmoddep_SOURCES): Likewise.
42474 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
42475 Likewise.
42476 (genmoddep_SOURCES): Likewise.
42477
42478 * genmoddep.awk: New file.
42479
42480 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
42481 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
42482 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
42483 (PModule::rule): Likewise.
42484 (Program::rule): Likewise.
42485 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
42486 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
42487 respectively.
42488
42489 * configure.ac: Rewritten intensively to use host and target
42490 instead of build and host, respectively.
42491
42492 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
42493 (host_cpu): Removed.
42494 (target_cpu): New variable.
42495 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
42496 (BUILD_CC): Removed.
42497 (BUILD_CFLAGS): Likewise.
42498 (BUILD_CPPFLAGS): Likewise.
42499 (TARGET_CC): New variable.
42500 (TARGET_CFLAGS): Likewise.
42501 (TARGET_CPPFLAGS): Likewise.
42502 (TARGET_LDFLAGS): Likewise.
42503 (AWK): Likewise.
42504 (include): Use target_cpu instead of host_cpu.
42505 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
42506
42507 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
42508
42509 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
42510
42511 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
42512 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
42513 field 'false' to 'exec_on_false'.
42514 (grub_script_create_cmdif): Renamed argument names to reflect above
42515 changes.
42516
42517 * normal/execute.c (grub_script_execute_cmdif): Likewise.
42518
42519 * normal/script.c (grub_script_create_cmdif): Likewise.
42520
42521 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
42522
42523 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
42524 top.
42525 (grub_hfsplus_btree_recptr): Likewise.
42526 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
42527 FILEBLOCK both to pass a block number and store next block
42528 number.
42529 (grub_hfsplus_read_block): Rewritten heavily to support an extent
42530 overflow file correctly. Specify errors appropriately, because
42531 fshelp expects that GRUB_ERRNO is set when fails. Reuse
42532 grub_hfsplus_btree_recptr to get the pointer to a found key.
42533 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
42534 is found.
42535
42536 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
42537 linux.mod.
42538 (_linux_mod_SOURCES): New variable.
42539 (_linux_mod_CFLAGS): Likewise.
42540 (_linux_mod_LDFLAGS): Likewise.
42541 (linux_mod_SOURCES): Likewise.
42542 (linux_mod_CFLAGS): Likewise.
42543 (linux_mod_LDFLAGS): Likewise.
42544
42545 * DISTLIST: Added loader/i386/efi/linux.c,
42546 loader/i386/efi/linux_normal.c and
42547 include/grub/i386/efi/loader.h.
42548
42549 * loader/i386/efi/linux.c: New file.
42550 * loader/i386/efi/linux_normal.c: Likewise.
42551 * include/grub/i386/efi/loader.h: Likewise.
42552
42553 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
42554
42555 * commands/blocklist.c: New file.
42556
42557 * DISTLIST: Added commands/blocklist.c.
42558
42559 * term/efi/console.c (grub_console_highlight_color): Use a lighter
42560 color for the background, and a darker color for the foreground.
42561 (grub_console_checkkey): Return READ_KEY.
42562 (grub_console_cls): Set the background to
42563 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
42564
42565 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
42566
42567 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
42568 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
42569
42570 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
42571 prototype.
42572
42573 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
42574 BG. The spec is wrong again.
42575
42576 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
42577 prototype.
42578 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
42579
42580 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
42581 commands/blocklist.c.
42582 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42583
42584 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
42585 (blocklist_mod_SOURCES): New variable.
42586 (blocklist_mod_CFLAGS): Likewise.
42587 (blocklist_mod_LDFLAGS): Likewise.
42588
42589 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
42590
42591 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
42592 duplication.
42593 (lba_mode): Use %eax more intensively to reduce the code size.
42594
42595 2006-05-20 Marco Gerards <marco@gnu.org>
42596
42597 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
42598
42599 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
42600 for `menuentry'.
42601 (script): Accept leading newlines.
42602 (newlines): New rule to describe 0 or more newlines.
42603 (commands): Accept `command' with trailing newline. Fixed the
42604 order in which arguments were passed to `grub_script_add_cmd'.
42605 Accept commands separated by newlines.
42606 (function): Changed to accept newlines.
42607 (menuentry) Rewritten.
42608
42609 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
42610 front of the list, instead of to the end.
42611
42612 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
42613
42614 * util/i386/pc/grub-install.in (bindir): New variable.
42615 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
42616 Shaver <lbgwjl@gmail.com>.
42617
42618 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
42619
42620 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
42621 grub/machine/linux.h
42622 * loader/i386/pc/linux.c: Likewise.
42623
42624 * include/grub/i386/pc/linux.h: Moved to ...
42625 * include/grub/i386/linux.h: ... here.
42626
42627 * include/grub/i386/linux.h (struct linux_kernel_params): New
42628 struct.
42629
42630 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
42631
42632 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
42633 checking.
42634 (grub_video_vbe_blit_glyph): Likewise.
42635 (grub_video_vbe_blit_bitmap): Likewise.
42636 (grub_video_vbe_blit_render_target): Likewise.
42637
42638 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
42639
42640 * configure.ac (--with-platform): Properly quote the square
42641 brackets.
42642
42643 2006-05-08 Marco Gerards <marco@gnu.org>
42644
42645 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
42646 this...
42647 (kernel_elf_HEADERS): ...to this. Updated all users.
42648 (grubof_symlist.c): Renamed from this...
42649 (kernel_elf_symlist.c): ...to this. Updated all users.
42650 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42651 (grubof_SOURCES): Renamed from this...
42652 (kernel_elf_SOURCES): ...to this.
42653 (grubof_HEADERS): Renamed from this...
42654 (kernel_elf_HEADERS): ...to this.
42655 (grubof_CFLAGS): Renamed from this...
42656 (kernel_elf_CFLAGS): ...to this.
42657 (grubof_ASFLAGS): Renamed from this...
42658 (kernel_elf_ASFLAGS): ...to this.
42659 (grubof_LDFLAGS): Renamed from this...
42660 (kernel_elf_LDFLAGS): ...to this.
42661
42662 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
42663 this...
42664 (kernel_elf_HEADERS): ...to this. Updated all users.
42665 (grubof_symlist.c): Renamed from this...
42666 (kernel_elf_symlist.c): ...to this. Updated all users.
42667 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42668 (grubof_SOURCES): Renamed from this...
42669 (kernel_elf_SOURCES): ...to this.
42670 (grubof_HEADERS): Renamed from this...
42671 (kernel_elf_HEADERS): ...to this.
42672 (grubof_CFLAGS): Renamed from this...
42673 (kernel_elf_CFLAGS): ...to this.
42674 (grubof_ASFLAGS): Renamed from this...
42675 (kernel_elf_ASFLAGS): ...to this.
42676 (grubof_LDFLAGS): Renamed from this...
42677 (kernel_elf_LDFLAGS): ...to this.
42678
42679 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
42680 `kernel.elf' instead of `grubof'.
42681
42682 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
42683
42684 Add --with-platform to configure. Use pkglibdir instead of
42685 pkgdatadir. This is reported by Roger Leigh.
42686
42687 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
42688 (host_vendor): Likewise.
42689 (host_os): Likewise.
42690 (pkgdatadir): Likewise.
42691 (platform): New variable.
42692 (pkglibdir): Likewise.
42693 Use PKGLIBDIR instead of PKGDATADIR.
42694
42695 * util/i386/pc/grub-install.in (datadir): Removed.
42696 (host_vendor): Likewise.
42697 (host_os): Likewise.
42698 (pkgdatadir): Likewise.
42699 (platform): New variable.
42700 (pkglibdir): Likewise.
42701 Use PKGLIBDIR instead of PKGDATADIR.
42702
42703 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
42704 instead of GRUB_DATADIR.
42705 (main): Likewise.
42706 * util/i386/pc/grub-mkimage.c (usage): Likewise.
42707 (main): Likewise.
42708 * util/i386/efi/grub-mkimage.c (usage): Likewise.
42709 (main): Likewise.
42710
42711 * configure.ac (--with-platform): New option.
42712 Use PLATFORM instead of HOST_VENDOR to specify a platform.
42713
42714 * Makefile.in: Include a makefile based on PLATFORM instead of
42715 HOST_VENDOR.
42716 (pkgdatadir): Not appended by the machine type.
42717 (pkglibdir): Appended by the machine type.
42718 (host_vendor): Removed.
42719 (platform): New variable.
42720 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
42721 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
42722 (uninstall): Likewise.
42723
42724 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
42725
42726 Use the environment context in the menu. Remove the commands
42727 "default" and "timeout", and use variables instead.
42728
42729 * normal/menu.c: Include grub/env.h.
42730 (print_entry): Cast TITLE to silence gcc.
42731 (get_timeout): New function.
42732 (set_timeout): Likewise.
42733 (get_entry_number): Likewise.
42734 (run_menu): Use a default entry, a fallback entry and a timeout
42735 in the environment variables "default", "fallback" and
42736 "timeout". Also, tweak the default entry if it is not within the
42737 current menu entries.
42738 (grub_menu_run): Use a fallback entry in the environment variable
42739 "fallback".
42740
42741 * normal/main.c (read_config_file): Do not initialize
42742 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
42743 NEWMENU->TIMEOUT.
42744 (grub_normal_execute): Use a data slot to store the menu.
42745
42746 * include/grub/normal.h (struct grub_menu): Removed default_entry,
42747 fallback_entry and timeout.
42748 (struct grub_menu_list): Removed.
42749 (grub_menu_list_t): Likewise.
42750 (struct grub_context): Likewise.
42751 (grub_context_t): Likewise.
42752 (grub_context_get): Likewise.
42753 (grub_context_get_current_menu): Likewise.
42754 (grub_context_push_menu): Likewise.
42755 (grub_context_pop_menu): Likewise.
42756 (grub_default_init): Likewise.
42757 (grub_default_fini): Likewise.
42758 (grub_timeout_init): Likewise.
42759 (grub_timeout_fini): Likewise.
42760
42761 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
42762 and timeout.mod.
42763 (normal_mod_SOURCES): Removed normal/context.c.
42764
42765 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
42766 commands/default.c, commands/timeout.c and normal/context.c.
42767 (normal_mod_SOURCES): Removed normal/context.c.
42768
42769 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
42770 commands/timeout.c and normal/context.c.
42771 (normal_mod_SOURCES): Removed normal/context.c.
42772
42773 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
42774 commands/default.c, commands/timeout.c and normal/context.c.
42775 (normal_mod_SOURCES): Removed normal/context.c.
42776
42777 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
42778 timeout.mod.
42779 (default_mod_SOURCES): Removed.
42780 (default_mod_CFLAGS): Likewise.
42781 (default_mod_LDFLAGS): Likewise.
42782 (timeout_mod_SOURCES): Removed.
42783 (timeout_mod_CFLAGS): Likewise.
42784 (timeout_mod_LDFLAGS): Likewise.
42785
42786 * DISTLIST: Removed commands/default.c, commands/timeout.c and
42787 normal/context.c.
42788
42789 * commands/default.c: Removed.
42790 * commands/timeout.c: Likewise.
42791 * normal/context.c: Likewise.
42792
42793 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
42794
42795 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
42796
42797 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
42798
42799 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
42800 "next" to "prev" for readability.
42801 (struct grub_env_sorted_var): New struct.
42802 (grub_env_context): Renamed to ...
42803 (initial_context): ... this.
42804 (grub_env_var_context): Renamed to ...
42805 (current_context): ... this.
42806 (grub_env_find): Look only at CURRENT_CONTEXT.
42807 (grub_env_context_open): Rewritten to copy exported variables from
42808 previous context.
42809 (grub_env_context_close): Rewritten according to the new
42810 scheme. Also, add an assertion to prevent the initial context from
42811 removed.
42812 (grub_env_insert): Removed the code for the sorted list.
42813 (grub_env_remove): Likewise.
42814 (grub_env_export): Simply mark the variable with
42815 GRUB_ENV_VAR_GLOBAL.
42816 (grub_env_set): A cosmetic change for naming consistency.
42817 (grub_env_get): Likewise.
42818 (grub_env_unset): Likewise.
42819 (grub_env_iterate): Rewritten to sort variables within this
42820 function.
42821 (grub_register_variable_hook): Fixed for naming consistency. Call
42822 grub_env_find again, only if NAME is not found at the first time.
42823 (mangle_data_slot_name): New function.
42824 (grub_env_set_data_slot): Likewise.
42825 (grub_env_get_data_slot): Likewise.
42826 (grub_env_unset_data_slot): Likewise.
42827
42828 * include/grub/env.h (grub_env_var_type): New enum.
42829 (GRUB_ENV_VAR_LOCAL): New constant.
42830 (GRUB_ENV_VAR_GLOBAL): Likewise.
42831 (GRUB_ENV_VAR_DATA): Likewise.
42832 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
42833 "type".
42834 (grub_env_set): Replace VAR with NAME for consistency.
42835 (grub_register_variable_hook): Likewise.
42836 (grub_env_export): Specify the name of the argument.
42837 (grub_env_set_data_slot): New prototype.
42838 (grub_env_get_data_slot): Likewise.
42839 (grub_env_unset_data_slot): Likewise.
42840
42841 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42842
42843 Extend the loader so that GRUB can accept a loader which comes
42844 back to GRUB when a loaded image exits. Also, this change adds
42845 support for a chainloader on EFI.
42846
42847 * term/efi/console.c: Include grub/misc.h.
42848 (grub_console_checkkey): Display a scan code on the top for
42849 debugging. This will be removed once the EFI port gets stable.
42850 Correct the scan code mapping.
42851
42852 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
42853 allocate memory from larger regions, in order to reduce the number
42854 of allocated regions. Otherwise, the MacOSX loader panics.
42855 (filter_memory_map): Avoid less than 1MB for compatibility with
42856 other loaders.
42857 (add_memory_regions): Allocate from the tail of a region, if
42858 possible, to avoid allocating a region near to 1MB, for the MacOSX
42859 loader.
42860
42861 * kern/efi/init.c (grub_efi_set_prefix): Specify
42862 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
42863
42864 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
42865 argument IMAGE_HANDLE and specify it to get a loaded image.
42866 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
42867 grub_efi_get_loaded_image.
42868 (grub_efi_get_filename): Divide the length by the size of
42869 grub_efi_char16_t.
42870 (grub_efi_get_device_path): New function.
42871 (grub_efi_print_device_path): Print End Device Path nodes. Divide
42872 the length by the size of grub_efi_char16_t for a file path device
42873 path node.
42874
42875 * kern/loader.c (grub_loader_noreturn): New variable.
42876 (grub_loader_set): Accept a new argument NORETURN. Set
42877 GRUB_LOADER_NORETURN to NORETURN.
42878 All callers changed.
42879 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
42880 grub_machine_fini.
42881
42882 * include/grub/efi/efi.h (grub_efi_get_device_path): New
42883 prototype.
42884 (grub_efi_get_loaded_image): Take an argument to specify an image
42885 handle.
42886
42887 * include/grub/loader.h (grub_loader_set): Added one more argument
42888 NORETURN.
42889
42890 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
42891 instead of grub_efi_open_protocol.
42892 (grub_efidisk_get_device_name): Likewise.
42893 (grub_efidisk_close): Print a newline.
42894 (grub_efidisk_get_device_handle): Fixed to use
42895 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
42896 GRUB_EFI_DEVICE_PATH_TYPE.
42897
42898 * disk/efi/efidisk.c (device_path_guid): Moved to ...
42899 * kern/efi/efi.c (device_path_guid): ... here.
42900
42901 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
42902 chain.mod.
42903 (kernel_mod_HEADERS): Added efi/disk.h.
42904 (_chain_mod_SOURCES): New variable.
42905 (_chain_mod_CFLAGS): Likewise.
42906 (_chain_mod_LDFLAGS): Likewise.
42907 (chain_mod_SOURCES): Likewise.
42908 (chain_mod_CFLAGS): Likewise.
42909 (chain_mod_LDFLAGS): Likewise.
42910
42911 * DISTLIST: Added include/grub/efi/chainloader.h,
42912 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
42913
42914 * include/grub/efi/chainloader.h: New file.
42915 * loader/efi/chainloader.c: Likewise.
42916 * loader/efi/chainloader_normal.c: Likewise.
42917
42918 2006-04-30 Marco Gerards <marco@gnu.org>
42919
42920 * commands/configfile.c (grub_cmd_source): New function.
42921 (GRUB_MOD_INIT): Register the commands `source' and `.'.
42922 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
42923
42924 2006-04-30 Marco Gerards <marco@gnu.org>
42925
42926 * normal/execute.c (grub_script_execute_cmd): Change the return
42927 type to `grub_err_t'. Correctly return the error.
42928 (grub_script_execute_cmdline): In case a command line is not a
42929 command or a function, try to interpret it as an assignment.
42930
42931 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42932
42933 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
42934 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
42935 skip a node whose name is obviously invalid as UTF-16,
42936 i.e. contains a NUL character. Stop the iteration when the last
42937 directory entry is found. Instead of using the return value of
42938 grub_hfsplus_btree_iterate_node, store the value in RET and use
42939 it, because the iterator can be stopped by the last directory
42940 entry.
42941
42942 2006-04-30 Marco Gerards <marco@gnu.org>
42943
42944 * include/grub/env.h (grub_env_export): New prototype. Reported
42945 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
42946
42947 2006-04-30 Marco Gerards <marco@gnu.org>
42948
42949 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
42950 size of the extents in a catalog file record.
42951
42952 2006-04-29 Marco Gerards <marco@gnu.org>
42953
42954 * commands/configfile.c (grub_cmd_configfile): Execute the
42955 configfile within its own context.
42956
42957 * include/grub/env.h (grub_env_context_open): New prototype.
42958 (grub_env_context_close): Likewise.
42959
42960 * kern/env.c (grub_env): Removed.
42961 (grub_env_sorted): Likewise.
42962 (grub_env_context): New variable.
42963 (grub_env_var_context): Likewise.
42964 (grub_env_find): Search both the active context and the global
42965 context.
42966 (grub_env_context_open): New function.
42967 (grub_env_context_close): Likewise.
42968 (grub_env_insert): Likewise.
42969 (grub_env_remove): Likewise.
42970 (grub_env_export): Likewise.
42971 (grub_env_set): Changed to use helper functions to avoid code
42972 duplication.
42973 (grub_env_iterate): Rewritten so both the current context and the
42974 global context are being used.
42975
42976 * normal/command.c (export_command): New function.
42977 (grub_command_init): Register the `export' function.
42978
42979 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
42980
42981 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
42982 explicitly to suppress gcc's warnings.
42983 * fs/fat.c (grub_fat_find_dir): Likewise.
42984 (grub_fat_label): Likewise.
42985 * fs/xfs.c (grub_xfs_read_inode): Likewise.
42986 (grub_xfs_mount): Likewise.
42987 (grub_xfs_label): Likewise.
42988 * fs/affs.c (grub_affs_mount): Likewise.
42989 (grub_affs_label): Likewise.
42990 (grub_affs_iterate_dir): Likewise.
42991 * fs/sfs.c (grub_sfs_mount): Likewise.
42992 (grub_sfs_iterate_dir): Likewise.
42993 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
42994 * fs/hfs.c (grub_hfs_mount): Likewise.
42995 (grub_hfs_cmp_catkeys): Likewise.
42996 (grub_hfs_find_dir): Likewise.
42997 (grub_hfs_dir): Likewise.
42998 (grub_hfs_label): Likewise.
42999 * fs/jfs.c (grub_jfs_mount): Likewise.
43000 (grub_jfs_opendir): Likewise.
43001 (grub_jfs_getent): Likewise.
43002 (grub_jfs_lookup_symlink): Likewise.
43003 (grub_jfs_label): Likewise.
43004 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
43005 (grub_hfsplus_iterate_dir): Likewise.
43006 (grub_hfsplus_btree_iterate_node): Made static.
43007
43008 * util/grub-emu.c (prefix): New variable.
43009 (grub_machine_set_prefix): New function.
43010 (main): Do not set the environment variable "prefix" here. Only
43011 set PREFIX, which is used later by grub_machine_set_prefix.
43012
43013 * include/grub/video.h: Do not include grub/symbol.h.
43014 (grub_video_register): Not exported. This symbol is not defined in
43015 the kernel.
43016 (grub_video_unregister): Likewise.
43017 (grub_video_iterate): Likewise.
43018 (grub_video_setup): Likewise.
43019 (grub_video_restore): Likewise.
43020 (grub_video_get_info): Likewise.
43021 (grub_video_get_blit_format): Likewise.
43022 (grub_video_set_palette): Likewise.
43023 (grub_video_get_palette): Likewise.
43024 (grub_video_set_viewport): Likewise.
43025 (grub_video_get_viewport): Likewise.
43026 (grub_video_map_color): Likewise.
43027 (grub_video_map_rgb): Likewise.
43028 (grub_video_map_rgba): Likewise.
43029 (grub_video_fill_rect): Likewise.
43030 (grub_video_blit_glyph): Likewise.
43031 (grub_video_blit_bitmap): Likewise.
43032 (grub_video_blit_render_target): Likewise.
43033 (grub_video_scroll): Likewise.
43034 (grub_video_swap_buffers): Likewise.
43035 (grub_video_create_render_target): Likewise.
43036 (grub_video_delete_render_target): Likewise.
43037 (grub_video_set_active_render_target): Likewise.
43038
43039 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
43040 Undefined.
43041 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
43042
43043 * conf/sparc64-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/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
43049 config.h. Use 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-pc.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 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
43059 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43060 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43061 instead of $(srcdir)/genkernsyms.sh.
43062
43063 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
43064 genkernsyms.sh.
43065
43066 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
43067 genkernsyms.sh.
43068 (gensymlist.sh): New target.
43069 (genkernsyms.sh): Likewise.
43070
43071 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
43072 genkernsyms.sh.in and gensymlist.sh.in.
43073
43074 * genkernsyms.sh: Removed.
43075 * gensymlist.sh: Likewise.
43076
43077 * genkernsyms.sh.in: New file.
43078 * gensymlist.sh.in: Likewise.
43079
43080 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43081
43082 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
43083 clobber "prefix", since we may have already set it manually.
43084
43085 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43086
43087 * kern/misc.c (abort): New alias for grub_abort.
43088
43089 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
43090
43091 A new machine-specific function "grub_machine_set_prefix" is
43092 defined. This is called after loading modules, so that a prefix
43093 initialization can use modules. Also, this change adds an
43094 intensive debugging feature for the memory manager via the
43095 configure option "--enable-mm-debug".
43096
43097 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
43098 PART.LEN.
43099
43100 * kern/sparc64/ieee1275/init.c (abort): Removed.
43101 (grub_stop): Likewise.
43102 (grub_exit): New function.
43103 (grub_set_prefix): Renamed to ...
43104 (grub_machine_set_prefix): ... this.
43105 (grub_machine_init): Do not call grub_set_prefix.
43106
43107 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
43108 (grub_machine_set_prefix): ... this.
43109 (grub_machine_init): Do not call grub_set_prefix.
43110
43111 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
43112 (grub_machine_init): Do not set the prefix here.
43113
43114 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
43115
43116 * kern/efi/init.c: Include grub/mm.h.
43117 (grub_efi_set_prefix): New function.
43118
43119 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
43120 (grub_efi_get_filename): New function.
43121 (grub_print_device_path): Renamed to ...
43122 (grub_efi_print_device_path): ... this.
43123
43124 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
43125 [MM_DEBUG] (grub_realloc): Likewise.
43126 [MM_DEBUG] (grub_free): Likewise.
43127 [MM_DEBUG] (grub_memalign): Likewise.
43128 [MM_DEBUG] (grub_mm_debug): New variable.
43129 [MM_DEBUG] (grub_debug_malloc): New function.
43130 [MM_DEBUG] (grub_debug_free): New function.
43131 [MM_DEBUG] (grub_debug_realloc): New function.
43132 [MM_DEBUG] (grub_debug_memalign): New function.
43133
43134 * kern/misc.c (grub_abort): Print a newline to distinguish
43135 the message.
43136
43137 * kern/main.c (grub_main): Call grub_machine_set_prefix and
43138 grub_set_root_dev after loading modules. This is necessary when
43139 setting a prefix depends on modules.
43140
43141 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
43142 (grub_efi_print_device_path): ... this.
43143 (grub_efi_get_filename): New prototype.
43144 (grub_efi_set_prefix): Likewise.
43145
43146 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
43147 and grub/disk.h.
43148 (grub_efidisk_get_device_handle): New prototype.
43149 (grub_efidisk_get_device_name): Likewise.
43150
43151 * include/grub/mm.h: Include config.h.
43152 (MM_DEBUG): Removed.
43153 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
43154 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
43155 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
43156 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
43157 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
43158 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
43159 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
43160 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
43161 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
43162
43163 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
43164
43165 * disk/efi/efidisk.c: Include grub/partition.h.
43166 (iterate_child_devices): New function.
43167 (add_device): First, compare only last device path nodes, so that
43168 devices are sorted by the types.
43169 (grub_efidisk_get_device_handle): New function.
43170 (grub_efidisk_get_device_name): Likewise.
43171
43172 * configure.ac (--enable-mm-debug): New option to enable the
43173 memory manager debugging feature. This makes the binary much
43174 bigger, so is disabled by default.
43175
43176 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
43177
43178 Use grub_abort instead of grub_stop, and grub_exit must be
43179 define in each architecture now. Also, this change adds support
43180 for EFI disks.
43181
43182 * util/i386/pc/grub-probefs.c: Include grub/term.h.
43183 (grub_getkey): New function.
43184 (grub_term_get_current): Likewise.
43185
43186 * util/i386/pc/grub-setup.c: Include grub/term.h.
43187 (grub_getkey): New function.
43188 (grub_term_get_current): Likewise.
43189
43190 * util/misc.c (grub_stop): Renamed to ...
43191 (grub_exit): ... this.
43192
43193 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
43194 (grub_exit): ... this.
43195 (grub_machine_init): Use grub_abort instead of abort.
43196 (grub_stop): Removed.
43197
43198 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
43199 abort.
43200
43201 * kern/i386/pc/startup.S (grub_exit): New function.
43202 (cold_reboot): New label.
43203
43204 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
43205 (grub_efi_init): Call grub_efidisk_init.
43206 (grub_efi_fini): Call grub_efidisk_fini.
43207
43208 * kern/efi/efi.c: Include grub/mm.h.
43209 (grub_efi_console_control_guid): Renamed to ...
43210 (console_control_guid): ... this.
43211 (grub_efi_loaded_image_guid): Renamed to ...
43212 (loaded_image_guid): ... this.
43213 (grub_efi_locate_handle): New function.
43214 (grub_efi_open_protocol): Likewise.
43215 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
43216 GRUB_EFI_CONSOLE_CONTROL_GUID.
43217 (grub_efi_exit): Removed.
43218 (grub_stop): Likewise.
43219 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
43220 (grub_exit): New function.
43221 (grub_print_device_path): Likewise.
43222
43223 * kern/rescue.c (grub_rescue_cmd_exit): New function.
43224 (grub_enter_rescue_mode): Register "exit".
43225
43226 * kern/misc.c (grub_real_dprintf): A cosmetic change.
43227 (grub_abort): New function.
43228
43229 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
43230
43231 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
43232
43233 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
43234
43235 * include/grub/efi/efi.h (grub_efi_exit): Removed.
43236 (grub_print_device_path): New prototype.
43237 (grub_efi_locate_handle): Likewise.
43238 (grub_efi_open_protocol): Likewise.
43239
43240 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
43241 * disk/efi/efidisk.c: Likewise.
43242
43243 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
43244
43245 * include/grub/efi/console_control.h
43246 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
43247
43248 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
43249 last 8 bytes as an array.
43250 (GRUB_EFI_DISK_IO_GUID): New macro.
43251 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
43252 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
43253 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
43254 grub_uint8_t.
43255 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
43256 (struct grub_efi_device_path): Rename the member "sub_type" to
43257 "subtype".
43258 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
43259 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
43260 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
43261 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
43262 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
43263 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
43264 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
43265 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
43266 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
43267 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
43268 (struct grub_efi_pci_device_path): New structure.
43269 (grub_efi_pci_device_path_t): New type.
43270 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
43271 (struct grub_efi_pccard_device_path): New structure.
43272 (grub_efi_pccard_device_path_t): New type.
43273 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
43274 (struct grub_efi_memory_mapped_device_path): New structure.
43275 (grub_efi_memory_mapped_device_path_t): New type.
43276 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
43277 (struct grub_efi_vendor_device_path): New structure.
43278 (grub_efi_vendor_device_path_t): New type.
43279 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
43280 (struct grub_efi_controller_device_path): New structure.
43281 (grub_efi_controller_device_path_t): New type.
43282 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
43283 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
43284 (struct grub_efi_acpi_device_path): New structure.
43285 (grub_efi_acpi_device_path_t): New type.
43286 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
43287 (struct grub_efi_expanded_acpi_device_path): New structure.
43288 (grub_efi_expanded_acpi_device_path_t): New type.
43289 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
43290 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
43291 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
43292 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
43293 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
43294 (struct grub_efi_atapi_device_path): New structure.
43295 (grub_efi_atapi_device_path_t): New type.
43296 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
43297 (struct grub_efi_fibre_channel_device_path): New structure.
43298 (grub_efi_fibre_channel_device_path_t): New type.
43299 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
43300 (struct grub_efi_1394_device_path): New structure.
43301 (grub_efi_1394_device_path_t): New type.
43302 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
43303 (struct grub_efi_usb_device_path): New structure.
43304 (grub_efi_usb_device_path_t): New type.
43305 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
43306 (struct grub_efi_usb_class_device_path): New structure.
43307 (grub_efi_usb_class_device_path_t): New type.
43308 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
43309 (struct grub_efi_i2o_device_path): New structure.
43310 (grub_efi_i2o_device_path_t): New type.
43311 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
43312 (struct grub_efi_mac_address_device_path): New structure.
43313 (grub_efi_mac_address_device_path_t): New type.
43314 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
43315 (struct grub_efi_ipv4_device_path): New structure.
43316 (grub_efi_ipv4_device_path_t): New type.
43317 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
43318 (struct grub_efi_ipv6_device_path): New structure.
43319 (grub_efi_ipv6_device_path_t): New type.
43320 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
43321 (struct grub_efi_infiniband_device_path): New structure.
43322 (grub_efi_infiniband_device_path_t): New type.
43323 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
43324 (struct grub_efi_uart_device_path): New structure.
43325 (grub_efi_uart_device_path_t): New type.
43326 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
43327 (struct grub_efi_vendor_messaging_device_path): New structure.
43328 (grub_efi_vendor_messaging_device_path_t): New type.
43329 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
43330 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
43331 (struct grub_efi_hard_drive_device_path): New structure.
43332 (grub_efi_hard_drive_device_path_t): New type.
43333 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
43334 (struct grub_efi_cdrom_device_path): New structure.
43335 (grub_efi_cdrom_device_path_t): New type.
43336 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
43337 (struct grub_efi_vendor_media_device_path): New structure.
43338 (grub_efi_vendor_media_device_path_t): New type.
43339 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
43340 (struct grub_efi_file_path_device_path): New structure.
43341 (grub_efi_file_path_device_path_t): New type.
43342 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
43343 (struct grub_efi_protocol_device_path): New structure.
43344 (grub_efi_protocol_device_path_t): New type.
43345 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
43346 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
43347 (struct grub_efi_bios_device_path): New structure.
43348 (grub_efi_bios_device_path_t): New type.
43349 (struct grub_efi_disk_io): New structure.
43350 (grub_efi_disk_io_t): New type.
43351 (struct grub_efi_block_io_media): New structure.
43352 (grub_efi_block_io_media_t): New type.
43353 (struct grub_efi_block_io): New structure.
43354 (grub_efi_block_io_t): New type.
43355
43356 * include/grub/misc.h (grub_stop): Removed.
43357 (grub_exit): New prototype.
43358 (grub_abort): Likewise.
43359
43360 * include/grub/disk.h (enum grub_disk_dev_id): Added
43361 GRUB_DISK_DEVICE_EFIDISK_ID.
43362
43363 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
43364 disk/efi/efidisk.c.
43365 (kernel_syms.lst): Remove the target if an error occurs.
43366
43367 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
43368
43369 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
43370 as it was simply too buggy.
43371
43372 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
43373
43374 * kern/misc.c (grub_lltoa): New function.
43375 (grub_vsprintf): Added support for the long long suffix,
43376 i.e. "ll".
43377
43378 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
43379
43380 * Makefile.in (LDFLAGS): Add variable.
43381 (LD): Remove variable.
43382 * configure.ac: Add -m32 to LDFLAGS.
43383 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
43384 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
43385 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
43386 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
43387 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
43388 variables.
43389 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
43390 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
43391 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
43392
43393 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
43394
43395 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
43396 length for unknown glyph.
43397
43398 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43399
43400 Add support for pre-loaded modules into the EFI port.
43401
43402 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
43403 completely. Accept one more argument DIR. The caller has changed.
43404
43405 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
43406
43407 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
43408 (grub_efi_loaded_image_guid): New variable.
43409 (grub_efi_get_loaded_image): New function.
43410 (grub_arch_modules_addr): Likewise.
43411
43412 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
43413 prototype.
43414
43415 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
43416 (struct grub_efi_loaded_image): New structure.
43417 (grub_efi_loaded_image_t): New type.
43418
43419 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43420
43421 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
43422 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
43423 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
43424
43425 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
43426
43427 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
43428
43429 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
43430
43431 * DISTLIST: Added include/grub/efi/console.h,
43432 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
43433 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43434
43435 * include/grub/efi/console.h: New file.
43436 * include/grub/efi/time.h: Likewise.
43437 * include/grub/i386/efi/kernel.h: Likewise.
43438 * kern/efi/init.c: Likewise.
43439 * kern/efi/mm.c: Likewise.
43440 * term/efi/console.c: Likewise.
43441
43442 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
43443 (grub_stop): Removed.
43444 (grub_get_rtc): Likewise.
43445 (grub_machine_init): Simply call grub_efi_init.
43446 (grub_machine_fini): Call grub_efi_fini.
43447
43448 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
43449 (grub_efi_output_string): Removed.
43450 (grub_efi_stall): New function.
43451 (grub_stop): Likewise.
43452 (grub_get_rtc): Likewise.
43453
43454 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
43455 (grub_efi_stall): New prototype.
43456 (grub_efi_allocate_pages): Likewise.
43457 (grub_efi_free_pages): Likewise.
43458 (grub_efi_get_memory_map): Likewise.
43459 (grub_efi_mm_init): Likewise.
43460 (grub_efi_mm_fini): Likewise.
43461 (grub_efi_init): Likewise.
43462 (grub_efi_fini): Likewise.
43463
43464 * include/grub/i386/efi/time.h: Do not include
43465 grub/symbol.h. Include grub/efi/time.h.
43466 (GRUB_TICKS_PER_SECOND): Removed.
43467 (grub_get_rtc): Likewise.
43468
43469 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
43470 Added padding. The EFI spec is buggy.
43471 (GRUB_EFI_BLACK): New macro.
43472 (GRUB_EFI_BLUE): Likewise.
43473 (GRUB_EFI_GREEN): Likewise.
43474 (GRUB_EFI_CYAN): Likewise.
43475 (GRUB_EFI_RED): Likewise.
43476 (GRUB_EFI_MAGENTA): Likewise.
43477 (GRUB_EFI_BROWN): Likewise.
43478 (GRUB_EFI_LIGHTGRAY): Likewise.
43479 (GRUB_EFI_BRIGHT): Likewise.
43480 (GRUB_EFI_DARKGRAY): Likewise.
43481 (GRUB_EFI_LIGHTBLUE): Likewise.
43482 (GRUB_EFI_LIGHTGREEN): Likewise.
43483 (GRUB_EFI_LIGHTCYAN): Likewise.
43484 (GRUB_EFI_LIGHTRED): Likewise.
43485 (GRUB_EFI_LIGHTMAGENTA): Likewise.
43486 (GRUB_EFI_YELLOW): Likewise.
43487 (GRUB_EFI_WHITE): Likewise.
43488 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
43489 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
43490 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
43491 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
43492 (GRUB_EFI_BACKGROUND_RED): Likewise.
43493 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
43494 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
43495 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
43496 (GRUB_EFI_TEXT_ATTR): Likewise.
43497
43498 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
43499 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43500 (kernel_mod_HEADERS): Added efi/time.h.
43501
43502 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
43503
43504 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
43505 include/grub/efi/api.h, include/grub/efi/console_control.h,
43506 include/grub/efi/efi.h, include/grub/efi/pe32.h,
43507 include/grub/i386/efi/time.h, kern/efi/efi.c,
43508 kern/i386/efi/init.c, kern/i386/efi/startup.S,
43509 and util/i386/efi/grub-mkimage.c.
43510
43511 * Makefile.in (RMKFILES): Added i386-efi.rmk.
43512
43513 * genmk.rb (PModule#rule): Do not export symbols if
43514 #{prefix}_EXPORTS is set to "no".
43515
43516 * conf/i386-efi.mk: New file.
43517 * conf/i386-efi.rmk: Likewise.
43518 * include/grub/efi/api.h: Likewise.
43519 * include/grub/efi/console_control.h: Likewise.
43520 * include/grub/efi/efi.h: Likewise.
43521 * include/grub/efi/pe32.h: Likewise.
43522 * include/grub/i386/efi/time.h: Likewise.
43523 * kern/efi/efi.c: Likewise.
43524 * kern/i386/efi/init.c: Likewise.
43525 * kern/i386/efi/startup.S: Likewise.
43526 * util/i386/efi/grub-mkimage.c: Likewise.
43527
43528 2006-04-17 Marco Gerards <marco@gnu.org>
43529
43530 * include/grub/script.h: Include <grub/parser.h> and
43531 "grub_script.tab.h".
43532 (struct grub_lexer_param): New struct.
43533 (struct grub_parser_param): Likewise.
43534 (grub_script_create_arglist): Pass the state in an argument.
43535 (grub_script_add_arglist): Likewise.
43536 (grub_script_create_cmdline): Likewise.
43537 (grub_script_create_cmdblock): Likewise.
43538 (grub_script_create_cmdif): Likewise.
43539 (grub_script_create_cmdmenu): Likewise.
43540 (grub_script_add_cmd): Likewise.
43541 (grub_script_arg_add): Likewise.
43542 (grub_script_lexer_ref): Likewise.
43543 (grub_script_lexer_deref): Likewise.
43544 (grub_script_lexer_record_start): Likewise.
43545 (grub_script_lexer_record_stop): Likewise.
43546 (grub_script_mem_record): Likewise.
43547 (grub_script_mem_record_stop): Likewise.
43548 (grub_script_malloc): Likewise.
43549 (grub_script_yylex): Likewise.
43550 (grub_script_yyparse): Likewise.
43551 (grub_script_yyerror): Likewise.
43552 (grub_script_yylex): Likewise.
43553 (grub_script_lexer_init): Return the state.
43554
43555 * normal/lexer.c (grub_script_lexer_state): Removed variable.
43556 (grub_script_lexer_done): Likewise.
43557 (grub_script_lexer_getline): Likewise.
43558 (grub_script_lexer_refs): Likewise.
43559 (script): Likewise.
43560 (newscript): Likewise.
43561 (record): Likewise.
43562 (recording): Likewise.
43563 (recordpos): Likewise.
43564 (recordlen): Likewise.
43565 (grub_script_lexer_init): Return the state instead of setting
43566 global variables.
43567 (grub_script_lexer_ref): Use the newly added argument for state
43568 instead of globals.
43569 (grub_script_lexer_deref): Likewise.
43570 (grub_script_lexer_record_start): Likewise.
43571 (grub_script_lexer_record_stop): Likewise.
43572 (recordchar): Likewise.
43573 (nextchar): Likewise.
43574 (grub_script_yylex2): Likewise.
43575 (grub_script_yylex): Likewise.
43576 (grub_script_yyerror): Likewise.
43577
43578 * normal/parser.y (func_mem): Removed variable.
43579 (menu_entry): Likewise.
43580 (err): Likewise.
43581 (%lex-param): New parser option.
43582 (%parse-param): Likewise.
43583 (script): Always return the AST.
43584 (argument): Pass the state around.
43585 (arguments): Likewise.
43586 (grubcmd): Likewise.
43587 (commands): Likewise.
43588 (function): Likewise.
43589 (menuentry): Likewise.
43590 (if_statement): Likewise.
43591 (if): Likewise.
43592
43593 * normal/script.c (grub_script_memused): Removed variable.
43594 (grub_script_parsed): Likewise.
43595 (grub_script_malloc): Added a state argument. Use that instead of
43596 global variables.
43597 (grub_script_mem_record): Likewise.
43598 (grub_script_mem_record_stop): Likewise.
43599 (grub_script_arg_add): Likewise.
43600 (grub_script_add_arglist): Likewise.
43601 (grub_script_create_cmdline): Likewise.
43602 (grub_script_create_cmdif): Likewise.
43603 (grub_script_create_cmdmenu): Likewise.
43604 (grub_script_add_cmd): Likewise.
43605 (grub_script_parse): Setup the state before calling the parser.
43606
43607 2006-04-16 Marco Gerards <marco@gnu.org>
43608
43609 * normal/command.c (grub_command_init): Remove the title command.
43610
43611 * normal/lexer.c (grub_script_yylex): Renamed from this...
43612 (grub_script_yylex2): ... to this.
43613 (grub_script_yylex): New function. Temporary
43614 introduced to filter some tokens.
43615 (grub_script_yyerror): Print a newline.
43616
43617 * normal/main.c (read_config_file): Output information about the
43618 lines that contain errors. Wait for a key after all lines have
43619 been processed. Don't return an empty menu.
43620
43621 * normal/parser.y (func_mem): Don't initialize.
43622 (menu_entry): Likewise.
43623 (err): New variable.
43624 (script): Don't return anything when an error was encountered.
43625 (ws, returns): Removed rules.
43626 (argument): Disabled concatenated variable support.
43627 (arguments): Remove explicit separators.
43628 (grubcmd): Likewise.
43629 (function): Likewise.
43630 (menuentry): Likewise.
43631 (if): Likewise.
43632 (commands): Likewise. Add error handling.
43633
43634 * normal/script.c (grub_script_create_cmdline): If
43635 `grub_script_parsed' is 0, assume the parser encountered an error.
43636
43637 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
43638
43639 * configure.ac: Add support for EFI. Fix the typo
43640 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
43641
43642 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43643
43644 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
43645 foreign multibyte characters should be shown correctly.
43646
43647 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43648
43649 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
43650 calculation.
43651 (read_config_file): Made it to close file before returning.
43652
43653 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
43654
43655 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
43656 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
43657 video/i386/pc/vbefill.c.
43658
43659 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
43660 video/i386/pc/vbefill.c.
43661
43662 * include/grub/video.h (grub_video_blit_format): New enum.
43663 (grub_video_mode_info): Added new member blit_format.
43664 (grub_video_get_blit_format): New function prototype.
43665
43666 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
43667 function prototype.
43668 (grub_video_vbe_map_rgb): Likewise.
43669 (grub_video_vbe_unmap_color): Likewise.
43670
43671 * include/grub/i386/pc/vbeblit.h: New file.
43672
43673 * include/grub/i386/pc/vbefill.h: New file.
43674
43675 * video/video.c (grub_video_get_blit_format): New function.
43676 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
43677 (grub_video_vbe_map_rgb): Likewise.
43678 (grub_video_vbe_unmap_color): Likewise.
43679
43680 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
43681 optimized fills.
43682 (grub_video_vbe_blit_render_target): Changed to use more optimized
43683 blits.
43684 (grub_video_vbe_setup): Added detection for optimized settings.
43685 (grub_video_vbe_create_render_target): Likewise.
43686
43687 * video/i386/pc/vbeblit.c: New file.
43688
43689 * video/i386/pc/vbefill.c: New file.
43690
43691 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
43692
43693 * font/manager.c (grub_font_get_glyph): Removed font fixup from
43694 here...
43695
43696 * util/unifont2pff.rb: ... and moved it to here. Improved argument
43697 parsing to support both hex and dec ranges. If filename was missing
43698 show usage information.
43699
43700 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
43701
43702 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
43703 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
43704
43705 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
43706 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
43707 (video_mod_SOURCES): Added.
43708 (video_mod_CFLAGS): Likewise.
43709 (video_mod_LDFLAGS): Likewise.
43710 (gfxterm_mod_SOURCES): Likewise.
43711 (gfxterm_mod_CFLAGS): Likewise.
43712 (gfxterm_mod_LDFLAGS): Likewise.
43713 (videotest_mod_SOURCES): Likewise.
43714 (videotest_mod_CFLAGS): Likewise.
43715 (videotest_mod_LDFLAGS): Likewise.
43716 (vesafb_mod_SOURCES): Removed.
43717 (vesafb_mod_CFLAGS): Likewise.
43718 (vesafb_mod_LDFLAGS): Likewise.
43719 (vga_mod_SOURCES): Likewise.
43720 (vga_mod_CFLAGS): Likewise.
43721 (vga_mod_LDFLAGS): Likewise.
43722
43723 * commands/videotest.c: New file.
43724
43725 * font/manager.c (fill_with_default_glyph): Modified to use
43726 grub_font_glyph.
43727 (grub_font_get_glyph): Likewise.
43728 (fontmanager): Renamed from this...
43729 (font_manager): ... to this.
43730
43731 * include/grub/font.h (grub_font_glyph): Added new structure.
43732 (grub_font_get_glyph): Modified to use grub_font_glyph.
43733
43734 * include/grub/misc.h (grub_abs): Added as inline function.
43735
43736 * include/grub/video.h: New file.
43737
43738 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
43739 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
43740 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
43741 (grub_vbe_get_controller_info): Renamed from this...
43742 (grub_vbe_bios_get_controller_info): ... to this.
43743 (grub_vbe_get_mode_info): Renamed from this...
43744 (grub_vbe_bios_get_mode_info): ... to this.
43745 (grub_vbe_set_mode): Renamed from this...
43746 (grub_vbe_bios_set_mode): ... to this.
43747 (grub_vbe_get_mode): Renamed from this...
43748 (grub_vbe_bios_get_mode): ... to this.
43749 (grub_vbe_set_memory_window): Renamed from this...
43750 (grub_vbe_bios_set_memory_window): ... to this.
43751 (grub_vbe_get_memory_window): Renamed from this...
43752 (grub_vbe_bios_get_memory_window): ... to this.
43753 (grub_vbe_set_scanline_length): Renamed from this...
43754 (grub_vbe_set_scanline_length): ... to this.
43755 (grub_vbe_get_scanline_length): Renamed from this...
43756 (grub_vbe_bios_get_scanline_length): ... to this.
43757 (grub_vbe_set_display_start): Renamed from this...
43758 (grub_vbe_bios_set_display_start): ... to this.
43759 (grub_vbe_get_display_start): Renamed from this...
43760 (grub_vbe_bios_get_display_start): ... to this.
43761 (grub_vbe_set_palette_data): Renamed from this...
43762 (grub_vbe_bios_set_palette_data): ... to this.
43763 (grub_vbe_set_pixel_rgb): Removed.
43764 (grub_vbe_set_pixel_index): Likewise.
43765
43766 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
43767 from this...
43768 (grub_vbe_bios_get_controller_info): ... to this.
43769 (grub_vbe_get_mode_info): Renamed from this...
43770 (grub_vbe_bios_get_mode_info): ... to this.
43771 (grub_vbe_set_mode): Renamed from this...
43772 (grub_vbe_bios_set_mode): ... to this.
43773 (grub_vbe_get_mode): Renamed from this...
43774 (grub_vbe_bios_get_mode): ... to this.
43775 (grub_vbe_set_memory_window): Renamed from this...
43776 (grub_vbe_bios_set_memory_window): ... to this.
43777 (grub_vbe_get_memory_window): Renamed from this...
43778 (grub_vbe_bios_get_memory_window): ... to this.
43779 (grub_vbe_set_scanline_length): Renamed from this...
43780 (grub_vbe_set_scanline_length): ... to this.
43781 (grub_vbe_get_scanline_length): Renamed from this...
43782 (grub_vbe_bios_get_scanline_length): ... to this.
43783 (grub_vbe_set_display_start): Renamed from this...
43784 (grub_vbe_bios_set_display_start): ... to this.
43785 (grub_vbe_get_display_start): Renamed from this...
43786 (grub_vbe_bios_get_display_start): ... to this.
43787 (grub_vbe_set_palette_data): Renamed from this...
43788 (grub_vbe_bios_set_palette_data): ... to this.
43789 (grub_vbe_bios_get_controller_info): Fixed problem with registers
43790 getting corrupted after calling it. Added more pushes and pops.
43791 (grub_vbe_bios_set_mode): Likewise.
43792 (grub_vbe_bios_get_mode): Likewise.
43793 (grub_vbe_bios_get_memory_window): Likewise.
43794 (grub_vbe_bios_set_scanline_length): Likewise.
43795 (grub_vbe_bios_get_scanline_length): Likewise.
43796 (grub_vbe_bios_get_display_start): Likewise.
43797 (grub_vbe_bios_set_palette_data): Likewise.
43798
43799 * normal/cmdline.c (cl_set_pos): Refresh the screen.
43800 (cl_insert): Likewise.
43801 (cl_delete): Likewise.
43802
43803 * term/gfxterm.c: New file.
43804
43805 * term/i386/pc/vesafb.c: Removed file.
43806
43807 * video/video.c: New file.
43808
43809 * video/i386/pc/vbe.c (real2pm): Added new function.
43810 (grub_video_vbe_draw_pixel): Likewise.
43811 (grub_video_vbe_get_video_ptr): Likewise.
43812 (grub_video_vbe_get_pixel): Likewise
43813 (grub_video_vbe_init): Likewise.
43814 (grub_video_vbe_fini): Likewise.
43815 (grub_video_vbe_setup): Likewise.
43816 (grub_video_vbe_get_info): Likewise.
43817 (grub_video_vbe_set_palette): Likewise.
43818 (grub_video_vbe_get_palette): Likewise.
43819 (grub_video_vbe_set_viewport): Likewise.
43820 (grub_video_vbe_get_viewport): Likewise.
43821 (grub_video_vbe_map_color): Likewise.
43822 (grub_video_vbe_map_rgb): Likewise.
43823 (grub_video_vbe_map_rgba): Likewise.
43824 (grub_video_vbe_unmap_color): Likewise.
43825 (grub_video_vbe_fill_rect): Likewise.
43826 (grub_video_vbe_blit_glyph): Likewise.
43827 (grub_video_vbe_blit_bitmap): Likewise.
43828 (grub_video_vbe_blit_render_target): Likewise.
43829 (grub_video_vbe_scroll): Likewise.
43830 (grub_video_vbe_swap_buffers): Likewise.
43831 (grub_video_vbe_create_render_target): Likewise.
43832 (grub_video_vbe_delete_render_target): Likewise.
43833 (grub_video_vbe_set_active_render_target): Likewise.
43834 (grub_vbe_set_pixel_rgb): Remove function.
43835 (grub_vbe_set_pixel_index): Likewise.
43836 (index_color_mode): Remove static variable.
43837 (active_mode): Likewise.
43838 (framebuffer): Likewise.
43839 (bytes_per_scan_line): Likewise.
43840 (grub_video_vbe_adapter): Added new static variable.
43841 (framebuffer): Likewise.
43842 (render_target): Likewise.
43843 (initial_mode): Likewise.
43844 (mode_in_use): Likewise.
43845 (mode_list): Likewise.
43846
43847 2006-03-10 Marco Gerards <marco@gnu.org>
43848
43849 * configure.ac (AC_INIT): Bumped to 1.93.
43850
43851 * DISTLIST: Added `include/grub/hfs.h'.
43852
43853 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
43854
43855 * boot/i386/pc/boot.S (general_error): Before looping, try INT
43856 18H, which might help the BIOS falling back to next boot media.
43857
43858 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
43859
43860 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
43861 Poe Chen <poe.poechen@gmail.com>.
43862
43863 2006-01-17 Marco Gerards <marco@gnu.org>
43864
43865 * include/grub/normal.h: Include <grub/script.h>.
43866 (grub_command_list): Removed struct.
43867 (grub_command_list_t): Removed type.
43868 (grub_menu_entry): Remove members `num' and `command_list'. Add
43869 members `commands' and `sourcecode'.
43870 * include/grub/script.h: Add inclusion guards.
43871 (grub_script_cmd_menuentry): New struct.
43872 (grub_script_execute_menuentry): New prototype.
43873 (grub_script_lexer_record_start): Likewise.
43874 (grub_script_lexer_record_stop): Likewise.
43875 * normal/execute.c (grub_script_execute_menuentry): New function.
43876 * normal/lexer.c (record, recording, recordpos, recordlen): New
43877 variables.
43878 (grub_script_lexer_record_start): New function.
43879 (grub_script_lexer_record_stop): Likewise.
43880 (recordchar): Likewise.
43881 (nextchar): Likewise.
43882 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
43883 2048 as the buffer size. Add the tokens `menuentry' and `@'.
43884 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
43885 (current_menu): New variable.
43886 (free_menu): Mainly rewritten.
43887 (grub_normal_menu_addentry): New function.
43888 (read_config_file): Rewritten.
43889 * normal/menu.c (run_menu_entry): Mainly rewritten.
43890 * normal/menu_entry.c (make_screen): Rewritten the code to insert
43891 the menu entry.
43892 (run): Mainly rewritten.
43893 * normal/parser.y (menu_entry): New variable.
43894 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
43895 (menuentry): New rule.
43896 (command): Add `menuentry'.
43897 (if_statement): Allow additional returns before `fi'.
43898 * normal/script.c (grub_script_create_cmdmenu): New function.
43899
43900 2006-01-03 Marco Gerards <marco@gnu.org>
43901
43902 * INSTALL: GNU Bison is required.
43903 * configure.ac: Rewritten the test to detect Bison.
43904 * Makefile.in (YACC): New variable. Reported by Xun Sun
43905 <xun.sun.cn@gmail.com>.
43906
43907 2006-01-03 Marco Gerards <marco@gnu.org>
43908
43909 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
43910 the HFS+ filesystem to filesystem blocks.
43911 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
43912 GCC warning is silenced.
43913
43914 2006-01-03 Marco Gerards <marco@gnu.org>
43915
43916 * partmap/apple.c (apple_partition_map_iterate): Convert the data
43917 read from disk from big endian to host byte order.
43918
43919 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
43920
43921 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
43922 documentation.
43923 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
43924 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
43925 embedded HFS+ filesystem.
43926 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
43927 (grub_hfs_sblock): Move from here...
43928 * include/grub/hfs.h: To here... New file.
43929 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
43930 documentation.
43931 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
43932 New macros.
43933 (grub_hfsplus_volheader): Change type of member `magic' to
43934 `grub_uint16_t'.
43935 (grub_hfsplus_data): Add new member `embedded_offset'.
43936 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
43937 returned block.
43938 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
43939 Calculate the offset.
43940
43941 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43942
43943 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
43944 Removed.
43945 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
43946
43947 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43948
43949 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
43950 ENV->NAME is NULL after allocating ENV->VALUE.
43951
43952 2005-12-25 Marco Gerards <marco@gnu.org>
43953
43954 * kern/env.c (grub_env_set): Rewritten the error handling code.
43955
43956 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43957
43958 * geninit.sh: Made more robust, and more portable.
43959
43960 2005-12-25 Marco Gerards <marco@gnu.org>
43961
43962 Add support for Apple HFS+ filesystems.
43963
43964 * fs/hfsplus.c: New file.
43965
43966 * DISTLIST: Added `fs/hfsplus.c'.
43967
43968 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
43969 (hfsplus_mod_SOURCES): New variable.
43970 (hfsplus_mod_CFLAGS): Likewise.
43971 (hfsplus_mod_LDFLAGS): Likewise.
43972 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
43973 (grub_setup_SOURCES): Likewise.
43974 (grub_mkdevicemap_SOURCES): Likewise.
43975 (grub_emu_SOURCES): Likewise.
43976 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43977
43978 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
43979
43980 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
43981
43982 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43983
43984 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
43985 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
43986 include/grub/parser.h, include/grub/script.h, kern/parser.c,
43987 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
43988 normal/lexer.c, normal/parser.y, normal/script.c, and
43989 partmap/gpt.c.
43990 Removed kern/sparc64/cache.c.
43991
43992 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
43993 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
43994 grub_emu_init.c.
43995
43996 * configure.ac (AC_INIT): Bumped to 1.92.
43997
43998 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
43999
44000 * kern/err.c (grub_error_push): Added new function to support error
44001 stacks.
44002 (grub_error_pop): Likewise.
44003 (grub_error_stack_items): New local variable to support error stacks.
44004 (grub_error_stack_pos): Likewise.
44005 (grub_error_stack_assert): Likewise.
44006 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
44007 stack depth.
44008 (grub_print_error): Added support to print errors from error stack.
44009
44010 * include/grub/err.h (grub_error_push): Added function prototype.
44011 (grub_error_pop): Likewise.
44012
44013 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
44014
44015 * configure.ac: Accept `powerpc64' as host_cpu.
44016 (amd64): Rename to `biarch32'.
44017
44018 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
44019 non-cacheline-aligned addresses.
44020
44021 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
44022 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
44023 if `size' is non-zero.
44024
44025 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
44026
44027 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
44028 and `cd' to make sure the filename is not prefixed with a
44029 directory name.
44030 (pkgdata_MODULES): Add `gpt.mod'.
44031 (gpt_mod_SOURCES): New variable.
44032 (gpt_mod_CFLAGS): Likewise.
44033 (gpt_mod_LDFLAGS): Likewise.
44034
44035 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
44036
44037 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
44038 New macro.
44039
44040 * partmap/gpt.c: New file.
44041
44042 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
44043 GPT partition map is detected.
44044
44045 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
44046
44047 * commands/i386/pc/play.c: New file.
44048 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
44049 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
44050 macros.
44051
44052 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
44053
44054 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
44055 ((unused))' to silence gcc warning.
44056
44057 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
44058
44059 * configure.ac: Correct `AC_PROG_YACC' test.
44060
44061 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44062
44063 * util/powerpc/ieee1275/grub-install.in: Run the mount point
44064 check before installing files.
44065
44066 2005-11-22 Mike Small <smallm@panix.com>
44067
44068 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
44069 number regex so multidigit numbers are recognized correctly.
44070
44071 2005-11-22 Mike Small <smallm@panix.com>
44072
44073 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
44074 debugging message before attempting to claim memory.
44075 (grub_rescue_cmd_initrd): Add a claim debugging message and try
44076 multiple addresses in case of failure.
44077
44078 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44079
44080 * term/tparm.c (get_space): Remove empty `if' statement.
44081
44082 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
44083
44084 * kern/parser.c (check_varstate): Rename `state' to 's'.
44085
44086 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44087
44088 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
44089 variable definitions to the beginning of each function. Sort stack
44090 variables by size.
44091 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
44092 `buf' argument to `char *'.
44093
44094 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44095
44096 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
44097 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
44098 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
44099 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44100 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44101 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44102 configfile.mod, search.mod, gzio.mod and test.mod.
44103 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44104 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44105 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44106 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44107 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44108 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44109 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44110 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44111 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44112 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44113 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44114 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44115 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44116 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44117 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44118 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44119 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44120 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44121 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44122 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44123 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44124 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44125 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
44126
44127 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
44128 `grep --include'.
44129 (pkgdata_MODULES): Add test.mod.
44130
44131 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44132
44133 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
44134 appending to variables with "+=".
44135 (PModule): Use full pathname to generate *.lst filenames.
44136
44137 * Makefile.in: Fixed list rules moved from genmk.rb.
44138 (.DELETE_ON_ERROR): New special target.
44139 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
44140
44141 * conf/i386-pc.rmk: Include conf/common.mk.
44142 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
44143 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
44144 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44145 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44146 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44147 configfile.mod, search.mod, gzio.mod and test.mod.
44148 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44149 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44150 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44151 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44152 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44153 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44154 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44155 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44156 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44157 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44158 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44159 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44160 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44161 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44162 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44163 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44164 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44165 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44166 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44167 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44168 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44169 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44170 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
44171 here...
44172 * conf/common.rmk: ... to here. New file.
44173
44174 * conf/common.mk: New file.
44175
44176 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
44177
44178 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
44179 (grub_script.tab.c): ... here.
44180
44181 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
44182 (grub_script.tab.c): ... here.
44183
44184 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
44185 (grub_script.tab.c): ... here.
44186
44187 * normal/command.c (grub_command_find): Fixed a memory leak of
44188 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
44189
44190 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44191
44192 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
44193 "@" which marks the start of a comment on ARM.
44194 (VARIABLE): Likewise.
44195
44196 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44197
44198 Add support for Linux/ADFS partition tables.
44199
44200 * partmap/acorn.c: New file.
44201
44202 * include/grub/acorn_filecore.h: Likewise.
44203
44204 * DISTLIST: Added `partmap/acorn.c' and
44205 `include/grub/acorn_filecore.h'.
44206
44207 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44208 `partmap/acorn.c'.
44209 (pkgdata_MODULES): Add `acorn.mod'.
44210 (acorn_mod_SOURCES): New variable.
44211 (acorn_mod_CFLAGS): Likewise.
44212
44213 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44214 `partmap/acorn.c'.
44215 (pkgdata_MODULES): Add `acorn.mod'.
44216 (acorn_mod_SOURCES): New variable.
44217 (acorn_mod_CFLAGS): Likewise.
44218
44219 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
44220 (pkgdata_MODULES): Add `acorn.mod'.
44221 (acorn_mod_SOURCES): New variable.
44222 (acorn_mod_CFLAGS): Likewise.
44223 (acorn_mod_LDFLAGS): Likewise.
44224
44225 * include/types.h (grub_disk_addr_t): New typedef.
44226
44227 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
44228
44229 * geninit.sh: New file.
44230
44231 * geninitheader.sh: Likewise.
44232
44233 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
44234 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
44235 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
44236 * commands/configfile.c (grub_configfile_init)
44237 (grub_configfile_fini): Likewise.
44238 * commands/default.c (grub_default_init, grub_default_fini):
44239 Likewise.
44240 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
44241 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
44242 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
44243 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
44244 Likewise.
44245 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
44246 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
44247 Likewise.
44248 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
44249 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
44250 Likewise.
44251 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
44252 Likewise.
44253 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
44254 Likewise.
44255 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
44256 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
44257 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
44258 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
44259 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
44260 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
44261 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
44262 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
44263 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
44264 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
44265 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
44266 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
44267 * partmap/amiga.c (grub_amiga_partition_map_init)
44268 (grub_amiga_partition_map_fini): Likewise.
44269 * partmap/apple.c (grub_apple_partition_map_init)
44270 (grub_apple_partition_map_fini): Likewise.
44271 * partmap/pc.c (grub_pc_partition_map_init)
44272 (grub_pc_partition_map_fini): Likewise.
44273 * partmap/sun.c (grub_sun_partition_map_init,
44274 grub_sun_partition_map_fini): Likewise.
44275 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
44276 Likewise.
44277
44278 * util/grub-emu.c: Include <grub_modules_init.h>.
44279 (main): Don't initialize and de-initialize any modules directly,
44280 use `grub_init_all' and `grub_fini_all' instead.
44281
44282 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
44283 `grub_vesafb_mod_init'.
44284 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
44285 all users.
44286 * term/i386/pc/vga.c (grub_vga_init): Renamed to
44287 `grub_vga_mod_init'. Updated all users.
44288 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
44289
44290 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
44291 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
44292 rules.
44293
44294 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
44295 Generate a function to initialize the module in utilities.
44296 Updated all callers.
44297 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
44298 initialize the module in utilities. Updated all callers.
44299
44300 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44301
44302 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
44303 escape sequence and a literal ^L to clear the screen.
44304
44305 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
44306 when returning from Open Firmware.
44307
44308 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44309
44310 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
44311 (grub_ofconsole_height): Likewise.
44312 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
44313 manually insert a '\n'.
44314 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
44315 `grub_ofconsole_height'. Return early if these are already set.
44316
44317 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
44318
44319 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44320 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
44321 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
44322 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
44323 and `normal/script.c'.
44324 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44325 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44326 (test_mod_SOURCES): New variable.
44327 (test_mod_CFLAGS): Likewise.
44328 (test_mod_LDFLAGS): Likewise.
44329 (pkgdata_MODULES): Add `test.mod'.
44330 (grub_script.tab.c): New rule.
44331 (grub_script.tab.h): Likewise.
44332
44333 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
44334
44335 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44336 `commands/test.c', `normal/execute.c', `normal/lexer.c',
44337 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44338 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44339 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44340 (test_mod_SOURCES): New variable.
44341 (test_mod_CFLAGS): Likewise.
44342 (pkgdata_MODULES): Add `test.mod'.
44343 (grub_script.tab.c): New rule.
44344 (grub_script.tab.h): Likewise.
44345
44346 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
44347
44348 Add initial scripting support.
44349
44350 * commands/test.c: New file.
44351 * include/grub/script.h: Likewise.
44352 * normal/execute.c: Likewise.
44353 * normal/function.c: Likewise.
44354 * normal/lexer.c: Likewise.
44355 * normal/parser.y: Likewise.
44356 * normal/script.c: Likewise.
44357
44358 * configure.ac: Add `AC_PROG_YACC' test.
44359
44360 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
44361 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
44362 `normal/function.c' and `normal/script.c'.
44363 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44364 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44365 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
44366 variables.
44367 (pkgdata_MODULES): Add `test.mod'.
44368 (grub_script.tab.c): New rule.
44369 (grub_script.tab.h): Likewise.
44370
44371 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
44372
44373 * include/grub/normal.h (grub_test_init): New prototype.
44374 (grub_test_fini): Likewise.
44375
44376 * normal/command.c: Include <grub/script.h>.
44377 (grub_command_execute): Rewritten.
44378
44379 * util/grub-emu.c (main): Call `grub_test_init' and
44380 `grub_test_fini'.
44381
44382 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44383
44384 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
44385 to 0.
44386 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
44387 there are no pending characters.
44388
44389 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44390
44391 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
44392 `grub_strndup' to drop device arguments. Replace unnecessary
44393 `grub_strndup' with `grub_strdup'.
44394
44395 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44396
44397 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
44398 `debug' environment variable has been set.
44399
44400 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
44401
44402 * Makefile.in (install-local): Use $(DATA).
44403 (uninstall): Likewise.
44404 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
44405 (sbin_UTILITIES): ... to here.
44406 (sbin_SCRIPTS): New variable.
44407 (grub_install_SOURCES): New variable.
44408 * util/powerpc/ieee1275/grub-install.in: New file.
44409 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
44410 variable.
44411 (add_segments): Call `grub_util_get_path'.
44412
44413 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
44414
44415 From Timothy Baldwin:
44416 * commands/ls.c (grub_ls_list_files): Close FILE with
44417 grub_file_close.
44418 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
44419
44420 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
44421
44422 * include/grub/parser.h: New file.
44423
44424 * kern/parser.c: Likewise.
44425
44426 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
44427 (grub_setup_SOURCES): Likewise.
44428 (grub_probefs_SOURCES): Likewise.
44429 (grub_emu_SOURCES): Likewise.
44430 (kernel_img_HEADERS): Add `parser.h'.
44431
44432 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44433 (grub_emu_SOURCES): Add `kern/parser.c'.
44434 (grubof_SOURCES): Likewise.
44435
44436 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44437 (grubof_SOURCES): Add `kern/parser.c'.
44438
44439 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
44440
44441 * kern/misc.c (grub_split_cmdline): Removed function.
44442
44443 * kern/rescue.c: Include <grub/parser.h>.
44444 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
44445 of `grub_split_cmdline'.
44446
44447 * normal/command.c: Include <grub/parser.h>.
44448 (grub_command_execute): Use `grub_parser_split_cmdline' instead
44449 of `grub_split_cmdline'.
44450
44451 * normal/completion.c: Include <grub/parser.h>.
44452 (cmdline_state): New variable.
44453 (iterate_dir): End the filename with a quote depending on the
44454 command line state.
44455 (get_state): new function.
44456 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
44457 split the arguments and determine the current argument. When the
44458 argument string is not quoted, escape all spaces.
44459
44460 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44461
44462 * normal/sparc64/setjmp.S: New file.
44463
44464 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44465
44466 * include/grub/sparc64/libgcc.h: New file.
44467 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
44468 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
44469 normal/sparc64/setjmp.c.
44470
44471 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44472
44473 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
44474 * kern/sparc64/cache.S: New file.
44475 * kern/sparc64/cache.c: Removed.
44476 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
44477 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
44478 -mtune=ultrasparc.
44479 (COMMON_LDFLAGS): Add -melf64_sparc.
44480 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
44481 (grubof_SOURCES): Use cache.S instead of cache.c.
44482 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
44483 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
44484 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
44485 commented though.
44486 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
44487 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
44488 (linux_mod_CFLAGS): Commented out.
44489 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
44490 out because module isn't built.
44491 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
44492 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
44493 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
44494 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
44495 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
44496 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44497 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44498 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
44499 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
44500 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
44501 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44502 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44503 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
44504 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
44505
44506 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
44507
44508 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
44509 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
44510 longer, because HFS should not be used on PC.
44511
44512 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44513
44514 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
44515 consistently within the loop.
44516
44517 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
44518
44519 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
44520 directory can not be read.
44521
44522 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44523
44524 * configure.ac (AC_INIT): Increase the version number to 1.91.
44525
44526 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
44527 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
44528 term/i386/pc/serial.c.
44529
44530 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44531
44532 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
44533 file size must be permitted.
44534
44535 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
44536 between %ah and %al.
44537
44538 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44539
44540 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
44541 grub_uint64_t.
44542 Call the hook with a NUL-terminated filename.
44543 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
44544 grub_cpu_to_be32.
44545
44546 * kern/term.c (cursor_state): New variable.
44547 (grub_term_set_current): Reset the cursor state on a new
44548 terminal.
44549 (grub_setcursor): Rewritten to use CURSOR_STATE.
44550 (grub_getcursor): New function.
44551
44552 * include/grub/term.h (grub_getcursor): New prototype.
44553
44554 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
44555 integers on ARM. Reported by Timothy Baldwin
44556 <T.E.Baldwin99@members.leeds.ac.uk>.
44557
44558 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
44559
44560 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
44561 allocated.
44562 (grub_sfs_dir): Likewise.
44563
44564 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
44565
44566 Add support for the SFS filesystem.
44567
44568 * fs/sfs.c: New file.
44569
44570 * DISTLIST: Added `fs/sfs.c'.
44571
44572 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
44573 (grub_probefs_SOURCES): Likewise.
44574 (grub_emu_SOURCES): Likewise.
44575 (pkgdata_MODULES): Add `sfs.mod'.
44576 (sfs_mod_SOURCES): New variable.
44577 (sfs_mod_CFLAGS): Likewise.
44578 (sfs_mod_LDFLAGS): Likewise.
44579
44580 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
44581 (pkgdata_MODULES): Add `sfs.mod'.
44582 (sfs_mod_SOURCES): New variable.
44583 (sfs_mod_CFLAGS): Likewise.
44584
44585 * util/grub-emu.c (main): Call `grub_sfs_init' and
44586 `grub_sfs_fini'.
44587
44588 * include/grub/fs.h (grub_sfs_init): New prototype.
44589 (grub_sfs_fini): Likewise.
44590
44591 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
44592
44593 Add support for the AFFS filesystem.
44594
44595 * fs/affs.c: New file.
44596
44597 * DISTLIST: Added `fs/affs.c'.
44598
44599 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
44600 (grub_probefs_SOURCES): Likewise.
44601 (grub_emu_SOURCES): Likewise.
44602 (pkgdata_MODULES): Add `affs.mod'.
44603 (affs_mod_SOURCES): New variable.
44604 (affs_mod_CFLAGS): Likewise.
44605 (affs_mod_LDFLAGS): Likewise.
44606
44607 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
44608 (pkgdata_MODULES): Add `affs.mod'.
44609 (affs_mod_SOURCES): New variable.
44610 (affs_mod_CFLAGS): Likewise.
44611
44612 * util/grub-emu.c (main): Call `grub_affs_init' and
44613 `grub_affs_fini'.
44614
44615 * include/grub/fs.h (grub_affs_init): New prototype.
44616 (grub_affs_fini): Likewise.
44617
44618 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44619
44620 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
44621
44622 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44623
44624 * configure.ac: Accept `x86_64' as host_cpu. In that case add
44625 `-m32' to CFLAGS.
44626
44627 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
44628 linking.
44629
44630 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
44631 (COMMON_LDFLAGS): New variable.
44632 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
44633 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
44634 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
44635 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
44636 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
44637 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
44638 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
44639 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
44640 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
44641 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
44642 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44643 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44644 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
44645 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
44646 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
44647 variables.
44648 (normal_mod_ASFLAGS): Add `-m32'.
44649
44650 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
44651 (grub_host_size_t, grub_host_ssize_t): New types.
44652 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
44653 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
44654 `GRUB_HOST_SIZEOF_VOID_P'.
44655
44656 * include/grub/kernel.h (struct grub_module_header): Type of
44657 member offset changed to `grub_host_off_t'. Type of member size
44658 changed to `grub_host_size_t'.
44659 (struct grub_module_info): Type of member offset changed to
44660 `grub_host_off_t'. Type of member size changed to
44661 `grub_host_size_t'.
44662
44663 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
44664
44665 Make GRUB's kernel compliant to Multiboot Specification.
44666
44667 * kern/i386/pc/startup.S (multiboot_header): New label.
44668 (multiboot_entry): Likewise.
44669 (multiboot_trampoline): Likewise.
44670
44671 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44672 Increased to 0x4A0.
44673
44674 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
44675 put parentheses after a question mark.
44676 [!GRUB_UTIL] (my_mod): New variable.
44677
44678 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
44679
44680 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
44681
44682 Adds support for the XFS filesystem. Btrees are not supported
44683 yet.
44684
44685 * fs/xfs.c: New file.
44686
44687 * DISTLIST: Added `fs/xfs.c'.
44688
44689 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
44690 (grub_probefs_SOURCES): Likewise.
44691 (grub_emu_SOURCES): Likewise.
44692 (pkgdata_MODULES): Add `xfs.mod'.
44693 (xfs_mod_SOURCES): New variable.
44694 (xfs_mod_CFLAGS): Likewise.
44695
44696 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
44697 (pkgdata_MODULES): Add `xfs.mod'.
44698 (xfs_mod_SOURCES): New variable.
44699 (xfs_mod_CFLAGS): Likewise.
44700
44701 * util/grub-emu.c (main): Call `grub_xfs_init' and
44702 `grub_xfs_fini'.
44703
44704 * include/grub/fs.h (grub_xfs_init): New prototype.
44705 (grub_xfs_fini): Likewise.
44706
44707
44708 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
44709
44710 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
44711 color modes, allow greater than 16 colors to be configured as
44712 a default palette.
44713
44714 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44715
44716 * normal/completion.c (complete_arguments): Add the qualifier
44717 const into OPTIONS.
44718
44719 From Omniflux <omniflux+lists@omniflux.com>:
44720 * include/grub/terminfo.h: New file.
44721 * include/grub/tparm.h: Likewise.
44722 * include/grub/i386/pc/serial.h: Likewise.
44723 * term/terminfo.c: Likewise.
44724 * term/tparm.c: Likewise.
44725 * term/i386/pc/serial.c: Likewise.
44726 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
44727 serial.mod.
44728 (terminfo_mod_SOURCES): New variable.
44729 (terminfo_mod_CFLAGS): Likewise.
44730 (serial_mod_SOURCES): Likewise.
44731 (serial_mod_CFLAGS): Likewise.
44732
44733 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
44734
44735 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
44736 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
44737 and kern/powerpc/ieee1275/cmain.c, respectively.
44738
44739 * boot/powerpc/ieee1275/crt0.S: Moved to ...
44740 * kern/powerpc/ieee1275/crt0.S: ... here.
44741
44742 * boot/powerpc/ieee1275/cmain.c: Moved to ...
44743 * kern/powerpc/ieee1275/cmain.c: ... here.
44744
44745 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
44746 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
44747 instead of boot/powerpc/ieee1275/crt0.S and
44748 boot/powerpc/ieee1275/cmain.c, respectively.
44749
44750 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
44751 sectors. It was not used anyway.
44752
44753 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44754
44755 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
44756 `unused parameter' warning.
44757
44758 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44759
44760 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
44761 function.
44762 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
44763 getcharwidth.
44764
44765 2005-08-28 Marco Gerards <metgerards@student.han.nl>
44766
44767 * include/grub/normal.h (enum grub_completion_type): Added
44768 `GRUB_COMPLETION_TYPE_ARGUMENT'.
44769
44770 * normal/cmdline.c (print_completion): Handle
44771 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
44772 * normal/menu_entry.c (store_completion): Likewise.
44773
44774 * normal/completion.c (complete_arguments): New function.
44775 (grub_normal_do_completion): Call `complete_arguments' when the
44776 current words start with a dash.
44777
44778 2005-08-27 Marco Gerards <metgerards@student.han.nl>
44779
44780 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
44781 `gzio.mod' instead of `io.mod').
44782
44783 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
44784
44785 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
44786 (DISTDIRS): Added io and video.
44787 Rewrite the search routine to make an output consistently.
44788
44789 * DISTLIST: Added conf/sparc64-ieee1275.mk,
44790 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
44791 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
44792 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
44793 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
44794 util/powerpc/ieee1275/misc.c.
44795
44796 * include/grub/gzio.h: New file.
44797 * io/gzio.c: Likewise.
44798
44799 * kern/file.c (grub_file_close): Call grub_device_close only if
44800 FILE->DEVICE is not NULL.
44801
44802 * include/grub/mm.h [!NULL] (NULL): New macro.
44803
44804 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
44805
44806 * conf/powerpc-ieee1275.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 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
44812 (pkgdata_MODULES): Added gzio.mod.
44813 (gzio_mod_SOURCES): New variable.
44814 (gzio_mod_CFLAGS): Likewise.
44815
44816 * commands/cat.c: Include grub/gzio.h.
44817 (grub_cmd_cat): Use grub_gzfile_open instead of
44818 grub_file_open.
44819
44820 * commands/cmp.c: Include grub/gzio.h.
44821 (grub_cmd_cmp): Use grub_gzfile_open instead of
44822 grub_file_open.
44823
44824 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
44825 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
44826 grub_file_open.
44827 (grub_rescue_cmd_module): Likewise.
44828
44829 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44830
44831 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
44832 kern/sparc64/ieee1275/init.c because it contains _start.
44833 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
44834
44835 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44836
44837 * configure.ac: Add support for sparc64 host with ieee1275
44838 firmware.
44839 * configure: Generated from configure.ac.
44840 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
44841 instead of int.
44842 (grub_ofdisk_read): Likewise.
44843 (grub_ofdisk_open): Use %p to print pointer values, and cast the
44844 pointers as (void *) to remove a warning.
44845 (grub_ofdisk_close): Likewise.
44846 (grub_ofdisk_read): Likewise.
44847 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
44848 returns, so make it return void to remove a warning.
44849 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
44850 Corresponding prototype change.
44851 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
44852 values, and cast the pointers as (void *) to remove a warning.
44853 (grub_mm_dump): Likewise.
44854 * conf/sparc64-ieee1275.mk: New file.
44855 * conf/sparc64-ieee1275.rmk: Likewise.
44856 * include/grub/sparc64/setjmp.h: Likewise.
44857 * include/grub/sparc64/types.h: Likewise.
44858 * include/grub/sparc64/ieee1275/console.h: Likewise.
44859 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44860 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44861 * include/grub/sparc64/ieee1275/time.h: Likewise.
44862 * kern/sparc64/cache.c: Likewise.
44863 * kern/sparc64/dl.c: Likewise.
44864 * kern/sparc64/ieee1275/init.c: Likewise.
44865 * kern/sparc64/ieee1275/openfw.c: Likewise.
44866
44867 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
44868
44869 * util/console.c (grub_ncurses_putchar): If C is greater than
44870 0x7f, set C to a question mark.
44871 (grub_ncurses_getcharwidth): New function.
44872 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
44873 getcharwidth.
44874
44875 * normal/menu.c (print_entry): Made aware of Unicode. First,
44876 convert TITLE to UCS-4, and predict the cursor position by
44877 grub_getcharwidth.
44878
44879 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
44880 const to SRC.
44881 * kern/misc.c (grub_utf16_to_utf8): Likewise.
44882
44883 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44884
44885 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
44886 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44887 grub_strcat.
44888
44889 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
44890 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44891 grub_strcpy and grub_strlen. Take it into account that a space
44892 character is inserted as a delimiter.
44893
44894 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44895
44896 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
44897 invalid magic in the error.
44898
44899 * commands/search.c: New file.
44900
44901 * util/grub-emu.c (main): Call grub_search_init and
44902 grub_search_fini.
44903
44904 * kern/rescue.c (grub_rescue_print_disks): Removed.
44905 (grub_rescue_print_devices): New function.
44906 (grub_rescue_cmd_ls): Use grub_device_iterate with
44907 grub_rescue_print_devices instead of grub_disk_dev_iterate with
44908 grub_rescue_print_disks.
44909
44910 * kern/partition.c (grub_partition_iterate): Return the result of
44911 PARTMAP->ITERATE instead of GRUB_ERRNO.
44912
44913 * kern/device.c: Include grub/partition.h.
44914 (grub_device_iterate): New function.
44915
44916 * include/grub/partition.h (grub_partition_iterate): Return int
44917 instead of grub_err_t.
44918
44919 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
44920 prototype.
44921 [GRUB_UTIL] (grub_search_fini): Likewise.
44922
44923 * include/grub/device.h (grub_device_iterate): New prototype.
44924
44925 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44926 commands/search.c.
44927 (pkgdata_MODULES): Added search.mod.
44928 (search_mod_SOURCES): New variable.
44929 (search_mod_CFLAGS): Likewise.
44930
44931 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
44932 (pkgdata_MODULES): Added search.mod.
44933 (search_mod_SOURCES): New variable.
44934 (search_mod_CFLAGS): Likewise.
44935
44936 * commands/ls.c (grub_ls_list_disks): Renamed to ...
44937 (grub_ls_list_devices): ... this, and use grub_device_iterate.
44938 All callers changed.
44939
44940 * DISTLIST: Added commands/search.c.
44941
44942 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44943
44944 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
44945 conversion.
44946 (grub_getcharwidth): New function.
44947
44948 * kern/misc.c (grub_utf8_to_ucs4): New function.
44949
44950 * include/grub/term.h (struct grub_term): Added a new member
44951 "getcharwidth".
44952 (grub_getcharwidth): New prototype.
44953
44954 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
44955
44956 * term/i386/pc/console.c (map_char): New function. Segregated from
44957 grub_console_putchar.
44958 (grub_console_putchar): Use map_char.
44959 (grub_console_getcharwidth): New function.
44960 (grub_console_term): Specified grub_console_getcharwidth as
44961 getcharwidth.
44962
44963 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
44964 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
44965
44966 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
44967 GRUB_ERRNO.
44968 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
44969 on grub_strtoul completely.
44970 (write_char): Declare local variables in the beginning of the
44971 function.
44972 (grub_vesafb_getcharwidth): New function.
44973 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
44974 getcharwidth.
44975
44976 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
44977
44978 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
44979 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
44980 commands/i386/pc/vbetest.c.
44981
44982 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
44983 call grub_vbe_get_controller_info again, because the returned
44984 information is volatile.
44985 (grub_vbe_set_video_mode): Mostly rewritten.
44986 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
44987 grub_vbe_status_t correctly.
44988 (grub_vbe_get_video_mode_info): Likewise.
44989 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
44990 several if statements.
44991
44992 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
44993 * commands/i386/pc/vbeinfo.c: ... this.
44994
44995 * commands/i386/pc/vbe_test.c: Renamed to ...
44996 * commands/i386/pc/vbetest.c: ... this.
44997
44998 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
44999 ...
45000 (grub_cmd_vbeinfo): ... this. Save video modes before
45001 iterating. Skip a video mode, if it is not available, not enough
45002 information is given or it is monochrome. Show the memory
45003 model. Leave the interpretation of MODEVAR to grub_strtoul
45004 completely.
45005 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
45006 (GRUB_MOD_FINI): Likewise.
45007
45008 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
45009 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
45010 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
45011 duplicated grub_env_get. Leave the interpretation of MODEVAR to
45012 grub_strtoul completely.
45013 (real2pm): Removed.
45014 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
45015 (GRUB_MOD_FINI): Likewise.
45016
45017 * normal/misc.c: Include grub/mm.h.
45018
45019 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
45020 vbe_list_modes with vbetest.mod and vbeinfo.mod.
45021 (vbe_list_modes_mod_SOURCES): Removed.
45022 (vbe_list_modes_mod_CFLAGS): Likewise.
45023 (vbe_test_mod_SOURCES): Likewise.
45024 (vbe_test_mod_CFLAGS): Likewise.
45025 (vbeinfo_mod_SOURCES): New variable.
45026 (vbeinfo_mod_CFLAGS): Likewise.
45027 (vbetest_mod_SOURCES): Likewise.
45028 (vbetest_mod_CFLAGS): Likewise.
45029
45030 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
45031
45032 * normal/misc.c: New file.
45033
45034 * DISTLIST: Added normal/misc.c.
45035
45036 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
45037 DISK to HOOK. Call HOOK with DISK.
45038 * partmap/apple.c (apple_partition_map_iterate): Likewise.
45039 * partmap/pc.c (pc_partition_map_iterate): Likewise.
45040 * partmap/sun.c (sun_partition_map_iterate): Likewise.
45041
45042 * normal/menu_entry.c (struct screen): Added a new member
45043 "completion_shown".
45044 (completion_buffer): New global variable.
45045 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
45046 (store_completion): New function.
45047 (complete): Likewise.
45048 (clear_completions): Likewise.
45049 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
45050 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
45051 a tab, call complete.
45052
45053 * normal/completion.c (disk_dev): Removed.
45054 (print_simple_completion): Likewise.
45055 (print_partition_completion): Likewise.
45056 (print_func): New global variable.
45057 (add_completion): Do not take the arguments WHAT or PRINT any
45058 longer. Added a new argument TYPE. Instead of printing directly,
45059 call PRINT_FUNC if not NULL.
45060 All callers changed.
45061 (complete_device): Use a local variable DEV instead of
45062 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
45063 (grub_normal_do_completion): Take a new argument HOOK. Do not
45064 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
45065 empty string, return NULL instead.
45066 All callers changed.
45067
45068 * normal/cmdline.c (print_completion): New function.
45069
45070 * kern/partition.c (grub_partition_iterate): Add an argument DISK
45071 to HOOK.
45072 All callers changed.
45073
45074 * kern/disk.c (grub_print_partinfo): Removed.
45075
45076 * include/grub/partition.h (struct grub_partition_map): Add a new
45077 argument DISK into HOOK of ITERATE.
45078 (grub_partition_iterate): Add a new argument DISK to HOOK.
45079
45080 * include/grub/normal.h (enum grub_completion_type): New enum.
45081 (grub_completion_type_t): New type.
45082 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
45083 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
45084 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
45085 (GRUB_COMPLETION_TYPE_FILE): Likewise.
45086 (grub_normal_do_completion): Added a new argument HOOK.
45087 (grub_normal_print_device_info): New prototype.
45088
45089 * include/grub/disk.h (grub_print_partinfo): Removed.
45090
45091 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
45092 (normal_mod_SOURCES): Likewise.
45093 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45094 (normal_mod_SOURCES): Likewise.
45095
45096 * commands/ls.c (grub_ls_list_disks): Use
45097 grub_normal_print_device_info instead of grub_print_partinfo. Free
45098 PNAME.
45099 (grub_ls_list_files): Use grub_normal_print_device_info instead of
45100 duplicating the code.
45101
45102 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45103
45104 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
45105 follow GCS more precisely.
45106 * commands/i386/pc/vbe_test.c: Likewise.
45107 * include/grub/i386/pc/vbe.h: Likewise.
45108 * term/i386/pc/vesafb.c: Likewise.
45109 * video/i386/pc/vbe.c: Likewise.
45110
45111 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45112
45113 * DISTLIST: Added term/i386/pc/vesafb.c
45114 DISTLIST: Added video/i386/pc/vbe.c
45115 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
45116 DISTLIST: Added commands/i386/pc/vbe_test.c.
45117 * commands/i386/pc/vbe_list_modes.c: New file.
45118 * commands/i386/pc/vbe_test.c: Likewise.
45119 * term/i386/pc/vesafb.c: Likewise.
45120 * video/i386/pc/vbe.c: Likewise.
45121 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
45122 (grub_vbe_probe) Added prototype.
45123 (grub_vbe_set_video_mode) Likewise.
45124 (grub_vbe_get_video_mode) Likewise.
45125 (grub_vbe_get_video_mode_info) Likewise.
45126 (grub_vbe_set_pixel_rgb) Likewise.
45127 (grub_vbe_set_pixel_index) Likewise.
45128 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
45129 (pkgdata_MODULES): Added vesafb.mod.
45130 (pkgdata_MODULES): Added vbe_list_modes.mod.
45131 (pkgdata_MODULES): Added vbe_test.mod.
45132 (vbe_mod_SOURCES): Added.
45133 (vbe_mod_CFLAGS): Likewise.
45134 (vesafb_mod_SOURCES): Likewise.
45135 (vesafb_mod_CFLAGS): Likewise.
45136 (vbe_list_modes_mod_SOURCES): Likewise.
45137 (vbe_list_modes_mod_CFLAGS): Likewise.
45138 (vbe_test_mod_SOURCES): Likewise.
45139 (vbe_test_mod_CFLAGS): Likewise.
45140
45141 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
45142
45143 * normal/command.c (grub_command_execute): If INTERACTIVE is
45144 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
45145 CMDLINE. Disable the pager if INTERACTIVE is true.
45146 All callers are changed.
45147
45148 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
45149 before reading a config file.
45150 * normal/main.c (read_config_file): Even if a command is not
45151 found, register it if it is within an entry.
45152
45153 * util/grub-emu.c: Include sys/types.h and unistd.h.
45154 (options): Added --hold.
45155 (struct arguments): Added a new member "hold".
45156 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
45157 missing.
45158 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
45159 cleared by a debugger, if it is not zero.
45160
45161 * include/grub/normal.h (grub_command_execute): Add an argument
45162 INTERACTIVE.
45163
45164 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
45165
45166 * DISTLIST: Added include/grub/i386/pc/vbe.h.
45167
45168 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
45169
45170 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
45171 program with another one, because the old one didn't detect a bug
45172 in gcc-3.4. Always use regparm 2, because the new test is still
45173 not enough for gcc-4.0. Someone must investigate a simple test
45174 case which detects a bug in gcc-4.0.
45175
45176 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
45177
45178 * DISTLIST: Added normal/completion.c.
45179
45180 * normal/completion.c: New file.
45181
45182 * term/i386/pc/console.c (grub_console_getwh): New function.
45183 (grub_console_term): Assign grub_console_getwh to getwh.
45184
45185 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
45186 function is defined in normal/completion.c as
45187 grub_normal_do_completion.
45188 (grub_cmdline_get): Use grub_normal_do_completion instead of
45189 grub_tab_complete.
45190
45191 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
45192 returns non-zero, otherwise return 0.
45193 (grub_partition_iterate): First, probe the partition map. Then,
45194 call ITERATE only for this partition map.
45195
45196 * kern/misc.c (grub_strncmp): Rewritten.
45197
45198 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
45199 returns non-zero. Otherwise return 0.
45200
45201 * include/grub/partition.h (grub_partition_map_iterate): Return
45202 int instead of void.
45203
45204 * include/grub/normal.h (grub_normal_do_completion): New prototype.
45205
45206 * include/grub/misc.h (grub_strncmp): Change the type of N to
45207 grub_size_t.
45208
45209 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
45210 of void.
45211
45212 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
45213 unsigned explicitly before comparing it with I.
45214
45215 * kern/main.c (grub_env_write_root): Add the attribute unused into
45216 VAR.
45217
45218 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45219 normal/completion.c.
45220 (normal_mod_SOURCES): Likewise.
45221 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45222 (normal_mod_SOURCES): Likewise.
45223
45224 * normal/command.c (grub_iterate_commands): If ITERATE returns
45225 non-zero, return one immediately.
45226
45227 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
45228
45229 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
45230 * kern/i386/pc/startup.S: Updated Global Descriptor table's
45231 descriptions.
45232 (grub_vbe_get_controller_info): New function.
45233 (grub_vbe_get_mode_info): Likewise.
45234 (grub_vbe_set_mode): Likewise.
45235 (grub_vbe_get_mode): Likewise.
45236 (grub_vbe_set_memory_window): Likewise.
45237 (grub_vbe_get_memory_window): Likewise.
45238 (grub_vbe_set_scanline_length): Likewise.
45239 (grub_vbe_get_scanline_length): Likewise.
45240 (grub_vbe_set_display_start): Likewise.
45241 (grub_vbe_get_display_start): Likewise.
45242 (grub_vbe_set_palette_data): Likewise.
45243 * include/grub/i386/pc/vbe.h: New file.
45244
45245 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45246
45247 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45248 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
45249 * DISTLIST: Likewise.
45250 * kern/ieee1275/of.c: Moved to ...
45251 * kern/ieee1275/ieee1275.c: ... here.
45252
45253 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45254
45255 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
45256 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
45257 Pass 0 as `end' parameter to grub_strtoul().
45258
45259 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45260
45261 * include/grub/powerpc/ieee1275/console.h: Do not include
45262 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
45263 ifdef.
45264 (grub_console_cur_color): Remove i386-specific prototype.
45265 (grub_console_real_putchar): Likewise.
45266 (grub_console_checkkey): Likewise.
45267 (grub_console_getkey): Likewise.
45268 (grub_console_getxy): Likewise.
45269 (grub_console_gotoxy): Likewise.
45270 (grub_console_cls): Likewise.
45271 (grub_console_setcursor): Likewise.
45272 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
45273 Include <grub/machine/console.h>.
45274 * term/ieee1275/ofconsole.c: Likewise.
45275
45276 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
45277
45278 * Makefile.in (LIBLZO): New variable.
45279
45280 * configure.ac: Check for LZO version 2.
45281
45282 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
45283 lzo/lzo1x.h instead of lzo1x.h.
45284
45285 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
45286 of -llzo.
45287
45288 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
45289 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
45290
45291 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
45292 copying the data from PARTITION to P.
45293
45294 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45295
45296 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
45297 negative, unload the module.
45298
45299 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
45300 map is "pc_partition_map" but not "pc".
45301 (usage): Fix the description. The options are --boot-image and
45302 --core-image but not --boot-file or --core-file.
45303 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
45304 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
45305 DEFAULT_DIRECTORY.
45306
45307 * util/i386/pc/grub-install.in: Do not specify --boot-file or
45308 --core-file. Specify INSTALL_DEVICE as an argument.
45309
45310 * util/console.c: Include config.h.
45311 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
45312 [HAVE_NCURSES_H]: Include ncurses.h.
45313 [HAVE_CURSES_H]: Include curses.h.
45314 [!A_NORMAL] (A_NORMAL): Defined as zero.
45315 [!A_STANDOUT] (A_STANDOUT): Likewise.
45316
45317 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
45318 -lncurses.
45319 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
45320
45321 * configure.ac: Check for curses libraries and headers.
45322
45323 * Makefile.in (LIBCURSES): New variable.
45324
45325 * genmk.rb (Script::rule): Set the executable bits.
45326
45327 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
45328 name of the PC partition map is "pc_partition_map" but not "pc".
45329
45330 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45331
45332 * util/i386/pc/grub-install.in (grub_probefs): New variable.
45333 (modules): Likewise.
45334 (usage): Added descriptions for --modules and --grub-probefs.
45335 Handle --modules and --grub-probefs. Save the arguments in MODULES
45336 and GRUB_PROBEFS, respectively.
45337 Auto-detect a filesystem module against GRUBDIR. If the result is
45338 empty and modules are not specified explicitly, abort the
45339 installation. Add the result to MODULES.
45340
45341 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
45342 disk/powerpc/ieee1275/ofdisk.c,
45343 include/grub/powerpc/ieee1275/init.h and
45344 term/powerpc/ieee1275/ofconsole.c.
45345 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
45346 term/ieee1275/ofconsole.c.
45347
45348 * include/grub/powerpc/ieee1275/console.h: Resurrected.
45349
45350 * COPYING: Upgraded to the latest version. Only the address of the
45351 FSF office has changed.
45352
45353 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45354
45355 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45356 kern/ieee1275.c with kern/ieee1275/of.c.
45357
45358 * kern/ieee1275.c: Moved to ...
45359 * kern/ieee1275/of.c: ... here.
45360
45361 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
45362
45363 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
45364 readability.
45365
45366 * config.guess: Updated to the latest version from gnulib.
45367 * config.sub: Likewise.
45368 * install.sh: Likewise.
45369 * mkinstalldirs: Likewise.
45370
45371 * include/grub/console.h: Removed. This file is arch-specific. Do
45372 not put this in include/grub.
45373
45374 * include/grub/i386/pc/console.h: Resurrected.
45375
45376 * util/console.c: Include grub/machine/console.h instead of
45377 grub/console.h.
45378 * util/grub-emu.c: Likewise.
45379
45380 2005-08-04 Marco Gerards <metgerards@student.han.nl>
45381
45382 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
45383 hardcoded value.
45384
45385 From Vincent Pelletier <subdino2004@yahoo.fr>
45386 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
45387 Redefined to use grub_getwh.
45388 (grub_term): New member named getwh.
45389 (grub_getwh): New prototype.
45390 * kern/term.c (grub_getwh): New function.
45391 * term/i386/pc/console.c (grub_console_getwh): New function.
45392 (grub_console_term): New member `getwh'.
45393 * term/i386/pc/vga.c (grub_vga_getwh): New function.
45394 (grub_vga_term): New member `getwh'.
45395 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
45396 grub_ssize_t.
45397 (grub_ofconsole_getw): New function.
45398 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
45399 (grub_ofconsole_term): New field named getwh and new initial
45400 value.
45401
45402 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
45403
45404 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
45405 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
45406 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
45407 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
45408 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
45409 of <grub/machine/ieee1275.h>.
45410 * commands/ieee1275/reboot.c: Likewise.
45411 * boot/powerpc/ieee1275/ieee1275.c: Move ...
45412 * kern/ieee1275.c: ... to here. All users updated. Change all
45413 parameter structs to use new type `grub_ieee1275_cell_t'.
45414 * term/powerpc/ieee1275/ofconsole.c: Move ...
45415 * term/ieee1275/ofconsole.c: ... to here. All users updated.
45416 * disk/powerpc/ieee1275/ofdisk.c: Move ...
45417 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
45418 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
45419 to return int.
45420 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
45421 Remove unused prototypes. All users updated.
45422 * include/grub/powerpc/ieee1275/console.h: Removed.
45423 * include/grub/powerpc/ieee1275/ieee1275.h: Define
45424 `grub_ieee1275_cell_t'.
45425 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
45426 Cast comparisons with -1 to the correct type.
45427 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
45428 type to match `grub_ieee1275_entry_fn'.
45429
45430 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
45431
45432 * DISTLIST: Added util/i386/pc/grub-probefs.c.
45433
45434 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
45435 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
45436 partmap/sun.c.
45437 (grub_probefs_SOURCES): New variable.
45438
45439 * util/i386/pc/grub-probefs.c: New file.
45440
45441 * util/i386/pc/grub-setup.c (main): Call
45442 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
45443 grub_hfs_init and grub_jfs_init to initialize the system. Call
45444 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
45445 grub_pc_partition_map_fini to finish the system.
45446
45447 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
45448
45449 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
45450 function.
45451 (grub_multiboot_load_elf32): Likewise.
45452 (grub_multiboot_is_elf64): Likewise.
45453 (grub_multiboot_load_elf64): Likewise.
45454 (grub_multiboot_load_elf): Likewise.
45455 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
45456 an ELF32 or ELF64 file.
45457 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
45458
45459 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
45460 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
45461 NULL before calling FS->LABEL.
45462 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
45463 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
45464 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
45465 before calling FS->LABEL.
45466
45467 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
45468
45469 * util/i386/pc/grub-install.in (datadir): New variable.
45470 (libdir): Removed.
45471 (pkgdatadir): New variable.
45472 (pkglibdir): Removed.
45473
45474 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
45475
45476 * DISTLIST: Added util/i386/pc/grub-install.in.
45477
45478 * util/i386/pc/grub-install.in: New file.
45479
45480 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
45481 (grub_install_SOURCES): Likewise.
45482
45483 * genmk.rb: Added support for scripts.
45484 (Script): New class.
45485 (scripts): New variable.
45486
45487 * Makefile.in (install-local): Install sbin_SCRIPTS by
45488 INSTALL_SCRIPT.
45489 (uninstall): Remove sbin_SCRIPTS.
45490
45491 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
45492 device, try to get a GRUB device by
45493 grub_util_biosdisk_get_grub_dev.
45494 Free DEST_DEV.
45495
45496 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
45497 description for --device-map.
45498
45499 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45500
45501 Change the semantics of variable hooks. They now return strings
45502 instead of error values.
45503
45504 * util/i386/pc/grub-setup.c: Include grub/env.h.
45505 (setup): Use grub_device_set_root instead of grub_env_set.
45506
45507 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
45508 grub_env_get instead of grub_device_set_root and
45509 grub_device_get_root, respectively.
45510
45511 * kern/main.c (grub_env_write_root): New function.
45512 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
45513 grub_env_set instead of grub_device_set_root.
45514
45515 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
45516 many variables.
45517 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
45518 rather than calling ENV->WRITE_HOOK afterwards.
45519 (grub_env_get): Return the result of ENV->READ_HOOK rather than
45520 passing a pointer of a pointer.
45521 (grub_register_variable_hook): Change the types of "read_hook" and
45522 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
45523 respectively.
45524 Allocate the default empty string on the heap, because this string
45525 may be freed later.
45526
45527 * kern/device.c: Include grub/env.h.
45528 (grub_device_set_root): Removed.
45529 (grub_device_get_root): Likewise.
45530 (grub_device_open): Use grub_env_get instead of
45531 grub_device_get_root.
45532
45533 * include/grub/env.h (grub_env_read_hook_t): New type.
45534 (grub_env_write_hook_t): Likewise.
45535 (grub_env_var): Change the types of "read_hook" and "write_hook"
45536 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
45537 (grub_register_variable_hook): Likewise.
45538
45539 * include/grub/device.h (grub_device_set_root): Removed.
45540 (grub_device_set_root): Likewise.
45541
45542 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
45543 make sure that DIRNAME terminates with '/', so that
45544 grub_fat_find_dir will fail if PATH is not a directory.
45545
45546 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
45547 from DIRNAME.
45548 Use the qualifier auto for print_files and print_files_long.
45549 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
45550 as a regular file.
45551 Put a newline only if there is no error.
45552 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
45553 used.
45554
45555 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45556
45557 * kern/partition.c (grub_partition_probe): Initialize PART to
45558 NULL. Otherwise, when no partition map is registered, this returns
45559 a garbage.
45560
45561 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
45562
45563 * partmap/apple.c (apple_partition_map_iterate): Check if POS
45564 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
45565 valid.
45566
45567 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
45568
45569 * commands/ls.c (grub_ls_list_disks): Print the filesystem
45570 information on each device, if it does not have partitions. Print
45571 "Device" instead of "Disk", because this function is not specific
45572 to disk devices.
45573
45574 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
45575 static to ensure that it is put on the memory rather than a
45576 register.
45577
45578 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45579
45580 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
45581 (grub_cat_init): Likewise.
45582 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
45583 (options): Likewise.
45584 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
45585 (grub_configfile_init): Likewise.
45586 * font/manager.c (GRUB_MOD_INIT): Likewise.
45587 * commands/help.c (GRUB_MOD_INIT): Likewise.
45588 (grub_help_init): Likewise.
45589 * normal/command.c (grub_command_init): Likewise.
45590 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
45591 * disk/loopback.c (grub_loop_init): Likewise.
45592 (GRUB_MOD_INIT): Likewise.
45593 * commands/ls.c (grub_ls_init): Likewise.
45594 (GRUB_MOD_INIT): Likewise.
45595 (options): Likewise.
45596 * commands/boot.c (grub_boot_init): Likewise.
45597 (GRUB_MOD_INIT): Likewise.
45598 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
45599 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
45600 (GRUB_MOD_INIT): Likewise.
45601 * commands/cmp.c (grub_cmp_init): Likewise.
45602 (GRUB_MOD_INIT): Likewise.
45603
45604 * normal/arg.c: Use <> instead of "" to include header files.
45605 (SHORT_ARG_HELP): New macro.
45606 (SHORT_ARG_USAGE): Likewise.
45607 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
45608 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
45609 descriptions.
45610 (find_short): Check if C is 'h' or 'u' explicitly.
45611 (grub_arg_show_help): Use space characters instead of tabs. Treat
45612 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
45613 are shown with --help and --usage only if they are not used for
45614 the command itself.
45615 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
45616 'h' and 'u'.
45617
45618 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
45619 const into "longarg". Change the type of "shortarg" to int.
45620
45621 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45622
45623 * boot/i386/pc/boot.S (boot_drive_check): New label.
45624
45625 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
45626 macro.
45627
45628 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
45629 which do not pass a boot drive correctly. Copied from GRUB Legacy.
45630
45631 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45632
45633 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
45634 When turning off Gate A20, skip the check and return immediately,
45635 because this is not fatal usually.
45636
45637 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45638
45639 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
45640 be 0x7C00 instead of 0x8000.
45641
45642 * boot/i386/pc/pxeboot.S: Rewritten.
45643
45644 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
45645 EXT_C.
45646 (gate_a20_check_state): Read a byte from 0x108000. Invert the
45647 result.
45648
45649 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
45650
45651 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
45652 robustness. This routine now supports a BIOS call and System
45653 Control Port A to modify the gate A20.
45654
45655 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
45656 Increased to 0x440.
45657
45658 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
45659
45660 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
45661 device path and resulting ihandle.
45662 (grub_ofdisk_close): dprintf the ihandle being closed.
45663 (grub_ofdisk_read): dprintf function parameters.
45664 * kern/mm.c (grub_mm_init_region): Likewise.
45665 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
45666 (grub_linux_boot): dprintf the Linux entry point, initrd address and
45667 size, and boot arguments.
45668 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
45669 before loading into memory.
45670 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
45671 before loading into memory.
45672
45673 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
45674
45675 * kern/mm.c: Added much documentation.
45676 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
45677 8, set to 5 instead of 8.
45678
45679 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45680
45681 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
45682
45683 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
45684 (grub_mkdevicemap_SOURCES): New variable.
45685
45686 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
45687 lib/device.c of GRUB Legacy.
45688
45689 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45690
45691 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
45692 instead of PATH is NULL.
45693
45694 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
45695
45696 * commands/cmp.c (BUFFER_SIZE): New macro.
45697 (grub_cmd_cmp): Close the right file at the right time. Compare
45698 only data just read. Don't report files of different size as
45699 identical. Dynamically allocate buffers. Move variable
45700 declarations at the beginning of function.
45701
45702 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
45703
45704 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
45705 reverse.
45706
45707 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
45708
45709 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
45710 when backspace is pressed at beginning of line.
45711
45712 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
45713
45714 * DISTLIST: Added genfslist.sh.
45715
45716 * normal/main.c (fs_module_list): New variable.
45717 (autoload_fs_module): New function.
45718 (read_fs_list): Likewise.
45719 (grub_normal_execute): Call read_fs_list.
45720
45721 * kern/fs.c (grub_fs_autoload_hook): New variable.
45722 (grub_fs_probe): Added support for auto-loading.
45723
45724 * include/grub/normal.h (struct grub_fs_module_list): New struct.
45725 (grub_fs_module_list_t): New type.
45726
45727 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
45728 (grub_fs_autoload_hook): New prototype.
45729
45730 * genfslist.sh: New file.
45731
45732 * genmk.rb: Added a rule to generate a filesystem list.
45733
45734 2005-06-30 Marco Gerards <metgerards@student.han.nl>
45735
45736 * configure.ac: Fix the test for cross-compiling.
45737
45738 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
45739 define GRUB_UTIL anymore.
45740
45741 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
45742 so this function works on other systems than just big endian.
45743 (load_modules): Likewise.
45744 (add_segments): Likewise.
45745
45746 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
45747
45748 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
45749 contains `l' modifier, get a long from va_arg().
45750
45751 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
45752
45753 * kern/mm.c (grub_free): If the next free block which is being
45754 merged is the first free block, set the first block to the block
45755 being freed.
45756 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
45757
45758 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45759
45760 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
45761 `grub_ieee1275_chosen'.
45762
45763 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45764
45765 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
45766 (grub_ieee1275_chosen): New variable.
45767 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
45768 `chosen'.
45769 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
45770 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45771 Rename first argument to `phandle' for consistency.
45772 (grub_ieee1275_get_property_length): Likewise.
45773 (grub_ieee1275_next_property): Likewise. Change type of first argument
45774 to grub_ieee1275_phandle_t.
45775 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
45776 Move export next to declaration.
45777 (grub_ieee1275_chosen): New variable.
45778 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
45779 Correct cosmetic typo.
45780 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
45781 `grub_ieee1275_chosen'.
45782 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
45783 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
45784 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
45785 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
45786 `grub_ieee1275_chosen'.
45787
45788 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
45789
45790 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
45791 /chosen/bootargs.
45792 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
45793 /chosen/bootargs as "variable=value" pairs.
45794
45795 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
45796
45797 * include/grub/misc.h (grub_dprintf): New macro.
45798 (grub_real_dprintf): New prototype.
45799 (grub_strword): Likewise.
45800 (grub_iswordseparator): Likewise.
45801 * kern/misc.c (grub_real_dprintf): New function.
45802 (grub_strword): Likewise.
45803 (grub_iswordseparator): Likewise.
45804
45805 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
45806
45807 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
45808 (roundup): Remove macro.
45809 (grub_ieee1275_flags): Make static.
45810 (grub_ieee1275_realmode): Remove.
45811 (grub_ieee1275_test_flag): New function.
45812 (grub_ieee1275_set_flag): Likewise.
45813 (find_options): Rename to `grub_ieee1275_find_options'; update
45814 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
45815 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
45816 (cmain): New prototype.
45817 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
45818 `grub_ieee1275_flags' directly.
45819 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
45820 machine/biosdisk.h.
45821 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
45822 Don't include grub/machine/init.h.
45823 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
45824 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
45825 Remove prototype.
45826 (grub_ieee1275_realmode): Likewise.
45827 (grub_ieee1275_flag): New enum.
45828 (grub_ieee1275_test_flag): New prototype.
45829 (grub_ieee1275_set_flag): New prototype.
45830 * include/grub/powerpc/ieee1275/init.h: Remove file.
45831 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
45832 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
45833 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
45834 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
45835 comment.
45836 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
45837 `grub_ieee1275_test_flag'.
45838 (grub_ieee1275_encode_devname): Likewise.
45839
45840 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
45841
45842 * include/grub/powerpc/ieee1275/ieee1275.h
45843 (grub_ieee1275_encode_devname): New prototype.
45844 (grub_ieee1275_get_filename): Likewise.
45845 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
45846 function.
45847 (grub_set_prefix): Likewise.
45848 (grub_machine_init): Call grub_set_prefix.
45849 * kern/powerpc/ieee1275/openfw.c: Fix typos.
45850 (grub_parse_type): New enum.
45851 (grub_ieee1275_get_devargs): New function.
45852 (grub_ieee1275_get_devname): Likewise.
45853 (grub_ieee1275_parse_args): Likewise.
45854 (grub_ieee1275_get_filename): Likewise.
45855 (grub_ieee1275_encode_devname): Likewise.
45856
45857 2005-03-30 Marco Gerards <metgerards@student.han.nl>
45858
45859 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
45860 `grub_loader_unset'.
45861
45862 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
45863
45864 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
45865 instead of grub_ieee1275_interpret.
45866 (grub_halt_init): New function.
45867 (grub_halt_fini): Likewise.
45868 (GRUB_MOD_INIT): Correct message grammar.
45869 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
45870 instead of grub_ieee1275_interpret.
45871 (grub_reboot_init): New function.
45872 (grub_reboot_fini): Likewise.
45873 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
45874 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
45875 util/i386/pc/misc.c with commands/ieee1275/halt.c,
45876 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
45877 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
45878 function.
45879 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
45880 Add prototype.
45881 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
45882 prototype.
45883 (grub_halt): Likewise.
45884 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
45885 (cmain): Remove __attribute__((unused)).
45886 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
45887 (grub_heap_len): Likewise.
45888 (grub_machine_fini): New function.
45889 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
45890 (grub_halt): Likewise.
45891 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
45892 function.
45893 * util/powerpc/ieee1275/misc.c: New file.
45894
45895 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45896
45897 * DISTLIST: New file.
45898 * gendistlist.sh: Likewise.
45899
45900 * Makefile.in (COMMON_DISTFILES): Removed.
45901 (BOOT_DISTFILES): Likewise.
45902 (CONF_DISTFILES): Likewise.
45903 (DISK_DISTFILES): Likewise.
45904 (FS_DISTFILES): Likewise.
45905 (INCLUDE_DISTFILES): Likewise.
45906 (KERN_DISTFILES): Likewise.
45907 (LOADER_DISTFILES): Likewise.
45908 (TERM_DISTFILES): Likewise.
45909 (UTIL_DISTFILES): Likewise.
45910 (DISTFILES): Likewise.
45911 (uninstall): Uninstall files in $(pkgdata_DATA).
45912 (DISTLIST): New target.
45913 (distdir): Use the contents of the file DISTLIST to get a list of
45914 distributed files.
45915
45916 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45917
45918 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
45919 descriptor. This is ported from GRUB Legacy.
45920
45921 * gencmdlist.sh: Added an extra semicolon to make it work with
45922 old sed versions. Reported by Robert Bihlmeyer
45923 <robbe@orcus.priv.at>.
45924
45925 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
45926
45927 Automatic loading of commands is supported.
45928
45929 * normal/main.c (read_command_list): New function.
45930 (grub_normal_execute): Call read_command_list.
45931
45932 * normal/command.c (grub_register_command): Return zero or CMD.
45933 Allocate CMD->NAME from the heap.
45934 Initialize CMD->MODULE_NAME to zero.
45935 Find the same name as well. If the same command is found and it is
45936 a dummy command, overwrite members. If it is not a dummy command,
45937 return zero.
45938 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
45939 (grub_command_find): If a dummy command is found, load a module
45940 and retry to find a command only once.
45941
45942 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
45943 make sure that each command is loaded.
45944
45945 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
45946 macro.
45947 (struct grub_command): Remove const from the member `name'.
45948 Add a new member `module_name'.
45949 (grub_register_command): Return grub_command_t.
45950
45951 * commands/help.c (grub_cmd_help): Call grub_command_find to make
45952 sure that each command is loaded.
45953
45954 * genmk.rb (PModule::rule): Specify a module name without the
45955 suffix ".mod" to gencmdlist.sh.
45956
45957 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45958
45959 * gencmdlist.sh: New file.
45960
45961 * genmk.rb (PModule::rule): Generate a rule for a command list.
45962 Clean command.lst.
45963 Generate command.lst from $(COMMANDFILES).
45964
45965 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
45966 (DATA): Added $(pkgdata_DATA).
45967 (install-local): Install files in $(pkgdata_DATA).
45968
45969 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45970
45971 * term/i386/pc/vga.c (debug_command): Removed.
45972 (GRUB_MOD_INIT): Do not register the command "debug".
45973
45974 From Hollis Blanchard:
45975 * commands/configfile.c: New file.
45976 * conf/i386-pc.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 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45982 commands/configfile.c.
45983 (pkgdata_MODULES): Added configfile.mod.
45984 (configfile_mod_SOURCES): New variable.
45985 (configfile_mod_CFLAGS): Likewise.
45986 * util/grub-emu.c (main): Call grub_configfile_init and
45987 grub_configfile_fini.
45988 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
45989 prototype.
45990 [GRUB_UTIL] (grub_configfile_fini): Likewise.
45991
45992 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45993
45994 * normal/arg.c (grub_arg_show_help): Do not show the bug report
45995 address.
45996
45997 * commands/help.c (grub_cmd_help): Do not print newlines after
45998 the last command in print_command_help.
45999
46000 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
46001
46002 * commands/default.h: New file.
46003 * commands/timeout.h: Likewise.
46004 * normal/context.c: Likewise.
46005
46006 * util/misc.c: Do not include sys/times.h.
46007 Include sys/time.h and grub/machine/time.h.
46008 (grub_get_rtc): Rewritten with gettimeofday.
46009
46010 * util/grub-emu.c (main): Call grub_default_init and
46011 grub_timeout_init before grub_normal_init, and call
46012 grub_timeout_fini and grub_default_fini after grub_main.
46013
46014 * util/console.c (grub_ncurses_checkkey): Return the read
46015 character or -1.
46016
46017 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
46018 timeouts.
46019
46020 * normal/main.c (read_config_file): Push MENU. If this fails,
46021 print an error and wait for a user input.
46022 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
46023 If a menu is empty or an error occurs, pop MENU.
46024 (grub_normal_execute): Pop and free MENU after grub_menu_run
46025 returns.
46026
46027 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
46028
46029 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
46030 include time.h.
46031 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
46032 without GRUB_UTIL.
46033 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
46034 time.h.
46035 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
46036 without GRUB_UTIL.
46037
46038 * include/grub/normal.h (struct grub_menu_list): New struct.
46039 (grub_menu_list_t): New type.
46040 (struct grub_context): New struct.
46041 (grub_context_t): New type.
46042 (grub_register_command): Got rid of EXPORT_FUNC.
46043 (grub_unregister_command): Likewise.
46044 (grub_context_get): New prototype.
46045 (grub_context_get_current_menu): Likewise.
46046 (grub_context_push_menu): Likewise.
46047 (grub_context_pop_menu): Likewise.
46048 [GRUB_UTIL] (grub_default_init): Likewise.
46049 [GRUB_UTIL] (grub_default_fini): Likewise.
46050 [GRUB_UTIL] (grub_timeout_init): Likewise.
46051 [GRUB_UTIL] (grub_timeout_fini): Likewise.
46052
46053 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
46054 commands/timeout.c and normal/context.c.
46055 (pkgdata_MODULES): Added default.mod and timeout.mod.
46056 (normal_mod_SOURCES): Added normal/context.c.
46057 (default_mod_SOURCES): New variable.
46058 (default_mod_CFLAGS): Likewise.
46059 (timeout_mod_SOURCES): Likewise.
46060 (timeout_mod_CFLAGS): Likewise.
46061 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
46062 conf/i386-pc.rmk.
46063 (pkgdata_MODULES): Added default.mod and timeout.mod.
46064 (normal_mod_SOURCES): Added normal/context.c.
46065 (default_mod_SOURCES): New variable.
46066 (default_mod_CFLAGS): Likewise.
46067 (timeout_mod_SOURCES): Likewise.
46068 (timeout_mod_CFLAGS): Likewise.
46069
46070 * Makefile.in (all-local): Added $(MKFILES).
46071
46072 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
46073
46074 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
46075 (grub_emu_SOURCES): Likewise.
46076 (pkgdata_MODULES): Add `sun.mod'.
46077 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46078 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46079 `partmap/sun.c'.
46080 (pkgdata_MODULES): Add `sun.mod'.
46081 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46082 * include/grub/partition.h (grub_sun_partition_map_init): New
46083 prototype.
46084 (grub_sun_partition_map_fini): Likewise.
46085 * partmap/sun.c: New file.
46086 * util/grub-emu.c (main): Initialize and de-initialize the sun
46087 partitionmap support.
46088
46089 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
46090
46091 This implements an Emacs-like menu entry editor.
46092
46093 * normal/menu_entry.c: New file.
46094
46095 * util/console.c (grub_ncurses_putchar): Translate some Unicode
46096 characters to ASCII.
46097 (saved_char): New variable.
46098 (grub_ncurses_checkkey): Rewritten completely.
46099 (grub_ncurses_getkey): Likewise.
46100 (grub_ncurses_init): Call raw instead of cbreak.
46101
46102 * normal/menu.c (print_entry): Do not put a space.
46103 (init_page): Renamed to ...
46104 (grub_menu_init_page): ... this. All callers changed.
46105 (edit_menu_entry): Removed.
46106 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
46107
46108 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
46109
46110 * kern/misc.c (grub_vprintf): Call grub_refresh.
46111
46112 * normal/menu.c (DISP_LEFT): Renamed to ...
46113 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
46114 * normal/menu.c (DISP_UP): Renamed to ...
46115 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
46116 * normal/menu.c (DISP_RIGHT): Renamed to ...
46117 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
46118 * normal/menu.c (DISP_DOWN): Renamed to ...
46119 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
46120 * normal/menu.c (DISP_HLINE): Renamed to ...
46121 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
46122 * normal/menu.c (DISP_VLINE): Renamed to ...
46123 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
46124 * normal/menu.c (DISP_UL): Renamed to ...
46125 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
46126 * normal/menu.c (DISP_UR): Renamed to ...
46127 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
46128 * normal/menu.c (DISP_LL): Renamed to ...
46129 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
46130 * normal/menu.c (DISP_LR): Renamed to ...
46131 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
46132 * normal/menu.c (TERM_WIDTH): Renamed to ...
46133 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
46134 * normal/menu.c (TERM_HEIGHT): Renamed to ...
46135 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
46136 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
46137 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
46138 * normal/menu.c (TERM_MARGIN): Renamed to ...
46139 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
46140 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
46141 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
46142 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
46143 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
46144 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
46145 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
46146 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
46147 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
46148 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
46149 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
46150 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
46151 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
46152 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
46153 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
46154 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
46155 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
46156 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
46157 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
46158 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
46159 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
46160 All callers changed.
46161
46162 * include/grub/normal.h: New prototype.
46163
46164 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46165 normal/menu_entry.c.
46166 (normal_mod_SOURCES): Likewise.
46167 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46168 (normal_mod_SOURCES): Likewise.
46169
46170 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
46171
46172 * include/grub/normal.h (grub_halt_init): New prototype.
46173 (grub_halt_fini): Likewise.
46174 (grub_reboot_init): Likewise.
46175 (grub_reboot_fini): Likewise.
46176
46177 * util/grub-emu.c: Include signal.h.
46178 (main_env): New global variable.
46179 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
46180 catch C-c.
46181 (grub_machine_fini): New function.
46182 (main): Call grub_halt_init and grub_reboot_init before
46183 grub_main, and grub_reboot_fini and grub_halt_fini after it.
46184 Call setjmp with MAIN_ENV to go back afterwards.
46185 Call grub_machine_fini right before return.
46186
46187 * include/grub/util/misc.h: Include setjmp.h.
46188 (main_env): New prototype.
46189
46190 * include/grub/kernel.h (grub_machine_fini): New prototype.
46191 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
46192 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
46193
46194 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
46195 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
46196 * term/i386/pc/console.c (grub_console_fini): Likewise.
46197
46198 * util/i386/pc/misc.c: New file.
46199
46200 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46201 util/i386/pc/misc.c, commands/i386/pc/halt.c and
46202 commands/i386/pc/reboot.c.
46203
46204 2005-02-14 Guillem Jover <guillem@hadrons.org>
46205
46206 * include/grub/dl.h (grub_dl_check_header): New prototype.
46207 (grub_arch_dl_check_header): Change return type to grub_err_t,
46208 remove size parameter and export function. Update all callers.
46209 * kern/dl.c (grub_dl_check_header): New function.
46210 (grub_dl_load_core): Use `grub_dl_check_header' instead of
46211 `grub_arch_dl_check_header'. Check ELF type. Check if sections
46212 are inside the core.
46213 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
46214 independent ELF header checks.
46215 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46216 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
46217 `grub_dl_check_header' instead of explicit checks. Check for the
46218 ELF type.
46219 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
46220 `grub_dl_check_header' instead of explicit checks. Remove arch
46221 specific ELF header checks.
46222
46223 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
46224 argument SIZE.
46225
46226 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
46227
46228 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
46229 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
46230
46231 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
46232
46233 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
46234 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
46235 (part_map_iterate): Clear `grub_errno' and return 0 if
46236 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
46237 * partmap/amiga.c (amiga_partition_map_iterate): Return
46238 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
46239 * partmap/apple.c (apple_partition_map_iterate): Likewise.
46240
46241 2005-02-01 Guillem Jover <guillem@hadrons.org>
46242
46243 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
46244 help info.
46245
46246 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46247
46248 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
46249 Removed prototype.
46250 (grub_rescue_cmd_linux): New prototype.
46251 (grub_rescue_cmd_initrd): Likewise.
46252 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
46253 `bi_rec'.
46254 (grub_linux_release_mem): Release the memory for the initrd.
46255 (grub_load_linux): Renamed from this...
46256 (grub_rescue_cmd_linux): ...To this. Changed all callers.
46257 Changed `entry' not to be static. Loop over memory regions to
46258 find another one when the default fails.
46259 (grub_rescue_cmd_initrd): New function.
46260 (grub_linux_init): Remove function.
46261 (grub_linux_fini): Likewise.
46262 (GRUB_MOD_INIT): Register `initrd'.
46263 (GRUB_MOD_FINI): Unregister `initrd'.
46264 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
46265 Function removed.
46266 (grub_linux_normal_fini): Likewise.
46267 (GRUB_MOD_INIT): Register `initrd'.
46268 (GRUB_MOD_FINI): Unregister `initrd'.
46269
46270 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46271
46272 * commands/help.c: New file.
46273 * normal/arg.c (show_help): Renamed to...
46274 (grub_arg_show_help): ... this.
46275 * commands/i386/pc/halt.c: New file.
46276 * commands/i386/pc/reboot.c: Likewise.
46277 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
46278 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
46279 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
46280 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
46281 variables.
46282 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46283 `commands/help.c'.
46284 (pkgdata_MODULES): Add `help.mod'.
46285 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
46286 * grub/i386/pc/init.h (grub_reboot): New prototype.
46287 (grub_halt): Likewise.
46288 * include/grub/normal.h (grub_arg_show_help): New prototype.
46289 (grub_help_init): Likewise.
46290 (grub_help_fini): Likewise.
46291 * util/grub-emu.c (main): Initialize and deinitialize the help
46292 command.
46293
46294 * normal/cmdline.c (grub_cmdline_get): Doc fix.
46295
46296 * normal/command.c (grub_command_init): Fixed the description of
46297 the `set' and `unset' commands.
46298
46299 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46300
46301 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
46302 function.
46303 * commands/ieee1275/halt.c: New file.
46304 * commands/ieee1275/reboot.c: Likewise.
46305 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
46306 `__attribute__ ((unused))'. Some GCS related fixed.
46307 (grub_suspend_init) [GRUB_UTIL]: Function removed.
46308 (grub_suspend_fini): Likewise.
46309 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
46310 and `halt.mod'.
46311 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
46312 (halt_mod_CFLAGS): New variables.
46313 * include/grub/powerpc/ieee1275/ieee1275.h
46314 (grub_ieee1275_interpret): New prototype.
46315
46316 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
46317
46318 * include/grub/misc.h (memmove): New prototype.
46319 (memcpy): Likewise.
46320
46321 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
46322
46323 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
46324 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
46325
46326 2005-01-22 Marco Gerards <metgerards@student.han.nl>
46327
46328 * kern/misc.c (grub_strndup): Function rewritten.
46329
46330 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
46331
46332 * normal/menu.c (TERM_WIDTH): Macro redefined.
46333 (TERM_TOP_BORDER_Y): Likewise.
46334 (draw_border): Replaced while-loop by a for-loop. Make the number
46335 of lines consistent with the number of lines displayed in
46336 print_entries. Added a margin below the rectangle.
46337 (print_entry): Make the entry fit in the rectangle.
46338 (print_entries): Display the scroll arrows next to the right
46339 border.
46340
46341 2005-01-21 Marco Gerards <metgerards@student.han.nl>
46342
46343 * fs/minix.c (grub_minix_find_file): Reserve more space for
46344 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
46345 `grub_strncpy' to copy `path' into it.
46346
46347 2005-01-21 Marco Gerards <metgerards@student.han.nl>
46348
46349 Add the loopback device, a device via which files can be accessed
46350 as devices.
46351
46352 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
46353 (pkgdata_MODULES): Add loopback.mod.
46354 (loopback_mod_SOURCES): New variable.
46355 (loopback_mod_CFLAGS): Likewise.
46356 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46357 `disk/loopback.c'.
46358 (pkgdata_MODULES): Add loopback.mod.
46359 (loopback_mod_SOURCES): New variable.
46360 (loopback_mod_CFLAGS): Likewise.
46361 * disk/loopback.c: new file.
46362 * include/grub/normal.h (grub_loop_init): New prototype.
46363 (grub_loop_fini): New prototype.
46364 * util/grub-emu.c (main): Initialize and de-initialize loopback
46365 support.
46366 * include/grub/disk.h (grub_disk_dev_id): Add
46367 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
46368
46369 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
46370
46371 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
46372 function.
46373 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
46374 (suspend_mod_SOURCES): New variable.
46375 (suspend_mod_CFLAGS): Likewise.
46376 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
46377 New prototype.
46378 * commands/ieee1275/suspend.c: New file.
46379
46380 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46381
46382 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
46383 ((unused))' to `__attribute__ ((used))'.
46384 (GRUB_MOD_FINI): Likewise.
46385 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
46386 * genmk.rb (PModule): Assign space to common symbols when linking
46387 modules.
46388
46389 2005-01-20 Marco Gerards <metgerards@student.han.nl>
46390
46391 * include/grub/mm.h (grub_mm_init_region): Change the type of the
46392 `unsigned' arguments to `grub_size_t'.
46393 (grub_malloc): Likewise.
46394 (grub_realloc): Likewise.
46395 (grub_memalign): Likewise.
46396 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
46397 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46398 * util/misc.c (grub_malloc): Likewise.
46399 (grub_realloc): Likewise.
46400 * kern/mm.c (get_header_from_pointer): Change the casts to
46401 `unsigned' into a cast to `grub_size_t'.
46402
46403 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
46404 point to `currnode' when `currnode' is changed.
46405
46406 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
46407 Schottelius <nico-linux@schottelius.org>.
46408
46409 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
46410
46411 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
46412 (note_path): Remove variable.
46413 (GRUB_IEEE1275_NOTE_NAME): New macro.
46414 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
46415 (grub_ieee1275_note_hdr): New structure.
46416 (grub_ieee1275_note_desc): Likewise.
46417 (grub_ieee1275_note): Likewise.
46418 (load_note): Remove `dir' argument. All callers updated. Remove
46419 `note_img' and `path'. Do not load a file from `note_path'.
46420 Initialize a struct grub_ieee1275_note and write that to `out'.
46421 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
46422
46423 2005-01-05 Marco Gerards <metgerards@student.han.nl>
46424
46425 * util/misc.c (grub_util_read_image): Revert last change. It
46426 called `grub_util_read_at', which seeks from the beginning of the
46427 file.
46428
46429 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
46430
46431 * TODO: Add note about endianness in grub-mkimage.
46432 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
46433 section.
46434 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
46435 (grub_mkimage_SOURCES): New target.
46436 * include/grub/kernel.h (grub_start_addr): Remove variable.
46437 (grub_end_addr): Likewise.
46438 (grub_total_module_size): Likewise.
46439 (grub_kernel_image_size): Likewise.
46440 (GRUB_MODULE_MAGIC): New constant.
46441 (grub_module_info): New structure.
46442 (grub_arch_modules_addr): New prototype.
46443 (grub_get_end_addr): Remove prototype.
46444 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
46445 * include/grub/powerpc/ieee1275/kernel.h: New file.
46446 * include/grub/util/misc.h (grub_util_get_fp_size): New
46447 prototype.
46448 (grub_util_read_at): Likewise.
46449 (grub_util_write_image_at): Likewise.
46450 * kern/main.c (grub_get_end_addr): Remove function.
46451 (grub_load_modules): Call grub_arch_modules_addr instead of using
46452 grub_end_addr. Look for a grub_module_info struct in memory. Use
46453 the grub_module_info fields instead of calling grub_get_end_addr
46454 as loop conditions. Move grub_add_unused_region code here.
46455 (grub_add_unused_region): Remove function.
46456 * kern/i386/pc/init.c: Include grub/cache.h.
46457 (grub_machine_init): Remove call to grub_get_end_addr. Remove
46458 one call to add_mem_region.
46459 (grub_arch_modules_addr): New function.
46460 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
46461 (grub_total_module_size): Likewise.
46462 Include grub/machine/kernel.h.
46463 (grub_arch_modules_addr): New function.
46464 * util/grub-emu.c (grub_end_addr): Remove variable.
46465 (grub_total_module_size): Likewise.
46466 (grub_arch_modules_addr): New function.
46467 * util/misc.c: Include unistd.h.
46468 (grub_util_get_fp_size): New function.
46469 (grub_util_read_at): Likewise.
46470 (grub_util_write_image_at): Likewise.
46471 (grub_util_read_image): Call grub_util_read_at.
46472 (grub_util_write_image): Call grub_util_write_image_at.
46473 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
46474 additional memory in kernel_img for a struct grub_module_info.
46475 Fill in that grub_module_info.
46476 * util/powerpc/ieee1275/grub-mkimage.c: New file.
46477
46478 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46479
46480 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
46481 New function.
46482 * include/grub/powerpc/ieee1275/ieee1275.h
46483 (grub_ieee1275_milliseconds): New prototype.
46484 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
46485 Change to 1000.
46486 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
46487 grub_ieee1275_milliseconds.
46488
46489 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46490
46491 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
46492 variable.
46493 (find_options): New function.
46494 (cmain): Call find_options.
46495 * include/grub/powerpc/ieee1275/ieee1275.h
46496 (grub_ieee1275_realmode): New extern variable.
46497 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
46498 grub_map if grub_ieee1275_realmode is false.
46499
46500 2004-12-29 Marco Gerards <metgerards@student.han.nl>
46501
46502 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
46503 lines are inserted and make it work like readline. Reported by
46504 Vincent Pelletier <subdino2004@yahoo.fr>.
46505
46506 2004-12-28 Marco Gerards <metgerards@student.han.nl>
46507
46508 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
46509
46510 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
46511 `kern/powerpc/cache.S'.
46512
46513 2004-12-27 Marco Gerards <metgerards@student.han.nl>
46514
46515 * genmk.rb: Handle the `Program' class in the main loop. Written
46516 by Johan Rydberg <jrydberg@gnu.org>.
46517 (Program): New class.
46518 (programs): New variable.
46519 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
46520 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
46521 instead of "grub/kernel.h". Include <grub/machine/init.h>.
46522 (help_arch): Function removed.
46523 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
46524 `powerpc/libgcc.h' and `loader.h'.
46525 (pkgdata_PROGRAMS): New variable.
46526 (sbin_UTILITIES): Variable removed.
46527 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
46528 (grubof_SOURCES): Variable re-defined so it only includes the
46529 core functionality.
46530 (grubof_CFLAGS): Remove `-DGRUBOF'.
46531 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
46532 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
46533 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
46534 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
46535 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
46536 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
46537 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
46538 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
46539 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
46540 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
46541 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
46542 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
46543 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
46544 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
46545 (pc_mod_CFLAGS): New variables.
46546 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
46547 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
46548 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
46549 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
46550 Moved from here...
46551 * include/grub/i386/pc/init.h (grub_os_area_addr)
46552 (rub_os_area_size): ... to here.
46553 * include/grub/powerpc/ieee1275/ieee1275.h
46554 (grub_ieee1275_entry_fn): Export symbol.
46555 * include/grub/powerpc/ieee1275/init.h: New file.
46556 * include/grub/powerpc/libgcc.h: Likewise.
46557 * include/grub/cache.h: Likewise.
46558 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
46559 <hollis@penguinppc.org>.
46560 * kern/dl.c: Include <grub/cache.h>.
46561 (grub_dl_flush_cache): New function.
46562 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
46563 for this module.
46564 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
46565 (grub_console_init): Removed prototypes.
46566 (grub_machine_init): Don't initialize the modules anymore.
46567 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
46568 static.
46569 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
46570 Macro undef removed.
46571 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
46572 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
46573 relocation `R_PPC_REL32'. Return an error when the relocation is
46574 unknown.
46575 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
46576 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
46577 * util/misc.c (grub_arch_sync_caches): Likewise.
46578
46579 2004-12-19 Marco Gerards <metgerards@student.han.nl>
46580
46581 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
46582 `symlist.c', add `grubof_symlist.c'.
46583 (symlist.c): Variable removed.
46584 (grubof_HEADERS): Variable added.
46585 (grubof_symlist.c): New target.
46586 (kernel_syms.lst): Use `grubof_HEADERS' instead of
46587 `kernel_img_HEADERS'.
46588 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
46589 * kern/powerpc/dl.c: New file.
46590 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
46591 Function removed.
46592 (grub_arch_dl_relocate_symbols): Likewise.
46593 (grub_register_exported_symbols): Likewise.
46594
46595 2004-12-13 Marco Gerards <metgerards@student.han.nl>
46596
46597 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
46598 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
46599 to fail instead. Reported by Vincent Pelletier
46600 <subdino2004@yahoo.fr>.
46601
46602 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
46603 it is not allocated. Reported by Vincent Pelletier
46604 <subdino2004@yahoo.fr>.
46605
46606 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
46607 output so the output looks better.
46608
46609 2004-12-04 Marco Gerards <metgerards@student.han.nl>
46610
46611 Modulize the partition map support and add support for the amiga
46612 partition map.
46613
46614 * commands/ls.c: Include <grub/partition.h> instead of
46615 <grub/machine/partition.h>.
46616 * kern/disk.c: Likewise.
46617 * kern/rescue.c: Likewise.
46618 * loader/i386/pc/chainloader.c: Likewise.
46619 * normal/cmdline.c: Likewise.
46620 * kern/powerpc/ieee1275/init.c: Likewise.
46621 (grub_machine_init): Call `grub_pc_partition_map_init',
46622 `grub_amiga_partition_map_init' and
46623 `grub_apple_partition_map_init'.
46624 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
46625 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
46626 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
46627 `partition.h' and `pc_partition.h'.
46628 (grub_setup_SOURCES): Remove
46629 `disk/i386/pc/partition.c'. Add `kern/partition.c',
46630 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46631 (grub_emu_SOURCES): Likewise.
46632 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
46633 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
46634 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
46635 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46636 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
46637 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46638 (grubof_SOURCES): Likewise.
46639 * disk/i386/pc/partition.c: File removed.
46640 * disk/powerpc/ieee1275/partition.c: Likewise.
46641 * include/grub/powerpc/ieee1275/partition.h: Likewise.
46642 * include/grub/i386/pc/partition.h: Likewise.
46643 * kern/partition.c: New file.
46644 * partmap/amiga.c: Likewise.
46645 * partmap/apple.c: Likewise.
46646 * partmap/pc.c: Likewise.
46647 * include/grub/partition.h: Likewise..
46648 * include/grub/pc_partition.h: Likewise.
46649 * util/grub-emu.c: Include <grub/partition.h> instead of
46650 <grub/machine/partition.h>.
46651 (main): Call `grub_pc_partition_map_init',
46652 `grub_amiga_partition_map_init' and
46653 `grub_apple_partition_map_init' and deinitialize afterwards.
46654 * util/i386/pc/biosdisk.c: Include `#include
46655 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46656 `<grub/machine/partition.h>'.
46657 * util/i386/pc/grub-setup.c: Likewise.
46658 * util/i386/pc/biosdisk.c: Likewise.
46659 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
46660 partition information in case of a PC partition.
46661 * util/i386/pc/grub-setup.c: Include `#include
46662 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46663 `<grub/machine/partition.h>'.
46664 (setup): Only access the PC specific partition information in case
46665 of a PC partition.
46666
46667 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
46668
46669 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
46670 (grub_longjmp): Likewise.
46671 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
46672 20.
46673 * normal/powerpc/setjmp.S: New file.
46674 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46675 `normal/powerpc/setjmp.S'.
46676 (grubof_CFLAGS): Add `-DGRUBOF'.
46677 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
46678 [GRUB_UTIL && !GRUBOF].
46679
46680 2004-11-16 Marco Gerards <metgerards@student.han.nl>
46681
46682 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
46683 property named `name'. Correctly handle the error returned by
46684 `grub_ieee1275_finddevice' if a device can not be opened.
46685
46686 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
46687
46688 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
46689 `actual' for negativity.
46690 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46691 kern/fshelp.c.
46692
46693 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46694
46695 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
46696 (PAGE_OFFSET): New macro.
46697 (CRTC_ADDR_PORT): Likewise.
46698 (CRTC_DATA_PORT): Likewise.
46699 (START_ADDR_HIGH_REGISTER): Likewise.
46700 (START_ADDR_LOW_REGISTER): Likewise.
46701 (GRAPHICS_ADDR_PORT): Likewise.
46702 (GRAPHICS_DATA_PORT): Likewise.
46703 (READ_MAP_REGISTER): Likewise.
46704 (INPUT_STATUS1_REGISTER): Likewise.
46705 (INPUT_STATUS1_VERTR_BIT): Likewise.
46706 (page): New variable.
46707 (wait_vretrace): New function.
46708 (set_read_map): Likewise.
46709 (set_start_address): Likewise.
46710 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
46711 the right page.
46712 (check_vga_mem): Take the page into account.
46713 (write_char): Likewise.
46714 (write_cursor): Likewise.
46715 (scroll_up): Likewise. Copy the page to the page that is not
46716 shown and switch between both pages.
46717 (grub_vga_putchar): Fix off by one error.
46718 (grub_vga_cls): Wait for the vertical retrace. Take the page into
46719 account.
46720
46721 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46722
46723 Add support for iso9660 (including rockridge).
46724
46725 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46726 (iso9660_mod_SOURCES): New variable.
46727 (iso9660_mod_CFLAGS): Likewise.
46728 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46729 * include/grub/fs.h (grub_iso9660_init): New prototype.
46730 * util/grub-emu.c (main): Call `grub_iso9660_init'.
46731 * fs/iso9660.c: New file.
46732
46733 * include/grub/misc.h (grub_strncat): New prototype.
46734 * kern/misc.c (grub_strncat): New function.
46735
46736 * fs/hfs.c (grub_hfs_mount): Translate the error
46737 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
46738 * fs/jfs.c (grub_jfs_mount): Likewise.
46739 * fs/ufs.c (grub_ufs_mount): Likewise.
46740
46741 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
46742
46743 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
46744 which initialized BAT registers.
46745 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
46746 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46747 Move from here...
46748 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
46749 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46750 ... to here.
46751 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
46752 (grub_mapclaim): Likewise.
46753 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
46754 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
46755 hand.
46756
46757 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
46758
46759 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
46760 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
46761 -ffreestanding and -msoft-float.
46762
46763 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
46764
46765 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
46766 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
46767 set in grub_ieee1275_flags.
46768
46769 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
46770
46771 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
46772 prototype.
46773 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
46774 grub_console_init first.
46775 Change the memory range used for grub_ieee1275_claim and
46776 grub_mm_init_region.
46777 Print an error message if the claim fails.
46778 Include <grub/misc.h>.
46779
46780 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
46781
46782 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
46783 Call grub_children_iterate for device nodes of type `scsi',
46784 `ide', or `ata'.
46785 (grub_ofdisk_open): Remove manual device alias resolution.
46786 Fix memory leak when device cannot be opened.
46787 * include/grub/powerpc/ieee1275/ieee1275.h
46788 (grub_children_iterate): New prototype.
46789 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
46790 New function.
46791 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46792 Return -1 if args.size was -1.
46793
46794 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46795
46796 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
46797 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
46798 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
46799 Open Firmware's memory for it; claim memory from _start to _end.
46800 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
46801 (_end): New extern.
46802 (_start): Zero BSS from __bss_start to _end.
46803 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46804 New extern.
46805 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
46806
46807 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46808
46809 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
46810 -1 if args.base was -1.
46811
46812 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
46813
46814 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
46815 escape sequence instead of a literal ^L. Also call
46816 grub_ofconsole_gotoxy.
46817
46818 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
46819
46820 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
46821 void * arguments to grub_addr_t. All callers updated. Also make
46822 the `result' argument optional.
46823 (grub_ieee1275_release): change void * arguments to grub_addr_t.
46824 All callers updated.
46825
46826 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
46827
46828 * commands/ls.c (grub_ls_list_files): Use the string following the
46829 initial ')', if present, as the filesystem path.
46830 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
46831
46832 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
46833
46834 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
46835
46836 Make the source code of the menu interface more readable.
46837
46838 * normal/menu.c: Include grub/mm.h.
46839 (TERM_WIDTH): New macro.
46840 (TERM_HEIGHT): Likewise.
46841 (TERM_INFO_HEIGHT): Likewise.
46842 (TERM_MARGIN): Likewise.
46843 (TERM_SCROLL_WIDTH): Likewise.
46844 (TERM_TOP_BORDER_Y): Likewise.
46845 (TERM_LEFT_BORDER_X): Likewise.
46846 (TERM_BORDER_WIDTH): Likewise.
46847 (TERM_MESSAGE_HEIGHT): Likewise.
46848 (TERM_BORDER_HEIGHT): Likewise.
46849 (TERM_NUM_ENTRIES): Likewise.
46850 (TERM_FIRST_ENTRY_Y): Likewise.
46851 (TERM_ENTRY_WIDTH): Likewise.
46852 (TERM_CURSOR_X): Likewise.
46853 (draw_border): Use macros instead of magic numbers.
46854 (print_entry): Likewise.
46855 (print_entries): Likewise.
46856 (run_menu): Likewise. Also, handle the key 'e'.
46857 (run_menu_entry): Ignore empty command lines.
46858 (print_message): Added a new argument EDIT. If EDIT is true,
46859 print a different message.
46860 (init_page): Likewise.
46861 (edit_menu_entry): New function. Not implemented yet.
46862
46863 2004-09-17 Marco Gerards <metgerards@student.han.nl>
46864
46865 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
46866 can be loaded from normal mode.
46867
46868 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
46869 `multiboot.mod'.
46870 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
46871 (multiboot_mod_CFLAGS): New variables.
46872 * loader/i386/pc/linux_normal.c: New file.
46873 * loader/i386/pc/multiboot_normal.c: Likewise.
46874
46875 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
46876 attribute `unused'.
46877
46878 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
46879 `fdiro' to read the mode information from instead of `diro'.
46880
46881 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
46882 looking up a symlink.
46883
46884 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
46885 macro.
46886 * normal/command.c (grub_command_execute): Don't parse the
46887 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
46888 flags of the command.
46889
46890 * normal/menu.c (grub_menu_run): Fix typo.
46891
46892 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
46893
46894 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
46895
46896 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
46897 `y + 1' instead of `y - 1'.
46898
46899 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
46900
46901 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
46902
46903 From Hollis Blanchard <hollis@penguinppc.org>:
46904 * kern/misc.c (memmove): New alias for grub_memmove.
46905 (memcmp): New alias for grub_memcmp.
46906 (memset): New alias for grub_memset.
46907 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46908 Change "int handle" to "grub_ieee1275_phandle_t handle".
46909 * include/grub/powerpc/ieee1275/ieee1275.h
46910 (grub_ieee1275_get_property): Likewise.
46911
46912 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
46913
46914 Added normal mode command `chainloader' as module chain.mod, which
46915 depends on normal.mod and _chain.mod.
46916
46917 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
46918 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
46919 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
46920 Deleted prototype.
46921 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
46922 but arguments parsing moved to ...
46923 (grub_chainloader_cmd): ... here. New function.
46924 * include/grub/i386/pc/chainloader.h: New file.
46925 * loader/i386/pc/chainloader_normal.c: Likewise.
46926
46927 2004-09-11 Marco Gerards <metgerards@student.han.nl>
46928
46929 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
46930 (grub_mkimage_LDFLAGS): Likewise.
46931 (grub_emu_SOURCES): Likewise.
46932 (kernel_img_HEADERS): Added fshelp.h.
46933 * fs/ext2.c: Include <grub/fshelp.h>.
46934 (FILETYPE_REG): New macro.
46935 (FILETYPE_INO_REG): Likewise.
46936 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
46937 Changed all users.
46938 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
46939 all users.
46940 (grub_fshelp_node): New struct.
46941 (grub_ext2_data): Added member `diropen'. Changed member `inode'
46942 to a pointer.
46943 (grub_ext2_get_file_block): Removed function.
46944 (grub_ext2_read_block): New function.
46945 (grub_ext2_read_file): Replaced parameter `data' by `node'.
46946 This function was written.
46947 (grub_ext2_mount): Read the root inode. Create a diropen struct.
46948 (grub_ext2_find_file): Removed function.
46949 (grub_ext2_read_symlink): New function.
46950 (grub_ext2_iterate_dir): Likewise.
46951 (grub_ext2_open): Rewritten.
46952 (grub_ext2_dir): Rewritten.
46953 * include/grub/fshelp.h: New file.
46954 * fs/fshelp.c: Likewise.
46955
46956 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
46957
46958 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
46959 (print_message): Add a missing newline.
46960 (run_menu): Added timeout support.
46961 (run_menu_entry): New local function.
46962 (grub_menu_run): Added support for booting.
46963
46964 * kern/loader.c (grub_loader_is_loaded): New function.
46965
46966 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
46967 (grub_get_rtc): Exported.
46968
46969 * include/grub/i386/pc/time.h: Include grub/symbol.h.
46970 (grub_get_rtc): Exported.
46971
46972 * include/grub/normal.h (struct grub_command_list): Remove
46973 constant from the member `command'.
46974
46975 * include/grub/loader.h (grub_loader_is_loaded): Declared.
46976
46977 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
46978
46979 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
46980
46981 2004-08-28 Marco Gerards <metgerards@student.han.nl>
46982
46983 Add support for the JFS filesystem.
46984
46985 * fs/jfs.c: New file.
46986 * include/grub/fs.h (grub_jfs_init): New prototype.
46987 (grub_jfs_fini): New prototype.
46988 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
46989 (grub_emu_SOURCES): Likewise.
46990 (pkgdata_MODULES): Add jfs.mod.
46991 (jfs_mod_SOURCES): New variable.
46992 (jfs_mod_CFLAGS): Likewise.
46993 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
46994 (grubof_SOURCES): Likewise.
46995 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
46996
46997 * fs/fat.c (grub_fat_find_dir): Convert the filename little
46998 endian to the host endian.
46999 (grub_fat_utf16_to_utf8): Move function from there...
47000 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
47001 the endianness of the source string anymore.
47002 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
47003
47004 2004-08-24 Marco Gerards <metgerards@student.han.nl>
47005
47006 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
47007 (grub_boot_fini) [GRUB_UTIL]: Likewise.
47008 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
47009 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
47010
47011 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
47012 (grub_hfs_iterate_dir): Make the function static. Add prototypes
47013 for `node_found' and `it_dir'.
47014 (grub_hfs_dir): Add prototype for `dir_hook'.
47015
47016 * fs/minix.c (grub_minix_get_file_block): Add prototype for
47017 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
47018 and `indir32' to silence a gcc warning.
47019
47020 * include/grub/fs.h (grub_hfs_init): New prototype.
47021 (grub_hfs_fini): Likewise.
47022
47023
47024 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
47025
47026 Each disk device has its own id now. This is useful to make use
47027 of multiple disk devices.
47028
47029 * include/grub/disk.h (grub_disk_dev_id): New enum.
47030 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
47031 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
47032
47033 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
47034 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
47035
47036 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
47037 GRUB_DISK_DEVICE_OFDISK_ID as an id.
47038
47039 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
47040 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
47041
47042 * include/grub/disk.h (struct grub_disk_dev): Added a new member
47043 "id" which is used by the cache manager.
47044
47045 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
47046 of just "GRUB".
47047
47048 2004-08-18 Marco Gerards <metgerards@student.han.nl>
47049
47050 * fs/hfs.c: New file.
47051 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
47052 (grub_emu_SOURCES): Likewise.
47053 (pkgdata_MODULES): Add hfs.mod.
47054 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
47055 (grubof_SOURCES): Likewise.
47056 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
47057
47058 * include/grub/misc.h (grub_strncasecmp): Add prototype.
47059 * kern/misc.c (grub_strncasecmp): Add function.
47060
47061 2004-08-14 Marco Gerards <metgerards@student.han.nl>
47062
47063 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
47064 with parentheses.
47065
47066 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
47067 (grub_ext2_dir): In case the directory entry type is unknown, read
47068 it from the inode.
47069
47070 2004-08-02 Peter Bruin <pjbruin@dds.nl>
47071
47072 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
47073 grub_load_linux instead of grub_rescue_cmd_linux as second
47074 argument of grub_rescue_register_command.
47075
47076 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
47077
47078 2004-07-27 Marco Gerards <metgerards@student.han.nl>
47079
47080 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
47081 function.
47082 * commands/boot.c: Remove the check for `GRUB_UTIL'.
47083 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
47084 `loader/powerpc/ieee1275/linux.c',
47085 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
47086 * include/grub/powerpc/ieee1275/ieee1275.h
47087 (grub_ieee1275_release): New prototype.
47088 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
47089 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
47090 normal, boot, linux and linux_normal.
47091 * loader/powerpc/ieee1275/linux.c: New file.
47092 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47093
47094 2004-07-12 Marco Gerards <metgerards@student.han.nl>
47095
47096 * normal/arg.c (grub_arg_parse): Correct error handling after
47097 reallocating the argumentlist (check if `argl' is not null instead
47098 of checking if `args' is not null).
47099 * kern/mm.c (grub_realloc): Return the same pointer when using the
47100 same region, instead of returning the header address.
47101
47102 2004-07-11 Marco Gerards <metgerards@student.han.nl>
47103
47104 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
47105 one block instead of two when looking for the initial partition.
47106 (grub_partition_probe): Initialize the local variable `p' with 0.
47107 Use base 10 for the grub_strtoul call.
47108 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
47109 need for one local variable.
47110 (grub_strtoul): Don't add the new value to `num', instead of that
47111 just assign it.
47112
47113 2004-07-11 Marco Gerards <metgerards@student.han.nl>
47114
47115 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
47116 (pxeboot_img_SOURCES): New variable.
47117 (pxeboot_img_ASFLAGS): Likewise.
47118 (pxeboot_img_LDFLAGS): Likewise.
47119 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
47120 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
47121 <lode_leroy@hotmail.com>.
47122
47123 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47124
47125 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
47126 there was no input.
47127
47128 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47129
47130 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
47131 the history buffer logic.
47132
47133 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47134
47135 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
47136 (FILETYPE_INO_SYMLINK): New macros.
47137 (grub_ext2_find_file): Check if the node is a directory using the
47138 inode stat information instead of using the filetype in the
47139 dirent. Exclude the first character of an absolute symlink.
47140 (grub_ext2_dir): Mask out the filetype part of the mode member of
47141 the inode.
47142
47143 2004-05-24 Marco Gerards <metgerards@student.han.nl>
47144
47145 Add support for UFS version 1 and 2. Add support for the minix
47146 filesystem version 1 and 2, both the variants with 14 and 30 long
47147 filenames.
47148
47149 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
47150 fs/minix.c.
47151 (grub_emu_SOURCES): Likewise.
47152 (pkgdata_MODULES): Add ufs.mod and minix.mod.
47153 (ufs_mod_SOURCES): New variable.
47154 (ufs_mod_CFLAGS): Likewise.
47155 (minix_mod_SOURCES): Likewise.
47156 (minix_mod_CFLAGS): Likewise.
47157 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
47158 fs/minix.c.
47159 (grubof_SOURCES): Likewise.
47160 * fs/ufs.c: New file.
47161 * fs/minix.c: New file.
47162 * include/grub/fs.h (grub_ufs_init): New prototype.
47163 (grub_ufs_fini): Likewise.
47164 (grub_minix_init): Likewise.
47165 (grub_minix_fini): Likewise.
47166 * util/grub-emu.c (main): Initialize and deinitialize UFS and
47167 minix fs.
47168
47169 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
47170
47171 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
47172 commands/ls.c, commands/terminal.c, commands/boot.c,
47173 commands/cmp.c and commands/cat.c.
47174 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
47175
47176 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
47177 "env.h"
47178
47179 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47180
47181 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
47182 and grub_, respectively. Because the conversion is trivial and
47183 mechanical, I omit the details here. Please refer to the CVS
47184 if you need more information.
47185
47186 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47187
47188 * include/pupa: Renamed to ...
47189 * include/grub: ... this.
47190 * util/i386/pc/pupa-mkimage.c: Renamed to ...
47191 * util/i386/pc/grub-mkimage.c: ... this.
47192 * util/i386/pc/pupa-setup.c: Renamed to ...
47193 * util/i386/pc/grub-setup.c: ... this.
47194 * util/pupa-emu.c: Renamed to ...
47195 * util/grub-emu.c: ... this.
47196
47197 2004-03-29 Marco Gerards <metgerards@student.han.nl>
47198
47199 Add support for the newworld apple macintosh (PPC). This has been
47200 tested on the powerbook 2000 only. It only adds support for
47201 generic ieee1275 functions, console and disk support. This should
47202 be easy to port to other architectures with support for Open
47203 Firmware.
47204
47205 * configure.ac: Accept the powerpc as host_cpu. In the case of
47206 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
47207 specific tests are only executed while building for the i386.
47208 Inverse test for crosscompile.
47209 * genmk.rb (Utility): Allow assembler files.
47210 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
47211 * conf/powerpc-ieee1275.rmk: New file.
47212 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
47213 * disk/powerpc/ieee1275/partition.c: Likewise.
47214 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
47215 * include/pupa/powerpc/ieee1275/console.h: Likewise.
47216 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
47217 * include/pupa/powerpc/ieee1275/time.h: Likewise.
47218 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
47219 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
47220 * include/pupa/powerpc/ieee1275/loader.h
47221 * include/pupa/powerpc/setjmp.h: Likewise.
47222 * include/pupa/powerpc/types.h: Likewise.
47223 * kern/powerpc/ieee1275/init.c: Likewise.
47224 * kern/powerpc/ieee1275/openfw.c: Likewise.
47225 * term/powerpc/ieee1275/ofconsole.c: Likewise.
47226
47227 These files were written by Johan Rydberg
47228 (jrydberg@night.trouble.net) and I only modified them slightly.
47229
47230 * boot/powerpc/ieee1275/cmain.c: New file.
47231 * boot/powerpc/ieee1275/crt0.S: Likewise.
47232 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
47233 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
47234
47235 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
47236
47237 * Makefile.in: Update copyright.
47238 * genmodsrc.sh: Likewise.
47239 * gensymlist.sh: Likewise.
47240 * term/i386/pc/vga.c: Indent correctly.
47241
47242 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
47243 bugreporting address.
47244 * util/i386/pc/pupa-setup.c (usage): Likewise,
47245 (main): Call pupa_ext2_init and pupa_ext2_fini.
47246
47247 * fs/fat.c (log2): Renamed to ...
47248 (fat_log2): ... this.
47249 All callers changed.
47250 * kern/misc.c (memcpy): Alias to pupa_memmove.
47251 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
47252 lvalue cast.
47253 * util/console.c (pupa_ncurses_fini): Return 0.
47254
47255 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
47256 Move fail label here.
47257 [__GNU__]: Don't warn when using stat.
47258 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
47259 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
47260 long int. Use strtol instead of strtoul.
47261
47262 2004-03-14 Marco Gerards <metgerards@student.han.nl>
47263
47264 * commands/boot.c: New file.
47265 * commands/cat.c: Likewise.
47266 * commands/cmp.c: Likewise.
47267 * commands/ls.c: Likewise.
47268 * commands/terminal.c: Likewise.
47269 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
47270 (pupa_register_command): Changed interface to match the new
47271 argument parser.
47272 (pupa_command_execute): Changed (almost rewritten) so it uses
47273 pupa_split_command. Added support for setting variables using the
47274 syntax `foo=bar'.
47275 (rescue_command): Changed to work with the new argument parser.
47276 (terminal_command): Moved from here to commands/terminal.c.
47277 (set_command): New function.
47278 (unset_command): New function.
47279 (insmod_command): New function.
47280 (rmmod_command): New function.
47281 (lsmod_command): New function.
47282 (pupa_command_init): Don't initialize the command terminal
47283 anymore. Initialize the commands set, unset, insmod, rmmod and
47284 lsmod.
47285 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
47286 (kernel_img_HEADERS): Add arg.h and env.h.
47287 (pupa_mkimage_LDFLAGS): Add kern/env.c.
47288 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
47289 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
47290 normal/arg.c.
47291 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
47292 terminal.mod.
47293 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
47294 (boot_mod_SOURCES): New variable.
47295 (terminal_mod_SOURCES): Likewise.
47296 (ls_mod_SOURCES): Likewise.
47297 (cmp_mod_SOURCES): Likewise.
47298 (cat_mod_SOURCES): Likewise.
47299
47300 * normal/arg.c: New file.
47301 * kern/env.c: Likewise.
47302 * include/pupa/arg.h: Likewise.
47303 * include/pupa/env.h: Likewise.
47304 * font/manager.c (font_command): Changed to match argument parsing
47305 interface changes.
47306 (PUPA_MOD_INIT): Likewise.
47307 * hello/hello.c (pupa_cmd_hello): Likewise.
47308 (PUPA_MOD_INIT): Likewise.
47309 * include/pupa/disk.h: Include <pupa/device.h>.
47310 (pupa_print_partinfo): New prototype.
47311 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
47312 (pupa_dl_get_prefix): Likewise.
47313 * include/pupa/misc.h: Include <pupa/err.h>.
47314 (pupa_isgraph): New prototype.
47315 (pupa_isdigit): Likewise.
47316 (pupa_split_cmdline): Likewise.
47317 * include/pupa/normal.h: Include <pupa/arg.h>.
47318 (pupa_command): Changed the prototype of the member `func' to
47319 match the argument parsing interface. Added member `options'.
47320 (pupa_register_command): Updated to match function.
47321 (pupa_arg_parse): New prototype.
47322 (pupa_hello_init) [PUPA_UTIL]: New prototype.
47323 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
47324 (pupa_ls_init) [PUPA_UTIL]: Likewise.
47325 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
47326 (pupa_cat_init) [PUPA_UTIL]: Likewise.
47327 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
47328 (pupa_boot_init) [PUPA_UTIL]: Likewise.
47329 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
47330 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
47331 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
47332 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
47333 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
47334 * kern/disk.c: Include <pupa/file.h>.
47335 (pupa_print_partinfo): New function.
47336 * kern/dl.c: Include <pupa/env.h>.
47337 (pupa_dl_dir): Variable removed.
47338 (pupa_dl_load): Use the environment variable `prefix' instead of
47339 the variable pupa_dl_dir.
47340 (pupa_dl_set_prefix): Function removed.
47341 (pupa_dl_get_prefix): Likewise.
47342 * kern/i386/pc/init.c: Include <pupa/env.h>.
47343 (pupa_machine_init): Use the environment variable `prefix' instead of
47344 using pupa_dl_set_prefix to set the prefix.
47345 * kern/main.c: Include <pupa/env.h>.
47346 (pupa_set_root_dev): Use the environment variable `prefix' instead of
47347 using pupa_dl_get_prefix to get the prefix.
47348 * kern/misc.c: Include <pupa/env.h>.
47349 (pupa_isdigit): New function.
47350 (pupa_isgraph): Likewise.
47351 (pupa_ftoa): Likewise.
47352 (pupa_vsprintf): Added support for printing values of the type
47353 `double'. Make it possible to format variable output when using
47354 formatting like `%1.2%f'.
47355 (pupa_split_cmdline): New function.
47356 * kern/rescue.c: Include <pupa/env.h>.
47357 (next_word): Removed function.
47358 (pupa_rescue_cmd_prefix): Likewise.
47359 (pupa_rescue_cmd_set): New function.
47360 (pupa_rescue_cmd_unset): New function.
47361 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
47362 split the command line instead of splitting it here. Added
47363 support for setting variables using the syntax `foo=bar'. Don't
47364 initialize the prefix command anymore. Initialized the set and
47365 unset commands.
47366 * normal/cmdline.c: Include <pupa/env.h>.
47367 (pupa_tab_complete): Added prototypes for print_simple_completion,
47368 print_partition_completion, add_completion, iterate_commands,
47369 iterate_dev, iterate_part and iterate_dir. Moved code to print
47370 partition information from here to kern/disk.c.
47371 (pupa_cmdline_run): Don't check if the function exists anymore.
47372 * normal/main.c: Include <pupa/env.h>.
47373 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
47374 instead of using pupa_dl_get_prefix to get the prefix.
47375 * term/i386/pc/vga.c: Include <pupa/arg.h>.
47376 (check_vga_mem): Cast pointers to `void *' to silence a gcc
47377 warning.
47378 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
47379 (pupa_vga_setcolor): Declare unused variables with `__attribute__
47380 ((unused))' to silence a gcc warning.
47381 (pupa_vga_setcolor): Likewise.
47382 (debug_command): Changed to match argument parsing
47383 interface changes.
47384 * util/pupa-emu.c: Include <pupa/env.h>.
47385 (options): Added 0's for unused fields to silence a gcc warning.
47386 (argp): Likewise.
47387 (main): Use the environment variable `prefix' instead of using
47388 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
47389 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
47390 and terminal.
47391
47392 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
47393 * util/misc.c: Include <malloc.h>.
47394 (pupa_malloc): Rewritten so errors are correctly reported.
47395 (pupa_realloc): Likewise.
47396 (pupa_memalign): Likewise.
47397 (pupa_mm_init_region): Declare unused variables with
47398 `__attribute__ ((unused))' to silence a gcc warning.
47399 * normal/i386/setjmp.S: Remove tab at the end of the file to
47400 silence a gcc warning.
47401 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
47402 variables with `__attribute__ ((unused))' to silence a gcc
47403 warning.
47404 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
47405 local variable i unsigned to silence a gcc warning.
47406
47407 * kern/term.c: Include <pupa/misc.h>.
47408 (pupa_more_lines): New variable.
47409 (pupa_more): Likewise.
47410 (pupa_putcode): When the pager is active pause at the end of every
47411 screen.
47412 (pupa_set_more): New function.
47413 * include/pupa/term.h (pupa_set_more): New prototype.
47414
47415
47416 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
47417
47418 Now this project is GRUB 2 rather than PUPA. The location of
47419 the CVS repository was moved to GRUB's.
47420
47421 * configure.ac: Use bug-grub as the reporting address.
47422 Use GRUB instead of PUPA.
47423 Change the version number to 1.90.
47424
47425 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
47426
47427 * genkernsyms.sh: Updated copyright information.
47428 * genmk.rb: Likewise.
47429 * genmodsrc.sh: Likewise.
47430 * gensymlist.sh: Likewise.
47431 * boot/i386/pc/boot.S: Likewise.
47432 * boot/i386/pc/diskboot.S: Likewise.
47433 * disk/i386/pc/biosdisk.c: Likewise.
47434 * disk/i386/pc/partition.c: Likewise.
47435 * font/manager.c: Likewise.
47436 * fs/ext2.c: Likewise.
47437 * fs/fat.c: Likewise.
47438 * include/pupa/boot.h: Likewise.
47439 * include/pupa/device.h: Likewise.
47440 * include/pupa/disk.h: Likewise.
47441 * include/pupa/dl.h: Likewise.
47442 * include/pupa/elf.h: Likewise.
47443 * include/pupa/err.h: Likewise.
47444 * include/pupa/file.h: Likewise.
47445 * include/pupa/font.h: Likewise.
47446 * include/pupa/fs.h: Likewise.
47447 * include/pupa/kernel.h: Likewise.
47448 * include/pupa/loader.h: Likewise.
47449 * include/pupa/misc.h: Likewise.
47450 * include/pupa/mm.h: Likewise.
47451 * include/pupa/net.h: Likewise.
47452 * include/pupa/normal.h: Likewise.
47453 * include/pupa/rescue.h: Likewise.
47454 * include/pupa/setjmp.h: Likewise.
47455 * include/pupa/symbol.h: Likewise.
47456 * include/pupa/term.h: Likewise.
47457 * include/pupa/types.h: Likewise.
47458 * include/pupa/i386/setjmp.h: Likewise.
47459 * include/pupa/i386/types.h: Likewise.
47460 * include/pupa/i386/pc/biosdisk.h: Likewise.
47461 * include/pupa/i386/pc/boot.h: Likewise.
47462 * include/pupa/i386/pc/console.h: Likewise.
47463 * include/pupa/i386/pc/init.h: Likewise.
47464 * include/pupa/i386/pc/kernel.h: Likewise.
47465 * include/pupa/i386/pc/linux.h: Likewise.
47466 * include/pupa/i386/pc/loader.h: Likewise.
47467 * include/pupa/i386/pc/memory.h: Likewise.
47468 * include/pupa/i386/pc/multiboot.h: Likewise.
47469 * include/pupa/i386/pc/partition.h: Likewise.
47470 * include/pupa/i386/pc/time.h: Likewise.
47471 * include/pupa/i386/pc/vga.h: Likewise.
47472 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
47473 * include/pupa/util/getroot.h: Likewise.
47474 * include/pupa/util/misc.h: Likewise.
47475 * include/pupa/util/resolve.h: Likewise.
47476 * kern/device.c: Likewise.
47477 * kern/disk.c: Likewise.
47478 * kern/dl.c: Likewise.
47479 * kern/err.c: Likewise.
47480 * kern/file.c: Likewise.
47481 * kern/fs.c: Likewise.
47482 * kern/loader.c: Likewise.
47483 * kern/main.c: Likewise.
47484 * kern/misc.c: Likewise.
47485 * kern/mm.c: Likewise.
47486 * kern/rescue.c: Likewise.
47487 * kern/term.c: Likewise.
47488 * kern/i386/dl.c: Likewise.
47489 * kern/i386/pc/init.c: Likewise.
47490 * kern/i386/pc/lzo1x.S: Likewise.
47491 * kern/i386/pc/startup.S: Likewise.
47492 * loader/i386/pc/chainloader.c: Likewise.
47493 * loader/i386/pc/linux.c: Likewise.
47494 * loader/i386/pc/multiboot.c: Likewise.
47495 * normal/cmdline.c: Likewise.
47496 * normal/command.c: Likewise.
47497 * normal/main.c: Likewise.
47498 * normal/menu.c: Likewise.
47499 * normal/i386/setjmp.S: Likewise.
47500 * term/i386/pc/console.c: Likewise.
47501 * term/i386/pc/vga.c: Likewise.
47502 * util/console.c: Likewise.
47503 * util/genmoddep.c: Likewise.
47504 * util/misc.c: Likewise.
47505 * util/pupa-emu.c: Likewise.
47506 * util/resolve.c: Likewise.
47507 * util/unifont2pff.rb: Likewise.
47508 * util/i386/pc/biosdisk.c: Likewise.
47509 * util/i386/pc/getroot.c: Likewise.
47510 * util/i386/pc/pupa-mkimage.c: Likewise.
47511 * util/i386/pc/pupa-setup.c: Likewise.
47512
47513 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
47514
47515 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
47516 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
47517 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
47518 reading and reset it after reading.
47519 (pupa_ext2_close): Return PUPA_ERR_NONE.
47520
47521 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
47522 Correct value.
47523 (struct linux_kernel_header): Add kernel_version and
47524 initrd_addr_max.
47525 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
47526 pupa_file_read succeeds.
47527 (pupa_rescue_cmd_initrd): Implement.
47528
47529 2003-12-03 Marco Gerards <metgerards@student.han.nl>
47530
47531 * fs/ext2.c (pupa_ext2_label): New function.
47532 (pupa_ext2_fs): Added label.
47533 * fs/fat.c (pupa_fat_label): New function.
47534 (pupa_fat_fs): Added label.
47535 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
47536
47537 * kern/misc.c (pupa_strndup): New function.
47538 * include/pupa/misc.h (pupa_strndup): New prototype.
47539
47540 * include/pupa/normal.h: Include <pupa/err.h>.
47541 (pupa_set_history): New prototype.
47542 (pupa_iterate_commands): New prototype.
47543 * normal/cmdline.c: Include <pupa/machine/partition.h>,
47544 <pupa/disk.h>, <pupa/file.h>.
47545 (hist_size): New variable.
47546 (hist_lines): Likewise.
47547 (hist_end): Likewise.
47548 (hist_used): Likewise.
47549 (pupa_set_history): New function.
47550 (pupa_history_get): Likewise.
47551 (pupa_history_add): Likewise.
47552 (pupa_history_replace): Likewise.
47553 (pupa_tab_complete): Likewise.
47554 (pupa_cmdline_run): Added tab completion and history buffer. Tab
47555 completion shows partitionnames while completing partitions, this
47556 feature was suggested by Jeff Bailey.
47557 * normal/command.c (pupa_iterate_commands): New function.
47558 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
47559 (pupa_normal_init): Initialize history buffer.
47560 (PUPA_MOD_INIT): Likewise.
47561 (pupa_normal_fini): Free the history buffer.
47562 (PUPA_MOD_FINI): Likewise.
47563
47564 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
47565 key.
47566
47567 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
47568 * configure.ac [i386]: Check for regparam bug.
47569 (NESTED_FUNC_ATTR) [! i386]: Defined.
47570
47571 2003-11-17 Marco Gerards <metgerards@student.han.nl>
47572
47573 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
47574 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
47575 (pupa_emu_SOURCES): New variable.
47576 (pupa_emu_LDFLAGS): Likewise.
47577 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
47578 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
47579 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
47580 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47581 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
47582 (pupa_jmp_buf): New typedef.
47583 (pupa_setjmp) [PUPA_UTIL]: New macro.
47584 (pupa_longjmp) [PUPA_UTIL]: Likewise.
47585 * include/pupa/term.h (struct pupa_term): New member `refresh'.
47586 (pupa_refresh): New prototype.
47587 * include/pupa/util/getroot.h: New file.
47588 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
47589 it.
47590 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
47591 (pupa_rescue_cmd_cat): Likewise.
47592 (pupa_rescue_cmd_ls): Likewise.
47593 (pupa_rescue_cmd_testload): Likewise.
47594 (pupa_rescue_cmd_lsmod): Likewise.
47595 * normal/cmdline.c (pupa_cmdline_get): Likewise.
47596 * normal/menu.c (run_menu): Likewise.
47597 * kern/term.c (pupa_cls): Likewise.
47598 (pupa_refresh): New function.
47599 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
47600 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47601 * util/console.c: New file.
47602
47603 * util/i386/pc/getroot.c: New file.
47604 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
47605 (pupa_putchar): New function.
47606 (pupa_refresh): Likewise.
47607 (xgetcwd): Function moved to ...
47608 (strip_extra_slashes): Likewise.
47609 (get_prefix): Likewise.
47610 * util/i386/pc/getroot.c: ... here.
47611 (find_root_device): Function moved and renamed to...
47612 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
47613 Changed all callers.
47614 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
47615 and renamed to...
47616 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
47617 Changed all callers.
47618 * util/misc.c (pupa_memalign): New function.
47619 (pupa_mm_init_region): Likewise.
47620 (pupa_register_exported_symbols): Likewise.
47621 (pupa_putchar): Function removed.
47622 * util/pupa-emu.c: New file.
47623
47624 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
47625
47626 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
47627 (_multiboot_mod_SOURCES): New variable.
47628 (_multiboot_mod_CFLAGS): Likewise.
47629 * loader/i386/pc/multiboot.c: New file.
47630 * include/pupa/i386/pc/multiboot.h: Likewise.
47631 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
47632 (pupa_multiboot_real_boot): New function.
47633 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
47634 (pupa_multiboot_real_boot): New prototype.
47635 (pupa_rescue_cmd_multiboot): Likewise
47636 (pupa_rescue_cmd_module): Likewise.
47637
47638 * kern/loader.c (pupa_loader_set): Continue when
47639 pupa_loader_unload_func() fails.
47640 (pupa_loader_unset): New function.
47641 * include/pupa/loader.h (pupa_loader_unset): New prototype.
47642
47643 * kern/misc.c (pupa_stpcpy): New function.
47644 * include/pupa/misc.h (pupa_stpcpy): New prototype.
47645
47646 2003-11-12 Marco Gerards <metgerards@student.han.nl>
47647
47648 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
47649 for available extensions.
47650
47651 * include/pupa/i386/pc/time.h: New file.
47652 * kern/disk.c: Include <pupa/machine/time.h>.
47653 (PUPA_CACHE_TIMEOUT): New macro.
47654 (pupa_last_time): New variable.
47655 (pupa_disk_open): Flush the cache when there was a timeout.
47656 (pupa_disk_close): Reset the timer.
47657 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
47658 pupa_currticks.
47659 * util/misc.c: Include <sys/times.h>
47660 (pupa_get_rtc): New function.
47661
47662 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47663
47664 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
47665 as blocks.
47666 (pupa_ext2_get_file_block): Use blocks member.
47667
47668 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
47669 first block. Return -1 instead of pupa_errno on error.
47670
47671 2003-10-27 Marco Gerards <metgerards@student.han.nl>
47672
47673 * README: In the pupa-mkimage example use _chain instead of chain
47674 and ext2 instead of fat.
47675 * TODO: Replace ext2fs with jfs as an example. Add an item for
47676 adding journal playback for ext2fs.
47677 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
47678 (pkgdata_MODULES): Added ext2.mod.
47679 (ext2_mod_SOURCES): New variable.
47680 (ext2_mod_CFLAGS): Likewise.
47681 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
47682 * include/pupa/misc.h (pupa_strncpy): New prototype.
47683 (pupa_strcat): Likewise.
47684 (pupa_strncmp): Likewise.
47685 * kern/misc.c (pupa_strcat): Enable function.
47686 (pupa_strncpy): New function.
47687 (pupa_strncmp): Likewise.
47688 * fs/ext2.c: New file.
47689
47690 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
47691 when the read failed before retrying.
47692 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
47693 (_FILE_OFFSET_BITS): Likewise.
47694 * configure.ac: Added AC_SYS_LARGEFILE.
47695
47696 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47697
47698 * genmk.rb (PModule#rule): Make sure to get only symbol names
47699 from the output of nm.
47700 Reported by Robert Millan <rmh.grub@aybabtu.com>.
47701
47702 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47703
47704 I forgot to check in these changes for a long time. This adds
47705 incomplete support for VGA console, and this is still very
47706 buggy. Also, a lot of consideration is required for I18N,
47707 UNICODE, and VGA font issues. Therefore, assume that this is
47708 such that "better than nothing".
47709
47710 * font/manager.c: New file.
47711 * include/pupa/font.h: Likewise.
47712 * include/pupa/i386/pc/vga.h: Likewise.
47713 * term/i386/pc/vga.c: Likewise.
47714 * util/unifont2pff.rb: Likewise.
47715
47716 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
47717 (pkgdata_MODULES): Added vga.mod and font.mod.
47718 (vga_mod_SOURCES): New variables.
47719 (vga_mod_CFLAGS): Likewise.
47720 (font_mod_SOURCES): Likewise.
47721 (font_mod_CFLAGS): Likewise.
47722
47723 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
47724
47725 * include/pupa/term.h: Include pupa/err.h.
47726 (struct pupa_term): Added init and fini.
47727 Changed the argument of putchar to pupa_uint32_t.
47728
47729 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
47730 (pupa_console_real_putchar): New prototype.
47731 (pupa_console_putchar): Removed.
47732 (pupa_console_checkkey): Exported.
47733 (pupa_console_getkey): Likewise.
47734
47735 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
47736 characters.
47737
47738 * kern/term.c (pupa_term_set_current): Rewritten.
47739 (pupa_putchar): Likewise.
47740 (pupa_putcode): New function.
47741
47742 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
47743 (pupa_console_real_putchar): ... this.
47744 (pupa_vga_set_mode): New function.
47745 (pupa_vga_get_font): Likewise.
47746
47747 * normal/command.c: Include pupa/term.h.
47748 (terminal_command): New function.
47749 (pupa_command_init): Register the command "terminal".
47750
47751 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
47752 (DISP_UP): Likewise.
47753 (DISP_RIGHT): Likewise.
47754 (DISP_DOWN): Likewise.
47755 (DISP_HLINE): Likewise.
47756 (DISP_VLINE): Likewise.
47757 (DISP_UL): Likewise.
47758 (DISP_UR): Likewise.
47759 (DISP_LL): Likewise.
47760 (DISP_LR): Likewise.
47761
47762 * term/i386/pc/console.c (pupa_console_putchar): New function.
47763
47764 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
47765
47766 * util/resolve.c (pupa_util_resolve_dependencies): BUG
47767 FIX. Reverse the path_list.
47768
47769 * include/pupa/normal.h: Export pupa_register_command and
47770 pupa_unregister_command.
47771
47772 * hello/hello.c (pupa_cmd_hello): New module.
47773 * conf/i386-pc.rmk: Added hello.mod.
47774
47775 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
47776
47777 * kern/i386/pc/lzo1x.S: New file.
47778
47779 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
47780 (compress_kernel): New variable.
47781 (generate_image): Heavily modified to support compressing a
47782 large part of the core image.
47783
47784 * util/misc.c (pupa_util_read_image): Fix a file descriptor
47785 leak.
47786 (pupa_util_load_image): New function.
47787
47788 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
47789 (pupa_compressed_size): New variable.
47790 (codestart): Enable Gate A20 here.
47791 Decompress the compressed part of the core image.
47792 Rearrange the code to put functions and variables which are
47793 required for initialization in the non-compressed part.
47794 Include lzo1x.S.
47795
47796 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
47797 here.
47798
47799 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
47800
47801 * include/pupa/i386/pc/kernel.h
47802 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
47803 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
47804 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47805 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47806 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
47807
47808 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
47809
47810 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
47811 (Utility#rule): Likewise.
47812
47813 * configure.ac: Check if LZO is available.
47814
47815 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
47816
47817 * include/pupa/normal.h: New file.
47818 * include/pupa/setjmp.h: Likewise.
47819 * include/pupa/i386/setjmp.h: Likewise.
47820 * normal/cmdline.c: Likewise.
47821 * normal/command.c: Likewise.
47822 * normal/main.c: Likewise.
47823 * normal/menu.c: Likewise.
47824 * normal/i386/setjmp.S: Likewise.
47825
47826 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
47827 (pupa_rescue_cmd_initrd): Likewise.
47828
47829 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
47830 Likewise.
47831
47832 * kern/i386/pc/startup.S (translation_table): New variable.
47833 (translate_keycode): New function.
47834 (pupa_console_getkey): Call translate_keycode.
47835
47836 * kern/rescue.c (attempt_normal_mode): New function.
47837 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
47838 it failed, print a message.
47839
47840 * kern/mm.c (pupa_real_malloc): Print more information when a
47841 free magic is broken.
47842 (pupa_free): If the first free header is not free actually, set
47843 it to P.
47844
47845 * kern/main.c (pupa_load_normal_mode): Just load the module
47846 "normal".
47847 (pupa_main): Don't print the message
47848 "Entering into rescue mode..." here.
47849
47850 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
47851 Declared.
47852 (pupa_rescue_cmd_initrd): Likewise.
47853 (pupa_rescue_cmd_initrd): Likewise.
47854
47855 * include/pupa/symbol.h (FUNCTION): Specify the type.
47856 (VARIABLE): Likewise.
47857
47858 * include/pupa/err.h (pupa_err_t): Added
47859 PUPA_ERR_UNKNOWN_COMMAND.
47860
47861 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
47862 (pupa_dl_get_prefix): Likewise.
47863
47864 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
47865 Added _chain.mod and _linux.mod instead of chain.mod and
47866 linux.mod.
47867 (chain_mod_SOURCES): Renamed to ...
47868 (_chain_mod_SOURCES): ... this.
47869 (chain_mod_CFLAGS): Renamed to ...
47870 (_chain_mod_CFLAGS): ... this.
47871 (linux_mod_SOURCES): Renamed to ...
47872 (_linux_mod_SOURCES): ... this.
47873 (linux_mod_CFLAGS): Renamed to ...
47874 (_linux_mod_CFLAGS): ... this.
47875 (normal_mod_SOURCES): New variable.
47876 (normal_mod_CFLAGS): Likewise.
47877 (normal_mod_ASFLAGS): Likewise.
47878
47879 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
47880
47881 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
47882 possible.
47883
47884 * kern/dl.c (pupa_dl_ref): Refer depending modules
47885 recursively.
47886 (pupa_dl_unref): Unrefer depending modules recursively.
47887 Don't call pupa_dl_unload implicitly, because PUPA can crash if
47888 a module is unloaded before one depending on that module is
47889 unloaded.
47890 (pupa_dl_unload): Unload depending modules explicitly,
47891 if possible.
47892
47893 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
47894
47895 * include/pupa/i386/pc/linux.h: New file.
47896 * loader/i386/pc/linux.c: Likewise.
47897
47898 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
47899 Removed.
47900 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
47901 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
47902 of PUPA_CHAINLOADER_BOOT_SECTOR.
47903
47904 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
47905 (pupa_linux_prot_size): New variable.
47906 (pupa_linux_tmp_addr): Likewise.
47907 (pupa_linux_real_addr): Likewise.
47908 (pupa_linux_boot_zimage): New function.
47909 (pupa_linux_boot_bzimage): Likewise.
47910
47911 * kern/i386/pc/init.c (struct mem_region): New structure.
47912 (MAX_REGIONS): New macro.
47913 (mem_regions): New variable.
47914 (num_regions): Likewise.
47915 (pupa_os_area_addr): Likewise.
47916 (pupa_os_area_size): Likewise.
47917 (pupa_lower_mem): Likewise.
47918 (pupa_upper_mem): Likewise.
47919 (add_mem_region): New function.
47920 (compact_mem_regions): Likewise.
47921 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
47922 the size of the conventional memory and that of so-called upper
47923 memory (before the first memory hole).
47924 Instead of adding each found region to free memory, use
47925 add_mem_region and add them after removing overlaps.
47926 Also, add only 1/4 of the upper memory to free memory. The rest
47927 is used for loading OS images. Maybe this is ad hoc, but this
47928 makes it much easier to relocate OS images when booting.
47929
47930 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
47931 (pupa_enter_rescue_mode): Don't register initrd and module.
47932
47933 * kern/mm.c: Include pupa/dl.h.
47934
47935 * kern/main.c: Include pupa/file.h and pupa/device.h.
47936
47937 * kern/loader.c (pupa_loader_load_module_func): Removed.
47938 (pupa_loader_load_module): Likewise.
47939
47940 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
47941 ``.o''.
47942
47943 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
47944 (pupa_linux_tmp_addr): Likewise.
47945 (pupa_linux_real_addr): Likewise.
47946 (pupa_linux_boot_zimage): Likewise.
47947 (pupa_linux_boot_bzimage): Likewise.
47948
47949 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
47950 (pupa_upper_mem): Likewise.
47951 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
47952 module is too dangerous.
47953
47954 * include/pupa/loader.h (pupa_os_area_addr): Declared.
47955 (pupa_os_area_size): Likewise.
47956 (pupa_loader_set): Remove the first argument. Loader doesn't
47957 manage modules or initrd any longer.
47958 (pupa_loader_load_module): Removed.
47959
47960 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
47961 (linux_mod_SOURCES): New variable.
47962 (linux_mod_CFLAGS): Likewise.
47963
47964 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
47965
47966 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
47967 the length of a blocklist correctly.
47968
47969 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
47970 Use ioctl only if the OS file is a block device.
47971 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
47972 not very useful for normal files.
47973
47974 * kern/main.c (pupa_set_root_dev): New function.
47975 (pupa_load_normal_mode): Likewise.
47976 (pupa_main): Call those above.
47977
47978 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
47979 pupa_uint16_t.
47980
47981 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
47982
47983 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
47984
47985 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
47986 (setup): Configure the installed partition information and the
47987 dl prefix.
47988
47989 * loader/i386/pc/chainloader.c (my_mod): New variable.
47990 (pupa_chainloader_unload): New function.
47991 (pupa_rescue_cmd_chainloader): Refer itself.
47992 (PUPA_MOD_INIT): Save its own module in MY_MOD.
47993
47994 * kern/i386/pc/startup.S (install_partition): Removed.
47995 (version_string): Likewise.
47996 (config_file): Likewise.
47997 (pupa_install_dos_part): New variable.
47998 (pupa_install_bsd_part): Likewise.
47999 (pupa_prefix): Likewise.
48000 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
48001
48002 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
48003 and pupa/misc.h.
48004 (make_install_device): New function.
48005 (pupa_machine_init): Set the dl prefix.
48006
48007 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
48008 (buf): Renamed to ...
48009 (linebuf): ... this.
48010 (pupa_rescue_cmd_prefix): New function.
48011 (pupa_rescue_cmd_insmod): Likewise.
48012 (pupa_rescue_cmd_rmmod): Likewise.
48013 (pupa_rescue_cmd_lsmod): Likewise.
48014 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
48015 rmmod and lsmod.
48016
48017 * kern/mm.c (pupa_memalign): If failed even after invalidating
48018 disk caches, unload unneeded modules and retry.
48019
48020 * kern/misc.c (pupa_memmove): New function.
48021 (pupa_memcpy): Removed.
48022 (pupa_strcpy): New function.
48023 (pupa_itoa): Made static.
48024
48025 * kern/dl.c (pupa_dl_iterate): New function.
48026 (pupa_dl_ref): Likewise.
48027 (pupa_dl_unref): Likewise.
48028 (pupa_dl_unload): Return if succeeded or not.
48029 (pupa_dl_unload_unneeded): New function.
48030 (pupa_dl_unload_all): Likewise.
48031 (pupa_dl_init): Renamed to ...
48032 (pupa_dl_set_prefix): ... this.
48033 (pupa_dl_get_prefix): New function.
48034
48035 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
48036 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
48037 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
48038 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
48039 (pupa_install_dos_part): Declared.
48040 (pupa_install_bsd_part): Likewise.
48041 (pupa_prefix): Likewise.
48042 (pupa_boot_drive): Likewise.
48043
48044 * include/pupa/types.h: Fix a typo.
48045
48046 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
48047 pupa_memmove.
48048 (pupa_memmove): Declared.
48049 (pupa_strcpy): Likewise.
48050
48051 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
48052 pupa_mod_init takes one argument, its own module.
48053 (pupa_dl_unload_unneeded): Declared.
48054 (pupa_dl_unload_all): Likewise.
48055 (pupa_dl_ref): Likewise.
48056 (pupa_dl_unref): Likewise.
48057 (pupa_dl_iterate): Likewise.
48058 (pupa_dl_init): Renamed to ...
48059 (pupa_dl_set_prefix): ... this.
48060 (pupa_dl_get_prefix): Declared.
48061
48062 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
48063 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
48064 unloaded.
48065 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
48066 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
48067
48068 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
48069 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
48070
48071 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48072
48073 * util/i386/pc/pupa-setup.c (setup): Define the internal
48074 function find_first_partition_start at the top level, because GCC
48075 3.0.x cannot compile internal functions in deeper scopes
48076 correctly.
48077 (find_root_device): Use lstat instead of stat.
48078 Don't follow symbolic links.
48079 Fix the path-constructing code.
48080
48081 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
48082 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
48083 by a BLKGETSIZE ioctl first, because block devices don't fill
48084 the member st_mode of the structure stat on Linux.
48085 [__linux__] (linux_find_partition): Use a temporary buffer
48086 REAL_DEV for the working space. Copy it to DEV before returning.
48087 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
48088 buffer cache consistent.
48089 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
48090 strncmp. The previous value was merely wrong.
48091 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
48092
48093 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
48094 FAT size is 12. The previous value was merely wrong.
48095
48096 * kern/main.c (pupa_main): Don't split the starting message from
48097 newlines.
48098
48099 * kern/term.c (pupa_putchar): Put CR after LF instead of before
48100 LF, because BIOS goes crazy about character attributes in this
48101 case.
48102
48103 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48104
48105 * include/i386/pc/util/biosdisk.h: New file.
48106 * util/i386/pc/biosdisk.c: Likewise.
48107 * util/i386/pc/pupa-setup.c: Likewise.
48108
48109 * Makefile.in (INCLUDE_DISTFILES): Added
48110 include/pupa/i386/pc/util/biosdisk.h.
48111 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
48112 directory util/i386/pc.
48113 (install-local): Added a rule for sbin_UTILITIES.
48114 (uninstall): Likewise.
48115
48116 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
48117
48118 * util/misc.c (xrealloc): New function.
48119 (pupa_malloc): Likewise.
48120 (pupa_free): Likewise.
48121 (pupa_realloc): Likewise.
48122 (pupa_stop): Likewise.
48123 (pupa_putchar): Likewise.
48124
48125 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
48126
48127 * include/pupa/util/misc.h (xrealloc): Declared.
48128
48129 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
48130 macro.
48131 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
48132 (PUPA_BOOT_MACHINE_BPB_END): ... this.
48133
48134 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
48135 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48136
48137 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
48138 way should be implemented.
48139 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48140
48141 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
48142 the size of NAME for safety.
48143 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
48144 0x88.
48145
48146 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
48147 (pupa_setup_SOURCES): Likewise.
48148
48149 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
48150
48151 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48152
48153 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
48154 bunch of pushl's from pusha, because this destroys the return
48155 value.
48156
48157 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48158
48159 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
48160 This means that any missing prototypes could be fatal. Also, you
48161 must take care when writing assembly code. See the comments at
48162 the beginning of startup.S, for more details.
48163
48164 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
48165 compilation mechanism.
48166 (pupa_chainloader_real_boot): Likewise.
48167 (pupa_biosdisk_rw_int13_extensions): Likewise.
48168 (pupa_biosdisk_rw_standard): Likewise.
48169 (pupa_biosdisk_check_int13_extensions): Likewise.
48170 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
48171 (pupa_biosdisk_get_diskinfo_standard): Likewise.
48172 (pupa_get_memsize): Likewise.
48173 (pupa_get_mmap_entry): Likewise.
48174 (pupa_console_putchar): Likewise.
48175 (pupa_console_setcursor): Likewise.
48176 (pupa_getrtsecs): Use pushl instead of push.
48177
48178 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
48179 memory instead of the stack for a mmap entry, because some
48180 BIOSes may ignore the maximum size and overflow.
48181
48182 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
48183
48184 * genmk.rb (PModule#rule): Compile automatically generated
48185 sources with module-specific CFLAGS as well as other sources.
48186
48187 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48188
48189 * configure.ac: Check ld.
48190 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
48191 respectively, before checking endianness and sizes.
48192
48193 * Makefile.in (LD): New variable.
48194
48195 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48196
48197 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
48198
48199 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48200
48201 * Changelog: New file.
48202