]> git.proxmox.com Git - grub2.git/blob - ChangeLog
Use ACPI shutdown intests as traditional port was removed.
[grub2.git] / ChangeLog
1 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2
3 Use ACPI shutdown intests as traditional port was removed.
4
5 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
6
7 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
8 distinction.
9
10 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11
12 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
13 Fix few warining messages and leaks while on it.
14
15 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
16
17 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
18 links under grub-core/lib/libgcrypt-grub/mpi.
19
20 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
21
22 Fix ia64-efi image generation on big-endian machines. Deduplicate
23 some code while on it.
24 Reported by: Leif Lindholm.
25
26 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
27
28 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
29 as extra_dist.
30
31 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
32
33 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
34
35 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
36
37 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
38 texinfo-5.1.
39
40 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
41
42 * grub-core/normal/term.c: Few more fixes for menu entry editor
43 rendering.
44 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
45
46 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
47
48 * grub-core/normal/term.c: Few more fixes for menu entry editor
49 rendering.
50 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
51
52 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
53
54 * conf/Makefile.extra-dist (EXTRA_DIST): Add
55 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
56
57 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
58
59 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
60 instead of hardcoding grub.mo.
61
62 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
63
64 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
65
66 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
67
68 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
69 grub-core/disk/geli.c.
70
71 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
72
73 * util/grub-mkfont.c: Prefer enum to #define.
74
75 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
76
77 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
78
79 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
80
81 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
82
83 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
84
85 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
86
87 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
88
89 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
90
91 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
92
93 * include/grub/bsdlabel.h: Use enums.
94
95 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
96
97 Move GRUB_CHAR_BIT to types.h.
98
99 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
100
101 * docs/grub.texi: Document more user commands.
102
103 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
104
105 * docs/grub.texi: Document menuentry --id option.
106
107 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
108
109 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
110
111 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
112
113 Unify file copying setup across different install scripts. Add
114 options for performing partial install.
115
116 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
117 2013-04-04 Peter Jones <pjones@redhat.com>
118
119 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
120
121 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
122
123 Use TSC as a possible time source on i386-ieee1275.
124
125 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
126
127 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
128 Init err.
129
130 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
131
132 * util/grub-setup.c (setup): Handle some corner cases.
133
134 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
135
136 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
137
138 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
139
140 * grub-core/commands/verify.c: Save verified file to avoid it being
141 tampered with after verification was done.
142
143 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
144
145 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
146 reported width by one to compensate for curesor algorithm problem.
147
148 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
149
150 Fix screen corruption in menu entry editor and simplify the code
151 flow while on it.
152
153 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
154
155 * util/grub-mount.c (fuse_init): Return error if fuse_main
156 failed.
157
158 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
159
160 * include/grub/elf.h: Add missing ARM relocation codes and fix
161 existing ones.
162
163 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
164
165 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
166
167 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
168 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
169
170 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
171 into account when calculating radius.
172
173 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
174
175 * grub-core/gfxmenu/view.c: Fix off-by-one error.
176
177 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
178
179 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
180
181 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
182
183 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
184 missing closing bracket.
185
186 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
187
188 * INSTALL: Mention xorriso requirement.
189
190 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
191
192 * grub-core/commands/verify.c: Fix hash algorithms values for
193 the first three hashes - they start with 1, not with 0.
194
195 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
196
197 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
198 Try terminating EFI services several times due to quirks in some
199 implementations.
200
201 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
202
203 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
204 skipping Event, Device, Processor, PowerRes, ThermalZone, and
205 BankField extended opcodes.
206 (get_sleep_type): Add minimal scope handling (just enough to
207 handle setting the scope to the root path).
208 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
209 * include/grub/acpi.h: Add enumeration values for Event, Device,
210 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
211
212 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
213
214 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
215 memory leak.
216
217 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
218
219 * grub-core/disk/ahci.c: Give more time for AHCI request.
220
221 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
222
223 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
224 command.
225
226 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
227
228 Replace the region at 0 from coreboot tables to available in BSD
229 memory map.
230
231 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
232
233 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
234 non-BIOS platforms.
235
236 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
237
238 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
239 platforms.
240
241 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
242
243 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
244 handling of multi-device filesystems.
245
246 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
247
248 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
249 platforms.
250
251 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
252
253 Add new 'proc' filesystem framework and put luks_script into it.
254
255 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
256
257 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
258 and qemu.
259
260 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
261
262 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
263
264 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
265
266 Add ability to generate newc additions on runtime.
267
268 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
269
270 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
271 description.
272
273 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
274
275 * po/POTFILES.in: Regenerate.
276
277 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
278
279 * grub-core/commands/verify.c (hashes): Add several hashes
280 from the spec.
281
282 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
283
284 Slight improve in USB-related boot-time checkpoints.
285
286 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
287
288 * grub-core/commands/boottime.c: Fix copyright header.
289
290 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
291
292 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
293 coreboot tables content. Support for cbmemc.
294
295 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
296
297 Fix a conflict between ports structures with 2 controllers of
298 same kind.
299
300 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
301
302 * include/grub/boottime.h: Add missing file.
303
304 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
305
306 Initialize USB ports in parallel to speed-up boot.
307
308 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
309
310 Fix USB devices not being detected when requested
311 due to delayed attach.
312
313 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
314
315 Implement boot time analysis framework.
316
317 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
318
319 Remove get_endpoint_descriptor and change all functions needing
320 descriptor to just receive it as argument rather than endpoint
321 address.
322
323 2013-03-19 Aleš Nesrsta <starous@volny.cz>
324
325 Better estimate the maximum USB transfer size.
326
327 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
328
329 Resend a packet if we got the wrong buffer in status.
330
331 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
332
333 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
334 multiplication rather than division.
335
336 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
337
338 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
339 than divisions.
340
341 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
342
343 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
344 operations to have intended shifts and not divisions.
345
346 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
347
348 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
349 intended shifts rather than division.
350
351 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
352
353 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
354 computation for some years before epoch. Avode confusing division
355 while on it.
356
357 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
358
359 * grub-core/video/i386/pc/vbe.c
360 (grub_video_vbe_print_adapter_specific_info): Replace division by
361 shifts.
362
363 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
364
365 Adjust types in gdb module to have intended unsigned shifts rather than
366 signed divisions.
367
368 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
369
370 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
371 maximum size is 4G - 1 on hfs
372
373 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
374
375 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
376
377 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
378
379 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
380 function.
381
382 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
383
384 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
385 causing gcc error with gcc 4.7.1.
386
387 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
388
389 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
390 dereference null pointer. While the code is technically correct, gcc
391 may eliminate a null check if pointer is already dereferenced.
392
393 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
394
395 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
396 OOM check.
397 * grub-core/normal/term.c (read_terminal_list): Likewise.
398
399 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
400
401 Lift up core size limits on some platforms. Fix potential memory
402 corruption with big core on small memory systems. Document remaining
403 limits.
404
405 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
406
407 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
408 gotoxy to 0,0.
409
410 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
411
412 Remove all trampoline support. Add -Wtrampolines when
413 present. Remove symbols used for trampolines to make
414 link fail if trampolines are present.
415
416 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
417
418 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
419 append out of its parent.
420
421 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
422
423 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
424 parent.
425
426 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
427
428 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
429 all vars to a macro. All users updated.
430
431 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
432
433 * grub-core/disk/ieee1275/nand.c: Fix compilation on
434 i386-ieee1275.
435
436 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
437
438 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
439
440 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
441
442 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
443
444 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
445
446 Move to more hookless approach in IEEE1275 devices handling.
447
448 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
449
450 * grub-core/kern/term.c (grub_term_normal_color),
451 (grub_term_highlight_color): Add back lost defaults.
452
453 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
454
455 Make elfload not use hooks. Opt for flags and iterators instead.
456
457 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
458
459 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
460 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
461
462 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
463
464 * grub-core/script/execute.c (gettext_append): Remove nested functions.
465
466 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
467
468 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
469 hook pass-through parameter. All users updated and unnested.
470
471 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
472
473 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
474 out of its parent.
475
476 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
477
478 * grub-core/fs/hfs.c: Remove nested functions.
479
480 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
481
482 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
483 the context through.
484 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
485
486 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
487
488 * util/grub-editenv.c (list_variables): Move print_var out of its
489 parent.
490
491 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
492
493 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
494 function.
495
496 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
497
498 * grub-core/gentrigtables.c: Make tables const.
499
500 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
501
502 Remove nested functions from videoinfo iterators.
503
504 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
505
506 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
507 for 64-bit platforms.
508
509 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
510
511 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
512 a FOR_CHILDREN macro.
513
514 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
515
516 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
517 platform from firmware path.
518
519 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
520
521 Enable linux16 on non-BIOS systems for i.a. memtest.
522
523 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
524 correctly.
525 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
526
527 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
528
529 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
530 Fix end of table condition.
531
532 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
533
534 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
535 out of its parent.
536
537 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
538
539 * grub-core/fs/jfs.c: Remove nested functions.
540
541 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
542
543 * grub-core/fs/minix.c: Remove nested functions.
544
545 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
546
547 * grub-core/fs/iso9660.c: Remove nested functions.
548
549 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
550
551 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
552 of parent function.
553
554 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
555
556 * util/grub-fstest.c: Remove nested functions.
557
558 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
559
560 * grub-core/loader/machoXX.c: Remove nested functions.
561
562 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
563
564 Remove nested functions from disk and file read hooks.
565
566 * include/grub/disk.h (grub_disk_read_hook_t): New type.
567 (struct grub_disk): Add read_hook_data member.
568 * include/grub/file.h (struct grub_file): Likewise.
569 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
570 argument.
571
572 Update all callers.
573
574 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
575
576 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
577 Fix off by one error in enumerating extended partitions.
578
579 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
580
581 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
582 memory leak if device name is not found.
583
584 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
585
586 * grub-core/normal/menu_entry.c (update_screen): remove
587 unused variable `off' which caused scroll down arrow to be always shown.
588
589 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
590
591 * grub-core/normal/menu_entry.c (insert_string): fix off by one
592 access to unallocated memory.
593
594 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
595
596 * Makefile.util.def: Add partmap/msdos.c to common library.
597 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
598 * grub-core/disk/ldm.c: Check for existence of
599 GRUB_PC_PARTITION_TYPE_LDM.
600
601 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
602
603 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
604 sizes and display sector size.
605
606 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
607
608 Implement new command cmosdump.
609
610 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
611
612 Support Openfirmware disks with non-512B sectors.
613
614 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
615 size of the disk.
616 * (grub_ofdisk_get_block_size): New function.
617 * (grub_ofdisk_prepare): Use the correct block size.
618 * (grub_ofdisk_read): Likewise.
619 * (grub_ofdisk_write): Likewise.
620 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
621 New proto.
622
623 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
624
625 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
626
627 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
628
629 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
630 on first error.
631
632 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
633
634 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
635 freeing it.
636
637 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
638
639 Implement USBDebug (full USB stack variant).
640
641 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
642
643 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
644 unless they have unexpected values.
645
646 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
647
648 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
649 grub_print_error.
650
651 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
652
653 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
654 zero-out of port structure.
655
656 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
657
658 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
659 of extended attributes.
660
661 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
662
663 * util/grub-install.in: change misleading comment about
664 device.map creation
665
666 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
667
668 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
669 when menu highlight color isn't set.
670
671 2013-01-27 C. Masloch <pushbx@38.de>
672
673 Improve FreeDOS direct loading support compatibility.
674
675 * include/grub/i386/relocator.h (grub_relocator16_state):
676 New member ebp.
677 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
678 variable.
679 (grub_relocator16_boot): Handle %ebp.
680 * grub-core/lib/i386/relocator16.S: Likewise.
681 * grub-core/loader/i386/pc/freedos.c:
682 Load BPB to pass kernel which partition to load from.
683 Check that kernel file is not too large.
684 Set register dl to BIOS unit number as well.
685
686 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
687
688 * util/grub-reboot.in (usage): Document the need for
689 GRUB_DEFAULT=saved.
690 * util/grub-set-default.in (usage): Likewise.
691 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
692
693 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
694
695 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
696 than defining WORDS_BIGENDIAN manually.
697
698 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
699
700 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
701 invariants.
702
703 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
704
705 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
706 nested.
707 (blit_comb: add_device_width): Likewise.
708
709 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
710
711 Remove nested functions from USB iterators.
712
713 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
714 (grub_usb_controller_iterate_hook_t): Likewise.
715 (grub_usb_iterate): Add hook_data argument.
716 (grub_usb_controller_iterate): Likewise.
717 (struct grub_usb_controller_dev.iterate): Likewise.
718
719 Update all implementations and callers.
720
721 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
722
723 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
724 margin when not needed.
725
726 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
727
728 Make color variables global instead of it being per-terminal.
729
730 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
731
732 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
733 asterisk.
734
735 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
736
737 Fix powerpc and sparc64 build failures caused by un-nesting memory
738 map iterators.
739
740 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
741
742 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
743 parameter declarations.
744
745 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
746
747 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
748
749 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
750
751 Improve spkmomdem reliability by adding a separator between bytes.
752
753 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
754
755 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
756 an Acer registration utility with several sightings in the wild.
757 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
758
759 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
760
761 Remove nested functions from filesystem directory iterators.
762
763 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
764 (struct grub_fs.dir): Add hook_data argument.
765
766 Update all implementations and callers.
767
768 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
769
770 * docs/grub.texi (Multi-boot manual config): Fix typo for
771 "recommended".
772
773 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
774
775 * util/grub-mkimage.c (main): Postpone freeing arguments.output
776 until after its use in generate_image.
777
778 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
779
780 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
781 initrd size to addr_min, since the initrd will be allocated after
782 this address.
783
784 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
785
786 * conf/Makefile.common: Fix autogen rules to pass definition
787 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
788
789 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
790
791 * include/grub/elf.h: Update ARM definitions based on binutils.
792
793 2013-01-20 Aleš Nesrsta <starous@volny.cz>
794
795 Split long USB transfers into short ones.
796
797 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
798
799 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
800 is interrupted by ESC.
801
802 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
803
804 * util/grub-script-check.c (main): Uniform the error message.
805
806 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
807
808 Remove nested functions from ELF iterators.
809
810 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
811
812 Remove nested functions from device iterators.
813
814 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
815 (grub_arc_iterate_devs): Add hook_data argument.
816 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
817 (struct grub_ata_dev.iterate): Add hook_data argument.
818 * include/grub/device.h (grub_device_iterate_hook_t): New type.
819 (grub_device_iterate): Add hook_data argument.
820 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
821 (struct grub_disk_dev.iterate): Add hook_data argument.
822 (grub_disk_dev_iterate): Likewise.
823 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
824 Likewise.
825 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
826 Likewise.
827 * include/grub/partition.h (grub_partition_iterate_hook_t): New
828 type.
829 (struct grub_partition_map.iterate): Add hook_data argument.
830 (grub_partition_iterate): Likewise.
831 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
832 (struct grub_scsi_dev.iterate): Add hook_data argument.
833
834 Update all callers.
835
836 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
837
838 Fix typos for "developer" and "development".
839
840 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
841
842 Add license header to spkmodem-recv.c.
843
844 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
845
846 Rewrite spkmodem to use PIT for timing. Double the speed.
847
848 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
849
850 Add new command pcidump.
851
852 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
853
854 New terminal outputs using serial: morse and spkmodem.
855
856 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
857
858 Improve bidi handling in entry editor.
859
860 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
861
862 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
863 argument to prevent name collision.
864
865 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
866
867 Remove nested functions from script reading and parsing.
868
869 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
870 getline_data argument, passed to getline.
871 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
872 getline_data argument, passed to grub_parser_split_cmdline.
873 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
874 lexerstate->getline_data to lexerstate->getline.
875 (grub_script_lexer_init): Add getline_data argument, saved in
876 lexerstate->getline_data.
877 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
878 argument, passed to grub_script_parse.
879 * grub-core/script/script.c (grub_script_parse): Add getline_data
880 argument, passed to grub_script_lexer_init.
881 * include/grub/parser.h (grub_parser_split_cmdline): Update
882 prototype. Update all callers to pass appropriate getline data.
883 (struct grub_parser.parse_line): Likewise.
884 (grub_rescue_parse_line): Likewise.
885 * include/grub/reader.h (grub_reader_getline_t): Add void *
886 argument.
887 * include/grub/script_sh.h (struct grub_lexer_param): Add
888 getline_data member.
889 (grub_script_parse): Update prototype. Update all callers to pass
890 appropriate getline data.
891 (grub_script_lexer_init): Likewise.
892 (grub_normal_parse_line): Likewise.
893
894 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
895 data argument.
896 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
897 static instead of nested. Rename to ...
898 (grub_parser_execute_getline): ... this.
899 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
900 data argument.
901 * grub-core/normal/main.c (read_config_file: getline): Make static
902 instead of nested. Rename to ...
903 (read_config_file_getline): ... this.
904 (grub_normal_read_line): Add unused data argument.
905 * grub-core/script/execute.c (grub_script_execute_sourcecode:
906 getline): Make static instead of nested. Rename to ...
907 (grub_script_execute_sourcecode_getline): ... this.
908 * util/grub-script-check.c (main: get_config_line): Make static
909 instead of nested.
910
911 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
912
913 Remove nested functions from memory map iterators.
914
915 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
916 argument, passed to hook.
917 * grub-core/kern/i386/coreboot/mmap.c
918 (grub_linuxbios_table_iterate): Likewise.
919 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
920 instead of nested.
921 (grub_machine_mmap_iterate): Add hook_data argument.
922 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
923 Add hook_data argument, passed to hook.
924 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
925 Likewise.
926 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
927 Likewise.
928 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
929 Likewise.
930 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
931 Likewise.
932 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
933 Likewise.
934 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
935 Likewise.
936 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
937 (grub_machine_mmap_iterate): Likewise.
938 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
939 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
940 prototype.
941 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
942 Remove NESTED_FUNC_ATTR from here and from all users.
943 (grub_mmap_iterate): Update prototype.
944 (grub_efi_mmap_iterate): Update prototype. Update all callers to
945 pass appropriate hook data.
946 (grub_machine_mmap_iterate): Likewise.
947
948 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
949 static instead of nested.
950 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
951 Rename to ...
952 (lsmmap_hook): ... this.
953 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
954 Likewise.
955 (grub_efiemu_mmap_fill: fill_hook): Likewise.
956 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
957 heap_init): Likewise.
958 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
959 Rename to ...
960 (mmap_iterate_hook): ... this.
961 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
962 Likewise.
963 * grub-core/lib/ieee1275/relocator.c
964 (grub_relocator_firmware_get_max_events: count): Likewise.
965 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
966 to ...
967 (grub_relocator_firmware_fill_events_iter): ... this.
968 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
969 hook): Likewise. Rename to ...
970 (grub_relocator_alloc_chunk_align_iter): ... this.
971 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
972 Rename to ...
973 (generate_e820_mmap_iter): ... this.
974 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
975 Rename to ...
976 (count_hook): ... this.
977 (grub_linux_boot: hook): Likewise. Rename to ...
978 (grub_linux_boot_mmap_find): ... this.
979 (grub_linux_boot: hook_fill): Likewise. Rename to ...
980 (grub_linux_boot_mmap_fill): ... this.
981 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
982 hook): Likewise. Rename to ...
983 (grub_fill_multiboot_mmap_iter): ... this.
984 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
985 hook): Likewise. Rename to ...
986 (count_hook): ... this.
987 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
988 hook): Likewise. Rename to ...
989 (grub_fill_multiboot_mmap_iter): ... this.
990 * grub-core/loader/powerpc/ieee1275/linux.c
991 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
992 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
993 Likewise. Rename to ...
994 (alloc_phys_choose): ... this.
995 (determine_phys_base: get_physbase): Likewise.
996 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
997 find_hook): Likewise.
998 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
999 (malloc_hook: count_hook): Likewise.
1000 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
1001 Likewise. Rename to ...
1002 (lower_hook): ... this.
1003 (grub_mmap_get_upper: hook): Likewise. Rename to ...
1004 (upper_hook): ... this.
1005 (grub_mmap_get_post64: hook): Likewise. Rename to ...
1006 (post64_hook): ... this.
1007 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
1008 Likewise. Rename to ...
1009 (lower_hook): ... this.
1010 (grub_mmap_get_upper: hook): Likewise. Rename to ...
1011 (upper_hook): ... this.
1012 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
1013 (grub_mmap_iterate: fill_hook): Likewise.
1014 (fill_mask): Pass addr and mask within a single struct.
1015 (grub_cmd_badram: hook): Make static instead of nested. Rename
1016 to ...
1017 (badram_iter): ... this.
1018 (grub_cmd_cutmem: hook): Likewise. Rename to ...
1019 (cutmem_iter): ... this.
1020
1021 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1022
1023 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
1024 delimit path in strings using quotes.
1025 * util/getroot.c (grub_guess_root_devices): Likewise.
1026 (grub_make_system_path_relative_to_its_root): Likewise.
1027 * util/grub-probe.c (probe): Likewise.
1028 * util/ieee1275/ofpath.c (find_obppath): Likewise.
1029 (xrealpath): Likewise.
1030
1031 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1032
1033 Fix compilation with older compilers.
1034
1035 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
1036 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
1037 declarations.
1038 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
1039 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
1040 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
1041 identifier with b.
1042 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
1043 * include/grub/crypto.h: Add type defines.
1044 * util/import_gcrypth.sed: Remove duplicate type defines.
1045
1046 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1047
1048 New command list_trusted.
1049
1050 * grub-core/commands/verify.c (grub_cmd_list): New function.
1051
1052 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
1053
1054 * util/grub-mkimage.c (generate_image): Fix "size of public key"
1055 info message.
1056
1057 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
1058
1059 Remove nested functions from PCI iterators.
1060
1061 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
1062 passed to hook. Update all callers to pass appropriate hook data.
1063 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
1064 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
1065 Remove NESTED_FUNC_ATTR from here and from all users.
1066 (grub_pci_iterate): Update prototype.
1067 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
1068 instead of nested. Rename to ...
1069 (grub_cs5536_find_iter): ... this.
1070 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
1071 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
1072 Likewise.
1073 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
1074 Likewise.
1075 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
1076 Likewise.
1077 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
1078 Likewise.
1079 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
1080 * grub-core/video/radeon_fuloong2e.c
1081 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
1082 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
1083 find_card): Likewise.
1084 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
1085 Likewise.
1086
1087 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1088
1089 * grub-core/commands/verify.c: Mark messages for translating.
1090
1091 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1092
1093 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
1094 fatal.
1095
1096 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1097
1098 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
1099 fatal.
1100
1101 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1102
1103 * autogen.sh: Do not try to delete nonexistant files.
1104 * util/import_gcrypth.sed: Add some missing header removals.
1105
1106 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
1107
1108 Clean up dangling references to grub-setup.
1109 Fixes Ubuntu bug #1082045.
1110
1111 * docs/grub.texi (Images): Refer generally to grub-install rather
1112 than directly to grub-setup.
1113 (Installing GRUB using grub-install): Remove direct reference to
1114 grub-setup.
1115 (Device map) Likewise.
1116 (Invoking grub-install): Likewise.
1117 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
1118 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
1119 * util/grub-install.in (usage): Likewise.
1120
1121 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
1122 Apply to grub-bios-setup and grub-sparc64-setup rather than to
1123 grub-setup.
1124 * configure.ac: Remove grub_setup output variable.
1125
1126 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
1127 to grub-bios-setup.
1128 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
1129 grub-setup to grub-sparc64-setup.
1130
1131 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
1132
1133 Import gcrypt public-key cryptography and implement signature checking.
1134
1135 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1136
1137 * grub-core/fs/ntfs.c: Ue more appropriate types.
1138 * grub-core/fs/ntfscomp.c: Likewise.
1139 * include/grub/ntfs.h: Likewise.
1140
1141 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1142
1143 Support Apple FAT binaries on non-Apple platforms.
1144
1145 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
1146 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
1147 Likewise.
1148 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
1149 Apple FAT binaries.
1150
1151 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1152
1153 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
1154 sector devices.
1155
1156 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
1157
1158 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
1159 explicitly zeroing elements.
1160 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
1161 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
1162 of elements in a structure already allocated using grub_zalloc.
1163 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
1164
1165 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
1166
1167 * docs/grub.texi (grub_cpu): New subsection.
1168 (grub_platform): Likewise.
1169
1170 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
1171
1172 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
1173
1174 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1175
1176 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
1177 divisions.
1178
1179 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1180
1181 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
1182 * grub-core/fs/ntfscomp.c: Likewise.
1183 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
1184 (grub_ntfs_comp): Likewise.
1185
1186 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1187
1188 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
1189 Rename to ...
1190 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
1191 of groups_per_block. All users updated.
1192
1193 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1194
1195 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
1196 grub_error properly.
1197 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
1198 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
1199
1200 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1201
1202 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
1203 always in /boot/zfs.
1204 Reported by: Yuta Satoh.
1205
1206 2013-01-03 Yuta Satoh <nigoro>
1207
1208 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
1209 ${grub_probe}
1210
1211 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1212
1213 * configure.ac: Extend -Wno-trampolines to host.
1214
1215 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1216
1217 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
1218 entry->len = 0.
1219
1220 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
1221
1222 * docs/grub.texi (Invoking grub-mkrelpath): New section.
1223 (Invoking grub-script-check): Likewise.
1224
1225 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
1226
1227 * docs/grub.texi (Invoking grub-mount): New section.
1228 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
1229
1230 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
1231
1232 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
1233 test failures, so that a failing unit test correctly causes 'make
1234 check' to fail.
1235
1236 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
1237
1238 Fix failing printf test.
1239
1240 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
1241 '$' in the correct order when collecting type information.
1242
1243 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
1244
1245 * docs/grub.texi (configfile): Explain environment variable
1246 handling.
1247 (source): New section.
1248 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
1249
1250 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
1251
1252 Remove several trivially-unnecessary uses of nested functions.
1253
1254 * grub-core/commands/i386/pc/sendkey.c
1255 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
1256 instead of nested.
1257 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
1258 Rename to ...
1259 (legacy_file_getline): ... this.
1260 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
1261 Likewise.
1262 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
1263 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
1264 to ...
1265 (probe_dummy_iter): ... this.
1266 * grub-core/kern/i386/coreboot/mmap.c
1267 (grub_linuxbios_table_iterate: check_signature): Likewise.
1268 * grub-core/kern/parser.c (grub_parser_split_cmdline:
1269 check_varstate): Likewise. Mark inline.
1270 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
1271 an additional parameter.
1272 (find_long: fnd_long): Likewise. Pass two additional parameters.
1273 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
1274 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
1275 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
1276 Likewise. Rename to ...
1277 (grub_cmos_find_port_iter): ... this.
1278 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
1279 Rename to ...
1280 (find_rtc_iter): ... this.
1281
1282 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
1283 function directly into the function body, since it is only called
1284 once.
1285
1286 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
1287
1288 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
1289 __attribute__ ((unused)).
1290 * grub-core/video/bochs.c (find_card): Likewise.
1291 * grub-core/video/cirrus.c (find_card): Likewise.
1292 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
1293 * grub-core/video/sis315pro.c (find_card): Likewise.
1294 * grub-core/video/sm712.c (find_card): Likewise.
1295
1296 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1297
1298 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
1299 Fixes Savannah bug #37821.
1300
1301 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1302
1303 Apply program name transformations at build-time rather than at
1304 run-time. Fixes Debian bug #696465.
1305
1306 * acinclude.m4 (grub_TRANSFORM): New macro.
1307 * configure.ac: Create output variables with transformed names for
1308 most programs.
1309 * util/bash-completion.d/grub-completion.bash.in: Use
1310 pre-transformed variables for program names.
1311 * util/grub-install.in: Likewise.
1312 * util/grub-kbdcomp.in: Likewise.
1313 * util/grub-mkconfig.in: Likewise.
1314 * util/grub-mkconfig_lib.in: Likewise.
1315 * util/grub-mknetdir.in: Likewise.
1316 * util/grub-mkrescue.in: Likewise.
1317 * util/grub-mkstandalone.in: Likewise.
1318 * util/grub-reboot.in: Likewise.
1319 * util/grub-set-default.in: Likewise.
1320 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1321 * tests/util/grub-shell-tester.in: Remove unused assignment.
1322 * tests/util/grub-shell.in: Likewise.
1323 * util/grub.d/00_header.in: Likewise.
1324
1325 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1326
1327 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
1328
1329 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
1330 HAVE_RAW_DECL_GETS.
1331 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
1332
1333 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1334
1335 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
1336 Reported by: Eriks Latosheks <foresterlv>.
1337
1338 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1339
1340 * docs/grub.texi (Network): Update instructions on generating netboot
1341 image.
1342
1343 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1344
1345 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
1346 around device name if necessarry.
1347
1348 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1349
1350 * util/grub-install.in: Follow the symbolic link parameter added
1351 to the file command.
1352
1353 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
1354
1355 * util/grub-install.in: Remove stale TODO.
1356
1357 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1358
1359 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
1360 dynamic allocation for the bootpath buffer.
1361
1362 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
1363
1364 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
1365 window too small.
1366
1367 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1368
1369 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
1370 argument rather than font name. All users updated.
1371 (grub_gfxterm_set_window): Likewise.
1372
1373 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
1374
1375 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
1376 from working.
1377
1378 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1379
1380 * util/getroot.c (convert_system_partition_to_system_disk): Support
1381 nbd disks.
1382
1383 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1384
1385 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
1386 infinite loop on corrupted FS.
1387
1388 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1389
1390 Fix big-endian mtime.
1391
1392 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
1393 together sec and usec.
1394 (grub_ufs_dir): Use correct byteswapping for UFS time.
1395
1396 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1397
1398 Support big-endian UFS1.
1399
1400 * Makefile.util.def (libgrubmods): Add ufs_be.c
1401 * grub-core/Makefile.core.def (ufs1_be): New module.
1402 * grub-core/fs/ufs_be.c: New file.
1403 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
1404 the file.
1405
1406 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
1407
1408 * include/grub/types.h: Fix functionality unaffecting typo in
1409 GRUB_TARGET_WORDSIZE conditional macro.
1410
1411 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1412
1413 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
1414
1415 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
1416
1417 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
1418 that /netbsd appears first (when it exists).
1419
1420 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
1421
1422 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
1423 Fixes Savannah bug #37558.
1424
1425 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
1426
1427 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
1428 description of extract_entries_configfile.
1429
1430 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
1431
1432 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
1433 preferred_address.
1434 (grub_cmd_linux): Likewise.
1435 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
1436 preferred_lifetime. Update all users.
1437
1438 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
1439
1440 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
1441 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
1442
1443 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
1444
1445 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
1446 errors from grub-probe to /dev/null, not stdout.
1447
1448 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
1449
1450 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
1451 sector 1.
1452
1453 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
1454
1455 * util/grub-install.in: Make the error message if $source_dir
1456 doesn't exist more useful.
1457
1458 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
1459
1460 Fix grub-emu build on FreeBSD.
1461
1462 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
1463 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
1464 headers on Linux.
1465 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
1466 implementation is currently Linux-specific.
1467 * util/getroot.c (exec_pipe): Define only on Linux or when either
1468 libzfs or libnvpair is unavailable.
1469 (find_root_devices_from_poolname): Remove unused path variable.
1470
1471 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
1472
1473 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
1474 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
1475 should fit before end == 63.
1476
1477 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
1478
1479 * util/grub-setup.c (write_rootdev): Remove unused core_img
1480 parameter. Update all callers.
1481 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
1482 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
1483 GRUB_SETUP_BIOS.
1484
1485 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1486
1487 * util/grub-mkconfig_lib.in (grub_tab): New variable.
1488 (grub_add_tab): New function.
1489 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
1490 * util/grub.d/10_illumos.in: Likewise.
1491 * util/grub.d/10_kfreebsd.in: Likewise.
1492 * util/grub.d/10_linux.in: Likewise.
1493 * util/grub.d/10_netbsd.in: Likewise.
1494 * util/grub.d/10_windows.in: Likewise.
1495 * util/grub.d/10_xnu.in: Likewise.
1496 * util/grub.d/20_linux_xen.in: Likewise.
1497 * util/grub.d/30_os-prober.in: Likewise.
1498
1499 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1500
1501 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1502 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
1503 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
1504 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
1505 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
1506 ieee1275-nocursor.
1507 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1508 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
1509
1510 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1511
1512 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
1513 le-conversion.
1514 Reported by: BURETTE, Bernard.
1515
1516 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
1517
1518 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
1519 from comment.
1520
1521 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
1522
1523 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
1524 IEEE1275 machines. Fixes powerpc-emu compilation.
1525 * include/grub/terminfo.h: Likewise.
1526
1527 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1528
1529 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
1530 a const pointer.
1531 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
1532 const pointer.
1533 (efiemu_set_variable): Make vendor_guid a const pointer.
1534
1535 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1536
1537 Don't require grub-mkconfig_lib to generate manpages for programs.
1538
1539 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
1540 dependencies, don't add grub-mkconfig_lib.
1541 (program): Pass empty adddeps.
1542 (script): Pass grub-mkconfig_lib as adddeps.
1543
1544 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1545
1546 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
1547 * util/getroot.c (grub_find_device): Likewise.
1548 (get_mdadm_uuid): Likewise.
1549 (grub_util_is_imsm): Likewise.
1550 (grub_util_pull_device): Likewise.
1551 * util/grub-probe.c (probe): Likewise.
1552
1553 2012-09-10 Benoit Gschwind <gschwind>
1554
1555 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
1556 (devs): Add devpath_8.
1557
1558 2012-09-08 Peter Jones <pjones@redhat.com>
1559
1560 * grub-core/Makefile.core.def (efifwsetup): New module.
1561 * grub-core/commands/efi/efifwsetup.c: New file.
1562 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
1563 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
1564 New define.
1565 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
1566
1567 2012-09-05 Jiri Slaby <jslaby@suse.cz>
1568
1569 * configure.ac: Add SuSe path.
1570
1571 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1572
1573 * NEWS: Fix typo.
1574
1575 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1576
1577 * util/import_gcry.py: Sort cipher_files, to make build system
1578 generation more deterministic.
1579
1580 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1581
1582 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
1583 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
1584 (grub_set_datetime): Likewise.
1585
1586 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1587
1588 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
1589 warnings.
1590
1591 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1592
1593 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
1594
1595 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1596
1597 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
1598
1599 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1600
1601 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
1602 required for checkouts from bzr, but it may be useful for users or
1603 distributors wishing to update translations against a tarball
1604 distribution, and it can be helpful for the tarball to be a superset
1605 of what's in bzr.
1606
1607 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1608
1609 * Makefile.am (EXTRA_DIST): Add
1610 grub-core/tests/boot/linux.init-mips.S,
1611 grub-core/tests/boot/linux.init-ppc.S, and
1612 grub-core/tests/boot/linux-ppc.cfg.
1613
1614 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1615
1616 * grub-core/mmap/mips/loongson: Remove empty directory.
1617
1618 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1619
1620 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
1621 gone.
1622
1623 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1624
1625 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
1626 grub-sparc64-setup.
1627
1628 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1629
1630 * configure.ac: Strengthen the test for working -nostdinc -isystem.
1631
1632 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1633
1634 * po/POTFILES.in: Regenerated.
1635
1636 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1637
1638 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
1639 (NetBSD): New subsection.
1640
1641 2012-07-22 Ales Nesrsta <starous@volny.cz>
1642
1643 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
1644 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
1645
1646 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1647
1648 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
1649 * util/grub.d/10_hurd.in: Add missing quoting.
1650 * util/grub.d/10_illumos.in: Likewise.
1651 * util/grub.d/10_kfreebsd.in: Likewise.
1652 * util/grub.d/10_linux.in: Likewise.
1653 * util/grub.d/20_linux_xen.in: Likewise.
1654
1655 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1656
1657 New command `lsefi'.
1658
1659 * grub-core/Makefile.core.def (lsefi): New module.
1660 * grub-core/commands/efi/lsefi.c: New file.
1661 * include/grub/efi/api.h: Add more GUIDs.
1662
1663 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1664
1665 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
1666 (grub_bsd_elf32_hook): Likewise.
1667 (grub_bsd_elf64_size_hook): Likewise.
1668 (grub_bsd_elf64_hook): Likewise.
1669 (grub_bsd_load_elf): Likewise.
1670
1671 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1672
1673 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
1674 if hash function is unavailable.
1675 (dec_stream_header): Likewise.
1676
1677 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1678
1679 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
1680 filter state.
1681
1682 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1683
1684 Fix coreboot compilation.
1685
1686 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
1687 (grub_vga_text_init_real): ... this.
1688 (grub_vga_text_fini): Rename to ...
1689 (grub_vga_text_fini_real): ... this.
1690
1691 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1692
1693 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
1694
1695 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1696
1697 * grub-core/lib/legacy_parse.c: Support clear and testload.
1698
1699 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1700
1701 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
1702
1703 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1704
1705 * grub-core/fs/ext2.c: Experimental support for 64-bit.
1706
1707 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1708
1709 * grub-core/net/tftp.c (ack): Fix endianness problem.
1710 (tftp_receive): Likewise.
1711 Reported by: Michael Davidsaver.
1712
1713 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1714
1715 * gentpl.py: Make mans depend on grub-mkconfig_lib.
1716
1717 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1718
1719 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
1720 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
1721 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
1722
1723 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1724
1725 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
1726 efi_mmap_size.
1727 Reported by: Stuart Hayes.
1728
1729 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1730
1731 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
1732
1733 * grub-core/Makefile.core.def (mda_text): New module.
1734 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
1735 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
1736 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
1737 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
1738 here.
1739 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
1740 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
1741 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
1742 here.
1743 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
1744 to ..
1745 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
1746 ... here
1747 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
1748 here.
1749 * grub-core/term/i386/vga_common.c: Removed.
1750 * include/grub/i386/vga_common.h: Likewise.
1751 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
1752 (grub_vga_cr_bw_read): Likewise.
1753 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
1754 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
1755 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
1756 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
1757 grub_vga_cr_read/grub_vga_cr_write.
1758 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
1759
1760 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1761
1762 * configure.ac: Bump version to 2.00.
1763 * grub-core/normal/main.c (features): Add feature_200_final.
1764
1765 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1766 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
1767
1768 * NEWS: Fix unclarity and language mistakes.
1769
1770 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1771
1772 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
1773 additional size to 3 pages.
1774 Reported by: Stuart Hayes.
1775
1776 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1777
1778 * NEWS: Add 2.00 entry.
1779
1780 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1781
1782 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
1783 put explicit "/" for empty path.
1784 (wildcard_expand): Improve dprintf.
1785
1786 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1787
1788 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
1789 it's equal to currnode. This can happen with "" symlink.
1790
1791 2012-06-27 Yves Blusseau <blusseau@zetam.org>
1792
1793 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
1794 echo shell command by printf command.
1795
1796 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1797
1798 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
1799 the value returned by firmware is the maximal position, not diumension.
1800 (grub_terminfo_output_state): Use a more sane fallback.
1801
1802 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1803
1804 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
1805
1806 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1807
1808 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
1809 frequency to 150 MHz.
1810
1811 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1812
1813 Apple fixes.
1814
1815 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
1816 __APPLE_
1817 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
1818 definition.
1819 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
1820
1821 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1822
1823 Handle slash in HFS label.
1824
1825 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
1826 (grub_hfs_dir): Tanslate slash.
1827 (grub_hfs_label): Don't translate slash.
1828
1829 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1830
1831 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
1832 network protocol listing since it introduces problematic dependency on
1833 net module.
1834
1835 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1836
1837 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
1838
1839 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1840
1841 Init video early on yeeloong to avoid being rebooted by watchdog.
1842
1843 * grub-core/Makefile.am (gensm712): New target.
1844 (sm712_start.S): Likewise.
1845 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
1846 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
1847 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
1848 description.
1849 * include/grub/vga.h: Move registry definitions to...
1850 * include/grub/vgaregs.h: ... here.
1851
1852 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1853
1854 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
1855 signedness.
1856
1857 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1858
1859 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
1860 platforms with firmware disk drivers in the core.
1861
1862 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1863
1864 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
1865 informative verbose message.
1866 (read_lv): Handle 64-bit segment size.
1867
1868 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1869
1870 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
1871
1872 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1873
1874 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
1875 character but still remove trainling spaces.
1876 (grub_fat_label): Ignore archive flag.
1877
1878 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1879
1880 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
1881 cast between linux_kernel_header and linux_kernel_params.
1882
1883 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1884
1885 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
1886 type for size.
1887 (grub_raid6_recover_func_t): Likewise.
1888 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
1889 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
1890
1891 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1892
1893 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
1894
1895 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
1896
1897 Fix overflow.
1898
1899 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
1900 [__NetBSD__]: Add explicit cast before bitshift.
1901
1902 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1903
1904 * configure.ac: Bump to 2.00~rc1.
1905
1906 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1907
1908 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
1909 half of $a0.
1910
1911 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1912 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
1913
1914 * docs/grub.texi: Fix search syntax.
1915 (Multi-boot manual config): Put msdos rather than GPT example.
1916 Grammar corrections.
1917
1918 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1919
1920 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
1921
1922 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1923
1924 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
1925
1926 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1927
1928 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
1929 message on double free. Put the value of magic in case of mismatch.
1930
1931 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1932
1933 Speed-up video on yeeloong.
1934
1935 * grub-core/video/sm712.c (framebuffer): Remove render_target and
1936 add cached_ptr.
1937 (grub_video_sm712_video_fini): Unmap cached_ptr.
1938 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
1939 (grub_video_sm712_set_active_render_target): Removed.
1940 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1941 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
1942 sync caches.
1943
1944 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1945
1946 Avoid flushing the same line multiple times on loongson.
1947
1948 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
1949 Step in 32 bytes and not 1 byte.
1950 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
1951 Likewise.
1952
1953 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1954
1955 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
1956 subvolumes.
1957
1958 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1959
1960 Implement flow control for http.
1961
1962 * grub-core/net/http.c (parse_line): Handle response 206.
1963 (http_receive): Stall if too many packets are in the queue.
1964 (http_establish): Fix range header.
1965 (http_seek): Fix double free.
1966 (http_close): Likewise.
1967 (http_packets_pulled): New function.
1968 (grub_http_protocol): Set http_seek
1969 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
1970 (ack_real): Set window depending on i_stall.
1971 (grub_net_send_tcp_packet): Likewise.
1972 (grub_net_tcp_stall): New function.
1973 (grub_net_tcp_unstall): Likewise.
1974 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
1975 (grub_net_tcp_unstall): Likewise.
1976
1977 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1978
1979 * grub-core/net/tftp.c: Decrease stall to 50 packets.
1980
1981 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1982
1983 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
1984
1985 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1986
1987 * tests/util/grub-shell.in: Fix a typo.
1988
1989 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1990
1991 Implement flow control for tftp.
1992
1993 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
1994 packets but stop only if stop condition is satisfied.
1995 (grub_net_fs_read_real): Call packets_pulled after real read. Use
1996 `stall' instead of `eof' as stop condition.
1997 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
1998 (http_err): Likewise.
1999 * grub-core/net/tftp.c (ack): Replace the first argument with data
2000 instead of socket.
2001 (tftp_receive): Stall if too many packets are in wait queue.
2002 (tftp_packets_pulled): New function.
2003 (grub_tftp_protocol): Set packets_pulled.
2004 * include/grub/net.h (grub_net_packets): New field count.
2005 (grub_net_put_packet): Increment count.
2006 (grub_net_remove_packet): Likewise.
2007 (grub_net_app_protocol): New field `packets_pulled'.
2008 (grub_net): New field `stall'.
2009
2010 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2011
2012 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
2013 sync part to handle them.
2014
2015 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2016
2017 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
2018 * grub-core/net/drivers/ieee1275/ofnet.c
2019 (grub_ieee1275_net_config_real): Likewise.
2020
2021 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2022
2023 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
2024 the direct route for server/gateway.
2025
2026 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2027
2028 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
2029 IP address to server name since we may not hame the DNS.
2030
2031 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2032
2033 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
2034 freeing random buffer on failure.
2035 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
2036
2037 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2038
2039 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
2040
2041 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2042
2043 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
2044 reserved bytes.
2045 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
2046 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
2047 Handle malloc error correctly.
2048
2049 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2050
2051 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
2052 blocks.
2053
2054 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2055
2056 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
2057 increment.
2058
2059 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2060
2061 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
2062 none is explicitly specified.
2063
2064 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2065
2066 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
2067 while reallocating.
2068
2069 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2070
2071 Respect netmask from bootp/dhcp.
2072
2073 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
2074 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
2075 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
2076 into ...
2077 (grub_net_add_ipv4_local): ... this.
2078 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
2079 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
2080 (grub_net_add_ipv4_local): New proto.
2081
2082 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2083
2084 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
2085 determining EFI memory map size.
2086
2087 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2088
2089 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
2090
2091 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2092
2093 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
2094 when looking for partition separator.
2095
2096 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2097
2098 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
2099 Escape commas.
2100
2101 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2102
2103 Restructure FAT driver to avoid hook in label reading as it hits a
2104 GCC bug.
2105
2106 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
2107 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
2108 (grub_fat_iterate_dir): Split into ...
2109 (grub_fat_iterate_init): ... this, ...
2110 (grub_fat_iterate_fini): ... this, ...
2111 (grub_fat_iterate_dir_next): ... and this. All users updated.
2112
2113 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2114
2115 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2116 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
2117 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2118 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
2119 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
2120 New fields last_key and last_key_time.
2121 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
2122 extended key-esc into extended key-extended key.
2123
2124 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2125
2126 Avoid unnecessary memcpy of whole video buffer.
2127
2128 * grub-core/video/fb/video_fb.c (dirty): New struct.
2129 (framebuffer): Add members current_dirty and previous_dirty.
2130 (dirty): New function.
2131 (grub_video_fb_fill_rect): Update dirty.
2132 (common_blitter): Likewise.
2133 (grub_video_fb_scroll): Likewise.
2134 (doublebuf_blit_update_screen): Copy only dirty part.
2135 (doublebuf_pageflipping_update_screen): Likewise.
2136 (grub_video_fb_doublebuf_blit_init): Init dirty.
2137 (doublebuf_pageflipping_init): Likewise.
2138 (grub_video_fb_setup): Likewise.
2139
2140 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2141
2142 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
2143 poll rate.
2144
2145 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2146
2147 Fix wildcard regexp dot and other special characters handling.
2148 Reported by: Robert Mabee.
2149
2150 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
2151 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
2152 (split_path): Trigger expansion on '?'.
2153 (unescape): New function.
2154 (wildcard_expand): Unescape parts copied without globbing.
2155 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
2156 (grub_script_arglist_to_argv): Don't unescape expansions.
2157
2158 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2159
2160 * include/grub/net.h (grub_net_card): New member txbufsize.
2161 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
2162 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2163 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
2164 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
2165 txbufsize.
2166 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
2167 compatible property to check for macs. Set
2168 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2169 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
2170 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
2171 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
2172 (send_card_buffer): Use txbuf.
2173 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
2174 nested function out of the parent while on it.
2175
2176 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2177
2178 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
2179 presence check.
2180 (grub_ieee1275_net_config_real): Fix config pointer.
2181
2182 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2183
2184 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
2185 filename parsing to non-block devices.
2186
2187 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2188
2189 * grub-core/kern/device.c (grub_device_open): Remove dead code.
2190
2191 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2192
2193 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
2194 All users updated.
2195
2196 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2197
2198 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
2199 UUID search command even if hints probing failed.
2200
2201 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2202
2203 * po/POTFILES.in: Regenerated.
2204
2205 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2206
2207 Speed-up video on fuloong.
2208
2209 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
2210 New function.
2211 (grub_pci_device_unmap_range): Handle non-cached address.
2212 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
2213 add direct_ptr.
2214 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
2215 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
2216 (grub_video_sis315pro_set_active_render_target): Removed.
2217 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
2218 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
2219 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
2220 sync caches.
2221 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
2222 New proto.
2223
2224 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2225
2226 * docs/grub.texi (Multi-boot manual config): New section.
2227
2228 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2229
2230 Avoid slow read-back from VRAM.
2231
2232 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
2233 Move from here ...
2234 * grub-core/video/fb/video_fb.c
2235 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
2236 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
2237 (front_target): Remove front_target. Add pages.
2238 (grub_video_fb_init): Skip setting front_pages.
2239 (grub_video_fb_fini): Likewise.
2240 (doublebuf_blit_update_screen): Use pages.
2241 (grub_video_fb_doublebuf_blit_init): Likewise.
2242 (doublebuf_pageflipping_init): Allocate offscreen buffer.
2243 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
2244 (grub_video_fb_setup): Prefer doublebuffing.
2245
2246 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2247
2248 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
2249 gzio.
2250
2251 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2252
2253 Add loongson tests.
2254
2255 * tests/util/grub-shell.in: Handle loongson.
2256 * tests/partmap_test.in: Add loongson to the list of platform using ATA
2257 drivers.
2258 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
2259 Reboot instead of shutdown if REBOOT is defined.
2260
2261 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2262
2263 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
2264 sized ports since unlike on real hardware qemu supports only 32-bit
2265 regs.
2266
2267 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2268
2269 * Makefile.util.def (grub-mkrescue): Enable on loongson.
2270 * util/grub-mkrescue.in: Handle loongson.
2271
2272 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
2273
2274 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
2275 Set is_part appropriately.
2276 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
2277 names. Canonicalize partition without full disk.
2278
2279 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2280
2281 Revert usb-quiesce since it's wrong.
2282
2283 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
2284 (grub_ofdisk_init): Don't do quiesce.
2285
2286 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2287
2288 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
2289 PowerMac workaround to Xserves as well.
2290 Information supplied by: Benjamin Herrenschmidt.
2291
2292 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2293
2294 Don't assume that beginning address is also the entry point on ppc.
2295
2296 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
2297 (grub_linux_boot): Use linux_entry.
2298 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
2299 (grub_linux_load64): Likewise.
2300
2301 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2302
2303 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
2304
2305 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2306
2307 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
2308 needlessly lose the console.
2309
2310 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2311
2312 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
2313 space.
2314
2315 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2316
2317 Remove non-functional EFI grub_get_rtc. Put a better fatal message
2318 than current grub_get_rtc() not implemented when booted with
2319 coreboot without TSC.
2320
2321 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
2322 Add machine/time.h to kernel headers on loongson.
2323 * grub-core/Makefile.core.def (kernel): Remove
2324 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
2325 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
2326 (grub_get_rtc): Likewise.
2327 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
2328 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
2329 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
2330 * grub-core/kern/i386/tsc.c (grub_tsc_init)
2331 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
2332 rather than installing known non-working time source.
2333 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
2334 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
2335 * include/grub/time.h: Don't include machine/time.h.
2336 * include/grub/efi/time.h: Removed.
2337 * include/grub/i386/efi/time.h: Likewise.
2338 * include/grub/i386/ieee1275/time.h: Likewise.
2339 * include/grub/powerpc/ieee1275/time.h: Likewise.
2340 * include/grub/sparc64/ieee1275/time.h: Likewise.
2341 * include/grub/x86_64/efi/time.h: Likewise.
2342
2343 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2344
2345 Remove dot on i and j when combining with above diacritics.
2346
2347 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
2348 value.
2349 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
2350 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
2351 with dotless variants when any combining above is present.
2352
2353 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2354
2355 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
2356 text and not binary.
2357
2358 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2359
2360 Stop polling as soon as we have the packet we were waiting for.
2361
2362 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
2363 All users updated.
2364 * grub-core/net/arp.c (have_pending): New var.
2365 (pending_req): Likewise.
2366 (grub_net_arp_send_request): Fill pending_req and use have_pending as
2367 stop indicator.
2368 (grub_net_arp_receive): Set have_pending.
2369 * grub-core/net/dns.c (recv_data): New field stop.
2370 (recv_hook): Set stop.
2371 (grub_net_dns_lookup): Init stop and use as stop condition.
2372 * grub-core/net/http.c (http_establish): Use headers_recv as stop
2373 condition.
2374 * grub-core/net/net.c (grub_net_poll_cards): New argument
2375 stop_condition. Stop when it goes true.
2376 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
2377 indicator.
2378 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
2379
2380 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2381
2382 Keep TX and RX buffers on EFI rather than always allocate new ones.
2383
2384 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
2385 card. All users updated.
2386 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
2387 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
2388 (get_card_packet): Likewise.
2389 (grub_efinet_findcards): Init new fields.
2390
2391 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2392
2393 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
2394 compilation error on sparc64.
2395
2396 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2397
2398 Use ITC on IA64 rather than broken routine based on daytime.
2399
2400 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
2401 ia64.
2402 (grub_get_rtc) [__ia64__]: Likewise.
2403 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
2404 (get_itc): New function.
2405 (grub_rtc_get_time_ms): Likewise.
2406 (grub_machine_init): Calibrate ITC.
2407 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
2408 Keep only on non-ia64. Don't export since it's broken and used only
2409 if TSC is unavailable.
2410
2411 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2412
2413 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
2414 even if it's used.
2415 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
2416 Skip if parent is unused.
2417
2418 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2419
2420 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
2421
2422 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2423
2424 Fix wildcard escaping.
2425
2426 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
2427 * grub-core/script/execute.c (wildcard_escape): .. to here.
2428 Don't escape dot.
2429 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
2430 * grub-core/script/execute.c (wildcard_unescape): .. to here.
2431 Don't escape dot.
2432 * grub-core/script/execute.c (gettext_append): Always escape.
2433 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
2434 * grub-core/script/yylex.l: Don't cut away the escaping.
2435 * tests/grub_script_echo1.in: Add tests with wildcard.
2436
2437 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2438
2439 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
2440 (ftdi_hw_configure): Likewise.
2441 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
2442 define.
2443 (real_config): Handle 1.5 stop bits.
2444 (pl2303_hw_configure): Likewise.
2445
2446 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2447
2448 * Makefile.am: Add ppc linux bootcheck.
2449 * grub-core/tests/boot/linux-ppc.cfg: New file.
2450 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
2451
2452 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2453
2454 * tests/grub_script_expansion.in: Skip network protocols.
2455
2456 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2457
2458 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
2459
2460 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2461
2462 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
2463 --rom-directory.
2464 Add -graft-points.
2465
2466 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2467
2468 ESCC serial driver for conducting sautomated tests in qemu.
2469 Not tested on real hardware.
2470
2471 * include/grub/serial.h (grub_serial_port): New field escc_desc.
2472 * grub-core/term/ieee1275/escc.c: New file.
2473 * grub-core/Makefile.core.def (escc): New module.
2474
2475 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2476
2477 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
2478 invalid on error.
2479 (serial_hw_fetch): Don't read invalid handle.
2480 (serial_hw_put): Don't write into invalid handle.
2481
2482 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2483
2484 Add a 1.5 stop bits value.
2485
2486 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
2487 * include/grub/serial.h (grub_serial_stop_bits_t): Add
2488 GRUB_SERIAL_STOP_BITS_1_5.
2489
2490 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2491
2492 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
2493 value rather than let it uninited.
2494
2495 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2496
2497 * grub-core/commands/wildcard.c (+check_file): New function.
2498 (wildcard_expand): Don't expand to non-existing files, expand with
2499 suffix and not attempt to expand if not needed.
2500
2501 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2502
2503 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
2504 out of partitions containing other partitions.
2505
2506 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2507
2508 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
2509 on some qemu versions with GRUB.
2510
2511 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
2512 define.
2513 (grub_openbsd_bootarg_pcibios): New struct.
2514 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
2515 Add PCIINFO.
2516
2517 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2518
2519 * tests/util/grub-shell.in: Trim firmware output on EFI.
2520
2521 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2522
2523 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
2524 and coreboot since it's already in kernel.
2525
2526 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2527
2528 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
2529 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2530 to here. New return value start. All users updated.
2531 Recursively scan linear mappings.
2532 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
2533 proto.
2534 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
2535 Use grub_util_get_dm_node_linear_info.
2536 * util/getroot.c (convert_system_partition_to_system_disk): Use
2537 grub_util_info rather than grub_dprintf.
2538 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
2539
2540 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2541
2542 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
2543
2544 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
2545 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
2546
2547 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2548
2549 * include/grub/types.h (grub_set_unaligned64): New function.
2550 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
2551 (setup): Likewise.
2552
2553 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2554
2555 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
2556 (grub_ofdisk_fini): Quiesce USB devices.
2557
2558 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2559
2560 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
2561 caches.
2562
2563 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2564
2565 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
2566
2567 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2568
2569 * grub-core/disk/pata.c (grub_pata_pio_read)
2570 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
2571 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
2572
2573 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2574
2575 Extend automated tests to qemu-mips.
2576
2577 * Makefile.am: reorganise tests and enable qemu-mips.
2578 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
2579 * grub-core/tests/boot/linux.init-mips.S: New file.
2580 * tests/partmap_test.in: Handle ata0 disks.
2581 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
2582 non-pc i386.
2583
2584 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2585
2586 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
2587 ia64.
2588 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
2589 quotes while on it.
2590
2591 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2592
2593 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
2594 (grub_halt): Likewise.
2595 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
2596
2597 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2598
2599 * grub-core/term/serial.c (grub_serial_register)
2600 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
2601 the behaviour in line with x86 platforms.
2602
2603 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2604
2605 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
2606 (grub_ata_strncpy): Likewise.
2607 (grub_ata_identify): Add missing byteswaps.
2608
2609 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2610
2611 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
2612 byte-swap.
2613 (screen_read_char): Likewise.
2614 (grub_vga_text_cls): Likewise.
2615
2616 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2617
2618 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
2619 filenames.
2620 (make_file_path): Likewise.
2621
2622 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2623
2624 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
2625 machines.
2626 Tested by: Paulo Flabiano Smorigo.
2627 Crucial information about API supplied by: Coleen <Last name unknown>.
2628 Reviewed by: Coleen <Last name unknown>.
2629
2630 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2631
2632 * util/grub-mkimage.c: Disable -Wcast-align.
2633
2634 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2635
2636 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
2637 as they are fatal.
2638
2639 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2640
2641 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
2642
2643 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2644
2645 * util/grub-probe.c (escape_of_path): Fix double free.
2646
2647 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2648
2649 * grub-core/commands/videoinfo.c (hook): Show pitch.
2650
2651 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2652
2653 * util/grub.d/20_linux_xen.in: Skip xen-syms.
2654
2655 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2656
2657 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
2658 (probe): Add ieee1275 to OFW devices.
2659
2660 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2661
2662 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
2663
2664 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2665
2666 Handle IBM OFW path.
2667
2668 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
2669 available.
2670 (of_path_of_scsi): Handle vdevice.
2671
2672 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2673
2674 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
2675 Allocate in multiples of 16 to avoid adding a few bytes free region the
2676 windows bugs upon.
2677
2678 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2679
2680 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
2681 Allocate in multiples of 16 to avoid adding a few bytes free region the
2682 windows bugs upon.
2683 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
2684
2685 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2686
2687 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
2688 resolutions.
2689 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
2690 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
2691
2692 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
2693
2694 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
2695
2696 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2697
2698 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
2699 resulted in \\ at the end of the line.
2700
2701 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2702
2703 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
2704 (grub_parser_cmdline_state): Likewise.
2705 (grub_parser_split_cmdline): Likewise.
2706
2707 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2708
2709 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
2710 /dev/root and /dev/dm-*.
2711
2712 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2713
2714 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
2715 fix partially stale display.
2716
2717 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2718
2719 * grub-core/normal/menu_entry.c (backward_char): Use right line for
2720 substraction.
2721
2722 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2723
2724 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
2725 Fix MBR remapping workaround.
2726 (grub_util_biosdisk_read) [__linux__]: Likewise.
2727
2728 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
2729
2730 * util/grub-install.in: Check for ieee1275 and not ieee1276.
2731
2732 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2733
2734 * configure.ac: Bump to beta6.
2735
2736 2012-05-31 Christer Weinigel <christer@weinigel.se>
2737
2738 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
2739
2740 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2741
2742 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
2743 (grub_cmd_linux): Likewise.
2744
2745 2012-05-31 Christer Weinigel <christer@weinigel.se>
2746
2747 Fix EHCI low-speed.
2748
2749 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
2750 (GRUB_EHCI_MULT_TWO): Likewise.
2751 (GRUB_EHCI_MULT_THREE): Likewise.
2752 (GRUB_EHCI_CMASK_MASK): New enum value.
2753 (GRUB_EHCI_SMASK_MASK): Likewise.
2754 (GRUB_EHCI_CMASK_OFF): Likewise.
2755 (GRUB_EHCI_SMASK_OFF): Likewise.
2756 (grub_ehci_pci_iter): Enable periodic schedule.
2757 (grub_ehci_parse_notrun): Likewise.
2758 (grub_ehci_restore_hw): Likewise.
2759 (grub_ehci_setup_qh): Set flags for low speed transfers.
2760 (grub_ehci_find_qh): Use periodic list for low speed.
2761 (grub_ehci_setup_transfer): Check periodic queue as well.
2762 (grub_ehci_check_transfer): Likewise.
2763 (grub_ehci_cancel_transfer): Cancel periodic transfer.
2764
2765 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2766
2767 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
2768 parameter is used.
2769
2770 2012-05-31 Peter Jones <pjones@redhat.com>
2771
2772 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
2773 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
2774 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
2775
2776 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2777
2778 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
2779 uninited variable. Allocate at least setup_sects.
2780
2781 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2782
2783 Fix handling of EFI with big memory maps.
2784
2785 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
2786 (real_mode_mem): Likewise.
2787 (real_mode_target): Likewise.
2788 (real_mode_pages): Likewise.
2789 (prot_mode_pages): Likewise.
2790 (linux_params): New var.
2791 (linux_cmdline): Likewise.
2792 (free_pages): Don't set real mode variables.
2793 (allocate_pages): Don't allocate real mode memory.
2794 (grub_e820_add_region): Remove the limit.
2795 (grub_linux_boot): Allocate and copy real mode memory.
2796 (grub_linux_unload): Free linux_cmdline.
2797 (grub_cmd_linux): Use temporary storage for parameters.
2798 (grub_cmd_initrd): Likewise.
2799 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
2800 (linux_kernel_params): Make it 1K big.
2801
2802 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2803
2804 * Makefile.util.def: Remove -Wno-format.
2805 * grub-core/Makefile.core.def: Likewise.
2806
2807 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2808
2809 * tests/cmp_unit_test.c: Add missing failure message.
2810 * tests/example_unit_test.c: Likewise.
2811 * tests/printf_unit_test.c: Likewise.
2812
2813 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2814
2815 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
2816 relaxation of protective MBR requirements.
2817
2818 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2819
2820 * configure.ac: Add condition for COND_HOST_XNU.
2821 * Makefile.util.def (10_xnu): New script.
2822 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
2823
2824 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2825
2826 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
2827 objconv bug.
2828
2829 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2830
2831 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
2832 Binary on other platforms stays identical.
2833
2834 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2835
2836 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
2837 Apple.
2838
2839 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2840
2841 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
2842
2843 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2844
2845 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
2846 rather than defining size_t ourselves to avoid conflict.
2847
2848 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2849
2850 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
2851 initialisation to avoid __bzero reference.
2852
2853 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2854
2855 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
2856 version.
2857 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
2858 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
2859 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
2860 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
2861 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
2862
2863 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2864
2865 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
2866 * grub-core/kern/misc.c: Likewise.
2867 * grub-core/loader/i386/xnu.c: Likewise.
2868 * include/grub/i386/tsc.h: Likewise.
2869 * include/grub/symbol.h: Likewise.
2870
2871 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2872
2873 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
2874 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
2875 on older compiler.
2876
2877 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2878
2879 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2880 Implement Apple flavour.
2881 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
2882
2883 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2884
2885 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
2886 (memmove) [__APPLE__]: Likewise.
2887 (memcpy) [__APPLE__]: Likewise.
2888 (memset) [__APPLE__]: Likewise.
2889 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
2890 (memmove) [__APPLE__]: Likewise.
2891 (memcpy) [__APPLE__]: Likewise.
2892 (memset) [__APPLE__]: Likewise.
2893
2894 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2895
2896 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
2897 dependency discard.
2898
2899 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2900
2901 * grub-core/normal/main.c (read_config_file): Provide config_file and
2902 config_directory.
2903 * util/grub.d/41_custom.in: Use config_directoy when available.
2904
2905 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2906
2907 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
2908 (grub_bfs_dir): Likewise.
2909
2910 2012-05-27 Peter Jones <pjones@redhat.com>
2911
2912 The old code gives arguments to a printf function which can't work
2913 correctly, and the compiler complains.
2914
2915 * grub-core/tests/example_functional_test.c (example_test): Add
2916 missing text.
2917 * grub-core/tests/lib/test.c (add_failure): Rewrite.
2918 * include/grub/test.h (grub_test_assert_helper): New declaration.
2919 (grub_test_assert): Use grub_test_assert_helper.
2920
2921 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2922
2923 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
2924 (exfctest): ... this to avoid overlong filenames.
2925 All users updated.
2926
2927 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2928
2929 Handle "." and ".." on squashfs.
2930
2931 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
2932 Make inode numbers into stack.
2933 (grub_squash_read_symlink): Use stack.
2934 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
2935 (make_root_node): Fill stack.
2936 (grub_squash_open): Use stack.
2937
2938 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2939
2940 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
2941 freeing.
2942
2943 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2944
2945 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
2946 stderr on test calls.
2947
2948 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2949
2950 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
2951
2952 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2953
2954 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
2955
2956 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2957
2958 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
2959 "..".
2960
2961 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2962
2963 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
2964 (grub_hfsplus_iterate_dir): Add "." and "..".
2965
2966 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2967
2968 * grub-core/fs/cpio.c (canonicalize): Handle "..".
2969 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
2970
2971 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2972
2973 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
2974 (find_path): Handle "." and "..".
2975
2976 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2977
2978 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
2979 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
2980 (grub_affs_iterate_dir): Handle hardlinks.
2981
2982 2012-05-26 Matthew Garrett <mjg@redhat.com>
2983
2984 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
2985 (grub_efi_console_fini): Likewise.
2986 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
2987 (grub_video_gop_fill_mode_info): Rename to ...
2988 (grub_video_gop_fill_real_mode_info): ... this.
2989 (grub_video_gop_fill_mode_info): New function.
2990 (grub_video_gop_setup): Setup double framebuffer.
2991 (grub_video_gop_get_info_and_fini): Use original framebuffer.
2992 Free offscreen.
2993 (grub_video_gop_swap_buffers): Copy framebuffer.
2994 (grub_video_gop_fini): Free offscreen buffer.
2995 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
2996 New enum.
2997 (grub_efi_gop_blt_pixel): New struct.
2998
2999 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
3000
3001 * gentpl.py: Remove error disabling for objconv.
3002
3003 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
3004
3005 * configure.ac: Remove -Wunitialized as it's not available on older
3006 compilers.
3007
3008 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
3009
3010 Fix extent overflow comparator.
3011
3012 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
3013 (grub_hfsplus_read_block): Set type.
3014 (grub_hfsplus_cmp_extkey): Compare type.
3015
3016 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
3017
3018 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
3019
3020 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3021
3022 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
3023 than 0.
3024
3025 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3026
3027 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
3028 (dejavu_bold_14.pf2): New target.
3029
3030 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3031
3032 * configure.ac: Fix djvu font detection.
3033
3034 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
3035
3036 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
3037 ext* instead of ext2.
3038
3039 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
3040
3041 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
3042 name with \0.
3043
3044 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
3045
3046 * docs/grub-dev.texi: Remove dot from .png.
3047
3048 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3049
3050 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
3051 protective entry in any slot.
3052 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
3053 if protective entry is found in any slot.
3054
3055 Protective entry in non-first slot make no sense but is a widespread
3056 brain damage.
3057
3058 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3059
3060 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
3061
3062 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3063
3064 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
3065 with old reiserfs.
3066 (grub_reiserfs_open): Don't free root.
3067
3068 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3069
3070 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
3071 after freeing for safety.
3072
3073 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3074
3075 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
3076 Reported by: Jordan Uggla.
3077
3078 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
3079
3080 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
3081 actual implementation. Specifically, clarify that the grub menu will
3082 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
3083 passed.
3084
3085 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
3086
3087 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
3088 of r0.
3089
3090 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3091
3092 Remove unjustified hard dependency of normal.mod on gfxterm.
3093
3094 * include/grub/term.h (grub_term_output): New member fullscreen.
3095 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
3096 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
3097 (grub_gfxterm): Set .fullscreen.
3098 * grub-core/normal/menu.c (menu_init): Use fullscreen.
3099 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
3100
3101 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3102
3103 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
3104 mentioning possible problems with non-ASCII (non-compliant) ISOs.
3105 Mention case-insensitive AFFS, SFS and JFS.
3106
3107 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3108
3109 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
3110
3111 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3112
3113 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3114 a bad FS.
3115
3116 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3117
3118 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
3119 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
3120
3121 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3122
3123 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
3124 (grub_jfs_mount): Fill caseins.
3125 (grub_jfs_find_file): Respect caseins.
3126
3127 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3128
3129 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
3130 through UTF-16.
3131
3132 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3133
3134 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
3135 New argument origpath. All users updated.
3136
3137 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3138
3139 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
3140 (read_attr): Ensure that we read start of possibly compressed block.
3141
3142 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3143
3144 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
3145 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
3146 All users updated.
3147
3148 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3149
3150 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
3151 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
3152 (dejavu.pf2): Replace with ...
3153 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
3154 this.
3155
3156 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3157
3158 * util/grub.d/20_linux_xen.in: Add missing line.
3159
3160 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3161
3162 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
3163 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
3164 (grub_utf16_to_utf8): Likewise.
3165
3166 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3167
3168 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
3169 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
3170 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3171 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
3172 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
3173 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
3174
3175 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3176
3177 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3178 a bad FS.
3179
3180 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3181
3182 * grub-core/fs/udf.c (read_string): Bail out on size=0.
3183 (grub_udf_read_symlink): Handle read_string failure.
3184
3185 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3186
3187 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
3188 comment.
3189
3190 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3191
3192 Fix handling of UDF symlinks.
3193
3194 * grub-core/fs/udf.c (read_string): New argument outbuf.
3195 All users updated.
3196 (grub_ufs_read_symlink): Rename to ...
3197 (grub_udf_read_symlink): ... this. All users updated.
3198 Handle symlinks with more than one component.
3199
3200 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3201
3202 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
3203 symlinks. Replace leading colon with a slash.
3204
3205 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3206
3207 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
3208 filename.
3209
3210 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3211
3212 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
3213 match in inner node.
3214
3215 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3216
3217 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
3218 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
3219 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
3220 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
3221 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
3222 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
3223 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
3224 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
3225 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
3226
3227 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3228
3229 Use grub-probe and not cmp to check that disk is empty.
3230
3231 * util/grub-install.in: Use grub-probe for zero-check.
3232 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
3233 (probe): Handle PRINT_ZERO_CHECK.
3234 (argp_parser): Handle -t zero_check.
3235
3236 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3237
3238 Flush block cache on adding disk to device map.
3239
3240 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
3241 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
3242 adding.
3243 (read_device_map): Likewise.
3244 (open_device): Flush on opening.
3245
3246 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3247
3248 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
3249 (handle_symlink): Fix off-by-one error.
3250 Canonicalize the target.
3251 (grub_cpio_dir): Canonicalize the name.
3252 Fix memory leak.
3253 Set directory.
3254 (grub_cpio_open): Canonicalize the name.
3255
3256 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3257
3258 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
3259 handling.
3260
3261 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3262
3263 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
3264 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
3265
3266 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3267
3268 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
3269 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3270 All users updated.
3271
3272 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3273
3274 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
3275 counterpart.
3276
3277 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3278
3279 Fix UFS1 big file support.
3280
3281 * grub-core/fs/ufs.c (INODE): Removed.
3282 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
3283 64-bit.
3284 (INODE_MODE): Simplify.
3285 (grub_ufs_inode): Use uint64_t for size and not int64_t.
3286 (grub_ufs_lookup_symlink): Don't use INODE.
3287
3288 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3289
3290 Fix minixfs with non-power-of-two blocks since it's supported by minix.
3291
3292 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
3293 (grub_minix_data): Replace log_block_size with block_size.
3294 (grub_minix_read_file): Use block_size but avoid 64-bit division.
3295 (grub_minix_mount): Fill block_size.
3296
3297 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3298
3299 * configure.ac: Bump to beta5.
3300
3301 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3302
3303 Fix wrapped HFS+ handling.
3304
3305 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
3306 blocks_start. All users updated.
3307 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
3308 wrapping offset.
3309 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
3310
3311 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3312
3313 Fix long symlinks on reiserfs.
3314
3315 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
3316 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
3317 (grub_reiserfs_iterate_dir): Save size for non-directories.
3318 (grub_reiserfs_open): Don't reread stat block as we already know the
3319 size.
3320 (grub_reiserfs_read): Split into...
3321 (grub_reiserfs_read_real): ... and ...
3322 (grub_reiserfs_read): ...this.
3323
3324 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3325
3326 Fix non-indexed JFS.
3327
3328 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
3329 (grub_jfs_data): New field namecomponentlen.
3330 (grub_jfs_mount): Fill namecomponentlen.
3331 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
3332
3333 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3334
3335 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
3336 * tests/grub_script_echo1.in: Add tests.
3337
3338 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3339
3340 * util/grub-install.in: Ignore empty devicetree directory.
3341
3342 2012-05-08 Bean <bean123ch@gmail.com>
3343
3344 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
3345 All users updated.
3346 (free_rsm): Free header as well.
3347 (free_old_fragments): Fix memory leak.
3348 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
3349 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
3350 (destroy_pq): Likewise.
3351 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
3352
3353 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3354
3355 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
3356 resulting hash as a precaution.
3357
3358 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3359
3360 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
3361 '_' in variable names.
3362 * grub-core/net/net.c (grub_net_network_level_interface_register):
3363 Likewise.
3364
3365 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3366
3367 Fix AFFS with non-512B blocks.
3368
3369 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
3370 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
3371 (grub_affs_data): Replace blocksize with log_blocksize.
3372 (grub_affs_read_block): Fix non-512B blocks.
3373 (grub_affs_read_symlink): Likewise.
3374 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
3375 (grub_affs_read): Fix non-512B blocks.
3376 (grub_affs_label): Likewise.
3377 (grub_affs_mtime): Likewise.
3378 (grub_affs_mount): Fix block detection routine.
3379
3380 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3381
3382 Add filesystem mtime to AFFS.
3383
3384 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
3385 (aftime2ctime): New function.
3386 (grub_affs_dir): Use aftime2ctime.
3387 (grub_affs_label): Fix return value.
3388 (grub_affs_mtime): New function.
3389 (grub_affs_fs): Add mtime.
3390
3391 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3392
3393 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
3394 UTF-8.
3395
3396 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3397
3398 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
3399 UTF-8.
3400
3401 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3402
3403 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
3404
3405 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3406
3407 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
3408 flags.
3409 (FLAGS_CASE_SENSITIVE): New enum value.
3410 (cache_entry): New struct.
3411 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
3412 cache_size and cache.
3413 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
3414 Add log_blocksize and fshelp_flags.
3415 (grub_sfs_read_extent): Handle non-512 blocks.
3416 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
3417 (grub_sfs_read_file): Handle non-512 blocks.
3418 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
3419 fshelp_flags.
3420 (grub_sfs_read_symlink): Handle non-512 blocks.
3421 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
3422 (grub_sfs_dir): Free cache.
3423 (grub_sfs_close): Likewise.
3424
3425 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3426
3427 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
3428 filesystems.
3429
3430 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3431
3432 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
3433
3434 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3435
3436 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
3437
3438 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3439
3440 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
3441 (grub_sfs_read_extent): Likewise.
3442 (grub_sfs_read_block): Likewise.
3443 (grub_sfs_mount): Likewise.
3444 (grub_sfs_iterate_dir): Likewise.
3445 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
3446 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
3447
3448 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3449
3450 Fix errors on compressed NTFS with 512B clusters.
3451
3452 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
3453 types.
3454 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
3455 not 0.
3456 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
3457 Relax check for inline extents.
3458 (ntfscomp): Return correct -1 on error and not 0.
3459
3460 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3461
3462 * util/grub-install.in: Fix handling of prefix containing spaces.
3463
3464 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3465
3466 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
3467 (grub_squash_read_data): Fix offset byte-swapping.
3468
3469 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3470
3471 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
3472 per common usage and preffered in several parts of code.
3473 (grub_memcmp): Likewise.
3474 (grub_strncmp): Likewise.
3475 * include/grub/misc.h (grub_strcasecmp): Likewise.
3476 (grub_strncasecmp): Likewise.
3477 * Makefile.util.def (cmp_test): New test.
3478 (grub_script_strcmp): Likewise.
3479 * tests/cmp_unit_test.c: New file.
3480 * tests/grub_script_strcmp.in: Likewise.
3481 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
3482
3483 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3484
3485 * include/grub/pci.h: Move enums into no-asm part.
3486
3487 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3488
3489 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
3490
3491 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3492
3493 * util/getroot.c (find_hurd_root_device): Try to make error message
3494 and comments to translators clearer.
3495
3496 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3497
3498 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
3499
3500 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3501
3502 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
3503 btrfs.
3504
3505 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3506
3507 * docs/grub.cfg: Update.
3508
3509 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3510
3511 * docs/grub.texi (PXE): Remove not present variables.
3512
3513 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3514
3515 * grub-core/net/net.c (defserver_set_env): New function.
3516 (defserver_get_env): Likewise.
3517 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
3518
3519 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3520
3521 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
3522 entries.
3523
3524 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3525
3526 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
3527 * grub-core/kern/emu/hostdisk.c: Likewise.
3528
3529 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3530
3531 Handle hurd userspace partitions.
3532
3533 * util/getroot.c (find_hurd_root_device): New function.
3534 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
3535
3536 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3537
3538 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
3539 names.
3540 Reported by: Bastian Blank.
3541
3542 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3543
3544 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
3545 crossing page boundary.
3546
3547 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3548
3549 Fix B-tree search in BFS, especially in presence of non-ASCII
3550 characters.
3551
3552 * grub-core/fs/bfs.c (bfs_strcmp): New function.
3553 (find_in_b_tree): Use standard bsearch + btree algorithm.
3554
3555 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3556
3557 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
3558 and so on.
3559
3560 2012-05-03 Matthew Garrett <mjg@redhat.com>
3561 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3562
3563 Suspend broadcom cards in order to stop their DMA.
3564
3565 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
3566 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
3567 (pci): Don't build on x86 EFI.
3568 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
3569 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
3570 New function.
3571 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
3572 stop_broadcom if running on EFI.
3573 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
3574 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
3575 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
3576 (grub_pci_find_capability): New proto.
3577
3578 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3579
3580 * docs/grub.texi: Remove dot from the extension as it apparently
3581 doesn't work with some makeinfo versions.
3582
3583 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3584
3585 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
3586 with GRUB expectance.
3587
3588 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3589
3590 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
3591
3592 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3593
3594 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
3595 zero after directory block since last entry may be not 0-terminated if
3596 it ends on block boundary. Use continue instead of if spanning whole
3597 loop.
3598
3599 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3600
3601 Support 4K sectors UDF inline files.
3602
3603 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
3604 (grub_udf_extended_file_entry): Likewise.
3605 (grub_fshelp_node): Name the anonymous union. Put block at the end.
3606 All users updated.
3607 (get_fshelp_size): New function.
3608 (grub_udf_read_icb): Read whole block.
3609 (grub_udf_iterate_dir): Likewise.
3610 (grub_udf_dir): Likewise.
3611 (grub_udf_open): Likewise.
3612
3613 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3614
3615 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
3616
3617 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3618
3619 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
3620 inline symlinks in addition to workaround.
3621
3622 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3623
3624 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
3625
3626 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3627
3628 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
3629
3630 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3631
3632 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
3633
3634 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3635
3636 Fix reiserfs big seek times.
3637
3638 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
3639 exact. All users updated.
3640 (grub_reiserfs_read): Use nearest btree search for seeking.
3641 Fix return value on error.
3642
3643 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3644
3645 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
3646 entries.
3647 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
3648 * docs/grub.texi: Update menuentry description.
3649
3650 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3651
3652 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
3653 crash when embedding onto filesystem.
3654
3655 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3656
3657 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
3658 name.
3659
3660 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3661
3662 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
3663
3664 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3665
3666 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
3667 commit.
3668
3669 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3670 2012-05-01 Bean <bean123ch@gmail.com>
3671
3672 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
3673
3674 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3675
3676 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
3677 Special behaviour for len = 0 to read whole file isn't used anywhere and
3678 can cause buffer ovewrflows in several places.
3679
3680 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3681
3682 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
3683
3684 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3685
3686 Handle RAIDZ on non-512B sectors.
3687
3688 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
3689 max_children_ashift.
3690 (fill_vdev_info_real): Fill max_children_ashift.
3691 (read_device): Use max_children_ashift.
3692
3693 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3694
3695 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
3696
3697 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3698
3699 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
3700 disk names.
3701 * docs/grub.texi: Update device.map parts.
3702
3703 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3704
3705 Don't scan into non-diskfilter devices having diskfilter names.
3706
3707 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
3708 (scan_disk): New argument accept_diskfilter. Fix recursion depth
3709 handling.
3710 (scan_disk_hook): New function.
3711
3712 2012-04-29 Bean <bean123ch@gmail.com>
3713
3714 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
3715 allocation.
3716
3717 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
3718
3719 * configure.ac: Detect starfield theme font path
3720 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
3721
3722 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3723
3724 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
3725 geometry on serial consoles.
3726
3727 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3728
3729 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
3730 because of network consoles.
3731
3732 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3733
3734 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
3735 handling.
3736
3737 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3738
3739 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
3740 falls on Q syndrom.
3741
3742 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3743
3744 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
3745 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
3746
3747 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3748
3749 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
3750 Allocate at lest 8192 for temporary buffer as required for lzo.
3751
3752 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3753
3754 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
3755 to cluster_bits, since it's already added in.
3756 (grub_fat_read_data): Likewise.
3757
3758 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3759
3760 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
3761 as long as cluster size is multiple of 512 bytes.
3762
3763 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3764
3765 * util/grub-mkrescue.in: Fix locale directory.
3766
3767 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3768
3769 * grub-core/kern/emu/hostdisk.c (map): Make static.
3770
3771 2012-04-23 Bean <bean123ch@gmail.com>
3772
3773 * util/grub-fstest.c (fstest): Add missing break.
3774
3775 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3776
3777 Fix hurd build.
3778
3779 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
3780 not define nr variable.
3781 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
3782 find_root_devices_from_poolname, find_root_devices_from_libzfs,
3783 grub_find_device): Do not define.
3784
3785 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3786
3787 Fix kfreebsd compile and behaviour.
3788
3789 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
3790 format-security.
3791 * util/getroot.c: Fix wait.h include.
3792 (grub_guess_root_devices): Error if grub_find_device fails.
3793 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
3794 (grub_util_get_dev_abstraction): Likewise.
3795 (grub_util_pull_device): Likewise.
3796 (grub_util_get_grub_dev): Likewise.
3797 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
3798
3799 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3800
3801 Fix and unify wholedisk detection.
3802
3803 * util/getroot.c (convert_system_partition_to_system_disk): New argument
3804 is_part. All users updated.
3805 (device_is_wholedisk): Removed.
3806 (grub_util_biosdisk_get_grub_dev): Use is_part.
3807
3808 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3809
3810 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
3811 mode.
3812
3813 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3814
3815 * configure.ac: Bump to beta4.
3816
3817 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3818
3819 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
3820 --fs-uuid --set UUID syntax.
3821
3822 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3823
3824 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
3825 disunification.
3826
3827 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3828
3829 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
3830
3831 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
3832
3833 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
3834
3835 2012-04-18 Mike Gilbert <floppym@gentoo.org>
3836
3837 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
3838
3839 2012-04-18 Bean <bean123ch@gmail.com>
3840
3841 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
3842 place.
3843
3844 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3845
3846 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
3847 users updated.
3848 (grub_util_biosdisk_read): Handle Linux partitions not exactly
3849 corresponding to GRUB partitions.
3850 (grub_util_biosdisk_write): Likewise.
3851
3852 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3853
3854 Scan mdraid before LVM.
3855
3856 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
3857 (grub_diskfilter_register_front): ... this.
3858 (grub_diskfilter_register_back): New function.
3859 All users of grub_diskfilter_register updated.
3860
3861 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3862
3863 * util/grub-install.in: Fix an automatic target detection bug.
3864
3865 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3866
3867 * util/grub-install.in: New option --efi-directory.
3868
3869 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3870
3871 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
3872 boot services if we have no other choice.
3873
3874 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3875
3876 * util/grub-mknetdir.in: Rename --override-directory to --directory and
3877 document it.
3878 * tests/util/grub-shell.in: Update to --directory.
3879
3880 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3881
3882 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
3883
3884 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3885
3886 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
3887 (grub_minix_read_file): Likewise.
3888 (grub_minix_read_inode): Likewise.
3889 (grub_minix_find_file): Likewise.
3890 (grub_minix_dir): Likewise.
3891
3892 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3893
3894 * util/grub-setup.c (setup): Fix partition handling and blocklist
3895 check.
3896
3897 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3898
3899 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
3900 redundant buggy overlap check.
3901
3902 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3903
3904 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
3905 and grub-mknetdir.
3906
3907 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3908
3909 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
3910 kh.loadflags on pre-2.00 kernels.
3911
3912 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3913
3914 Terminate UNDI and PXE before launching the payload to avoid problems
3915 with DMA.
3916
3917 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
3918 (grub_loader_flags): ... this. All users updated.
3919 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
3920 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
3921 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
3922 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
3923 function.
3924 (grub_pxe_restore): Likewise.
3925 (fini_hnd): New var.
3926 (GRUB_MOD_INIT): Register shutdown hook.
3927 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
3928 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
3929 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
3930 (grub_loader_set): Rename second argument to flags.
3931
3932 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3933
3934 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
3935 written bytes.
3936 (grub_get_num_of_utf8_bytes): New function.
3937 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
3938 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
3939 executing it.
3940 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
3941 (grub_ucs4_to_utf8): Change return type.
3942
3943 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3944
3945 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
3946 warning.
3947 * grub-core/fs/bfs.c (hop_level): Likewise.
3948 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
3949
3950 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3951
3952 * grub-core/lib/adler32.c: Recode due to license unclearness.
3953
3954 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3955
3956 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
3957 (test_header): Likewise.
3958
3959 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3960
3961 Fix --help formatting.
3962
3963 * util/grub-mkconfig_lib.in (print_option_help): New function.
3964 (grub_fmt): Likewise.
3965 * util/grub-install.in: Use print_option_help and grub_fmt.
3966 * util/grub-kbdcomp.in: Likewise.
3967 * util/grub-mkconfig.in: Likewise.
3968 * util/grub-mknetdir.in: Likewise.
3969 * util/grub-mkrescue.in: Likewise.
3970 * util/grub-mkstandalone.in: Likewise.
3971 * util/grub-reboot.in: Likewise.
3972 * util/grub-set-default.in: Likewise.
3973 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3974
3975 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3976
3977 * linguas.sh: Remove autogenerated *.po.
3978
3979 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3980
3981 * po/README: Move language fetcing to ...
3982 * linguas.sh: ... here.
3983 * po/README: Point to linguas.sh.
3984
3985 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3986
3987 * po/README: Exclude ko.po due to disclaimer problems.
3988
3989 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3990
3991 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
3992 len = 0.
3993 (grub_gettext_translate_real): Handle 0th string.
3994 (grub_gettext_translate): Ensure that "" isn't translated.
3995
3996 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3997
3998 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
3999 TRANSLATORS comment.
4000 (grub_diskfilter_print_partmap): Propagate changing of error into
4001 warning.
4002
4003 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4004
4005 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
4006 to uint64_t to prevent overflow.
4007 (grub_diskfilter_lv): Increase start_extent and extent_count
4008 to uint64_t to prevent overflow.
4009
4010 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4011
4012 * configure.ac: Increase version.
4013
4014 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4015
4016 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
4017
4018 * po/Rules-translit: New file.
4019 * po/arabic.sed: Likewise.
4020 * po/cyrillic.sed: Likewise.
4021 * po/greek.sed: Likewise.
4022 * po/hebrew.sed: Likewise.
4023 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
4024 * po/Makefile.in.in: Add extra_dist4.
4025
4026 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4027
4028 Handle big-endian minixfs (fixes minixfs tests on bigendian).
4029
4030 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
4031 modify names. Introduce MODE_BIGENDIAN.
4032 * grub-core/fs/minix_be.c: New file.
4033 * grub-core/fs/minix2_be.c: Likewise
4034 * grub-core/fs/minix3_be.c: Likewise.
4035 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
4036 minix3_be.
4037 * grub-core/Makefile.core.def (minix_be): New module.
4038 (minix2_be): Likewise.
4039 (minix3_be): Likewise.
4040
4041 2012-04-01 Felix <email@hamburg.de>
4042
4043 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
4044 (devs): Add MBP 2011.
4045
4046 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4047
4048 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
4049
4050 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4051
4052 * grub-core/normal/cmdline.c (print_completion): New field
4053 prompt_len.
4054 (grub_cmdline_get): Handle width properly.
4055
4056 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4057
4058 * grub-core/commands/lsacpi.c (options): Add missing terminator.
4059
4060 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4061
4062 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
4063 after 29th of February.
4064
4065 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4066
4067 Fix exfat endianness handling.
4068
4069 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
4070 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
4071 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
4072 Byte-swap utf16 when necessary.
4073 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
4074
4075 2012-03-31 Anton Blanchard <anton@samba.org>
4076 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4077
4078 Fix btrfs endianness handling.
4079
4080 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
4081 (lower_bound): Make root uint64_t. Use root in le.
4082 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
4083 (find_path): Fix template key init.
4084 (grub_btrfs_dir): Fix mtime byteswap.
4085 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
4086
4087 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4088
4089 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
4090 recursion_depth. Break infinite resursions. All users updated.
4091
4092 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4093
4094 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
4095 after free.
4096 Reported by: Peter Jones.
4097
4098 2012-03-31 Anton Blanchard <anton@samba.org>
4099
4100 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
4101 8 bit values.
4102
4103 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4104
4105 * util/grub-install.in: Fix nvram call for PreP.
4106
4107 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4108
4109 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
4110 the error when some elements are missing into a warning.
4111
4112 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4113
4114 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
4115
4116 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
4117
4118 * docs/grub.texi (Invoking grub-probe): New section.
4119 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
4120
4121 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
4122
4123 Fix tab and wide character handling in editor and menu.
4124
4125 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
4126 agglomerate control characters with combining marks.
4127 (bidi_line_wrap): Allow break on tab.
4128 (grub_unicode_get_comb_start): New function.
4129 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
4130 and tab correctly.
4131 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
4132 with a space.
4133 * grub-core/normal/term.c (print_ucs4_terminal): New argument
4134 fixed_tab_size. All users updated.
4135 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
4136 (grub_term_getcharwidth): Handle \t.
4137 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
4138 and copy.
4139
4140 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4141
4142 Handle big-endian mdraid.
4143
4144 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
4145 * grub-core/Makefile.core.def (mdraid09_be): New module.
4146 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
4147 rather than grub_le_to_cpu* and grub_cpu_to_le*.
4148 * grub-core/disk/mdraid_linux_be.c: New file.
4149
4150 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4151
4152 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
4153
4154 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4155
4156 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4157 missing quotes which caused confusion among translators.
4158
4159 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4160
4161 * util/grub-mkconfig_lib.in: Fix typo.
4162
4163 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4164
4165 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
4166 spaces.
4167 * tests/grub_script_leading_whitespace.in: New file.
4168 * Makefile.util.def (grub_script_leading_whitespace): New test.
4169
4170 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4171
4172 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
4173 to work.
4174
4175 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4176
4177 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
4178 starts with control character.
4179
4180 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4181
4182 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
4183 overflow.
4184 (grub_gdb_outbuf): Likewise.
4185
4186 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4187
4188 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
4189 zero terminator. Fixes a crash.
4190
4191 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4192
4193 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
4194 beyond 4 GiB.
4195 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
4196 images independently of preffered adderss field.
4197
4198 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4199
4200 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
4201 * grub-core/commands/regexp.c: Likewise.
4202 * grub-core/loader/i386/linux.c: Likewise.
4203 * grub-core/partmap/msdos.c: Likewise.
4204 * grub-core/script/execute.c: Likewise.
4205 * grub-core/term/gfxterm.c: Likewise.
4206
4207 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4208
4209 Add variable parsing in $"..." and fix several mismatches with bash.
4210
4211 * Makefile.util.def (grub_script_gettext): New test.
4212 * grub-core/script/execute.c (parse_string): New function.
4213 (gettext_append): Likewise.
4214 (grub_script_arglist_to_argv): Use gettext_append.
4215 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
4216 * tests/grub_script_gettext.in: New file.
4217
4218 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4219
4220 Fix handling of leading spaces in scripts.
4221
4222 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
4223 spaces.
4224 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
4225 other than skipping \r. All users updated.
4226 * tests/grub_script_echo1.in: Add space-related tests.
4227 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
4228
4229 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4230
4231 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
4232
4233 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4234
4235 * configure.ac: Bump up the version to beta2.
4236
4237 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4238
4239 Fix gettext reload bugs (e.g. inability to disable gettext
4240 once enabled).
4241
4242 * grub-core/gettext/gettext.c: Encapsulate all static variables in
4243 main_context and secondary_context. All functions updated.
4244 (grub_gettext_translate): Rename to ...
4245 (grub_gettext_translate_real): ... this. Return NULL on failed
4246 translate.
4247 (grub_gettext_translate): Handle secondary context.
4248 (grub_gettext_delete_list): Close file and zero-out the context.
4249 (grub_mofile_open): Don't call grub_gettext_delete_list.
4250 Don't close file.
4251 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
4252 if locale="" to avoid pointless error message.
4253 (grub_gettext_env_write_lang): Update lang even if load fails.
4254 Handle secondary context.
4255 (grub_gettext_reread_prefix): New function.
4256 (read_main): Likewise.
4257 (read_secondary): Likewise.
4258 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
4259 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
4260 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
4261 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
4262
4263 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4264
4265 * configure.ac: Decrease warning level to avoid spurious warnings and
4266 to be able to compile with GCC 4.2.
4267 * Makefile.util.def: Remove -Wno-error=logical-op.
4268
4269 2012-03-10 William Bittner <william.bittner@gmail.com>
4270
4271 * util/import_unicode.py: Add missing brackets around string for
4272 python 3 support.
4273
4274 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4275
4276 Fix efi chainloader on network root.
4277
4278 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
4279 network devices.
4280 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
4281 New function.
4282
4283 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4284
4285 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
4286 unused show_text member.
4287 * docs/grub.texi: Document "text" property.
4288
4289 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4290
4291 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
4292 in dprintf.
4293
4294 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4295
4296 Fix IMSM handling on Fedora.
4297
4298 * util/getroot.c (grub_util_is_imsm): New function.
4299 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
4300
4301 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4302
4303 * Makefile.am: Strip gold section.
4304 * conf/Makefile.common: Likewise.
4305 * gentpl.py: Likewise.
4306 * grub-core/Makefile.core.def: Likewise.
4307 * grub-core/genmod.sh.in: Likewise.
4308
4309 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4310
4311 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
4312 * util/grub.d/20_linux_xen.in: Likewise.
4313 Based on Debian patch.
4314
4315 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4316
4317 * util/grub.d/10_linux.in: Fix syntax error resulting in
4318 Richard Laager's patch.
4319 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
4320
4321 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4322
4323 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
4324 dependencies.
4325
4326 2012-03-10 Richard Laager <rlaager@wiktel.com>
4327
4328 * util/grub.d/10_linux.in: Fix ZFS root passing.
4329
4330 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4331
4332 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4333 * grub-core/commands/xnu_uuid.c: Likewise.
4334 * grub-core/loader/efi/appleloader.c: Likewise.
4335 * grub-core/script/execute.c: Likewise.
4336 * grub-core/script/main.c: Likewise.
4337 * util/grub-mkfont.c: Likewise.
4338
4339 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4340
4341 * util/grub-mkfont.c (options): Use more appropriate "select" that
4342 "set" for face index.
4343
4344 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4345
4346 * util/grub-editenv.c (options): Gettextize command summaries.
4347
4348 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4349
4350 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
4351 "out of memory" error messagge.
4352
4353 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4354
4355 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
4356 of diskfilter for diskfilter on diskfilter support.
4357
4358 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4359
4360 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
4361
4362 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4363
4364 * util/grub-install.in: Check for themes/starfield/theme.txt and not
4365 themes/starfield.
4366
4367 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4368
4369 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
4370
4371 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4372
4373 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
4374
4375 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4376
4377 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
4378 of error message.
4379
4380 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4381
4382 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
4383
4384 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4385
4386 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
4387 message.
4388 * util/grub-install.in: Fix and gettextize error message.
4389
4390 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4391
4392 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
4393 Gettextize.
4394 * util/grub-mount.c (options): Likewise.
4395
4396 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4397
4398 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
4399 gettextize.
4400 * grub-core/commands/search_wrap.c (options): Likewise.
4401
4402 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4403
4404 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
4405
4406 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4407
4408 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
4409 size calculation.
4410 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
4411 none is known.
4412
4413 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4414
4415 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
4416 "temporary" since it's used in identifier and is limited in space.
4417
4418 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4419
4420 * po/POTFILES.in: Regenerate. Include *.h since they contain
4421 translatable strings as well.
4422
4423 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4424
4425 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
4426 byte-swap on big-endian.
4427 Reported by: Lennart Sorensen
4428
4429 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
4430
4431 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
4432 (allocate_pages): Improve dprintf.
4433 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
4434 code32_start. Fill code32_start and kernel_alignment in params.
4435 (grub_cmd_initrd): Use prot_init_space.
4436
4437 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4438
4439 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
4440
4441 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4442
4443 * util/grub-install.in: Add missing dot at the end of sentence.
4444
4445 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4446
4447 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4448 * grub-core/commands/videotest.c: Likewise.
4449 * grub-core/loader/i386/linux.c: Likewise.
4450
4451 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4452
4453 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
4454 sentence.
4455 Reported by: Milo Casagrande.
4456
4457 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4458
4459 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
4460 * grub-core/commands/gptsync.c: Likewise.
4461 * grub-core/commands/hashsum.c: Likewise.
4462 * grub-core/commands/i386/pc/sendkey.c: Likewise.
4463 * grub-core/commands/legacycfg.c: Likewise.
4464 * grub-core/io/gzio.c: Likewise.
4465 * grub-core/net/net.c: Likewise.
4466 * grub-core/term/gfxterm.c: Likewise.
4467 * grub-core/term/terminfo.c: Likewise.
4468 * grub-core/tests/test_blockarg.c: Likewise.
4469 * grub-core/video/video.c: Likewise.
4470 * util/grub-install.in: Likewise.
4471 * util/grub-mkfont.c: Likewise.
4472
4473 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4474
4475 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
4476
4477 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4478
4479 * grub-core/commands/search_wrap.c (options): Fix a typo.
4480 Reported by: David Prévot.
4481
4482 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4483
4484 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
4485 description.
4486
4487 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4488
4489 * util/grub-script-check.c (main): Fix a syntax error message which was
4490 unclear.
4491
4492 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4493
4494 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
4495
4496 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4497
4498 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
4499 messages.
4500
4501 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4502
4503 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
4504 without argument.
4505 * util/grub-mount.c (options): Likewise.
4506
4507 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4508
4509 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
4510
4511 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4512
4513 * grub-core/net/http.c: Add TRANSLATORS comments.
4514 * grub-core/normal/cmdline.c: Likewise.
4515 * grub-core/normal/misc.c: Likewise.
4516 * grub-core/partmap/msdos.c: Likewise.
4517 * grub-core/parttool/msdospart.c: Likewise.
4518 * grub-core/script/execute.c: Likewise.
4519 * grub-core/script/main.c: Likewise.
4520 * grub-core/term/terminfo.c: Likewise.
4521 * grub-core/video/bitmap.c: Likewise.
4522 * util/grub-install.in: Likewise.
4523 * util/grub-mkimage.c: Likewise.
4524 * util/grub-mklayout.c: Likewise.
4525 * util/grub-setup.c: Likewise.
4526
4527 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4528
4529 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
4530 with similar messages in grub-fstest.
4531
4532 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4533
4534 * util/grub-install.in: Unify "option requires an argument" message
4535 with similar messages in other files.
4536 * util/grub-mkconfig.in: Likewise.
4537
4538 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4539
4540 * util/grub-set-default.in: Replace printf with gettext_printf (the
4541 string in in question is already translated from grub-reboot)
4542
4543 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4544
4545 * configure.ac: Bump up the version to beta1.
4546
4547 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4548
4549 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
4550 case when min_align = 0.
4551
4552 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4553
4554 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
4555 and fix a case when line_start overflows.
4556
4557 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4558
4559 * util/grub-reboot.in (usage): Mention id posibility.
4560 * util/grub-set-default.in (usage): Likewise.
4561
4562 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4563
4564 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
4565 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
4566 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
4567 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
4568 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
4569 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4570 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4571
4572 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4573
4574 * grub-core/commands/menuentry.c (options): Remove
4575 GRUB_ARG_OPTION_REPEATABLE.
4576 Reported by: Andreas Vogel
4577
4578 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
4579
4580 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
4581
4582 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
4583
4584 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
4585 error.
4586
4587 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4588
4589 Use sort -V by the idea of Georgi Georgiev.
4590
4591 * util/grub-mkconfig_lib.in (version_sort): New function.
4592 (version_test_numeric): Use version_sort.
4593
4594 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4595
4596 Use submenus in grub-mkconfig.
4597
4598 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
4599 * util/grub-mkconfig_lib.in (grub_quote): New function.
4600 (gettext_printf): Use gettext and not gettext_quoted to fix several
4601 messages.
4602 * util/grub.d/10_hurd.in: Use submenus.
4603 * util/grub.d/10_kfreebsd.in: Likewise.
4604 * util/grub.d/10_linux.in: Likewise.
4605 * util/grub.d/10_netbsd.in: Likewise.
4606 * util/grub.d/20_linux_xen.in: Likewise.
4607 * util/grub.d/30_os-prober.in: Likewise.
4608 * util/grub.d/10_illumos.in: Add missing quoting.
4609 * util/grub.d/10_windows.in: Likewise.
4610
4611 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4612
4613 Fix menu title instability bug.
4614
4615 * grub-core/commands/menuentry.c (options): New option --id.
4616 (grub_normal_add_menu_entry): New argument id. All users updated.
4617 (grub_cmd_menuentry): Handle --id.
4618 (grub_menu_init): Accept unknown arguments.
4619 * grub-core/normal/main.c (features): Add feature_menuentry_id and
4620 feature_menuentry_options.
4621 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
4622 saved_entry.
4623 (get_entry_number): Match with id as well.
4624 * include/grub/menu.h (grub_menu_entry): New member id.
4625 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
4626 * util/grub.d/00_header.in: Define menuentry_id_option.
4627 * util/grub.d/10_hurd.in: Define id.
4628 * util/grub.d/10_illumos.in: Likewise.
4629 * util/grub.d/10_kfreebsd.in: Likewise.
4630 * util/grub.d/10_linux.in: Likewise.
4631 * util/grub.d/10_netbsd.in: Likewise.
4632 * util/grub.d/10_windows.in: Likewise.
4633 * util/grub.d/20_linux_xen.in: Likewise.
4634 * util/grub.d/30_os-prober.in: Likewise.
4635
4636 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4637
4638 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
4639 "scope" with "body".
4640
4641 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4642
4643 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
4644 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
4645 prot_size and prot_file_size.
4646
4647 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4648
4649 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
4650 All users updated. If easily=1 require raid-5/-6 to be full.
4651 (is_node_readable): Likewise.
4652 (scan_devices): Scan incomplete but readable LVs at the end.
4653 (grub_diskfilter_memberlist): Pull missing devices.
4654 (insert_array): Skip scanning until device is complete or scan is
4655 done otherwise.
4656 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
4657 check.
4658 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
4659 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
4660
4661 2012-03-03 Matthew Garrett <mjg@redhat.com>
4662 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4663
4664 Avoid EFI boot services when loading Linux.
4665
4666 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
4667 avoid_efi_bootservices. All users updated.
4668 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
4669 argument avoid_efi_bootservices. All users updated.
4670 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
4671 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
4672 align, min_align, relocatable, prefered_address. All users updated.
4673 Allocate avoiding boot services if kernel is relocatable.
4674 (grub_cmd_linux): Check if kernel is relocatable.
4675 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
4676 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
4677 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
4678 avoid_efi_boot_services.
4679 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
4680 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
4681 (linux_kernel_params): Likewise.
4682
4683 2012-03-03 Matthew Garrett <mjg@redhat.com>
4684 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4685
4686 Use EDID on EFI.
4687
4688 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
4689 datasize_out.
4690 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
4691 modes. Set gop_handle.
4692 (grub_video_gop_get_edid): New function.
4693 (grub_gop_get_preferred_mode): Likewise.
4694 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
4695 (grub_video_efi_gop_adapter): Set .get_edid.
4696 * include/grub/efi/edid.h: New file.
4697 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
4698
4699 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4700
4701 * util/grub-install.in: Load efivars unconditionally.
4702
4703 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4704
4705 * po/Rules-piglatin: Change suffix from .po-update-en to
4706 .po-update-en-piglatin.
4707
4708 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4709
4710 Add a pig farm.
4711
4712 * po/piglatin.sed: New file.
4713 * po/en@piglatin.header: Likewise.
4714 * po/Rules-piglatin: Likewise.
4715 * po/README: Add en@piglatin to autogenerated languages.
4716
4717 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4718
4719 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
4720 "Command for ...".
4721 * grub-core/commands/hdparm.c (options): Use "Display" rather than
4722 "Check" since we don't check anything.
4723 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
4724 is 64-bit one.
4725 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
4726 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
4727 (grub_md_sha512_real): Likewise.
4728
4729 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4730
4731 * grub-core/commands/gptsync.c: Fix typographic quoting.
4732 * grub-core/commands/ieee1275/suspend.c: Likewise.
4733 * grub-core/commands/parttool.c: Likewise.
4734 * grub-core/commands/search_wrap.c: Likewise.
4735 * grub-core/commands/videoinfo.c: Likewise.
4736 * grub-core/gfxmenu/gui_label.c: Likewise.
4737 * grub-core/hello/hello.c: Likewise.
4738 * grub-core/kern/emu/main.c: Likewise.
4739 * grub-core/net/net.c: Likewise.
4740 * grub-core/normal/menu.c: Likewise.
4741 * grub-core/normal/menu_text.c: Likewise.
4742 * grub-core/normal/misc.c: Likewise.
4743 * util/grub-editenv.c: Likewise.
4744 * util/grub-install.in: Likewise.
4745 * util/grub-kbdcomp.in: Likewise.
4746 * util/grub-mkconfig.in: Likewise.
4747 * util/grub-mknetdir.in: Likewise.
4748 * util/grub-mkrescue.in: Likewise.
4749 * util/grub-mkstandalone.in: Likewise.
4750 * util/grub-reboot.in: Likewise.
4751 * util/grub-set-default.in: Likewise.
4752 * util/grub-setup.c: Likewise.
4753 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4754
4755 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4756
4757 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
4758 * grub-core/commands/keystatus.c: Likewise.
4759 * grub-core/commands/loadenv.c: Likewise.
4760 * grub-core/commands/probe.c: Likewise.
4761 * grub-core/commands/regexp.c: Likewise.
4762 * grub-core/commands/true.c: Likewise.
4763 * grub-core/commands/videoinfo.c: Likewise.
4764 * grub-core/disk/cryptodisk.c: Likewise.
4765 * grub-core/disk/ldm.c: Likewise.
4766 * grub-core/disk/loopback.c: Likewise.
4767 * grub-core/disk/luks.c: Likewise.
4768 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4769 * grub-core/kern/disk.c: Likewise.
4770 * grub-core/kern/emu/hostdisk.c: Likewise.
4771
4772 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4773
4774 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
4775 * util/grub-install.in: Add missing quote in the comment.
4776
4777 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4778
4779 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
4780 * grub-core/commands/lsmmap.c: Likewise.
4781 * grub-core/commands/minicmd.c: Likewise.
4782 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
4783 * grub-core/commands/regexp.c: Likewise.
4784 * grub-core/gdb/gdb.c: Likewise.
4785 * grub-core/term/gfxterm.c: Likewise.
4786 * util/grub-mkconfig.in: Likewise.
4787 * util/grub-mkfont.c: Likewise.
4788 * util/grub-mklayout.c: Likewise.
4789 * util/grub-mknetdir.in: Likewise.
4790 * util/grub-mkrescue.in: Likewise.
4791 * util/grub.d/30_os-prober.in: Likewise.
4792
4793 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4794
4795 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
4796 with "Direct color" and "Packed" with "Packed pixel".
4797 (grub_cmd_videoinfo): Simplify legend.
4798
4799 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4800
4801 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4802 absolutely unclear error message.
4803
4804 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4805
4806 * util/grub-mkstandalone.in: Remove confusing leftover print.
4807
4808 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4809
4810 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
4811 comments.
4812 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
4813 (GRUB_MOD_INIT): Likewise.
4814 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
4815 VGA mode.
4816 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
4817 comments.
4818 * util/grub-install.in (usage): Likewise.
4819 Spell ID in whole letters.
4820 Add missing ending dot.
4821 Quote variables.
4822 * util/grub-reboot.in: Fix capitalisation.
4823 * util/grub-set-default.in: Likewise.
4824
4825 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4826
4827 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
4828 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
4829 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
4830 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
4831 Disable -Werror for -Wdeprecated-declarations.
4832 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
4833 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
4834 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
4835 (grub_util_get_grub_dev): Make luks handling dependent on
4836 HAVE_DEVICE_MAPPER and not __linux__.
4837 (get_win32_path): Fix format security.
4838 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
4839 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
4840 Don't try grub_find_zpool_from_dir.
4841 (grub_make_system_path_relative_to_its_root) [!__linux__]:
4842 #ifdef-out paresdir.
4843
4844 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4845
4846 * util/grub-pe2elf.c (usage): Add missing noreturn.
4847 (write_section_data): Rename name to shname to avoid shadowing.
4848 (write_symbol_table): Rename name to symname to avoid shadowing.
4849 Fix write_reloc_section call.
4850
4851 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4852
4853 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
4854 to ensure that it's after the last byte of .text.
4855
4856 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4857
4858 * util/ieee1275/ofpath.c (my_isdigit): New function.
4859 (trailing_digits): Use my_isdigit.
4860 (strip_trailing_digits): Likewise.
4861
4862 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4863
4864 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
4865 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
4866
4867 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4868
4869 * grub-core/kern/i386/pc/startup.S: Define __start.
4870
4871 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4872
4873 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
4874 strip already transforms he format.
4875
4876 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4877
4878 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
4879
4880 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4881
4882 * util/grub-install.in: Add missing gettext init.
4883 * util/grub-kbdcomp.in: Likewise.
4884 * util/grub-mkconfig.in: Likewise.
4885 * util/grub-mknetdir.in: Likewise.
4886 * util/grub-mkrescue.in: Likewise.
4887 * util/grub-mkstandalone.in: Likewise.
4888 * util/grub-reboot.in: Likewise.
4889 * util/grub-set-default.in: Likewise.
4890 * util/grub.d/00_header.in: Likewise.
4891 * util/grub.d/10_hurd.in: Likewise.
4892 * util/grub.d/10_windows.in: Likewise.
4893 * util/grub.d/30_os-prober.in: Likewise.
4894 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4895
4896 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4897
4898 * po/Rules-swiss: Fix header comment.
4899
4900 2012-02-29 Andreas Vogel <anvoit>
4901
4902 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
4903 resulted in leak of arguments.
4904
4905 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4906
4907 * grub-core/boot/i386/pc/startup_raw.S: Use separate
4908 reed_solomon_size const definition instead of computing it since
4909 Apple assembler doesn't support the later.
4910
4911 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4912
4913 * gentpl.py (kernel): Rewrite Apple part.
4914
4915 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4916
4917 * include/grub/kernel.h (FOR_MODULES): Check module magic.
4918
4919 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4920
4921 * util/grub-mkimagexx.c (locate_sections): Support non-standard
4922 ELF section gap.
4923 (load_image): Likewise.
4924
4925 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4926
4927 * configure.ac: Fix a typo in previous commit.
4928
4929 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4930
4931 Don't add -Wl,-N on Apple platform.
4932
4933 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
4934 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
4935
4936 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4937
4938 * grub-core/Makefile.core.def (lzma_decompress): Use
4939 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
4940
4941 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4942
4943 * grub-core/genmod.sh.in: Rewrite the Apple part.
4944
4945 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4946
4947 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
4948 comparison.
4949
4950 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4951
4952 * acinclude.m4 (grub_CHECK_PIC): New test.
4953 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
4954
4955 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4956
4957 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
4958 to avoid the warning.
4959
4960 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4961
4962 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
4963 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
4964 after. All users updated.
4965
4966 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4967
4968 Use the common size routine in hostfs so we can read disks as well.
4969
4970 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
4971 (grub_util_get_fd_size): ... this. Return size in bytes.
4972 All users updated.
4973 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
4974 grub_util_get_fd_size.
4975
4976 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4977
4978 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
4979 Add blocksize retrieval.
4980
4981 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4982
4983 * configure.ac: Restore CFLAGS after efiemu check.
4984
4985 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4986
4987 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
4988 Apple bug.
4989
4990 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4991
4992 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
4993
4994 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4995
4996 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
4997 (grub_cmd_halt): Likewise.
4998
4999 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5000
5001 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
5002 for local arithmetics.
5003 Break %sp init into 2 instructions.
5004 Add 0 byte at the end.
5005
5006 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5007
5008 * grub-core/disk/diskfilter.c (read_segment): Initialise err
5009 before loops.
5010
5011 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5012
5013 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
5014 for context.
5015
5016 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5017
5018 * grub-core/disk/ldm.c (make_vg): Init part.name.
5019 (grub_ldm_detect): Silence spurious warning.
5020 (grub_util_is_ldm): Likewise.
5021
5022 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5023
5024 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
5025 sane value to avoid a spurious warning.
5026
5027 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5028
5029 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
5030 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
5031
5032 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5033
5034 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
5035 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
5036
5037 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5038
5039 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
5040 hardcoding the relevant info.
5041
5042 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5043
5044 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
5045 missing const qualifiers.
5046 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
5047
5048 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5049
5050 * util/getroot.c [__APPLE__]: Add missing includes.
5051 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
5052
5053 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5054
5055 * util/grub-mkimage.c (generate_image): Silence spurious warning.
5056
5057 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5058
5059 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
5060 avoid conflicts.
5061
5062 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5063
5064 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
5065
5066 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5067
5068 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
5069 and grub_file_close call.
5070
5071 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5072
5073 Add LZSS Mach-O support (needed for new xnu kernelcache).
5074
5075 * grub-core/Makefile.core.def (xnu): Add file lzss.c
5076 * grub-core/loader/lzss.c: New file.
5077 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
5078 on Mach-O open failure.
5079 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
5080 Don't free cmdsXX in uncompressedXX is set.
5081 (grub_macho_file): Init new fields.
5082 New argument is_64bit. All users updated.
5083 Handle compressed. Error out if no suitable architecture is found.
5084 Don't close file.
5085 (grub_macho_open): New argument is_64bit. All users updated.
5086 * grub-core/loader/macho32.c: Add defines for new fields.
5087 * grub-core/loader/macho64.c: Likewise.
5088 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
5089 (grub_macho_parse): Handle compressed.
5090 Defer actual processing if compressed.
5091 (grub_macho_cmds_iterate): Decompress if compressed. New argument
5092 "filename". All users updated.
5093 (grub_macho_size): New argument "filename". All users updated.
5094 (grub_macho_get_entry_point): Likewise.
5095 (grub_macho_load): Handle compressed.
5096 * include/grub/macho.h (grub_macho_lzss_header): New struct.
5097 (GRUB_MACHO_LZSS_OFFSET): New define.
5098 (grub_decompress_lzss): New proto.
5099 * include/grub/machoload.h (grub_macho_file): New fields to handle
5100 compressed.
5101 (grub_macho_contains_macho64): Remove proto.
5102 (grub_macho_contains_macho32): Likewise.
5103 * util/grub.d/30_os-prober.in: Use kernel cache if available.
5104
5105 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5106
5107 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
5108
5109 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5110
5111 Fix make dist.
5112
5113 * Makefile.am (starfield_theme_files): New var.
5114 (starfield_DATA): Use starfield_theme_files.
5115 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
5116 Add bootcheck-related files.
5117 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
5118 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
5119 and font_char_metrics.txt.
5120 * grub-core/Makefile.core.def (kernel): Update extra_dist.
5121 (setjmp): Add lib/ia64/longjmp.S.
5122 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
5123 * po/POTFILES.in: Regenerate.
5124 * po/Rules-swiss: use DISTFILES.common.extra2 and not
5125 DISTFILES.common.extra1.
5126 * util/devicemap.c: Removed.
5127 * grub-core/lib/i386/relocator_backward.S: Likewise.
5128 * util/import_gcry.py: Remove unused files. Add extra_dist for
5129 ChangeLog.
5130
5131 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5132
5133 * grub-core/gettext/gettext.c (grub_mofile_open): Call
5134 grub_gettext_delete_list before changing grub_gettext_max to avoid
5135 running out of array bounds.
5136
5137 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5138
5139 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
5140 grub_vga_text_init/grub_vga_text_fini.
5141
5142 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5143
5144 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
5145
5146 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5147
5148 * configure.ac: Bump to 2.00~beta0.
5149
5150 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5151
5152 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
5153 missing initialisation.
5154
5155 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5156
5157 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
5158
5159 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5160
5161 Support v2 xnu boot arguments.
5162
5163 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
5164 New argument fsbfreq_out.
5165 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
5166 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
5167 be used.
5168 * grub-core/loader/machoXX.c (grub_macho_load): New argument
5169 darwin_version.
5170 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
5171 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
5172 (grub_xnu_boot_params): Rename to ...
5173 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
5174 (grub_xnu_boot_params_v2): New struct.
5175
5176 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5177
5178 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
5179 zeroing of CRC field before computing CRC.
5180
5181 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5182
5183 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
5184 Change order of allocations to decrease fragmentation.
5185
5186 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5187
5188 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
5189
5190 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
5191
5192 Use write-combining MTRR to speed up video with buggy BIOSes.
5193
5194 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
5195 (cpuid): New define.
5196 (rdmsr): Likewise.
5197 (wrmsr): Likewise.
5198 (mtrr_base): Likewise.
5199 (mtrr_mask): Likewise.
5200 (grub_vbe_enable_mtrr_entry): New function.
5201 (grub_vbe_enable_mtrr): Likewise.
5202 (grub_vbe_disable_mtrr): Likewise.
5203 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
5204 control off to BIOS.
5205 (grub_video_vbe_init): Fill mtrr.
5206 (grub_video_vbe_fini): Disable mtrr.
5207 (grub_video_vbe_get_info_and_fini): Likewise.
5208 (grub_video_vbe_setup): Enable mtrr.
5209
5210 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
5211
5212 * include/grub/partition.h (grub_partition_map): Change prototype of
5213 embed to take a maximum value for nsectors.
5214 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
5215 * include/grub/fs.h (grub_fs): Likewise.
5216 * grub-core/partmap/msdos.c (embed_signatures): New array.
5217 (pc_partition_map_embed): Check for and avoid sectors matching any
5218 of the signatures in embed_signatures, up to max_nsectors.
5219 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
5220 returned sector map to max_nsectors.
5221 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
5222 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
5223 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
5224 * util/grub-setup.c (setup): Allow for the embedding area being
5225 split into multiple blocklists. Tell dest_partmap->embed the
5226 maximum number of sectors we care about.
5227
5228 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5229
5230 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
5231 Specify blocklist_install and reserver_first_sector for all fs.
5232 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
5233 blocklists.
5234
5235 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5236
5237 * util/grub-install.in: Clarify strings.
5238 Fix source dir check.
5239
5240 2012-02-27 Richard Laager <rlaager@wiktel.com>
5241
5242 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
5243 "zfs" and "fuse.zfs" as synonyms.
5244
5245 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5246
5247 * configure.ac: Put platform and target_cpu substitutions back since
5248 they are used for directories.
5249
5250 2012-02-27 Richard Laager <rlaager@wiktel.com>
5251 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5252
5253 * util/grub.d/10_linux.in: Add ZFS-related arguments.
5254 * util/grub.d/20_linux_xen.in: Likewise.
5255
5256 2012-02-27 Richard Laager <rlaager@wiktel.com>
5257
5258 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
5259 with full paths.
5260
5261 2012-02-27 Richard Laager <rlaager@wiktel.com>
5262
5263 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
5264 unescape.
5265
5266 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5267
5268 Don't use insecure popen in getroot.
5269
5270 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
5271 (exec_pipe): ... here.
5272 (find_root_devices_from_poolname): Use exec_pipe.
5273
5274 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5275
5276 Remove platform and target_cpu replacement.
5277
5278 * configure.ac: Remove platform and target_cpu substitutions.
5279 * tests/util/grub-shell.in: Use modinfo.
5280 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
5281 explicitly.
5282
5283 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5284
5285 Autodetect platform in grub-install but allow override.
5286
5287 * util/grub-install.in: Autodetect platform. Support --target and
5288 --directory. Read platform from modinfo.sh.
5289
5290 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5291
5292 Support btrfs multi-volume probe.
5293
5294 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
5295 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
5296 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
5297 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
5298 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
5299 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
5300 grub_find_root_devices_from_btrfs if on btrfs.
5301
5302 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5303
5304 Remove any awareness of *.c util files about target.
5305
5306 * Makefile.util.def (grub-setup): Split to ...
5307 (grub-bios-setup): ... and this.
5308 (grub-sparc64-setup): ... and this.
5309 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
5310 * docs/man/grub-setup.h2m: Split into ...
5311 * docs/man/grub-sparc64-setup.h2m: ... this.
5312 * docs/man/grub-bios-setup.h2m: ... and this.
5313 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
5314 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
5315 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
5316 (grub_target_addr_t): Remove.
5317 (grub_target_size_t): Remove.
5318 (grub_target_ssize_t): Remove.
5319 * util/grub-install.in: Use new grub-*-setup.
5320 * util/grub-mkimagexx.c (Elf_Word): New define.
5321 (Elf_Half): Likewise.
5322 (Elf_Section): Likewise.
5323 (ELF_ST_TYPE): Likewise.
5324 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
5325 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
5326
5327 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5328
5329 Replace grub_target_addr with more appropriate types.
5330
5331 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
5332 grub_target_addr with grub_addr.
5333 * grub-core/commands/iorw.c (grub_cmd_read): Replace
5334 grub_target_addr with grub_port.
5335 (grub_cmd_write): Likewise.
5336 * grub-core/commands/memrw.c (grub_cmd_read): Replace
5337 grub_target_addr with grub_addr.
5338 (grub_cmd_write): Likewise.
5339 * grub-core/video/efi_uga.c (find_line_len): Likewise.
5340
5341 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5342
5343 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
5344 const qualifier for vendor_guid.
5345
5346 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5347
5348 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
5349 const qualifier.
5350 (efiemu_memequal): Likewise.
5351 (find_variable): Likewise.
5352
5353 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5354
5355 Fix missing console prototype on qemu-mips.
5356
5357 * include/grub/mips/qemu_mips/console.h: New file.
5358
5359 2012-02-27 Matthew Garrett <mjg@redhat.com>
5360 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5361
5362 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
5363 * include/grub/efi/efi.h: Likewise.
5364 * include/grub/efi/api.h: Add guid for EFI-specified variables.
5365 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
5366 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
5367 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
5368 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
5369 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
5370
5371 2012-02-27 Matthew Garrett <mjg@redhat.com>
5372
5373 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
5374
5375 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5376
5377 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
5378 error.
5379
5380 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5381
5382 * configure.ac: Remove inappropriate use of program_transform_name
5383 on grubdir and bootdir but allow explicit specification of those
5384 variables.
5385
5386 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5387
5388 * util/grub-mknetdir.in (grub_prefix): Removed.
5389 (subdir): Use @bootdirname@ and @grubdirname@.
5390
5391 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5392
5393 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
5394
5395 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5396
5397 * po/POTFILES.in: Regenerated.
5398
5399 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5400
5401 Remove improper use of program_transform_name on pkglibrootdir.
5402
5403 * configure.ac (pkglibrootdir): Removed.
5404 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
5405 * util/grub-mkimage.c: Likewise.
5406
5407 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5408
5409 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
5410 warning.
5411
5412 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5413
5414 * util/grub-install.in: Use file identifier if no UUID is available
5415 or user explicitly prompted for it.
5416
5417 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
5418
5419 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
5420 (freebsd_get_zfs): New function.
5421 (grub_freebsd_boot): Pass zfs UUID.
5422 (grub_cmd_freebsd): Set zfs UUID.
5423
5424 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5425
5426 * conf/Makefile.common (platformdir): Base on pkglibdir and not
5427 pkglibrootdir.
5428
5429 2012-02-27 Mike Gilbert <floppym@gentoo.org>
5430
5431 Add configure flag to control libzfs integration.
5432
5433 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
5434
5435 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5436
5437 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
5438 device.
5439 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
5440 small devices.
5441
5442 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5443
5444 Remove grub_{modname}_init and grub_{modname}_fini. They should never
5445 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
5446 be used on non-modules.
5447
5448 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
5449 Rename to grub_boot_init.
5450 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
5451 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
5452 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
5453 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
5454 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
5455 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
5456 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
5457 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
5458 includes.
5459 (grub_machine_init): Remove empty inits.
5460 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
5461 includes.
5462 (grub_machine_init): Remove empty inits.
5463 * grub-core/term/arc/console.c: Remove explicit proto.
5464 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
5465 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
5466 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5467 grub_at_keyboard_fini.
5468 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
5469 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
5470 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5471 grub_gfxterm_fini.
5472 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
5473 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
5474 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5475 grub_vgatext_fini.
5476 * grub-core/term/ieee1275/console.c: Remove explicit proto.
5477 * grub-core/term/serial.c (GRUB_MOD_INIT)
5478 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
5479 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5480 grub_serial_fini.
5481 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
5482 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
5483 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5484 grub_terminfo_fini.
5485 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
5486 (GRUB_MOD_FINI): Likewise.
5487 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
5488 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
5489 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5490 grub_video_radeon_fuloong2e_fini.
5491 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
5492 [LOONGSON]: Rename to grub_video_sis315pro_init.
5493 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5494 grub_video_sis315pro_fini.
5495 * grub-core/video/sm712.c (GRUB_MOD_INIT)
5496 [LOONGSON]: Rename to grub_video_sm712_init.
5497 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5498 grub_video_sm712_fini.
5499 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
5500 (grub_at_keyboard_fini): Likewise.
5501 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
5502 Don't declare grub_{modname}_init.
5503 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
5504 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
5505 New proto.
5506 (grub_keylayouts_fini) [!EMU]: Likewise.
5507 * include/grub/serial.h (grub_serial_init) [!EMU]:
5508 New proto.
5509 (grub_serial_fini) [!EMU]: Likewise.
5510 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
5511 New proto.
5512 (grub_terminfo_fini) [!EMU]: Likewise.
5513 * include/grub/video.h (grub_font_init) [!EMU]:
5514 New proto.
5515 (grub_font_fini) [!EMU]: Likewise.
5516 (grub_gfxterm_init) [!EMU]: Likewise.
5517 (grub_gfxterm_fini) [!EMU]: Likewise.
5518 (grub_video_sm712_init) [!EMU]: Likewise.
5519 (grub_video_sm712_fini) [!EMU]: Likewise.
5520 (grub_video_sis315pro_init) [!EMU]: Likewise.
5521 (grub_video_sis315pro_fini) [!EMU]: Likewise.
5522 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
5523 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
5524
5525 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5526
5527 Make nand a prefix for nand devices.
5528
5529 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
5530
5531 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5532
5533 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
5534 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
5535
5536 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5537
5538 * include/grub/env.h (grub_env_find): Remove prototype.
5539 * grub-core/kern/env.c (grub_env_find): Make static.
5540 (grub_env_set): Remove useless set.
5541
5542 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5543
5544 * grub-core/kern/i386/realmode.S: Remove useless align.
5545
5546 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5547
5548 * include/grub/dl.h (grub_dl_load_file): Don't export.
5549
5550 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5551
5552 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
5553 grub_dprintf.
5554
5555 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5556
5557 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
5558 grub_errors.
5559 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
5560 not reloading whole superblock but only the part which is really needed.
5561 Remove useless grub_errors.
5562 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
5563 grub_errors.
5564
5565 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5566
5567 Don't export grub_get_rtc.
5568
5569 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
5570 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
5571
5572 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5573
5574 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
5575
5576 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5577
5578 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
5579 argument since it can be deduced from diskfilter. All users updated.
5580
5581 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5582
5583 Remove prio_list.
5584
5585 * include/grub/list.h (grub_prio_list): Removed.
5586 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
5587 GRUB_COMMAND_PRIO_MASK.
5588 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
5589 GRUB_COMMAND_FLAG_ACTIVE.
5590 (grub_prio_list_insert): Removed.
5591 (grub_prio_list_remove): Likewise.
5592 (GRUB_AS_PRIO_LIST): Likewise.
5593 (GRUB_AS_PRIO_LIST_P): Likewise.
5594 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
5595 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
5596 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
5597 * grub-core/kern/command.c (grub_register_command_prio): Inline
5598 the prio_list code.
5599 (grub_unregister_command): Likewise.
5600
5601 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5602
5603 Fix interrupt mixup from previous commit.
5604
5605 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
5606 (grub_realidt): New var.
5607 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
5608 Load idt.
5609 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
5610 New declaration.
5611 (grub_relocator16_boot): Set grub_relocator16_idt.
5612 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
5613 (LOCAL(realidt)): ... this.
5614 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
5615 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
5616 (grub_realidt): New variable.
5617
5618 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5619
5620 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
5621 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
5622 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
5623 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
5624 Gettextize.
5625 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
5626 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
5627 * po/POTFILES.in: Regenerate.
5628
5629 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5630
5631 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
5632 errors.
5633
5634 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5635
5636 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
5637 \0.
5638 (add_length): Likewise.
5639
5640 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5641 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
5642
5643 GDB serial and backtrace support.
5644
5645 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
5646 (prot_to_real): Likewise.
5647 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
5648 * grub-core/Makefile.core.def (backtrace): New module.
5649 (gdb): Likewise.
5650 * grub-core/gdb/cstub.c: New file.
5651 * grub-core/gdb/gdb.c: Likewise.
5652 * grub-core/gdb/i386/idt.c: Likewise.
5653 * grub-core/gdb/i386/machdep.S: Likewise.
5654 * grub-core/gdb/i386/signal.c: Likewise.
5655 * grub-core/lib/i386/backtrace.c: Likewise.
5656 * grub-core/lib/backtrace.c: Likewise.
5657 * include/grub/backtrace.h: Likewise.
5658 * include/grub/gdb.h: Likewise.
5659 * include/grub/i386/gdb.h: Likewise.
5660
5661 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5662
5663 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
5664 New function.
5665 (add_length): Likewise.
5666 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
5667 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
5668 proto.
5669 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
5670 __argp_get_display_len.
5671
5672 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5673
5674 $"..." support in scripts.
5675
5676 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
5677 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
5678 * grub-core/script/yylex.l: Likewise.
5679 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
5680 value.
5681
5682 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5683
5684 * gentpl.py: Remove obsolete pkglib_DATA handling.
5685
5686 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5687
5688 Don't transform PACKAGE_TARNAME following a discussion on autoconf
5689 mailing list.
5690
5691 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
5692 * util/grub-kbdcomp.in: Likewise.
5693 * util/grub-mkconfig.in: Likewise.
5694 * util/grub-mkconfig_lib.in: Likewise.
5695 * util/grub-mknetdir.in: Likewise.
5696 * util/grub-mkrescue.in: Likewise.
5697 * util/grub-mkstandalone.in: Likewise.
5698 * util/grub-reboot.in: Likewise.
5699 * util/grub-set-default.in: Likewise.
5700 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5701
5702 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5703
5704 Remove GRUB_PREFIX.
5705
5706 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
5707 * util/grub.d/00_header.in: Compute prefix in the only place it's still
5708 used for backward compatibility.
5709
5710 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5711
5712 Add new all_video module.
5713
5714 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
5715 * grub-core/Makefile.core.def (all_video): New module.
5716 * grub-core/genmoddep.awk: Generate dependency of all_video from
5717 video.lst.
5718 * grub-core/lib/fake_module.c: New file.
5719 * grub-core/normal/main.c (features): Add feature_all_video_module.
5720 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
5721 don't do explicit search again.
5722 insmod all_video in load_video if available.
5723
5724 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5725
5726 Another round of string clarification and adding TRANSLATORS comments.
5727
5728 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5729
5730 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
5731
5732 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5733
5734 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
5735 to grub_ssize_t.
5736 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
5737 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
5738
5739 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5740
5741 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
5742 trailing newline implicitly. All users updated.
5743
5744 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5745
5746 Implement serial on IEEE1275 and EFI.
5747
5748 * docs/grub.texi (Platform-specific limitations): Fix the columen video
5749 on emu. Mention arc and emu as the only platforms without serial
5750 support.
5751 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
5752 ieee1275 platforms.
5753 * grub-core/term/efi/serial.c: New file.
5754 * grub-core/term/ieee1275/serial.c: Likewise.
5755 * grub-core/term/serial.c (grub_serial_find): Disable direct port
5756 specification if no ns8250 driver is available.
5757 (grub_cmd_serial): Likewise.
5758 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
5759 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
5760 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
5761 (grub_efi_parity_type_t): New type.
5762 (grub_efi_stop_bits_t): Likewise.
5763 (grub_efi_serial_io_interface): New struct.
5764 * include/grub/serial.h (grub_serial_port): Make 'broken' field
5765 available for all interfaces.
5766 Add EFI and IEEE1275 fields.
5767 (grub_ofserial_init): New proto.
5768 (grub_efiserial_init): Likeiwse.
5769 * util/grub.d/00_header.in: Don't check for the presence of serial
5770 module.
5771
5772 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5773
5774 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
5775 name as if it was an alias.
5776
5777 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5778
5779 * grub-core/commands/lsacpi.c (options): Fix typo.
5780
5781 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5782
5783 Convert grub-emu to argp.
5784
5785 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
5786 emu.
5787 * util/argp_common.c: Rename to ...
5788 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
5789 Add missing includes.
5790 * grub-core/kern/emu/main.c: Convert to argp.
5791 * po/POTFILES.in: Regenerate.
5792 * util/grub-install.in (usage): Make first letter lowcase in messages
5793 for uniformity.
5794 * util/grub-setup.c (options): Likewise.
5795
5796 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5797
5798 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
5799 Put back accidently commented-out code.
5800
5801 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5802
5803 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
5804 loop check using Brent algorithm.
5805 (grub_hfsplus_btree_search): Likewise.
5806
5807 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5808
5809 * util/grub-install.in: Fix usage of wrong device for PreP install.
5810
5811 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5812
5813 * conf/Makefile.common (CFLAGS_GNULIB): Add
5814 -Wno-unsafe-loop-optimizations.
5815 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
5816 on tools.
5817 * grub-core/commands/legacycfg.c: Add pragma to skip
5818 -Wunsafe-loop-optimizations.
5819 (check_password_md5_real): Fix loop counter type.
5820 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
5821 reading.
5822 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
5823 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
5824 loop condition.
5825 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
5826 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
5827 * grub-core/net/net.c (grub_net_route_address): Add safety loop
5828 condition.
5829 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
5830 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
5831 avoid possible infinite loops.
5832 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
5833 and -Wunsafe-loop-optimizations.
5834 * grub-core/script/yylex.l: Likewise.
5835 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
5836 (print_glyphs): Avoid infinite loops.
5837 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
5838
5839 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
5840
5841 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
5842 to avoid infinite loop.
5843 (disp_acpi_rsdt_table): Likewise.
5844
5845 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5846
5847 * grub-core/font/font.c (grub_font_load): Add support for default
5848 path for fonts ($prefix/fonts).
5849 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
5850 for checking if string is a path.
5851 * grub-core/normal/main.c (features): Add feature_default_font_path.
5852 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
5853 * util/grub.d/00_header.in: Use default directory if possible.
5854 * util/grub-install.in: Install unicode.pf2.
5855
5856 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5857
5858 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
5859 * po/Rules-swiss: New file.
5860 * po/swiss.sed: Likewise.
5861
5862 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5863
5864 * grub-core/fs/btrfs.c (find_device): Fix typos.
5865 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
5866 * util/grub-mkrelpath.c (argp_parser): Likewise.
5867 Reported by: Yuri Chornoivan.
5868
5869 2012-02-23 Dalet Omega <daletomega@gmail.com>
5870
5871 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
5872 for usual informative messages.
5873
5874 2012-02-23 Dalet Omega <daletomega@gmail.com>
5875
5876 Starfield theme.
5877
5878 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
5879 * conf/Makefile.common: Define starfielddir.
5880 * configure.ac: Configure starfield.
5881 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
5882 * themes/starfield/README: Likewise.
5883 * themes/starfield/blob_w.png: Likewise.
5884 * themes/starfield/boot_menu_c.png: Likewise.
5885 * themes/starfield/boot_menu_e.png: Likewise.
5886 * themes/starfield/boot_menu_n.png: Likewise.
5887 * themes/starfield/boot_menu_ne.png: Likewise.
5888 * themes/starfield/boot_menu_nw.png: Likewise.
5889 * themes/starfield/boot_menu_s.png: Likewise.
5890 * themes/starfield/boot_menu_se.png: Likewise.
5891 * themes/starfield/boot_menu_sw.png: Likewise.
5892 * themes/starfield/boot_menu_w.png: Likewise.
5893 * themes/starfield/slider_c.png: Likewise.
5894 * themes/starfield/slider_n.png: Likewise.
5895 * themes/starfield/slider_s.png: Likewise.
5896 * themes/starfield/src/blob_nw.xcf: Likewise.
5897 * themes/starfield/src/bootmenu/: Likewise.
5898 * themes/starfield/src/bootmenu/center.xcf: Likewise.
5899 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
5900 * themes/starfield/src/bootmenu/side.xcf: Likewise.
5901 * themes/starfield/src/slider_c.xcf: Likewise.
5902 * themes/starfield/src/slider_n.xcf: Likewise.
5903 * themes/starfield/src/slider_s.xcf: Likewise.
5904 * themes/starfield/src/terminalbox/: Likewise.
5905 * themes/starfield/src/terminalbox/center.xcf: Likewise.
5906 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
5907 * themes/starfield/src/terminalbox/side.xcf: Likewise.
5908 * themes/starfield/starfield.png: Likewise.
5909 * themes/starfield/terminal_box_c.png: Likewise.
5910 * themes/starfield/terminal_box_e.png: Likewise.
5911 * themes/starfield/terminal_box_n.png: Likewise.
5912 * themes/starfield/terminal_box_ne.png: Likewise.
5913 * themes/starfield/terminal_box_nw.png: Likewise.
5914 * themes/starfield/terminal_box_s.png: Likewise.
5915 * themes/starfield/terminal_box_se.png: Likewise.
5916 * themes/starfield/terminal_box_sw.png: Likewise.
5917 * themes/starfield/terminal_box_w.png: Likewise.
5918 * themes/starfield/theme.txt: Likewise.
5919
5920 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5921
5922 * util/grub.d/00_header.in: Add missing export theme.
5923
5924 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5925
5926 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
5927 already included.
5928 Reported by: Eren D.
5929
5930 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5931
5932 * conf/Makefile.common (grubdatadir): Removed.
5933 (Makefile.am): Move eveything grubdata to pkgdata.
5934
5935 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5936
5937 * grub-core/commands/acpihalt.c (get_sleep_type):
5938 Remove unused variable.
5939
5940 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5941
5942 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
5943 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
5944 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
5945 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
5946 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
5947 i18n with gettext no-op.
5948 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
5949 GRUB_ACPI_OPCODE_STRING_CONST.
5950 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
5951 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
5952
5953 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5954
5955 * po/POTFILES.in: Regenerate.
5956
5957 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5958
5959 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
5960 -Wno-error=missing-noreturn.
5961
5962 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5963
5964 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
5965 condition to avoid possibly infinite loops.
5966 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
5967 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
5968
5969 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5970
5971 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
5972 condition to avoid possibly infinite loops.
5973
5974 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5975
5976 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
5977 on show_error.
5978
5979 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5980
5981 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
5982
5983 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5984
5985 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
5986
5987 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5988
5989 * util/bin2h.c (usage): Add missing attribute noreturn.
5990
5991 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5992
5993 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
5994 if the size isn't divisible by 512.
5995
5996 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5997
5998 Make list_push and list_remove functions rather than inline functions
5999 to decrease size and avoid aliasing violations.
6000
6001 * include/grub/list.h (grub_list_push): Move to ...
6002 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
6003 * include/grub/list.h (grub_list_remove): Move to ...
6004 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
6005
6006 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6007
6008 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
6009 and -Wunused-result.
6010
6011 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
6012
6013 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
6014 Reported by: Seth Goldberg
6015
6016 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
6017
6018 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
6019
6020 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
6021
6022 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
6023 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
6024 command line.
6025 * docs/grub.texi (Simple configuration): Document
6026 GRUB_CMDLINE_GNUMACH.
6027
6028 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
6029
6030 * conf/Makefile.common (platform_SCRIPTS): New variable.
6031 (platform_PROGRAMS): Likewise.
6032 * gentpl.py: Mark *,module and *.image for install.
6033 * grub-core/gdb_grub.in: Add a notice of expected environment.
6034 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
6035 (gmodule.pl): Likewise.
6036
6037 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
6038
6039 Replace grub_checkkey with grub_getkey_noblock.
6040
6041 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
6042 (grub_getkey_noblock): ... this. All users updated.
6043
6044 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
6045
6046 * grub-core/kern/emu/console.c: Move to ...
6047 * grub-core/term/emu/console.c: ...here.
6048 (grub_ncurses_getkey): Fix return value if no key is detected.
6049
6050 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6051
6052 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
6053 (grub_unit_test_fini): Likewise.
6054 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
6055
6056 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6057
6058 * include/grub/test.h (GRUB_UNIT_TEST)
6059
6060 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6061
6062 * grub-core/script/execute.c (grub_script_break): Clarify logic.
6063 Better error handling.
6064 (grub_script_return): Likewise.
6065 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
6066
6067 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6068
6069 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
6070 rimplicit redifinition.
6071
6072 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6073
6074 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
6075 GRUB.
6076
6077 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6078
6079 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
6080 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
6081 prompt here.
6082
6083 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6084
6085 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
6086 as GRUB_ERR_BUG. Don't malloc if no device is available.
6087
6088 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6089
6090 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
6091 Mark calling with invalid term as GRUB_ERR_BUG.
6092
6093 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6094
6095 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
6096 packets rather than raising an error.
6097
6098 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6099
6100 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
6101 in if.
6102
6103 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6104
6105 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
6106 diagnostic to dprintf.
6107 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6108
6109 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6110
6111 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
6112 device name.
6113
6114 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6115
6116 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
6117 (grub_ntfs_iterate_dir): Likewise.
6118
6119 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6120
6121 Efiemu stylistic fixes and gettext.
6122
6123 * grub-core/efiemu/i386/loadcore32.c
6124 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
6125 * grub-core/efiemu/i386/loadcore64.c
6126 (grub_arch_efiemu_relocate_symbols64): Likewise.
6127 * grub-core/efiemu/i386/pc/cfgtables.c
6128 (grub_machine_efiemu_init_tables): Likewise.
6129 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
6130 (grub_efiemu_loadcore_initXX): Add a filename argument.
6131 All users updated.
6132 Improved error message.
6133 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
6134 Add a filename argument.
6135 All users updated.
6136 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
6137 Reclassify double relocation as GRUB_ERR_BUG.
6138
6139 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6140
6141 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
6142 handling.
6143
6144 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6145
6146 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
6147 on partition.
6148
6149 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6150
6151 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
6152
6153 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6154
6155 Improve string. Gettextize.
6156
6157 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6158
6159 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
6160 utils.
6161 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
6162
6163 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6164
6165 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
6166 [GRUB_UTIL]: New function.
6167 (insert_array) [GRUB_UTIL]: Store partmaps.
6168 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
6169 partmaps.
6170 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
6171 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
6172 (probe_abstraction): Print diskfilter and not raid.
6173 Reported by: Lennart Sorensen
6174
6175 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6176
6177 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
6178 * util/grub-mkimagexx.c (MASK3): New define.
6179 (add_value_to_slot_20b): Use MASK3.
6180 (add_value_to_slot_21): Likewise.
6181 (relocate_addresses): Fix format specification.
6182 (load_image): Explicitly init symtab_section.
6183
6184 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6185
6186 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
6187 (grub_util_biosdisk_get_grub_dev): Fix format specification.
6188
6189 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6190
6191 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
6192 on powerpc.
6193 Reported by: Lennart Sorensen
6194
6195 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6196
6197 * gentpl.py: Add missing license header.
6198 * docs/grub.texi: Update copyright year.
6199
6200 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
6201
6202 Source grub-mkconfig_lib from the build directory at build time.
6203 Suggested by: Vladimir Serbinenko.
6204
6205 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
6206 * util/grub-install.in: Define pkgdatadir if not already set, and source
6207 grub-mkconfig_lib from there.
6208 * util/grub-kbdcomp.in: Likewise.
6209 * util/grub-mkconfig.in: Likewise.
6210 * util/grub-mknetdir.in: Likewise.
6211 * util/grub-mkrescue.in: Likewise.
6212 * util/grub-mkstandalone.in: Likewise.
6213 * util/grub-reboot.in: Likewise.
6214 * util/grub-set-default.in: Likewise.
6215 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6216
6217 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6218
6219 Increase warning level.
6220
6221 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
6222 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
6223 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
6224 (TARGET_CFLAGS): Likewise.
6225 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
6226 * grub-core/Makefile.core.def (decompressor_xz): Add
6227 -Wno-unreachable-code.
6228 (normal): Add -Wno-redundant-decls.
6229 (xzio): Add -Wno-unreachable-code.
6230 (lzopio): Add -Wno-redundant-decls -Wno-error.
6231 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
6232 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
6233 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
6234 * grub-core/kern/dl.c: Add exception to -Wcast-align.
6235 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
6236 * grub-core/kern/i386/coreboot/init.c: Add exception to
6237 -Wsuggest-attribute=noreturn.
6238 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
6239 * grub-core/kern/ia64/dl_helper.c: Likewise.
6240 * grub-core/kern/mips/dl.c: Likewise.
6241 * grub-core/kern/sparc64/dl.c: Likewise.
6242 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
6243 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
6244 (memcmp): Likewise.
6245 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
6246 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
6247 * grub-core/loader/mips/linux.c: Likewise.
6248 * grub-core/loader/multiboot_elfxx.c: Likewise.
6249 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
6250 * grub-core/video/sm712.c: Add exception to -Wcast-align.
6251 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
6252 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
6253 fixme.
6254 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
6255 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
6256 Fix prototype.
6257
6258 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6259
6260 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
6261 address.
6262
6263 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6264
6265 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
6266 Avoid improper use of strings.
6267 (grub_cmd_legacy_initrdnounzip): Likewise.
6268
6269 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6270
6271 * include/grub/emu/misc.h (grub_util_warn): Add missing format
6272 attribute.
6273 (grub_util_info): Likewise.
6274 (grub_util_error): Likewise.
6275
6276 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6277
6278 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
6279 * util/grub-fstest.c (fstest): Likewise.
6280
6281 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6282
6283 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
6284 (grub_md_sha512_real): Likewise.
6285 (grub_util_get_geli_uuid): Likewise.
6286 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
6287 (grub_util_biosdisk_open): Fix format specification.
6288 Respect format security.
6289 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
6290 (xrealloc): Likewise.
6291 (xasprintf): Likewise.
6292
6293 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6294
6295 * util/import_gcry.py: Include grub/crypto.h in init.c.
6296
6297 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6298
6299 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
6300 (generate_image): Make prefix a const char *.
6301 Fix format specifications. Respect format security.
6302 Avoid void * arithmetics.
6303 Avoid shadowing.
6304 (argp_parser): Remove unused variable. Respect format security.
6305 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
6306 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
6307 (count_funcs): Remove unused variable.
6308 (relocate_addresses): Fix format specification.
6309 Disable x86-64 with elf32. Remove unused variables.
6310 (add_fixup_entry): Avoid shadowing.
6311 (make_reloc_section): Fix format specification.
6312 Use assert.
6313 (locate_sections): Fix format specifications.
6314 (load_image): Avoid shadowing.
6315
6316 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6317
6318 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
6319 Fix format specifications. Respect format security.
6320 Don't translate already translated grub_errmsg.
6321 (argp_parser): Remove unused variable
6322
6323 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6324
6325 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
6326
6327 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6328
6329 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
6330 (main): Likewise. Use xmalloc. Respect format security.
6331
6332 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6333
6334 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
6335 a const char *.
6336 (argp_parser): Remove unused variable.
6337
6338 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6339
6340 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
6341 (add_pixel): Make static.
6342 (add_font): Likewise.
6343 (write_string_section): Make name and str a const char *.
6344 (write_be16_section): Make name a const char *.
6345 (print_glyphs): Make static.
6346 (write_font_ascii_bitmap): Likewise.
6347 (write_font_width_spec): Likewise.
6348 (write_font_pf2): Likewise.
6349 (argp_parser): Remove unused variable.
6350 Respect format security.
6351 (main): Avoid shadowing. Respect format security.
6352
6353 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6354
6355 * util/grub-editenv.c (argp_parser): Make static.
6356 (create_envblk_file): Use xmalloc.
6357 (open_envblk_file): Likewise.
6358 Resepect format security.
6359 (set_variables): Respect format security.
6360
6361 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6362
6363 * util/getroot.c (grub_find_device): Respect format security.
6364 (get_mdadm_uuid): Remove unused variable.
6365 (grub_util_pull_device): Dont call gettext on already translated
6366 grub_errmsg.
6367 (find_system_device): Remove unused variable.
6368 (grub_util_get_grub_dev): Likewise.
6369 (grub_make_system_path_relative_to_its_root): Respect format security.
6370
6371 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6372
6373 * util/grub-fstest.c (execute_command): Make first argument
6374 a const char *.
6375 (read_file): Avoid shadowing.
6376 Reuse underlying error message if device open fails.
6377 (cmd_cmp): Respect format security.
6378 (root): Make const char *.
6379 (fstest): Remove args argument and use global copy.
6380 Respect format security.
6381 (argp_parser): Make static.
6382 (main): Make default_root const char *.
6383
6384 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6385
6386 * util/grub-mount.c (root): Make const char *.
6387 (execute_command): Make first argument a const char *.
6388 (fuse_init): Respect format security.
6389 (argp_parser): Make static. Remove unused variable.
6390 (main): Make default_root a const char *.
6391 Respect format security.
6392
6393 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6394
6395 * util/grub-probe.c (probe): Don't call gettext on already translated
6396 grub_errmsg.
6397 Remove unused variables.
6398 (argp_parser): Remove unused variable.
6399
6400 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6401
6402 * util/grub-script-check.c (argp_parser): Remove unused variable.
6403 (main): Rename read to curread to avoid shadowing.
6404
6405 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6406
6407 * util/misc.c (grub_util_write_image_at): Fix format specification.
6408 (grub_util_write_image): Likewise.
6409 (grub_script_execute_argument_to_string): Removed (unused).
6410 (grub_script_execute_menuentry): Likewise.
6411 (grub_putchar): Likewise.
6412
6413 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6414
6415 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
6416 (FUNCTION) [GRUB_UTIL]: Likewise.
6417 (VARIABLE) [GRUB_UTIL]: Likewise.
6418
6419 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6420
6421 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
6422 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
6423
6424 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6425
6426 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
6427 buffer.
6428
6429 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6430
6431 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
6432 (LzmaEnc_SaveState): Removed (unused).
6433 (LzmaEnc_RestoreState): Likewise.
6434 (LzmaEnc_InitPriceTables): Made static.
6435 (LzmaEnc_Construct): Likewise.
6436 (LzmaEnc_FreeLits): Likewise.
6437 (LzmaEnc_Destruct): Likewise.
6438 (LzmaEnc_Init): Likewise.
6439 (LzmaEnc_InitPrices): Likewise.
6440 (LzmaEnc_Finish): Likewise.
6441 (LzmaEnc_PrepareForLzma2): Removed (unused).
6442 (LzmaEnc_MemPrepare): Likewise.
6443 (LzmaEnc_GetNumAvailableBytes): Likewise.
6444 (LzmaEnc_GetCurBuf): Likewise.
6445 (LzmaEnc_CodeOneMemBlock): Likewise.
6446
6447 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6448
6449 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
6450 (grub_util_ldm_embed): Likewise.
6451
6452 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6453
6454 * util/grub-editenv.c (print_var): Rename name to varname to
6455 avoid shadowing.
6456 (main): Rename index to curindex to avoid shadowing.
6457 Make filename a const char *.
6458
6459 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6460
6461 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
6462 to arg_getline to avoid shadowing.
6463
6464 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6465
6466 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
6467 disk_ to avoid shadowing.
6468
6469 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6470
6471 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
6472 curindex to avoid shadowing.
6473 Make static.
6474 (MatchFinder_GetNumAvailableBytes): Make static.
6475
6476 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6477
6478 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
6479 avoid shadowing.
6480
6481 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6482
6483 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
6484 argument from encrypt to do_encrypt to avoid shadowing.
6485
6486 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6487
6488 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
6489 incorrect nesting of #if's.
6490
6491 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6492
6493 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
6494 checks which are always false on some platforms.
6495 (grub_cmd_lsacpi): Likewise.
6496 * grub-core/kern/misc.c (grub_strtoul): Likewise.
6497 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
6498 Likewise.
6499
6500 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6501
6502 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
6503 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
6504
6505 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6506
6507 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
6508 re_dfa_t to avoid breaking alignment invariants.
6509 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
6510 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
6511
6512 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6513
6514 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
6515 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
6516
6517 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6518
6519 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
6520 Fix declaration.
6521
6522 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6523
6524 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
6525 conserve alignment invariants.
6526 (grub_ehci_ehcc_read16): Likewise.
6527 (grub_ehci_oper_read32): Likewise.
6528 (grub_ehci_oper_write32): Likewise.
6529 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
6530 Conserve alignment invariants.
6531
6532 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6533
6534 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
6535 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
6536 declarations.
6537
6538 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6539
6540 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
6541 Remove unused variable.
6542
6543 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6544
6545 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
6546 Remove set in if.
6547
6548 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6549
6550 * include/grub/net.h: Remove double declarations.
6551
6552 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6553
6554 Remove "payload" command in ia64 Linux loader since I couldn't
6555 find any evidence of it being used for anything.
6556 Replace "relocate" command with an environment variable
6557
6558 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
6559 fields.
6560 (ia64_boot_payload): Removed.
6561 (last_payload): Likewise.
6562 (RELOCATE_OFF): Likewise.
6563 (RELOCATE_ON): Likewise.
6564 (RELOCATE_FORCE): Likewise.
6565 (relocate): Likewise.
6566 (free_pages): Don't free payloads.
6567 (grub_load_elf64): Use common error messages.
6568 Use "linux_relocate" variable.
6569 Increase the space after boot_params.
6570 (grub_cmd_payload): Removed.
6571 (grub_cmd_relocate): Likewise.
6572 (grub_cmd_fpswa): Improve messages.
6573 (cmd_payload): Removed.
6574 (cmd_relocate): Likewise.
6575 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
6576 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
6577
6578 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6579
6580 Convert UHCI to DMA framework.
6581
6582 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
6583 (grub_uhci_pci_iter): Fill new members
6584 (grub_alloc_td): Use P2V and V2P functions.
6585 (grub_free_queue): Likewise.
6586 (grub_alloc_qh): Likewise.
6587 (grub_uhci_setup_transfer): Likewise.
6588 (grub_uhci_check_transfer): Likewise.
6589
6590 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6591
6592 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
6593 Remove assignment in if while on it.
6594
6595 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6596
6597 * util/grub-mkstandalone.in: Fix modules directory.
6598
6599 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6600
6601 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
6602 on i386-pc target.
6603 (argp_parser): Accept "auto" as compression specification.
6604
6605 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6606
6607 Fix `help' with unloaded modules.
6608
6609 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
6610 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
6611 (grub_dyncmd_dispatcher): Small stylistic fix.
6612 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
6613 explicit help is requested.
6614
6615 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6616
6617 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
6618 Explicitly init restart while on it.
6619
6620 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6621
6622 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
6623 uninited variable.
6624
6625 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6626
6627 * util/grub-mknetdir.in: Use . rather than source for POSIX
6628 compatibility.
6629
6630 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6631
6632 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
6633
6634 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6635
6636 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
6637 variable.
6638
6639 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6640
6641 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
6642 without quotes.
6643
6644 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6645
6646 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
6647
6648 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6649
6650 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
6651 iteration of partitions.
6652
6653 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6654
6655 Improve gettext support. Stylistic fixes and error handling fixes while
6656 on it.
6657
6658 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6659
6660 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
6661 part. Instead setup the correct stack in RM.
6662 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
6663 for stack.
6664 * include/grub/i386/relocator_private.h: New file.
6665
6666 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6667
6668 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
6669 argument.
6670 * util/grub-fstest.c (options): Add missing DEVICE part.
6671
6672 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6673
6674 Clarify and unify messages.
6675
6676 * grub-core/commands/hashsum.c (options): Unify messages.
6677 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
6678 literal-only message as translatable.
6679 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
6680 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
6681 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
6682 commands.
6683 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
6684 key, not the key used to unlock. Clarify what it's used for.
6685 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
6686 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
6687 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
6688 * util/grub-editenv.c (options): Unify "verbose" message.
6689 * util/grub-fstest.c (read_file): Unify error message.
6690 (fstest): Add quotes around commands.
6691 (options): Unify "verbose" message.
6692 * util/grub-install.in: Add quotes around variable name.
6693 * util/grub-kbdcomp.in: Unify error message.
6694 * util/grub-mkfont.c (main): Likewise.
6695 * util/grub-mkrescue.in: Likewise.
6696 * util/grub-mklayout.c (options): Unify "verbose" message.
6697 * util/grub-mkstandalone.in: Unify help and verbose messages.
6698 * util/grub-mount.c (options): Unify "verbose" message.
6699 * util/grub-probe.c (options): Likewise.
6700 * util/grub-script-check.c (options): Likewise.
6701 * util/grub-setup.c (setup): Unify no-terminator message.
6702 (options): Use DEVICE and not DEV.
6703 Unify "verbose" message.
6704 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
6705
6706 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6707
6708 Improve and unify messages.
6709
6710 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
6711 name. All users updated.
6712 Print filename in error.
6713 (read_device_map): Print filename in error.
6714 * util/getroot.c (grub_guess_root_devices): Print filename in error.
6715 (grub_util_get_os_disk): Likewise.
6716 (grub_util_biosdisk_get_grub_dev): Likewise.
6717 (grub_util_check_block_device): Likewise.
6718 (grub_util_check_char_device): Likewise.
6719 (grub_make_system_path_relative_to_its_root): Likewise.
6720 * util/grub-editenv.c (create_envblk_file): Likewise.
6721 (open_envblk_file): Likewise.
6722 (write_envblk): Likewise.
6723 * util/grub-fstest.c (cmd_cp): Likewise.
6724 (cmd_cat): Likewise.
6725 (cmd_cmp): Likewise.
6726 * util/grub-menulst2cfg.c (main): Likewise.
6727 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
6728 (write_font_width_spec): Likewise.
6729 (write_font_pf2): Likewise.
6730 * util/grub-mkimage.c (generate_image): New argument outname.
6731 All users updated.
6732 Remove unreacheable message.
6733 (options): Unify messages.
6734 (help_filter): Likewise.
6735 * util/grub-mklayout.c (usage): Removed (unused).
6736 (main): Print filename in error.
6737 * util/grub-mkrescue.in: Fix wrong quoting.
6738 * util/grub-setup.c (setup): Print filename in error.
6739 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
6740 (check_sas): Likewise.
6741 * util/misc.c (grub_util_get_fp_size): Removed.
6742 (grub_util_get_image_size): Print filename in error.
6743 (grub_util_read_at): Removed.
6744 (grub_util_read_image): Print filename in error.
6745 (grub_util_load_image): Likewise.
6746 (grub_util_write_image_at): New argument filename. All users updated.
6747 Print filename in error.
6748 (grub_util_write_image): New argument filename. All users updated.
6749 Print filename in error.
6750 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
6751 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
6752
6753 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6754
6755 * grub-core/Makefile.core.def (pxechain): New module.
6756 * grub-core/loader/i386/pc/pxechainloader.c: New file.
6757 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
6758 function.
6759 (grub_pc_net_config_real): Use grub_pxe_get_cached.
6760 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
6761
6762 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6763
6764 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
6765 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
6766 * include/grub/err.h (grub_error_saved): New struct.
6767 (grub_errmsg): Make array size explicit.
6768 * include/grub/misc.h (grub_error_save): New function.
6769 (grub_error_load): Likewise.
6770 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
6771 (grub_error_push): Update `errno' member name.
6772 (grub_error_pop): Likewise
6773 * grub-core/net/tftp.c (tftp_data): New member save_err.
6774 (tftp_receive): Save error.
6775 (tftp_open): Restore error.
6776
6777 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6778
6779 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
6780 to real mode down to execute A20-related code in protected mode as
6781 intended.
6782
6783 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
6784
6785 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
6786 NULL when the argument `level' has an unexpected value.
6787
6788 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6789
6790 Move platform-dependent files from $prefix to $prefix/$platform.
6791
6792 * config.h.in (GRUB_TARGET_CPU): New definition.
6793 (GRUB_PLATFORM): Likewise.
6794 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
6795 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
6796 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
6797 * grub-core/kern/dl.c (grub_dl_load): Likewise.
6798 * grub-core/normal/autofs.c (read_fs_list): Likewise.
6799 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
6800 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
6801 * grub-core/normal/term.c (read_terminal_list): Likewise.
6802 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
6803 $prefix/locale.
6804 (grub_gettext_init_ext): Likewise.
6805 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
6806 grub_platform.
6807 * util/grub-install.in: Update directories.
6808 * util/grub-mknetdir.in: Likewise.
6809 * util/grub-mkrescue.in: Likewise.
6810
6811 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6812
6813 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
6814 grub_error framework. All users updated.
6815
6816 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6817
6818 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
6819 lists (by always binsearching), improve caching (cache strings
6820 used for binsearch, not only results), improve
6821 maintainability (by using more structured binary search) and correct
6822 error handling.
6823
6824 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6825
6826 * grub-core/script/execute.c (grub_script_return): Fix warning.
6827
6828 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6829
6830 * grub-core/script/execute.c (grub_script_return): Fix potential
6831 NULL-dereference.
6832 Reported by: Jim Meyering.
6833
6834 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6835
6836 * po/POTFILES.in: Regenerate.
6837 * util/grub-install.in: Gettextize the strings missed in first pass.
6838
6839 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6840
6841 * Makefile.util.def (grub-mkdevicemap): Removed.
6842 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
6843 * include/grub/util/deviceiter.h: Removed.
6844 * util/deviceiter.c: Likewise.
6845 * util/getroot.c (grub_util_get_os_disk): New function.
6846 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
6847 replacement for EFI.
6848 * util/grub-mkdevicemap.c: Removed.
6849 * util/grub-probe.c (probe): Handle PRINT_DISK.
6850 (argp_parser): Handle -t disk.
6851
6852 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6853
6854 * util/grub-mkfont.c: Migrate to argp.
6855 * util/grub-mklayout.c: Likewise.
6856 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6857 * util/grub-mkrelpath.c: Likewise.
6858 * util/grub-probe.c: Likewise.
6859 * util/grub-script-check.c: Likewise.
6860
6861 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6862
6863 * util/grub-reboot.in: Add missing datarootdir.
6864 Add missing newline.
6865 * util/grub-set-default.in: Add missing datarootdir.
6866 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
6867 * util/grub-mkrescue.in: Likewise.
6868
6869 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6870
6871 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
6872
6873 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6874
6875 * util/grub-kbdcomp.in: Add decent help and gettextize.
6876 * docs/man/grub-kbdcomp.h2m: New file.
6877
6878 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6879
6880 Migrate grub-mkimage.c to argp.
6881
6882 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
6883 (grub-setup): Likewise.
6884 * util/grub-setup.c (print_version): Move to ...
6885 * util/argp_common.c (print_version): ... here.
6886 * util/grub-setup.c (argp_program_version_hook): Move to ...
6887 * util/argp_common.c (argp_program_version_hook): ... here.
6888 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
6889 safety.
6890 * util/grub-mkimage.c (main): Migrate to argp.
6891
6892 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6893
6894 * util/grub-mkrescue.in: Use same message as
6895 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
6896 for better translations.
6897
6898 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6899
6900 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
6901 options with generic grub-mkrescue.in with the goal of future
6902 merge.
6903
6904 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6905
6906 * grub-core/kern/mm.c: Add missing include of i18n.h
6907 * grub-core/lib/relocator.c: Likewise.
6908
6909 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6910
6911 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
6912 error.
6913 (allocate_pages): Check return value.
6914 Replace fatal with error.
6915 (grub_linux_boot): Replace printf with dprintf.
6916 Check find_mmap_size return value.
6917 Replace fatal with error.
6918 Don't call grub_machine_fini.
6919 (grub_load_elf64): Replace printf with dprintf.
6920 (grub_cmd_linux): Likewise.
6921 (grub_cmd_initrd): Likewise.
6922 (grub_cmd_payload): Likewise.
6923
6924 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6925
6926 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
6927 message.
6928 * grub-core/video/radeon_fuloong2e.c
6929 (grub_video_radeon_fuloong2e_setup): Likewise.
6930 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
6931 * grub-core/video/video.c (grub_video_set_mode): Don't override
6932 standard out of memory message.
6933
6934 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6935
6936 NetBSD disk wedge support.
6937
6938 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
6939 [__NetBSD__]: Handle NetBSD disk wedges.
6940 * util/getroot.c (convert_system_partition_to_system_disk)
6941 [__NetBSD__]: Likewise.
6942
6943 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
6944
6945 * util/grub-mkconfig.in: Use umask rather than chmod to create
6946 grub.cfg.new to avoid insecure grub.cfg.
6947
6948 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6949
6950 * grub-core/commands/ls.c: Gettextize.
6951 * grub-core/commands/setpci.c: Likewise.
6952 * grub-core/commands/videotest.c: Likewise.
6953 * grub-core/disk/geli.c: Likewise.
6954 * grub-core/kern/mm.c: Likewise.
6955 * grub-core/lib/relocator.c: Likewise.
6956 * grub-core/loader/efi/appleloader.c: Likewise.
6957 * grub-core/loader/i386/xnu.c: Likewise.
6958 * grub-core/loader/ia64/efi/linux.c: Likewise.
6959 * grub-core/loader/xnu.c: Likewise.
6960 * grub-core/net/dns.c: Likewise.
6961 * grub-core/net/net.c: Likewise.
6962 * grub-core/script/lexer.c: Likewise.
6963 * grub-core/script/parser.y: Likewise.
6964 * grub-core/script/yylex.l: Likewise.
6965 * util/getroot.c: Likewise.
6966 * util/grub-setup.c: Likewise.
6967
6968 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6969
6970 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
6971 number.
6972
6973 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6974
6975 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
6976
6977 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6978
6979 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
6980 macro.
6981 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
6982 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
6983
6984 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6985
6986 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
6987 * util/grub-install.in: Gettextize.
6988 * util/grub-mkconfig.in: Likewise.
6989 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
6990 if not available.
6991 (grub_warn): Gettextize.
6992 * util/grub-mknetdir.in: Gettextize.
6993 * util/grub-mkrescue.in: Likewise.
6994 * util/grub-mkstandalone.in: Likewise.
6995 * util/grub-reboot.in: Likewise.
6996 * util/grub-set-default.in: Likewise.
6997 * util/grub.d/00_header.in: Likewise.
6998 * util/grub.d/10_hurd.in: Likewise.
6999 * util/grub.d/10_kfreebsd.in: Likewise.
7000 * util/grub.d/10_linux.in: Likewise.
7001 * util/grub.d/10_netbsd.in: Likewise.
7002 * util/grub.d/10_windows.in: Likewise.
7003 * util/grub.d/20_linux_xen.in: Likewise.
7004 * util/grub.d/30_os-prober.in: Likewise.
7005 * po/POTFILES-shell.in: Regenerate.
7006
7007 2012-02-03 Richard Laager <rlaager@wiktel.com>
7008
7009 * util/grub-mkimage.c (main): Fix format-security warning.
7010 * util/grub-mkrelpath.c (main): Likewise.
7011 * util/grub-probe.c (main): Likewise.
7012
7013 2012-02-03 Richard Laager <rlaager@wiktel.com>
7014
7015 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
7016 failure.
7017 Put back lost PRINT_DRIVE.
7018
7019 2012-02-03 Richard Laager <rlaager@wiktel.com>
7020
7021 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
7022 (grub_guess_root_devices): Replace strlen with sizeof.
7023 Avoid crash.
7024 (find_root_devices_from_poolname): Remove unused variable.
7025 Handle raidzN.
7026
7027 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7028
7029 Support install on multi-device filesystems.
7030
7031 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
7032 (grub_guess_root_devices): ...this. Return char **. All users updated.
7033 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
7034 Removed.
7035 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
7036 (find_root_devices_from_poolname): ... here.
7037 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
7038 Support zfs-fuse.
7039 (grub_guess_root_device): Rename to ...
7040 (grub_guess_root_devices): ... this. Return char **. All users updated.
7041 * util/grub-install.in: Handle multi-device filesystems.
7042 * util/grub-probe.c (probe). Make device_names a char **. Add delim
7043 argument. All users updated.
7044 Handle multi-device filesystems.
7045 Use 'delim' as separator.
7046 Remove device check to allow filesystems on file.
7047 (main): Support -0 argument. Handle multi-device.
7048 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
7049 Fix a cross-device check while on it.
7050 (arguments): Remove root_dev.
7051 (argp_parser): Remove -r.
7052 (main): Remove root_dev.
7053
7054 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7055
7056 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
7057
7058 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7059
7060 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
7061 symbol.
7062 Reported by: NODA, Kai <nodakai>.
7063
7064 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7065
7066 Fix ehci on amd64.
7067
7068 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
7069 pointers.
7070 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
7071 (grub_ehci_setup_qh): Likewise.
7072 (grub_ehci_find_qh): Likewise.
7073 (grub_ehci_transaction): Likewise.
7074 (grub_ehci_setup_transfer): Likewise.
7075 (grub_ehci_check_transfer): Likewise.
7076 (grub_ehci_portstatus): Likewise.
7077 (grub_ehci_detect_dev): Likewise.
7078 (grub_ehci_transfer_controller_data): New field td_last_phys.
7079 (grub_ehci_setup_transfer): Fill td_last_phys.
7080 (grub_ehci_check_transfer): Use td_last_phys.
7081
7082 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
7083
7084 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
7085 if no submenu is present.
7086
7087 2012-02-01 Aleš Nesrsta <starous@volny.cz>
7088
7089 CBI support.
7090
7091 * include/grub/usb.h (grub_usbms_protocol_t): New values
7092 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
7093 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
7094 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
7095 (grub_usbms_dev): Add subclass, protocol and intrpt.
7096 Remove in_maxsz and out_maxsz.
7097 (grub_usbms_reset): Rename to ...
7098 (grub_usbms_bo_reset): .. this.
7099 (grub_usbms_cbi_cmd): New function.
7100 (grub_usbms_cbi_reset): Likewise.
7101 (grub_usbms_reset): Likewise.
7102 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
7103 (grub_usbms_transfer): Rename to ...
7104 (grub_usbms_transfer_bo): ... this.
7105 (grub_usbms_transfer_cbi): Likewise.
7106 (grub_usbms_transfer): Likewise.
7107
7108 2012-02-01 Aleš Nesrsta <starous@volny.cz>
7109 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7110
7111 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
7112 the support for the CS5536 modification thereos and few bugfixes.
7113
7114 * grub-core/Makefile.core.def (ehci): New module.
7115 * grub-core/bus/usb/ehci.c: New file.
7116 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
7117 port and hubaddr. All users updated.
7118 Save port and hubaddr into dev structure.
7119 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
7120 define.
7121 * include/grub/pci.h (grub_dma_phys2virt): New function.
7122 (grub_dma_virt2phys): Likewise.
7123 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
7124
7125 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7126
7127 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
7128 check as some mkfs implementations omit it.
7129
7130 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7131
7132 * docs/grub.texi (Unicode): Mention identifier and space limitations.
7133
7134 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7135
7136 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
7137 Add new member volname2.
7138 (grub_jfs_label): Use volname2 if available.
7139
7140 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7141
7142 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
7143 over last_mounted as seen in image generated by mkfs.nilfs2.
7144 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
7145
7146 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7147
7148 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
7149 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
7150 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
7151
7152 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7153
7154 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
7155 over the sector.
7156
7157 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7158
7159 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
7160 subvolume name (by removing a bogus and useless check).
7161
7162 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7163
7164 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
7165 sizeof while on it.
7166
7167 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7168
7169 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
7170 (grub_scsi_read_capacity10): ... this.
7171 (grub_scsi_read_capacity16): New function.
7172 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
7173 0xffffffff.
7174 Fix off-by-one error.
7175 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
7176 64-bit unsigned.
7177 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
7178 (grub_scsi_read_capacity10): ... this.
7179 (grub_scsi_read_capacity_data): Rename to ...
7180 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
7181 (grub_scsi_read_capacity16): New struct.
7182 (grub_scsi_read_capacity16_data): Likewise.
7183 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
7184 grub_scsi_cmd_read_capacity10.
7185 New command grub_scsi_cmd_read_capacity16.
7186
7187 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7188
7189 SCSI >2TiB support.
7190
7191 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
7192 (grub_scsi_write16): Likewise.
7193 (grub_scsi_read): Use read16 when necessary.
7194 (grub_scsi_write): Likewise.
7195 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
7196 (grub_scsi_write16): Likewise.
7197 (grub_scsi_cmd_t): Add READ16 and WRITE16.
7198
7199 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7200
7201 SCSI write support (for usbms mainly).
7202
7203 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
7204 a const pointer.
7205 (grub_scsi_write): Implement.
7206 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
7207
7208 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7209
7210 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
7211 variable.
7212
7213 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7214
7215 * grub-core/lib/posix_wrap/string.h (memchr): New function.
7216
7217 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7218
7219 * po/POTFILES.in: Regenerate.
7220
7221 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7222
7223 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
7224 with grub_printf to avoid unnecessary fatal failure.
7225
7226 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7227
7228 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
7229 (INT_MAX): Likewise.
7230 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
7231 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
7232 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
7233 (strcpy): Likewise.
7234 (strstr): Likewise.
7235 (strchr): Likewise.
7236 (strncpy): Likewise.
7237 (strcat): Likewise.
7238 (strncat): Likewise.
7239 (strcoll): Likewise.
7240 * include/grub/types.h (GRUB_SHRT_MAX): New define.
7241 (GRUB_INT_MAX): Likewise.
7242
7243 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7244
7245 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
7246 unexpected error.
7247 (optimize_utf8): Likewise.
7248 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
7249
7250 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7251
7252 * grub-core/boot/i386/pc/lnxboot.S: Use
7253 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
7254 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
7255 location.
7256 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
7257 definition.
7258 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
7259
7260 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7261
7262 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
7263 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
7264 now to avoid double free.
7265 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
7266 hostdisk.
7267 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
7268 * util/grub-probe.c (escape_of_path): Always return a new copy.
7269 (print_full_name): Escape path.
7270 (probe): Don't call grub_util_devname_to_ofpath on NULL.
7271 Fix hints on abstractions.
7272
7273 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7274
7275 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
7276 Don't add "root" line if no compatibility hont is available.
7277 Suggested by: Seth Goldberg.
7278
7279 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7280
7281 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
7282 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
7283 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
7284 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
7285
7286 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7287
7288 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
7289
7290 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7291
7292 * util/grub-pe2elf.c (ehdr): Make static.
7293 (shdr): Likewise.
7294 (num_sections): Likewise.
7295 (offset): Likewise.
7296
7297 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7298
7299 Eliminate ofpath limits and possible overflows.
7300
7301 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
7302 (OF_PATH_MAX): Removed.
7303 (MAX_DISK_CAT): New const.
7304 (find_obppath): Use allocated rather than preallocated buffer.
7305 Return result. Argument of_path removed. All users updated.
7306 Add missing fdstat.
7307 (xrealpath): New function.
7308 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
7309 Allocate rather than use preallocated buffer. All users updated.
7310 (__of_path_common): Use allocated rather than preallocatecd buffer.
7311 Return result. Argument of_path removed. All users updated.
7312 (vendor_is_ATA): Read only needed part form the file.
7313 (check_sas): Allocate depending on contents rather than fixed.
7314 (main) [STANDALONE]: Handle NULL result.
7315
7316 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7317
7318 * grub-core/normal/completion.c (iterate_dev): Close the disk.
7319
7320 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7321
7322 Cryptodisk write support.
7323
7324 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
7325 (grub_cryptodisk_decrypt): Moved logic to ...
7326 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
7327 (grub_cryptodisk_write): Implement.
7328 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
7329 (grub_util_fd_write): ... this. Make global.
7330 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
7331
7332 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7333
7334 * include/grub/list.h (grub_list_remove): Don't crash if element is
7335 removed twice.
7336
7337 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7338
7339 Rename ofconsole to console.
7340
7341 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
7342 as sysnonym to console.
7343 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
7344 * grub-core/term/ieee1275/console.c: ... this. All users updated.
7345 Rename grub_ofconsole_ to grub_console_. All users updated
7346 (grub_console_term_output): Rename "ofconsole" to "console".
7347 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
7348 as "console".
7349
7350 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7351
7352 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
7353 handling.
7354 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
7355 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
7356 GRUB_DISK_DEVICE_FILE_ID.
7357
7358 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7359
7360 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
7361 and improve performance.
7362
7363 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7364
7365 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
7366 missing ieee1275/ prefix on whole disk.
7367
7368 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7369
7370 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
7371 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
7372
7373 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7374
7375 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
7376
7377 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7378
7379 Merge common RAID and LVM logic to an abstract diskfilter.
7380 Add LDM support using the same framework.
7381
7382 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
7383 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
7384 (libgrubmods): Remove grub-core/disk/raid.c and
7385 grub-core/partmap/gpt.c.
7386 * grub-core/Makefile.core.def (ldm): New module.
7387 (raid): Renamed to diskfilter. All users updated.
7388 * grub-core/disk/raid.c: Moved to ...
7389 * grub-core/disk/diskfilter.c: ... here.
7390 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
7391 (lv_num): New var.
7392 (find_array): Renamed to ...
7393 (find_lv): ... this. Support multi-LV. Skip nameless LVs
7394 (grub_is_array_readable): Renamed to ...
7395 (grub_is_lv_readable): ... this. Support multinode hierarchy.
7396 (insert_array): New argument id.
7397 (is_node_readable): New function.
7398 (scan_device): Rename to ...
7399 (scan_disk): .. this. Restrict to one disk.
7400 (scan_devices): New function.
7401 (grub_diskfilter_iterate): Support multi-LV.
7402 Skip invisible and nameless LVs.
7403 (grub_diskfilter_memberlist): Support multi-LV.
7404 (grub_diskfilter_read_node): New function.
7405 (grub_raid_read): Most of logic moved to ...
7406 (read_segment): ... here
7407 (read_lv): New function.
7408 (grub_diskfilter_get_vg_by_uuid): New function.
7409 (grub_diskfilter_make_raid): Likewise.
7410 * grub-core/disk/ldm.c: New file.
7411 * grub-core/disk/lvm.c (vg_list): Removed.
7412 (lv_count): Likewise.
7413 (scan_depth): Likewise.
7414 (is_lv_readable): Likewise.
7415 (grub_lvm_getvalue): Advance pointer past the number.
7416 (find_lv): Removed.
7417 (do_lvm_scan): Refactored into ...
7418 (grub_lvm_detect): ... this. Support raid.
7419 (grub_lvm_iterate): Removed.
7420 (grub_lvm_memberlist): Likewise.
7421 (grub_lvm_open): Likewise.
7422 (grub_lvm_close): Likewise.
7423 (read_lv): Likewise.
7424 (read_node): Likewise.
7425 (is_node_readable): Likewise.
7426 (is_lv_readable): Likewise.
7427 (grub_lvm_read): Likewise.
7428 (grub_lvm_write): Likewise.
7429 (grub_lvm_dev): Use diskfilter
7430 (GRUB_MOD_INIT): Likewise.
7431 (GRUB_MOD_FINI): Likewise.
7432 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
7433 new interface.
7434 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
7435 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7436 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
7437 grub_diskfilter_read_node.
7438 Fix a bug with xor.
7439 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
7440 grub_diskfilter_read_node.
7441 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
7442 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
7443 (grub_disk_dev_iterate): Move from here...
7444 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
7445 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
7446 Make global.
7447 (grub_hostdisk_find_partition_start): Likewise.
7448 (grub_hostdisk_os_dev_to_grub_drive): New function.
7449 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
7450 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
7451 * util/getroot.c (make_device_name): ... here.
7452 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
7453 Move to ...
7454 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
7455 * grub-core/kern/emu/hostdisk.c
7456 (convert_system_partition_to_system_disk): Move to ...
7457 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
7458 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
7459 * util/getroot.c (device_is_wholedisk): ... here.
7460 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
7461 * util/getroot.c (find_system_device): ... here.
7462 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
7463 Move to ...
7464 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
7465 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
7466 Move to ...
7467 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
7468 Handle LDM.
7469 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
7470 Move to ...
7471 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
7472 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
7473 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
7474 DISKFILTER.
7475 * include/grub/raid.h: Renamed to ...
7476 * include/grub/diskfilter.h: ... this.
7477 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
7478 (GRUB_RAID_LAYOUT_*): Make into array.
7479 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
7480 (grub_diskfilter_vg): New struct.
7481 (grub_diskfilter_pv_id): Likewise.
7482 (grub_raid_member): Removed.
7483 (grub_raid_array): Likewise.
7484 (grub_diskfilter_pv): New struct.
7485 (grub_diskfilter_lv): Likewise.
7486 (grub_diskfilter_segment): Likewise.
7487 (grub_diskfilter_node): Likewise.
7488 (grub_diskfilter_get_vg_by_uuid): New proto.
7489 (grub_raid_register): Inline.
7490 (grub_diskfilter_unregister): Likewise.
7491 (grub_diskfilter_make_raid): New proto.
7492 (grub_diskfilter_vg_register): Likewise.
7493 (grub_diskfilter_read_node): Likewise.
7494 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
7495 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
7496 (grub_util_is_ldm): Likewise.
7497 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
7498 (grub_hostdisk_find_partition_start): Likewise.
7499 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
7500 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
7501 New definition.
7502 (grub_gpt_partition_map_iterate): New proto.
7503 * include/grub/lvm.h (grub_lvm_vg): Removed.
7504 (grub_lvm_pv): Likewise.
7505 (grub_lvm_lv): Likewise.
7506 (grub_lvm_segment): Likewise.
7507 (grub_lvm_node): Likewise.
7508 * util/getroot.c [...]
7509 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
7510 (probe_abstraction): Likewise.
7511 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
7512 (main): Remove dead logic.
7513
7514 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
7515
7516 Simplify root device discover and don't fail when trying to open
7517 incorrect devices.
7518
7519 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
7520 function.
7521 (get_diskname_from_path): Likewise.
7522 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
7523 of iterating.
7524
7525 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7526
7527 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
7528
7529 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7530
7531 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
7532 pastthe end.
7533
7534 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7535
7536 * util/grub-install.in: Add missing \.
7537 Reported by: gentoofan
7538
7539 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7540
7541 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
7542 (direct_read): Use correct compressed size.
7543 (grub_squash_read_data): Likewise.
7544
7545 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7546
7547 * docs/grub.texi (Platform limitations): New section.
7548 (Platform-specific operations): Likewise.
7549 * docs/grub-dev.texi (Porting): Likewise.
7550
7551 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7552
7553 IEEE1275 disk write support.
7554
7555 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
7556 const void *.
7557 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
7558 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
7559 and seek loginc to ...
7560 (grub_ofdisk_prepare): ... here.
7561 (grub_ofdisk_write): Implement.
7562
7563 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7564
7565 ARC disk write support.
7566
7567 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
7568 (reopen): New argument writable. All users updated.
7569 Handle required access mode.
7570 (grub_arcdisk_write): Implement.
7571 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
7572 (grub_arc_firmware_vector): Make buffer to write a const buffer.
7573
7574 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7575
7576 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
7577 (read_sblock): Don't attempt to read superblocks outside the disk size.
7578
7579 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7580
7581 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
7582 first superblock to find the second one when possible.
7583
7584 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7585
7586 * util/grub-install.in: Fix an ARC bug.
7587 Print a warning if no platform-specific setup is available.
7588
7589 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7590
7591 Use static allocation rather than scratch pointer in reed_solomon.
7592 It decreases its size significantly and avoids a variable in .text.
7593
7594 * grub-core/lib/reed_solomon.c (scratch): Removed.
7595 (chosenstat): New const or static array.
7596 (sigma): Likewise.
7597 (errpot): Likewise.
7598 (errpos): Likewise.
7599 (sy): Likewise.
7600 (mstat): Likewise.
7601 (errvals): Likewise.
7602 (eqstat): Likewise.
7603 (pol_evaluate): Replace x with log_x argument. All users updated.
7604 (syndroms): Removed.
7605 (gauss_solve): Use statically allocated arrays.
7606 (rs_recover): Likewise.
7607 Calculate syndroms directly.
7608 (decode_block): Use statically allocated arrays.
7609 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
7610 (main) [TEST]: Allow -DTEST -DSTANDALONE.
7611
7612 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7613
7614 Eliminate fixed limit on reed solomon decoder length.
7615
7616 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
7617 rather than hardcoding the address.
7618 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
7619 no_reed_solomon_length.
7620 Move gate_a20 to no-reed-solomon part.
7621 Don't force a particular size of no reed-solomon part.
7622 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7623 Removed.
7624 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
7625 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
7626
7627 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7628
7629 * grub-core/commands/wildcard.c (match_files): Handle filenames
7630 without explicit device.
7631 (wildcard_expand): Don't add explicit device if not already present.
7632 * tests/grub_script_echo1.in: Add a new expansion test.
7633
7634 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7635
7636 Replace single-linked with double-linked lists. It results in more
7637 compact and more efficient code.
7638
7639 * grub-core/kern/list.c (grub_list_push): Moved from here ...
7640 * include/grub/list.h (grub_list_push): ... to here. Set prev.
7641 (grub_list_remove): Moved from here ...
7642 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
7643 (grub_prio_list_insert): Set prev.
7644 * include/grub/list.h (grub_list): Add prev. All users updated.
7645
7646 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7647
7648 Handle newer autotools. Add some missing quotes while on it.
7649
7650 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
7651 (pkglib_DATA): Move grub-mkconfig_lib from here ...
7652 (pkgdata_DATA): ... here.
7653 * Makefile.util.def (update-grub_lib): Removed.
7654 * conf/Makefile.common (pkglib_DATA): Removed.
7655 (pkglib_SCRIPTS): Likewise.
7656 (pkgdata_DATA): New variable.
7657 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
7658 needed.
7659 Add missing quotes.
7660 Remove unused variable while on it.
7661 * tests/util/grub-shell.in: Likewise.
7662 * util/grub-install.in: Likewise.
7663 * util/grub-mkconfig.in: Likewise.
7664 * util/grub-mknetdir.in: Likewise.
7665 * util/grub-mkrescue.in: Likewise.
7666 * util/grub-mkstandalone.in: Likewise.
7667 * util/grub.d/00_header.in: Likewise.
7668 * util/grub.d/10_hurd.in: Likewise.
7669 * util/grub.d/10_illumos.in: Likewise.
7670 * util/grub.d/10_kfreebsd.in: Likewise.
7671 * util/grub.d/10_linux.in: Likewise.
7672 * util/grub.d/10_netbsd.in: Likewise.
7673 * util/grub.d/10_windows.in: Likewise.
7674 * util/grub.d/20_linux_xen.in: Likewise.
7675 * util/grub.d/30_os-prober.in: Likewise.
7676 * util/update-grub_lib.in: Removed.
7677
7678 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
7679
7680 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
7681 a workaround for intel problem.
7682
7683 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
7684 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7685 2012-01-23 pfsmorigo
7686
7687 * util/grub-install.in: Support dd'in into PreP partition.
7688 * util/grub-probe.c (probe): Support discovering partition type.
7689 (main): Support -t msdos_parttype.
7690
7691 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7692
7693 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
7694 infinite recursion using counter.
7695 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
7696 init to skip it if the magic check fails.
7697 (dec_stream_header): Init s->crc32.
7698
7699 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7700 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
7701 2012-01-22 Richard Laager <rlaager@wiktel.com>
7702
7703 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
7704 All users updated.
7705 (find_bestub): Determine correct size.
7706 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
7707 (scan_disk): Align the size down.
7708 Call check pool before find_bestub to have ashift.
7709
7710 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7711
7712 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
7713 dprintf in no-malloc zone.
7714
7715 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
7716
7717 * configure.ac: Add back in test for limits.h.
7718
7719 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7720
7721 Support 4K-sector NTFS.
7722
7723 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
7724 (grub_ntfs_data): Remove blocksize.
7725 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
7726 Remove data argument. All users updated.
7727
7728 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7729
7730 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
7731 being in .text to avoid dprel references.
7732 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
7733 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
7734 (grub_arch_highmemsize): Likewise.
7735 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
7736 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
7737 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
7738
7739 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7740
7741 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
7742
7743 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
7744 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
7745
7746 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7747
7748 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
7749 GRUB_UTIL.
7750 (grub_set_datetime_cmos): Likewise.
7751
7752 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7753
7754 Make XZ compression parameters dependent on target and not host CPU.
7755
7756 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
7757 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
7758
7759 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7760
7761 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
7762 set but not used variable.
7763
7764 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7765
7766 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
7767 created when no uuid support is compiled into mkfs.reiser.
7768
7769 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7770
7771 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
7772 (utf8_to_macroman): Do the opposite.
7773 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
7774
7775 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7776
7777 * configure.ac: Refise build qemu_mips w/o unifont.
7778
7779 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7780
7781 Eliminate grub_min/grub_max prone to overflow usage.
7782
7783 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
7784 (poll_nonroot_hub): Likewise.
7785 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
7786 (grub_affs_label): Likewise.
7787 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
7788 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
7789 (grub_hfs_label): Likewise.
7790 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
7791 * grub-core/fs/zfs/zfs.c (MIN): Remove.
7792 (zap_leaf_array_equal): Use grub_size. Remove MIN.
7793 (zap_leaf_array_get): Likewise.
7794 (dnode_get_path): Likewise.
7795 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
7796 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
7797 * grub-core/script/execute.c (grub_script_break): Likewise.
7798 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
7799 grub_max.
7800 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
7801 * include/grub/misc.h (grub_min): Removed.
7802 (grub_max): Likewise.
7803
7804 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7805
7806 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
7807 direct.inode = 0.
7808
7809 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7810
7811 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
7812
7813 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7814
7815 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
7816
7817 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7818
7819 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
7820 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
7821
7822 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7823
7824 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
7825 rather than a hack for grub_strncasemap.
7826
7827 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7828
7829 Support multiple initrds
7830 Note: part of this was accidently committed in r3739.
7831
7832 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
7833 initrd.
7834 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
7835 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
7836 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7837 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7838 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7839
7840 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7841
7842 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
7843 disks with unknown size.
7844 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
7845
7846 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7847
7848 Remove defines pertaining to arbitrary limits not affecting GRUB
7849 anymore.
7850
7851 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
7852 (EXT2_MAX_SYMLINKCNT): Likewise.
7853 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
7854 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
7855 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
7856 (GRUB_PXE_MAX_BLKSIZE): Likewise.
7857 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
7858 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
7859 (DN_MAX_OBJECT_SHIFT): Likewise.
7860 (DN_MAX_OFFSET_SHIFT): Likewise.
7861 (DN_MAX_OBJECT): Likewise.
7862 (DNODES_PER_LEVEL_SHIFT): Likewise.
7863 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
7864 (SPA_MAXBLOCKSIZE): Likewise.
7865 (SPA_BLOCKSIZES): Likewise.
7866 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
7867 (MZAP_MAX_BLKSZ): Likewise.
7868
7869 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7870
7871 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
7872 handle NULL appropriately.
7873 Remove MIN.
7874
7875 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7876
7877 Fix efiemu.
7878
7879 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
7880 cpu/types.h.
7881 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
7882 * configure.ac: Fix efiemu check.
7883
7884 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7885
7886 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
7887 grub_probe.
7888 Reported by: adamwill
7889
7890 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
7891
7892 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
7893
7894 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7895
7896 Fix handling of wide characters in gfxterm.
7897
7898 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
7899 (clear_char): Likewise.
7900 (paint_char): Skip code == NULL chars.
7901 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
7902
7903 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7904
7905 * grub-core/normal/charset.c: Move comment to right place.
7906
7907 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7908
7909 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
7910 (GRUB_AFFS_FLAG_FFS): Put back where it was.
7911 (grub_affs_mount): Revert the correct version checking.
7912
7913 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7914
7915 * docs/grub.texi (Unicode): Mention several other unsupported features.
7916
7917 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7918
7919 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
7920 case statements as compile-time one.
7921 (direct_read): Prevent spurious warnings.
7922 (grub_squash_read_data): Likewise.
7923
7924 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7925
7926 Various squash4 fixes and LZO and XZ support.
7927
7928 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
7929 Add xzembed source files.
7930 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
7931 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
7932 (grub_squash_inode): New subtype long_dir.
7933 (SQUASH_TYPE_LONG_DIR): New inode type.
7934 (COMPRESSION): New enum.
7935 (XZBUFSIZ): New const.
7936 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
7937 (read_chunk): Use data->decompress.
7938 (zlib_decompress): New function.
7939 (lzo_decompress): Likewise.
7940 (xz_decompress): Likewise.
7941 (squash_mount): Set new data fields.
7942 (grub_squash_iterate_dir): Handle long dir.
7943 (squash_unmount): Free xzdec and xzbuf.
7944 (grub_squash_open): Check ino type.
7945 (direct_read): Stylistic fixes. Use data->decompress.
7946 (grub_squash_read_data): Likewise.
7947 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
7948 (get_byte): Likewise.
7949 (grub_zlib_disk_read): Removed.
7950 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
7951 (GRUB_POSIX_BOOL_DEFINED): New define.
7952 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
7953 * grub-core/lib/xzembed/xz.h: Addmissing includes.
7954 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
7955 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
7956
7957 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7958
7959 Don't override more informative errors.
7960
7961 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
7962 * grub-core/font/font.c (open_section): Likewise.
7963 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
7964 filename. Don't override errors.
7965 (grub_cmd_openbsd_ramdisk): Don't override errors.
7966 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
7967 (grub_cmd_initrd): Likewise.
7968 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7969 (grub_cmd_initrd): Likewise.
7970 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
7971 (grub_cmd_linux): Likewise.
7972 (grub_cmd_initrd): Likewise.
7973 (grub_cmd_payload): Likewise.
7974 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7975 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
7976 (grub_cmd_module): Likewise.
7977 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7978 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7979 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
7980 (grub_cmd_xnu_mkext): Likewise.
7981 (grub_cmd_xnu_ramdisk): Likewise.
7982 (grub_xnu_check_os_bundle_required): Likewise.
7983 (grub_xnu_load_kext_from_dir): Likewise.
7984 (grub_cmd_xnu_kextdir): Likewise.
7985 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
7986
7987 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7988
7989 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
7990 as 1024 in block size field. Found on one of my test images.
7991 Small optimisation while on it.
7992
7993 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7994
7995 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
7996 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
7997 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
7998 performance fixes while on it.
7999 (grub_sfs_close): Fix memory leak while on it.
8000 (grub_sfs_label): Convert Latin1 to UTF-8.
8001
8002 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8003
8004 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
8005 space to avoid overflows.
8006 (grub_hfs_label): Convert from macroman to UTF-8.
8007
8008 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8009
8010 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
8011
8012 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8013
8014 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
8015
8016 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8017
8018 * unicode: Import Unicode 6.0 data.
8019
8020 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8021
8022 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
8023 outside of range.
8024
8025 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8026
8027 Avoid cutting in the middle of UTF-8 character.
8028
8029 * include/grub/charset.h (grub_getend): New function.
8030 * grub-core/script/function.c (grub_script_function_find): Use
8031 grub_getend.
8032 * grub-core/normal/completion.c (add_completion): Likewise.
8033
8034 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8035
8036 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
8037 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
8038 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
8039 (GRUB_UNICODE_TAG_END): Likewise.
8040 (GRUB_UNICODE_LAST_VALID): Likewise.
8041
8042 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8043
8044 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
8045 len and make it smaller. All users updated.
8046 * util/import_unicode.py: Put length and not end character.
8047 Check length.
8048
8049 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8050
8051 Make better Unicode-compliant and unify some UTF-8 code pathes.
8052
8053 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
8054 valid character.
8055 (grub_is_valid_utf8): Use grub_utf8_process.
8056 Check resulting code range.
8057 (grub_utf8_to_ucs4): Use grub_utf8_process.
8058 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
8059 valid character.
8060
8061 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8062
8063 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
8064
8065 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8066
8067 * docs/grub.texi (Filesystems): Mention AFS.
8068
8069 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8070
8071 * docs/grub.texi (Filesystems): Clarify restrictions.
8072 (Regexp): Mention non-Unicode regexp behaviour.
8073 (Other): Mention non-Unicode matching behaviour.
8074
8075 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8076
8077 Make HFS implementation use MacRoman.
8078
8079 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
8080 (macroman): New const array.
8081 (macroman_to_utf8): New function.
8082 (utf8_to_macroman): Likewise.
8083 (grub_hfs_find_dir): Use utf8_to_macroman.
8084 (grub_hfs_dir): Use macroman_to_utf8.
8085 Set case_insensitive.
8086
8087 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8088
8089 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
8090
8091 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8092
8093 Integrate hints into autogeneration scripts.
8094
8095 * docs/grub.texi (Filesystems): Add a hostdisk example.
8096 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
8097 (grub-probe): Add ofpath.
8098 * gentpl.py: Remove group nosparc64.
8099 * grub-core/commands/search.c (cache_entry): New struct.
8100 (cache): New var.
8101 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
8102 * grub-core/commands/search_wrap.c (options): Add platform-specific
8103 hint options.
8104 (grub_cmd_search): Handle platform-specific hints.
8105 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
8106 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
8107 (grub_util_biosdisk_data): Likewise.
8108 (grub_util_biosdisk_open): Set device_map.
8109 (read_device_map): Handle "" as indication of no map.
8110 Set device_map.
8111 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
8112 (grub_util_biosdisk_get_compatibility_hint): New function.
8113 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
8114 * include/grub/emu/hostdisk.h
8115 (grub_util_biosdisk_get_compatibility_hint): New proto.
8116 * util/grub-install.in: Don't call grub-mkdevicemap.
8117 Add platform-specific hint to load.cfg.
8118 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
8119 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
8120 hints. Set root preliminary to compatibility hint, not to OS name.
8121 * util/grub-probe.c (PRINT_*): Add hints.
8122 (print): Make static.
8123 (escape_of_path): New function.
8124 (guess_bios_drive): Likewise.
8125 (guess_efi_drive): Likewise.
8126 (guess_baremetal_drive): Likewise.
8127 (print_full_name): Likewise.
8128 (probe): Handle hints.
8129 (main): Likewise.
8130 * util/ieee1275/devicemap.c: Removed.
8131 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
8132 updated.
8133 (grub_util_devname_to_ofpath): Return NULL on failure.
8134
8135 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
8136 resource leak.
8137 * util/getroot.c (grub_util_pull_device): Fix memory leak.
8138
8139 * po/POTFILES.in: Regenerated.
8140
8141 Allow purely long options
8142
8143 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
8144 (SHORT_ARG_USAGE): Likewise.
8145 (grub_arg_show_help): Compare opt with help_options.
8146 (parse_option): Receive opt as argument. If makes big simplificatons.
8147 All users updated
8148
8149 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8150
8151 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
8152 Restructure to avoid warning.
8153
8154 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8155
8156 * util/grub-install.in: Account for possible escaped comma in device
8157 name.
8158
8159 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8160
8161 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
8162 channel.
8163
8164 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8165
8166 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
8167 allocation and zero-setting.
8168 (grub_ieee1275_get_devname): Check that alias is complete.
8169
8170 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8171
8172 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
8173 unaligned segments.
8174
8175 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8176
8177 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
8178 prefix.
8179 (grub_ofdisk_open): Check and discard ieee1275 prefix.
8180 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8181 Add ieee1275 prefix.
8182
8183 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8184
8185 * docs/grub.texi (Filesystems): Update.
8186
8187 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8188
8189 Support odc, newc and bigendian cpio formats.
8190
8191 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
8192 * grub-core/Makefile.core.def (newc): New module.
8193 (odc): Likewise.
8194 (cpio_be): Likewise.
8195 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
8196 (MAGIC): Likewise.
8197 (MAGIC2): Likewise.
8198 (head) [MODE_ODC]: Adapt for the format.
8199 (head) [MODE_NEWC]: Likewise.
8200 (head) [!MODE_*]: Write fields of interest as arrays.
8201 (MAGIC_USTAR): Removed.
8202 (read_number) [MODE_NEWC]: Change to hex.
8203 (read_number) [!MODE_*]: Parse binary arrays.
8204 (grub_cpio_find_file): Factor out the code for better structure and
8205 always use read_number.
8206 (grub_cpio_mount): Use MAGIC and MAGIC2.
8207 (grub_cpio_dir): Exit on first hook non-0 return.
8208 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
8209 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
8210 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
8211 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
8212 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
8213 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
8214 * grub-core/fs/newc.c: New file.
8215 * grub-core/fs/odc.c: Likewise.
8216 * grub-core/fs/cpio_be.c: Likewise.
8217
8218 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8219
8220 Fix handling of tar numbers occupying the whole field.
8221
8222 * grub-core/fs/cpio.c (read_number): New function.
8223 (grub_cpio_find_file): Use read_number instead of strtoull.
8224
8225 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8226
8227 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
8228 occupying the whole field size.
8229
8230 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
8231
8232 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
8233
8234 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8235
8236 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
8237
8238 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
8239
8240 * grub-core/Makefile.core.def (lzma_decompress): Add missing
8241 TARGET_IMG_LDFLAGS.
8242
8243 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8244
8245 * util/getroot.c (ESCAPED_PATH_MAX): New define.
8246 (mountinfo_entry): Increase the field size to take escaping into
8247 account.
8248 (find_root_device_from_libzfs): Add one byte to size of strings for
8249 security.
8250
8251 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8252
8253 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
8254 an assert.
8255 * util/grub-setup.c (setup): Likewise.
8256
8257 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8258
8259 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
8260 _LzmaDecodeA.
8261
8262 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8263
8264 * docs/grub.texi (Internationalisation): New section.
8265
8266 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8267
8268 * docs/grub.texi (Loopback booting): New section.
8269
8270 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
8271
8272 * util/grub-mkstandalone.in: Fix minor typo errors.
8273
8274 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
8275
8276 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
8277
8278 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
8279 net/icmp.c and net/icmp6.c.
8280 (http): New module.
8281 (priority_queue): Likewise.
8282 * grub-core/io/bufio.c: Rewritten.
8283 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
8284 TYPE_WITH_CONFIGFILE_OPTION.
8285 (legacy_commands): Add bootp and dhcp.
8286 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
8287 (grub_legacy_parse): Likewise.
8288 * grub-core/lib/priority_queue.c: New file.
8289 * grub-core/net/arp.c: Add missing license header.
8290 (arp_find_entry): Removed.
8291 (arp_find_entry): Likewise.
8292 (grub_net_arp_resolve): Rename to ...
8293 (grub_net_arp_send_request): ...this.
8294 (grub_net_arp_receive): New card argument.
8295 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
8296 Set router and DNS server.
8297 (grub_net_configure_by_dhcp_ack): Handle routing information.
8298 (grub_cmd_bootp): Set checksum.
8299 (grub_bootp_init): Remove net_dhcp.
8300 * grub-core/net/dns.c: New file.
8301 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
8302 completion.
8303 (get_card_packet): Handle allocation.
8304 (grub_efinet_findcards): Set mtu.
8305 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
8306 (get_card_packet): Handle allocation.
8307 (emucard): Set mtu.
8308 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
8309 (GRUB_MOD_INIT): Set mtu.
8310 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
8311 mtu.
8312 (get_card_packet): Handle allocation.
8313 (grub_ofnet_findcards): Set mtu.
8314 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
8315 assert.
8316 (grub_net_recv_ethernet_packet): Handle IPv6.
8317 * grub-core/net/http.c: New file.
8318 * grub-core/net/icmp.c: Likewise.
8319 * grub-core/net/icmp6.c: Likewise.
8320 * grub-core/net/ip.c (ip6addr): New type.
8321 (ip6hdr): Likewise.
8322 (reassemble): Likewise.
8323 (cmp): New function.
8324 (reassembles): New variable.
8325 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
8326 (id): New variable.
8327 (send_fragmented): New function.
8328 (grub_net_send_ip_packet): Rename to ...
8329 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
8330 Handle non-UDP.
8331 (grub_net_recv_ip_packets): Rename to ...
8332 (handle_dgram): ... this. Check checksum. Handle non-UDP.
8333 (free_rsm): New function.
8334 (free_old_fragments): Likewise.
8335 (grub_net_recv_ip4_packets): New function.
8336 (grub_net_send_ip6_packet): Likewise.
8337 (grub_net_send_ip_packet): Likewise.
8338 (grub_net_recv_ip6_packets): Likewise.
8339 (grub_net_recv_ip_packets): Likewise.
8340 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
8341 (LINK_LAYER_CACHE_SIZE): New const.
8342 (link_layer_find_entry): New function.
8343 (grub_net_link_layer_add_address): Likewise.
8344 (grub_net_link_layer_resolve_check): Likewise.
8345 (grub_net_link_layer_resolve): Likewise.
8346 (grub_net_ipv6_get_slaac): Likewise.
8347 (grub_net_ipv6_get_link_local): Likewise.
8348 (grub_cmd_ipv6_autoconf): Likewise.
8349 (parse_ip): Handle one number representation.
8350 (parse_ip6): New functoion.
8351 (match_net): Handle IPv6.
8352 (grub_net_resolve_address): Handle IPv6 and DNS.
8353 (grub_net_resolve_net_address): Handle IPv6.
8354 (route_cmp): New function.
8355 (grub_net_route_address): Find best route.
8356 (grub_net_addr_to_str): Handle IPv6.
8357 (grub_net_addr_cmp): New function.
8358 (grub_net_add_addr): Register local route.
8359 (print_net_address): Handle net address.
8360 (grub_net_poll_cards): Retransmit TCP.
8361 (grub_net_poll_cards_idle_real): Likewise.
8362 (have_ahead): New function.
8363 (grub_net_seek_real): Use underlying seek.
8364 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
8365 * grub-core/net/tcp.c: New file.
8366 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
8367 (cmp): New function.
8368 (ack): Likewise.
8369 (tftp_receive): Handle unordered input.
8370 (destroy_pq): New function.
8371 (tftp_close): Close pq.
8372 * grub-core/net/udp.c: Put missing license header.
8373 (grub_net_udp_socket): New function.
8374 (udp_socket_register): Likewise.
8375 (grub_net_udp_close): Likewise.
8376 (grub_net_recv_udp_packet): Check checksum.
8377 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
8378 * include/grub/misc.h (grub_memchr): New function.
8379 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
8380 (grub_net_card_driver): Return buf in recv.
8381 (grub_net_slaac_mac_list): New struct.
8382 (grub_network_level_protocol_id): Add ipv6.
8383 (grub_net_network_level_addr): Likewise.
8384 (grub_net_network_level_net_addr): Likewise.
8385 (grub_net_app_protocol): Add seek.
8386 (grub_net_socket): Removed.
8387 (grub_net_sockets): Likewise.
8388 (grub_net_socket_register): Likewise.
8389 (grub_net_socket_unregister): Likewise.
8390 (FOR_NET_SOCKETS): Likewise.
8391 (grub_net_add_addr): Add const.
8392 (GRUB_NET_BOOTP_*): New enum.
8393 (grub_net_addr_cmp): New proto.
8394 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
8395 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
8396 (grub_net_hwaddr_to_str): NEw proto.
8397 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
8398 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
8399 (grub_dns_init): New proto.
8400 (grub_dns_fini): Likewise.
8401 (grub_net_tcp_retransmit): Likewise.
8402 (grub_net_link_layer_add_address): Likewise.
8403 (grub_net_link_layer_resolve_check): Likewise.
8404 (grub_net_link_layer_resolve): Likewise.
8405 (grub_net_dns_lookup): Likewise.
8406 (grub_net_add_dns_server): Likewise.
8407 (grub_net_remove_dns_server): Likewise.
8408 (GRUB_NET_TRIES): New const.
8409 (GRUB_NET_INTERVAL): Likewise.
8410 * include/grub/net/arp.h: Mostly rewritten.
8411 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
8412 * include/grub/net/ip.h: Mostly rewritten.
8413 * include/grub/net/netbuff.h: Indent.
8414 * include/grub/net/tcp.h: New file.
8415 * include/grub/net/udp.h: Mostly rewritten.
8416 * include/grub/priority_queue.h: New file.
8417 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
8418 (grub_swap_bytes64_compile_time): Likewise.
8419 (grub_cpu_to_be16_compile_time): Likewise.
8420 (grub_cpu_to_be32_compile_time): Likewise.
8421 (grub_cpu_to_be64_compile_time): Likewise.
8422 (grub_be_to_cpu64_compile_time): Likewise.
8423
8424 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
8425
8426 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
8427 UINT_TO_PTR with cast.
8428
8429 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8430
8431 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
8432 don't use them.
8433
8434 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8435
8436 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
8437 already there.
8438
8439 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8440
8441 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
8442 confusing ipxe.
8443
8444 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8445
8446 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
8447 Add missing const attribute.
8448 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
8449 Likewise.
8450 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
8451 Likewise.
8452
8453 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8454
8455 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
8456 misaligned access.
8457 (serpent_setkey): Likewise.
8458 (serpent_encrypt_internal): Likewise.
8459 (serpent_decrypt_internal): Likewise.
8460 (serpent_encrypt): Don't put an alignment-increasing cast.
8461 (serpent_decrypt): Likewise.
8462 (serpent_test): Likewise.
8463
8464 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8465
8466 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
8467
8468 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8469
8470 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
8471
8472 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
8473 grub_addr_t casts.
8474 (PTR_TO_UINT64): Likewise.
8475 (PTR_TO_UINT32): Likewise.
8476
8477 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8478
8479 * util/grub-mkimage.c (generate_image): Decrease the higher limit
8480 because of stack.
8481 * util/grub-setup.c (setup): Don't add redundancy past the higher load
8482 limit.
8483
8484 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8485
8486 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
8487 text_width > available width a bit more gracefully.
8488
8489 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8490
8491 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
8492 current address calculation.
8493
8494 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8495
8496 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
8497 stack.
8498 (encode_block): Likewise.
8499
8500 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8501
8502 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
8503 certainety.
8504
8505 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8506
8507 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
8508 non-RS part to avoid RS messing with GDT.
8509 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
8510 Increase to suit in realmode routines.
8511
8512 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8513
8514 * grub-core/kern/i386/realmode.S: Increase alignment.
8515 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
8516
8517 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8518
8519 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
8520 be deterministic.
8521 (syndroms): Compute 0 syndrom.
8522 (rs_recover): Use 0 syndrom.
8523
8524 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8525
8526 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
8527
8528 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8529
8530 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
8531 brackets.
8532
8533 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8534
8535 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
8536 account.
8537 (get_top_pad): Likewise.
8538 (get_right_pad): Likewise.
8539 (get_bottom_pad): Likewise.
8540
8541 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8542
8543 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
8544
8545 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8546
8547 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
8548 attribute as the structure isn't guaranteed to be properly aligned.
8549 (grub_efi_pci_device_path): Likewise.
8550 (grub_efi_pccard_device_path): Likewise.
8551 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
8552 specify the size of `memory_type'.
8553 (grub_efi_vendor_device_path): Likewise.
8554 (grub_efi_controller_device_path): Likewise.
8555 (grub_efi_acpi_device_path): Likewise.
8556 (grub_efi_expanded_acpi_device_path): Likewise.
8557 (grub_efi_atapi_device_path): Likewise.
8558 (grub_efi_scsi_device_path): Likewise.
8559 (grub_efi_fibre_channel_device_path): Likewise.
8560 (grub_efi_1394_device_path): Likewise.
8561 (grub_efi_usb_device_path): Likewise.
8562 (grub_efi_usb_class_device_path): Likewise.
8563 (grub_efi_i2o_device_path): Likewise.
8564 (grub_efi_mac_address_device_path): Likewise.
8565 (grub_efi_ipv4_device_path): Likewise.
8566 (grub_efi_ipv6_device_path): Likewise.
8567 (grub_efi_infiniband_device_path): Likewise.
8568 (grub_efi_uart_device_path): Likewise.
8569 (grub_efi_vendor_messaging_device_path): Likewise.
8570 (grub_efi_hard_drive_device_path): Likewise.
8571 (grub_efi_cdrom_device_path): Likewise.
8572 (grub_efi_vendor_media_device_path): Likewise.
8573 (grub_efi_file_path_device_path): Likewise.
8574 (grub_efi_protocol_device_path): Likewise.
8575 (grub_efi_piwg_device_path): Likewise.
8576 (grub_efi_bios_device_path): Likewise.
8577
8578 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8579
8580 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
8581 (grub_ucs4_to_utf8_alloc): Likewise.
8582 (grub_ucs4_to_utf8): Likewise.
8583 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
8584 (grub_ucs4_to_utf8_alloc): Likewise.
8585
8586 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8587
8588 AFFS never uses unicode.
8589
8590 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
8591 (grub_latin1_to_utf8): New inline function.
8592 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
8593
8594 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8595
8596 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
8597 overflow.
8598
8599 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8600
8601 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
8602 (grub_squash_dirent_header): Likewise.
8603 (read_chunk): Don't double swap.
8604 (grub_squash_iterate_dir): Fix swap sizes.
8605
8606 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8607
8608 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
8609
8610 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8611
8612 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
8613 (grub_hfs_iterate_dir): Likewise.
8614
8615 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8616
8617 Fix video on platforms where unaligned access is forbidden.
8618 Make several optimisations while on it.
8619
8620 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
8621 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8622 (grub_video_fbblit_replace_32bit_1bit): Likewise.
8623 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8624 Disable.
8625 (grub_video_fbblit_replace_16bit_1bit):
8626 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8627 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8628 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
8629 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
8630 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8631 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8632 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
8633 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
8634 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
8635 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
8636 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
8637 (grub_video_fbblit_replace_index_RGB888): Likewise.
8638 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
8639 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
8640 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
8641 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
8642 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
8643 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8644 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8645 Disable.
8646 (grub_video_fbblit_blend_XXX565_1bit):
8647 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8648 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
8649 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
8650 void *.
8651 * grub-core/video/fb/video_fb.c (common_blitter)
8652 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
8653 (grub_video_fb_create_render_target_from_pointer)
8654 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8655 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
8656 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
8657 definition.
8658 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
8659
8660 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8661
8662 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
8663 HH22 and HM10 relocations.
8664
8665 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8666
8667 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
8668
8669 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8670
8671 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
8672 allocation succeeded.
8673
8674 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8675
8676 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
8677 argument a u8 pointer. All users updated.
8678 Handle unaligned buffers.
8679
8680 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8681
8682 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
8683 add_part to workaround compiler bug.
8684
8685 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8686
8687 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
8688
8689 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8690
8691 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
8692 Reserve alignment invariants.
8693 (grub_multiboot_load): Likewise.
8694 (retrieve_video_parameters): Likewise.
8695 (grub_multiboot_make_mbi): Likewise.
8696
8697 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8698
8699 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
8700 incorrect pointer.
8701
8702 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8703
8704 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
8705 (grub_pata_pio_write): Likewise.
8706
8707 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8708
8709 Add noreturn attributes and remove unreachable code.
8710
8711 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
8712 code.
8713 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
8714 code. Mark as noreturn.
8715 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
8716 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
8717 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
8718 unreachable code.
8719 * grub-core/kern/main.c (grub_main): Mark as noreturn.
8720 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
8721 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
8722 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
8723 * include/grub/kernel.h (grub_main): Mark as noreturn.
8724 * include/grub/reader.h (grub_rescue_run): Likewise.
8725
8726 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8727
8728 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
8729 redundant declaration.
8730
8731 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8732
8733 * include/grub/net.h (grub_net_network_level_interfaces): Remove
8734 redundant declaration.
8735 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
8736
8737 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8738
8739 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
8740 to ensure alignment.
8741 (grub_hdparm_print_identify): Make argument uint16 * to ensure
8742 alignment. Ensure tmp alignment.
8743 (grub_cmd_hdparm): Ensure buf alignment.
8744 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
8745 to ensure alignment.
8746 (grub_ata_dumpinfo): Ensure text alignment.
8747 (grub_atapi_identify): Preserve alignment invariant.
8748 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
8749
8750 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8751
8752 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
8753 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
8754 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
8755 * include/grub/misc.h (grub_reboot)
8756 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
8757 (grub_halt) [__mips__]: Likewise.
8758
8759 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8760
8761 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
8762 Remove redundant declaration.
8763 (grub_mmap_get_post64): Likewise.
8764 (grub_mmap_get_upper): Likewise.
8765 (grub_mmap_get_lower): Likewise.
8766
8767 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8768
8769 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
8770 uint32_t * to ensure alignment.
8771 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
8772
8773 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8774
8775 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
8776 uint16_t * to ensure alignment.
8777 (sun_pc_partition_map_iterate): Make `block' a union to ensure
8778 alignment.
8779
8780 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8781
8782 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
8783 to ensure alignment.
8784 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
8785
8786 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8787
8788 * grub-core/fs/ntfs.c (u16at): Make into inline function.
8789 Handle unaligned pointers.
8790 (u32at): Likewise.
8791 (u64at): Likewise.
8792 (fixup): Use byte access instead of v16at.
8793 (find_attr): Fix imporper usage of v32at.
8794 (read_data): Likewise.
8795 (list_file): Handle byte-swapping and unaligned strings.
8796 (grub_ntfs_label): Likewise.
8797
8798 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8799
8800 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
8801 as it's not necessarily aligned.
8802
8803 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8804
8805 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
8806 redundant declaration.
8807 (grub_serial_init): Likewise.
8808 (grub_terminfo_init): Likewise.
8809
8810 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8811
8812 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
8813 function.
8814 (ZAP_HASH_IDX): Likewise.
8815 (ZAP_LEAF_HASH_SHIFT): Likewise.
8816 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
8817 (LEAF_HASH): Likewise.
8818 (ZAP_LEAF_NUMCHUNKS): Likewise.
8819 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
8820 alignment invariants. Return pointer. All users updated.
8821 (ZAP_LEAF_ENTRY): Make into inline function.
8822 (NBBY): Removed.
8823 (xor): LIkewise.
8824 (xor_out): Use grub_crypto_xor.
8825 (dnode_get_path): Use grub_get_unaligned.
8826 (nvlist_find_value): Likewise.
8827 (grub_zfs_nvlist_lookup_uint64): Likewise.
8828 (grub_zfs_nvlist_lookup_string): Likewise.
8829 (get_nvlist_size): Likewise.
8830 (grub_zfs_open): Likewise.
8831 (fill_fs_info): Likewise.
8832 (grub_zfs_dir): Likewise.
8833 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
8834 alignment invariants.
8835 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
8836 necessarily aligned.
8837
8838 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8839
8840 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
8841
8842 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8843
8844 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
8845 arithmetic to conserve alignment invariants.
8846
8847 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8848
8849 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
8850 redundant declaration.
8851 (grub_efiemu_mm_obtain_request): Likewise.
8852 (grub_efiemu_prepare): Likewise.
8853
8854 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8855
8856 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
8857 to match types.
8858
8859 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8860
8861 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
8862 case of aunaligned recptr.
8863 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
8864 alignment.
8865 (grub_hfsplus_btree_search): Handle unaligned index.
8866
8867 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8868
8869 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
8870 to get freetag and skip.
8871
8872 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8873
8874 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
8875 array.
8876 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
8877 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
8878
8879 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8880
8881 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
8882 name for checksum and fix allocation algorithm.
8883
8884 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8885
8886 * include/grub/types.h (grub_properly_aligned_t): New type.
8887 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
8888 (grub_get_unaligned16): Add explicit casts.
8889 (grub_get_unaligned32): Likewise.
8890 (grub_get_unaligned64): Likewise.
8891 (grub_set_unaligned16): New function.
8892 (grub_set_unaligned32): Likewise.
8893
8894 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8895
8896 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8897
8898 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8899
8900 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
8901 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
8902 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
8903
8904 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8905
8906 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
8907 conditionals.
8908
8909 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8910
8911 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
8912 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
8913
8914 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8915
8916 Unify and improve RAID and crypto xor.
8917
8918 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
8919 changed to grub_crypto_xor
8920 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
8921 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
8922 Use bigger types when possible.
8923
8924 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8925
8926 * grub-core/disk/raid.c (scan_devices): Fix condition.
8927
8928 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8929
8930 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
8931 Make name a const ptr.
8932
8933 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8934
8935 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
8936 first argument a const pointer.
8937 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
8938 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
8939 proto.
8940 (grub_children_iterate): Likewise.
8941 (grub_machine_mmap_iterate): Remove redundant declaration.
8942
8943 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8944
8945 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
8946 (grub_cmd_acpi) [!x86]: Disable EBDA.
8947
8948 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8949
8950 Enable UTF8 in gnulib regexp.
8951
8952 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
8953 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
8954 (isupper): Use grub_isupper.
8955 (isascii): New inline function.
8956 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
8957 * grub-core/lib/posix_wrap/wctype.h: Likewise.
8958 * grub-core/normal/charset.c (grub_utf8_process): New function.
8959 (grub_utf8_to_utf16): Use grub_utf8_process.
8960 (grub_encode_utf8_character): New function.
8961 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
8962 * include/grub/charset.h (grub_utf8_process): New declaration.
8963 (grub_encode_utf8_character): Likewise.
8964 * include/grub/misc.h (grub_islower): New inline function.
8965 (grub_isupper): Likewise.
8966 (grub_strchrsub): Moved down to fix the definitions.
8967
8968 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8969
8970 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
8971 specification.
8972
8973 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8974
8975 * include/grub/loader.h (grub_loader_register_preboot_hook):
8976 Use struct preboot * and not void * for handle. All users updated.
8977 (grub_loader_unregister_preboot_hook): Likewise.
8978
8979 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8980
8981 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
8982 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
8983 UTF-16-BE. All users updated.
8984 (grub_hfsplus_cmp_catkey): Fix unicode handling.
8985 (grub_hfsplus_iterate_dir): Likewise.
8986 (grub_hfsplus_label): Likewise.
8987
8988 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8989
8990 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
8991
8992 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
8993
8994 Add missing const qualifiers.
8995
8996 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
8997 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
8998 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
8999 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
9000 (grub_lvm_check_flag): Likewise.
9001 * grub-core/efiemu/i386/coredetect.c
9002 (grub_efiemu_get_default_core_name): Likewise
9003 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
9004 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
9005 * grub-core/fs/ntfs.c (fixup): Likewise.
9006 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
9007 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
9008 (fzap_lookup): Likewise.
9009 (zap_lookup): Likewise.
9010 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
9011 * grub-core/lib/legacy_parse.c (check_option): Likewise.
9012 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
9013 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
9014 (grub_freebsd_add_meta_module): Likewise.
9015 (grub_cmd_freebsd_module): Likewise.
9016 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
9017 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
9018 (grub_xnu_writetree_get_size): Likewise.
9019 (grub_xnu_writetree_toheap_real): Likewise.
9020 (grub_xnu_find_key): Likewise.
9021 (grub_xnu_create_key): Likewise.
9022 (grub_xnu_create_value): Likewise.
9023 (grub_xnu_register_memory): Likewise.
9024 (grub_xnu_check_os_bundle_required): Likewise.
9025 (grub_xnu_scan_dir_for_kexts): Likewise.
9026 (grub_xnu_load_kext_from_dir): Likewise.
9027 * grub-core/normal/color.c (color_list): Likewise.
9028 * grub-core/normal/completion.c (current_word): Likewise.
9029 * grub-core/normal/menu_entry.c (insert_string): Likewise.
9030 * grub-core/term/serial.c (grub_serial_find): Likewise.
9031 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
9032 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
9033 Likewise.
9034 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
9035 (grub_freebsd_add_meta_module): Likewise.
9036 * include/grub/lib/arg.h (grub_arg_option): Likewise.
9037 * include/grub/net.h (grub_net_card_driver): Likewise.
9038 (grub_net_card): Likewise.
9039 (grub_net_app_protocol): Likewise.
9040 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
9041 * include/grub/serial.h (grub_serial_find): Likewise.
9042 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
9043 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
9044 (grub_xnu_create_value): Likewise.
9045 (grub_xnu_find_key): Likewise.
9046 (grub_xnu_scan_dir_for_kexts): Likewise.
9047 (grub_xnu_load_kext_from_dir): Likewise.
9048
9049 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
9050 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
9051 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
9052 Moved from here ...
9053 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
9054
9055 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
9056
9057 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
9058
9059 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
9060
9061 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
9062 (read_device): Fix size calculation.
9063
9064 2011-11-25 Robert Millan <rmh@gnu.org>
9065
9066 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
9067 (find_root_device_from_libzfs): Add zpool output parser to be used
9068 as fallback when libzfs isn't available.
9069
9070 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
9071
9072 * po/Makefile.in.in: Add missing escape-continuation.
9073
9074 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
9075
9076 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
9077
9078 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9079
9080 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
9081
9082 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9083
9084 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
9085
9086 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9087
9088 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
9089
9090 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9091
9092 * grub-core/lib/adler32.c: Add missing license specification.
9093 * grub-core/lib/crc64.c: Likewise.
9094 * grub-core/loader/i386/pc/plan9.c: Likewise.
9095 * grub-core/partmap/plan.c: Likewise.
9096
9097 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
9098
9099 Add facility to debug GRUB with gdb under qemu.
9100
9101 * grub-core/gdb_grub.in: New file.
9102 * grub-core/gmodule.pl.in: Likewise.
9103 * grub-core/Makefile.core.def (gmodule.pl): New script.
9104 (gdb_grub): Likewise.
9105
9106 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9107
9108 * util/grub-mount.c (argp_parser): Accept relative pathes.
9109 * util/grub-fstest.c (argp_parser): Likewise.
9110
9111 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9112
9113 Plan9 support.
9114
9115 * Makefile.util.def (libgrubmods): Add
9116 grub-core/partmap/plan.c.
9117 * docs/grub.texi: Notice Plan9 support.
9118 * grub-core/Makefile.core.def (plan9): New module.
9119 (part_plan): Likewise.
9120 * grub-core/loader/i386/pc/plan9.c: New file.
9121 * grub-core/partmap/plan.c: Likewise.
9122 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
9123 define.
9124 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
9125 * include/grub/mm.h (grub_extend_alloc): New inline function.
9126
9127 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9128
9129 Make Reed-Solomon faster by using power of generator representation of
9130 GF(256)*.
9131
9132 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
9133 (gf_double_t): Likewise.
9134 (gf_invert): Removed.
9135 (gf_powx): New array.
9136 (gf_powx_inv): Likewise.
9137 (scratch): Move higher.
9138 (gf_reduce): Removed.
9139 (gf_mul): Use powx.
9140 (gf_invert): Likewise.
9141 (init_inverts): Replaced with ...
9142 (init_powx): ...this. All users updated.
9143 (pol_evaluate): Replace multiplications with additions.
9144 (rs_encode): Likewise.
9145 (gauss_eliminate): Call gf_invert.
9146 (grub_reed_solomon_add_redundancy): Call init_powx.
9147 (grub_reed_solomon_recover): Call init_powx unconditionally.
9148
9149 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9150
9151 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
9152
9153 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9154
9155 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
9156 disk->partiton for safety.
9157
9158 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9159
9160 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
9161 Fix a memory leak.
9162 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
9163
9164 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9165
9166 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
9167
9168 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9169
9170 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
9171
9172 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9173
9174 Fix spaces handling in proc/self/mountinfo.
9175
9176 * util/getroot.c (unescape): New function.
9177 (grub_find_root_device_from_mountinfo): Use unescape.
9178
9179 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9180
9181 Support ZFS embedding.
9182
9183 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
9184 (grub_zfs_fs): Register grub_zfs_embed.
9185
9186 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9187
9188 Fix MIPS compilation.
9189
9190 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
9191 * include/grub/offsets.h: Rename decompressor fields from
9192 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
9193 * util/grub-mkimage.c (image_targets): Use new names.
9194
9195 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9196
9197 Defer multiboot device parsing until we're in compressed part.
9198
9199 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
9200 bsd_part. setdevice has fallen into disuse.
9201 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
9202 (bsd_part): Likewise.
9203 (boot_dev): New variable.
9204 (multiboot_trampoline): Don't parse multiboot device.
9205 Pass multiboot device in %edx.
9206 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
9207 grub_boot_device.
9208 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
9209 Likewise.
9210 * grub-core/kern/i386/pc/startup.S: Save edx.
9211 (grub_boot_drive): Removed.
9212 (grub_install_dos_part): Likewise.
9213 (grub_install_bsd_part): Likewise.
9214 (grub_boot_device): New variable.
9215 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
9216 (grub_install_bsd_part): Likewise.
9217 (grub_boot_drive): Likewise.
9218 (grub_boot_device): New variable.
9219 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
9220 Removed.
9221 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
9222 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
9223 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
9224 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
9225 * util/grub-install.in: Remove redundant condition.
9226
9227 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9228
9229 Fix bug introduced by previous commit.
9230
9231 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
9232
9233 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9234
9235 Use decompressors framework on i386-pc. It increases core size
9236 by 46 bytes but improves compatibility and maintainability.
9237
9238 * grub-core/Makefile.core.def (lzma_decompress): New image.
9239 (kernel): Add i386_pc_ldflags.
9240 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
9241 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
9242 to real_to_prot, prot_to_real and device info.
9243 * include/grub/offsets.h: Renamed decompressor offsets.
9244 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
9245 (image_target_desc): Remove raw_size and rename decompressor fields.
9246 (compress_kernel): Handle lzma.
9247 (generate_image): Handle decompressors on i386-pc.
9248
9249 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9250
9251 * configure.ac: Add -fno-asynchronous-unwind-tables.
9252
9253 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9254
9255 Move assembly code to C by using intwrap. It increases core size
9256 by 88 bytes but improves compatibility and maintainability.
9257
9258 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
9259 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
9260 ... here. Translated to C.
9261 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
9262 * grub-core/term/i386/pc/console.c (grub_console_getkey):
9263 ... here. Translated to C.
9264 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
9265 * grub-core/term/i386/pc/console.c (grub_console_getxy):
9266 ... here. Translated to C.
9267 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
9268 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
9269 ... here. Translated to C.
9270 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
9271 * grub-core/term/i386/pc/console.c (grub_console_cls):
9272 ... here. Translated to C.
9273 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
9274 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
9275 ... here. Translated to C.
9276 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
9277 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
9278 Translated to C.
9279 * grub-core/term/i386/pc/console.c (int10_9): New function.
9280 (grub_console_putchar): Likewise.
9281 * include/grub/i386/pc/console.h: Removed the not anymore shared
9282 functions.
9283
9284 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9285
9286 Move grub_chainloader_real_boot out of the kernel.
9287
9288 * grub-core/Makefile.am: Remove machine/loader.h.
9289 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
9290 Removed.
9291 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
9292 variable.
9293 (grub_relocator16_keep_a20_enabled): Likewise.
9294 (grub_relocator16_boot): Fill new variables.
9295 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
9296 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
9297 relocator.
9298 (grub_chainloader_unload): Likewise.
9299 (grub_chainloader_cmd): Likewise.
9300 * include/grub/i386/pc/loader.h: Removed.
9301 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
9302 and esi. All initialisers updated.
9303
9304 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9305 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
9306
9307 * Makefile.util.def (grub-mount): New util.
9308 * .bzrignore: Add grub-mount.
9309 * configure.ac: Check for fuse and enable grub-mount if available.
9310 * docs/man/grub-mount.h2m: New file.
9311 * util/grub-mount.c: Likewise.
9312
9313 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9314
9315 * grub-core/commands/efi/fixvideo.c: Gettextize.
9316 * grub-core/commands/hashsum.c: Likewise.
9317 * grub-core/commands/i386/cmostest.c: Likewise.
9318 * grub-core/commands/i386/pc/drivemap.c: Likewise.
9319 * grub-core/commands/i386/pc/lsapm.c: Likewise.
9320 * grub-core/commands/i386/pc/sendkey.c: Likewise.
9321 * grub-core/commands/lsmmap.c: Likewise.
9322 * grub-core/commands/menuentry.c: Likewise.
9323 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
9324 * grub-core/commands/setpci.c: Likewise.
9325 * grub-core/loader/i386/bsd.c: Likewise.
9326 * grub-core/loader/i386/linux.c: Likewise.
9327 * util/getroot.c: Likewise.
9328 * util/grub-editenv.c: Likewise.
9329 * util/grub-fstest.c: Likewise.
9330 * util/grub-mkfont.c: Likewise.
9331 * util/grub-mkimage.c: Likewise.
9332 * util/grub-mkpasswd-pbkdf2.c: Likewise.
9333 * util/grub-pe2elf.c: Likewise.
9334 * util/grub-probe.c: Likewise.
9335 * util/grub-setup.c: Likewise.
9336 * util/ieee1275/ofpath.c: Likewise.
9337 * util/misc.c: Likewise.
9338 * util/raid.c: Likewise.
9339
9340 2011-11-11 Robert Millan <rmh@gnu.org>
9341
9342 * util/getroot.c (grub_util_get_geom_abstraction): Remove
9343 __attribute__((unused)) from `os_dev', which *is* being used.
9344
9345 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9346
9347 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
9348 forgotten define.
9349 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
9350 GRUB_IA64_DL_GOT_ALIGN.
9351 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
9352 GRUB_IA64_DL_TRAMP_ALIGN.
9353
9354 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9355
9356 Replace grub_fatal with normal errors in i386 linux loader.
9357
9358 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
9359 (allocate_pages): Check find_efi_mmap_size return value.
9360 (grub_e820_add_region): Return error.
9361 (grub_linux_boot): Check mmap return value.
9362
9363 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9364
9365 * grub-core/commands/acpihalt.c: Gettextized.
9366 * grub-core/commands/cacheinfo.c: Likewise.
9367 * grub-core/commands/cmp.c: Likewise.
9368 * grub-core/commands/efi/loadbios.c: Likewise.
9369 * grub-core/commands/gptsync.c: Likewise.
9370 * grub-core/commands/ieee1275/suspend.c: Likewise.
9371 * grub-core/commands/legacycfg.c: Likewise.
9372 * grub-core/commands/memrw.c: Likewise.
9373 * grub-core/commands/minicmd.c: Likewise.
9374 * grub-core/commands/parttool.c: Likewise.
9375 * grub-core/commands/time.c: Likewise.
9376 * grub-core/commands/videoinfo.c: Likewise.
9377 * grub-core/disk/geli.c: Likewise.
9378 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
9379 * grub-core/disk/luks.c: Likewise.
9380 * grub-core/disk/lvm.c: Likewise.
9381 * grub-core/font/font_cmd.c: Likewise.
9382 * grub-core/fs/zfs/zfscrypt.c: Likewise.
9383 * grub-core/fs/zfs/zfsinfo.c: Likewise.
9384 * grub-core/gfxmenu/view.c: Likewise.
9385 * grub-core/kern/emu/hostdisk.c: Likewise.
9386 * grub-core/kern/emu/main.c: Likewise.
9387 * grub-core/kern/emu/misc.c: Likewise.
9388 * grub-core/kern/emu/mm.c: Likewise.
9389 * grub-core/kern/mips/arc/init.c: Likewise.
9390 * grub-core/kern/mips/loongson/init.c: Likewise.
9391 * grub-core/kern/partition.c: Likewise.
9392 * grub-core/lib/i386/halt.c: Likewise.
9393 * grub-core/lib/mips/arc/reboot.c: Likewise.
9394 * grub-core/lib/mips/loongson/reboot.c: Likewise.
9395 * grub-core/loader/i386/pc/chainloader.c: Likewise.
9396 * grub-core/loader/i386/xnu.c: Likewise.
9397 * grub-core/loader/multiboot.c: Likewise.
9398 * grub-core/net/bootp.c: Likewise.
9399 * grub-core/net/net.c: Likewise.
9400 * grub-core/normal/term.c: Likewise.
9401 * grub-core/partmap/bsdlabel.c: Likewise.
9402 * grub-core/parttool/msdospart.c: Likewise.
9403 * grub-core/term/gfxterm.c: Likewise.
9404 * grub-core/term/terminfo.c: Likewise.
9405 * grub-core/video/i386/pc/vbe.c: Likewise.
9406 * util/grub-menulst2cfg.c: Likewise.
9407 * util/grub-mkdevicemap.c: Likewise.
9408 * util/grub-mklayout.c: Likewise.
9409 * util/grub-mkrelpath.c: Likewise.
9410 * util/grub-script-check.c: Likewise.
9411 * util/ieee1275/grub-ofpathname.c: Likewise.
9412 * util/resolve.c: Likewise.
9413
9414 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9415
9416 Support %1$d syntax.
9417
9418 * tests/printf_unit_test.c: New file.
9419 * Makefile.util.def (printf_test): New test.
9420 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
9421
9422 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9423
9424 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
9425 fix.
9426
9427 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9428
9429 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
9430 dprintf.
9431 * grub-core/font/font.c (grub_font_load): Likewise.
9432
9433 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9434
9435 * util/grub-macho2img.c: Add comment concerning gettext.
9436 * grub-core/lib/legacy_parse.c: Likewise.
9437
9438 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9439
9440 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
9441 (grub_xvasprintf): Likewise.
9442
9443 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9444
9445 Add const keyword to grub_env_get and gettextize week days.
9446
9447 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
9448 (grub_read_hook_datetime): Return const char *.
9449 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
9450 updated.
9451 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
9452 Mark for gettext.
9453 (grub_get_weekday_name): Return const char *. Call gettext.
9454 * grub-core/script/argv.c (grub_script_argv_append): Receive const
9455 char * and len as the argument. All users updated.
9456 (grub_script_argv_split_append): Receive const char *.
9457 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
9458 * include/grub/env.h (grub_env_get): Likewise.
9459 (grub_env_read_hook_t): Return const char *.
9460 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
9461 (grub_script_argv_split_append): Likewise.
9462
9463 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9464
9465 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
9466
9467 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9468
9469 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
9470 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
9471
9472 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9473
9474 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
9475 Fix prototype.
9476
9477 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9478
9479 Fix mips compilation.
9480
9481 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
9482 normal decoder.
9483 (hashes): Use in embed decoder as well (for sizes).
9484 (dec_stream_header): Fix embed decompressor logic.
9485 (dec_stream_footer): Likewise.
9486
9487 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9488
9489 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
9490 an error and not a fatal on unrecognised relocation types.
9491
9492 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9493
9494 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
9495 Issue error rather than printf on unknown arguments.
9496
9497 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9498
9499 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
9500 Make buf a const.
9501
9502 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9503
9504 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
9505 Fix module name.
9506
9507 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9508
9509 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
9510 leftover debug printf.
9511
9512 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9513
9514 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
9515
9516 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9517
9518 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
9519 A stylistic fix.
9520
9521 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9522
9523 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
9524
9525 2011-11-10 Shea Levy <slevy@tieronedesign.com>
9526
9527 Allow all modules to perform serial IO
9528
9529 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
9530 * include/grub/serial.h (grub_serial_port_configure): New inline
9531 function.
9532 (grub_serial_port_fetch): Likewise.
9533 (grub_serial_port_put): Likewise.
9534 (grub_serial_port_fini): Likewise.
9535 (grub_serial_find): New proto.
9536
9537 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9538
9539 Put symlink at the end of the node and fix a potential
9540 memory corruption.
9541
9542 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
9543 Make symlink into an array.
9544 (set_rockridge): Set have_symlink and alloc_dirents.
9545 (grub_iso9660_read_symlink): Use new layout.
9546 (grub_iso9660_iterate_dir): Fix memory corruption.
9547 Use new layout.
9548 (grub_iso9660_dir): Set have_symlink.
9549 (grub_iso9660_open): Likewise.
9550
9551 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9552
9553 Remove local keyword.
9554
9555 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
9556 (version_test_gt): Likewise.
9557 (version_find_latest): Likewise.
9558 (gettext_printf): Likewise.
9559 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
9560
9561 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9562
9563 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
9564
9565 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9566
9567 Fix ZFS memory and resource leaks.
9568
9569 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
9570 All users updated.
9571 Free type on exit.
9572 (fill_vdev_info): New parameter inserted. All users updated.
9573 (check_pool_label): Likewise.
9574 (scan_disk): Likewise.
9575 (scan_devices): Close non-inserted disks.
9576 (fzap_iterate): Free l.
9577 (unmount_device): Free children descripto memory.
9578
9579 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9580
9581 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
9582 argument (access out of bounds).
9583
9584 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9585
9586 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
9587 >= 6 drives.
9588
9589 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9590
9591 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
9592 Fix declaration.
9593
9594 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9595
9596 Fix several memory leaks.
9597
9598 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
9599 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
9600 (grub_cpio_dir): Likewise.
9601 * grub-core/fs/fat.c (grub_fat_label): Likewise.
9602 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
9603 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
9604 (grub_romfs_label): Likewise.
9605 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
9606 (squash_unmount): New function.
9607 (grub_squash_dir): Fix memory leak.
9608 (grub_squash_open): Likewise.
9609 (grub_squash_read): Likewise.
9610 (grub_squash_mtime): Likewise.
9611 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
9612 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
9613 * util/grub-fstest.c (fstest): Likewise.
9614
9615 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9616
9617 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
9618 avoid accessing beyond the array.
9619
9620 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9621
9622 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
9623
9624 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9625
9626 Several AFFS fixes.
9627
9628 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
9629 (GRUB_AFFS_FLAG_FFS): Removed.
9630 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
9631 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
9632 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
9633 (grub_fshelp_node): Make block 32-bit.
9634 Add block_cache and last_block_cache.
9635 (grub_affs_read_block): Fill and use block cache.
9636 (grub_affs_read_file): Removed.
9637 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
9638 boot block.
9639 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
9640 safety.
9641 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
9642 space.
9643 (grub_affs_close): Free block cache.
9644 (grub_affs_read): Use grub_fshelp_read_file directly.
9645
9646 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9647
9648 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
9649 with no error set.
9650
9651 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9652
9653 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
9654 used variable.
9655 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
9656 Likewise.
9657
9658 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9659
9660 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
9661
9662 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
9663 byteswap when needed.
9664
9665 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9666
9667 Fix FreeBSD compilation.
9668
9669 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
9670 to avoid circular dependency.
9671 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
9672 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
9673 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
9674
9675 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9676
9677 Fix ZFS crypto error types.
9678
9679 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
9680 (grub_gcm_decrypt): Likewise.
9681 (grub_zfs_load_key_real): Fix error code type. Handle possible error
9682 from PBKDF2.
9683
9684 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9685
9686 Illumos support.
9687
9688 * Makefile.util.def (10_illumos): New script.
9689 * configure.ac: Set COND_HOST_ILLUMOS.
9690 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
9691 Support Illumos calls.
9692 (find_partition_start) [__sun__]: Likewise.
9693 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
9694 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
9695 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
9696 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
9697 device.
9698 * util/grub-probe.c (probe) [__sun__]: Do character check.
9699 * util/grub.d/10_illumos.in: New file.
9700
9701 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9702
9703 Support escaped commas in hostdisk.
9704
9705 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
9706 (find_grub_drive): Use unescape_cmp.
9707 (make_device_name): Escape commas.
9708
9709 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9710
9711 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
9712
9713 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9714
9715 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
9716 variable.
9717
9718 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9719
9720 Support trampoline jumps on powerpc.
9721
9722 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
9723 __ia64__ path.
9724 (grub_dl_load_segments): Set mod->sz.
9725 (grub_dl_flush_cache): Flush whole space occupied by module, not just
9726 segments.
9727 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
9728 (jump): Likewise.
9729 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
9730 function.
9731 (trampoline): New struct.
9732 (trampoline_template): New const.
9733 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
9734 * include/grub/dl.h (grub_dl): Add sz element.
9735 [__powerpc__]: Follow __ia64__.
9736 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
9737 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
9738 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
9739 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
9740
9741 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9742
9743 ZFS crypto support.
9744
9745 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
9746 * grub-core/Makefile.core.def (zfscrypt): New module.
9747 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
9748 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
9749 it. All users updated.
9750 (grub_zfs_decrypt): New var.
9751 (grub_zfs_load_key): Likewise.
9752 (zio_checksum_functions): Add SHA256+MAC.
9753 (zio_checksum_verify): Handle incomplete comparison due to MAC.
9754 (zio_read): Handle encrypted blocks.
9755 (zap_verify): Remove incorrect check.
9756 (fzap_iterate): Handle non-standard fzap.
9757 (zap_iterate): Likewise.
9758 (zap_iterate_u64): New function.
9759 (dnode_get_fullpath): Load keys.
9760 * grub-core/fs/zfs/zfscrypt.c: New file.
9761 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
9762 (grub_crypto_ecb_encrypt): Make input const.
9763 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
9764 (grub_crypto_ecb_encrypt): Make input const.
9765 (GRUB_CIPHER_AES): New macro.
9766 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
9767 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
9768 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
9769 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
9770 prefix. All users updated.
9771 (grub_zfs_add_key): New proto.
9772 (grub_zfs_decrypt): Likewise.
9773 (grub_zfs_load_key): Likewise.
9774 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
9775 * util/grub-fstest.c (options): Add -K option.
9776 (argp_parser): Likewise.
9777
9778 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9779
9780 Support zle compression on ZFS.
9781
9782 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
9783 (decomp_table): Add zle.
9784 * include/grub/zfs/zio.h (zio_compress): Add zle.
9785
9786 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9787
9788 Support BtrFS embedding.
9789
9790 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
9791 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
9792 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
9793 * util/grub-setup.c (setup): Use fs embedding if available.
9794 Add additional sanity check.
9795
9796 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9797
9798 * util/grub-install.in: Fix condition for config_opt.
9799
9800 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9801
9802 Support third redundancy strip on raidz3.
9803
9804 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
9805 Return error on singularity. All users updated.
9806 (read_device): Don't stop on 3rd failure on raidz3.
9807
9808 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9809
9810 Support case-insensitive ZFS subvolumes.
9811
9812 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
9813 All users updated.
9814 (zap_hash): Likewise.
9815 (name_cmp): New function.
9816 (zap_leaf_array_equal): New parameter case_insensitive.
9817 All users updated.
9818 (zap_leaf_lookup): Likewise.
9819 (fzap_lookup): Likewise.
9820 (zap_lookup): Likewise.
9821 (dnode_get_path): New parameter case_insensitive. Retrieve case
9822 sensitiviness of a volume. All users updated.
9823 (dnode_get_fullpath): New parameter case_insensitive.
9824 All users updated.
9825 (grub_zfs_dir): Set info.case_insensitiveness.
9826
9827 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9828
9829 Support second redundancy strip on raidz(2,3).
9830
9831 * grub-core/fs/zfs/zfs.c (powx): New array.
9832 (powx_inv): Likewise.
9833 (poly): New const.
9834 (xor_out): New function.
9835 (gf_mul): Likewise.
9836 (recovery): Likewise.
9837 (read_device): Use second redundancy strip.
9838
9839 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9840
9841 Use a power of generator representation of GF(256) multiplication group
9842 to save space time and complexity.
9843
9844 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
9845 (raid6_table2): Likewise.
9846 (powx): New array.
9847 (powx_inv): Likewise.
9848 (poly): New const.
9849 (grub_raid_block_mul): Replace with ...
9850 (grub_raid_block_mulx): ...this.
9851 (grub_raid6_init_table): Rewritten.
9852 (grub_raid6_recover): Use power of generator representation.
9853
9854 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9855
9856 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
9857 for the right device.
9858
9859 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9860
9861 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
9862 expected by grub-mkimage and it's more clear since there is no implicit
9863 padding.
9864
9865 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9866
9867 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
9868 disk.
9869 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9870
9871 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
9872
9873 * util/grub-mkrescue.in: Fix handling xorriso option.
9874
9875 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9876
9877 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
9878 NULL.
9879
9880 2011-11-03 crocket <crockabiscuit@gmail.com>
9881
9882 * util/grub.d/10_linux.in: Add Slackware initrd naming.
9883
9884 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9885
9886 XZ CRC64 and SHA256 support.
9887
9888 * Makefile.util.def (libgrubmods): Add crc64.c.
9889 * grub-core/Makefile.core.def (crc64): New module.
9890 * grub-core/lib/crc64.c: New file.
9891 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
9892 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
9893 Fix the type.
9894 (MAX_HASH_SIZE): New define.
9895 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
9896 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
9897 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9898 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9899 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
9900 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
9901 Handle non-crc32 hashes.
9902 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
9903 (dec_stream_header): Handle non-crc32 hashes.
9904 (dec_stream_footer): Likewise.
9905 (dec_block_header): Likewise.
9906 (dec_main): Likewise.
9907 (xz_dec_init): Likewise.
9908 (xz_dec_reset): Likewise.
9909 (xz_dec_end): Likewise.
9910 * util/import_gcry.py: Add CRC64 line.
9911
9912 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9913
9914 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
9915 as well.
9916
9917 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9918
9919 Make reiserfs label retrieval similar to other *_label functions.
9920
9921 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
9922 (REISERFS_MAX_LABEL_LENGTH): Removed.
9923 (REISERFS_LABEL_OFFSET): Likewise.
9924 (grub_reiserfs_label): Rewritten.
9925
9926 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9927
9928 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
9929 field.
9930
9931 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9932
9933 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
9934
9935 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9936
9937 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
9938 drive failure on both raidz and raidz2.
9939
9940 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9941
9942 Fix RAIDZ(2) for >= 5 devices.
9943
9944 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
9945 asize argument. All users updated.
9946
9947 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9948
9949 Fix RAIDZ(2).
9950
9951 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
9952 (fill_vdev_info_real): Set ashift.
9953 (read_device): Rewrite RAIDZ part based on reverse engineering.
9954
9955 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9956
9957 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
9958 don't report potentially unavialiable fields in debug output.
9959 (find_path): Fix double-free and memory leak.
9960
9961 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9962
9963 Read label on UFS1.
9964
9965 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
9966 (grub_ufs_fs): Always set .label.
9967
9968 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9969
9970 Use shifts in UFS.
9971
9972 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
9973 (grub_ufs_data): New field log2_blksz.
9974 (grub_ufs_read_file): Use shifts.
9975 (grub_ufs_mount): Check block size and logarithm it.
9976
9977 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9978
9979 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
9980 long symlinks.
9981
9982 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9983
9984 Handle symlinks and long names on tar and cpio.
9985
9986 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
9987 (ATTR_FILE): Likewise.
9988 (ATTR_DIR): Likewise.
9989 (ATTR_LNK): Likewise.
9990 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
9991 (grub_cpio_find_file): Fill mode, handle linkname field as well as
9992 L and K entries.
9993 (grub_cpio_mount): Zero-fill data.
9994 (handle_symlink): New function.
9995 (grub_cpio_dir): Handle symlinks.
9996 (grub_cpio_open): Likewise.
9997 (grub_cpio_close) [MODE_USTAR]: Free linkname.
9998
9999 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10000
10001 Fix iso9660 filename limitations and fix memory leaks.
10002
10003 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
10004 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
10005
10006 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10007
10008 Fix JFS file name length limitations.
10009
10010 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
10011 (grub_jfs_diropen): Fix maximum filename length.
10012 (grub_jfs_getent): Fix filename length.
10013 (grub_jfs_lookup_symlink): Fix size checks.
10014
10015 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10016
10017 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
10018 string.
10019
10020 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10021
10022 Leverage BFS implementation to read AFS.
10023
10024 * Makefile.util.def (libgrubmods): Add afs.c.
10025 * grub-core/Makefile.core.def (afs): New module
10026 * grub-core/fs/afs.c: New file.
10027 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
10028
10029 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10030
10031 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
10032
10033 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10034
10035 * grub-core/fs/bfs.c: Run indent.
10036
10037 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10038
10039 BFS implementation based on the specification.
10040
10041 * grub-core/fs/bfs.c: New file.
10042 * Makefile.util.def (libgrubmods): Add bfs.c.
10043 * grub-core/Makefile.core.def (bfs): New module.
10044
10045 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10046
10047 * util/grub-fstest.c (cmd_cp): Clarify error message.
10048 (cmd_cmp): Likewise.
10049
10050 2011-10-30 Yves Blusseau <blusseau@zetam.org>
10051
10052 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
10053 and befs_be.
10054
10055 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
10056
10057 Remove afs and befs because of copyright problem.
10058
10059 * grub-core/fs/afs.c: Removed.
10060 * grub-core/fs/afs_be.c: Removed.
10061 * grub-core/fs/befs.c: Removed.
10062 * grub-core/fs/befs_be.c: Removed.
10063 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
10064 * grub-core/Makefile.core.def (afs): Removed.
10065 (afs_be): Likewise.
10066 (befs): Likewise.
10067 (befs_be): Likewise.
10068
10069 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10070
10071 Prefer rockridge over Joliet.
10072
10073 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
10074 to ...
10075 (set_rockridge): ... here.
10076 (grub_iso9660_mount): Check rockridge on the primary label when
10077 discovering. Ignore Joliet if Rockridge is present.
10078
10079 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10080
10081 Use shifts in nilfs2.
10082
10083 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
10084 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
10085 (grub_nilfs2_palloc_entries_per_group): Replace with ...
10086 (grub_nilfs2_log_palloc_entries_per_group): ... this.
10087 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
10088 (grub_nilfs2_entries_per_block): Replaced with ...
10089 (grub_nilfs2_log_entries_per_block_log): ... this.
10090 (grub_nilfs2_blocks_per_group): Replaced with ...
10091 (grub_nilfs2_blocks_per_group_log): ... this.
10092 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
10093 (grub_nilfs2_blocks_per_desc_block_log): ... this.
10094 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
10095 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
10096 (grub_nilfs2_palloc_entry_offset): Replaced ...
10097 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
10098 (grub_nilfs2_dat_translate): Use shifts.
10099 (grub_nilfs2_read_inode): Likewise.
10100 (GRUB_MOD_INIT): Ensure that logs are correct.
10101
10102 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10103
10104 Use shifts in minix filesystem.
10105
10106 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
10107 (GRUB_MINIX_ZONE2SECT): Likewise.
10108 (grub_minix_data): Replace block_size with log_block_size.
10109 (grub_minix_read_file): Use shifts.
10110 (grub_minix_mount): Check block size and take a logarithm.
10111
10112 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10113
10114 Use shifts in squash4.
10115
10116 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
10117 (squash_mount): Check block size and take logarithm.
10118 (direct_read): Use shifts.
10119
10120 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10121
10122 Correct befs block counting logic.
10123
10124 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
10125 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
10126 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
10127 (grub_afs_read_inode): Use block_shift.
10128 (RANGE_SHIFT): New definition.
10129 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
10130 unexpected conditions, use shifts and appropriate types.
10131 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
10132
10133 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10134
10135 * grub-core/disk/raid.c (scan_devices): Check partition.
10136 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
10137
10138 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10139
10140 Support BFS (befs) UUID.
10141
10142 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
10143 (grub_afs_small_data_element_header): New struct.
10144 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
10145 (grub_afs_read_attribute) [MODE_BFS]: New function.
10146 (grub_afs_iterate_dir): Allocate for complete inode.
10147 (grub_afs_mount): Likewise.
10148 (grub_afs_uuid) [MODE_BFS]: New function.
10149 (grub_afs_fs) [MODE_BFS]: Add .uuid.
10150
10151 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10152
10153 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
10154 (zfs_unmount): Fix memory leak.
10155
10156 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10157
10158 Support NTFS reparse points.
10159
10160 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
10161 (symlink_descriptor): New struct.
10162 (grub_ntfs_read_symlink): New function.
10163 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
10164 (grub_ntfs_open): Likewise.
10165
10166 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10167
10168 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
10169
10170 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10171
10172 fstest xnu_uuid subcommand.
10173
10174 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
10175 grub-core/commands/xnu_uuid.c.
10176 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
10177 (fstest): Handle xnu_uuid.
10178 (options): Document xnu_uuid.
10179 (argp_parser): Parse xnu_uuid.
10180
10181 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10182
10183 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
10184 -l argument. Add newline at the end if printing.
10185 (GRUB_MOD_INIT): Document -l.
10186
10187 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10188
10189 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
10190
10191 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10192
10193 ZFS multi-device and version 33 support.
10194
10195 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
10196 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
10197 (grub_zfs_data): Add multidev-ice-related fields.
10198 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
10199 (dva_get_offset): Make dva const.
10200 (zfs_fetch_nvlist): New function.
10201 (fill_vdev_info_real): Likewise.
10202 (fill_vdev_info): Likewise.
10203 (check_pool_label): Likewise.
10204 (scan_disk): Likewise.
10205 (scan_devices): Likewise.
10206 (read_device): Likewise.
10207 (read_dva): Likewise.
10208 (zio_read_gang): Use read_dva.
10209 (zio_read_data): Likewise.
10210 (zap_leaf_lookup): Add missing endian conversion.
10211 (zap_verify): Add missing endian conversion. All users updated.
10212 (fzap_lookup): Likewise.
10213 (fzap_iterate): Likewise.
10214 (dnode_get_path): Handle SA bonus.
10215 (nvlist_find_value): Make input const. All users updated.
10216 (unmount_device): New function.
10217 (zfs_unmount): Use unmount_device.
10218 (zfs_mount): Use scan_disk.
10219 (zfs_mtime): New function.
10220 (grub_zfs_open): Handle system attributes.
10221 (fill_fs_info): Likewise.
10222 (grub_zfs_dir): Likewise.
10223 (grub_zfs_fs): Add mtime.
10224 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
10225 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
10226 (SA_MTIME_OFFSET): Likewise.
10227 (SA_SYMLINK_OFFSET): Likewise.
10228 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
10229 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
10230 (fstest): Support zfsinfo.
10231 (argp_parser): Likewise.
10232
10233 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10234
10235 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
10236 error.
10237
10238 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10239
10240 ZFS fixes.
10241
10242 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
10243 sharing the same block. Iterate over correct number of indices.
10244 (dnode_get_path): Handle symlinks correctly.
10245
10246 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10247
10248 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
10249
10250 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10251
10252 Read label on HFS+.
10253
10254 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
10255 (grub_hfsplus_btree_search): Fix types.
10256 (grub_hfsplus_label): Implement.
10257
10258 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10259
10260 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
10261
10262 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10263
10264 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
10265
10266 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10267
10268 Fix symlink handling on iso9660.
10269
10270 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
10271 All users updated.
10272 (grub_iso9660_susp_iterate): Accept zero-size iterate.
10273 (grub_iso9660_read_symlink): Moved most of code ...
10274 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
10275
10276 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10277
10278 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10279 Use union to avoid breaking strict-aliasing rules.
10280
10281 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10282
10283 Support multi-extent iso files.
10284
10285 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
10286 Add node.
10287 (grub_fshelp_node): Revamp. All users updated.
10288 (FLAG_*): New enum.
10289 (read_node): New function.
10290 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
10291 All users updated.
10292 (grub_iso9660_mount): Don't attempt to read sua when there is none.
10293 (get_node_size): New function.
10294 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
10295 entries.
10296 Fix memory leak on . and ..
10297 (grub_iso9660_read): Use read_node.
10298 (grub_iso9660_close): Free node.
10299
10300 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10301
10302 Fix tar 4G limit and handle paths containing dot.
10303
10304 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
10305 (canonicalize): New function.
10306 (grub_cpio_find_file): Use canonicalize. Store offs in
10307 grub_disk_addr_t.
10308 (grub_cpio_dir): Use grub_disk_addr_t.
10309 (grub_cpio_open): Likewise.
10310
10311 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10312
10313 Fix handling of uncompressed blocks on squashfs and break 4G limit.
10314
10315 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
10316 unused flags.
10317 (grub_squash_inode): Add long_file and block_size.
10318 (grub_squash_cache_inode): New struct.
10319 (grub_squash_dirent): Make types into enum.
10320 (SQUASH_TYPE_LONG_REGULAR): New type.
10321 (grub_squash_frag_desc): Add field size.
10322 (SQUASH_BLOCK_FLAGS): New enum.
10323 (grub_squash_data): Use grub_squash_cache_inode.
10324 (grub_fshelp_node): Make ino_chunk 64-bit.
10325 (read_chunk): Minor argument change. All users updated.
10326 (squash_mount): Use correct le_to_cpu.
10327 (grub_squash_open): Handle LONG_REGULAR.
10328 (direct_read): New function.
10329 (grub_squash_read_data): Handle blocks correctly.
10330
10331 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10332
10333 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
10334
10335 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10336
10337 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
10338
10339 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10340
10341 Fix 2G limit on ZFS.
10342
10343 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
10344 types.
10345 (uberblock_verify): Likewise.
10346 (dmu_read): Likewise.
10347 (grub_zfs_read): Likewise. Remove invalid cast.
10348
10349 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10350
10351 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
10352 (grub_jfs_blkno): Fix incorrect shift.
10353 (grub_jfs_read_file): Use more appropriate types.
10354
10355 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10356
10357 Support triple indirect on minix2 and minix3.
10358
10359 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
10360 Declare triple_indir_zone.
10361 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
10362 indirect.
10363
10364 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10365
10366 Minix FS fixes.
10367
10368 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
10369 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
10370 Rename ctime to mtime. All users updated.
10371 (grub_minix_get_file_block): Fix types and double indirect computations.
10372
10373 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10374
10375 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
10376 if no label is found.
10377 (grub_fat_iterate_dir): Fix file size type.
10378 (grub_fat_iterate_dir): Likewise.
10379
10380 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10381
10382 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
10383 save some space.
10384 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
10385 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
10386
10387 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10388
10389 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
10390
10391 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10392
10393 * util/import_gcry.py: Accept space between # and include.
10394
10395 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10396
10397 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
10398
10399 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10400
10401 Fine grainely disable warnings on lexer. Remove Wno-error on it.
10402
10403 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
10404 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
10405 yylex_strncpy.
10406 * grub-core/script/yylex.l: Add fine-grained #pragma.
10407
10408 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10409
10410 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
10411 New inline function.
10412 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
10413 Likewise.
10414 (memset) [GRUB_UTIL]: Likewise.
10415 (memcmp) [GRUB_UTIL]: Likewise.
10416
10417 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10418
10419 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
10420 inline function rather than a define.
10421
10422 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10423
10424 * util/grub-setup.c: Add missing include.
10425
10426 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10427
10428 * util/ieee1275/grub-ofpathname.c: Add missing include.
10429
10430 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10431
10432 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
10433 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
10434 Likewise.
10435
10436 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10437
10438 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
10439 grub_memcmp usage.
10440
10441 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10442
10443 * util/grub-install.in: Add datarootdir as per automake manual
10444 suggestion.
10445 * util/grub-mknetdir.in: Likewise.
10446
10447 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10448
10449 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
10450 suggestion.
10451 * util/grub.d/10_kfreebsd.in: Likewise.
10452 * util/grub.d/10_linux.in: Likewise.
10453 * util/grub.d/10_netbsd.in: Likewise.
10454 * util/grub.d/10_windows.in: Likewise.
10455 * util/grub.d/20_linux_xen.in: Likewise.
10456
10457 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
10458
10459 Remove redundant grub_kernel_image_size.
10460
10461 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
10462 _edata and _start.
10463 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
10464 the small code. It moves it only by few bytes but simplifies the code.
10465 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
10466 _start.
10467 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
10468 (grub_kernel_image_size): Removed.
10469 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
10470 (grub_kernel_image_size): Removed.
10471 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
10472 compiled with Apple toolchain.
10473 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
10474 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
10475 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
10476 (grub_total_module_size): Likewise.
10477 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
10478 Removed.
10479 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
10480 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
10481 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10482 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
10483 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
10484 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
10485 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
10486 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
10487 Removed.
10488 (grub_total_module_size): Removed.
10489 * util/grub-mkimage.c (image_target_desc): Remove image_size.
10490 (image_targets): Likewise.
10491 Set .compressed_size to no field on sparc.
10492 (generate_image): Remove kernel_image_size handling.
10493
10494 2011-10-19 Szymon Janc <szymon@janc.net.pl>
10495
10496 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
10497 NULL pointer dereference.
10498
10499 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10500
10501 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
10502 done with a dedicated section.
10503
10504 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
10505 Ensure the correct position of boot_path.
10506 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
10507 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
10508 other fields.
10509 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
10510 * include/grub/boot.h: Removed. All references removed.
10511 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10512 Removed.
10513 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
10514
10515 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10516
10517 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
10518 name.
10519
10520 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10521
10522 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
10523
10524 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10525
10526 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
10527 Don't add the bogus brackets.
10528
10529 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10530
10531 ExFAT support.
10532
10533 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
10534 * grub-core/Makefile.core.def (exfat): New module.
10535 * grub-core/fs/exfat.c: New file.
10536 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
10537 (GRUB_FAT_ATTR_*): Make into an enum.
10538 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
10539 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
10540 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
10541 (GRUB_FAT_MAXFILE): Removed.
10542 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
10543 (grub_current_fat_bpb_t): New type.
10544 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
10545 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
10546 (grub_fat_dir_node_t): New type.
10547 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
10548 (fat_log2) [MODE_EXFAT]: Removed.
10549 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
10550 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
10551 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
10552 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
10553 (grub_fat_label) [MODE_EXFAT]: New function.
10554 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
10555 reserved_first_sector to 0.
10556
10557 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10558
10559 Move grub_reboot out of the kernel.
10560
10561 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
10562 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
10563 * grub-core/lib/efi/reboot.c: ... here.
10564 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
10565 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10566 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
10567 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
10568 * grub-core/lib/i386/reboot_trampoline.S: ... here.
10569 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
10570 * grub-core/lib/ieee1275/reboot.c: ... here.
10571 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
10572 * grub-core/lib/mips/arc/reboot.c: ... here.
10573 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
10574 * grub-core/lib/mips/loongson/reboot.c: ...here.
10575 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
10576 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
10577 * include/grub/emu/misc.h (grub_reboot): New function declaration.
10578 * include/grub/i386/reboot.h: New file.
10579 * include/grub/mips/loongson/ec.h: Fix includes.
10580 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
10581 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
10582 * grub-core/lib/i386/reboot.c: New file.
10583
10584 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
10585
10586 Make grub_prefix into module to fix the arbitrary limit and save
10587 some space.
10588
10589 * grub-core/kern/emu/main.c (grub_prefix): Removed.
10590 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
10591 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
10592 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
10593 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
10594 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
10595 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
10596 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
10597 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
10598 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
10599 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
10600 * include/grub/ia64/efi/kernel.h: Removed.
10601 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
10602 (grub_prefix): Removed.
10603 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
10604 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
10605 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
10606 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
10607 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
10608 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
10609 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
10610 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
10611 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
10612 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
10613 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
10614 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
10615 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
10616 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
10617 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
10618 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
10619 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
10620 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
10621 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
10622 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
10623 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
10624 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
10625 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
10626 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
10627 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
10628 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
10629 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
10630 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
10631 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
10632 from module.
10633 * util/grub-mkimage.c (image_target_desc): Removed prefix and
10634 prefix_end.
10635 (image_targets): Likewise.
10636 (generate_image): Put prefix as a module.
10637
10638 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10639
10640 Replace grub_module_iterate with FOR_MODULES.
10641
10642 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
10643 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
10644 (grub_efi_modules_addr): ...this.
10645 * grub-core/kern/efi/init.c (grub_modbase): New variable.
10646 (grub_efi_init): Set grub_modbase.
10647 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
10648 (grub_modbase): New variable.
10649 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
10650 (grub_modbase): New variable.
10651 (grub_machine_init): Set grub_modbase.
10652 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
10653 (grub_modbase): New variable.
10654 (grub_machine_init): Set grub_modbase.
10655 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
10656 (grub_modbase): New variable.
10657 (grub_machine_init): Set grub_modbase.
10658 * grub-core/kern/main.c (grub_module_iterate): Remove.
10659 (grub_modules_get_end): Use grub_modbase.
10660 (grub_load_modules): Use FOR_MODULES.
10661 (grub_load_config): Likewise.
10662 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
10663 (grub_modbase): New variable.
10664 (grub_machine_init): Set grub_modbase.
10665 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
10666 (grub_modbase): New variable.
10667 (grub_machine_init): Set grub_modbase.
10668 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
10669 Removed.
10670 (grub_modbase): New variable.
10671 (grub_machine_init): Set grub_modbase.
10672 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
10673 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
10674 (grub_module_iterate): Likewise.
10675 (grub_modbase): New variable declaration.
10676 (FOR_MODULES): New macro.
10677
10678 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10679
10680 * configure.ac: Check for __ctzdi2 and __ctzsi2.
10681 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
10682
10683 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10684
10685 Fix few obvious type discrepancies.
10686
10687 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
10688 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
10689 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
10690 variable.
10691 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
10692 and connected types.
10693 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
10694 offset.
10695 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
10696 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
10697 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
10698 and connected types.
10699
10700 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10701
10702 Fix python 3.x incompatibilities.
10703
10704 * gentpl.py: Put brackets around print strings.
10705 * util/import_gcry.py: Open explicitly as utf-8.
10706 Use in instead of has_key.
10707
10708 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10709
10710 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
10711 (GRUB_XFS_INO_AGBITS): Make into inline function.
10712 (GRUB_XFS_INO_INOINAG): Likewise.
10713 (GRUB_XFS_INO_AG): Likewise.
10714 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
10715 (GRUB_XFS_EXTENT_OFFSET): Likewise.
10716 (GRUB_XFS_EXTENT_BLOCK): Likewise.
10717 (GRUB_XFS_EXTENT_SIZE): Likewise.
10718 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
10719 (GRUB_XFS_NEXT_DIRENT): Likewise.
10720 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
10721 (grub_xfs_read_file): Fix offset type.
10722
10723 2011-10-15 Robert Millan <rmh@gnu.org>
10724
10725 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
10726
10727 2011-10-15 Robert Millan <rmh@gnu.org>
10728
10729 Fix build problem on FreeBSD and GNU/kFreeBSD.
10730
10731 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
10732
10733 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10734
10735 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
10736
10737 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
10738 types.
10739 (grub_hfsplus_btree_recoffset): Likewise.
10740 (grub_hfsplus_btree_recptr): Likewise.
10741 (grub_hfsplus_find_block): Likewise.
10742 (grub_hfsplus_btree_search): Likewise.
10743 (grub_hfsplus_read_block): Likewise.
10744 (grub_hfsplus_read_file): Likewise.
10745 (grub_hfsplus_mount): Likewise.
10746 (grub_hfsplus_btree_iterate_node): Likewise.
10747 (grub_hfsplus_btree_search): Likewise.
10748 (grub_hfsplus_iterate_dir): Likewise.
10749 (grub_hfsplus_read): A small code simplification.
10750
10751 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10752
10753 * grub-core/kern/emu/hostdisk.c
10754 (convert_system_partition_to_system_disk): Don't assume that children
10755 of mapper nodes are mapper nodes.
10756
10757 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10758
10759 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
10760 * include/grub/misc.h (grub_isxdigit): New function.
10761 * grub-core/video/colors.c (my_isxdigit): Removed. All users
10762 switched to grub_isxdigit.
10763 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
10764 number starting with a letter.
10765
10766 2011-10-09 Robert Millan <rmh@gnu.org>
10767
10768 LVM support for FreeBSD and GNU/kFreeBSD.
10769
10770 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
10771 GNU/kFreeBSD.
10772 (LVM_DEV_MAPPER_STRING): Move from here ...
10773 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
10774 * util/getroot.c: Include `<grub/util/lvm.h>'.
10775 (grub_util_get_dev_abstraction): Enable
10776 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
10777 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
10778 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
10779 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
10780 support it.
10781 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
10782 GNU/kFreeBSD.
10783 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
10784 when LVM abstraction is required for ${GRUB_DEVICE}.
10785
10786 2011-10-06 Szymon Janc <szymon@janc.net.pl>
10787
10788 Add support for LZO compression in GRUB:
10789 - import of minilzo library,
10790 - LZO decompression for btrfs,
10791 - lzop files decompression.
10792
10793 * grub-core/io/lzopio.c: New file.
10794 * grub-core/lib/adler32.c: Likewise.
10795 * grub-core/lib/minilzo/lzoconf.h: Likewise.
10796 * grub-core/lib/minilzo/lzodefs.h: Likewise.
10797 * grub-core/lib/minilzo/minilzo.c: Likewise.
10798 * grub-core/lib/minilzo/minilzo.h: Likewise.
10799 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
10800 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
10801 grub-core/lib/minilzo/minilzo.c to common.
10802 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
10803 cflags in cppflags.
10804 * grub-core/Makefile.core.def (btrfs): Likewise.
10805 * grub-core/Makefile.core.def (lzopio): New module.
10806 (adler32): Likewise.
10807 * grub-core/fs/btrfs.c: Include minilzo.h.
10808 (GRUB_BTRFS_COMPRESSION_LZO): New define.
10809 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
10810 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
10811 (grub_btrfs_lzo_decompress): New function.
10812 (grub_btrfs_extent_read): Add support for LZO compression type.
10813 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
10814 (GRUB_USHRT_MAX): Likewise.
10815 (GRUB_UINT_MAX): Likewise.
10816 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
10817 (UINT_MAX): Likewise.
10818 (CHAR_BIT): Likewise.
10819 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
10820 grub-core/lib/posix_wrap/limits.h
10821 (UCHAR_MAX): Likewise.
10822 * include/grub/file.h (grub_file_filter_id): New compression filter
10823 GRUB_FILE_FILTER_LZOPIO.
10824 * include/grub/file.h (grub_file_filter_id): Set
10825 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
10826 * include/grub/types.h (grub_get_unaligned16): New function.
10827 (grub_get_unaligned32): Likewise.
10828 (grub_get_unaligned64): Likewise.
10829 * util/import_gcry.py (cryptolist): Add adler32.
10830
10831 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
10832
10833 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
10834 in perspective decreases the complexity of build system and fixes
10835 compilation right now.
10836
10837 2011-10-01 Ales Nesrsta <starous@volny.cz>
10838
10839 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
10840 (fixed problem related to using UHCI with coreboot).
10841
10842 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10843
10844 * gentpl.py: Use Autogen macros so that the output template file
10845 (Makefile.tpl) size is reduced.
10846
10847 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
10848
10849 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
10850 extra_dist.
10851
10852 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10853
10854 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
10855 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
10856
10857 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10858
10859 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
10860 _fullpath.
10861
10862 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10863
10864 Remove extra declaration of sleep for mingw32.
10865
10866 * util/misc.c (sleep) [__MINGW32__]: Removed.
10867 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
10868
10869 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
10870
10871 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
10872 type and packname.
10873 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
10874 Resurrected.
10875 (NETBSD_BTINFO_BOOTWEDGE): New definition.
10876 (grub_netbsd_btinfo_bootwedge): New struct.
10877 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10878 New function.
10879 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
10880
10881 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
10882
10883 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
10884 loader.
10885
10886 2011-09-28 Andreas Born <futur.andy@googlemail.com>
10887
10888 Fix incorrect identifiers in bash-completion.
10889
10890 * util/bash-completion.d/grub-completion.bash.in
10891 (_grub_mkpasswd-pbkdf2): Rename to ...
10892 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
10893 (_grub_script-check): Rename to ...
10894 (_grub_script_check): ... this. All users updated.
10895
10896 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
10897
10898 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
10899 Return 0 if disk isn't biosdisk.
10900
10901 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10902
10903 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
10904 on NetBSD.
10905 * Makefile.util.def (grub-fstest): Likewise.
10906
10907 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10908
10909 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
10910 Get sector size from disk label.
10911
10912 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
10913
10914 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
10915 */README* as well as README*.
10916 Reported by: Axel Beckert.
10917
10918 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10919
10920 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
10921 case of less than 256 MiB of RAM.
10922
10923 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10924
10925 * grub-core/commands/wildcard.c (make_regex): Handle @.
10926
10927 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10928
10929 * util/grub-install.in: Move cryptodisk logic to appropriate place.
10930
10931 2011-08-21 Szymon Janc <szymon@janc.net.pl>
10932
10933 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
10934 AC_LANG_CONFTEST macros.
10935
10936 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10937
10938 Add grub-fstest option to uncompress data for commands.
10939
10940 * util/grub-fstest.c (uncompress): New var.
10941 (options): New option -u.
10942
10943 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10944
10945 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
10946 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
10947
10948 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10949
10950 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
10951 file type was not recognized correctly (not gzip or corrupted).
10952
10953 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10954
10955 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
10956 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
10957
10958 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10959
10960 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
10961 loongson.
10962 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
10963 video_radeon_fuloong2e.
10964 * grub-core/video/radeon_fuloong2e.c: New file.
10965 * include/grub/video.h (grub_video_id_t): Add new ID
10966 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
10967
10968 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10969
10970 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
10971 define.
10972 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
10973 that PRID matches the detected subplatform and reset the subplatform
10974 if it doesn't.
10975
10976 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10977
10978 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
10979
10980 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10981
10982 Fix PCI iterating on functions >= 4.
10983
10984 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
10985 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
10986 Removed.
10987 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
10988 (grub_pci_read): Fix bitmask.
10989 (grub_pci_read_word): Likewise.
10990 (grub_pci_read_byte): Likewise.
10991 (grub_pci_write): Likewise.
10992 (grub_pci_write_word): Likewise.
10993 (grub_pci_write_byte): Likewise.
10994
10995 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10996
10997 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
10998 can still be specified in TARGET_CFLAGS)
10999
11000 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11001
11002 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
11003
11004 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
11005 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
11006 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
11007 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
11008 (FULOONG): Rename to ...
11009 (FULOONG2F): ... this. All users updated.
11010 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
11011 (machtype_fuloong2f_str): ... this.
11012 (machtype_fuloong2e_str): New string.
11013 Check for machtype_fuloong2e_str.
11014 * grub-core/loader/mips/linux.c (loongson_machtypes)
11015 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
11016 * grub-core/term/serial.c (loongson_defserial)
11017 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
11018 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
11019 loongson_defserial.
11020 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
11021 Rename to ...
11022 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
11023 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
11024 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
11025 to IMAGE_FULOONG2F_FLASH. All users updated.
11026 (image_targets): Rename images.
11027 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
11028
11029 2011-08-19 Szymon Janc <szymon@janc.net.pl>
11030
11031 Make enable of disk cache statistics code configurable.
11032
11033 * configure.ac: --enable-cache-stats added.
11034 * config.h.in (DISK_CACHE_STATS): New define.
11035 * grub-core/Makefile.core.def (cacheinfo): New command.
11036 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
11037 * grub-core/commands/cacheinfo.c: New file.
11038 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
11039 moved to cacheinfo.c.
11040 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
11041 debug code.
11042 * include/grub/disk.h: Likewise.
11043
11044 2011-08-19 Szymon Janc <szymon@janc.net.pl>
11045
11046 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
11047 * grub-core/Makefile.am: Likewise.
11048
11049 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11050
11051 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
11052 non-zero pull.
11053
11054 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11055
11056 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
11057 All users updated.
11058 (grub_jfs_lookup_symlink): Use correct starting inode.
11059
11060 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11061
11062 * util/grub-setup.c (main): Add missing gcry initialisation.
11063
11064 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11065
11066 Don't accept text modes on EFI when booting Linux.
11067
11068 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
11069 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
11070
11071 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
11072 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
11073
11074 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
11075 use of "/path/.." as in grub-install for EFI as well as handling
11076 symlinks correctly.
11077 Fixes Debian bug #637768.
11078
11079 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
11080
11081 * util/grub-probe.c: Remove duplicate #include.
11082
11083 2011-08-10 Robert Millan <rmh@gnu.org>
11084
11085 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
11086
11087 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
11088 function.
11089 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
11090 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
11091
11092 2011-08-03 Robert Millan <rmh@gnu.org>
11093
11094 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
11095 la_array as packed.
11096 Reported by: Zachary Bedell
11097
11098 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
11099
11100 * configure.ac: The Loongson port requires grub-mkfont due to its
11101 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
11102 be built.
11103
11104 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
11105
11106 * util/grub-install.in: Don't source grub-mkconfig_lib until after
11107 processing arguments (otherwise help2man fails when GRUB has not yet
11108 been installed).
11109
11110 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11111
11112 New script grub-mkstandalone.
11113
11114 * Makefile.util.def (grub-mkstandalone): New script.
11115 * docs/man/grub-mkstandalone.h2m: New file.
11116 * util/grub-mkstandalone.in: Likewise.
11117
11118 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11119
11120 Support ATA disks with 4K sectors.
11121
11122 * include/grub/ata.h (grub_ata): New member log_sector_size.
11123 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
11124 (grub_ata_identify): Read sector size.
11125 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
11126
11127 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11128
11129 * util/grub-install.in: Don't use uhci outside of x86.
11130
11131 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11132
11133 * util/grub-mkrescue.in: Add missing quotes.
11134
11135 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11136
11137 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
11138 dereference.
11139
11140 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11141
11142 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
11143
11144 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11145
11146 * include/grub/video.h: add missing EXPORT_FUND on
11147 grub_video_edid_checksum and grub_video_edid_preferred_mode.
11148
11149 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11150
11151 * include/grub/mips/kernel.h: Fix define conflict.
11152
11153 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11154
11155 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
11156 all four ways.
11157
11158 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
11159
11160 Preferred resolution detection for VBE.
11161
11162 * grub-core/video/video.c (grub_video_edid_checksum): New function.
11163 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
11164 the Flat Panel extension, in line with the X.org VESA driver.
11165 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
11166 New function.
11167 (grub_vbe_bios_get_ddc_capabilities): Likewise.
11168 (grub_vbe_bios_read_edid): Likewise.
11169 (grub_vbe_get_preferred_mode): Likewise.
11170 (grub_video_vbe_setup): When the mode is "auto", try to get the
11171 preferred mode from VBE, and use the largest mode that is no larger
11172 than the preferred mode (some BIOSes expose a preferred mode that is
11173 not in their mode list!). If this fails, fall back to 640x480 as a
11174 safe conservative choice.
11175 (grub_video_vbe_get_edid): New function.
11176 (grub_video_vbe_adapter): Add get_edid.
11177 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
11178 (struct grub_video_adapter): Add get_edid.
11179 (grub_video_edid_checksum): Add prototype.
11180 (grub_video_edid_preferred_mode): Likewise.
11181 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
11182 structure.
11183
11184 * grub-core/commands/videoinfo.c (print_edid): New function.
11185 (grub_cmd_videoinfo): Print EDID if available.
11186
11187 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
11188 is more appropriate on a wider range of platforms than 640x480.
11189 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
11190 documentation.
11191
11192 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11193
11194 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
11195
11196 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11197
11198 * po/POTFILES.in: Regenerate.
11199
11200 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11201
11202 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
11203 incorrect memory usage.
11204
11205 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11206
11207 * util/grub-install.in: Source grub-mkconfig_lib.
11208
11209 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11210
11211 Remove getroot.c from core on emu platform.
11212
11213 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
11214 kern/emu/raid.c.
11215 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
11216 useless.
11217 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
11218 * util/getroot.c (get_win32_path): ... here.
11219 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
11220 * util/getroot.c (fini_libzfs): ... here.
11221 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
11222 * util/getroot.c (grub_get_libzfs_handle): ... here.
11223 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
11224 Moved from here...
11225 * util/getroot.c (grub_find_zpool_from_dir): ... here.
11226 * grub-core/kern/emu/misc.c
11227 (grub_make_system_path_relative_to_its_root): Moved from here...
11228 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
11229 * grub-core/kern/emu/getroot.c: Moved from here ...
11230 * util/getroot.c: ... here. All users updated.
11231 * grub-core/kern/emu/raid.c: Moved from here ...
11232 * util/raid.c: ... here. All users updated.
11233
11234 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11235
11236 * po/POTFILES.in: Regenerate.
11237
11238 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11239
11240 Fix compilation on GNU/Linux.
11241
11242 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
11243 Disable geli.
11244 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
11245 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
11246 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
11247
11248 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11249 2011-07-07 Michael Gorven <michael@gorven.za.net>
11250 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
11251
11252 LUKS and GELI support.
11253
11254 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
11255 grub-core/disk/luks.c, grub-core/disk/geli.c,
11256 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
11257 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
11258 grub-core/lib/arg.c.
11259 (libgrubmods.a): Remove gcrypts cflags and cppflags.
11260 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
11261 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
11262 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
11263 (grub-bin2h): Add libgcry.a.
11264 (grub-mkimage): Likewise.
11265 (grub-mkrelpath): Likewise.
11266 (grub-script-check): Likewise.
11267 (grub-editenv): Likewise.
11268 (grub-mkpasswd-pbkdf2): Likewise.
11269 (grub-pe2elf): Likewise.
11270 (grub-fstest): Likewise.
11271 (grub-mkfont): Likewise.
11272 (grub-mkdevicemap): Likewise.
11273 (grub-probe): Likewise.
11274 (grub-ofpath): Likewise.
11275 (grub-mklayout): Likewise.
11276 (example_unit_test): Likewise.
11277 (grub-menulst2cfg): Likewise.
11278 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
11279 * grub-core/Makefile.core.def (cryptodisk): New module.
11280 (luks): Likewise.
11281 (geli): Likewise.
11282 * grub-core/disk/AFSplitter.c: New file.
11283 * grub-core/disk/cryptodisk.c: Likewise.
11284 * grub-core/disk/geli.c: Likewise.
11285 * grub-core/disk/luks.c: Likewise.
11286 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
11287 grub_util_is_lvm.
11288 (grub_util_get_dm_abstraction): New function.
11289 (grub_util_follow_gpart_up): Likewise.
11290 (grub_util_get_geom_abstraction): Likewise.
11291 (grub_util_get_dev_abstraction): Use new functions.
11292 (grub_util_pull_device): Pull GELI and LUKS.
11293 (grub_util_get_grub_dev): Handle LUKS and GELI.
11294 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
11295 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
11296 (follow_geom_up): Removed.
11297 (grub_util_fd_seek): New function.
11298 (open_device): Use grub_util_fd_seek.
11299 (nread): Rename to ..
11300 (grub_util_fd_read): ... this. All users updated.
11301 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
11302 (grub_crypto_cbc_decrypt): Likewise.
11303 (grub_crypto_hmac_write): Likewise.
11304 (grub_crypto_hmac_buffer): Likewise.
11305 (grub_password_get): Extend to util.
11306 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
11307 New member modname.
11308 (gcry_md_spec) [GRUB_UTIL]: Likewise.
11309 * include/grub/cryptodisk.h: New file.
11310 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
11311 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
11312 LUKS and GELI.
11313 (grub_util_follow_gpart_up): New proto.
11314 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
11315 (grub_util_fd_read): Likewise.
11316 (grub_cryptodisk_cheat_mount): Likewise.
11317 (grub_util_cryptodisk_print_uuid): Likewise.
11318 (grub_util_get_fd_sectors): Likewise.
11319 * util/grub-fstest.c (mount_crypt): New var.
11320 (fstest): Mount crypto if requested.
11321 (options): New option -C.
11322 (argp_parser): Parse -C.
11323 (main): Init and fini gcry.
11324 * util/grub-install.in: Support cryptodisk install.
11325 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
11326 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
11327 cryptodisk.
11328 (prepare_grub_to_access_device): Likewise.
11329 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
11330 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
11331 (probe_cryptodisk_uuid): New function.
11332 (probe_abstraction): Likewise.
11333 (probe): Use new functions.
11334 * util/import_gcry.py: Create Makefile.utilgcry.def.
11335 Add modname member.
11336
11337 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11338
11339 Lazy device scanning.
11340
11341 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
11342 (grub-setup): Remove util/raid.c.
11343 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
11344 * grub-core/disk/lvm.c (scan_depth): New variable.
11345 (grub_lvm_iterate): Rescan if necessary.
11346 (find_lv): New function based on grub_lvm_open.
11347 (grub_lvm_open): Use find_lv. Rescan on error.
11348 (is_node_readable): New function.
11349 (is_lv_readable): Likewise.
11350 (grub_lvm_scan_device): Skip already found disks.
11351 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
11352 Stop if searched device is found and readable.
11353 * grub-core/disk/raid.c (inscnt): New variable.
11354 (scan_depth): Likewise.
11355 (scan_devices): New function based on grub_raid_register. Abort if
11356 looked for device is found.
11357 (grub_raid_iterate): Rescan if needed.
11358 (find_array): NEw function based on -grub_raid_open.
11359 (grub_raid_open): Use find_array and rescan.
11360 (insert_array): Set became_readable_at.
11361 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
11362 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
11363 New function.
11364 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
11365 (grub_util_pull_device): New function.
11366 (grub_util_get_grub_dev): Call grub_util_pull_device.
11367 * util/raid.c: Moved to ..
11368 * grub-core/kern/emu/raid.c: ... here.
11369 (grub_util_raid_getmembers): New parameter "bootable".
11370 All users updated. Support 1.x.
11371 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
11372 All users updated.
11373 * include/grub/disk.h (grub_disk_pull_t): New enum.
11374 (grub_disk_dev): Change iterate prototype.
11375 All users updated.
11376 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
11377 New proto.
11378 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
11379 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
11380 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
11381 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
11382 All users updated.
11383 * include/grub/util/raid.h: Removed.
11384
11385 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11386
11387 * po/POTFILES.in: Regenerate.
11388
11389 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11390
11391 Unify sparc init with other ieee1275.
11392
11393 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
11394 instead of kern/sparc64/ieee1275/init.c.
11395 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
11396 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
11397 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
11398 grub/machine/kernel.h.
11399 (grub_ieee1275_original_stack) [__sparc__]: New variable.
11400 (grub_claim_heap) [__sparc__]: Use sparc version.
11401 (grub_machine_init): Moved args parsing to
11402 (grub_parse_cmdline): ...this.
11403 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
11404 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
11405 New definition.
11406 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
11407
11408 Move BOOTP to separate file.
11409
11410 * grub-core/Makefile.core.def (net): Add net/bootp.c.
11411 * grub-core/net/net.c: Move all BOOTP functions to
11412 * grub-core/net/bootp.c: ... here.
11413
11414 Use frame interface on PXE.
11415
11416 * grub-core/Makefile.core.def (pxecmd): Removed.
11417 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
11418 * grub-core/commands/i386/pc/pxecmd.c: Removed.
11419 * grub-core/i386/pc/pxe.c: Moved from here ...
11420 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
11421 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
11422 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
11423
11424 EFI network support.
11425
11426 * grub-core/Makefile.core.def (efinet): New module.
11427 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
11428 here...
11429 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
11430 All users updated.
11431 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
11432 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
11433 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
11434 * grub-core/net/drivers/efi/efinet.c: New file.
11435 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
11436 (grub_efi_net_config): New extern var.
11437
11438 Various cleanups and bugfixes.
11439
11440 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
11441 error.
11442 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
11443 disk declared as partition.
11444 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
11445 leak on failure.
11446 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
11447 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
11448 (grub_debug_zalloc): Likewise.
11449 (grub_debug_realloc): Likewise.
11450 (grub_debug_memalign): Likewise.
11451 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
11452 Check that target is IPv4.
11453 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
11454 local-mac-address as fallback.
11455 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
11456 memory leak.
11457 * grub-core/net/ip.c (ipchksum): Rename to ...
11458 (grub_net_ip_chksum): ... this. All users updated.
11459 (grub_net_recv_ip_packets): Special handling for DHCP.
11460 * util/grub-mkimage.c (generate_image): Zero-out aout header.
11461
11462 Unify prefix handling
11463
11464 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
11465 (grub_machine_get_bootlocation): ... this.
11466 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
11467 (grub_machine_get_bootlocation): ... this.
11468 (grub_prefix): New variable.
11469 (prefix): Removed.
11470 (root_dev): New variable.
11471 (dir): Likewise.
11472 (main): Use new variables.
11473 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
11474 Revamped into ...
11475 (grub_machine_get_bootlocation): ... this.
11476 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
11477 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
11478 (grub_machine_get_bootlocation): ... this.
11479 (grub_machine_set_prefix): Removed.
11480 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
11481 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
11482 Revamped into ...
11483 (grub_machine_get_bootlocation): ... this.
11484 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
11485 (grub_set_prefix_and_root): ... this. All users updated.
11486 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
11487 Revamped into ...
11488 (grub_machine_get_bootlocation): ... this.
11489 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
11490 (grub_machine_get_bootlocation): New proto.
11491 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
11492
11493 Less intrusive and more reliable seek on network implementation.
11494
11495 * grub-core/kern/file.c (grub_file_net_seek): Removed.
11496 (grub_file_seek): Don't call grub_file_net_seek.
11497 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
11498 (grub_net_fs_read_real): .. this.
11499 (grub_net_seek_real): Use net->offset.
11500 (grub_net_fs_read): Seek if necessary.
11501
11502 Unify IEEE1275 netwotk config with the other platforms.
11503
11504 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
11505 New variable.
11506 (grub_machine_get_bootlocation): Support network.
11507 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
11508 Support type and device parsing.
11509 (grub_ieee1275_get_device_type): New function.
11510 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
11511 into ...
11512 (grub_ieee1275_net_config_real): ... this.
11513 (grub_ofnet_probecards): Removed.
11514 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
11515 * include/grub/ieee1275/ofnet.h: Removed.
11516 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
11517 extern var.
11518 (grub_ieee1275_get_device_type): New function.
11519
11520 Unify network device closing across platforms and make more robust.
11521
11522 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
11523 grub_grubnet_fini.
11524 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
11525 already.
11526 * grub-core/net/net.c (grub_net_network_level_interface_register):
11527 Update num_ifaces.
11528 (grub_net_card_unregister): Close all interfaces.
11529 (receive_packets): Don't poll if no iterfaces are registered.
11530 Open if necessary.
11531 (grub_net_fini_hw): New function.
11532 (grub_net_restore_hw): Likewise.
11533 (fini_hnd): New variable.
11534 (GRUB_MOD_INIT): Register preboot hook.
11535 (GRUB_MOD_FINI): Run and unregister preboot hook.
11536
11537 Poll network cards when idle.
11538
11539 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
11540 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
11541 * grub-core/net/net.c (receive_packets): Save last poll time.
11542 (grub_net_poll_cards_idle_real): New function.
11543 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
11544 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
11545 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
11546
11547 Rename ofnet interfaces.
11548
11549 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
11550 (grub_ofnet_findcards): Use ofnet_%s names.
11551
11552 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
11553
11554 Cleanup socket opening.
11555
11556 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
11557 (grub_net_fs_close): Likewise.
11558 (grub_net_fs_read_real): Use eof member.
11559 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
11560 (+grub_net_udp_close): New inline function.
11561
11562 * include/grub/net/tftp.h: Moved to the top of ...
11563 * grub-core/net/tftp.c: ... here.
11564 * include/grub/net/ip.h: Moved mostly to the top of ...
11565 * grub-core/net/ip.c: ... here.
11566 * include/grub/net/ethernet.h: Moved mostly to the top of ...
11567 * grub-core/net/ethernet.c: ... here.
11568
11569 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
11570
11571 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
11572 FS name.
11573
11574 * include/grub/net/ip.h (ipv4_ini): Removed.
11575 (ipv4_fini): Likewise.
11576
11577 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
11578 (grub_net_send_ip_packets): Likewise.
11579
11580 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11581
11582 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
11583 grub_read_cmos prototype.
11584
11585 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11586
11587 VGA text support in qemu-mips
11588
11589 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
11590 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
11591 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
11592 text.
11593 * grub-core/kern/i386/qemu/init.c: Renamed to ...
11594 * grub-core/kern/vga_init.c: ... this.
11595 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
11596 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
11597 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
11598 Adjust.
11599 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
11600 GRUB_MACHINE_PCI_IO_BASE.
11601
11602 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11603
11604 MIPS qemu flash support.
11605
11606 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
11607 magic.
11608 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
11609 (grub_machine_init): Probe memory if its size isn't known.
11610 * util/grub-mkimage.c (image_targets): Add flash targets.
11611 (generate_image): Handle flash targets.
11612
11613 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11614
11615 MIPS qemu at_keyboard support.
11616
11617 * gentpl.py (videoinkernel): Add qemu-mips.
11618 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
11619 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
11620 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
11621 modules.
11622 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
11623 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
11624 * grub-core/term/serial.c (grub_serial_register)
11625 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
11626
11627 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11628
11629 CMOS support on sparc.
11630
11631 * gentpl.py (cmos): Add powerpc and sparc.
11632 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
11633 powerpc and sparc.
11634 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
11635 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
11636 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
11637 grub_set_datetime_cmos.
11638 * grub-core/lib/ieee1275/cmos.c: New file.
11639 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
11640 (find_rtc): Set no_ieee1275_rtc on error.
11641 (grub_get_datetime): Call grub_get_datetime_cmos on error.
11642 (grub_set_datetime): Call grub_set_datetime_cmos on error.
11643 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
11644 fail. Move value to argument. All users updated
11645 (grub_cmos_write): Likewise.
11646 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
11647 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
11648 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
11649 grub_get_datetime_cmos and grub_set_datetime_cmos.
11650
11651 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
11652
11653 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
11654 sourcing grub-mkconfig_lib.
11655 * util/update-grub_lib.in: Likewise.
11656 * util/grub.d/00_header.in: Likewise.
11657 * util/grub.d/10_hurd.in: Likewise.
11658 * util/grub.d/10_kfreebsd.in: Likewise.
11659 * util/grub.d/10_linux.in: Likewise.
11660 * util/grub.d/10_netbsd.in: Likewise.
11661 * util/grub.d/10_windows.in: Likewise.
11662 * util/grub.d/20_linux_xen.in: Likewise.
11663 * util/grub.d/30_os-prober.in: Likewise.
11664
11665 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
11666
11667 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
11668 default_bg_color rather than black.
11669 (grub_gfxterm_fullscreen): Likewise.
11670 (grub_gfxterm_background_color_cmd): Save new background color in
11671 default_bg_color.
11672
11673 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11674
11675 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
11676
11677 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11678
11679 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
11680 mismerge.
11681
11682 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11683
11684 Chainloading on coreboot support.
11685
11686 * grub-core/Makefile.core.def (chain): Add coreboot.
11687 * grub-core/loader/i386/coreboot/chainloader.c: New file.
11688
11689 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11690
11691 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
11692 if it happens.
11693
11694 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11695
11696 Implement time command.
11697
11698 * grub-core/Makefile.core.def (time): New module.
11699 * grub-core/commands/time.c: New file.
11700 * grub-core/script/parser.y: Remove "time" keyword.
11701 * grub-core/script/yylex.l: Likewise.
11702
11703 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11704
11705 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
11706
11707 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11708
11709 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
11710 when handling leftovers.
11711
11712 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11713
11714 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
11715 so that help2man doesn't fail.
11716
11717 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11718
11719 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
11720 type in pointers on sparc64.
11721 (get_card_packet): Likewise.
11722
11723 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
11724
11725 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
11726 with `*'.
11727 (grub_cmd_videoinfo): Fetch current video mode.
11728
11729 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11730
11731 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
11732 because of underlying system restrictions.
11733
11734 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11735
11736 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
11737 necessary.
11738
11739 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11740
11741 Coreboot video support.
11742
11743 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
11744 (vbe): Likewise.
11745 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
11746 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
11747 here ...
11748 * grub-core/kern/i386/int.S: ... here.
11749 * grub-core/video/i386/pc/vbe.c: Updated includes.
11750 * grub-core/video/i386/pc/vga.c: Likewise.
11751 * include/grub/i386/coreboot/memory.h
11752 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
11753 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
11754 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
11755 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
11756 Disable interrupts.
11757 * include/grub/i386/pc/vga.h: Removed. All users updated.
11758
11759 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11760
11761 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
11762 definitions for dprintf.
11763 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
11764
11765 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11766
11767 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
11768 prototype.
11769 (get_card_packet): Likewise.
11770
11771 2011-06-26 Yves Blusseau <blusseau@zetam.org>
11772
11773 Display the path of the file when file is not found
11774
11775 * grub-core/fs/fat.c: Display the filename when file is not found.
11776 * grub-core/fs/fshelp.c: Likewise.
11777 * grub-core/fs/hfs.c: Likewise.
11778 * grub-core/fs/jfs.c: Likewise.
11779 * grub-core/fs/minix.c: Likewise.
11780 * grub-core/fs/ufs.c: Likewise.
11781 * grub-core/fs/btrfs.c: Likewise.
11782 * grub-core/commands/i386/pc/play.c: Likewise.
11783
11784 2011-06-26 Szymon Janc <szymon@janc.net.pl>
11785
11786 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
11787 pointer checks before calling grub_free().
11788 * grub-core/commands/wildcard.c (match_devices): Likewise.
11789 * grub-core/commands/wildcard.c (match_files): Likewise.
11790 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
11791 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
11792 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
11793 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
11794 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
11795 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
11796 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
11797 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
11798 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
11799
11800 2011-06-25 Patrick <p55@mailinator.com>
11801
11802 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
11803
11804 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
11805
11806 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
11807 (grub_pxe_send): Likewise.
11808 (GRUB_MOD_INIT): Fix types.
11809
11810 2011-06-24 Szymon Janc <szymon@janc.net.pl>
11811
11812 * grub-core/io/xzio.c: Fix code style issues
11813
11814 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11815 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
11816
11817 Network infrastructure.
11818 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
11819
11820 * include/grub/net/arp.h: New file.
11821 * include/grub/net/device.h: Likewise.
11822 * include/grub/net/ethernet.h: Likewise.
11823 * include/grub/net/ip.h: Likewise.
11824 * include/grub/net/netbuff.h: Likewise.
11825 * include/grub/net/tftp.h: Likewise.
11826 * include/grub/net/udp.h: Likewise.
11827 * include/grub/ieee1275/ofnet.h: Likewise.
11828 * include/grub/emu/export.h: Likewise.
11829 * include/grub/net.h: Likewise.
11830 * grub-core/net/arp.c: Likewise.
11831 * grub-core/net/ethernet.c: Likewise.
11832 * grub-core/net/ip.c: Likewise.
11833 * grub-core/net/udp.c: Likewise.
11834 * grub-core/net/tftp.c: Likewise.
11835 * grub-core/net/netbuff.c: Likewise.
11836 * grub-core/net/net.c: Likewise.
11837 * grub-core/net/drivers/emu/emunet.c: Likewise.
11838 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
11839 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
11840 export.h.
11841 * grub-core/Makefile.core.def (net): New module.
11842 (tftp): Likewise.
11843 (ofnet): Likewise.
11844 (emunet): Likewise.
11845 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
11846 network protocols.
11847 * grub-core/kern/device.c (grub_net_open) : New variable.
11848 (grub_device_open): Handle network device.
11849 (grub_device_close): Likewise.
11850 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
11851 (grub_grubnet_fini): Likewise.
11852 (grub_file_seek): Seek in network device.
11853 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
11854 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
11855 network root.
11856 (grub_machine_fini): Call grub_grubnet_fini.
11857 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
11858 network.
11859 (grub_ieee1275_get_aliasdevname): New function.
11860 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
11861 Add unofficial Solaris network info.
11862 (grub_multiboot_make_mbi): Likewise.
11863 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
11864 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
11865 * include/grub/device.h (grub_fs): Removed.
11866 * include/grub/err.h (grub_err_t): Add network-related values.
11867 * include/grub/i386/pc/pxe.h: Removed bootp parts.
11868 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
11869 (grub_ieee1275_get_aliasdevname): New proto.
11870 * include/grub/net.h: Rewritten.
11871
11872 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11873
11874 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
11875 names.
11876
11877 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11878
11879 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
11880 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
11881 it truncates the output.
11882 Reported by: Ximin Luo.
11883
11884 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11885
11886 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
11887
11888 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11889
11890 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
11891 partmap before abstraction.
11892
11893 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
11894
11895 * util/grub-mkconfig_lib.in: Add missing quotes.
11896
11897 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11898
11899 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
11900 old method if mountinfo would return /dev/root and /dev/root doesn't
11901 exist.
11902
11903 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11904
11905 ZFS zlib support
11906
11907 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
11908 (decomp_table): Add zlib entries.
11909 (zio_read): USe 8 bits for compression function rather than 3.
11910 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
11911
11912 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11913
11914 * grub-core/disk/ahci.c: Add missing license statements.
11915 * grub-core/fs/romfs.c: Likewise.
11916 * grub-core/lib/ia64/setjmp.S: Likewise.
11917 * grub-core/loader/i386/pc/freedos.c: Likewise.
11918 * grub-core/loader/ia64/efi/linux.c: Likewise.
11919 * grub-core/video/colors.c: Likewise.
11920 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
11921
11922 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11923
11924 AHCI support.
11925
11926 * grub-core/Makefile.core.def (ata_pthru): Removed.
11927 (ahci): New module.
11928 (pata): Likewise.
11929 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
11930 on unload.
11931 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
11932 readwrite.
11933 (grub_hdparm_do_check_powermode_cmd): Likewise.
11934 (grub_hdparm_do_smart_cmd): Likewise.
11935 (grub_hdparm_set_val_cmd): Likewise.
11936 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
11937 * grub-core/disk/ahci.c: New file.
11938 * grub-core/disk/ata.c: Factor out the low-level part into ...
11939 * grub-core/disk/pata.c: ... here.
11940 * grub-core/disk/ata_pthru.c: Contents moved to ...
11941 * grub-core/disk/pata.c: ... here.
11942 * grub-core/disk/scsi.c (grub_scsi_names): New array.
11943 (grub_scsi_iterate): Use grub_scsi_names.
11944 (grub_scsi_open): Likewise.
11945 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
11946 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
11947 (grub_ata_regs_t): New struct.
11948 (grub_disk_ata_pass_through_parms): Likewise.
11949 (grub_ata_device): Renamed to ...
11950 (grub_ata): ... this.
11951 (grub_ata_dev): New struct.
11952 Removed all low-level inline functions.
11953 * include/grub/scsi.h: Add PATA and AHCI subsystems.
11954 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
11955 iterate hooks and open. All users updated.
11956 * util/grub-install.in: Handle AHCI disk module.
11957
11958 2011-06-23 Szymon Janc <szymon@janc.net.pl>
11959
11960 Add support for DRI and RSTn markers in JPEG files.
11961
11962 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
11963 (JPEG_MARKER_RST0): Likewise.
11964 (JPEG_MARKER_RST1): Likewise.
11965 (JPEG_MARKER_RST2): Likewise.
11966 (JPEG_MARKER_RST3): Likewise.
11967 (JPEG_MARKER_RST4): Likewise.
11968 (JPEG_MARKER_RST5): Likewise.
11969 (JPEG_MARKER_RST6): Likewise.
11970 (JPEG_MARKER_RST7): Likewise.
11971 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
11972 (grub_jpeg_decode_dri): New function.
11973 (grub_jpeg_decode_sos): Move image data related part into
11974 grub_jpeg_decode_data function.
11975 (grub_jpeg_decode_data): New function.
11976 (grub_jpeg_reset): New function.
11977 (grub_jpeg_decode_jpeg): Handle new markers.
11978
11979 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11980
11981 * util/ieee1275/ofpath.c (check_sas): Close fd.
11982 (main): Free of_path.
11983 Reported by: David Volgyes <dvolgyes>.
11984
11985 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11986
11987 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
11988 Reported by: David Volgyes <dvolgyes>.
11989
11990 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11991
11992 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
11993 file after stat.
11994 Reported by: David Volgyes <dvolgyes>.
11995
11996 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11997
11998 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
11999
12000 Reported by: David Volgyes <dvolgyes>.
12001
12002 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12003
12004 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
12005 Prevent memory leak.
12006
12007 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12008
12009 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
12010 (main): Close file.
12011 Reported by: David Volgyes <dvolgyes>.
12012
12013 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12014
12015 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
12016 to continue if allocation is failed.
12017
12018 Reported by: David Volgyes <dvolgyes>.
12019
12020 2011-06-23 David Volgyes <dvolgyes>
12021
12022 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
12023 dereference.
12024
12025 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12026
12027 Fix spurious warning.
12028
12029 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
12030 (acorn_partition_map_find): Use .bin member.
12031
12032 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12033
12034 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
12035 /dev/root as a valid device.
12036
12037 2011-06-23 Jim Meyering <meyering@redhat.com>
12038
12039 Avoid NULL deref in grub_device_open.
12040
12041 * grub-core/kern/device.c (grub_device_open): Don't dereference
12042 a NULL pointer upon failed grub_env_get.
12043
12044 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12045
12046 Support non-512B sectors and agglomerate reads.
12047
12048 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
12049 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
12050 (disk_io_guid): Removed.
12051 (make_devices): Locate solely by BlockIO.
12052 (grub_efidisk_open): Fill log_sector_size and total_sectors.
12053 (grub_efidisk_read): Use read_blocks.
12054 (grub_efidisk_write): Use write_blocks.
12055 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
12056 log_sector_size.
12057 (get_safe_sectors): Handle non-512B sectors.
12058 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
12059 sectors.
12060 (grub_biosdisk_write): Handle non-512B sectors.
12061 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
12062 (grub_scsi_read): Remove special non-512B block handling (now handled
12063 one level up).
12064 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
12065 and do sanity checks.
12066 (grub_disk_adjust_range): Handle non-512B sectors.
12067 (transform_sector): New function.
12068 (grub_disk_read_small): Likewise.
12069 (grub_disk_read): Rewritten.
12070 (grub_disk_write): Handle non-512B sectors.
12071 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
12072 log_sector_size.
12073 (open_device): Use log_sector_size.
12074 (grub_util_biosdisk_read): Likewise.
12075 (grub_util_biosdisk_write): Likewise.
12076 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
12077 non-512B sectors.
12078 (pc_partition_map_embed): Likewise.
12079 * include/grub/disk.h (grub_disk): New field log_sector_size.
12080 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
12081 (GRUB_DISK_CACHE_BITS): Increased to 6.
12082 * util/grub-fstest.c (fstest): New command testload.
12083 (argp_parser): Likewise.
12084
12085 2011-06-16 Robert Millan <rmh@gnu.org>
12086
12087 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
12088 `ata' driver on kernel of FreeBSD 9.
12089
12090 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
12091 (get_ataraid_disk_name): New functions.
12092 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
12093 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
12094 get_ataraid_disk_name() and get_ada_disk_name().
12095
12096 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
12097
12098 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
12099 input format.
12100
12101 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
12102
12103 * docs/grub.texi (Obtaining and Building GRUB): Substitute
12104 `ftp.gnu.org' for `alpha.gnu.org'.
12105
12106 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
12107
12108 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
12109 partitions under /dev/disk/by-id/.
12110
12111 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
12112
12113 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
12114 after ten consecutive open failures. Scanning all the way up to
12115 10000 is excessive and can cause serious performance problems in
12116 some configurations.
12117 Fixes Ubuntu bug #787461.
12118
12119 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12120
12121 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
12122 opening new one.
12123
12124 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
12125 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12126
12127 Don't stat devices unless we have to.
12128
12129 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
12130 dir == /dev/mapper.
12131 (grub_guess_root_device): Use already known os_dev if possible.
12132 * grub-core/kern/emu/hostdisk.c
12133 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
12134 if device is known to be a dm one.
12135
12136 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
12137
12138 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
12139 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
12140 Reported by: Pawel Tecza.
12141
12142 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
12143
12144 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
12145 (lsefisystab): Likewise.
12146 (lssal): Likewise.
12147 (lsefimmap): Likewise.
12148 (hdparm): Enable on qemu-mips.
12149 (setjmp): Add ia64 nodist.
12150 (serial): Simplify tags.
12151
12152 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12153
12154 * Makefile.util.def (grub-ofpathname): Install manual page.
12155
12156 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12157
12158 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
12159
12160 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12161
12162 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
12163
12164 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12165
12166 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
12167 into dprintf.
12168
12169 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12170
12171 Use full 64-bit division.
12172
12173 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
12174 (grub_divmod64): ... this.
12175 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
12176 version.
12177
12178 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12179
12180 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
12181 `source'.
12182
12183 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12184
12185 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
12186 to avoid accidents when debugging with 'sh -x'.
12187 * grub-core/gensyminfo.sh.in: Likewise.
12188 * tests/example_scripted_test.in: Likewise.
12189 * tests/grub_cmd_regexp.in: Likewise.
12190 * tests/grub_script_blanklines.in: Likewise.
12191 * tests/grub_script_dollar.in: Likewise.
12192 * tests/grub_script_expansion.in: Likewise.
12193 * tests/grub_script_final_semicolon.in: Likewise.
12194 * tests/partmap_test.in: Likewise.
12195 * tests/util/grub-shell-tester.in: Likewise.
12196 * tests/util/grub-shell.in: Likewise.
12197
12198 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12199
12200 Move gfxmenu color handling to video, so that gfxterm can use it
12201 too.
12202
12203 * grub-core/gfxmenu/named_colors.c: Move to ...
12204 * grub-core/video/colors.c: ... here. Rename
12205 grub_gui_get_named_color to grub_video_get_named_color.
12206 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
12207 * grub-core/video/colors.c (my_isxdigit): ... here.
12208 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
12209 Move to ...
12210 * grub-core/video/colors.c (parse_hex_color_component): ... here.
12211 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
12212 to ...
12213 * grub-core/video/colors.c (grub_video_parse_color): ... here.
12214
12215 * include/grub/gui.h (grub_gui_color_t): Move to ...
12216 * include/grub/video.h (grub_video_rgba_color_t): ... here.
12217 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
12218 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
12219 * include/grub/gui.h (grub_gui_map_color): Move to ...
12220 * include/grub/video.h (grub_video_map_rgba_color): ... here.
12221 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
12222 to ...
12223 * include/grub/video.h (grub_video_get_named_color): ... here.
12224 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
12225 * include/grub/video.h (grub_video_parse_color): ... here.
12226
12227 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
12228 video/colors.c.
12229 (gfxmenu): Remove gfxmenu/named_colors.c.
12230 (video) [videomodules]: Add video/colors.c.
12231
12232 Add a background_color command.
12233
12234 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
12235 function.
12236 (GRUB_MOD_INIT): Register background_color command.
12237 (GRUB_MOD_FINI): Unregister background_color command.
12238 (redraw_screen_rect): Allow blend/replace of text layer to be
12239 controlled independently from whether there is a background bitmap.
12240 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
12241 changing bitmap.
12242
12243 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12244
12245 Patch BPB in ntldr and chainloader --bpb.
12246
12247 * grub-core/fs/fat.c: Include grub/fat.h.
12248 (grub_fat_bpb): Moved to ...
12249 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
12250 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
12251 grub/ntfs.h.
12252 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
12253 Moved from here...
12254 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
12255 here.
12256 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
12257 New function.
12258 (grub_chainloader_cmd): Patch BPB if --bpb is given.
12259 (GRUB_MOD_INIT): Show --bpb.
12260 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
12261 * grub-core/normal/main.c (features): New variable.
12262 (GRUB_MOD_INIT): Set feature_* variables.
12263 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
12264 proto.
12265 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
12266
12267 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12268
12269 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
12270 for cleanness.
12271
12272 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12273
12274 FreeDOS direct loading support.
12275
12276 * docs/grub.texi (Supported OS): Add FreeDOS.
12277 * grub-core/Makefile.core.def (freedos): New module.
12278 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
12279 variable.
12280 (grub_relocator16_boot): Handle %ebx.
12281 * grub-core/lib/i386/relocator16.S: Likewise.
12282 * grub-core/loader/i386/pc/freedos.c: New file.
12283
12284 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12285
12286 Long Linux command line support.
12287
12288 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12289 (maximal_cmdline_size): New variable.
12290 (allocate_pages): Use maximal_cmdline_size.
12291 (grub_cmd_linux): Set and use maximal_cmdline_size.
12292 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12293 (allocate_pages): Use maximal_cmdline_size.
12294 (grub_cmd_linux): Set and use maximal_cmdline_size.
12295 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
12296 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
12297 and cmdline_size.
12298
12299 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12300 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12301
12302 Improve devmapper support
12303
12304 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
12305 (grub_util_is_lvm): New function.
12306 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
12307 than lvm if not dmraid.
12308 Handle mapped md nodes.
12309 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
12310 (grub_util_device_is_mapped): ... this. Make always available. All users
12311 updated.
12312 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
12313 (convert_system_partition_to_system_disk): Handle lvm, mpath and
12314 dmraid nodes.
12315 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
12316
12317 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12318
12319 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
12320
12321 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
12322 * grub-core/modinfo.sh.in: New file.
12323 * grub-core/Makefile.core.def (modinfo.sh): New script.
12324 * util/grub-mknetdir.in: Use modinfo.sh.
12325 * util/grub-mkrescue.in: Likewise.
12326
12327 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12328
12329 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
12330 Fix potential usage of Elf32 instead of Elf64 when compiling on
12331 32-bit architecture. Add endianness macros while on it.
12332
12333 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12334
12335 Use mipsel- rather than mips- in directories involving mipsel ports to
12336 allow both endiannesses coexist.
12337
12338 * configure.ac: proparate target_cpu=mipsel rather than resetting to
12339 mips. All conditions adjusted.
12340 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
12341 variable.
12342 * util/grub-install.in: Adjust conditions to take renaming into account.
12343 * util/grub-mkimage.c (image_targets): Likewise. New target
12344 mips-qemu_mips-elf for bigendian mips.
12345
12346 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12347
12348 Avoid unnecessary copying on MIPS.
12349
12350 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
12351 early if src == dest.
12352 * util/grub-mkimage.c (generate_image): Arange for src == dest if
12353 compression is none.
12354
12355 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12356
12357 Reduce memory footprint on SGI by putting modules before the kernel
12358 as opposed to after.
12359
12360 * grub-core/Makefile.core.def (kernel): Increase linking address.
12361 (none_decompress): Likewise.
12362 (xz_decompress): Likewise.
12363 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
12364 address.
12365 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
12366 layout change.
12367 (grub_arch_modules_addr): New function.
12368 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
12369 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
12370 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
12371 here.
12372 * grub-core/kern/mips/startup.S (total_size): Rename to ...
12373 (grub_total_modules_size): ... this. Make global.
12374 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
12375 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
12376 New definition.
12377 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
12378 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
12379 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
12380 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
12381 * util/grub-mkimage.c (image_target_desc): New flag
12382 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
12383 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
12384 (generate_image): Handle images with modules before kernel.
12385
12386 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12387
12388 Prevent potential loss of memory map by overwrite on qemu-mips.
12389
12390 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12391 Save ram size in $s4.
12392 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
12393 All users changed to grub_arch_memsize.
12394 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
12395 Loongson.
12396 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
12397 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
12398 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
12399 external variable.
12400
12401 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12402
12403 * .bzrignore: Remove grub-dumpbios.
12404
12405 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12406
12407 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
12408 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
12409 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
12410 existing options which append).
12411 * docs/grub.texi (Simple configuration): Document new options.
12412 Reported by: Ian Jackson. Fixes Debian bug #617538.
12413
12414 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12415
12416 * util/grub-fstest.c (cmd_cat): New function.
12417 (fstest): Handle CMD_CAT.
12418 (options): Add cat.
12419 (argp_parser): Handle cat.
12420
12421 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12422
12423 * Makefile.util.def (grub-bin2h): Don't install.
12424 * docs/man/grub-bin2h.h2m: Remove.
12425
12426 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12427
12428 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
12429 place.
12430
12431 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12432
12433 Reenable qemu-mips port.
12434
12435 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
12436 Fix small arc bug while on it.
12437 * gentpl.py: Handle qemu_mips.
12438 * grub-core/Makefile.am: Likewise.
12439 * grub-core/Makefile.core.def: Likewise.
12440 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
12441 inappropriate includes.
12442 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
12443 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
12444 * grub-core/kern/main.c (grub_modules_get_end)
12445 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
12446 * grub-core/kern/mips/qemu-mips: Moved to ..
12447 * grub-core/kern/mips/qemu_mips: ... this.
12448 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
12449 (grub_machine_init): Call terminfo_init and serial_init.
12450 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
12451 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12452 New variable.
12453 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
12454 parameter passing.
12455 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
12456 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
12457 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
12458 * include/grub/mips/qemu_mips/cmos.h: New file.
12459 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
12460 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
12461 Removed.
12462 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
12463 Use correct mips-style address.
12464 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
12465 (GRUB_TICKS_PER_SECOND): Removed.
12466 (grub_get_rtc): Likewise.
12467 (grub_cpu_idle): Likewise.
12468 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
12469 New definition.
12470 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
12471 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
12472 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
12473 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
12474 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
12475 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
12476 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
12477 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
12478
12479 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12480
12481 SGI ARCS port.
12482
12483 * Makefile.util.def (libgrubmods.a): Add dvh.c.
12484 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
12485 platforms.
12486 * configure.ac: New target mips-arc.
12487 * gentpl.py: Likewise.
12488 * grub-core/Makefile.am: Likewise.
12489 * grub-core/Makefile.core.def: Likewise.
12490 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
12491 (none_decompress): Likewise.
12492 (lsdev): New module.
12493 (datetime): Use lib/arc/datetime.c on ARC.
12494 (part_dvh): New module.
12495 * grub-core/commands/arc/lsdev.c: New file.
12496 * grub-core/disk/arc/arcdisk.c: Likewise.
12497 * grub-core/kern/mips/arc/init.c: Likewise.
12498 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
12499 aligned addresses.
12500 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
12501 support.
12502 (grub_arch_dl_relocate_symbols): Likewise.
12503 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
12504 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
12505 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
12506 platforms.
12507 * grub-core/lib/arc/datetime.c: New file.
12508 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
12509 pci.h on non-loongson.
12510 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
12511 (grub_linux_boot): Set unused registers to 0.
12512 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
12513 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
12514 * grub-core/mmap/mips/uppermem.c: ...here.
12515 * grub-core/partmap/dvh.c: New file.
12516 * grub-core/term/arc/console.c: Likewise.
12517 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
12518 (grub_terminfo_set_current): Add terminal "arc".
12519 (grub_terminfo_readkey): Support ARC sequences.
12520 * include/grub/arc/arc.h: New file.
12521 * include/grub/arc/console.h: Likewise.
12522 * include/grub/disk.h (grub_disk_dev_id): Add
12523 GRUB_DISK_DEVICE_ARCDISK_ID.
12524 * include/grub/mips/arc/kernel.h: New file.
12525 * include/grub/mips/arc/memory.h: Likewise.
12526 * include/grub/mips/arc/time.h: Likewise.
12527 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
12528 * include/grub/mips/kernel.h (grub_halt): ... here.
12529 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
12530 here...
12531 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
12532 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
12533 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
12534 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
12535 proto.
12536 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
12537 from here ...
12538 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
12539 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
12540 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
12541 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
12542 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
12543 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
12544 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
12545 (grub_phys_addr_t): Moved from here ...
12546 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
12547 (grub_vtop): Moved from here ...
12548 * include/grub/mips/memory.h (grub_vtop): ... here.
12549 (grub_map_memory): Moved from here ...
12550 * include/grub/mips/memory.h (grub_map_memory): ... here.
12551 (grub_unmap_memory): Moved from here ...
12552 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
12553 (grub_machine_mmap_iterate): Moved from here ...
12554 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
12555 (grub_mmap_get_lower): Moved from here ...
12556 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
12557 (grub_mmap_get_upper): Moved from here ...
12558 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
12559 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12560 here ...
12561 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12562 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
12563 here ...
12564 * include/grub/mips/time.h (grub_get_rtc): ... here.
12565 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12566 here ...
12567 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12568 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
12569 here ...
12570 * include/grub/mips/time.h (grub_cpu_idle): ... here.
12571 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
12572 definition.
12573 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
12574 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
12575 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
12576 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
12577 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12578 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12579 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
12580 (GRUB_MACHINE_LINK_ADDR): Likewise.
12581 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
12582 to 6.
12583 * util/grub-install.in: Run dvhtool on ARC.
12584 * util/grub-mkimage.c (image_targets): Add mips-arc.
12585 (generate_image): Handle ECOFF output for mips-arc.
12586
12587 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12588
12589 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
12590 blocks.
12591
12592 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12593
12594 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
12595 after enabling port.
12596
12597 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12598
12599 Skip incorrect USB devices.
12600
12601 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
12602 configcnt == 0.
12603 * include/grub/usb.h (grub_usb_err_t): New enum value
12604 GRUB_USB_ERR_BADDEVICE.
12605
12606 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12607
12608 Fuloong video init support.
12609
12610 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
12611 well.
12612 (grub_vga_read_arx): New function.
12613 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
12614 definition.
12615 (framebuffer): New members io, mmioptr and mmiobase.
12616 (read_sis_cmd): New function.
12617 (write_sis_cmd): Likewise.
12618 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
12619 rather than 640x400.
12620 * grub-core/video/sis315_init.c: New file.
12621
12622 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12623
12624 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
12625 non-loongson.
12626 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
12627 to grub_dl_register_symbol.
12628
12629 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12630
12631 Fix compilation errors.
12632
12633 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
12634 potentially unused.
12635 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
12636 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
12637 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
12638 to loongson machines.
12639
12640 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12641
12642 Several FS mtime support.
12643
12644 * grub-core/fs/affs.c (grub_affs_time): New struct.
12645 (grub_affs_file): New field mtime.
12646 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
12647 type. Removed 'size'. New field 'di'. All users updated.
12648 (grub_affs_mount): Simplify checsum checking.
12649 (grub_affs_iterate_dir): New helper grub_affs_create_node.
12650 (grub_affs_dir): Handle mtime.
12651 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
12652 (grub_cpio_dir): Likewise.
12653 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
12654 (grub_hfs_filerec): New field mtime.
12655 (grub_hfs_dir): Handle mtime.
12656 (grub_hfs_mtime): New function.
12657 (grub_hfs_fs): Register grub_hfs_mtime.
12658 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
12659 (grub_iso9660_dir): New field mtime.
12660 (grub_fshelp_node): New field dirent.
12661 (iso9660_to_unixtime): New function.
12662 (iso9660_to_unixtime2): Likewise.
12663 (grub_iso9660_read_symlink): Use node->dirent.
12664 (grub_iso9660_iterate_dir): Likewise.
12665 (grub_iso9660_dir): Set mtime.
12666 (grub_iso9660_mtime): New function.
12667 (grub_iso9660_fs): Register grub_iso9660_mtime.
12668 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
12669 (grub_jfs_inode): New fields atime, ctime and mtime.
12670 (grub_jfs_dir): Set mtime.
12671 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
12672 * grub-core/fs/ntfs.c (list_file): Set mtime.
12673 (grub_ntfs_dir): Likewise.
12674 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
12675 (grub_reiserfs_iterate_dir): Set mtime.
12676 (grub_reiserfs_dir): Likewise.
12677 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
12678 (grub_fshelp_node): Likewise.
12679 (grub_sfs_iterate_dir): Set mtime.
12680 (grub_sfs_dir): Likewise.
12681 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
12682 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
12683 (grub_xfs_inode): New fields atime, mtime, ctime.
12684 (grub_xfs_dir): Set mtime.
12685 * include/grub/datetime.h (grub_datetime2unixtime): New function.
12686 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
12687 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
12688
12689 Support UDF symlinks.
12690
12691 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
12692 (grub_ufs_read_symlink): New function. All users updated.
12693
12694 Check amiga partmap checksum.
12695
12696 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
12697 (grub_amiga_partition): Likewise.
12698 (amiga_partition_map_checksum): New function.
12699 (amiga_partition_map_iterate): Check checksum.
12700
12701 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12702
12703 ROMFS support.
12704
12705 * Makefile.util.def (libgrubmods.a): Add romfs.
12706 * grub-core/Makefile.core.def (romfs): New module.
12707 * grub-core/fs/romfs.c: New file.
12708
12709 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12710
12711 Squashfs v4 support.
12712
12713 * Makefile.util.def (libgrubmods.a): Add squash4.
12714 * grub-core/Makefile.core.def (squash4): New module.
12715 * grub-core/fs/squash4.c: New file.
12716 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
12717 disk_input_start, disk_input.
12718 (get_byte): Handle disk_input.
12719 (grub_zlib_disk_read): New function.
12720 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
12721
12722 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12723 2011-05-15 Feiran Zheng <famcool@gmail.com>
12724
12725 * Makefile.util.def (libgrubmods.a): Add minix3.
12726 * grub-core/Makefile.core.def (minix3): New module.
12727 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
12728 (GRUB_MINIX_BSIZE): Removed.
12729 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
12730 (grub_minix_ino_t): New type.
12731 (grub_minix_le_to_cpu_ino): New macro.
12732 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
12733 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
12734 (grub_minix_data): New field block_size.
12735 (grub_minix_read_file): Handle 64-bit correctly.
12736 * grub-core/fs/minix3.c: New file.
12737
12738 2011-05-15 Tristan Gingold <gingold@free.fr>
12739 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
12740 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12741
12742 IA64 support.
12743
12744 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
12745 * configure.ac: Add ia64-efi target.
12746 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
12747 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
12748 * gentpl.py: Add ia64_efi platform.
12749 Rename x86_efi to efi and Add ia64-efi. All users updated.
12750 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
12751 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
12752 Remove kern/generic/rtc_get_time_ms.c on EFI.
12753 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
12754 kern/ia64/dl_helper.c on ia64-efi.
12755 Add kern/emu/cache.c on emu.
12756 (linux): Use on loader/ia64/efi/linux.c on ia64.
12757 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
12758 whether symbol is a function.
12759 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
12760 (grub_symbol): New field 'isfunc'.
12761 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
12762 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
12763 (grub_dl_load_segments): Place all sections into the same region.
12764 [__ia64__]: Create trampolines and got.
12765 [GRUB_MACHINE_EMU]: Call mprotect.
12766 (grub_dl_resolve_symbols): Resolve symbol type as well.
12767 [__ia64__]: Create function descriptors.
12768 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
12769 (grub_rtc_get_time_ms): ... this. Expressions simplified.
12770 (grub_get_rtc): New function.
12771 * grub-core/kern/emu/cache.c [__ia64__]: New file.
12772 * grub-core/kern/emu/cache.S: Renamed to ...
12773 * grub-core/kern/emu/cache_s.S: ... this.
12774 [__ia64__]: Add a nop.
12775 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
12776 [__ia64__]: New function.
12777 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
12778 * grub-core/kern/ia64/dl.c: New file.
12779 * grub-core/kern/ia64/dl_helper.c: Likewise.
12780 * grub-core/kern/ia64/efi/init.c: New file.
12781 * grub-core/kern/ia64/efi/startup.S: Likewise.
12782 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
12783 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
12784 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
12785 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
12786 * grub-core/loader/ia64/efi/linux.c: New file.
12787 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
12788 (GRUB_MOD_DEP): Likewise.
12789 (grub_dl) [__ia64__]: New fields got and tramp.
12790 (grub_dl): New field 'base'.
12791 (grub_dl_register_symbol): New argument isfunc. All users updated.
12792 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
12793 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
12794 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
12795 (grub_ia64_dl_get_tramp_got_size): New proto.
12796 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
12797 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
12798 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
12799 * include/grub/efi/api.h: Skip call wrappers on ia64.
12800 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
12801 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
12802 * include/grub/elf.h (ELF_ST_INFO): New definition.
12803 * include/grub/ia64/efi/kernel.h: New file.
12804 * include/grub/ia64/efi/memory.h: Likewise.
12805 * include/grub/ia64/efi/time.h: Likewise.
12806 * include/grub/ia64/kernel.h: Likewise.
12807 * include/grub/ia64/setjmp.h: Likewise (from glibc).
12808 * include/grub/ia64/time.h: New file.
12809 * include/grub/ia64/types.h: Likewise.
12810 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
12811 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
12812 New protos.
12813 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
12814 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12815 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
12816 * util/grub-mkimage.c (image_target_desc): New field pe_target.
12817 All users updated.
12818 (EFI64_HEADER_SIZE): New definition. All users updated.
12819 (image_targets): Add ia64-efi.
12820 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
12821 jumpers_addr. All users updated.
12822 Create function descriptors.
12823 (count_funcs): New function.
12824 (unaligned_uint32): New struct.
12825 (MASK20): New definition.
12826 (MASK19): Likewise.
12827 (MASKF21): Likewise.
12828 (add_value_to_slot_20b): New function.
12829 (add_value_to_slot_21_real): Likewise.
12830 (add_value_to_slot_21): Likewise.
12831 (ia64_kernel_trampoline): New struct.
12832 (nopm): New variable.
12833 (jump): Likewise.
12834 (make_trampoline): New function.
12835 (relocate_addresses): Handle ia64.
12836 (make_reloc_section): Likewise.
12837 (load_image): Likewise.
12838
12839 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12840
12841 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
12842 warning. Move variables before code while on it.
12843
12844 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12845
12846 Fuloong support.
12847
12848 * configure.ac: Rename yeeloong platform to loongson. All users updated.
12849 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
12850 * grub-core/boot/mips/loongson/fuloong.S: New file.
12851 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
12852 Explicitly init CS5536.
12853 [FULOONG]: Don't use serial until CS5536 is available.
12854 Set GPIO based on dumps.
12855 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
12856 [FULOONG]: Handle GPIO and memory controller differences.
12857 Parse machine type in $a2.
12858 * grub-core/boot/mips/startup_raw.S: Determine and save the
12859 architecture.
12860 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
12861 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
12862 init on architecture type.
12863 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12864 SIS315E. Don't init at_keyboard on fuloong.
12865 (grub_halt): Support Fuloong.
12866 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
12867 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
12868 (loongson_machtypes): New array.
12869 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
12870 type.
12871 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
12872 config. All users updated. Handle CS5536 serial.
12873 * grub-core/term/serial.c (grub_serial_register): Conditionalise
12874 default port on machine type. Register serial as inactive.
12875 * grub-core/video/sis315pro.c: New file.
12876 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
12877 definition.
12878 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
12879 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
12880 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
12881 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
12882 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
12883 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
12884 to ...
12885 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
12886 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
12887 definition.
12888 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
12889 (grub_arch_machine): New extern var.
12890 * include/grub/mips/loongson/serial.h
12891 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
12892 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
12893 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
12894 (GRUB_MACHINE_SERIAL_PORT0): ... this.
12895 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
12896 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
12897 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
12898 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
12899 * include/grub/term.h (grub_term_register_input_inactive): New inline
12900 function.
12901 (grub_term_register_output_inactive): Likewise.
12902 * include/grub/video.h (grub_video_driver_id): New value
12903 GRUB_VIDEO_DRIVER_SIS315PRO.
12904 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
12905 New field "names". All users updated.
12906 New field value IMAGE_FULOONG_FLASH.
12907 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
12908
12909 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
12910
12911 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
12912 and add some clarification.
12913
12914 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12915
12916 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
12917 platforms if kernel is compressed.
12918
12919 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12920
12921 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
12922 unused modules since currently referrence counter isn't reliable and
12923 there isn't much memory to recover there anyway.
12924
12925 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12926
12927 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
12928 rather than resetting it to allow modules to reference themselves
12929 in init.
12930
12931 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12932
12933 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
12934 counter on dependencies since grub_dl_unref already handles this.
12935
12936 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12937
12938 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
12939 on error if not already done.
12940
12941 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12942
12943 Fix few potential memory misusage.
12944
12945 * grub-core/font/font.c (load_font_index): Don't free char_index to
12946 avoid double free.
12947 (grub_font_load): Zero-fill font at alloc for safety.
12948 Close file on error.
12949 (free_font): Free bmp_idx.
12950
12951 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12952
12953 * docs/grub.texi (Installation): Fix several outdated claims.
12954
12955 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12956
12957 Handle module_license on windows.
12958
12959 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
12960 sections shifted.
12961 (insert_string): Make argument const char * instead of char *.
12962 (write_section_data): Handle long section names.
12963 Handle module_license.
12964
12965 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12966
12967 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
12968 handle class-free menuentries.
12969 (grub_normal_add_menu_entry): Add a check to be sure.
12970
12971 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12972
12973 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
12974 PgUp and PgDown.
12975
12976 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12977
12978 * configure.ac: Bump version to 1.99.
12979
12980 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12981
12982 Give ATA device a bit more time on first try in order to allow disks
12983 to spin up.
12984
12985 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
12986 if dev->present is 1. Reset dev->present on failure.
12987 (grub_ata_device_initialize): Set dev->present to 1.
12988 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
12989 (grub_ata_device): New member 'present'.
12990
12991 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12992
12993 * util/grub-mkimage.c (generate_image): Update hash.
12994
12995 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12996
12997 Flush caches on DMA memory.
12998
12999 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
13000 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
13001 (grub_dma_free): Likewise.
13002 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
13003
13004 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13005
13006 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
13007 to avoid asm treating ld and sd as macros.
13008
13009 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13010
13011 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
13012 decompressor.
13013
13014 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13015
13016 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
13017 grub_decompress_core since later would fail if grub_decompress_core
13018 is too far.
13019
13020 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13021
13022 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
13023 R_MIPS_JALR since it's used by newer compiler.
13024
13025 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
13026
13027 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
13028
13029 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13030
13031 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
13032 file_path to 0 for surety.
13033 (grub_chainloader_boot): Set exit_data to NULL.
13034 Unset the loader once done.
13035 (grub_cmd_chainloader): Fix confusing error message if file is empty.
13036
13037 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13038
13039 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
13040 unknown key into a dprintf.
13041
13042 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13043
13044 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
13045 on first non-existant partition.
13046
13047 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13048
13049 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
13050 openning fails.
13051 Reported by: Mark Korenberg.
13052
13053 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13054
13055 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
13056 overflow.
13057
13058 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13059
13060 * util/grub-mkimage.c (main): Explicitely flush and sync the output
13061 before closing to ensure that it will be readable by grub-setup.
13062
13063 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13064
13065 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
13066 (devpath_1): Use MAKE_PIWG_PATH.
13067 (devpath_2): Likewise.
13068 (devpath_3): Likewise.
13069 (devpath_4): Likewise.
13070 (devpath_5): Likewise.
13071 (devpath_6): Likewise.
13072
13073 The appleldr.mod was checked that to be binary identical to previous
13074 version.
13075
13076 2011-05-05 Zach <mikezackles>
13077
13078 Support 2010 Macbooks.
13079
13080 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
13081 (devs): Add devpath_6.
13082
13083 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13084
13085 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
13086 /dev/random. /dev/urandom is good enough for our purposes (salting).
13087
13088 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13089
13090 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
13091
13092 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13093
13094 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
13095 hexadecimal.
13096
13097 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13098
13099 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
13100 and not 0 on failure.
13101
13102 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
13103
13104 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
13105 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
13106 disk; otherwise grub_fs_probe will not fall back to the next
13107 filesystem.
13108 (grub_pxefs_open): Likewise, for consistency.
13109 Reported and tested by: Ezekiel Grave.
13110
13111 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
13112
13113 * tests/partmap_test.in: Don't hardcode path to parted.
13114 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
13115
13116 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
13117
13118 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
13119 of `ls' to find out which devices are available.
13120
13121 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13122
13123 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
13124 than source address for efi mmap buffer.
13125
13126 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13127
13128 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
13129 wrong action on non-detecting the magic.
13130
13131 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13132
13133 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
13134 already supplied by another part of the module (fixes compilation on
13135 FreeBSD).
13136
13137 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13138
13139 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
13140 match the one used by mdadm.
13141
13142 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13143
13144 * po/README: Add instructions for creating po/LINGUAS.
13145
13146 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13147
13148 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
13149 #551428.
13150
13151 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
13152 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
13153 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
13154 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
13155 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
13156 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
13157 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
13158 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
13159 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
13160 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
13161 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
13162 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
13163 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
13164 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
13165 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
13166 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
13167 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
13168 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
13169 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
13170 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
13171 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
13172 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
13173
13174 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13175
13176 * grub-core/kern/emu/getroot.c
13177 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
13178 test that was incorrectly reintroduced in r3214.
13179 Reported by: Ian Dall. Fixes Savannah bug #33133.
13180
13181 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13182
13183 Fix stack pointer handling in 16-bit relocator.
13184
13185 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
13186 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
13187 Fixes Ubuntu bug #683904.
13188
13189 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13190
13191 * configure.ac: Bump version to 1.99~rc2.
13192
13193 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13194
13195 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
13196 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
13197 * grub-core/lib/x86_64/setjmp.S: Likewise.
13198 * grub-core/lib/mips/setjmp.S: Likewise.
13199 * grub-core/lib/powerpc/setjmp.S: Likewise.
13200 * grub-core/lib/sparc64/setjmp.S: Likewise.
13201
13202 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13203
13204 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
13205 * grub-core/lib/efi/datetime.c: Likewise.
13206
13207 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13208
13209 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
13210 New function.
13211 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
13212 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
13213 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
13214
13215 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13216
13217 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
13218 bitmap.
13219 (grub_gfxterm_term_init): Likewise.
13220
13221 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13222
13223 Take into account the decorations the computing menu entry width.
13224
13225 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
13226 (grub_gfxmenu_create_box): Register get_border_width.
13227 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
13228 if available.
13229 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
13230 get_border_width.
13231
13232 2011-04-18 Endres Puschner <code@e7p.de>
13233
13234 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
13235 Don't skip first class.
13236
13237 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13238
13239 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
13240 chunks.
13241 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
13242
13243 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13244
13245 Complete 64-bit division support.
13246
13247 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
13248 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
13249 * include/grub/misc.h (grub_divmod64): Rename to ...
13250 (grub_divmod64_full): ... this.
13251 (grub_divmod64): New inline function.
13252
13253 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13254
13255 * util/grub-mkimage.c (generate_image): Add forgotten comma.
13256
13257 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13258
13259 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
13260 performing the necessary test.
13261
13262 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13263
13264 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
13265 (kfreebsd.elf): Likewise.
13266 (pc-chainloader.elf): Likewise.
13267 (ntldr.elf): Likewise.
13268
13269 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13270
13271 Identify RAID by its UUID rather than (guessed) name.
13272
13273 * grub-core/disk/raid.c (ascii2hex): New function.
13274 (grub_raid_open): Accept mduuid/%s specification.
13275 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
13276 (get_mdadm_uuid): ... this.
13277 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
13278
13279 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
13280
13281 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
13282 to negative size.
13283
13284 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
13285
13286 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
13287 btrfs subvolume.
13288 * util/grub.d/20_linux_xen.in: Likewise.
13289
13290 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
13291
13292 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
13293 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
13294
13295 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
13296 Build a list of relevant visible mounts using the mnt_id and
13297 parent_mnt_id fields, and then scan that list at the end.
13298
13299 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13300
13301 * docs/grub.texi (normal): New section.
13302 (normal_exit): New section.
13303 (Embedded configuration): Add reference to normal.
13304 (GRUB only offers a rescue shell): Likewise.
13305 * docs/grub-dev.texi (Error Handling): Fix typo.
13306
13307 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13308
13309 * NEWS: Drop obsolete entry about probe-only btrfs support.
13310
13311 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13312
13313 * util/import_gcry.py: Fix typo.
13314
13315 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13316
13317 * NEWS: Add btrfs support.
13318
13319 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13320 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
13321
13322 BtrFS support. Written by me (Vladimir) with important bugfixes and
13323 even more important testing by Colin.
13324
13325 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
13326 * grub-core/Makefile.core.def (btrfs): Add crc.c.
13327 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
13328 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
13329 mem_input_off and mem_input. All users updated to accept in-RAM input.
13330 (gzio_seek): New function.
13331 (test_zlib_header): Likewise.
13332 (grub_gzio_read): Likewise.
13333 (grub_zlib_decompress): Likewise.
13334 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
13335 Accept partial and non-virtual mounts.
13336 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
13337 avoid receiving /dev/dm-X as device.
13338 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
13339 Handle bind and partial mounts.
13340 * grub-core/lib/crc.c: New file.
13341 * include/grub/deflate.h: Likewise.
13342 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
13343 proto.
13344 * include/grub/lib/crc.h: New file.
13345
13346 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13347
13348 Implement automatic module license checking according to new GNU
13349 guidelines.
13350
13351 * grub-core/kern/dl.c (grub_dl_check_license): New function.
13352 (grub_dl_load_core): Use grub_dl_check_license.
13353 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
13354 (GRUB_MOD_LICENSE): Likewise.
13355 (GRUB_MOD_DUAL_LICENSE): Likewise.
13356 All modules updated.
13357
13358 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
13359
13360 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
13361 reserved_first_sector to 1. btrfs reserves plenty of space for boot
13362 loaders.
13363 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
13364
13365 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13366
13367 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
13368
13369 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13370
13371 * util/grub-fstest.c (read_file): Report GRUB error if file opening
13372 failed.
13373
13374 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13375
13376 * grub-core/kern/file.c (grub_file_open): Don't take into account the
13377 parenthesis in the middle of the filename.
13378
13379 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13380
13381 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
13382 rather than trying to put initrd way too high.
13383 Reported by: Ryan Lortie <desrt@desrt.ca>
13384
13385 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13386
13387 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
13388 improperly removed string.
13389
13390 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13391
13392 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
13393 is_disk.
13394 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
13395 (open_device) Likewise.
13396 (grub_util_biosdisk_close): Likewise.
13397 Reported by: Mark Korenberg.
13398
13399 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
13400
13401 * util/grub-mkconfig_lib.in: Add missing quotes.
13402
13403 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
13404
13405 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
13406 is NULL.
13407
13408 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13409
13410 Dynamically count the number of lines for the lower banner.
13411
13412 * grub-core/normal/menu_entry.c (per_term_screen): New member
13413 num_entries.
13414 (print_down): Use num_entries.
13415 (update_screen): Likewise.
13416 (grub_menu_entry_run): Set num_entries.
13417 * grub-core/normal/menu_text.c (menu_viewer_data): New member
13418 num_entries.
13419 (grub_print_message_indented): Move real part to ...
13420 (grub_print_message_indented_real): ... here. Additional argument
13421 dry_run.
13422 (draw_border): Additional argument num_entries.
13423 (print_message): Additional argument dry_run.
13424 (print_entries): Receive menu viewer data.
13425 (grub_menu_init_page): New argment num_entries.
13426 (menu_text_set_chosen_entry): Use num_entries.
13427 (grub_menu_try_text): Likewise.
13428 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
13429 All users updated.
13430 (grub_ucs4_count_lines): New function.
13431 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
13432 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
13433 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
13434 (grub_term_border_height): Likewise.
13435 (grub_term_num_entries): Likewise.
13436
13437 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13438
13439 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
13440 Remove now unused string.
13441
13442 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
13443
13444 * docs/grub-dev.texi (Finding your way around): Update for 1.99
13445 build system.
13446 (Getting started): GRUB is developed in Bazaar now, not Subversion.
13447
13448 (Comment): Fix typo.
13449 (Getting started): General copy-editing.
13450 (Typical Development Experience): Likewise.
13451 (Error Handling): Likewise.
13452 (Video API): Likewise.
13453
13454 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
13455
13456 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
13457 throughout.
13458
13459 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13460
13461 * util/grub-mkimage.c (main): Handle special naming of yeeloong
13462 directory.
13463
13464 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
13465
13466 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
13467 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
13468 "development".
13469
13470 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13471
13472 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
13473 grub_strcpy since the lines aren't necessarily 0-terminated.
13474
13475 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13476
13477 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
13478 root on legacy.
13479
13480 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13481
13482 * grub-core/commands/probe.c (options): Argument to set isn't optional.
13483 (GRUB_MOD_INIT): DEVICE isn't optional.
13484
13485 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13486
13487 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
13488 word on new line if it's too long anyway. Fixes a hang.
13489
13490 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13491
13492 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
13493 const.
13494 * util/grub-setup.c (main): Reuse md device name if available.
13495 * util/raid.c (grub_util_raid_getmembers): Receive device name and
13496 not GRUB name as argument.
13497 Based on patch by: Florian Wagner <fwagner>.
13498
13499 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13500
13501 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13502 Place mbi on low memory for better compatibility.
13503
13504 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13505
13506 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
13507
13508 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13509 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
13510
13511 * autogen.sh: Ensure that collate and ctype locale is C.
13512 * conf/Makefile.common: Likewise.
13513
13514 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13515
13516 * grub-core/normal/menu.c: Add missing include.
13517
13518 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13519
13520 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
13521
13522 2011-04-08 Martin Zuther <mzuther@mzuther.de>
13523
13524 * util/grub-mkconfig.in: Ignore emacsen backup.
13525
13526 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13527
13528 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
13529 on open.
13530 (grub_util_biosdisk_close): Likewise.
13531
13532 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13533
13534 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
13535 const attribute and use grub_isdigit.
13536
13537 2011-04-06 Andrey <dev_null@ukr.net>
13538
13539 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
13540 gcc warning.
13541
13542 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13543
13544 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
13545 useful grub_dprintf's.
13546
13547 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13548
13549 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
13550
13551 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13552
13553 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
13554
13555 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13556
13557 Output errors if theme loading failed.
13558
13559 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
13560 grub_gfxterm_fullscreen on error paths to ...
13561 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
13562 theme loading error.
13563
13564 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13565
13566 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
13567 space for older compilers.
13568 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13569
13570 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13571
13572 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
13573 and report them as not RAID members since they are useless for GRUB.
13574 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13575
13576 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13577
13578 Increase LVM implementation robustness in order not to crash on
13579 configurations like pvmove. Previously code assumed that in some places
13580 only lvs or only pvs are used whereas it seems that they are used
13581 interchangeably.
13582
13583 * grub-core/disk/lvm.c (read_node): New function.
13584 (read_lv): Use read_node.
13585 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
13586 Match volumes only at the end when all lvs are found. Take both
13587 pvs (first) and lvs (second) into account.
13588 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
13589 mirror_* into node_*. All users updated.
13590 (grub_lvm_stripe): Merge this ...
13591 (grub_lvm_mirror): ... and this ...
13592 (grub_lvm_node): ... into this. All users updated.
13593
13594 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13595
13596 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
13597 of function to allow further scanning for LVMs.
13598
13599 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13600
13601 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
13602 on failed seek as it breaks open fd reusage.
13603
13604 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13605
13606 * util/grub-install.in: Add a recommendation to use --recheck before
13607 reporting bugs.
13608
13609 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13610
13611 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
13612 are obtained.
13613
13614 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13615
13616 GRUB developper manual based on existing Internals section and
13617 contributions by the various authors with active copyright assignment.
13618
13619 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
13620 * docs/font_char_metrics.png: New file.
13621 * docs/font_char_metrics.txt: Likewise.
13622 * docs/grub-dev.texi: Likewise.
13623 * docs/grub.texi (Internals): Move from here ...
13624 * docs/grub-dev.texi: ... here.
13625
13626 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13627
13628 Store the loopback device as data on loopback grub_disk structures,
13629 rather than the file it points to. This fixes use of freed memory
13630 if an existing loopback device is replaced.
13631
13632 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
13633 disk->data, not dev->file.
13634 (grub_loopback_read): Adjust file assignment to match.
13635 Fixes Ubuntu bug #742967.
13636
13637 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13638
13639 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
13640 when replacing an existing device.
13641
13642 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
13643
13644 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
13645 memory corruptions.
13646
13647 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
13648 unsigned.
13649 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
13650 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
13651 (grub_jfs_read_inode): Likewise.
13652 (grub_jfs_opendir): Likewise. Remove now useless casts.
13653 (grub_jfs_getent): Likewise.
13654 Make ino a grub_uint32_t rather than int.
13655 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
13656 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
13657 division and module with bit operations.
13658 (grub_jfs_find_file): Make ino a grub_uint32_t.
13659 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
13660
13661 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13662
13663 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
13664 warning. (This was in fact always initialised before use, but GCC
13665 wasn't smart enough to prove that.)
13666 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13667
13668 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
13669
13670 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
13671 stack alignment.
13672 (efi_wrap_1): Likewise.
13673 (efi_wrap_2): Likewise.
13674 (efi_wrap_3): Likewise.
13675 (efi_wrap_4): Likewise.
13676 (efi_wrap_5): Likewise.
13677 (efi_wrap_6): Likewise.
13678 (efi_wrap_10): Likewise.
13679 Based on information by: Red Hat/Peter Jones.
13680
13681 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13682
13683 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
13684 set-but-not-used variable.
13685
13686 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13687
13688 * docs/grub.texi (Simple configuration): Be more explicit about
13689 GRUB_DEFAULT, and add an example.
13690 Reported by: Leslie Rhorer.
13691
13692 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13693
13694 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
13695 shell".
13696
13697 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13698
13699 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
13700 * util/grub.d/20_linux_xen.in: Likewise.
13701
13702 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13703
13704 * util/grub.d/10_linux.in: Try alternative config filenames where
13705 we parse config file.
13706 * util/grub.d/20_linux_xen.in: Likewise.
13707
13708 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13709
13710 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
13711 * util/grub.d/20_linux_xen.in: Likewise.
13712
13713 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13714
13715 * grub-core/disk/raid.c (insert_array): Add few potentially
13716 useful grub_util_info.
13717 (grub_raid_register): Likewise.
13718
13719 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13720
13721 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
13722 Preserve partition number in mdadm code path.
13723
13724 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13725
13726 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
13727 few potentially useful grub_util_info.
13728
13729 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13730
13731 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
13732
13733 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13734
13735 * docs/grub.texi (default): Use @example rather than nested
13736 itemized lists to avoid breaking gendocs.
13737
13738 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13739
13740 * docs/grub.texi (Future): Update.
13741
13742 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13743
13744 * docs/grub.texi (Environment): New chapter.
13745 (Changes from GRUB Legacy): Link to "Environment block" section for
13746 details of limitations.
13747 (Simple configuration): Likewise. Link to documentation of gfxmode
13748 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
13749 respectively.
13750 (Shell-like scripting): Note that normal variables are stored in the
13751 environment.
13752 (gettext): Link to documentation of lang and locale_dir.
13753 (list_env): New section.
13754 (load_env): New section.
13755 (save_env): New section.
13756
13757 (Reporting bugs): Fix typo.
13758
13759 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13760
13761 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
13762 the example.
13763
13764 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13765
13766 * grub-core/term/at_keyboard.c (set_scancodes)
13767 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
13768
13769 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13770
13771 * docs/grub.texi (Menu-specific commands): Remove some semantics
13772 that were true in GRUB Legacy but not in GRUB 2.
13773 (submenu): New section.
13774 (false): New section.
13775 (read): New section.
13776 (true): New section.
13777
13778 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13779
13780 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
13781
13782 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13783
13784 * docs/grub.texi (Simple configuration): Explain some of the
13785 current limitations of grub-mkconfig.
13786 Reported by: Leslie Rhorer.
13787
13788 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13789
13790 Old macs search for boot.efi rather than for bootia32.efi.
13791
13792 * util/grub-install.in: Copy bootia32.efi to boot.efi.
13793 * util/grub-mkrescue.in: Likewise.
13794 Suggested by: Peter Jones.
13795
13796 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13797
13798 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
13799
13800 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13801
13802 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
13803 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
13804 (grub_lvm_mirror): New struct.
13805 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
13806 (grub_lvm_iterate): Iterate only visible volumes.
13807 (grub_lvm_read): Factor out to ..
13808 (read_lv): ... this. Support mirrors.
13809 (grub_lvm_read): New wrapper function.
13810 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
13811 stripped or mirrored.
13812
13813 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13814
13815 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
13816
13817 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13818
13819 * docs/grub.texi (loopback): New section.
13820
13821 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13822
13823 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
13824 removed -p option.
13825
13826 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13827
13828 * docs/grub.texi (BIOS installation): New section, partly based on
13829 previous text in other sections.
13830 (Installing GRUB using grub-install): Replace BIOS discussion with a
13831 cross-reference.
13832 (Images): Likewise.
13833
13834 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13835
13836 * grub-core/kern/emu/hostdisk.c (find_partition_start)
13837 [HAVE_DIOCGDINFO]: Add safety checks.
13838
13839 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13840
13841 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
13842 per default compiled in kernel and prior to 8.0 isn't shipped at all.
13843
13844 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13845
13846 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
13847 real_sb->size is zero (e.g. RAID-0), get the disk size from
13848 real_sb->data_size instead.
13849 Fixes Ubuntu bug #743136.
13850
13851 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13852
13853 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
13854 printf clauses for printing size and start.
13855
13856 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13857
13858 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
13859 Reported and tested by: Timothy Nikkel.
13860
13861 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13862
13863 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
13864 (dirty_region_add_real): ... this.
13865 (dirty_region_add): Don't discard margin refresh when performing
13866 scheduled repaint.
13867
13868 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13869
13870 * grub-core/lib/relocator.c (allocate_regstart)
13871 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
13872 terminals are capabple of malloc-free operation.
13873 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13874 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13875
13876 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
13877
13878 * util/grub-setup.c: Copy the partition table zone if floppy support
13879 is disabled, even if no partition table is found.
13880
13881 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
13882 during POST if an invalid partition table is contained in the PBR
13883 of the active partition when GRUB is installed to a partition.
13884
13885 2011-03-28 Colin Watson <cjwatson@debian.org>
13886
13887 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
13888 comment.
13889
13890 2011-03-28 Colin Watson <cjwatson@debian.org>
13891
13892 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
13893 to be specific about what kind of RAID device we're scanning for.
13894
13895 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
13896
13897 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
13898 return freed string.
13899
13900 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13901
13902 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
13903
13904 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13905
13906 Use libgeom on FreeBSD to detect partitions.
13907
13908 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
13909 (grub-mkrelpath): Likewise.
13910 (grub-script-check): Likewise.
13911 (grub-editenv): Likewise.
13912 (grub-mkpasswd-pbkdf2): Likewise.
13913 (grub-fstest): Likewise.
13914 (grub-mkfont): Likewise.
13915 (grub-mkdevicemap): Likewise.
13916 (grub-probe): Likewise.
13917 (grub-setup): Likewise.
13918 (grub-ofpathname): Likewise.
13919 (grub-mklayout): Likewise.
13920 (example_unit_test): Likewise.
13921 (grub-menulst2cfg): Likewise.
13922 * grub-core/Makefile.core.def (grub-emu): Likewise.
13923 (grub-emu-lite): Likewise.
13924 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
13925 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
13926 define HAVE_DIOCGDINFO.
13927 (follow_geom_up) [FreeBSD]: New function.
13928 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
13929 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
13930 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
13931 unconditionally of HAVE_DIOCGDINFO.
13932
13933 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13934
13935 Fix FreeBSD compilation problem.
13936
13937 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
13938 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
13939
13940 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
13941
13942 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
13943 Switch back to page zero before loading a kernel, since some kernel
13944 drivers expect that.
13945 Thanks to: Felix Kuehling.
13946
13947 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13948
13949 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
13950 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
13951 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
13952
13953 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13954
13955 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
13956 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
13957
13958 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13959
13960 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
13961 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
13962 malloc is disabled.
13963
13964 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13965
13966 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
13967 for modules headers when counting the needed allocation size.
13968
13969 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13970
13971 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
13972 if no ASCII character is found to prevent crash.
13973
13974 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
13975
13976 * grub-core/video/bitmap.c (match_extension): Ignore case.
13977
13978 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13979
13980 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
13981
13982 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13983
13984 * grub-core/script/parser.y: Declare "time" as valid argument.
13985
13986 2011-03-23 Peter Jones <pjones@redhat.com>
13987
13988 Fix incorrect assert failure reporting.
13989
13990 * grub-core/tests/example_functional_test.c (example_test): Add
13991 a failure comment.
13992 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
13993 (failure_start): ...this. Check that malloc succeeded.
13994 Don't call xvasprintf. Return failure struct.
13995 (failure_append_vtext): New function.
13996 (failure_append_text): Likewise.
13997 (add_failure): Likewise.
13998 (grub_test_assert_helper): Likewise.
13999 * include/grub/test.h (grub_test_assert_helper): New declaration.
14000 (grub_test_assert): Macro rewritten.
14001
14002 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14003
14004 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
14005
14006 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14007
14008 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
14009
14010 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14011
14012 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
14013 into GRUB-style one.
14014
14015 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14016
14017 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
14018 error and not grub_errno.
14019 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
14020
14021 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14022
14023 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
14024 GRUB_USB_SPEED_NONE in case of failure and not the error code.
14025
14026 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14027
14028 * grub-core/efiemu/i386/pc/cfgtables.c
14029 (grub_machine_efiemu_init_tables): Make declaration a prototype.
14030 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
14031 (grub_xnu_unlock): Likewise.
14032 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
14033
14034 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14035
14036 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
14037 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
14038 * grub-core/commands/hashsum.c (aliases): Likewise.
14039 * grub-core/commands/setpci.c (pci_registers): Likewise.
14040 * grub-core/disk/usbms.c (attach_hook): Likewise.
14041 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
14042 (zio_checksum_table): Likewise.
14043 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
14044 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
14045 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
14046 * grub-core/lib/relocator.c (leftovers): Likewise.
14047 (extra_blocks): Likewise.
14048 * grub-core/loader/i386/bsd.c (relocator): Likewise.
14049 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
14050 (modules_last): Likewise.
14051 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
14052 (devices): Likewise.
14053 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
14054 (modules_last): Likewise.
14055 * grub-core/normal/auth.c (users): Likewise.
14056 * grub-core/normal/context.c (initial_menu): Likewise.
14057 (current_menu): Likewise.
14058 * grub-core/normal/crypto.c (crypto_specs): Likewise.
14059 * grub-core/term/serial.c (grub_serial_ports): Likewise.
14060 (grub_serial_terminfo_input_template): Likewise.
14061 (grub_serial_terminfo_output_template): Likewise.
14062 (grub_serial_terminfo_input): Likewise.
14063 (grub_serial_terminfo_output): Likewise.
14064 (registered): Likewise.
14065 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
14066
14067 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14068
14069 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
14070 grub_video_mode_type_t.
14071 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
14072 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
14073 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
14074
14075 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14076
14077 * util/grub-install.in: Correct the x86-64 name as x86_64.
14078
14079 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
14080
14081 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
14082 initial chunk read from the kernel always includes GRUB's multiboot
14083 header, which is now outside the first sector.
14084
14085 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
14086
14087 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
14088 cached mmap_size, so that this works correctly when called multiple
14089 times.
14090 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
14091
14092 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
14093
14094 * docs/grub.texi (Simple configuration): Tidy up formatting.
14095
14096 2011-03-07 Szymon Janc <szymon@janc.net.pl>
14097
14098 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
14099 Set-but-not-used variable removed.
14100
14101 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
14102
14103 Workaround yet another IEEE1275 bug.
14104
14105 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
14106 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
14107 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
14108 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
14109 is set.
14110 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
14111 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
14112
14113 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
14114
14115 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
14116 error.
14117
14118 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
14119
14120 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
14121 empty, since in that case we can only generate either nothing or a
14122 syntactically invalid configuration file.
14123 Reported by: Michal Suchanek. Fixes Debian bug #612898.
14124
14125 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
14126
14127 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
14128 (Making a GRUB bootable CD-ROM): Likewise.
14129 (Invoking grub-mkrescue): New section.
14130 Reported by: Yann Dirson. Fixes Debian bug #612585.
14131
14132 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
14133
14134 * util/grub-install.in: Remove unnecessary brackets from tr
14135 arguments.
14136 * util/grub.d/10_hurd.in: Likewise.
14137 * util/grub.d/10_kfreebsd.in: Likewise.
14138 * util/grub.d/10_linux.in: Likewise.
14139 * util/grub.d/20_linux_xen.in: Likewise.
14140 Reported by: Jamie Heilman. Fixes Debian bug #612564.
14141
14142 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
14143
14144 * include/grub/file.h (not_easly_seekable): Rename to ...
14145 (not_easily_seekable): ... this. Update all users.
14146
14147 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
14148
14149 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
14150 grub-mkrescue.
14151
14152 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14153
14154 * util/grub-mkimage.c (generate_image): Refuse to create the images
14155 bigger than the actual flash (512K) in Loongson machines. 512K is also
14156 the biggest chip supported by them.
14157
14158 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14159
14160 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
14161
14162 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
14163
14164 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
14165 super_offset field.
14166
14167 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14168
14169 * util/grub-install.in: Ignore install device on platforms
14170 where it doesn't make sense. Always use UUIDs except on pc, efi and
14171 sparc64.
14172 Reported by: Daniel Kahn Gillmor.
14173
14174 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14175
14176 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
14177
14178 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14179
14180 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
14181 (iterate_real): Don't rely on partition being non-NULL.
14182
14183 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14184
14185 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
14186 supported platforms. Put a compile time assert for this rather than
14187 generate a warning with 32-bit shift.
14188
14189 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14190
14191 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
14192 logical expression more readable.
14193
14194 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14195
14196 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
14197 even if some elements have a name.
14198 Reported by: Alexander GQ Gerasiov.
14199
14200 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
14201
14202 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
14203 path unreadable if `grub-probe -t abstraction' fails, for example if
14204 memberlist fails on an LVM volume group.
14205 Reported by: Darius Jahandarie.
14206
14207 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
14208
14209 * docs/grub.texi (Simple configuration): Document
14210 GRUB_PRELOAD_MODULES.
14211
14212 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
14213
14214 * .bzrignore: Remove nonexistent grub-pbkdf2.
14215
14216 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
14217
14218 * configure.ac: Bump version to 1.99~rc1.
14219
14220 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
14221
14222 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
14223 for safety.
14224
14225 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14226
14227 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
14228 module.
14229
14230 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14231
14232 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
14233
14234 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14235
14236 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
14237 diskdevid.
14238
14239 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14240
14241 Fix compilation on cygwin.
14242
14243 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
14244 -R .drectve on cygwin.
14245 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
14246 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
14247 (COND_CYGWIN): New condition.
14248 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
14249 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
14250 not @TARGET_OBJ2ELF@.
14251 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
14252 type to determine whether aux is to be used.
14253
14254 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14255
14256 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
14257 realpath'ed device string.
14258 Handle floppy (somewhat).
14259 Issue error in unknown case rather than garbage.
14260 Reported by: Axel Beckert.
14261
14262 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14263
14264 * util/grub.d/00_header.in (load_video): Handle the case when no video
14265 drivers available.
14266 Thanks to: Axel Beckert.
14267
14268 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14269
14270 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
14271 variable. Fixes problem on big endian platforms.
14272
14273 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14274
14275 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
14276 It doesn't work well there.
14277
14278 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14279
14280 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
14281 warning.
14282 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
14283 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
14284 counter.
14285
14286 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14287
14288 Use alias->path rather than buggy "canon".
14289
14290 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
14291 (ofdisk_hash_add): New argument curcan. All users updated.
14292
14293 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
14294
14295 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
14296
14297 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14298
14299 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
14300 loadmask before doing any calculations. Use correct type for offset.
14301 (grub_linux_load64): Likewise.
14302
14303 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
14304
14305 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
14306 with NULL.
14307 (console_grub_equivalences_unshift): Likewise.
14308 Reported by: Daniel Dehennin.
14309
14310 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14311
14312 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
14313 (set_env_limn_ro): Likewise.
14314 (GRUB_MOD_INIT): Likewise.
14315 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
14316 ARRAY_SIZE while on it.
14317 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
14318 * grub-core/normal/context.c (grub_env_export): Move from here ...
14319 * grub-core/kern/env.c (grub_env_export): ... here.
14320 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
14321 prefix.
14322 * grub-core/kern/main.c (grub_main): Export root and prefix.
14323 * include/grub/env.h (grub_env_export): Export.
14324 Reported by: Seth Goldberg.
14325
14326 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14327
14328 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14329 Take into account space used by ELF sections and multiboot palette.
14330 Reported by: Grégoire Sutre.
14331
14332 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14333
14334 * BUGS: New file.
14335
14336 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14337
14338 Pass more appropriate video id to Linux.
14339
14340 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
14341 grub_video_get_driver_id and variable gfxpayloadforcelfb to
14342 fill have_vga.
14343 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
14344 shift params->lfb_size.
14345 * include/grub/i386/linux.h: Make an enume out of have_vga values.
14346
14347 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14348
14349 * util/grub-menulst2cfg.c: Add missing include of misc.h.
14350
14351 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14352
14353 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
14354 separator and pass bootpath/devid even if only one of them is available.
14355 Reported by: Seth Goldberg.
14356
14357 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14358
14359 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
14360 implementations bug on them.
14361
14362 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
14363 memory.
14364 (filter_memory_map): Likewise.
14365
14366 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14367
14368 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
14369 Reported by: nebuchadnezzar.
14370
14371 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14372
14373 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
14374 Reported by: nebuchadnezzar.
14375
14376 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14377
14378 Submenu default support.
14379
14380 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
14381 auto_boot. All users updated.
14382 Declared static.
14383 Handle chosen and default with submenus.
14384 (grub_menu_execute_with_fallback): Declared static.
14385 Don't notify failure if autobooted. Upper level does it.
14386 (menuentry_eq): New function.
14387 (get_entry_number): Use menuentry_eq.
14388 (show_menu): New parameter "autobooted". All users updated.
14389 (grub_show_menu): Likewise.
14390 * include/grub/normal.h (grub_show_menu): Likewise.
14391 * include/grub/menu.h (grub_menu_execute_entry): Removed.
14392 (grub_menu_execute_with_fallback): Likewise.
14393
14394 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14395
14396 * util/grub-mklayout.c (usage): Update help text.
14397
14398 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14399
14400 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
14401
14402 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14403
14404 * util/grub-menulst2cfg.c (main): Trim the line.
14405
14406 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14407
14408 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
14409 (grub_machine_init): Don't check amount of low memory as reportedly
14410 INT 12h can be broken and if low memory is too low we wouldn't have
14411 gotten into grub_machine_init anyway.
14412
14413 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14414
14415 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
14416 (grub_machine_mmap_iterate): Take low memory into account
14417
14418 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14419
14420 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
14421 badfs.
14422 Reported by: TiCPU.
14423
14424 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14425
14426 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
14427 members errors.
14428
14429 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14430
14431 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
14432 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
14433
14434 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14435
14436 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
14437 openbsd and netbsd types being in part_bsd module.
14438
14439 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14440
14441 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
14442 (_FILE_OFFSET_BITS): Likewise.
14443 Reported by: Seth Goldberg.
14444
14445 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
14446
14447 * configure.ac: Check for libdevmapper header.
14448
14449 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14450
14451 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
14452 avoid aliasing.
14453 (fzap_lookup): Likewise.
14454 (dnode_get): Likewise.
14455 (make_mdn): Likewise.
14456 (zfs_mount): Likewise.
14457 (fzap_iterate): Use temporary pointer to avoid aliasing.
14458 (grub_zfs_read): Likewise.
14459 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
14460 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
14461 pointers to avoid aliasing.
14462 (grub_cmd_xnu_kernel64): Likewise.
14463 (grub_xnu_load_driver): Likewise.
14464
14465 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14466
14467 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
14468 aliasing warning.
14469 (grub_cmd_terminal_output): Likewise.
14470 Reported and tested by: Grégoire Sutre.
14471
14472 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14473
14474 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
14475 warning.
14476 Reported and tested by: Grégoire Sutre.
14477
14478 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14479
14480 * configure.ac: Do CPU substitution even if it's specified explicitly.
14481 Reported and tested by: Alain Greppin.
14482
14483 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14484
14485 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
14486 Reported and tested by: Alain Greppin.
14487
14488 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14489
14490 Satisfy some bison versions need for inttypes.h.
14491
14492 * grub-core/lib/posix_wrap/inttypes.h: New file.
14493 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
14494 (int16_t): Likewise.
14495 (int32_t): Likewise.
14496 (int64_t): Likewise.
14497 Reported and tested by: Alain Greppin.
14498
14499 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14500
14501 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
14502 Silence spurious warning.
14503 Reported and tested by: Alain Greppin.
14504
14505 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14506
14507 * docs/grub.texi (Support automatic decompression): Update with xz
14508 decompression support.
14509
14510 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14511
14512 Improve loaders' kernel command line handling.
14513
14514 * grub-core/lib/cmdline.c: New file.
14515 * include/grub/lib/cmdline.h: Likewise.
14516 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
14517 grub_create_loader_cmdline to create kernel command line.
14518 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14519 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
14520 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
14521 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
14522 (linux): Add lib/cmdline.c on common.
14523
14524 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14525
14526 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
14527 inopos might be unaligned.
14528
14529 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14530
14531 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
14532 endian transformations.
14533 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14534 Based on report by: Doug Nazar.
14535
14536 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
14537
14538 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
14539 array->members[i].start_sector.
14540 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
14541
14542 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14543
14544 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
14545 Reported and tested by: Grégoire Sutre.
14546
14547 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14548
14549 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
14550 avoid causing test failures by clearing the screen.
14551
14552 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14553
14554 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
14555 Fix prefix check to handle the case where dir ends with a slash
14556 (most significantly, "/" itself).
14557 Reported by: Michael Vogt.
14558
14559 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14560
14561 Run terminfo_cls on initing terminfo output to clear the screen and
14562 move the cursor to (0,0).
14563
14564 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
14565 Call grub_terminfo_output_init.
14566 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
14567 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
14568 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
14569
14570 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14571
14572 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
14573 only when needed.
14574
14575 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14576
14577 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
14578 CTRL.
14579
14580 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14581
14582 The E820 type 5 is BADRAM, not EXEC_CODE.
14583
14584 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14585 (GRUB_E820_BADRAM): New define.
14586 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
14587 into reserved. Propagate BADRAM.
14588 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14589 (GRUB_E820_BADRAM): New define.
14590
14591 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14592
14593 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
14594 Ignore the memory post-4G.
14595 (grub_relocator_firmware_alloc_region): Additional debug statement.
14596
14597 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14598
14599 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
14600 names.
14601 Reported by: David Pravec.
14602
14603 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14604
14605 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
14606 BIOSes.
14607
14608 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14609
14610 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
14611 Prevent overflow.
14612 (grub_reed_solomon_recover): Likewise.
14613
14614 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14615
14616 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
14617
14618 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14619
14620 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
14621 variable.
14622
14623 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
14624
14625 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
14626 descriptions of extract_legacy_entries_source and
14627 extract_legacy_entries_configfile.
14628 Reported by: Seung Soo, Ha.
14629
14630 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
14631
14632 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
14633 on devices that do not implement function 0.
14634
14635 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
14636
14637 * grub-core/fs/hfsplus.c: Make parent unsigned.
14638 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
14639 overflows.
14640 (grub_hfsplus_cmp_extkey): Likewise
14641
14642 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14643
14644 * util/grub-install.in: Correctly use bootloader_id and not
14645 GRUB_DISTRIBUTOR on efibootmgr line.
14646
14647 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14648
14649 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
14650
14651 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
14652
14653 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
14654 Xen and reorder menu item wording to make it clearer that this entry
14655 will launch Xen. Print separate messages when loading Xen and
14656 Linux.
14657
14658 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14659
14660 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
14661 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
14662 loop in case of incorrect amiga partmap.
14663
14664 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14665
14666 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
14667 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
14668 Reported by:EHeM.
14669
14670 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14671
14672 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
14673 spurious warning.
14674 Reported by: crocket
14675
14676 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14677
14678 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
14679 Preload EFIemu.
14680 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
14681
14682 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14683
14684 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
14685 is loaded
14686 (grub_cmd_xnu_kextdir): Likewise.
14687 (grub_cmd_xnu_splash): Likewise.
14688
14689 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14690
14691 Avoid using Reed-Solomon with 0 redundancy.
14692
14693 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
14694 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
14695 or 0 redundancy.
14696 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
14697 (grub_reed_solomon_recover): Likewise.
14698
14699 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14700
14701 Don't use disk subsystem in freebsd_boot.
14702
14703 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
14704 (freebsd_biosdev): Likewise.
14705 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
14706 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
14707
14708 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14709
14710 Handling of files of unknown size is currently limited. They can't be
14711 used e.g. for initrd or modules. Moreover gzip handling of not
14712 easily seekable files is buggy. Disable unknown file size for now. May
14713 be inefficient but works.
14714
14715 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
14716 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
14717
14718 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
14719
14720 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
14721 floppy probe.
14722
14723 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
14724
14725 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
14726
14727 2010-12-25 Shea Levy <shlevy>
14728
14729 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
14730
14731 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14732
14733 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
14734 Windows Server 2008.
14735 Reported by: Devin Giddings.
14736
14737 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14738
14739 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
14740 writing an error message because of async power management.
14741 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
14742 (grub_reboot): Likewise.
14743
14744 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
14745
14746 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
14747 keep unit tests from failing when they shouldn't.
14748
14749 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14750
14751 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
14752 previous patch increased the size of the RS code by 20 bytes (at
14753 least with gcc-4.4), so increase this by 20 bytes to match.
14754 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14755
14756 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14757
14758 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
14759 scratch area. Make sure to initialise chosen in standalone mode as
14760 well as non-standalone.
14761 Reported by: Robert Hooker and Andy Whitcroft.
14762 Tested by: Andy Whitcroft.
14763
14764 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14765
14766 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
14767 constructing a new unescaped string and passing it to grub_xputs in
14768 one go, rather than passing characters to grub_printf one at a time.
14769
14770 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14771
14772 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
14773 initialising utf16.
14774
14775 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14776
14777 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
14778 comment. Add an extra layer of quotation, requiring the output of
14779 this function to be used in a printf format string.
14780 (gettext_printf): New function.
14781 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
14782 Extract translatable strings from here-documents and use a temporary
14783 variable instead, so that xgettext can find them.
14784 * util/grub.d/10_kfreebsd.in: Likewise.
14785 * util/grub.d/10_linux.in: Likewise.
14786 * util/grub.d/20_linux_xen.in: Likewise.
14787
14788 * po/grub.d.sed: New file.
14789 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
14790 arguments. Set c-format flags on all strings extracted from
14791 util/grub.d/ (xgettext refuses to include these itself for strings
14792 it extracted from a shell file, but these really are c-format).
14793
14794 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14795
14796 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
14797 Avoid next pointing to nowhere.
14798
14799 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14800
14801 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
14802 rather than assuming than rootblock is exactly in the middle.
14803 (grub_affs_label): Likewise.
14804
14805 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14806
14807 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
14808 reserved_first_sector to 0.
14809 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
14810 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
14811 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
14812
14813 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14814
14815 Fix handling of UTF-16 UDF labels.
14816
14817 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
14818 (read_string): .. here.
14819 (grub_udf_label): Use read_string.
14820
14821 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
14822
14823 * grub-core/normal/menu_entry.c (run): Execute commands from menu
14824 editor under argument scope.
14825 Reported by: Jordan Uggla
14826
14827 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14828
14829 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
14830
14831 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
14832
14833 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
14834 line, and other keys scroll an entire page (previous handling was
14835 for \r and \n to scroll a page and other keys to scroll two lines).
14836
14837 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14838
14839 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14840 Set ptrdest to correct get_physical_target_address rather than
14841 incorrect get_virtual_current_address.
14842
14843 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
14844
14845 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
14846 correct cat to grub_uint8_t * rather than grub_uint32_t *.
14847
14848 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14849
14850 * .bzrignore: Ignore grub-core/rs_decoder.S.
14851
14852 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14853
14854 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
14855 .mo/.mo.gz opening sequence to ...
14856 (grub_mofile_open_lang): ... here.
14857 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
14858 * util/grub.d/00_header.in (grub_lang): Include country part of
14859 locale.
14860 Reported by: Mario Limonciello.
14861
14862 2010-12-09 Robert Millan <rmh@gnu.org>
14863
14864 * NEWS: Document addition of ZFS support.
14865
14866 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
14867
14868 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
14869 rather than `/ 2', as the latter requires -Wa,--divide which would
14870 require bumping our minimum binutils version.
14871
14872 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
14873
14874 * util/grub-script-check.c (main): Print script line number on
14875 error.
14876
14877 2010-12-01 Robert Millan <rmh@gnu.org>
14878
14879 * grub-core/fs/zfs/zfs.c: New file.
14880 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
14881 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
14882 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
14883 * grub-core/fs/zfs/zfsinfo.c: Likewise.
14884
14885 * include/grub/zfs/dmu.h: Likewise.
14886 * include/grub/zfs/dmu_objset.h: Likewise.
14887 * include/grub/zfs/dnode.h: Likewise.
14888 * include/grub/zfs/dsl_dataset.h: Likewise.
14889 * include/grub/zfs/dsl_dir.h: Likewise.
14890 * include/grub/zfs/sa_impl.h: Likewise.
14891 * include/grub/zfs/spa.h: Likewise.
14892 * include/grub/zfs/uberblock_impl.h: Likewise.
14893 * include/grub/zfs/vdev_impl.h: Likewise.
14894 * include/grub/zfs/zap_impl.h: Likewise.
14895 * include/grub/zfs/zap_leaf.h: Likewise.
14896 * include/grub/zfs/zfs.h: Likewise.
14897 * include/grub/zfs/zfs_acl.h: Likewise.
14898 * include/grub/zfs/zfs_znode.h: Likewise.
14899 * include/grub/zfs/zil.h: Likewise.
14900 * include/grub/zfs/zio.h: Likewise.
14901 * include/grub/zfs/zio_checksum.h: Likewise.
14902
14903 * Makefile.util.def: Build ZFS into libgrubmods.
14904 * grub-core/Makefile.core.def: Build zfs.mod.
14905
14906 2010-11-30 Szymon Janc <szymon@janc.net.pl>
14907
14908 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
14909 variable.
14910 * grub-core/commands/wildcard.c (match_files): Likewise.
14911
14912 2010-11-30 Robert Millan <rmh@gnu.org>
14913
14914 * grub-core/loader/i386/bsd.c
14915 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
14916 whether kernel is loaded using grub_loader_is_loaded(), rather
14917 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
14918 certain error conditions.
14919
14920 2010-11-30 Robert Millan <rmh@gnu.org>
14921
14922 * grub-core/commands/echo.c: Include `<grub/term.h>'.
14923 (grub_cmd_echo): Call grub_refresh() after printing a message.
14924
14925 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14926
14927 Avoid using tricks for initialising endian variables.
14928
14929 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
14930 Make const.
14931 (GRUB_MOD_INIT): Don't byte-swap.
14932 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14933 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
14934 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
14935 (grub_swap_bytes32_compile_time): Likewise.
14936 (grub_cpu_to_le32_compile_time): Likewise.
14937 (grub_cpu_to_le16_compile_time): Likewise.
14938
14939 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14940
14941 * util/grub-setup.c (setup): Stop recommending --force. People who
14942 understand the dangers of blocklists are able to find this option
14943 anyway and the ones who don't shouldn't use it anyway.
14944
14945 2010-11-26 Robert Millan <rmh@gnu.org>
14946
14947 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
14948 Update all users.
14949
14950 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
14951
14952 Fix LVM-on-RAID probing.
14953
14954 * util/grub-probe.c (probe): Remember which disk was detected as
14955 RAID (perhaps an LVM physical volume). Use that disk's raidname
14956 rather than that of the top-level disk.
14957
14958 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
14959
14960 Fix cmdline argument quotes for setparams command of menuentry
14961 definitions.
14962
14963 * grub-core/commands/menuentry.c (setparams_prefix): Use single
14964 quotes for arguments.
14965 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
14966 grub_strchrsub function instead.
14967
14968 * include/grub/misc.h (grub_strchrsub): New function.
14969
14970 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14971
14972 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
14973 effort by skipping "." and ".." entries up-front.
14974 Suggested by: Michael Lazarev.
14975
14976 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14977
14978 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
14979 ldflags to ldadd, to fix link line ordering.
14980 (none_decompress): Likewise.
14981
14982 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14983
14984 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
14985 platforms.
14986 (grub-emu-lite): Remove kern/emu/cache.S.
14987
14988 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14989
14990 * util/deviceiter.c (compare_devices): If the by-id link for a
14991 device couldn't be resolved, fall back to sorting by the by-id link
14992 rather than segfaulting.
14993 Reported and tested by: Daniel Mierswa.
14994
14995 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14996
14997 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
14998 ldflags, to fix link line ordering.
14999
15000 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
15001
15002 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
15003 linkers are picky about this.
15004
15005 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
15006
15007 * grub-core/Makefile.am (command.lst): Adjust sed expression
15008 ordering so that extended and priority commands aren't treated as
15009 ordinary commands.
15010
15011 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
15012
15013 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
15014 Remove byte-swapping function calls, which are not valid in
15015 structure initialisers.
15016 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
15017 non-const.
15018 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
15019 grub_gpt_partition_type_bios_boot.
15020
15021 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
15022
15023 Fix test program build on GNU/kFreeBSD.
15024
15025 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
15026 $(LIBNVPAIR)' library dependencies.
15027
15028 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
15029
15030 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
15031
15032 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
15033
15034 * util/grub-install.in: Remove excessive quoting that broke
15035 installations to RAID devices.
15036
15037 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15038
15039 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
15040 bootloader version instead of 0.
15041
15042 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15043
15044 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
15045 warning.
15046
15047 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15048
15049 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
15050 retrieve the metadat sector if size isn't known.
15051 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15052
15053 2010-11-18 Robert Millan <rmh@gnu.org>
15054
15055 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
15056 with grub_memcmp().
15057
15058 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
15059
15060 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
15061 arrow.
15062 Reported by: Jordan Uggla.
15063
15064 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15065
15066 Make better UTF compliant.
15067
15068 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
15069 sequences as incorrect.
15070 (grub_is_valid_utf8): Likewise.
15071 (grub_utf8_to_ucs4): Likewise.
15072 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
15073 (grub_ucs4_to_utf8_alloc): Likewise.
15074 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
15075
15076 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15077
15078 Make legacy_source behave like source.
15079
15080 * grub-core/commands/legacycfg.c (legacy_file): Don't call
15081 grub_show_menu.
15082 (grub_cmd_legacy_source): Call grub_show_menu if needed.
15083
15084 2010-11-16 Colin Watson <cjwatson@debian.org>
15085
15086 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
15087 (-Wunused implies -Wunused-parameter, but not vice versa).
15088
15089 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
15090
15091 * configure.ac: Make error messages less confusing by testing for
15092 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
15093 accepted, but produces a diagnostic if something else is wrong).
15094
15095 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
15096
15097 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
15098 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
15099 (now unused).
15100 (grub_keyboard_controller_init)
15101 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
15102 read the initial state since controller isn't inited yet.
15103
15104 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
15105
15106 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
15107 allocate_regbeg may need to create new chunk header.
15108
15109 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15110
15111 Fix quoting in legacy parser.
15112
15113 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
15114 single quotes.
15115 (grub_legacy_parse): Likewise.
15116 Reported by: Jordan Uggla.
15117 Tested by: Jordan Uggla.
15118
15119 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15120
15121 Don't add -lgcc on i386 and x86_64.
15122
15123 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
15124 * conf/Makefile.common (LDADD_KERNEL): Likewise.
15125 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
15126
15127 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15128
15129 * configure.ac: Add -Wno-trampolines when supported.
15130
15131 2010-11-14 Modestas Vainius <modax@debian.org>
15132
15133 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
15134 fakeraid.
15135
15136 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15137
15138 Add generic logical block size support for UDF.
15139
15140 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
15141 (GRUB_UDF_BLKSZ): Removed.
15142 (struct grub_udf_data): New field "lbshift" to hold the logical block
15143 size of the file system in log2 format. All users updated.
15144 (sblocklist): Change type to unsigned.
15145 (grub_udf_mount): Change type of "sblklist" to unsigned.
15146 Move AVDP search before VRS recognition, because the latter requires
15147 knowledge of the logical block size, which is detected during the
15148 former.
15149 Detect and validate logical block size during AVDP search, adding
15150 support for block sizes 512, 1024 and 4096.
15151 Make VRS recognition independent of block size.
15152
15153 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15154
15155 Properly handle deleted files on UDF.
15156
15157 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
15158 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
15159 set.
15160
15161 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15162
15163 Support reading files larger than 2 GiB.
15164
15165 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
15166 "offset" to grub_off_t.
15167 (grub_udf_read_file): Likewise for parameter "pos".
15168
15169 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15170
15171 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
15172 unavailable.
15173 (Simple configuration): Refer to Changes from GRUB Legacy about
15174 save_env availability.
15175
15176 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15177
15178 * util/grub-install.in: Ignore empty partition table detection
15179 instead of trying to include part_ module.
15180
15181 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15182
15183 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
15184 LVM on RAID support.
15185
15186 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15187
15188 Properly define WORDS_BIGENDIAN in wrapped environments.
15189
15190 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
15191 definition.
15192 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
15193
15194 Reported by: Manoel Rebelo Abranches.
15195 Tested by: Manoel Rebelo Abranches.
15196
15197 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15198
15199 * util/grub-mkconfig.in: Fix quoting.
15200
15201 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15202
15203 Support big ext2 files.
15204
15205 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
15206 (grub_ext2_read_block): Support triple indirect blocks.
15207 (grub_ext2_read_file): Use 64-bit types and read size_high.
15208 (grub_ext2_open): Read size_high.
15209 Reported by: Ximin Luo.
15210 Tested by: Manoel Rebelo Abranches.
15211
15212 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15213
15214 * util/grub-install.in: Handle filenames containing spaces.
15215 Reported by: Jordan Uggla.
15216 Tested by: Jordan Uggla.
15217
15218 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15219
15220 * util/grub-mkconfig.in (grub_script_check): New variable.
15221 Use grub_script_check instead of grub-script-check.
15222 Reported by: Barry Jackson.
15223
15224 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15225
15226 * docs/grub.texi (menu): Correct the order.
15227 Reported by: D. Hugh Redelmeier.
15228
15229 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15230
15231 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
15232 jump.
15233
15234 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
15235
15236 * include/grub/elfload.h (grub_elf32_size): New parameter.
15237 All users updated.
15238 Return maximum segments alignment.
15239 (grub_elf64_size): Likewise.
15240 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
15241 Return maximum segments alignment.
15242 (grub_elf64_size): Likewise.
15243 * grub-core/loader/powerpc/ieee1275/linux.c:
15244 (grub_linux_claimmap_iterate): New function. Uses the
15245 "available" property in the "memory" node for memory allocation
15246 for kernel in the PowerPC loader.
15247 (grub_linux_load32): Correctly find linux entry point offset.
15248 (grub_linux_load64): Likewise.
15249
15250 2010-11-07 Robert Millan <rmh@gnu.org>
15251
15252 On mips-yeeloong, build with -march=loongson2f when this flag is
15253 available (GCC >= 4.4).
15254 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
15255 `-march=mips3'.
15256 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
15257 or otherwise add -march=mips3.
15258
15259 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
15260
15261 Suppress shell expansion on echo '*' and echo "*" like cases.
15262 Reported by: Jordan Uggla.
15263
15264 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
15265 string arguments before shell expansion.
15266 * tests/grub_cmd_echo.in: New testcases.
15267
15268 2010-11-07 Robert Millan <rmh@gnu.org>
15269
15270 * conf/mips-qemu-mips.rmk: Remove stale file from previous
15271 transition.
15272
15273 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
15274
15275 * grub-core/kern/emu/hostdisk.c
15276 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
15277
15278 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15279
15280 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
15281 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
15282 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
15283
15284 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15285
15286 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
15287
15288 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15289
15290 * util/grub-install.in: Replace useless recomendation to pass
15291 --modules with a recomendation to report a bug.
15292
15293 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15294
15295 Properly register serial terminfo.
15296 Reported by: Jordan Uggla
15297
15298 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
15299 const.
15300 (grub_serial_terminfo_output_template): Likewise.
15301 (grub_cmd_serial): Register "serial" with terminfo.
15302 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
15303 grub_serial_terminfo_output.
15304
15305 2010-11-05 Robert Millan <rmh@gnu.org>
15306
15307 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
15308 needed).
15309
15310 2010-11-05 Robert Millan <rmh@gnu.org>
15311
15312 On Yeeloong, pass machine type information to Linux.
15313
15314 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
15315 (LOONGSON_MACHTYPE): New macro, set to
15316 "machtype=lemote-yeeloong-2f-8.9inches".
15317 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
15318 additional argument to Linux.
15319
15320 2010-11-04 Robert Millan <rmh@gnu.org>
15321
15322 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
15323 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
15324 (its SATA disks are detected as slaveless IDE master drives on
15325 kFreeBSD).
15326 Reported by Carsten Aulbert.
15327
15328 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
15329
15330 * util/bin2h.c (main): Fix spelling error in generated output.
15331
15332 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
15333
15334 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
15335
15336 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15337
15338 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
15339 vga= option is supplied.
15340
15341 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15342
15343 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
15344 * util/grub.d/10_kfreebsd.in: Likewise.
15345 * util/grub.d/10_linux.in: Likewise.
15346 * util/grub.d/20_linux_xen.in: Likewise.
15347
15348 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15349
15350 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
15351 argument as an argument to no-argument option.
15352
15353 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15354
15355 * util/grub.d/10_linux.in: Add missing load_video with explicit
15356 GRUB_GFXPAYLOAD_LINUX.
15357
15358 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15359
15360 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
15361
15362 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15363
15364 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
15365 elements with invlid index.
15366 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15367 * grub-core/disk/raid.c (insert_array): Automatically reallocate
15368 members.
15369 * include/grub/raid.h (grub_raid_member): New struct.
15370 (grub_raid_array): Transform devices and start_sector into usage of
15371 grub_raid_member. All users updated
15372 (allocated_devs): New member.
15373
15374 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15375
15376 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
15377 is modified
15378
15379 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
15380
15381 NetBSD build fix for getline function conflict from gnulib.
15382
15383 * Makefile.util.def (libgrubkern.a): New library for grub kernel
15384 components that depend on gnulib headers.
15385 (libgrubmods.a): Renamed from earlier libgrub.a.
15386 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
15387
15388 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15389
15390 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
15391 install rather than creating a broken install.
15392
15393 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15394
15395 * util/grub-setup.c (argp): Remove misleading example of installing to
15396 a partition.
15397
15398 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15399
15400 * util/grub-setup.c (setup): Clarify the error message.
15401
15402 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15403
15404 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
15405
15406 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15407
15408 * grub-core/kern/emu/misc.c
15409 (grub_make_system_path_relative_to_its_root)
15410 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
15411
15412 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15413
15414 * grub-core/kern/emu/misc.c
15415 (grub_make_system_path_relative_to_its_root): Revert r2882.
15416
15417 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
15418
15419 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
15420 useless field head. All users updated.
15421 (free_subchunk): Correct handling of IN_REGION subchunk.
15422
15423 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
15424
15425 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
15426 (Supported kernels): Likewise.
15427
15428 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
15429
15430 Make mktemp invocations portable.
15431
15432 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
15433 exit if mktemp fails.
15434 * tests/grub_script_blockarg.in: Likewise.
15435 * tests/partmap_test.in: Likewise.
15436 * tests/util/grub-shell-tester.in: Likewise.
15437 * tests/util/grub-shell.in: Likewise.
15438 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15439 * Makefile.am: Likewise, and chain shell commands with `&&'
15440 instead of ';'.
15441 * util/grub-mkrescue.in: Use the same explicit template as above, and
15442 exit if mktemp fails.
15443
15444 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
15445
15446 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
15447 Linux kernel, reported by Dennis Schridde.
15448
15449 2010-10-17 Szymon Janc <szymon@janc.net.pl>
15450
15451 * grub-core/normal/auth.c (grub_auth_check_authentication):
15452 Set-but-not-used variable removed.
15453
15454 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15455
15456 * docs/grub.texi (GNU/Linux): Document APM unavailability with
15457 32-bit linux protocol.
15458
15459 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15460
15461 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
15462 cursor shape for sanity.
15463
15464 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15465
15466 * docs/grub.texi (Installation): Document buggy BIOS install.
15467
15468 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15469
15470 * docs/grub.texi (Installation): Indent.
15471
15472 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15473
15474 * util/grub-setup.c (setup): New parameter allow_floppy.
15475 (arguments): New member allow_floppy.
15476 (argp_parser): Handle --allow-floppy.
15477 (main): Pass allow_floppy.
15478 * util/grub-install.in: New option --allow-floppy passed though to
15479 grub-setup.
15480
15481 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15482
15483 * util/grub-install.in: Handle partitionless disks.
15484
15485 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15486
15487 * util/grub-setup.c (setup): Don't clean blocklists before readability
15488 verfification.
15489
15490 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15491
15492 * docs/grub.texi (Installation): Document embedding zone. Remove
15493 obsolete grub-install example.
15494
15495 2010-10-16 Szymon Janc <szymon@janc.net.pl>
15496
15497 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
15498 Set-but-not-used variable ifdef'ed.
15499 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
15500 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
15501 variable removed.
15502 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
15503 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
15504 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
15505 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
15506 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
15507 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
15508 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
15509 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
15510 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
15511 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
15512 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
15513 Likewise.
15514
15515 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15516
15517 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
15518 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
15519 enum value.
15520
15521 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15522
15523 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
15524 synonym to _S5_. Needed for some DSDTs.
15525
15526 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15527
15528 Userspace ACPI parser debugging.
15529
15530 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
15531 headers and add relevant defines. Don't include standard headers.
15532 (main) [GRUB_DSDT_TEST]: New function.
15533 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
15534 Don't declare functions.
15535
15536 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15537
15538 Remove dead grub_efi_mm_fini.
15539
15540 * grub-core/kern/efi/mm.c (allocated_page): Removed.
15541 (ALLOCATED_PAGES_SIZE): Likewise.
15542 (MAX_ALLOCATED_PAGES): Likewise.
15543 (allocated_pages): Likewise.
15544 (grub_efi_allocate_pages): Don't record allocated pages.
15545 (grub_efi_free_pages): Likewise.
15546 (grub_efi_mm_init): Likewise.
15547 (grub_efi_mm_fini): Removed.
15548
15549 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15550
15551 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
15552 (grub_efi_mm_init): Take into account the memory map size increase.
15553
15554 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15555
15556 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
15557 (serial_hw_put): Wait based on real time rather than port reads. Don't
15558 roken ports.
15559 * include/grub/serial.h (grub_serial_port): New field broken.
15560
15561 2010-10-16 Robert Millan <rmh@gnu.org>
15562
15563 * grub-core/kern/emu/misc.c
15564 (grub_make_system_path_relative_to_its_root): Fix premature return
15565 when processing non-root ZFS filesystems.
15566 Reported by Sergio Talens-Oliag.
15567
15568 2010-10-15 Robert Millan <rmh@gnu.org>
15569
15570 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
15571 guarantee compressed ones are processed first.
15572
15573 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15574
15575 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
15576 grub_efiemu_autocore.
15577
15578 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15579
15580 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
15581 rather than 0x1b.
15582 (grub_console_getkey): Use correct jae opcode rather than ja.
15583
15584 2010-10-12 Robert Millan <rmh@gnu.org>
15585
15586 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
15587 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
15588 variable. All references updated.
15589
15590 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
15591
15592 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
15593
15594 Correctly distinguish mdraid flavours.
15595
15596 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
15597 (insert_array): New argument raid.
15598 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
15599 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
15600 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
15601
15602 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
15603
15604 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
15605 handling of special keys.
15606
15607 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15608
15609 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
15610 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
15611
15612 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15613
15614 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
15615 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
15616 users updated.
15617 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
15618 Use right endpoint when querying descriptor.
15619
15620 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15621
15622 Clear out 0x80 color bit on EFI.
15623 Tested by: decoder
15624 Reported by: decoder and meta tech.
15625
15626 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
15627 (grub_console_setcolorstate): Clear out 0x80 bit.
15628 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
15629 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
15630 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
15631
15632 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15633
15634 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
15635 Set to "auto".
15636
15637 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15638
15639 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
15640 mo_file after freeing.
15641
15642 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15643
15644 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
15645
15646 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15647
15648 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
15649 flags.
15650
15651 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15652
15653 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
15654 usage.
15655
15656 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15657
15658 Put terminfo into core on ieee1275 and yeeloong (needed for console).
15659
15660 * gentpl.py: New groups terminfoinkernel and terminfomodule.
15661 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
15662 and terminfo.h when needed.
15663 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
15664 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
15665 (terminfo): Enable only on terminfokernel.
15666 (extcmd): Likewise.
15667 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
15668 * include/grub/lib/arg.h: Likewise.
15669 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
15670 incorrect usage of ->.
15671
15672 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15673
15674 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
15675 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
15676
15677 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15678
15679 Fix coreboot compilation.
15680
15681 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15682 Take VBE info into account even if only text is supported.
15683 (fill_vbe_info): Take into account the case when only VGA text
15684 is supported.
15685 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
15686 on coreboot, multiboot and qemu.
15687
15688 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15689
15690 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
15691 debug messages.
15692 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
15693
15694 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15695
15696 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
15697 parameters.
15698
15699 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15700
15701 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
15702 if they were BSD-style.
15703
15704 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15705
15706 * grub-core/boot/i386/pc/lnxboot.S: Replace
15707 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
15708 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
15709
15710 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15711
15712 Write embedding zone using Reed-Solomon.
15713
15714 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
15715 * grub-core/Makefile.am (rs_decoder.S): New target.
15716 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
15717 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
15718 (multiboot): Move to RS part.
15719 (post_reed_solomon): New label.
15720 (grub_boot_drive): Move to non-RS part since it's modified in memory
15721 on boot.
15722 Include rs_decoder.S.
15723 * grub-core/lib/reed_solomon.c: New file.
15724 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
15725 New definition.
15726 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
15727 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
15728 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
15729 * include/grub/partition.h (grub_partition_map): Change prototype of
15730 embed to allow returning additional sectors.
15731 * include/grub/reed_solomon.h: New file.
15732 * util/grub-setup.c (setup): Handle Reed-Solomon.
15733
15734 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
15735
15736 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15737 i386 and x86-64 definedness tests.
15738
15739 2010-09-27 Yves Blusseau <blusseau@zetam.org>
15740
15741 Fix generation of kernel_syms.lst
15742
15743 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
15744 ASM_PREFIX
15745
15746 2010-09-26 Robert Millan <rmh@gnu.org>
15747
15748 Support degraded ZFS arrays in "grub-probe -t device" resolution.
15749
15750 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
15751 the pool is an array of devices, iterate through it and return the
15752 first device that passes a stat() test (instead of blindly returning
15753 the first one).
15754
15755 2010-09-26 Robert Millan <rmh@gnu.org>
15756
15757 Build fixes for GNU/kFreeBSD.
15758
15759 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
15760 to programs that require ZFS conversion.
15761 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
15762 kernels that don't have FLOPPY_MAJOR.
15763
15764 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15765
15766 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
15767
15768 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15769
15770 Fix grub-emu build.
15771
15772 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
15773 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
15774 mdraid09 and mdraid1x.
15775
15776 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
15777
15778 Re-enable grub-extras.
15779
15780 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
15781 avoid confusing Automake. Run autogen only twice, once for the top
15782 level and once for grub-core. Add Makefile.util.def and
15783 Makefile.core.def from extra modules to the appropriate autogen
15784 invocations. If Makefile.common exists in an extra module, include
15785 it in both Makefile.util.am and grub-core/Makefile.core.am;
15786 similarly, include any Makefile.util.common file in Makefile.util.am
15787 and any Makefile.core.common file in grub-core/Makefile.core.am.
15788 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
15789 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
15790 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
15791 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
15792
15793 * gentpl.py (gvar_add): Turn GVARS into a set.
15794 (global_variable_initializers): Sort global variables on output.
15795 (vars_init): New function.
15796 (first_time): Likewise.
15797 (library): Ensure that non-global variable initialisations are
15798 emitted before the first time we emit code for a library block.
15799 Append to variables rather than setting them. Only emit
15800 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
15801 each conditional path.
15802 (program): installdir() emits an Autogen macro, so must be passed to
15803 var_add rather than gvar_add.
15804 (data): Likewise.
15805 (script): Likewise.
15806 (rules): New function, centralising handling for different target
15807 types. Set up Guile association lists for first_time and vars_init,
15808 and send most output to a diversion so that variable initialisations
15809 can be emitted first.
15810 (module_rules): Use new rules function.
15811 (kernel_rules): Likewise.
15812 (image_rules): Likewise.
15813 (library_rules): Likewise.
15814 (program_rules): Likewise.
15815 (script_rules): Likewise.
15816 (data_rules): Likewise.
15817
15818 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
15819
15820 * .bzrignore: Add contrib and grub-core/contrib. Remove
15821 grub-core/Makefile.gcry.am.
15822
15823 2010-09-24 Yves Blusseau <blusseau@zetam.org>
15824
15825 * grub-core/lib/LzFind.c: Add missing include.
15826 * grub-core/lib/LzmaEnc.c: Likewise.
15827 * grub-core/script/lexer.c: Likewise.
15828 * grub-core/script/yylex.l: Likewise.
15829 * util/grub-macho2img.c: Likewise.
15830 * util/grub-menulst2cfg.c: Likewise.
15831 * util/grub-mklayout.c: Likewise.
15832 * util/grub-mkpasswd-pbkdf2.c
15833 * util/grub-mkrelpath.c: Likewise.
15834 * util/resolve.c: Likewise.
15835
15836 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
15837
15838 * Makefile.util.def (example_unit_test): Add
15839 grub-core/gnulib/libgnu.a.
15840
15841 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
15842
15843 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
15844
15845 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15846
15847 Support xz compression on yeeloong.
15848
15849 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
15850 * configure.ac: Check for LZMA.
15851 * grub-core/Makefile.core.def (xz_decompress): New target.
15852 (none_decompress): Likewise.
15853 * grub-core/boot/decompressor/minilib.c: New file.
15854 * grub-core/boot/decompressor/none.c: Likewise.
15855 * grub-core/boot/decompressor/xz.c: Likewise.
15856 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
15857 * grub-core/kern/mips/cache_flush.S: Likewise.
15858 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
15859 * grub-core/kern/mips/startup.S: Move first stage to ...
15860 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
15861 nomacro.
15862 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
15863 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
15864 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
15865 Allocate statically.
15866 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
15867 Allocate statically or use scratch. Don't check CRC32.
15868 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
15869 Allocate statically. Don't check CRC32.
15870 * include/grub/decompressor.h: New file.
15871 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
15872 Removed.
15873 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
15874 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
15875 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
15876 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
15877 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
15878 * util/grub-mkimage.c (grub_compression_t): New type.
15879 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
15880 (image_target_desc): New field default_compression.
15881 (image_targets): Adjust yeeloong targets.
15882 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
15883 (compress_kernel): New parameter comp.
15884 (generate_image): Likewise. Handle new compression case.
15885 (options): New option --compression
15886 (help): Likewise.
15887 (main): Handle new option.
15888
15889 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
15890
15891 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
15892
15893 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
15894
15895 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15896 typo in __i386__ conditional.
15897
15898 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15899
15900 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
15901 include.
15902
15903 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15904
15905 Implement EFI and ACPI multiboot2 extensions.
15906
15907 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
15908 new tags as supported.
15909 (acpiv2_size): New function.
15910 (grub_multiboot_get_mbi_size): Take new tags into account.
15911 (grub_multiboot_make_mbi): Add new tags.
15912 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
15913
15914 2010-09-21 Aleš Nesrsta <starous@volny.cz>
15915
15916 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
15917 Added missing configuration of USB device.
15918
15919 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15920
15921 * grub-core/normal/menu_entry.c (run): Make sure we always return
15922 a value.
15923
15924 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15925
15926 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
15927 NumberOfPages is UINT64 according to the UEFI specification, not
15928 UINTN. Fix printf format.
15929
15930 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15931
15932 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
15933 `err' to grub_usb_err_t.
15934 Reported and tested by: KESHAV P.R.
15935
15936 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15937
15938 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
15939 tpart non-const, so that we can assign to it. (Since this is a
15940 typedef, the constness refers to the pointer rather than what it
15941 points to.)
15942
15943 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15944
15945 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
15946 $(top_srcdir)/grub-core/gnulib as well as
15947 $(top_builddir)/grub-core/gnulib.
15948 Reported by: KESHAV P.R.
15949
15950 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15951
15952 * util/grub-install.in: Fix the bootloader ID option to be
15953 consistently --bootloader-id, not --bootloader_id.
15954 Reported by: KESHAV P.R.
15955
15956 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15957
15958 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
15959 check hash checksum." consistently translatable.
15960
15961 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15962
15963 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
15964 $(top_builddir).
15965
15966 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15967
15968 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
15969 (GRUB_MOD_INIT): Register sha1sum command.
15970 (GRUB_MOD_FINI): Unregister sha1sum command.
15971
15972 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15973
15974 Keep boot and grub directory names in sync with utils scripts
15975
15976 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
15977 * config.h.in: Add previous macros.
15978 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
15979 * util/grub-install.in: Use $bootdir and $grubdir variables.
15980
15981 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15982
15983 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
15984 convert partition names to disk names if the new `convert' parameter
15985 is set.
15986 (grub_util_biosdisk_get_grub_dev): If opening the disk device
15987 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
15988 disk in its own right. This can happen with Xen disk images.
15989
15990 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15991
15992 * util/grub-editenv.c: Update strings to avoid warnings when generating
15993 grub.pot file.
15994 * util/grub-setup.c: Likewise.
15995
15996 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15997
15998 * configure.ac: Change version to 1.99~beta0.
15999
16000 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
16001
16002 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
16003 Add BADRAM.
16004 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
16005 Likewise.
16006 * include/multiboot.h: Resynced with specification.
16007 * include/multiboot2.h: Likewise.
16008
16009 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
16010
16011 Fix po directory handling.
16012
16013 * configure.ac: Create po/Makefile.in rather than po/Makefile.
16014 * grub-core/gnulib/Makefile.am: Import gettext module.
16015 * m4/gnulib-cache.m4: Likewise.
16016 * m4/gnulib-comp.m4: Likewise.
16017 * m4/gettext.m4: New file, from gnulib.
16018 * m4/glibc2.m4: Likewise.
16019 * m4/iconv.m4: Likewise.
16020 * m4/intdiv0.m4: Likewise.
16021 * m4/intl.m4: Likewise.
16022 * m4/intldir.m4: Likewise.
16023 * m4/intlmacosx.m4: Likewise.
16024 * m4/intmax.m4: Likewise.
16025 * m4/inttypes-pri.m4: Likewise.
16026 * m4/lcmessage.m4: Likewise.
16027 * m4/lib-ld.m4: Likewise.
16028 * m4/lib-link.m4: Likewise.
16029 * m4/lib-prefix.m4: Likewise.
16030 * m4/lock.m4: Likewise.
16031 * m4/nls.m4: Likewise.
16032 * m4/po.m4: Likewise.
16033 * m4/printf-posix.m4: Likewise.
16034 * m4/progtest.m4: Likewise.
16035 * m4/threadlib.m4: Likewise.
16036 * m4/uintmax_t.m4: Likewise.
16037 * m4/visibility.m4: Likewise.
16038 * po/Makefile.am: Remove.
16039 * po/Makefile.in.in: New file, from gettext.
16040 ($(DOMAIN).pot-update): Support POTFILES-shell.
16041 * po/Makevars: New file.
16042 * po/POTFILES-shell: Rename to ...
16043 * po/POTFILES-shell.in: ... this. Update.
16044 * po/POTFILES: Rename to ...
16045 * po/POTFILES.in: ... this. Update.
16046 * po/Rules-quot: New file, from gettext.
16047 * po/boldquot.sed: Likewise.
16048 * po/en@boldquot.header: Likewise.
16049 * po/en@quot.header: Likewise.
16050 * po/insert-header.sin: Likewise.
16051 * po/quot.sed: Likewise.
16052 * po/remove-potcdate.sin: Likewise.
16053
16054 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16055
16056 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
16057
16058 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16059
16060 * util/grub.d/20_linux_xen.in: Use submenus.
16061
16062 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16063
16064 Support submenus.
16065
16066 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
16067 parameter submenu. All users updated.
16068 * grub-core/normal/main.c (free_menu): Rename to ...
16069 (grub_normal_free_menu): ... this. Made global.
16070 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
16071 if requested.
16072 * grub-core/normal/menu_entry.c (screen): New field submenu.
16073 (make_screen): Set submenu.
16074 (run): Open new context if requested.
16075 * include/grub/menu.h (grub_menu_entry): New field submenu.
16076 * include/grub/normal.h (grub_normal_free_menu): New proto.
16077
16078 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16079
16080 Menu entries extractor.
16081
16082 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
16083 variants.
16084 (GRUB_MOD_INIT): Register new variants.
16085 (GRUB_MOD_FINI): Unregister new variants.
16086 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
16087 into grub_cmd_legacy_source.
16088 (grub_cmd_legacy_source): Implement extractor variants.
16089 (GRUB_MOD_INIT): Register new variants.
16090 (GRUB_MOD_FINI): Unregister new variants.
16091 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
16092 as an extractor.
16093 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
16094 search as an extractor.
16095 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
16096 test as an extractor.
16097 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
16098 as an extractor.
16099 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
16100 (grub_env_new_context): New function.
16101 (grub_env_context_open): Likewise.
16102 (grub_env_extractor_open): Likewise.
16103 (grub_env_extractor_close): Likewise.
16104 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
16105 grub_extractor_level.
16106 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
16107 * include/grub/env.h (grub_env_extractor_open): New proto.
16108 (grub_env_extractor_close): Likewise.
16109 * include/grub/normal.h (grub_extractor_level): New external variable.
16110
16111 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16112
16113 Make cutmem accept a region specification.
16114 Suggested by: Samuel Thibault
16115
16116 * grub-core/mmap/mmap.c (parsemem): New function.
16117 (grub_cmd_cutmem): Handle new arguments.
16118
16119 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16120
16121 New command cutmem.
16122
16123 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
16124 (GRUB_MOD_INIT): Register new command.
16125 (GRUB_MOD_FINI): Unregister new command.
16126
16127 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16128
16129 Support some annoying BSD and Minix subpartitions.
16130
16131 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
16132 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
16133 Properly handle concatenation.
16134 * grub-core/kern/device.c (grub_device_iterate): Likewise.
16135 * grub-core/normal/completion.c (iterate_partition): Likewise.
16136 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
16137 contain partition. All users updated.
16138 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
16139 struct.
16140 (grub_openbsdlabel_partition_map): Likewise.
16141 (bsdlabel_partition_map_iterate): Rename to ..
16142 (iterate_real): ... this. New arguments sector, freebsd and pmap.
16143 (bsdlabel_partition_map_iterate): New function.
16144 (netopenbsdlabel_partition_map_iterate): Likewise.
16145 (netbsdlabel_partition_map_iterate): Likewise.
16146 (openbsdlabel_partition_map_iterate): Likewise.
16147 (GRUB_MOD_INIT): Register new partmaps.
16148 (GRUB_MOD_FINI): Unregister new partmaps.
16149 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
16150 (grub_partition_msdos_iterate): ... this. All users updated.
16151 Don't support embedding other than in a minix partition.
16152 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
16153 proto.
16154 * include/grub/partition.h (grub_partition): New field msdostype.
16155 * util/grub-install.in: Handle openbsd and netbsd types being in
16156 part_bsd module.
16157
16158 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16159
16160 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
16161
16162 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
16163 * grub-core/Makefile.core.def (mdraid): Renamed to ...
16164 (mdraid09): ... this.
16165 (mdraid1x): New module.
16166 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
16167 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
16168
16169 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16170
16171 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
16172 vsprintf.
16173
16174 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16175
16176 * grub-core/commands/efi/lsefimmap.c: Correct header.
16177 * NEWS: Update.
16178
16179 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16180
16181 * util/grub-editenv.c (argp_parser): Don't pass translated strings
16182 as printf format strings; the translations might contain '%' which
16183 could cause a crash.
16184 (main): Likewise.
16185 * util/grub-fstest.c (argp_parser): Likewise.
16186 * util/grub-setup.c (argp_parser): Likewise.
16187 (main): Likewise.
16188
16189 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16190
16191 Use argp in grub-fstest.
16192
16193 * util/grub-fstest.c: Don't include getopt.h.
16194 Include argp.h.
16195 (root): New variable.
16196 (args_count): Likewise.
16197 (nparm): Likewise.
16198 (num_disks): Likewise.
16199 (images): Likewise.
16200 (cmd): Likewise.
16201 (debug_str): Likewise.
16202 (args): Likewise.
16203 (options): Transformed to argp.
16204 (usage): Removed.
16205 (main): Split argument parsing into ...
16206 (argp_parser): ... this. Changed to argp format.
16207 (argp): New variable.
16208 (main): Use argp_parse.
16209
16210 2010-09-20 Tristan Gingold <gingold@free.fr>
16211 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
16212 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16213
16214 * grub-core/commands/efi/lsefimmap.c: New file.
16215 * grub-core/Makefile.core.def (lsefimmap): New module.
16216 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
16217
16218 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16219
16220 Pause the execution (10s max) if any errors are displayed so the user
16221 has a chance to see them.
16222
16223 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
16224 (grub_print_error): Increment grub_err_printed_errors.
16225 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
16226 execution if any errors were displayed.
16227 (show_menu): Remove old code for pause.
16228 * grub-core/normal/menu_entry.c (run): Likewise.
16229 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
16230 users updated.
16231 (grub_normal_get_char_counter): Likewise.
16232 * include/grub/err.h (grub_err_printed_errors): New external variable.
16233 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
16234
16235 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16236
16237 Support multiboot VBE info.
16238
16239 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
16240 Take VBE info into account.
16241 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
16242 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16243 Call fill_vbe_info when appropriate.
16244 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
16245 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
16246 as supported.
16247 (grub_multiboot_get_mbi_size): Take new tags into account.
16248 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
16249 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16250 Call fill_vbe_tag when appropriate.
16251 (grub_multiboot_make_mbi): Properly align tags.
16252 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
16253 function.
16254 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
16255 proto.
16256 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
16257
16258 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16259
16260 Suport manual terminal geometry specification.
16261
16262 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
16263 Save state in grub_ofconsole_terminfo_output.
16264 (grub_ofconsole_term): Use grub_terminfo_getwh.
16265 (grub_ofconsole_getwh): Removed.
16266 * grub-core/term/serial.c (grub_serial_getwh): Removed.
16267 (grub_serial_term): Use grub_terminfo_getwh.
16268 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
16269 (options): New struct.
16270 (OPTION_*): New enum.
16271 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
16272 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
16273 width and height.
16274 (grub_terminfo_getwh): New proto.
16275 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
16276
16277 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16278
16279 Handle legacy "terminal" command.
16280
16281 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
16282 and FLAG_TERMINAL.
16283 (legacy_commands): Add terminal and title.
16284 (grub_legacy_parse): Handle terminal. Simplify title handling.
16285
16286 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16287
16288 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
16289 parameters overflow.
16290
16291 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16292
16293 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
16294 widthspec.h.
16295
16296 * docs/grub.texi (Shell-like scripting): Document `!'.
16297 (Network): Simplify using new i386-pc-pxe format. Mention
16298 grub-mknetdir.
16299
16300 * NEWS: Update.
16301
16302 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16303
16304 * Makefile.am (SUBDIRS): Restore "."; it's important to force
16305 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
16306 when needed.
16307
16308 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16309
16310 * grub-core/commands/efi/lsefisystab.c: Correct header.
16311 * grub-core/commands/efi/lssal.c: Likewise.
16312 * grub-core/commands/testload.c: Likewise.
16313
16314 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16315
16316 * util/grub-mkrescue.in: Add explicit root argument to --set to
16317 prevent the UUID being interpreted as an argument to --set (matches
16318 previous change to prepare_grub_to_access_device).
16319
16320 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16321
16322 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
16323 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
16324 the verbosity of later #ifs.
16325 (find_partition_start): Define this function on FreeBSD too.
16326 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
16327 function.
16328 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
16329 on FreeBSD.
16330
16331 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16332
16333 * util/grub-editenv.c: Use argp instead of getopt.
16334
16335 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16336
16337 * util/grub-setup.c: Use argp instead of getopt.
16338
16339 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16340
16341 Use gnulib-tool to create gnulib source files.
16342
16343 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
16344 grub-core/gnulib directories
16345 * .bzignore: Add **/.deps and autogenerated gnulib files
16346 * configure.ac: Assign auxiliary directory to build-aux, add invocation
16347 of gnulib macros, add grub-core/gnulib/Makefile
16348 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
16349 include m4 directory to aclocal.
16350 * Makefile.util.def: Remove direct compilation of gnulib source files
16351 and use the new grub-core/gnulib/libgnu.a.
16352 * build-aux/config.rpath: move config.rpath from top directory to
16353 build-aux
16354 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
16355 in gnulib headers
16356 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
16357 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
16358 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
16359 header.
16360 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
16361 string.
16362
16363 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16364
16365 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
16366 grub-core/genmod.sh and grub-core/gensyminfo.sh
16367
16368 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
16369
16370 Add a test for echo command options.
16371
16372 * tests/grub_cmd_echo.in: New test.
16373 * Makefile.util.def: Rules for new test.
16374
16375 2010-09-20 Szymon Janc <szymon@janc.net.pl>
16376
16377 Remove crc.mod and move crc command to hashsum.mod.
16378 Remove lib/crc.c - users updated to use gcrypt implementation.
16379
16380 * grub-core/commands/crc.c: Removed.
16381 * grub-core/Makefile.core.def (crc): Module removed.
16382 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
16383 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
16384 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
16385 * grub-core/lib/crc.c: Removed.
16386 * include/grub/lib/crc.h: Removed.
16387 * Makefile.util.def (crc): Remove lib/crc.c
16388 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
16389 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
16390 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
16391 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
16392 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
16393 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
16394
16395 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16396
16397 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
16398
16399 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16400
16401 Split config.h for util and core.
16402
16403 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
16404 (ADDR32): Likewise.
16405 (DATA32): Likewise.
16406 (BSS_START_SYMBOL): Likewise.
16407 (END_SYMBOL): Likewise.
16408 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
16409 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
16410 * config.h.in: New file.
16411 * configure.ac: Use config-util.h as config define file.
16412 Rename MACHINE into GRUB_MACHINE. All users updated.
16413 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
16414 updated.
16415 (NESTED_FUNC_ATTR): Likewise.
16416 Substitue new variables.
16417 (COND_HAVE_ASM_USCORE): New conditional.
16418 * grub-core/Makefile.am (ASM_PREFIX): New variable.
16419 (kernel_syms.lst): Use ASM_PREFIX.
16420 * grub-core/kern/emu/console.c: Include config-util.h.
16421 * grub-core/kern/emu/misc.c: Likewise.
16422 * grub-core/kern/emu/mm.c: Likewise.
16423 * include/grub/emu/misc.h: Likewise.
16424 * include/grub/libgcc.h: Likewise.
16425
16426 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16427
16428 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
16429 constants usage.
16430 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
16431 Fix GRUB_TERM_KEY_* constants usage.
16432 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
16433
16434 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16435
16436 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
16437 print pointer.
16438 * grub-core/bus/usb/uhci.c: Remove empty define.
16439 (grub_uhci_check_transfer): Add missing cast.
16440 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
16441 print pointer.
16442 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
16443 PRIuGRUB_SIZE.
16444 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
16445
16446 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16447
16448 * grub-core/Makefile.core.def (legacycfg): Add
16449 lib/i386/pc/vesa_modes_table.c on emu.
16450
16451 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16452
16453 Reduce number of temporary files generated by build system.
16454
16455 * grub-core/gencmdlist.sh: Removed.
16456 * grub-core/genfslist.sh: Removed.
16457 * grub-core/genhandlerlist.sh: Removed.
16458 * grub-core/genmodsrc.sh: Removed.
16459 * grub-core/genpartmaplist.sh: Removed.
16460 * grub-core/genparttoollist.sh: Removed.
16461 * grub-core/gentermiinallist.sh: Removed.
16462 * grub-core/genvideolist.sh: Removed.
16463
16464 * grub-core/genmod.sh.in: New file.
16465 * grub-core/gensyminfo.sh.in: New file.
16466
16467 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
16468 * conf/Makefile.extra-dist: Update with new files.
16469 * gentpl.py: Remove rules related to unnecessary temporary files.
16470 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
16471 and und-* files.
16472 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
16473 genmod.sh scripts.
16474 * grub-core/bus/usb/uhci.c: Remove empty #define.
16475 * grub-core/genmoddep.awk: Updated with new syminfo format.
16476 * util/bash-completion.d/Makefile.am: Add config.log to
16477 CLEANFILES.
16478
16479 2010-09-19 Yves Blusseau <blusseau@zetam.org>
16480
16481 * Makefile.util.def: Add forgotten $(LIBINTL) library.
16482
16483 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16484
16485 * util/grub-mkconfig.in: Check the config script for syntax errors
16486 before saving.
16487
16488 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
16489 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16490
16491 * Makefile.util.def (grub-install): Use util/grub-install.in on all
16492 platforms.
16493 * util/grub-install.in: Add EFI and IEEE1275 support.
16494 * util/i386/efi/grub-install.in: Removed.
16495 * util/ieee1275/grub-install.in: Likewise.
16496
16497 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16498
16499 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
16500 (grub_cmd_cmosclean): Likewise.
16501 (GRUB_MOD_INIT): Register command cmosclean.
16502 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
16503 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
16504
16505 2010-09-18 Carles Pina i Estany <carles@pina.cat>
16506 2010-09-18 Aleš Nesrsta <starous@volny.cz>
16507 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16508
16509 Add keyboard layouts support.
16510
16511 * Makefile.util.def (grub-mklayout): New file.
16512 (grub-kbdcomp): New script.
16513 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
16514 Add keyboard_layouts.h.
16515 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
16516 commands/boot.c on yeeloong.
16517 (keylayouts): New module.
16518 * grub-core/bus/usb/ohci.c
16519 * grub-core/bus/usb/uhci.c
16520 * grub-core/bus/usb/usbhub.c (rescan): New variable.
16521 (grub_usb_add_hub): Poll interrupt pipe for device handling.
16522 (attach_root_port): Likewise.
16523 (poll_nonroot_hub): Likewise.
16524 (grub_usb_poll_devices): Likewise.
16525 (detach_device): Close transfer.
16526 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
16527 function.
16528 (grub_usb_bulk_setup_readwrite): Likewise.
16529 (grub_usb_bulk_finish_readwrite): Likewise.
16530 * grub-core/commands/keylayouts.c: New file.
16531 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
16532 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
16533 aliases.
16534 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
16535 support scancode 2.
16536 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
16537 * include/grub/keyboard_layouts.h: New file.
16538 * util/grub-mklayout.c: New file.
16539 * util/grub-kbdcomp.in: Likewise.
16540
16541 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16542
16543 Unify memory types.
16544
16545 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
16546 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
16547 types.
16548 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
16549 (grub_upper_mem): Likewise.
16550 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
16551 * include/grub/memory.h (grub_memory_type_t): New enum.
16552 All users updated.
16553
16554 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16555
16556 * grub-core/Makefile.core.def (lsapm): New module.
16557 * grub-core/commands/i386/pc/lsapm.c: New file.
16558 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
16559 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
16560 Likewise.
16561 * include/grub/i386/pc/apm.h: New file.
16562 * include/multiboot.h (multiboot_apm_info): New struct.
16563
16564 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16565
16566 GRUB-legacy configuration file support.
16567
16568 * Makefile.util.def (grub-menulst2cfg): New util.
16569 * docs/man/grub-menulst2cfg.h2m: New file.
16570 * grub-core/Makefile.core.def (legacycfg): New module.
16571 * grub-core/commands/legacycfg.c: New file.
16572 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
16573 (grub_normal_add_menu_entry): ... this.
16574 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
16575 (grub_normal_set_password): ...this.
16576 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
16577 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
16578 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
16579 * grub-core/lib/legacy_parse.c: New file.
16580 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
16581 * include/grub/i386/pc/vesa_modes_table.h: New file.
16582 * include/grub/legacy_parse.h: Likewise.
16583 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
16584 * util/grub-menulst2cfg.c: New file.
16585
16586 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16587
16588 * grub-core/kern/emu/hostdisk.c
16589 (convert_system_partition_to_system_disk): Initialise node.
16590
16591 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16592
16593 * grub-core/kern/emu/hostdisk.c
16594 (convert_system_partition_to_system_disk): Fix devmapper memory pool
16595 leak.
16596 Reported and based on patch by: Modestas Vainius.
16597
16598 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16599
16600 Fix DM-RAID probing with recent versions of device-mapper udev
16601 rules.
16602
16603 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
16604 canonicalise device paths under /dev/mapper/.
16605 (convert_system_partition_to_system_disk): Compare the
16606 uncanonicalised path to /dev/mapper/ rather than the canonicalised
16607 path, since device nodes under /dev/mapper/ are often symlinks.
16608
16609 2010-09-17 Yves Blusseau <blusseau@zetam.org>
16610
16611 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
16612
16613 2010-09-16 Yves Blusseau <blusseau@zetam.org>
16614
16615 * configure.ac: Avoid some annoying error messages if freetype-config
16616 program is not found.
16617
16618 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16619
16620 Support RAID on virtio devices, and others.
16621
16622 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
16623 Rename to ...
16624 [__MINGW32__] (grub_find_device): ... this.
16625 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
16626 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
16627 reasonable default if dir is NULL.
16628 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
16629 ...
16630 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
16631 (grub_guess_root_device): Update callers.
16632 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
16633
16634 * util/raid.c (grub_util_getdiskname): Remove.
16635 (grub_util_raid_getmembers): Use grub_find_device rather than
16636 grub_util_getdiskname.
16637
16638 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16639
16640 * docs/grub.texi (serial): Remove obsolete comment about GRUB
16641 needing to be compiled with serial support.
16642 (ls): Indicate that multiple files are accepted.
16643 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
16644 indicate that multiple files are accepted.
16645
16646 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16647
16648 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
16649 libgrub_a_init.c, and util/bash-completion.d/grub.
16650
16651 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16652
16653 * util/grub-setup.c (setup): Fix incorrect container semantics.
16654
16655 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16656
16657 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
16658 misusage.
16659 Reported by: J. Nick Terry
16660
16661 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16662
16663 Move embedding routines to partmap sources files.
16664
16665 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
16666 [GRUB_UTIL]: New variable.
16667 (gpt_partition_map_iterate): Set part.parent.
16668 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
16669 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
16670 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
16671 New function.
16672 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
16673 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
16674 (grub_partition_map) [GRUB_UTIL]: New field embed.
16675 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
16676 (setup): Use ->embed.
16677
16678 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16679
16680 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
16681 function.
16682 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
16683 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
16684
16685 2010-09-15 Yves Blusseau <blusseau@zetam.org>
16686
16687 Add function to get completions from usage.
16688
16689 * util/bash-completion.d/grub-completion.bash.in: Add function to get
16690 completions from usage. Use LC_ALL=C to get options properly.
16691
16692 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16693
16694 * grub-core/gnulib/basename-lgpl.c: Imported.
16695 * grub-core/gnulib/basename.c: Likewise.
16696 * grub-core/gnulib/dirname-lgpl.c: Likewise.
16697 * grub-core/gnulib/dirname.c: Likewise.
16698 * grub-core/gnulib/dirname.h: Likewise.
16699 * grub-core/gnulib/stripslash.c: Likewise.
16700
16701 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16702
16703 * grub-core/gnulib/error.c: Resynced.
16704 * grub-core/gnulib/getopt.c: Likewise.
16705 * grub-core/gnulib/getopt_int.h: Likewise.
16706 * grub-core/gnulib/regex.h: Likewise.
16707 * grub-core/gnulib/regex_internal.c: Likewise.
16708 * grub-core/gnulib/regex_internal.h: Likewise.
16709
16710 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16711
16712 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
16713 CRC calculations and validity checks.
16714 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
16715 calculations.
16716
16717 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16718
16719 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
16720
16721 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16722
16723 Fix incorrect echo options handling.
16724 Reported by: Yves Blusseau.
16725
16726 * include/grub/command.h (grub_command_flags_t): New flags
16727 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
16728 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
16729 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
16730
16731 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16732
16733 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
16734 users updated.
16735 (GRUB_COMMAND_FLAG_MENU): Likewise.
16736 (GRUB_COMMAND_FLAG_BOTH): Likewise.
16737 (GRUB_COMMAND_FLAG_TITLE): Removed.
16738 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
16739 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
16740 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
16741 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
16742 (grub_command_flags_t): New enum. All users updated.
16743
16744 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
16745
16746 Fix solaris compilation.
16747
16748 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
16749 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
16750 (grub-emu-list): Likewise.
16751
16752 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16753
16754 Remove deprecated root command.
16755
16756 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
16757 updated.
16758
16759 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16760
16761 * util/i386/pc/grub-setup.c: Merge this ...
16762 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
16763 * util/grub-setup.c: ... into this.
16764 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
16765 New struct.
16766
16767 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16768
16769 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
16770 possible.
16771
16772 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16773
16774 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
16775 allocate p.
16776
16777 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16778
16779 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
16780 explicit root argument to set to prevent UUID to be interpreted as
16781 argument to set.
16782
16783 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16784
16785 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
16786
16787 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16788
16789 Don't export grub_gate_a20.
16790
16791 * grub-core/kern/i386/pc/init.c: Remove leftovers.
16792 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
16793 to ...
16794 (grub_gate_a20): ... this. All users updated.
16795 * include/grub/i386/pc/init.h: Removed. All users updated.
16796
16797 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16798
16799 Create euro.pf2 which supports most European languages.
16800
16801 * Makefile.am (grubdata_DATA): Add euro.pf2.
16802 (euro.pf2): New target.
16803 (CLEANFILES): Add euro.pf2.
16804
16805 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16806
16807 * configure.ac: Disable emu-usb by default to prevent inadvertent
16808 device takeover.
16809
16810 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16811
16812 Disable usbserial on grub-emu since our libusb code isn't good enough
16813 yet.
16814
16815 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
16816 (usbserial_pl2303): Likewise.
16817 (usbserial_ftdi): Likewise.
16818
16819 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16820
16821 * include/grub/disk.h (grub_disk): Remove has_partitions.
16822 All users updated.
16823 * disk/loopback.c (grub_loopback): Remove has_partitions.
16824 All users updated.
16825 (options): Remove partitions. All users updated.
16826 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
16827 * util/i386/pc/grub-setup.c (setup): copy partition table only when
16828 actual partition table is found.
16829
16830 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16831
16832 Remove readability checks (too many false negatives).
16833
16834 * util/grub-install.in: Remove readability checks.
16835 * util/grub-mkconfig.in: Likewise.
16836 * util/grub.d/10_hurd.in: Likewise.
16837 * util/grub.d/10_kfreebsd.in: Likewise.
16838 * util/grub.d/10_linux.in: Likewise.
16839 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
16840 way.
16841
16842 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16843
16844 Enable acpi shutdown on all ACPI platforms.
16845
16846 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
16847 on coreboo, multiboot and EFI.
16848 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
16849 (grub_acpi_halt): Likewise.
16850 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
16851 (grub_cmd_halt): Don't call grub_acpi_halt directly.
16852 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
16853 * grub-core/lib/i386/halt.c (grub_halt)
16854 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
16855
16856 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16857
16858 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
16859 context.
16860
16861 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16862
16863 * grub-core/video/efi_gop.c: Fix over-80-chars line.
16864 * grub-core/video/efi_uga.c: Likewise.
16865
16866 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16867
16868 Filter devaliases and never open same device twice.
16869
16870 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
16871 (last_ihandle): Likewise.
16872 (ofdisk_hash_ent): New member shortest.
16873 (ofdisk_hash_add): Add canonical path too.
16874 (scan): New function.
16875 (grub_ofdisk_iterate): Iterate over hashed entries.
16876 (compute_dev_path): Don't add :0.
16877 (grub_ofdisk_open): Don't really open the disk.
16878 (grub_ofdisk_close): Avoid closing unrelated disk.
16879 (grub_ofdisk_read): Implement reopen logic.
16880 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
16881 New function.
16882 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
16883 New proto.
16884
16885 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16886
16887 Fix sparc64.
16888
16889 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
16890 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
16891 right address. Add sparc64_ieee1275_ldflags.
16892 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
16893 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
16894 to grub_host_to_target_addr
16895 (load_image): Likewise.
16896
16897 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16898
16899 * grub-core/normal/completion.c (complete_file): Handle device
16900 containing slash.
16901 Fix based on patch by Doug Nazar.
16902
16903 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16904
16905 grub-mknetdir script.
16906
16907 * Makefile.util.def (grub-mknetdir): New module.
16908 * tests/util/grub-shell.in: Support boot=net
16909 * util/grub-mknetdir.in: New file.
16910
16911 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16912
16913 videoinfo on non-vbe.
16914
16915 * grub-core/Makefile.core.def (vbeinfo): Removed.
16916 (vbetest): Removed.
16917 (videoinfo): New module.
16918 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
16919 * grub-core/commands/i386/pc/vbetest.c: Removed.
16920 * grub-core/commands/videoinfo.c: New file.
16921 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
16922 specification.
16923 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
16924 as vbetest.
16925 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
16926 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
16927 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
16928 mode_number. New parameter mode. All users updated.
16929 (grub_video_gop_iterate): New function.
16930 (grub_video_efi_gop): New member iterate.
16931 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
16932 (grub_vbe_set_video_mode): Remove setting useless fields.
16933 (vbe2videoinfo): New function.
16934 (grub_video_vbe_iterate): Likewise.
16935 (grub_video_vbe_setup): Use vbe2videoinfo.
16936 (grub_video_vbe_print_adapter_specific_info): New function.
16937 (grub_video_vbe_adapter): New fields iterate and
16938 print_adapter_specific_info.
16939 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
16940 All users updated.
16941 (grub_video_mode_info): New field mode_number.
16942 (grub_video_adapter): New fields iterate and
16943 print_adapter_specific_info.
16944
16945 2010-09-13 Tristan Gingold <gingold@free.fr>
16946 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
16947 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16948
16949 * grub-core/commands/efi/lsefisystab.c: New file.
16950 * grub-core/commands/efi/lssal.c: Likewise.
16951 * grub-core/Makefile.core.def (lsacpi): New module.
16952 (lsefisystab): Likewise.
16953 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
16954 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
16955 (grub_efi_sal_system_table): New struct.
16956 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
16957 (grub_efi_sal_system_table_memory_descriptor): Likewise.
16958 (grub_efi_sal_system_table_platform_features): Likewise.
16959 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
16960 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
16961 (grub_efi_sal_system_table_ap_wakeup): Likewise.
16962 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
16963
16964 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16965
16966 Support explicit user claim that a device is BIOS-visible.
16967
16968 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
16969 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
16970 * grub-core/kern/emu/hostdisk.c
16971 (convert_system_partition_to_system_disk): Support mdX.
16972 (find_system_device): New parameter add. All users updated.
16973 (grub_util_biosdisk_is_present): New function.
16974 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
16975 proto.
16976
16977 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16978
16979 Search hints support.
16980
16981 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
16982 All users updated.
16983
16984 2010-09-13 Yves Blusseau <blusseau@zetam.org>
16985
16986 Bash completion script for util commands
16987
16988 * Makefile.am: Add util/bash-completion.d directory
16989 * configure.ac: Likewise.
16990 * util/bash-completion.d/Makefile.am: New file.
16991 * util/bash-completion.d/grub-completion.bash.in: Likewise.
16992
16993 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16994
16995 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
16996 (print_backlog): set backlog_ucs4 and backlog_glyphs.
16997 Reported by: Yves Blusseau.
16998
16999 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17000
17001 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
17002 partition size and offset.
17003
17004 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17005
17006 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
17007
17008 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17009
17010 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
17011
17012 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17013
17014 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
17015 (grub_xvasprintf): Likewise.
17016
17017 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17018
17019 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
17020
17021 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17022
17023 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
17024 args ending with NULL.
17025
17026 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17027
17028 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
17029 pointer.
17030
17031 2010-09-11 Szymon Janc <szymon@janc.net.pl>
17032
17033 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
17034
17035 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17036
17037 Shutdown using ACPI.
17038
17039 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
17040 * grub-core/commands/acpihalt.c: New file.
17041 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
17042 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
17043 (grub_acpi_halt): New proto.
17044 (GRUB_ACPI_SLP_EN): New const.
17045 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
17046 (GRUB_ACPI_OPCODE_*): New enum.
17047 (GRUB_ACPI_EXTOPCODE_*): Likewise.
17048
17049 2010-09-11 Tristan Gingold <gingold@free.fr>
17050 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
17051 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17052
17053 * commands/lsacpi.c: New file.
17054 * grub-core/Makefile.core.def (lsacpi): New module.
17055 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
17056 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
17057 (grub_acpi_madt_entry_header): New struct.
17058 (grub_acpi_madt): Likewise.
17059 (grub_acpi_madt_entry_interrupt_override): Likewise.
17060 (grub_acpi_madt_entry_sapic): Likewise.
17061 (grub_acpi_madt_entry_lsapic): Likewise.
17062 (grub_acpi_madt_entry_platform_int_source): Likewise.
17063 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
17064 (PRIuGRUB_UINT32_T): Likewise.
17065 (PRIxGRUB_UINT64_T): Likewise.
17066
17067 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17068
17069 Implement loading palette on ieee1275_fb.
17070
17071 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
17072 (have_setcolors): Likewise.
17073 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
17074 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
17075 (grub_video_ieee1275_set_palette): Implement.
17076
17077 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17078 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
17079
17080 * util/grub-install.in (grub_partition): New variable.
17081 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
17082 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
17083 Fixes a bug reported by Yves Blusseau.
17084
17085 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17086
17087 Fix emu on mipsel.
17088
17089 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
17090 =grub_cpu_flush_cache on all mips and not only yeeloong.
17091 * configure.ac (COND_mips): New conditional.
17092 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
17093 platforms.
17094 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
17095 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
17096 [GRUB_LINKER_HAVE_INIT]: New function.
17097 (grub_emu_post_init): Likewise.
17098 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
17099 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
17100 * include/grub/cache.h (_mips): Include mips/cache.h.
17101 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
17102 LVM and RAID prototypes.
17103 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
17104 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
17105 function.
17106
17107 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
17108
17109 * util/grub-install.in: Don't try to verify core.img until after
17110 running grub-mkimage to create it.
17111
17112 2010-09-10 Robert Millan <rmh@gnu.org>
17113
17114 * util/grub.d/10_hurd.in: Add misc readability checks.
17115 * util/grub.d/10_kfreebsd.in: Likewise.
17116 * util/grub.d/10_linux.in: Likewise.
17117
17118 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
17119
17120 * util/grub-install.in: ${imgext} won't be defined here until the
17121 install branch is merged. For the meantime, only verify core.img on
17122 i386-pc and sparc64-ieee1275 platforms.
17123
17124 2010-09-10 Robert Millan <rmh@gnu.org>
17125
17126 Solaris support in grub_find_zpool_from_dir(). Thanks
17127 Seth Goldberg for referring to getextmntent() facility.
17128
17129 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
17130 `sys/mkdev.h'.
17131 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
17132 `<sys/mnttab.h>'.
17133 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
17134 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
17135 method for finding zpool name.
17136
17137 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
17138
17139 grub-fstest needs the host and hostfs modules while other utilities
17140 actively require those modules to be absent, so grub-fstest needs
17141 its own initialisation and finalisation code.
17142
17143 * Makefile.am (grub_fstest.pp): New target.
17144 (grub_fstest_init.lst): Likewise.
17145 (grub_fstest_init.c): Likewise.
17146 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
17147
17148 2010-09-10 Robert Millan <rmh@gnu.org>
17149
17150 * configure.ac: Check for `struct statfs.f_fstypename' and
17151 `struct statfs.f_mntfromname'.
17152
17153 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
17154 kFreeBSD-specific code.
17155
17156 2010-09-10 Robert Millan <rmh@gnu.org>
17157
17158 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
17159 on ZFS. Now non-main filesystems are supported as / too.
17160
17161 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
17162
17163 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
17164 and grub-core/disk/host.c to ...
17165 (grub-fstest): ... here. Having the host disk implementation
17166 present confuses grub-probe and other utility programs.
17167
17168 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
17169 when writing to a file, not when writing to stdout.
17170
17171 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
17172
17173 * tests/partmap_test.in: New test for partitions.
17174 * Makefile.util.def: Rules for new test.
17175
17176 2010-09-09 Robert Millan <rmh@gnu.org>
17177
17178 * util/grub-probe.c (probe): Fix a pair of unhandled error
17179 conditions.
17180
17181 2010-09-09 Robert Millan <rmh@gnu.org>
17182
17183 Basic Btrfs support (detection and UUID).
17184
17185 * grub-core/fs/btrfs.c: New file.
17186 * Makefile.util.def (library): Register btrfs.c.
17187 * grub-core/Makefile.core.def: Likewise.
17188
17189 2010-09-08 Robert Millan <rmh@gnu.org>
17190
17191 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
17192 with (optional) parameters to specify device and relative path.
17193 * util/grub-install.in: Use is_path_readable_by_grub() to
17194 verify readability of a few critical files.
17195 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
17196 verify readability of grub.cfg.new.
17197
17198 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17199
17200 Split minix.mod into minix.mod and minix2.mod.
17201
17202 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
17203 * grub-core/Makefile.core.def (minix2): New module.
17204 * grub-core/fs/minix.c: Use definitions instead of runtime version
17205 checking.
17206 * grub-core/fs/minix2.c: New file.
17207
17208 2010-09-08 Yves Blusseau <blusseau@zetam.org>
17209
17210 Add new --boot-directory option to replace --root-directory
17211
17212 * util/grub-install.in: Add new --boot-directory option
17213 * util/grub-reboot.in: Likewise.
17214 * util/grub-set-default.in: Likewise.
17215
17216 2010-09-08 Yves Blusseau <blusseau@zetam.org>
17217
17218 * util/grub-mkconfig.in: Use new variable.
17219
17220 2010-09-08 Yves Blusseau <blusseau@zetam.org>
17221
17222 * configure.ac: Define some useful variables.
17223
17224 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17225
17226 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
17227 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
17228 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
17229 Use terminfo and don't use cursor-on/cursor-off unless it's known
17230 to work.
17231 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
17232 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
17233
17234 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
17235
17236 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
17237 starts with "(,", fill the drive containing the loaded image in
17238 between those two characters, but expect that a full partition
17239 specification including partition map names will follow.
17240
17241 2010-09-08 Robert Millan <rmh@gnu.org>
17242
17243 * configure.ac: Remove `--enable-grub-fstest' option.
17244 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
17245
17246 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
17247 `grub-fstest' instead of `grub-probe' for readability verification.
17248 * util/grub-probe.c (probe): Remove readability verification kludge.
17249
17250 2010-09-08 Robert Millan <rmh@gnu.org>
17251
17252 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
17253 initializing `GRUB_FS'.
17254
17255 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
17256
17257 Not command (!) support to GRUB script.
17258
17259 * tests/grub_script_not.in: New test.
17260 * Makefile.util.def: Rules for new test.
17261
17262 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
17263 ! command as a special case.
17264 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
17265
17266 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17267
17268 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
17269 grub_free.
17270
17271 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17272
17273 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
17274
17275 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17276
17277 * docs/grub.texi (Shell-like scripting): Documentation for break,
17278 continue, shift and return commands.
17279
17280 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
17281
17282 Rename CD-ROM to cd on BIOS.
17283
17284 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
17285 "cd".
17286 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
17287
17288 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17289
17290 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
17291 * util/grub-probe.c (main): Likewise.
17292 * util/i386/pc/grub-setup.c (main): Likewise.
17293 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
17294 Reported and debugged by: alexxy
17295
17296 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17297
17298 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
17299 diagnostic info.
17300
17301 2010-09-05 Jo Shields <directhex@apebox.org>
17302
17303 * util/grub.d/30_os-prober.in: Add missing classes.
17304
17305 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17306
17307 * docs/grub.texi (Theme file format): Document new position format.
17308
17309 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17310
17311 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
17312 a table. Use @code instead of @verbatim.
17313
17314 2010-09-05 Colin D Bennett <colin@gibibit.com>
17315
17316 Gfxmenu documentation.
17317
17318 * docs/grub.texi (Theme file format): New chapter.
17319
17320 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17321
17322 * grub-core/Makefile.core.def (xzio): New module.
17323 * grub-core/io/xzio.c: New file.
17324 * grub-core/lib/xzembed/xz.h: New file (from xembed).
17325 * grub-core/lib/xzembed/xz_config.h: Likewise.
17326 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
17327 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
17328 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
17329 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
17330 * grub-core/lib/xzembed/xz_private.h: Likewise.
17331 * grub-core/lib/xzembed/xz_stream.h: Likewise.
17332 * include/grub/file.h (grub_file_filter_id): New compression filter
17333 GRUB_FILE_FILTER_XZIO.
17334
17335 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17336
17337 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
17338 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
17339 size.
17340
17341 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17342
17343 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
17344 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
17345
17346 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17347
17348 Uncompressed checksum support.
17349
17350 * grub-core/commands/hashsum.c (options): Add option --uncompress.
17351 (check_list): New parameter uncompress.
17352 (grub_cmd_hashsum): Handle --uncompress.
17353
17354 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17355
17356 Reintroduce testload.
17357
17358 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
17359 from here ...
17360 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
17361 (GRUB_MOD_INIT): New function.
17362 (GRUB_MOD_FINI): Likewise.
17363 * grub-core/Makefile.core.def (testload): New module.
17364
17365 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17366
17367 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
17368 (uint8_t): New type.
17369 (uint16_t): Likewise.
17370 (uint32_t): Likewise.
17371 (uint64_t): Likewise.
17372
17373 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17374
17375 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
17376
17377 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17378
17379 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
17380 Made static.
17381 (grub_gzfile_open): Removed. All users updated.
17382 (GRUB_MOD_INIT): New function.
17383 (GRUB_MOD_FINI): Likewise.
17384 * grub-core/kern/file.c (grub_file_filters_all): New variable.
17385 (grub_file_filters_enabled): Likewise.
17386 (grub_file_open): Handle filters.
17387 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
17388 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
17389 * include/grub/file.h (grub_file_filter_id_t): New type.
17390 (grub_file_filter_t): Likewise.
17391 (grub_file_filters_all): New extern variable.
17392 (grub_file_filters_enabled): Likewise.
17393 (grub_file_filter_register): New inline function.
17394 (grub_file_filter_unregister): Likewise.
17395 (grub_file_filter_disable): Likewise.
17396 (grub_file_filter_disable_compression): Likewise.
17397 * include/grub/gzio.h: Removed.
17398
17399 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17400
17401 Filename expansion support for wildcards in GRUB script.
17402
17403 * tests/grub_script_expansion.in: New test.
17404 * Makefile.util.def: Rule for new test.
17405
17406 * grub-core/commands/wildcard.c: New file, implements filename
17407 expansion support for GRUB script.
17408 * grub-core/Makefile.core.def: Rule update for regexp.mod.
17409 * grub-core/script/argv.c: Cosmetic changes.
17410 * grub-core/script/execute.c (grub_script_arglist_to_argv):
17411 Refactored to perform wildcard expansion on arguments.
17412 * include/grub/script_sh.h (grub_script_wildcard_translator): New
17413 struct.
17414
17415 * tests/util/grub-shell.in: Fix quoting for read input.
17416
17417 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17418
17419 Support for updating environment variables with matched substrings
17420 of regexp.
17421
17422 * tests/grub_cmd_regexp.in: New test.
17423 * Makefile.util.def: Rule for new test.
17424
17425 * grub-core/commands/regexp.c: New option -s to update environment
17426 variables with regexp matches.
17427
17428 2010-09-04 Szymon Janc <szymon@janc.net.pl>
17429
17430 * include/grub/file.h (grub_file): New member not_easly_seekable.
17431 (grub_file_seekable): New inline function.
17432 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
17433 easily seekable.
17434 (grub_gzio_open): Set not_easly_seekable.
17435 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
17436 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
17437
17438 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17439
17440 Support for options to appear multiple times on cmdline.
17441
17442 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
17443 * grub-core/commands/extcmd.c: Support for repeatable option.
17444 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
17445 repeatable option support.
17446
17447 Refactor menuentry into a regular command.
17448
17449 * grub-core/commands/menuentry.c: New file, menuentry command
17450 implementation.
17451 * grub-core/Makefile.core.def: Rule update for normal.mod.
17452 * grub-core/normal/main.c: Moved menuentry creation to
17453 grub-core/commands/menuentry.c.
17454 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
17455 (grub_menu_execute_entry_real): Removed.
17456 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
17457 function.
17458 (grub_script_execute_menuentry): Removed.
17459 * grub-core/script/parser.y (menuentry): Removed.
17460 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
17461 * grub-core/script/yylex.l (menuentry): Removed.
17462 * include/grub/menu.h (grub_menu_init): New prototype.
17463 (grub_menu_fini): New prototype.
17464 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
17465 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
17466 (grub_script_execute_sourcecode): New prototype.
17467
17468 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17469
17470 "return" command for GRUB script functions.
17471
17472 * tests/grub_script_return.in: New test.
17473 * Makefile.util.def: Rules for new test.
17474
17475 * grub-core/script/execute.c (grub_script_return): New function.
17476 * grub-core/script/main.c: Register/unregister return commaond.
17477 * include/grub/script_sh.h (grub_script_return): New prototype.
17478
17479 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17480
17481 "setparams" command to update positional parameters.
17482
17483 * tests/grub_script_setparams.in: New test.
17484 * Makefile.util.def: Rules for new test.
17485
17486 * grub-core/script/argv.c (grub_script_argv_make): New function.
17487 * grub-core/script/execute.c (replace_scope): New function.
17488 (grub_script_setparams): New function.
17489 * grub-core/script/lexer.c: Remove unused variables.
17490 * grub-core/script/main.c: Register/unregister setparams command.
17491 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
17492 (grub_script_setparams): New prototype.
17493
17494 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17495
17496 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
17497 grub_free order.
17498
17499 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17500
17501 Support for passing block of commands as an argument to extcmds.
17502
17503 * Makefile.util.def: Rules for new test.
17504 * tests/grub_script_blockarg.in: New test.
17505 * grub-core/tests/test_blockarg.c: New file, block argument
17506 command used in the test.
17507
17508 * include/grub/extcmd.h (grub_extcmd_context): New struct.
17509 (grub_register_extcmd_prio): New function prototype.
17510 (grub_extcmd_dispatcher): New function prototype.
17511 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
17512 type.
17513 * include/grub/script_sh.h (struct grub_script): New members
17514 `children', `next_siblings' and `refcnt' for block arguments and
17515 reference counting.
17516 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
17517 (grub_script_arg): New member `script' for block argument.
17518 (grub_script_argv): New member `script' for block argument.
17519 (grub_parser_param): New member `scripts' for block argument.
17520 (grub_script_mem_free): New extern function prototype.
17521 (grub_script_ref): New function prototype.
17522 (grub_script_unref): New function prototype.
17523
17524 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
17525 extcmd form to support block arguments.
17526 * grub-core/script/argv.c: Block arguments support.
17527 * grub-core/script/execute.c: Likewise.
17528 * grub-core/script/lexer.c: Likewise.
17529 * grub-core/script/main.c: Likewise.
17530 * grub-core/script/script.c: Likewise.
17531 * grub-core/script/parser.y: Likewise. New `block' and `block0'
17532 non-terminals.
17533
17534 * grub-core/commands/acpi.c: Update extcmd implementations with
17535 grub_extcmd_context_t.
17536 * grub-core/commands/cat.c: Likewise.
17537 * grub-core/commands/echo.c: Likewise.
17538 * grub-core/commands/extcmd.c: Likewise.
17539 * grub-core/commands/hashsum.c: Likewise.
17540 * grub-core/commands/hdparm.c: Likewise.
17541 * grub-core/commands/help.c: Likewise.
17542 * grub-core/commands/hexdump.c: Likewise.
17543 * grub-core/commands/i386/cpuid.c: Likewise.
17544 * grub-core/commands/i386/pc/drivemap.c: Likewise.
17545 * grub-core/commands/i386/pc/halt.c: Likewise.
17546 * grub-core/commands/i386/pc/sendkey.c: Likewise.
17547 * grub-core/commands/iorw.c: Likewise.
17548 * grub-core/commands/keystatus.c: Likewise.
17549 * grub-core/commands/loadenv.c: Likewise.
17550 * grub-core/commands/ls.c: Likewise.
17551 * grub-core/commands/lspci.c: Likewise.
17552 * grub-core/commands/memrw.c: Likewise.
17553 * grub-core/commands/probe.c: Likewise.
17554 * grub-core/commands/search_wrap.c: Likewise.
17555 * grub-core/commands/setpci.c: Likewise.
17556 * grub-core/commands/sleep.c: Likewise.
17557 * grub-core/disk/loopback.c: Likewise.
17558 * grub-core/hello/hello.c: Likewise.
17559 * grub-core/loader/i386/bsd.c: Likewise.
17560 * grub-core/loader/xnu.c: Likewise.
17561 * grub-core/term/gfxterm.c: Likewise.
17562 * grub-core/term/serial.c: Likewise.
17563 * grub-core/tests/lib/functional_test.c: Likewise.
17564
17565 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17566
17567 Multi-line quoted strings support.
17568
17569 * grub-core/script/lexer.c (append_newline): Removed.
17570 (grub_script_lexer_yywrap): Refactored.
17571 (grub_script_lexer_init): Refactored.
17572 * grub-core/script/yylex.l (yywrap): New function.
17573 (grub_lexer_resplit): New function.
17574 (grub_lexer_unput): New function.
17575 * include/grub/script_sh.h (grub_lexer_param): New members, unput
17576 and resplit.
17577 * tests/grub_script_echo1.in: Added few more testcases.
17578
17579 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
17580
17581 * grub-core/kern/misc.c: Don't add abort alias in utils.
17582 Reported by: echoline.
17583
17584 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
17585
17586 Add missing files into "make dist" tarball for other platforms.
17587
17588 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
17589 * conf/Makefile.common (dist_noinst_DATA): New variable.
17590 * conf/Makefile.extra-dist: Added missing make dist files.
17591 * grub-core/Makefile.core.def: Likewise.
17592
17593 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17594
17595 Compress grub_prefix.
17596
17597 * grub-core/boot/i386/pc/lnxboot.S: Use
17598 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
17599 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
17600 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
17601 GRUB_MACHINE_PREFIX_END. All users updated.
17602 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
17603 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
17604 + 0x40.
17605 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17606 * util/grub-mkimage.c (image_target_desc): Change data_end to
17607 prefix_end. All users updated.
17608
17609 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17610
17611 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
17612 value.
17613 (grub_openbsd_boot): Likewise.
17614 (grub_netbsd_boot): Likewise.
17615 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
17616 (grub_xnu_boot): Likewise.
17617
17618 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17619
17620 * configure.ac: Clean LIBS variable after tests.
17621
17622 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17623
17624 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
17625
17626 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17627
17628 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
17629 echo if libdevmapper will be used.
17630
17631 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
17632
17633 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
17634 constant for the same file.
17635
17636 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17637
17638 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
17639
17640 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17641
17642 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
17643 grub-core/*.pp.
17644
17645 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17646
17647 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
17648 required by the boot protocol.
17649
17650 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
17651 ebp and edi members.
17652 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
17653 state.ebp and state.edi.
17654 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
17655 %ebp and %edi according to grub_relocator32_ebp and
17656 grub_relocator32_edi respectively.
17657 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
17658 and state.edi.
17659
17660 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17661
17662 Add i386-pc-pxe image target.
17663
17664 * util/grub-mkimage.c (image_target_desc): New enum value
17665 IMAGE_I386_PC_PXE.
17666 (image_targets): New target i386-pc-pxe.
17667 (generate_image): Handle i386-pc-pxe image.
17668
17669 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17670
17671 Fix grub_pxe_scan.
17672
17673 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
17674 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
17675 All users updated.
17676 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
17677 (grub_pxe_pxenv): Correct type.
17678
17679 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17680
17681 * NEWS: Document most of the important changes since 1.98.
17682
17683 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17684
17685 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
17686 generated manual page) a little.
17687
17688 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17689
17690 * docs/grub.texi: Add myself as an author.
17691
17692 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
17693
17694 * Makefile.util.def (libgrub.a): Add missing sunpc.
17695 Reported by: Seth Goldberg.
17696
17697 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17698
17699 Interrupt wrapping and code simplifications.
17700
17701 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
17702 x86_noieee1275 which are functionaly equivalent in this case.
17703 (grub-install): Make source on each platform explicit. Enable on
17704 all noemu.
17705 * gentpl.py (x86_efi_pc): Removed group.
17706 (x86_noefi): Likewise.
17707 (i386_noefi): Likewise.
17708 (x86_noieee1275): Likewise.
17709 (i386_noieee1275): Likewise.
17710 (i386_noefi_noieee1275): Likewise.
17711 (i386_pc_qemu_coreboot): Likewise.
17712 (i386_coreboot_multiboot): Likewise.
17713 (i386_pc_coreboot_multiboot_qemu): Likewise.
17714 (x86_noefi_mips): Likewise.
17715 (noieee1275): Likewise.
17716 (ieee1275_mips): Likewise.
17717 (noemu_noieee1275): Likewise.
17718 (cmos): New group.
17719 (usb): Likewise.
17720 (videoinkernel): Likewise.
17721 (videomodules): Likewise.
17722 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
17723 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
17724 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
17725 include/grub/loader.h, include/grub/msdos_partition.h,
17726 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
17727 include/grub/machine/console.h, include/grub/machine/vga.h,
17728 include/grub/machine/vbe.h, include/grub/machine/init.h,
17729 include/grub/machine/kernel.h, include/grub/cpu/time.h,
17730 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
17731 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
17732 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
17733 * grub-core/Makefile.core.def (kernel): Explicit the source for
17734 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
17735 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
17736 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
17737 Use videoinkernel tag.
17738 (usb): Enable on all usb.
17739 (usbserial_common): Likewise.
17740 (usbserial_pl2303): Likewise.
17741 (usbserial_ftdi): Likewise.
17742 (uhci): Enable on all x86.
17743 (ohci): Enable on all pci.
17744 (cmostest): Enable on all CMOS.
17745 (acpi): Include commands/acpi.c on all platforms.
17746 (halt): Add relevant lib/*/halt.c.
17747 (hdparm): Enable on all pci.
17748 (lspci): Likewise.
17749 (usbtest): Enable on all usb.
17750 (ata): Enable on all pci.
17751 (ata_pthru): Likewise.
17752 (usbms): Enable on all usb.
17753 (usb_keyboard): Likewise.
17754 (font): Use tag videomodules.
17755 (bufio): Likewise.
17756 (datetime): Use tag cmos. Enable on all noemu.
17757 (mmap): Use tags common and x86.
17758 (gfxterm): Use tag videomodules.
17759 (bitmap): Likewise.
17760 (bitmap_scale): Likewise.
17761 (video_fb): Likewise.
17762 (video): Likewise.
17763 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
17764 adjust padding accordingly. All users updated.
17765 (grub_ohci_transaction): Fix bad format specification.
17766 (GRUB_MOD_INIT): Add asserts for struct size.
17767 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
17768 (grub_alloc_td): Likewise.
17769 (grub_free_queue): Likewise.
17770 (grub_uhci_transfer): Likewise.
17771 (grub_uhci_transaction): Fix bad format specification.
17772 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
17773 (grub_usb_bulk_readwrite): Likewise.
17774 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
17775 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
17776 Made static.
17777 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
17778 Made static.
17779 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
17780 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
17781 Transformed into C.
17782 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
17783 Moved from here ...
17784 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
17785 ... here. Transformed into C. Made static.
17786 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
17787 Moved from here ...
17788 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
17789 ... here. Transformed into C. Made static.
17790 * grub-core/kern/i386/pc/startup.S
17791 (grub_biosdisk_check_int13_extensions): Moved from here ...
17792 * grub-core/disk/i386/pc/biosdisk.c
17793 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
17794 Made static.
17795 * grub-core/kern/i386/pc/startup.S
17796 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
17797 * grub-core/disk/i386/pc/biosdisk.c
17798 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
17799 Transformed into C. Made static.
17800 * grub-core/kern/i386/pc/startup.S
17801 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
17802 * grub-core/disk/i386/pc/biosdisk.c
17803 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
17804 Transformed into C. Made static.
17805 * grub-core/kern/i386/pc/startup.S
17806 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
17807 * grub-core/disk/i386/pc/biosdisk.c
17808 (grub_biosdisk_get_diskinfo_standard): ... here.
17809 Transformed into C. Made static.
17810 * grub-core/kern/i386/pc/startup.S
17811 (grub_biosdisk_get_num_floppies): Moved from here ...
17812 * grub-core/disk/i386/pc/biosdisk.c
17813 (grub_biosdisk_get_num_floppies): ... here.
17814 Transformed into C. Made static.
17815 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
17816 New function.
17817 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
17818 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
17819 Transformed into C. Made static.
17820 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
17821 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
17822 Transformed into C. Made static.
17823 * grub-core/kern/i386/ieee1275/init.c: Removed.
17824 * grub-core/kern/i386/misc.S: Likewise.
17825 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
17826 Splitted from here ...
17827 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
17828 Transformed into C. Made static. All users updated.
17829 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
17830 Transformed into C. Made static. All users updated.
17831 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
17832 Moved from here...
17833 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
17834 Transformed into C. Made static. All users updated.
17835 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
17836 Moved from here...
17837 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
17838 Transformed into C. Made static. All users updated.
17839 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
17840 Removed (replaced by C version).
17841 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
17842 Moved from here...
17843 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
17844 Transformed into C. Made static.
17845 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
17846 Moved from here...
17847 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
17848 ... here. Transformed into C.
17849 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
17850 Moved from here...
17851 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
17852 ... here. Transformed into C.
17853 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
17854 Moved from here...
17855 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
17856 ... here. Transformed into C. Made static.
17857 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
17858 Moved from here...
17859 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
17860 ... here. Transformed into C.
17861 * grub-core/kern/i386/pc/startup.S
17862 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
17863 * grub-core/video/i386/pc/vbe.c
17864 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
17865 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
17866 Moved from here...
17867 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
17868 ... here. Transformed into C.
17869 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
17870 Moved from here...
17871 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
17872 ... here. Transformed into C.
17873 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
17874 Moved from here...
17875 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
17876 ... here. Transformed into C.
17877 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
17878 Moved from here...
17879 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
17880 ... here. Transformed into C.
17881 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
17882 Moved from here...
17883 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
17884 ... here. Transformed into C. Made static.
17885 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
17886 Moved from here...
17887 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
17888 ... here. Transformed into C. Made static.
17889 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
17890 Moved from here...
17891 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
17892 ... here. Transformed into C. Made static.
17893 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
17894 pxe_rm_entry as third argument.
17895 (grub_bios_interrupt): New function.
17896 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
17897 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
17898 of calling grub_stop.
17899 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
17900 * grub-core/lib/efi/halt.c (grub_halt): ...here.
17901 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
17902 * grub-core/lib/emu/halt.c (grub_halt): ... here.
17903 * grub-core/lib/i386/halt.c: Moved from here ...
17904 * grub-core/lib/i386/halt.c: ... here.
17905 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
17906 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
17907 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
17908 grub_stop_floppy.
17909 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
17910 * include/grub/i386/coreboot/init.h: Removed.
17911 * include/grub/i386/multiboot/init.h: Likewise.
17912 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
17913 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
17914 * include/grub/i386/pc/int.h: New file.
17915 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
17916 (grub_pxe_scan): Removed.
17917 (grub_pxe_call): Update prototype.
17918 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
17919 prototypes.
17920 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
17921 * include/grub/i386/qemu/init.h: Removed.
17922 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
17923 noreturn.
17924 (grub_halt): Likewise.
17925 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
17926 (grub_reboot): Likewise.
17927 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
17928 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
17929 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
17930
17931 2010-08-30 Robert Millan <rmh@gnu.org>
17932
17933 * NEWS: Document addition of ZFS support in `grub-install' and
17934 `grub-mkconfig'.
17935
17936 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
17937
17938 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
17939 dprintf output.
17940
17941 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17942
17943 Remove leftover embedding of font objects.
17944
17945 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17946 * util/grub-install.in (font): Removed.
17947 * util/grub-mkimage.c (generate_image): Remove font support. All users
17948 updated.
17949
17950 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17951
17952 Remove leftover embedding of font objects.
17953
17954 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17955 * util/grub-install.in (font): Removed.
17956 * util/grub-mkimage.c (generate_image): Remove font support. All users
17957 updated.
17958
17959 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17960
17961 * docs/grub.texi (Network): Fix reference to pxe_blksize.
17962 Reported by: Ian Turner
17963
17964 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17965
17966 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
17967 timeout to avoid indefinite boot stalling.
17968
17969 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17970
17971 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
17972 (grub_env_write_color_highlight): Likewise.
17973
17974 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17975
17976 * grub-core/normal/term.c (print_more): Return to normal and not
17977 to standard state after printing "---MORE---".
17978
17979 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17980
17981 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
17982 Mask out the bit 0x80 since it has other meaning that specifiing color.
17983
17984 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17985
17986 New relocator. Allows for more kernel support and more straightforward
17987 loader writing.
17988
17989 * Makefile.am (BOOTTARGET): New variable.
17990 (QEMU32): Likewise.
17991 (linux.init.x86_64): New target.
17992 (linux.init.i386): Likewise.
17993 (multiboot.elf): Likewise.
17994 (kfreebsd.elf): Likewise.
17995 (kfreebsd.aout): Likewise.
17996 (pc-chainloader.elf): Likewise.
17997 (pc-chainloader.bin): Likewise.
17998 (ntldr.elf): Likewise.
17999 (ntldr.bin): Likewise.
18000 (multiboot2.elf): Likewise.
18001 (kfreebsd.init.x86_64): Likewise.
18002 (kfreebsd.init.i386): Likewise.
18003 (knetbsd.init.i386): Likewise.
18004 (kopenbsd.init.i386): Likewise.
18005 (knetbsd.init.x86_64): Likewise.
18006 (kopenbsd.init.x86_64): Likewise.
18007 (linux-initramfs.i386): Likewise.
18008 (linux-initramfs.x86_64): Likewise.
18009 (kfreebsd-mfsroot.i386.img): Likewise.
18010 (knetbsd.image.i386): Likewise.
18011 (kopenbsd.image.i386): Likewise.
18012 (kopenbsd.image.x86_64): Likewise.
18013 (knetbsd.miniroot-image.i386.img): Likewise.
18014 (kfreebsd-mfsroot.x86_64.img): Likewise.
18015 (knetbsd.image.x86_64): Likewise.
18016 (knetbsd.miniroot-image.x86_64.img): Likewise.
18017 (kfreebsd-mfsroot.i386.gz): Likewise.
18018 (bootcheck-kfreebsd-i386): Likewise.
18019 (kfreebsd-mfsroot.x86_64.gz): Likewise.
18020 (bootcheck-kfreebsd-x86_64): Likewise.
18021 (knetbsd.miniroot-image.i386.gz): Likewise.
18022 (bootcheck-knetbsd-i386): Likewise.
18023 (bootcheck-kopenbsd-i386): Likewise.
18024 (bootcheck-kopenbsd-x86_64): Likewise.
18025 (knetbsd.miniroot-image.x86_64.gz): Likewise.
18026 (bootcheck-knetbsd-x86_64): Likewise.
18027 (bootcheck-linux-i386): Likewise.
18028 (bootcheck-linux-x86_64): Likewise.
18029 (bootcheck-linux16-i386): Likewise.
18030 (bootcheck-linux16-x86_64): Likewise.
18031 (bootcheck-multiboot): Likewise.
18032 (bootcheck-multiboot2): Likewise.
18033 (bootcheck-kfreebsd-aout): Likewise.
18034 (bootcheck-pc-chainloader): Likewise.
18035 (bootcheck-ntldr): Likewise.
18036 (CLEANFILES): Add new targets.
18037 (BOOTCHECKS): New variable.
18038 (.PHONY): Add bootchecks.
18039 (SUCCESSFUL_BOOT_STRING): New variable.
18040 (BOOTCHECK_TIMEOUT): Likewise.
18041 (bootcheck): New target
18042 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
18043 * configure.ac: Correct efiemu excuse.
18044 * docs/grub.texi (Supported kernels): New chapter.
18045 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
18046 include/grub/mm_private.h. Simplify inclusion of
18047 include/grub/boot.h, include/grub/loader.h
18048 and include/grub/msdos_partition.h
18049 (KERNEL_HEADER_FILES) [i386_coreboot]:
18050 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
18051 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
18052 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
18053 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
18054 include/grub/machine/loader.h.
18055 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
18056 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
18057 extra_dist.
18058 (pci.mod): Enable on i386-multiboot.
18059 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
18060 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
18061 i386-qemu.
18062 (relocator.mod): Rewritten.
18063 (aout.mod): Enable on all x86.
18064 (bsd.mod): Likewise.
18065 (ntldr.mod): New module.
18066 (linux.mod): Use loader/i386/linux.c on all x86.
18067 (xnu.mod): Enable on all x86.
18068 (vga_text.mod): disable on EFI and QEMU.
18069 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
18070 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
18071 * grub-core/efiemu/loadcore.c: Likewise.
18072 * grub-core/efiemu/main.c: Likewise.
18073 (grub_efiemu_exit_boot_services): Removed.
18074 (grub_efiemu_finish_boot_services): Likewise.
18075 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
18076 function.
18077 * grub-core/efiemu/i386/nocfgtables.c: New file.
18078 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
18079 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
18080 (grub_efi_finish_boot_services): Moved from here ...
18081 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
18082 Fille finish memory map and related data.
18083 (finish_mmap_buf): New variable.
18084 (grub_efi_uintn_t finish_mmap_size): Likewise.
18085 (grub_efi_uintn_t finish_key): Likewise.
18086 (grub_efi_uintn_t finish_desc_size): Likewise.
18087 (grub_efi_uint32_t finish_desc_version): Likewise.
18088 (grub_efi_is_finished): Likewise.
18089 (grub_efi_get_memory_map): Use saved memory map if EFI is already
18090 finished.
18091 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
18092 (grub_elf64_phdr_iterate): Likewise.
18093 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
18094 (grub_os_area_size): Likewise.
18095 (grub_machine_init): Don't reserve os area.
18096 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
18097 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
18098 * grub-core/kern/i386/loader.S: Removed.
18099 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
18100 (grub_os_area_size): Likewise.
18101 (grub_machine_init): Don't reserve os area.
18102 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
18103 Don't call grub_dl_unload_all.
18104 Don't include loader.S.
18105 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
18106 Declare the memory after _end as available.
18107 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
18108 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
18109 (GRUB_MM_ALLOC_MAGIC): Moved from here...
18110 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
18111 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
18112 * include/grub/mm_private.h (grub_mm_header): ... here.
18113 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
18114 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
18115 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
18116 (grub_mm_region): ..here. Removed addr. Added pre_size.
18117 All users updated.
18118 * grub-core/kern/mm.c (base): Renamed to ...
18119 (grub_mm_base): ... this. Made global.
18120 (grub_real_malloc): Alloc from end of region.
18121 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
18122 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
18123 * grub-core/kern/powerpc/cache_flush.S: ... here.
18124 * grub-core/lib/efi/relocator.c: New file.
18125 * grub-core/lib/i386/relocator.c: Rewritten.
18126 * grub-core/lib/i386/relocator16.S: New file.
18127 * grub-core/lib/i386/relocator32.S: Likewise.
18128 * grub-core/lib/i386/relocator64.S: Likewise.
18129 * grub-core/lib/i386/relocator_asm.S: Rewritten.
18130 * grub-core/lib/i386/relocator_common.S: New file.
18131 * grub-core/lib/ieee1275/relocator.c: Likewise.
18132 * grub-core/lib/mips/relocator.c: Rewritten.
18133 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
18134 stylistic adjustments.
18135 * grub-core/lib/powerpc/relocator.c: New file.
18136 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
18137 * grub-core/lib/relocator.c: Rewritten.
18138 * grub-core/lib/x86_64/relocator_asm.S: New file.
18139 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
18140 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
18141 (bsd_tag): New struct.
18142 (tags): New variable.
18143 (tags_last): Likewise.
18144 (netbsd_module): New struct.
18145 (netbsd_mods): New variable.
18146 (netbsd_mods_last): Likewise.
18147 (openbsd_opts): New parameter "serial".
18148 (OPENBSD_SERIAL_ARG): New definition.
18149 (netbsd_opts): New parameter "serial".
18150 (NETBSD_SERIAL_ARG): New definition.
18151 (grub_freebsd_add_meta): Reorganised into ...
18152 (grub_bsd_add_meta): ...this. All users updated.
18153 (grub_freebsd_add_mmap): Reorganised into ...
18154 (generate_e820_mmap): ...this...
18155 (grub_bsd_add_mmap): ...and this. All users updated.
18156 (grub_freebsd_list_modules): Use tags.
18157 (grub_netbsd_add_meta_module): New function.
18158 (grub_netbsd_list_modules): Likewise.
18159 (grub_freebsd_boot): Use relocator and finish EFI.
18160 (grub_openbsd_boot): Likewise.
18161 (grub_netbsd_setup_video): New function.
18162 (grub_netbsd_add_modules): Likewise.
18163 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
18164 and finish EFI.
18165 (grub_bsd_unload): Unload tags.
18166 (grub_bsd_load_aout): Use relocator.
18167 (grub_bsd_elf32_size_hook): New function.
18168 (grub_bsd_elf32_hook): Use relocator.
18169 (grub_bsd_elf64_size_hook): New function.
18170 (grub_bsd_elf64_hook): Use relocator.
18171 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
18172 (grub_bsd_load): Zero-out openbsd_ramdisk.
18173 (grub_bsd_load): Use relocator.
18174 (grub_cmd_openbsd): Support serial.
18175 (grub_cmd_netbsd): Support modules.
18176 (grub_cmd_freebsd_module): Use relocator.
18177 (grub_netbsd_module_load): New function.
18178 (grub_cmd_netbsd_module): Likewise.
18179 (grub_cmd_openbsd_ramdisk): Likewise.
18180 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
18181 kopenbsd_ramdisk.
18182 (GRUB_MOD_FINI): Unregister new commands.
18183 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
18184 (grub_freebsd_load_elfmodule_obj): Use relocator.
18185 (grub_freebsd_load_elfmodule): Likewise.
18186 (grub_freebsd_load_elf_meta): Likewise.
18187 (grub_netbsd_load_elf_meta): New function.
18188 (grub_openbsd_find_ramdisk): Likewise.
18189 * grub-core/loader/i386/bsd_helper.S: Removed.
18190 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
18191 * grub-core/loader/i386/bsd_trampoline.S: Removed.
18192 * grub-core/loader/i386/efi/linux.c: Likewise.
18193 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
18194 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
18195 (DEFAULT_VIDEO_MODE): Likewise.
18196 (real_mode_target): New variable.
18197 (prot_mode_target): Likewise.
18198 (initrd_mem_target): Likewise.
18199 (relocator): Likewise.
18200 (efi_mmap_buf): Likewise.
18201 (efi_mmap_size): Likewise.
18202 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
18203 (free_pages): Use relocator.
18204 (allocate_pages): Account for efi_mmap and use relocator. Return error.
18205 (grub_linux_setup_video): Return error.
18206 (grub_linux_trampoline_start): Removed.
18207 (grub_linux_trampoline_end): Likewise.
18208 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
18209 andd video parameters depending on firmware.
18210 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
18211 [GRUB_MACHINE_EFI]: Pass EFI parameters.
18212 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
18213 (grub_cmd_initrd): Use relocator.
18214 * grub-core/loader/i386/linux_trampoline.S: Removed.
18215 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
18216 (elf_sec_entsize): Likewise.
18217 (elf_sec_shstrndx): Likewise.
18218 (elf_sections): Likewise.
18219 (grub_multiboot_load): Use relocator.
18220 (grub_multiboot_get_mbi_size): Account for sections.
18221 (grub_multiboot_make_mbi): Use relocator and support sections.
18222 (grub_multiboot_add_elfsyms): New function.
18223 (grub_multiboot_free_mbi): Free sections.
18224 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
18225 (grub_linux_real_target): Likewise.
18226 (grub_linux_real_chunk): Likewise.
18227 (grub_linux16_prot_size): Likewise.
18228 (grub_linux16_boot): Use relocator.
18229 (grub_linux_unload): Unload relocator.
18230 (grub_cmd_linux): Use relocator.
18231 (grub_cmd_initrd): Likewise.
18232 * grub-core/loader/i386/pc/ntldr.c: New file.
18233 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
18234 Don't try to guess CPU frequency.
18235 (grub_xnu_set_video): Stretch bitmap.
18236 (grub_xnu_boot): Use relocator.
18237 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
18238 (grub_linux_unload): Free relocator.
18239 (grub_linux_load32): Use relocator.
18240 (grub_linux_load64): Likewise.
18241 (grub_cmd_initrd): Likewise.
18242 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
18243 (grub_multiboot_unload): Unload relocator.
18244 (grub_cmd_multiboot): Use relocator.
18245 (grub_cmd_module): Likewise.
18246 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
18247 Use relocator and support sections.
18248 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
18249 (elf_sec_entsize): Likewise.
18250 (elf_sec_shstrndx): Likewise.
18251 (elf_sections): Likewise.
18252 (grub_multiboot_load): Use relocator.
18253 (grub_multiboot_get_mbi_size): Account for sections.
18254 (grub_multiboot_make_mbi): Use relocator and support sections.
18255 (grub_multiboot_add_elfsyms): New function.
18256 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
18257 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
18258 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
18259 Prototype changed. All users updated.
18260 (grub_xnu_align_heap): Simplified.
18261 (grub_xnu_writetree_toheap): Likewise.
18262 (grub_xnu_unload): Unload relocator.
18263 (grub_cmd_xnu_kernel): Use relocator.
18264 (grub_cmd_xnu_kernel64): Likewise.
18265 (grub_xnu_register_memory): Simplified.
18266 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
18267 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
18268 EFI is finished.
18269 (grub_console_checkkey): Likewise.
18270 (grub_console_getkey): Likewise.
18271 (grub_console_getwh): Likewise.
18272 (grub_console_getxy): Likewise.
18273 (grub_console_gotoxy): Likewise.
18274 (grub_console_cls): Likewise.
18275 (grub_console_setcolorstate): Likewise.
18276 (grub_console_setcursor): Likewise.
18277 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
18278 * grub-core/tests/boot/kbsd.init-i386.S: New file.
18279 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
18280 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
18281 * grub-core/tests/boot/kernel-8086.S: Likewise.
18282 * grub-core/tests/boot/kernel-i386.S: Likewise.
18283 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
18284 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
18285 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
18286 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
18287 * grub-core/tests/boot/knetbsd.cfg: Likewise.
18288 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
18289 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
18290 * grub-core/tests/boot/linux.cfg: Likewise.
18291 * grub-core/tests/boot/linux.init-i386.S: Likewise.
18292 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
18293 * grub-core/tests/boot/linux16.cfg: Likewise.
18294 * grub-core/tests/boot/multiboot.cfg: Likewise.
18295 * grub-core/tests/boot/multiboot2.cfg: Likewise.
18296 * grub-core/tests/boot/ntldr.cfg: Likewise.
18297 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
18298 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
18299 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
18300 New definition.
18301 * include/grub/dl.h (grub_dl_unload_all): Removed.
18302 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
18303 (grub_efi_finish_boot_services): Change prototype.
18304 (grub_efi_is_finished): New variable.
18305 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
18306 Changed prototype.
18307 (grub_efiemu_finish_boot_services): Removed.
18308 (grub_machine_efiemu_init_tables): New prototype.
18309 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
18310 (grub_elf64_phdr_iterate): Likewise.
18311 * include/grub/i386/bsd.h: Include relocator.h.
18312 (freebsd_tag_header): New struct.
18313 (grub_openbsd_bios_mmap): Removed.
18314 (grub_unix_real_boot): Removed.
18315 (grub_freebsd_load_elfmodule32): Changed prototype.
18316 (grub_freebsd_load_elfmodule_obj64): Likewise.
18317 (grub_freebsd_load_elf_meta32): Likewise.
18318 (grub_freebsd_load_elf_meta64): Likewise.
18319 (grub_freebsd_add_meta): Removed.
18320 (grub_netbsd_load_elf_meta32): New prototype.
18321 (grub_netbsd_load_elf_meta64): Likewise.
18322 (grub_bsd_add_meta): Likewise.
18323 (grub_openbsd_ramdisk_descriptor): New struct.
18324 (grub_openbsd_find_ramdisk32): New prototype.
18325 (grub_openbsd_find_ramdisk64): Likewise.
18326 * include/grub/i386/coreboot/loader.h: Removed.
18327 * include/grub/i386/efi/loader.h: Likewise.
18328 * include/grub/i386/ieee1275/loader.h: Likewise.
18329 * include/grub/i386/linux.h (linux_kernel_header): Change void *
18330 to grub_uint32_t.
18331 * include/grub/i386/loader.h: Removed.
18332 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
18333 value.
18334 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
18335 (grub_phys_addr_t): New type.
18336 (grub_vtop): New inline function.
18337 (grub_map_memory): Likewise.
18338 (grub_unmap_memory): Likewise.
18339 * include/grub/i386/multiboot/loader.h: Removed.
18340 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
18341 (NETBSD_BTINFO_CONSOLE): New definition.
18342 (NETBSD_BTINFO_SYMTAB): Likewise.
18343 (NETBSD_BTINFO_MODULES): Likewise.
18344 (NETBSD_BTINFO_FRAMEBUF): Likewise.
18345 (grub_netbsd_bootinfo): New struct.
18346 (grub_netbsd_btinfo_common): Use explicit bitsize.
18347 (grub_netbsd_btinfo_mmap_entry): Removed.
18348 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
18349 (grub_netbsd_btinfo_bootdisk): New struct.
18350 (grub_netbsd_btinfo_symtab): Likewise.
18351 (grub_netbsd_btinfo_serial): Likewise.
18352 (grub_netbsd_btinfo_modules): Likewise.
18353 (grub_netbsd_btinfo_framebuf): Likewise.
18354 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
18355 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
18356 Likewise.
18357 (grub_openbsd_bootargs): Use explicit bitsize.
18358 (grub_openbsd_bootarg_console): New struct.
18359 (GRUB_OPENBSD_COM_MAJOR): New definition.
18360 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
18361 * include/grub/i386/pc/efiemu.h: Removed.
18362 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
18363 * include/grub/i386/qemu/loader.h: Removed.
18364 * include/grub/i386/relocator.h: Rewritten.
18365 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
18366 * include/grub/mips/memory.h: New file.
18367 * include/grub/mips/multiboot.h: Rewritten.
18368 * include/grub/mips/relocator.h: Rewritten.
18369 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
18370 (grub_vtop): New function.
18371 (grub_map_memory): Likewise.
18372 (grub_unmap_memory): Likewise.
18373 * include/grub/misc.h (ALIGN_DOWN): New definition.
18374 * include/grub/mm.h (grub_mm_check_real): New proto.
18375 (GRUB_MM_CHECK): New definition.
18376 * include/grub/mm_private.h: New file.
18377 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
18378 (grub_multiboot_get_mbi_size): Removed.
18379 (grub_multiboot_make_mbi): Change prottype.
18380 (grub_multiboot_set_accepts_video): New proto.
18381 (grub_multiboot_add_elfsyms): Likewise.
18382 (grub_multiboot_payload_eip): New variable.
18383 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
18384 New prototype.
18385 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
18386 New definition.
18387 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
18388 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
18389 * include/grub/powerpc/ieee1275/loader.h: Removed.
18390 * include/grub/powerpc/memory.h: New file.
18391 * include/grub/powerpc/relocator.h: Likewise.
18392 * include/grub/relocator.h: Likewise.
18393 * include/grub/relocator_private.h: Likewise.
18394 * include/grub/sparc64/ieee1275/loader.h: Removed.
18395 * include/grub/x86_64/memory.h: New file.
18396 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
18397 (grub_xnu_heap_malloc): Likewise.
18398 (grub_xnu_heap_real_start): Removed.
18399 (grub_xnu_heap_start): Likewise.
18400 (grub_xnu_relocator): New variable.
18401 (grub_xnu_heap_target_start): Likewise.
18402 * tests/util/grub-shell.in: Support non-pc.
18403 * util/grub-mkimage.c (image_targets): Fix multiboot target.
18404
18405 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18406
18407 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
18408 on malloc error.
18409 (grub_bidi_logical_to_visual): Check that malloc succeded.
18410 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
18411 puts.
18412 (grub_xputs_normal): Likewise.
18413
18414 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18415
18416 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
18417 extra_dist.
18418
18419 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18420
18421 * grub-core/efiemu/runtime/efiemu.sh: Removed.
18422
18423 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18424
18425 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
18426
18427 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18428
18429 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
18430 dprintf.
18431
18432 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
18433
18434 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
18435
18436 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18437
18438 * grub-core/normal/term.c (print_more): Fix a memory leak.
18439 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
18440 (grub_xputs_normal): Likewise.
18441
18442 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18443
18444 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
18445 the begining of the string
18446
18447 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18448
18449 * grub-core/script/script.c (grub_script_parse): Free parsed on
18450 failure.
18451
18452 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18453
18454 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
18455 on failure.
18456
18457 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18458
18459 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
18460 return.
18461
18462 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18463
18464 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
18465 (scroll_up): Fix a memory leak.
18466
18467 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18468
18469 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
18470 errors.
18471
18472 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
18473
18474 Handle USB pendrives exposed as floppies.
18475
18476 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
18477 floppy.
18478 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
18479 Check for partitions on all devices.
18480
18481 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18482
18483 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
18484 (readkey): Likewise.
18485
18486 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
18487
18488 Multiple variable names support to "export" command.
18489
18490 * normal/context.c (grub_cmd_export): "export" command supports
18491 multiple variable names.
18492
18493 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
18494
18495 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
18496 --target=drive output to Mach device name.
18497
18498 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18499
18500 New Automake based build system for GRUB.
18501
18502 * ABOUT-NLS: New file.
18503 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
18504 in Makefile.util.def file.
18505 * Makefile.util.def: New file. Autogen build definitions file for
18506 GRUB host utils.
18507 * conf/Makefile.common: New file. Common variables for GRUB host
18508 utils and target modules.
18509 * conf/Makefile.extra-dist: New file. Extra files for make dist.
18510 * docs/Makefile.am: New file. Automake file for docs.
18511 * gentpl.py: New file. Python script to generate Autogen
18512 template.
18513 * grub-core/Makefile.am: New file. GRUB target modules' rules
18514 that doesn't fit in Makefile.core.def file.
18515 * grub-core/Makefile.core.def: New file. Autogen build
18516 definitions file for GRUB target modules.
18517 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
18518 specific setjmp.S file.
18519 * po/Makefile.am: New file.
18520
18521 * .bzrignore: New ignores.
18522 * INSTALL: New requirements, without Ruby.
18523 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
18524 * autogen.sh: Updated to invoke autogen as necessary.
18525 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
18526 and defines for Automake conditionals.
18527 * geninit.sh: Refactoring.
18528
18529 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
18530 necessary.
18531 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
18532 New prototype.
18533
18534 * include/grub/test.h: Fix functional test modules' naming.
18535 * grub-core/tests/example_functional_test.c: Fix test module name.
18536
18537 * util/misc.c: Hosted versions' of grub functions for libgrub.a
18538 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
18539 * util/grub-editenv.c: Likewise.
18540 * util/grub-fstest.c: Likewise.
18541 * util/grub-mkdevicemap.c: Likewise.
18542 * util/grub-mkfont.c: Likewise.
18543 * util/grub-mkimage.c: Likewise.
18544 * util/grub-mkpasswd-pbkdf2.c: Likewise.
18545 * util/grub-probe.c: Likewise.
18546 * util/grub-script-check.c: Likewise.
18547 * util/i386/pc/grub-setup.c: Likewise.
18548 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18549
18550 * tests/util/grub-shell.in: Fix override directory path.
18551 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
18552 * util/import_gcry.py: Create Makefile.gcry.def file instead.
18553
18554 * util/lvm.c: Update #includes.
18555 * util/raid.c: Likewise.
18556 * util/resolve.c: Likewise.
18557 * grub-core/bus/emu/pci.c: Likewise.
18558 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
18559 * grub-core/lib/posix_wrap/string.h: Likewise.
18560 * grub-core/kern/emu/main.c: Likewise.
18561
18562 * grub-core/gensymlist.sh: New file. Script for generating kernel
18563 symbols file.
18564 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
18565
18566 * grub-core/gentrigtables.c: Fix unused variable warnings.
18567
18568 * Makefile.in: Removed.
18569 * conf/any-emu.rmk: Removed.
18570 * conf/common.rmk: Removed.
18571 * conf/i386-coreboot.rmk: Removed.
18572 * conf/i386-efi.rmk: Removed.
18573 * conf/i386-ieee1275.rmk: Removed.
18574 * conf/i386-multiboot.rmk: Removed.
18575 * conf/i386-pc.rmk: Removed.
18576 * conf/i386-qemu.rmk: Removed.
18577 * conf/i386.rmk: Removed.
18578 * conf/mips-yeeloong.rmk: Removed.
18579 * conf/mips.rmk: Removed.
18580 * conf/powerpc-ieee1275.rmk: Removed.
18581 * conf/sparc64-ieee1275.rmk: Removed.
18582 * conf/tests.rmk: Removed.
18583 * conf/x86-efi.rmk: Removed.
18584 * conf/x86_64-efi.rmk: Removed.
18585 * gendistlist.sh: Removed.
18586 * geninitheader.sh: Removed.
18587 * genkernsyms.sh.in: Removed.
18588 * genmk.rb: Removed.
18589 * gensymlist.sh.in: Removed.
18590 * mkinstalldirs: Removed.
18591 * boot: Moved ...
18592 * grub-core/boot: ... to here.
18593 * bus: Moved ...
18594 * grub-core/bus: ... to here.
18595 * commands: Moved ...
18596 * grub-core/commands: ... to here.
18597 * disk: Moved ...
18598 * grub-core/disk: ... to here.
18599 * efiemu: Moved ...
18600 * grub-core/efiemu: ... to here.
18601 * font: Moved ...
18602 * grub-core/font: ... to here.
18603 * fs: Moved ...
18604 * grub-core/fs: ... to here.
18605 * gencmdlist.sh: Moved ...
18606 * grub-core/gencmdlist.sh: ... to here.
18607 * genemuinit.sh: Moved ...
18608 * grub-core/genemuinit.sh: ... to here.
18609 * genemuinitheader.sh: Moved ...
18610 * grub-core/genemuinitheader.sh: ... to here.
18611 * genfslist.sh: Moved ...
18612 * grub-core/genfslist.sh: ... to here.
18613 * genhandlerlist.sh: Moved ...
18614 * grub-core/genhandlerlist.sh: ... to here.
18615 * genmoddep.awk: Moved ...
18616 * grub-core/genmoddep.awk: ... to here.
18617 * genmodsrc.sh: Moved ...
18618 * grub-core/genmodsrc.sh: ... to here.
18619 * genpartmaplist.sh: Moved ...
18620 * grub-core/genpartmaplist.sh: ... to here.
18621 * genparttoollist.sh: Moved ...
18622 * grub-core/genparttoollist.sh: ... to here.
18623 * genterminallist.sh: Moved ...
18624 * grub-core/genterminallist.sh: ... to here.
18625 * gentrigtables.c: Moved ...
18626 * grub-core/gentrigtables.c: ... to here.
18627 * genvideolist.sh: Moved ...
18628 * grub-core/genvideolist.sh: ... to here.
18629 * gettext: Moved ...
18630 * grub-core/gettext: ... to here.
18631 * gfxmenu: Moved ...
18632 * grub-core/gfxmenu: ... to here.
18633 * gnulib: Moved ...
18634 * grub-core/gnulib: ... to here.
18635 * hello: Moved ...
18636 * grub-core/hello: ... to here.
18637 * hook: Moved ...
18638 * grub-core/hook: ... to here.
18639 * io: Moved ...
18640 * grub-core/io: ... to here.
18641 * kern: Moved ...
18642 * grub-core/kern: ... to here.
18643 * lib: Moved ...
18644 * grub-core/lib: ... to here.
18645 * loader: Moved ...
18646 * grub-core/loader: ... to here.
18647 * mmap: Moved ...
18648 * grub-core/mmap: ... to here.
18649 * normal: Moved ...
18650 * grub-core/normal: ... to here.
18651 * partmap: Moved ...
18652 * grub-core/partmap: ... to here.
18653 * parttool: Moved ...
18654 * grub-core/parttool: ... to here.
18655 * script: Moved ...
18656 * grub-core/script: ... to here.
18657 * term: Moved ...
18658 * grub-core/term: ... to here
18659 * tests/example_functional_test.c: Moved ...
18660 * grub-core/tests/example_functional_test.c: ... to here.
18661 * tests/lib/functional_test.c: Moved ...
18662 * grub-core/tests/lib/functional_test.c: ... to here.
18663 * tests/lib/test.c: Moved ...
18664 * grub-core/tests/lib/test.c: ... to here.
18665 * video: Moved ...
18666 * grub-core/video: ... to here.
18667
18668 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18669
18670 Replace --enable-grub-emu-modules with grub-emu-lite.
18671
18672 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
18673 cache.S.
18674
18675 * include/grub/emu/misc.h (grub_emu_init): New prototype.
18676 * kern/emu/full.c: New file. For grub-emu specific initialization.
18677 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
18678 * kern/emu/main.c: Call initialization function grub_emu_init.
18679
18680 * Makefile.in: Include grub-emu-lite in install.
18681 * commands/parttool.c: Use grub_no_autoload to differentiate
18682 between grub-emu and grub-emu-lite.
18683 * include/grub/misc.h: New variable grub_no_autoload.
18684
18685 * conf/any-emu.rmk: New rules for grub-emu-lite.
18686 * configure.ac: Remove --enable-grub-emu-modules.
18687 * genmk.rb: Cleanup unnecessary rules.
18688 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
18689
18690 * normal/main.c: Don't load list files on grub-emu-lite.
18691 * util/misc.c (grub_arch_sync_caches): Removed.
18692
18693 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
18694
18695 * kern/mips/startup.S (grub_prefix): Update comment to refer to
18696 grub-mkimage rather than grub-mkelfimage.
18697 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
18698
18699 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
18700
18701 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
18702 a key after CapsLock or NumLock. It's just a qemu bug.
18703
18704 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18705
18706 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
18707 needed by libusb wrapper.
18708
18709 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18710
18711 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
18712
18713 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18714
18715 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
18716 --nounzip is passed.
18717
18718 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
18719
18720 USB hotunplugging and USB serial support.
18721
18722 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
18723 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
18724 (grub_uhci_transfer): Respect timeout and set *actual.
18725 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
18726 non-standard length.
18727 (grub_usb_device_attach): Autoload modules.
18728 (GRUB_MOD_INIT): Set grub_term_poll_usb.
18729 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
18730 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
18731 users updated.
18732 (grub_usb_add_hub): Fill nports and children.
18733 (attach_root_port): Receive hub instead of controller.
18734 All users updated. Fill hub->devices.
18735 (grub_usb_root_hub): Allocate hub->devices.
18736 (detach_device): New function.
18737 (poll_nonroot_hub): Fill children and detach devices.
18738 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
18739 actual arguments. All users updated.
18740 (grub_usb_bulk_read_extended): New function.
18741 * bus/usb/serial/common.c: New file.
18742 * bus/usb/serial/ftdi.c: Likewise.
18743 * bus/usb/serial/pl2303.c: Likewise.
18744 * commands/terminal.c (handle_command): Support wildcard.
18745 * commands/usbtest.c: Output "Unknown" instead of empty string.
18746 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
18747 (usbserial_common_mod_SOURCES): New variable.
18748 (usbserial_common_mod_CFLAGS): Likewise.
18749 (usbserial_common_mod_LDFLAGS): Likewise.
18750 (pkglib_MODULES): Add usbserial_pl2303.mod.
18751 (usbserial_pl2303_mod_SOURCES): New variable.
18752 (usbserial_pl2303_mod_CFLAGS): Likewise.
18753 (usbserial_pl2303_mod_LDFLAGS): Likewise.
18754 (pkglib_MODULES): Add usbserial_ftdi.mod.
18755 (usbserial_ftdi_mod_SOURCES): New variable.
18756 (usbserial_ftdi_mod_CFLAGS): Likewise.
18757 (usbserial_ftdi_mod_LDFLAGS): Likewise.
18758 (pkglib_MODULES): Add serial.mod.
18759 (serial_mod_SOURCES): New variable.
18760 (serial_mod_CFLAGS): Likewise.
18761 (serial_mod_LDFLAGS): Likewise.
18762 * conf/i386-pc.rmk: Likewise.
18763 * conf/mips-yeeloong.rmk: Likewise.
18764 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
18765 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
18766 * disk/usbms.c (first_available_slot): New variable.
18767 (grub_usbms_attach): Don't reuse free slots due to potential cache
18768 problems.
18769 * include/grub/serial.h: Moved to ..
18770 * include/grub/ns8250.h: ...this.
18771 * include/grub/serial.h: New file.
18772 * include/grub/term.h (grub_term_poll_usb): New variable.
18773 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
18774 readkey. All users updated.
18775 (grub_terminfo_output_state): Pass term to put.
18776 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
18777 (grub_usb_controller_dev): Add timeout and actual arguments to
18778 transfer. All users updated.
18779 (grub_usb_interface): New field detach_data.
18780 (grub_usb_device): New fields children and nports.
18781 (grub_usb_ep_type_t): New type.
18782 (grub_usb_get_ep_type): New function.
18783 (grub_usb_bulk_read_extended): Likewise.
18784 * include/grub/usbdesc.h (grub_usb_desc): New type.
18785 * include/grub/usbserial.h: New file.
18786 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
18787 * kern/term.c (grub_term_poll_usb): New variable.
18788 (grub_getkey): Call grub_term_poll_usb if set.
18789 (grub_checkkey): Likewise.
18790 (grub_getkeystatus): Likewise.
18791 * term/serial.c: Moved controller-specific parts to ...
18792 * term/ns8250.c: ... here.
18793 * term/serial.c: Mostly rewritten.
18794 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
18795 according to spec.
18796
18797 2010-08-20 Robert Millan <rmh@gnu.org>
18798
18799 Make kFreeBSD code more generic to support ext2fs as root, ufs as
18800 a separate module and maybe other interesting combinations.
18801
18802 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
18803 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
18804 (kfreebsd_entry): Add generic filesystem module load routine.
18805 Map GRUB `ext2' to kFreeBSD `ext2fs'.
18806
18807 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18808
18809 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
18810 "numcenter" (I misunderstood the purpose of this entry).
18811 * docs/grub.texi (sendkey): Likewise.
18812
18813 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18814
18815 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
18816 status flag options; simply omitting the option is equivalent and
18817 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
18818 (keysym_table): Rename "num5numlock" to "numlock".
18819 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
18820 can uniformly say that only the last of multiple `sendkey'
18821 invocations has any effect.
18822 * docs/grub.texi (sendkey): New section.
18823
18824 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
18825
18826 * commands/i386/pc/sendkey.c (options): Fix three typos.
18827
18828 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18829
18830 Implement sendkey support.
18831
18832 * commands/i386/pc/sendkey.c: New file.
18833 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
18834 (sendkey_mod_SOURCES): New variable.
18835 (sendkey_mod_CFLAGS): Likewise.
18836 (sendkey_mod_LDFLAGS): Likewise.
18837
18838 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18839
18840 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
18841 fix warnings from Autoconf.
18842
18843 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18844
18845 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
18846 to avoid false positives with some assemblers that output things
18847 like "someprefix_func" as part of their output.
18848
18849 2010-08-15 Robert Millan <rmh@gnu.org>
18850
18851 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
18852 errors.
18853 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
18854 grub_get_libzfs_handle() errors.
18855
18856 2010-08-14 Robert Millan <rmh@gnu.org>
18857
18858 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
18859 filesystem is not ZFS.
18860
18861 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18862
18863 Fix for misspelled color names defaulting to black/black (bug
18864 reported by Doug Nazar)
18865
18866 * include/grub/normal.h (grub_parse_color_name_pair): Add return
18867 status to prototype.
18868 * normal/color.c (grub_parse_color_name_pair): Return failure
18869 status.
18870 (grub_env_write_color_normal): Ignore bad color names.
18871 (grub_env_write_color_highlight): Likewise.
18872 * normal/main.c (GRUB_MOD_INIT): Set default color names.
18873
18874 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18875
18876 "shift" command support to GRUB script.
18877
18878 * include/grub/script_sh.h (grub_script_shift): New prototype.
18879 * script/execute.c (grub_script_shift): New function.
18880 * script/main.c (grub_script_init): Register shift command.
18881 (grub_script_fini): Unregister shift command.
18882 * util/grub-script-check.c (grub_script_cmd_shift): New function.
18883
18884 * tests/grub_script_shift.in: New testcase.
18885 * conf/tests.rmk: Rules for new testcase.
18886
18887 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18888
18889 "continue" command support to GRUB script.
18890
18891 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
18892 (grub_script_break): Continue support.
18893 * script/main.c (grub_script_init): Register continue command.
18894 (grub_script_fini): Unregister continue command.
18895
18896 * tests/grub_script_continue.in: New testcase.
18897 * conf/tests.rmk: Rules for new testcase.
18898
18899 2010-08-12 BVK Chaitanya <bvk@dbook>
18900
18901 "break" command support to GRUB script.
18902
18903 * conf/common.rmk: Rule updates to grub-script-check.
18904 * include/grub/misc.h (grub_min): New function.
18905 * include/grub/script_sh.h (grub_script_init): New prototype.
18906 (grub_script_fini): New prototype.
18907 (grub_script_break): New prototype.
18908 * script/main.c (grub_script_init): New function.
18909 (grub_script_fini): New function.
18910 * script/execute.c (grub_script_break): New function.
18911 * normal/main.c: Calls to grub_script_{init,fini}.
18912 * util/grub-script-check.c (grub_script_break): New function.
18913
18914 * tests/grub_script_break.in: New testcase.
18915 * conf/tests.rmk: Rules for new test case.
18916
18917 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18918
18919 Function parameters support to GRUB script.
18920
18921 * script/yylex.l (VARIABLE): Regular expression update.
18922 * script/function.c (grub_script_function_call): Moved ...
18923 * script/execute.c (grub_script_function_call): ... to here.
18924 (grub_script_execute_arglist_to_argv): Removed.
18925 (grub_script_arglist_to_argv): New function.
18926 * script/argv.c: New file.
18927 (grub_script_argv_free): New function.
18928 (grub_script_argv_next): Likewise.
18929 (grub_script_argv_append): Likewise.
18930 (grub_script_argv_split_append): Likewise.
18931 * include/grub/script_sh.h (grub_script_argv): New struct.
18932 (grub_script_argv_free): New function.
18933 (grub_script_argv_next): Likewise.
18934 (grub_script_argv_append): Likewise.
18935 (grub_script_argv_split_append): Likewise.
18936
18937 * conf/common.rmk (normal.mod): New source script/argv.c.
18938
18939 * tests/grub_script_echo1.in: More tests.
18940 * tests/grub_script_vars1.in: Likewise.
18941 * tests/grub_script_functions.in: New test case.
18942 * conf/tests.rmk: Rules for new testcase.
18943
18944 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18945
18946 Remove grub_script_cmdblock struct.
18947
18948 * include/grub/script_sh.h: Remove grub_script_cmdblock.
18949 * script/parser.y: Likewise.
18950 * script/execute.c: Rename cmdblock suffix to cmdlist.
18951 * script/script.c: Likewise.
18952 * util/grub-script-check.c: Likewise.
18953
18954 2010-08-11 Yves Blusseau <blusseau@zetam.org>
18955
18956 * .bzrignore: add grub-macho2img
18957
18958 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18959
18960 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
18961
18962 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18963
18964 Remove the dump of sm712 initialisation sequence.
18965
18966 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
18967 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
18968 (GRUB_VGA_IO_MISC_WRITE): Likewise.
18969 (GRUB_VGA_CR_*): Added many registers.
18970 (GRUB_VGA_SR_*): Likewise.
18971 (GRUB_VGA_GR_*): Likewise.
18972 (grub_vga_write_arx): New function.
18973 (grub_video_hw_config): New struct.
18974 (grub_vga_set_geometry): New function.
18975 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
18976 GRUB_PCI_CLASS_SUBCLASS_VGA.
18977 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
18978 * video/sm712.c (grub_sm712_write_reg): New function
18979 (grub_sm712_read_reg): Likewise.
18980 (grub_sm712_sr_write): Likewise.
18981 (grub_sm712_gr_write): Likewise.
18982 (grub_sm712_cr_write): Likewise.
18983 (grub_sm712_write_arx): Likewise.
18984 (grub_sm712_cr_shadow_write): Likewise.
18985 (grub_sm712_write_dda_lookup): Likewise.
18986 (grub_video_sm712_setup): Initialise the video rather then
18987 blindly replay the dump.
18988 (main) [TEST]: Add a routine to be able to compile as standalone for
18989 tests.
18990 * video/sm712_init.c (sm712_init): Removed.
18991 (sm712_sr_seq1): New array.
18992 (sm712_sr_seq2): Likewise.
18993
18994 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18995
18996 * include/grub/vga.h: Add missing grub/pci.h include.
18997
18998 2010-08-10 Yves Blusseau <blusseau@zetam.org>
18999
19000 * util/grub-macho2img.c (main): fix typo
19001
19002 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
19003
19004 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
19005 (grub_vga_gr_read): Likewise.
19006 (grub_vga_cr_write): Likewise.
19007 (grub_vga_cr_read): Likewise.
19008 (grub_vga_sr_write): Likewise.
19009 (grub_vga_sr_read): Likewise.
19010 (grub_vga_palette_read): Likewise.
19011 (grub_vga_palette_write): Likewise.
19012 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
19013 (grub_sm712_sr_read): New function.
19014 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
19015 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
19016
19017 2010-08-09 Robert Millan <rmh@gnu.org>
19018
19019 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
19020 out unused variables on non-ZFS build.
19021
19022 2010-08-08 Robert Millan <rmh@gnu.org>
19023
19024 Fix path generation for sub-filesystems in ZFS.
19025
19026 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
19027 missing slash.
19028
19029 2010-08-08 Robert Millan <rmh@gnu.org>
19030
19031 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
19032
19033 2010-08-08 Robert Millan <rmh@gnu.org>
19034
19035 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
19036 exist, issue a proper error message (rely on `ls' for translated
19037 strings).
19038
19039 2010-08-08 Robert Millan <rmh@gnu.org>
19040
19041 Fix grub-probe invocation.
19042
19043 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
19044
19045 2010-08-04 Robert Millan <rmh@gnu.org>
19046
19047 * configure.ac: Remove checks for getfsstat() and getmntany().
19048 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
19049 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
19050 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
19051 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
19052 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
19053 function.
19054 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
19055 via find_mount_point_from_dir() and getfsstat() / getmntany().
19056
19057 2010-08-04 Robert Millan <rmh@gnu.org>
19058
19059 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19060 (grub_find_zpool_from_mount_point): Merge into ...
19061 (grub_find_zpool_from_dir): ... this.
19062 * kern/emu/misc.c: Likewise.
19063
19064 * kern/emu/misc.c
19065 (grub_make_system_path_relative_to_its_root): Replace
19066 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
19067 with grub_find_zpool_from_dir().
19068 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
19069
19070 2010-08-04 Robert Millan <rmh@gnu.org>
19071
19072 Support OpenSolaris in ZFS device resolution.
19073
19074 * configure.ac: Check for getmntany().
19075 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
19076 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
19077 support.
19078
19079 2010-08-03 Robert Millan <rmh@gnu.org>
19080
19081 Fix grub-emu build.
19082
19083 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
19084 * include/grub/emu/misc.h: ... here.
19085
19086 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
19087 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
19088
19089 * util/misc.c: Remove `<grub/util/libzfs.h>'.
19090 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
19091 (grub_get_libzfs_handle): Move to ...
19092 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
19093 (grub_get_libzfs_handle): ... here.
19094
19095 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
19096
19097 * script/execute.c (grub_script_execute_cmdline): Check for NULL
19098 as command name case.
19099
19100 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
19101
19102 * disk/raid.c (insert_array): Select unique numbers for named arrays
19103 as well, for use as keys in the disk cache.
19104
19105 2010-08-01 Robert Millan <rmh@gnu.org>
19106
19107 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
19108 kFreeBSD device name, except on ZFS where the filesystem label is
19109 used.
19110 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
19111 `/boot/zfs/zpool.cache'.
19112 Set mountfrom kernel variable using ${kfreebsd_device}.
19113
19114 2010-08-01 Robert Millan <rmh@gnu.org>
19115
19116 Make it even harder to use uninitialized `libzfs_handle' (and
19117 make the interface a bit simpler).
19118
19119 * include/grub/util/misc.h (grub_util_init_libzfs)
19120 (libzfs_handle): Remove.
19121 (grub_get_libzfs_handle): New prototype.
19122
19123 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
19124 attribute.
19125 (grub_util_init_libzfs): Remove.
19126 (grub_get_libzfs_handle): New function.
19127
19128 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
19129 grub_get_libzfs_handle() to obtain a libzfs handle instead of
19130 accessing `libzfs_handle' directly.
19131
19132 2010-08-01 Robert Millan <rmh@gnu.org>
19133
19134 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19135 (grub_find_zpool_from_mount_point): New function prototypes.
19136
19137 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19138 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19139
19140 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19141 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19142 `static' attribute.
19143
19144 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19145 finding zpool from mount point into ...
19146 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19147
19148 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19149 requested path is part of a ZFS pool, use
19150 grub_find_zpool_from_mount_point() to detect its filesystem name,
19151 and generate a path with `/fsname@path' syntax.
19152
19153 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19154
19155 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
19156 (void) rather than () so that this is a proper prototype.
19157
19158 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19159
19160 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
19161
19162 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19163
19164 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
19165 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
19166
19167 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19168
19169 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
19170
19171 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19172
19173 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
19174
19175 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19176
19177 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
19178 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
19179 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
19180 disable gfxpayload.
19181 (Shell-like scripting): Add real content.
19182 (Serial terminal): Suggest `terminal_input serial; terminal_output
19183 serial' rather than putting the two commands on separate lines,
19184 since console input will be inoperative after the first command.
19185 (menuentry): Document --class, --users, and --hotkey options.
19186 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
19187 Vladimir Serbinenko).
19188
19189 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19190 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19191
19192 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
19193
19194 2010-08-01 Robert Millan <rmh@gnu.org>
19195
19196 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19197 (grub_find_zpool_from_mount_point): New function prototypes.
19198
19199 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19200 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19201
19202 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19203 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19204 `static' attribute.
19205
19206 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19207 finding zpool from mount point into ...
19208 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19209
19210 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19211 requested path is part of a ZFS pool, use
19212 grub_find_zpool_from_mount_point() to detect its filesystem name,
19213 and generate a path with `/fsname@path' syntax.
19214
19215 2010-08-01 Robert Millan <rmh@gnu.org>
19216
19217 Prevent accidental use of uninitialized libzfs_handle.
19218
19219 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
19220 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
19221 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
19222
19223 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19224
19225 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
19226 util/grub.d/10_linux.in). Fixes Debian bug #591093.
19227
19228 2010-08-01 Robert Millan <rmh@gnu.org>
19229
19230 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
19231
19232 2010-07-31 Robert Millan <rmh@gnu.org>
19233
19234 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
19235
19236 2010-07-31 Robert Millan <rmh@gnu.org>
19237
19238 * kern/emu/misc.c: Add missing license header.
19239
19240 2010-07-31 Robert Millan <rmh@gnu.org>
19241
19242 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
19243
19244 * include/grub/util/libnvpair.h: Include `<config.h>'.
19245 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
19246 declaring libnvpair prototypes ourselves.
19247 * include/grub/util/libzfs.h: Include `<config.h>'.
19248 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
19249 declaring libzfs prototypes ourselves.
19250
19251 (libzfs_handle): Moved to ...
19252 * include/grub/util/misc.h (libzfs_handle): ... here.
19253 Include `<grub/util/libzfs.h>'.
19254
19255 2010-07-30 Robert Millan <rmh@gnu.org>
19256
19257 * include/grub/emu/misc.h: Add missing license header.
19258
19259 2010-07-30 Robert Millan <rmh@gnu.org>
19260
19261 Enable `grub-probe -t device' resolution on ZFS.
19262
19263 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
19264 * include/grub/util/libnvpair.h: New file.
19265 * include/grub/util/libzfs.h: New file.
19266
19267 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
19268 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
19269 `<grub/util/libnvpair.h>'.
19270 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
19271
19272 (find_mount_point_from_dir): New static function.
19273 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
19274 function.
19275 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
19276 find_root_device_from_libzfs() before ressorting to find_root_device().
19277
19278 * include/grub/util/misc.h (grub_util_init_libzfs): New function
19279 prototype.
19280 * util/misc.c: Include `<grub/util/libzfs.h>'.
19281 (grub_util_init_libzfs): New function.
19282 [HAVE_LIBZFS] (libzfs_handle): New global variable.
19283 [HAVE_LIBZFS] (fini_libzfs): New static function.
19284 (grub_util_init_libzfs): New function.
19285 * util/grub-probe.c (main): Call grub_util_init_libzfs().
19286
19287 2010-07-30 Robert Millan <rmh@gnu.org>
19288
19289 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
19290 (xmalloc, xrealloc, xstrdup, xasprintf): Add
19291 `warn_unused_result' attribute.
19292 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
19293 (grub_xasprintf, grub_xvasprintf): Likewise.
19294 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
19295
19296 2010-07-29 Robert Millan <rmh@gnu.org>
19297
19298 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
19299 (probe): Handle `PRINT_FS_LABEL'.
19300 (main): Handle `-t fs_label'.
19301
19302 2010-07-29 Robert Millan <rmh@gnu.org>
19303
19304 * configure.ac: Remove grub-mkisofs checks.
19305
19306 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
19307
19308 * util/ieee1275/grub-install.in: Don't use empty grub_device.
19309 Reported by: Lennart Sorensen.
19310
19311 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19312
19313 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
19314 prior to terminal_input/terminal_output separation. It's been over 1.5
19315 years and those versions weren't widely deployed.
19316
19317 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
19318
19319 * disk/raid.c (insert_array): Don't count named arrays when looking
19320 for unused array numbers.
19321 Reported and tested by: Michael Guntsche.
19322
19323 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19324
19325 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
19326 implementation of this so that grub-emu links again, with a note
19327 that this should support hotplugging in the future.
19328
19329 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19330
19331 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
19332
19333 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19334
19335 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
19336 handle on failure.
19337 (grub_loopback_close): Remove empty function.
19338 (grub_loopback_dev): Remove close method.
19339
19340 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19341
19342 Disable EFI cursor when the EFI console becomes inactive.
19343
19344 * term/efi/console.c (grub_efi_console_init): New function.
19345 (grub_efi_console_fini): New function.
19346 (grub_console_term_output): Register init and fini methods.
19347
19348 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19349
19350 * tests/util/grub-shell-tester.in: Remove bashism and declare as
19351 sh script.
19352
19353 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19354
19355 * disk/loopback.c (grub_loopback): Replace filename with file.
19356 (delete_loopback): Handle new semantics.
19357 (grub_cmd_loopback): Likewise.
19358 (grub_loopback_iterate): Likewise.
19359 (grub_loopback_close): Likewise.
19360
19361 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19362
19363 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
19364 with -p "".
19365 Reported by: Tito Keitel.
19366
19367 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19368
19369 * docs/grub.texi (Naming convention): Document new naming convention.
19370
19371 2010-07-20 Vadim Solomin <vadic052@gmail.com>
19372 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19373
19374 Generate device.map in something closer to the old ordering.
19375
19376 * util/deviceiter.c (struct device): New declaration.
19377 (compare_file_names): Rename to ...
19378 (compare_devices): ... this. Sort by kernel name in preference to
19379 the stable by-id name, but keep the latter as a fallback comparison.
19380 Update header comment.
19381 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
19382 of `struct device' rather than of plain file names.
19383
19384 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
19385
19386 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
19387 on i386.
19388
19389 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19390
19391 * commands/acpi.c (setup_common_tables): Use sizeof instead of
19392 hardcoding size.
19393 (setv1table): Likewise.
19394
19395 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19396
19397 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
19398 removing the homehost if present.
19399 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
19400 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
19401 removing the homehost if present.
19402 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
19403 if possible.
19404 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
19405
19406 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
19407 parameter. Set its pointer target to 0.
19408 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
19409 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
19410 `data_offset' value from the superblock for 1.x metadata.
19411 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
19412 data on the device.
19413 (insert_array): Record the start sector of data on the device.
19414 (grub_raid_register): Pass start_sector parameters to
19415 grub_raid_list->detect and insert_array.
19416 * include/grub/raid.h (struct grub_raid_array): Add start_sector
19417 member.
19418 (struct grub_raid): Add start_sector parameter to `detect'.
19419
19420 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
19421 __attribute__ ((packed)), leaving a comment.
19422 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
19423 (grub_mdraid_detect_09): ... here and ...
19424 (grub_mdraid_detect_1x): ... here.
19425
19426 2010-07-20 Peter Henn <peter.henn@web.de>
19427
19428 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
19429 chunk size and disk size, which are already given as sector counts
19430 as distinct from the 0.90 units. Fetch the correct device number
19431 from the role table instead of using the table index.
19432
19433 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
19434
19435 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
19436 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
19437 (WriteMostly1): New macro.
19438 Set array->name to NULL for metadata format 0.90. Add support for
19439 metadata 1.x. Fix some comments.
19440 * disk/raid.c (): Add support for name based RAID arrays. Fix a
19441 few comments.
19442 * util/getroot.c (grub_util_get_grub_dev): Add support for
19443 /dev/md/name style devices.
19444
19445 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19446
19447 * .bzrignore: Ignore 20_linux_xen.
19448
19449 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
19450
19451 * util/import_unicode.py: Remove unnecessary imports.
19452
19453 2010-07-17 Aleš Nesrsta <starous@volny.cz>
19454
19455 Hotplugging and USB hub support.
19456
19457 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
19458 (grub_ohci): Likewise.
19459 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
19460 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
19461 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
19462 (GRUB_OHCI_CTRL_EDS): Likewise.
19463 (GRUB_OHCI_BULK_EDS): Likewise.
19464 (GRUB_OHCI_TDS): Likewise.
19465 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
19466 (grub_ohci_ed_phys2virt): New function.
19467 (grub_ohci_virt_to_phys): Likewise.
19468 (grub_ohci_td_phys2virt): Likewise.
19469 (grub_ohci_td_virt2phys): Likewise.
19470 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
19471 attachment.
19472 (grub_ohci_find_ed): New function.
19473 (grub_ohci_alloc_td): Likewise.
19474 (grub_ohci_free_td): Likewise.
19475 (grub_ohci_free_tds): Likewise.
19476 (grub_ohci_transfer): Use previously allocated memory.
19477 (grub_ohci_portstatus): Reset status changed bit.
19478 (grub_ohci_detect_dev): Supply status changed.
19479 (grub_ohci_fini_hw): Free memory.
19480 (grub_ohci_restore_hw): Reallocate memory.
19481 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
19482 Reset status change.
19483 (grub_uhci_detect_dev): Supply status_change.
19484 * bus/usb/usb.c (attach_hooks): New var.
19485 (grub_usb_device_attach): New function.
19486 (grub_usb_register_attach_hook_class): Likewise.
19487 (grub_usb_unregister_attach_hook_class): Likewise.
19488 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
19489 (grub_usb_add_hub): Reset connection changed bit.
19490 (attach_root_port): New function.
19491 (grub_usb_root_hub): Likewise.
19492 (poll_nonroot_hub): Likewise.
19493 (grub_usb_poll_devices): Likewise.
19494 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
19495 * disk/usbms.c (grub_usbms_open): Use device hooks.
19496 (grub_usbms_iterate) :Poll devices.
19497 (grub_usbms_finddevs): Split into ...
19498 (grub_usbms_attach): ... this ...
19499 (grub_usbms_attach): ... and this.
19500 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
19501 in detect_dev.
19502 (grub_usb_interface): New fields attached and detach_hook.
19503 (grub_usb_attach_hook_class): New type.
19504 (grub_usb_attach_desc): New struct.
19505 (grub_usb_register_attach_hook_class): New function.
19506 (grub_usb_unregister_attach_hook_class): Likewise.
19507 (grub_usb_poll_devices): Likewise.
19508 (grub_usb_device_attach): Likewise.
19509 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
19510 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
19511
19512 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19513
19514 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
19515 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
19516 delta determination style. Works with most NetBSD partitions too.
19517
19518 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19519
19520 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
19521 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
19522
19523 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19524
19525 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
19526
19527 2010-07-14 Anton Blanchard <anton@samba.org>
19528
19529 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
19530 ET_DYN files.
19531
19532 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19533
19534 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
19535
19536 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19537
19538 * kern/partition.c (grub_partition_check_containment): New function to
19539 check that a partition is physically contained in a parent. Since
19540 offsets are relative (and non-negative), this reduces to checking that
19541 the partition ends before its parent.
19542 (grub_partition_map_probe): Discard out-of-range sub-partitions.
19543 (grub_partition_iterate): Likewise.
19544 * include/grub/partition.h (grub_partition_map): Slightly more detailed
19545 comments.
19546 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
19547 partitions that start before their parent, and add debug printfs.
19548
19549 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19550
19551 * Makefile.in (.SUFFIX): Spell correctly, as ...
19552 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
19553 bare module name without `.mod', e.g. `test') tried to invoke a
19554 Modula-2 compiler.
19555
19556 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19557
19558 * README: Point to the Info manual.
19559
19560 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
19561
19562 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
19563 2nd superblock position from partition size.
19564
19565 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
19566
19567 * Makefile.in (MAINTAINER_CLEANFILES): Remove
19568 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
19569 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
19570 outputs.
19571
19572 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19573
19574 Restructure SCSI .id handling.
19575 Reported and tested by: Aleš Nesrsta.
19576
19577 * disk/ata.c (grub_atapi_close): Removed. All users updated.
19578 (grub_atapi_dev): Changed .name to "ata". New field .id.
19579 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
19580 (grub_usbms_dev): New field .id.
19581 * disk/scsi.c (grub_scsi_iterate): Generate name.
19582 (grub_scsi_open): Parse name.
19583 * include/grub/scsi.h (grub_make_scsi_id): New function.
19584 (grub_scsi_dev): Change iterate and open to number instead of naming
19585 busses. All users updated.
19586 (grub_scsi): Remove name. Add .bus.
19587
19588 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19589
19590 * commands/help.c (grub_cmd_help): Fix a typo.
19591
19592 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19593
19594 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
19595 Reported and tested by: Colin Watson.
19596
19597 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19598
19599 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
19600 in this context.
19601
19602 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
19603
19604 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
19605
19606 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
19607
19608 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
19609 indentation.
19610
19611 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19612
19613 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
19614 and disk/raid6_recover.c.
19615 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19616 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
19617
19618 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19619
19620 * term/gfxterm.c (repaint_schedulded): Rename to ...
19621 (repaint_scheduled): ... this. Update all callers.
19622 (repaint_was_schedulded): Rename to ...
19623 (repaint_was_scheduled): ... this. Update all callers.
19624
19625 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19626
19627 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
19628 which we expect to be handled by upper layers.
19629
19630 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
19631
19632 * bus/usb/usbhub.c: #include time.h header.
19633
19634 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19635
19636 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
19637 entry_name also for entries without stat blocks (e.g. ".."); fixes
19638 corruption of the first entry in a directory.
19639
19640 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19641
19642 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
19643 after setting gfxterm as the active terminal. GRUB_BACKGROUND
19644 doesn't work otherwise.
19645
19646 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19647
19648 * docs/grub.texi (Features): Update list of supported file systems.
19649 (GNU/Linux): Update for GRUB 2.
19650 (Serial terminal): Remove mention of --disable-serial, which was a
19651 GRUB Legacy configure option. Update instructions to use
19652 `terminal_input' and `terminal_output' rather than `terminal'.
19653 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
19654 configuration' and `Installing GRUB using grub-install'.
19655 (Menu entry editor): Update for GRUB 2.
19656 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
19657 Document new -a, -u, and -v options.
19658 (initrd): New section.
19659 (initrd16): New section.
19660 (linux): New section.
19661 (linux16): New section.
19662 (search): The `var' argument to `--set' is optional.
19663 (GRUB only offers a rescue shell): Go into a little more detail on
19664 drive ordering.
19665
19666 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19667
19668 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
19669
19670 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19671
19672 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
19673 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
19674
19675 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19676
19677 * util/i386/pc/grub-setup.c (setup): Rename prefix to
19678 install_prefix, in line with install_dos_part and install_bsd_part.
19679 Add new prefix variable, which is copied to install_prefix after
19680 comparing core.img in memory with the one read from disk in the
19681 no-embedding case, and use that rather than overwriting
19682 install_prefix immediately when installing to a partition.
19683 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
19684 Bicakci.
19685
19686 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19687
19688 * configure.ac: Avoid == in test command, it's not portable.
19689 * util/grub.d/30_os-prober.in: Likewise.
19690
19691 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
19692
19693 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
19694
19695 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19696
19697 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
19698 multiple (top-level) partmaps.
19699
19700 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19701
19702 * util/i386/efi/grub-install.in: Don't use empty grub_device.
19703 Reported by: Tino Keitel.
19704
19705 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19706
19707 Bidi and diacritics support.
19708
19709 * Makefile.in (widthspec.bin): New target.
19710 (widthspec.h): Likewise.
19711 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
19712 * autogen.sh: Generate unidata.c.
19713 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
19714 * commands/ls.c (grub_ls_list_devices): Likewise.
19715 (grub_ls_list_files): Likewise.
19716 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
19717 (grub_mini_cmd_lsmod): Likewise.
19718 * commands/read.c: Likewise.
19719 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
19720 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
19721 * lib/arg.c (grub_arg_show_help): Likewise.
19722 * lib/crypto.c (grub_password_get): Likewise.
19723 * normal/auth.c (grub_username_get): Likewise.
19724 * normal/misc.c (grub_normal_print_device_info): Likewise.
19725 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
19726 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
19727 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
19728 (normal/charset.c_DEPENDENCIES): New variable.
19729 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
19730 (pkglib_MODULES): Remove charset.mod.
19731 (charset_mod_SOURCES): Removed.
19732 (charset_mod_CFLAGS): Likewise.
19733 (charset_mod_LDFLAGS): Likewise.
19734 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
19735 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
19736 and term/tparm.c.
19737 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19738 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19739 (kernel_img_HEADERS): Add terminfo.h.
19740 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
19741 Fill ->font. Reverse ascii bitmaps.
19742 (grub_font_get_xheight): New function.
19743 * font/font.c (grub_font_get_string_width): Moved from here ...
19744 * gfxmenu/font.c (grub_font_get_string_width): ... here.
19745 * font/font.c (grub_font_draw_string): Moved from here ...
19746 * gfxmenu/font.c (grub_font_draw_string): ... here.
19747 * font/font.c (grub_font_dup_glyph): New function.
19748 (grub_font_blit_glyph): Likewise.
19749 (grub_font_blit_glyph_mirror): Likewise.
19750 (blit_comb): Likewise.
19751 (grub_font_construct_dry_run): Likewise.
19752 (grub_font_get_constructed_device_width): Likewise.
19753 (grub_font_construct_glyph): Likewise.
19754 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
19755 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
19756 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
19757 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
19758 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
19759 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
19760 (grub_font_get_xheight): New proto.
19761 (grub_font_get_constructed_device_width): Likewise.
19762 (grub_font_construct_glyph): Likewise.
19763 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
19764 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
19765 * include/grub/font.h (grub_font_draw_string): Moved from here ...
19766 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
19767 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
19768 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
19769 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
19770 (grub_console_getcharwidth): Likewise.
19771 * include/grub/misc.h (grub_xputs): New proto.
19772 (grub_puts): Inlined.
19773 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
19774 (grub_normal_get_line_counter): Removed.
19775 (grub_install_newline_hook): Likewise.
19776 (grub_normal_get_char_counter): New proto.
19777 (grub_normal_reset_more): Likewise.
19778 (grub_xputs_normal): Likewise.
19779 * include/grub/powerpc/ieee1275/console.h: Removed.
19780 * include/grub/sparc64/ieee1275/console.h: Likewise.
19781 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
19782 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
19783 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
19784 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
19785 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
19786 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
19787 (grub_term_input): Pass reference to self. All users updated.
19788 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
19789 Pass reference to self. New fields normal_color, highlight_color and
19790 data. All users updated.
19791 (grub_putchar): Removed.
19792 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
19793 (grub_unicode_estimate_width): New function.
19794 (grub_term_getcharwidth): Add defaults.
19795 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
19796 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
19797 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
19798 (grub_cls): Remove EXPORT_FUNC.
19799 (grub_setcolorstate): Inline.
19800 (grub_newline_hook): Removed.
19801 * include/grub/terminfo.h: Rewritten. All users updated.
19802 * include/grub/unicode.h: New file.
19803 * include/grub/video.h (grub_video_signed_rect): New type.
19804 * kern/emu/console.c (grub_console_highlight_color): Removed.
19805 (grub_console_normal_color): Likewise.
19806 (grub_console_standard_color): Made static.
19807 (grub_ncurses_putchar): Remove mapping.
19808 (grub_ncurses_getcharwidth): Removed.
19809 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19810 (grub_ncurses_setcolor): Removed.
19811 (grub_ncurses_getcolor): Likewise.
19812 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
19813 (grub_console_putchar): ... this.
19814 (grub_console_putchar): Handle argument difference.
19815 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
19816 console_init_early and console_init_lately.
19817 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
19818 * kern/misc.c (grub_puts): Removed.
19819 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
19820 (grub_vsnprintf_real): Remove str = NULL support.
19821 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
19822 * normal/charset.c (grub_utf8_to_ucs4): ... here.
19823 * kern/term.c (grub_putcode): Renamed to ...
19824 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
19825 (grub_putchar): Removed.
19826 (grub_xputs_dumb): New function.
19827 (grub_xputs): New variable.
19828 * lib/charset.c: Move from here ...
19829 * normal/charset.c: ... to here.
19830 (grub_ucs4_to_utf8): New function.
19831 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
19832 (join_types): New variable.
19833 (unpack_join): New function.
19834 (bidi_types): New variable.
19835 (unpack_bidi): New function.
19836 (get_bidi_type): Likewise.
19837 (get_join_type): Likewise.
19838 (is_mirrored): Likewise.
19839 (grub_unicode_get_comb_type): Likewise.
19840 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
19841 (is_type_after): Likewise.
19842 (grub_unicode_aglomerate_comb): Likewise.
19843 (bidi_line_wrap): Likewise.
19844 (grub_bidi_line_logical_to_visual): Likewise.
19845 (grub_bidi_logical_to_visual): Likewise.
19846 (grub_unicode_mirror_code): Likewise.
19847 (grub_unicode_shape_code): Likewise.
19848 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
19849 Don't use grub_putchar.
19850 * normal/main.c (grub_normal_init_page): Use grub_putcode.
19851 (grub_normal_reader_init): Likewise.
19852 (grub_xputs_saved): New variable.
19853 (GRUB_MOD_INIT): Set grub_xputs.
19854 (GRUB_MOD_FINI): Restore grub_xputs.
19855 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
19856 (menu_init): Avoid printing gfxmenu error.
19857 (show_menu): Use grub_normal_get_char_counter.
19858 * normal/menu_entry.c (update_screen): Fix out-of-array.
19859 (complete): Avoid NULL dereferencing.
19860 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
19861 * normal/menu_text.c (print_spaces): Removed.
19862 (grub_print_ucs4): Likewise.
19863 (grub_print_message_indented): Use grub_print_ucs4.
19864 (print_message): Use grub_putcode.
19865 (print_entry): Hanlde diacritics.
19866 * normal/term.c (term_state): New type.
19867 (grub_more_lines): Removed.
19868 (term_states): New variable.
19869 (grub_normal_line_counter): Renamed to ..
19870 (grub_normal_char_counter): ...this. All users updated.
19871 (grub_normal_get_line_counter): Renamed to ...
19872 (grub_normal_get_char_counter): ... this.
19873 (grub_normal_reset_more): New function.
19874 (process_newline): Removed.
19875 (print_more): New function.
19876 (grub_install_newline_hook): Removed.
19877 (map_code): New function.
19878 (grub_puts_terminal): Use grub_print_ucs4.
19879 (putglyph): New function.
19880 (putcode_real): Likewise.
19881 (grub_putcode): Use putcode_real.
19882 (get_maxwidth): New function.
19883 (get_startwidth): Likewise.
19884 (print_ucs4_terminal): Likewise.
19885 (find_term_state): Likewise.
19886 (put_glyphs_terminal): Likewise.
19887 (print_backlog): Likewise.
19888 (print_ucs4_real): Likewise.
19889 (grub_print_ucs4): Likewise.
19890 (grub_xputs_normal): Likewise.
19891 * term/efi/console.c (grub_console_putchar): Output diacritics.
19892 (grub_console_getcharwidth): Removed.
19893 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19894 * term/gfxterm.c (clear_char): Free chars.
19895 (scroll_up): Avoid leaking memory.
19896 (grub_gfxterm_putchar): Support diacritics.
19897 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19898 * term/i386/pc/console.c (grub_console_term_output): Declare as
19899 GRUB_TERM_CODE_TYPE_VGA.
19900 * term/i386/pc/vga.c (grub_vga_term): Declare as
19901 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
19902 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
19903 GRUB_TERM_CODE_TYPE_VGA.
19904 * term/i386/vga_common.c (map_char): Removed.
19905 (grub_console_putchar): Likewise.
19906 (grub_console_getcharwidth): Likewise.
19907 * term/ieee1275/ofconsole.c: Simplify using terminfo.
19908 (colors): Reordered to match terminfo.
19909 (grub_ofconsole_normal_color): Removed.
19910 (grub_ofconsole_writeesc): Likewise.
19911 (grub_ofconsole_highlight_color): Likewise.
19912 (grub_ofconsole_getcharwidth): Likewise.
19913 (grub_ofconsole_setcolorstate): Likewise.
19914 (grub_ofconsole_setcolor): Likewise.
19915 (grub_ofconsole_getcolor): Likewise.
19916 (grub_ofconsole_readkey): Renamed to ...
19917 (readkey): ... this. Remove escape sequence handling. Return -1 on no
19918 key.
19919 (grub_ofconsole_checkkey): Removed.
19920 (grub_ofconsole_getkey): Likewise.
19921 (grub_ofconsole_getxy): Likewise.
19922 (grub_ofconsole_gotoxy): Likewise.
19923 (grub_ofconsole_cls): Likewise.
19924 (grub_ofconsole_refresh): Likewise.
19925 (grub_ofconsole_terminfo_input): New struct.
19926 (grub_ofconsole_terminfo_output): Likewise.
19927 (grub_ofconsole_term_input): Use terminfo.
19928 (grub_ofconsole_term_output): Likewise.
19929 (grub_console_init): Split into ...
19930 (grub_console_init_early): ...this and ...
19931 (grub_console_init_lately): ...this. Use terminfo.
19932 (grub_ofconsole_putchar): Renamed to ...
19933 (put): ... this. Remove mapping.
19934 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19935 * term/serial.c: Simplify using terminfo.
19936 (xpos): Removed.
19937 (ypos): Likewise.
19938 (keep_track): Likewise.
19939 (registered): Likewise.
19940 (input_buf): Likewise.
19941 (npending): Likewise.
19942 (serial_translate_key_sequence): Likewise.
19943 (fill_input_buf): Likewise.
19944 (grub_serial_checkkey): Likewise.
19945 (grub_serial_getkey): Likewise.
19946 (grub_serial_getxy): Likewise.
19947 (grub_serial_gotoxy): Likewise.
19948 (grub_serial_putchar): Likewise.
19949 (grub_serial_cls): Likewise.
19950 (grub_serial_setcolorstate): Likewise.
19951 (grub_serial_setcursor): Likewise.
19952 (serial_hw_init): Use serial_hw_fetch.
19953 (grub_serial_terminfo_input): New variable.
19954 (grub_serial_terminfo_output): Likewise.
19955 (grub_serial_term_input): Use terminfo.
19956 (grub_serial_term_output): Likewise.
19957 * term/terminfo.c (putstr): Use put.
19958 (grub_terminfo_all_free): New function
19959 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
19960 (grub_terminfo_output_register): New function.
19961 (grub_terminfo_output_unregister): Likewise.
19962 (grub_terminfo_getxy): Likewise.
19963 (grub_terminfo_readkey): Likewise.
19964 (grub_terminfo_checkkey): Likewise.
19965 (grub_terminfo_getkey): Likewise.
19966 (grub_terminfo_input_init): Likewise.
19967 (print_terminfo): Likewise.
19968 (grub_cmd_terminfo): Handle encoding.
19969 (grub_terminfo_gotoxy): Track position.
19970 (grub_terminfo_cls): Likewise.
19971 (grub_terminfo_putchar): Likewise.
19972 (grub_terminfo_setcolorstate): Handle colors
19973 (grub_terminfo_cursor_on): This ...
19974 (grub_terminfo_cursor_off): ... and this merged into ...
19975 (grub_terminfo_setcursor): ... this.
19976 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
19977 * unicode/ArabicShaping.txt: New file (imported from Unicode).
19978 * unicode/BidiMirroring.txt: Likewise.
19979 * unicode/UnicodeData.txt: Likewise.
19980 * unicode/COPYING: Likewise.
19981 * util/grub-editenv.c (grub_putchar): Removed.
19982 (grub_xputs_real): New function.
19983 (grub_xputs): New variable.
19984 * util/grub-fstest.c (grub_putchar): Removed.
19985 (grub_xputs_real): New function.
19986 (grub_xputs): New variable.
19987 * util/grub-mkdevicemap.c (grub_putchar): Removed.
19988 (grub_xputs_real): New function.
19989 (grub_xputs): New variable.
19990 * util/grub-probe.c (grub_putchar): Removed.
19991 (grub_xputs_real): New function.
19992 (grub_xputs): New variable.
19993 * util/grub-script-check.c (grub_putchar): Removed.
19994 (grub_xputs_real): New function.
19995 (grub_xputs): New variable.
19996 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
19997 (grub_xputs_real): New function.
19998 (grub_xputs): New variable.
19999 * util/import_unicode.py: New file.
20000 * util/grub-mkfont.c (ft_errmsgs): New array.
20001 (grub_glyph_info): Make bitmap a pointer.
20002 (file_formats): New type WIDTH_SPEC.
20003 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
20004 (options): Add width-spec.
20005 (help): Likewise.
20006 (add_char): Renamed to ...
20007 (add_glyph): ... this.
20008 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
20009 (glyph_replace): New type.
20010 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
20011 (add_char): New function.
20012 (add_subst): Likewise.
20013 (process_cursive): Likewise.
20014 (add_font): Handle GSUB.
20015 (write_font_width_spec): New function.
20016 (main): Sort glyphs.
20017 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
20018 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
20019 * kern/term.c (grub_cls): Moved from here...
20020 * normal/term.c (grub_cls): ... here.
20021
20022 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20023
20024 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
20025 suitable for using within the format argument of printf when
20026 converting grub_size_t.
20027 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
20028 "x" to convert grub_size_t arguments.
20029
20030 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20031
20032 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
20033 too long captions.
20034 (list_get_minimal_size): Take selection box into account.
20035
20036 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20037
20038 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
20039 NULL font.
20040
20041 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20042
20043 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
20044 devices when iterating over /dev/disk/by-id; they will be handled
20045 later if appropriate, which they aren't always (e.g. LVM).
20046
20047 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20048
20049 * include/grub/misc.h (grub_reboot): Declare as noreturn.
20050 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
20051 fails.
20052 (grub_halt): Likewise.
20053 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
20054 reset-all fails.
20055 (grub_halt): Don't return, even if all of shut-down, power-off, and
20056 poweroff fail.
20057
20058 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20059
20060 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
20061 arguments, not three.
20062
20063 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20064
20065 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
20066 * util/grub.d/10_linux.in: Use it to check for LVM, so that
20067 LVM-on-RAID is handled correctly.
20068
20069 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20070
20071 * docs/grub.texi (Changes from GRUB Legacy): New section.
20072 (Future): Fix typo.
20073
20074 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20075
20076 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
20077 grub.d/README accidentally ends up executable for one reason or
20078 another. Ignore it.
20079
20080 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20081
20082 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
20083 (gpt_partition_map_iterate): Support non-512B sectors.
20084
20085 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20086
20087 * kern/efi/init.c (grub_efi_init): Disable watchdog.
20088 Tested by: Seth Goldberg.
20089
20090 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20091
20092 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
20093 Properly align mbi.
20094 Reported by: Seth Goldberg.
20095
20096 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20097
20098 * util/grub-mkrescue.in: Avoid module duplication.
20099
20100 2010-07-01 Sean Finney <seanius@seanius.net>
20101
20102 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
20103
20104 2010-07-01 Sean Finney <seanius@seanius.net>
20105
20106 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
20107
20108 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20109
20110 * disk/lvm.c (grub_lvm_checkvalue): New function.
20111 (grub_lvm_check_flag): Likewise.
20112
20113 2010-07-01 Robert Millan <rmh@gnu.org>
20114
20115 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
20116 Support 'p' as partition separator on kernel of FreeBSD (used
20117 with GPT labels).
20118 (grub_util_biosdisk_get_grub_dev): Likewise.
20119
20120 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20121
20122 Yeeloong firmware port.
20123
20124 * boot/mips/yeeloong/fwstart.S: New file.
20125 * bus/cs5536.c (gpiodump): New const.
20126 (set_io_space): New function.
20127 (set_iod): Likewise.
20128 (set_p2d): Likewise.
20129 (grub_cs5536_init_geode): Likewise.
20130 * commands/mips/yeeloong/lsspd.c: New file.
20131 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
20132 (serial_mod_SOURCES): New variable.
20133 (serial_mod_CFLAGS): Likewise.
20134 (serial_mod_LDFLAGS): Likewise.
20135 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
20136 term/terminfo.c and term/tparm.c.
20137 (pkglib_IMAGES): Add fwstart.img.
20138 (fwstart_img_SOURCES): New variable.
20139 (fwstart_img_CFLAGS): Likewise.
20140 (fwstart_img_ASFLAGS): Likewise.
20141 (fwstart_img_LDFLAGS): Likewise.
20142 (fwstart_img_FORMAT): Likewise.
20143 (pkglib_MODULES): Add lsspd.mod.
20144 (lsspd_mod_SOURCES): New variable.
20145 (lsspd_mod_CFLAGS): Likewise.
20146 (lsspd_mod_LDFLAGS): Likewise.
20147 (pkglib_MODULES): Add halt.mod.
20148 (halt_mod_SOURCES): New variable.
20149 (halt_mod_CFLAGS): Likewise.
20150 (halt_mod_LDFLAGS): Likewise.
20151 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
20152 (serial_mod_SOURCES): Removed.
20153 (serial_mod_CFLAGS): Likewise.
20154 (serial_mod_LDFLAGS): Likewise.
20155 * disk/ata.c (check_device): New function.
20156 (grub_ata_device_initialize): Use check_device.
20157 (grub_ata_iterate): Recheck devices.
20158 (grub_ata_open): Likewise.
20159 (grub_atapi_iterate): Likewise.
20160 (grub_atapi_open): Likewise.
20161 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
20162 (GRUB_ATA_CH1_PORT1): Likewise.
20163 (GRUB_ATA_CH0_PORT2): Likewise.
20164 (GRUB_ATA_CH1_PORT2): Likewise.
20165 * include/grub/mips/loongson.h: New file.
20166 * include/grub/mips/yeeloong/ec.h: Likewise.
20167 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
20168 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
20169 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
20170 * include/grub/misc.h (grub_halt): Declare as noreturn.
20171 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
20172 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
20173 (UART_ENABLE_FIFO_TRIGGER1): New definition.
20174 (UART_ENABLE_DTRRTS): Likewise.
20175 (UART_ENABLE_MODEM): Removed.
20176 (UART_ENABLE_OUT2): New const.
20177 * include/grub/term.h (grub_term_register_input_active): New function.
20178 (grub_term_register_output_active): Likewise.
20179 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
20180 argument.
20181 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
20182 (init_pci): New function.
20183 (grub_machine_init): Execute platform init when firmware. Init serial.
20184 (grub_halt): Implement.
20185 (grub_exit): Likewise.
20186 (grub_reboot): Likewise.
20187 * term/serial.c (serial_hw_init): Update macros.
20188 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
20189 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
20190 (image_targets): New target mipsel-yeeloong-flash.
20191 (generate_image): Support IMAGE_YEELOONG_FLASH.
20192 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
20193 (grub_video_sm712_setup): Init card.
20194 (grub_video_sm712_set_palette): Removed.
20195 * video/sm712_init.c: New file.
20196
20197 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
20198
20199 * Makefile.in (install-local): Temporarily prepend $(builddir) to
20200 PATH when running help2man and then run it on the unadorned
20201 executable names, rather than passing $(builddir)/* paths to
20202 help2man. This avoids the build directory ending up in generated
20203 manual pages.
20204
20205 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
20206
20207 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
20208 to avoid accidents when debugging with 'sh -x'.
20209 * util/grub-mkrescue.in: Likewise.
20210 * util/grub.d/00_header.in: Likewise.
20211 * util/grub.d/10_hurd.in: Likewise.
20212 * util/grub.d/10_kfreebsd.in: Likewise.
20213 * util/grub.d/10_linux.in: Likewise.
20214 * util/grub.d/10_netbsd.in: Likewise.
20215 * util/grub.d/10_windows.in: Likewise.
20216 * util/grub.d/20_linux_xen.in: Likewise.
20217 * util/grub.d/30_os-prober.in: Likewise.
20218 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20219
20220 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
20221
20222 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
20223 last character in the buffer.
20224 Reported by: Vladimir Serbinenko.
20225
20226 2010-06-29 Robert Millan <rmh@gnu.org>
20227
20228 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
20229 (Command-line and menu entry commands): Document `badram' command.
20230
20231 2010-06-28 Robert Millan <rmh@gnu.org>
20232
20233 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
20234 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
20235 command using ${GRUB_BADRAM} as parameter.
20236
20237 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20238
20239 * docs/grub.texi (Device map): New section.
20240 (Themes): New section (stub).
20241 * Makefile.in (docs/grub.info): The info documentation now builds
20242 without errors. Make sure it stays that way.
20243
20244 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20245
20246 Use normal parser for menu entries.
20247 Reported by: Thomas Frauendorfer
20248
20249 * include/grub/parser.h (grub_parser_execute): Don't export.
20250 * normal/menu.c (grub_menu_execute_entry_real): New function.
20251 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
20252
20253 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20254
20255 * docs/grub.texi (Embedded configuration): New section (replacing
20256 old "Preset Menu" stub).
20257 (Images): New section.
20258 (configfile): Note that any menu entries defined in `file' are shown
20259 immediately.
20260
20261 2010-06-28 Josh Triplett <josh@joshtriplett.org>
20262
20263 * mmap/i386/pc/mmap_helper.S: Set CF on return.
20264
20265 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20266
20267 * util/grub-install.in: Add --debug-image= option.
20268
20269 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20270
20271 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
20272 possible on Linux.
20273
20274 * util/deviceiter.c (check_device): Rename to ...
20275 (check_device_readable_unique): ... this. Update all callers.
20276 Maintain and check a list of which devices (by canonicalized name)
20277 have already been seen.
20278 (clear_seen_devices): New function.
20279 (compare_file_names) [__linux__]: New function.
20280 (grub_util_iterate_devices): Clear the list of seen devices on exit
20281 and (just in case) on entry.
20282 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
20283 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
20284 seen-devices list, superseded by general code in check_device.
20285
20286 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20287
20288 * commands/cat.c (options): New variable.
20289 (grub_cmd_cat): Parse options. If the --dos option is given, print
20290 DOS-style "\r\n" line endings as simple newlines (Debian bug
20291 #586358).
20292 (GRUB_MOD_INIT): Use extcmd.
20293 (GRUB_MOD_FINI): Likewise.
20294 * docs/grub.texi (cat): Document --dos.
20295
20296 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20297
20298 XEN with Linux grub-mkconfig support.
20299
20300 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
20301 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
20302 GRUB_CMDLINE_XEN_DEFAULT.
20303 * util/grub.d/20_linux_xen.in: New file.
20304
20305 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20306
20307 Initialise VGA video on qemu ourselves.
20308
20309 * boot/i386/qemu/boot.S: Don't call 0xc000.
20310 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
20311 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
20312 (kernel_img_HEADERS): Add pci.h.
20313 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
20314 * configure.ac: Force unifont on qemu and yeeloong.
20315 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
20316 (grub_vga_palette_write): Use correct register.
20317 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
20318 Call grub_qemu_init_cirrus.
20319 * kern/i386/qemu/init.c: New file.
20320 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
20321
20322 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
20323
20324 2010-06-26 Pavel Roskin <proski@gnu.org>
20325
20326 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
20327 13.
20328
20329 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
20330
20331 * docs/grub.texi (Simple configuration): Explain that
20332 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
20333 set to `true' to disable their respective recovery entries, not
20334 merely set.
20335
20336 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
20337
20338 Make the `source' command slightly faster.
20339
20340 * normal/main.c (grub_normal_execute): Don't re-read list files when
20341 nested.
20342
20343 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
20344
20345 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
20346 field position and mask size to red fields from mode_info, not
20347 green.
20348 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
20349 Remove redundant tag->common.framebuffer_type assignment.
20350 Reported by: Seth Goldberg.
20351
20352 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
20353
20354 Sync up other versions of the Linux loader with Robert Millan's
20355 change of 2010-01-09, "Make loader output a bit more user-friendly".
20356
20357 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
20358 grub_dprintf().
20359 (grub_cmd_linux): Likewise.
20360 (grub_cmd_initrd): Likewise.
20361 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
20362 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20363
20364 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
20365
20366 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
20367 larger than MEMORY_MAP_SIZE.
20368
20369 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
20370
20371 Fix parallel build.
20372
20373 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
20374 dependency.
20375 * script/parser.y: #include grub_script.tab.h header.
20376
20377 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20378
20379 Support >3GiB and <16MiB RAM in i386-qemu.
20380
20381 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
20382 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
20383 (grub_lower_mem): Removed.
20384 (grub_upper_mem): Likewise.
20385 (mem_size): Made static.
20386 (above_4g): New variable.
20387 (grub_machine_mmap_init): Detect small mem_size and above_4g.
20388 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
20389 support.
20390
20391 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20392
20393 Cirrus 5446 and Bochs video cards support.
20394
20395 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
20396 video_bochs.mod
20397 (video_cirrus_mod_SOURCES): New variable.
20398 (video_cirrus_mod_CFLAGS): Likewise.
20399 (video_cirrus_mod_LDFLAGS): Likewise.
20400 (video_bochs_mod_SOURCES): Likewise.
20401 (video_bochs_mod_CFLAGS): Likewise.
20402 (video_bochs_mod_LDFLAGS): Likewise.
20403 * include/grub/vga.h: New file.
20404 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
20405 (grub_video_fb_set_page_t): New type.
20406 (grub_video_fb_setup): New prototype.
20407 (grub_video_fb_swap_buffers): Likewise.
20408 (grub_video_fb_get_info_and_fini): Likewise.
20409 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
20410 (CRTC_DATA_PORT): Likewise.
20411 (CRTC_CURSOR): Likewise.
20412 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20413 (CRTC_CURSOR_ADDR_LOW): Likewise.
20414 (CRTC_CURSOR_DISABLE): Likewise.
20415 (update_cursor): Use grub_vga_cr_write.
20416 (grub_vga_text_setcursor): Likewise.
20417 * video/bochs.c: New file.
20418 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
20419 (palette): Likewise.
20420 (palette_size): Likewise.
20421 (framebuffer): New variable.
20422 (grub_video_fb_init): Use 'framebuffer'.
20423 (grub_video_fb_fini): Likewise.
20424 (grub_video_fb_get_info): Likewise.
20425 (grub_video_fb_get_palette): Likewise.
20426 (grub_video_fb_set_palette): Likewise.
20427 (grub_video_fb_set_viewport): Likewise.
20428 (grub_video_fb_get_viewport): Likewise.
20429 (grub_video_fb_map_color): Likewise.
20430 (grub_video_fb_map_rgb): Likewise.
20431 (grub_video_fb_map_rgba): Likewise.
20432 (grub_video_fb_unmap_color): Likewise.
20433 (grub_video_fb_unmap_color_int): Likewise.
20434 (grub_video_fb_fill_rect): Likewise.
20435 (grub_video_fb_blit_bitmap): Likewise.
20436 (grub_video_fb_blit_render_target): Likewise.
20437 (grub_video_fb_scroll): Likewise.
20438 (grub_video_fb_create_render_target): Likewise.
20439 (grub_video_fb_doublebuf_blit_init): Likewise.
20440 (grub_video_fb_set_active_render_target): Handle doublebuffering.
20441 (doublebuf_pageflipping_update_screen): New function.
20442 (doublebuf_pageflipping_init): Likewise.
20443 (grub_video_fb_setup): Likewise.
20444 (grub_video_fb_swap_buffers): Likewise.
20445 (grub_video_fb_get_info_and_fini): Likewise.
20446 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
20447 All users updated.
20448 (doublebuf_pageflipping_commit): Restructured into ...
20449 (doublebuf_pageflipping_set_page): ... this.
20450 (doublebuf_pageflipping_update_screen): Removed.
20451 (doublebuf_pageflipping_init): Likewise.
20452 (double_buffering_init): Likewise.
20453 (grub_video_vbe_setup): Use grub_video_fb_setup.
20454 (grub_video_vbe_swap_buffers): Removed.
20455 (grub_video_vbe_set_active_render_target): Likewise.
20456 (grub_video_vbe_get_active_render_target): Likewise.
20457 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
20458 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
20459 grub_video_fb_set_active_render_target and
20460 grub_video_fb_get_active_render_target.
20461 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
20462 (SEQUENCER_DATA_PORT): Likewise.
20463 (MAP_MASK_REGISTER): Likewise.
20464 (CRTC_ADDR_PORT): Likewise.
20465 (CRTC_DATA_PORT): Likewise.
20466 (START_ADDR_HIGH_REGISTER): Likewise.
20467 (START_ADDR_LOW_REGISTER): Likewise.
20468 (GRAPHICS_ADDR_PORT): Likewise.
20469 (GRAPHICS_DATA_PORT): Likewise.
20470 (READ_MAP_REGISTER): Likewise.
20471 (INPUT_STATUS1_REGISTER): Likewise.
20472 (INPUT_STATUS1_VERTR_BIT): Likewise.
20473 (get_map_mask): Use grub_vga_sr_read.
20474 (set_map_mask): Use grub_vga_sr_write.
20475 (set_read_map): Use grub_vga_gr_write.
20476 (set_start_address): Use grub_vga_cr_write.
20477 * video/sm712.c (framebuffer): Remove leftover fields.
20478
20479 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
20480
20481 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
20482 setting GRUB_VIDEO_BACKEND. Make it available as a user override
20483 instead. Replace the gfxterm backend check with a check that
20484 ${GRUB_PREFIX}/video.lst is non-empty.
20485 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
20486 again.
20487 (load_video): New generated function. Call it before loading
20488 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
20489 * util/grub.d/10_linux.in (linux_entry): Call load_video.
20490 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
20491 * docs/grub.texi (Simple configuration): Document
20492 GRUB_VIDEO_BACKEND.
20493
20494 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20495
20496 Use video functions in linux and xnu loaders.
20497
20498 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
20499 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
20500 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
20501 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
20502 loader/i386/pc/linux.c.
20503 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
20504 (find_line_len): Removed.
20505 (find_framebuf): Likewise.
20506 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
20507 * loader/i386/efi/xnu.c: Removed.
20508 * loader/i386/pc/xnu.c: Moved from here...
20509 * loader/i386/xnu.c: ...here.
20510
20511 Enable priorities in video drivers.
20512
20513 * include/grub/video.h (grub_video_adapter_prio_t): New type.
20514 (grub_video_adapter): New field prio.
20515 (grub_video_register): Respect prio when inserting.
20516 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
20517 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
20518 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
20519 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
20520 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
20521 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
20522 * video/sm712.c (grub_video_sm712_adapter): Likewise.
20523
20524 Fix SDL driver ID.
20525
20526 * include/grub/video.h (grub_video_driver_id_t): New value
20527 GRUB_VIDEO_DRIVER_SDL.
20528 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
20529
20530 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20531
20532 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
20533 argument to printf.
20534 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20535
20536 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20537
20538 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
20539 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20540
20541 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20542
20543 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
20544 directly, and recommend grub-install instead.
20545 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20546
20547 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20548
20549 Fix i386-pc prefix handling with nested partitions (Debian bug
20550 #585068). Note that the case where the core image is booted using
20551 multiboot and relocated from its original location still requires
20552 more work.
20553
20554 * kern/i386/pc/init.c (make_install_device): If the prefix starts
20555 with "(,", fill the boot drive in between those two characters, but
20556 expect that a full partition specification including partition map
20557 names will follow.
20558 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
20559 specified, write a prefix without the drive name but including a
20560 full partition specification.
20561
20562 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
20563
20564 * util/grub-mkconfig.in: Ignore non-option arguments, for
20565 compatibility with older versions (before 2010-06-12) which did the
20566 same. In particular, this makes it easier to ship an update-grub
20567 wrapper which is compatible with that used with GRUB Legacy (Debian
20568 bug #586056).
20569
20570 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20571
20572 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
20573 for manual page generation.
20574
20575 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20576
20577 * po/POTFILES: Remove leftover commands/handler.c.
20578
20579 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20580
20581 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
20582 left this script non-functional.
20583
20584 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20585
20586 * docs/man/grub-emu.h2m: New file.
20587
20588 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
20589
20590 * docs/grub.texi (Commands): Document reduced command set in rescue
20591 mode.
20592 (cpuid): New section.
20593
20594 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
20595
20596 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
20597 new partition naming style.
20598 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
20599
20600 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
20601
20602 Add "-o grub.iso" like cmdline options support.
20603
20604 * util/grub-install.in: Improve cmdline option parsing.
20605 * util/grub-mkconfig.in: Likewise.
20606 * util/grub-mkrescue.in: Likewise.
20607 * util/grub-reboot.in: Likewise.
20608 * util/grub-set-default.in: Likewise.
20609 * util/i386/efi/grub-install.in: Likewise.
20610 * util/ieee1275/grub-install.in: Likewise.
20611 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20612
20613 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20614
20615 * .bzrignore: Ignore 41_custom.
20616
20617 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20618
20619 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
20620
20621 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20622
20623 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
20624 prototype declarations.
20625
20626 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
20627 generating fs, partmap, and video lists.
20628 * include/grub/fs.h (grub_fs_register): Omit prototype if
20629 GRUB_LST_GENERATOR is defined.
20630 * include/grub/partition.h (grub_partition_map_register): Likewise.
20631 * include/grub/video.h (grub_video_register): Likewise.
20632
20633 2010-06-12 Javier Martín <lordhabbit@gmail.com>
20634
20635 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
20636
20637 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20638
20639 * util/grub-mkrescue.in: Support --xorriso argument.
20640
20641 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20642
20643 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
20644 Suggested by: Thomas Schmitt.
20645
20646 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20647
20648 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
20649 Suggested by: Thomas Schmitt.
20650
20651 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20652
20653 custom.cfg support.
20654
20655 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
20656 * util/grub.d/41_custom.in: New file.
20657
20658 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20659
20660 * util/grub-mkrescue.in (make_image): Remove sh module, which has
20661 been merged back into normal.
20662
20663 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20664
20665 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
20666 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
20667
20668 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20669
20670 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
20671 when generating manual pages.
20672 * docs/man/grub-bin2h.h2m: New file.
20673 * docs/man/grub-editenv.h2m: New file.
20674 * docs/man/grub-fstest.h2m: New file.
20675 * docs/man/grub-install.h2m: New file.
20676 * docs/man/grub-macho2img.h2m: New file.
20677 * docs/man/grub-mkconfig.h2m: New file.
20678 * docs/man/grub-mkdevicemap.h2m: New file.
20679 * docs/man/grub-mkfont.h2m: New file.
20680 * docs/man/grub-mkimage.h2m: New file.
20681 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
20682 * docs/man/grub-mkrelpath.h2m: New file.
20683 * docs/man/grub-mkrescue.h2m: New file.
20684 * docs/man/grub-ofpathname.h2m: New file.
20685 * docs/man/grub-pe2elf.h2m: New file.
20686 * docs/man/grub-probe.h2m: New file.
20687 * docs/man/grub-reboot.h2m: New file.
20688 * docs/man/grub-script-check.h2m: New file.
20689 * docs/man/grub-set-default.h2m: New file.
20690 * docs/man/grub-setup.h2m: New file.
20691
20692 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
20693
20694 Use FOR_* macros instead of *_iterate whenever possible.
20695
20696 * commands/handler.c: Removed.
20697 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
20698 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
20699 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20700 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
20701 (grub_probe_SOURCES): Remove kern/parser.c.
20702 (util/grub-script-check.c_DEPENDENCIES): Removed.
20703 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
20704 and grub_script_check_init.c.
20705 (grub_script_check_init.lst): Removed.
20706 (grub_script_check_init.h): Likewise.
20707 (grub_script_check_init.c): Likewise.
20708 (pkglib_MODULES): Remove handler.mod and sh.mod.
20709 (handler_mod_SOURCES): Removed.
20710 (handler_mod_CFLAGS): Likewise.
20711 (handler_mod_LDFLAGS): Likewise.
20712 (normal_mod_SOURCES): Remove normal/handler.c.
20713 Add script/main.c, script/script.c, script/execute.c,
20714 script/function.c, script/lexer.c, grub_script.tab.c
20715 and grub_script.yy.c.
20716 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20717 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20718 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
20719 (grub_setup_SOURCES): Remove kern/parser.c.
20720 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20721 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
20722 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
20723 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20724 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20725 (grub_setup_SOURCES): Remove kern/parser.c.
20726 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20727 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
20728 * include/grub/command.h (grub_command_iterate): Removed.
20729 (FOR_COMMANDS): New macro.
20730 * include/grub/dl.h (grub_dl): New member next.
20731 (grub_dl_iterate): Removed.
20732 (grub_dl_head): New variable declaration.
20733 (FOR_DL_MODULES): New macro.
20734 * include/grub/fs.h: Include list.h.
20735 (grub_fs): Make next first element.
20736 (grub_fs_list): New variable declaration.
20737 (grub_fs_register): Make inline.
20738 (grub_fs_unregister): Likewise.
20739 (grub_fs_iterate): Removed.
20740 (FOR_FILESYSTEMS): New macro.
20741 * include/grub/handler.h: Removed.
20742 * include/grub/list.h (grub_list_hook_t): Removed.
20743 (grub_list_test_t): Likewise.
20744 (grub_list_pop): Likewise.
20745 (grub_list_iterate): Likewise.
20746 (grub_list_insert): Likewise.
20747 (FOR_LIST_ELEMENTS): New macro.
20748 * include/grub/parser.h (grub_parser_class): Removed.
20749 (grub_parser_register): Likewise.
20750 (grub_parser_unregister): Likewise.
20751 (grub_parser_get_current): Likewise.
20752 (grub_parser_set_current): Likewise.
20753 (grub_register_rescue_parser): Likewise.
20754 (grub_rescue_parse_line): New function.
20755 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
20756 * include/grub/script_sh.h (grub_script_function_list): New variable
20757 declaration.
20758 (FOR_SCRIPT_FUNCTIONS): New macro.
20759 (grub_script_function_iterate): Removed.
20760 (grub_normal_parse_line): New prototype.
20761 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
20762 (FOR_DISABLED_TERM_INPUTS): Likewise.
20763 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
20764 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
20765 * include/grub/video.h (grub_video_adapter): Move 'next' to first
20766 element.
20767 (grub_video_register): Inline.
20768 (grub_video_unregister): Likewise.
20769 (grub_video_adapter_list): New variable declaration.
20770 (grub_video_iterate): Removed.
20771 (FOR_VIDEO_ADAPTERS): New macro.
20772 * kern/dl.c (grub_dl_list): Removed. All users updated.
20773 (grub_dl_iterate): Removed.
20774 * kern/fs.c (grub_fs_list): Make global.
20775 (grub_fs_register): Removed.
20776 (grub_fs_unregister): Likewise.
20777 (grub_fs_iterate): Likewise.
20778 * kern/handler.c: Removed.
20779 * kern/list.c (grub_list_pop): Removed.
20780 (grub_list_iterate): Likewise.
20781 (grub_list_insert): Likewise.
20782 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
20783 (grub_prio_list_insert): Don't use grub_list_insert.
20784 * kern/main.c (grub_register_rescue_parser): Don't call
20785 grub_register_rescue_parser.
20786 * kern/parser.c (grub_parser_class): Removed.
20787 (grub_parser_execute): Use grub_rescue_parse_line.
20788 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
20789 (grub_rescue_parser): Removed.
20790 (grub_register_rescue_parser): Likewise.
20791 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
20792 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
20793 (grub_auth_check_authentication): Likewise.
20794 * normal/completion.c (iterate_command): Removed.
20795 (grub_normal_do_completion): Use FOR_COMMANDS.
20796 * normal/handler.c: Removed.
20797 * normal/main.c (read_config_file): Remove parser changing.
20798 (grub_normal_execute): Don't call read_handler_list.
20799 (grub_normal_read_line_real): Statically allocate prompt.
20800 (grub_cmdline_run): Use grub_normal_parse_line.
20801 (GRUB_MOD_FINI): Don't call free_handler_list.
20802 * normal/menu_entry.c (run): Likewise.
20803 * script/function.c (grub_script_function_list): Make global.
20804 (grub_script_function_iterate): Removed.
20805 * script/main.c (grub_normal_parse_line): Make global.
20806 (grub_sh_parser): Removed.
20807 (GRUB_MOD_INIT): Likewise.
20808 (GRUB_MOD_FINI): Likewise.
20809 * tests/lib/functional_test.c (grub_functional_test): Use
20810 FOR_LIST_ELEMENTS.
20811 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
20812 (grub_test_run): Use FOR_LIST_ELEMENTS.
20813 * tests/lib/unit_test.c (main): Likewise.
20814 * util/deviceiter.c (grub_util_iterate_devices): Don't use
20815 grub_list_pop.
20816 * util/grub-fstest.c (grub_term_input_class): Removed.
20817 (grub_term_output_class): Likewise.
20818 * util/grub-probe.c: Likewise.
20819 * util/i386/pc/grub-setup.c: Likewise.
20820 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20821 * util/grub-script-check.c (main): Don't call grub_init_all and
20822 grub_fini_all.
20823 * video/video.c (grub_video_adapter_list): Make global.
20824 (grub_video_register): Removed.
20825 (grub_video_unregister): Likewise.
20826 (grub_video_iterate): Likewise.
20827
20828 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
20829
20830 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
20831 reported by Henrique Ferreiro.
20832
20833 2010-06-09 Robert Millan <rmh@gnu.org>
20834
20835 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
20836 ones, when both are available.
20837
20838 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20839
20840 Make --version uniform and avoid hard-coded program name.
20841
20842 * util/grub-mkimage.c (main): Use `program_name' instead of
20843 hard-coded string.
20844 * util/i386/pc/grub-setup.c (main): Likewise.
20845 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
20846 * util/grub-install.in: Save the basename of $0 in $self, and use the
20847 latter in informational messages. Use the same format for --version
20848 as the binary programs.
20849 * util/grub-mkconfig.in: Likewise.
20850 * util/grub-mkrescue.in: Likewise.
20851 * util/grub-reboot.in: Likewise.
20852 * util/grub-set-default.in: Likewise.
20853 * util/i386/efi/grub-install.in: Likewise.
20854 * util/ieee1275/grub-install.in: Likewise.
20855 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20856
20857 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20858
20859 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
20860 embedding area. Use <= instead of == when checking for non-emptiness.
20861
20862 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20863
20864 * configure.ac: Add `.' to the directories searched for unifont.
20865
20866 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20867
20868 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
20869 grub_script.yy.h.
20870
20871 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20872
20873 * docs/grub.texi (History): Expand to cover GRUB 2.
20874 (Serial terminal): Refer to `terminal_input' and `terminal_output'
20875 commands, not `terminal'.
20876 (serial): Likewise.
20877 (terminal_input): New section.
20878 (terminal_output): New section.
20879 (uppermem): New section (stub).
20880 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
20881
20882 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20883
20884 * docs/grub.texi (Security): Menu entries are unrestricted by
20885 default, not restricted to superusers as I had previously thought.
20886 Reword to account for this.
20887
20888 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20889
20890 * kern/emu/misc.c (device_mapper_null_log): New function.
20891 (grub_device_mapper_supported): New function.
20892 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
20893 prototype.
20894 * kern/emu/hostdisk.c (find_partition_start): Check whether
20895 device-mapper is supported before trying to use it.
20896 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
20897
20898 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20899
20900 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
20901 (File name syntax): Likewise.
20902 (help): --all is no longer supported in GRUB 2. Be more precise
20903 about pattern matching.
20904
20905 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20906
20907 * normal/completion.c (grub_normal_do_completion): When completing
20908 arguments to "set" and the current word contains an equals sign,
20909 skip to after the equals sign before starting completion.
20910
20911 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20912
20913 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
20914
20915 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20916
20917 * docs/grub.texi (Network): New section.
20918 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
20919 `(nd)' as in GRUB Legacy.
20920 (pxe_unload): New section.
20921
20922 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20923
20924 * docs/grub.texi (Troubleshooting): `echo' is not usually available
20925 in the rescue shell, so recommend using `set' instead. Thanks,
20926 Jordan Uggla.
20927
20928 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20929
20930 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
20931 (password): New section.
20932 (password_pbkdf2): New section.
20933 (search): New section.
20934 (Security): New section.
20935 (Troubleshooting): New section, currently very incomplete.
20936 (Invoking grub-mkpasswd-pbkdf2): New section.
20937 (Internals): New section, currently very incomplete.
20938
20939 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20940
20941 * util/grub.d/00_header.in: Add some more quoting (of
20942 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
20943 work again.
20944 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
20945
20946 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20947
20948 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
20949 to `count', fixing variable shadowing that broke the -c option.
20950
20951 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
20952
20953 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
20954 in case they contain spaces.
20955
20956 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20957
20958 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
20959 "part_" to partmap module names, in line with grub-install.
20960 Reported by: Jindřich Makovička (Debian bug #584426).
20961
20962 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20963
20964 * util/grub-mkimage.c: Make target-related error messages slightly
20965 more helpful; -O talks about "format". Explicitly point to the use
20966 of -O if no target is specified.
20967 Reported by: Didier Raboud (Debian bug #584415).
20968
20969 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
20970
20971 * INSTALL: Document several build requirements for optional features
20972 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
20973
20974 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
20975
20976 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
20977 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
20978 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
20979
20980 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20981
20982 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
20983 Thanks to Jordan Uggla for spotting this.
20984
20985 2010-06-02 Aleš Nesrsta <starous@volny.cz>
20986
20987 Finally make USB usable.
20988
20989 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
20990 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
20991 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
20992 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
20993 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
20994 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
20995 (GRUB_OHCI_FSMPS): Likewise.
20996 (GRUB_OHCI_PERIODIC_START): Likewise.
20997 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
20998 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
20999 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
21000 (GRUB_OHCI_SET_PORT_RESET): Likewise.
21001 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
21002 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
21003 (grub_ohci_transaction): Likewise.
21004 (grub_ohci_transfer): Improve condition detection algorithms.
21005 Handle toggle property. Program the transactions correctly.
21006 Improve error handling. Various important fixups.
21007 (grub_ohci_portstatus): Put register writes in right order.
21008 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
21009 (grub_uhci_transfer): Don't show "failed" message on success.
21010 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
21011 array.
21012 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
21013 determine its size.
21014 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
21015 before initialization is completed. Use IN direction for empty
21016 transfers. Use last_trans and compute toggle.
21017 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
21018 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
21019 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
21020 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
21021 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
21022 (grub_usb_device): Increase toggle to 256.
21023 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
21024 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
21025 GRUB_USBMS_SUBCLASS_SFF8070.
21026 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
21027 (grub_scsi_inquiry): New member page and alloc_length.
21028 (grub_scsi_request_sense): New structure.
21029 (grub_scsi_request_sense_data): Likewise.
21030 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
21031 control.
21032 * disk/scsi.c (grub_scsi_request_sense): New function.
21033 (grub_scsi_test_unit_ready): Likewise.
21034 (grub_scsi_inquiry): Fill new fields.
21035 (grub_scsi_read_capacity): Likewise.
21036 (grub_scsi_read10): Add request sense at the end.
21037 (grub_scsi_read12): Likewise.
21038 (grub_scsi_write10): Likewise.
21039 (grub_scsi_write12): Likewise.
21040 (grub_scsi_open): Add Test Unit Ready.
21041 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
21042 Support additional subclasses. Con't clear halt yet. Activate the
21043 proper config. Calculate LUNs correctly.
21044 (grub_usbms_transfer): Various important fixups.
21045
21046 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21047
21048 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
21049 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
21050 (grub_ohci_fini_hw): New function.
21051 (grub_ohci_restore_hw): Likewise.
21052 (GRUB_MOD_INIT(ohci)): Register preboot hook.
21053 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
21054 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
21055
21056 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21057
21058 Dedicated DMA allocations.
21059
21060 * bus/pci.c (grub_memalign_dma32): New function
21061 (grub_dma_free): Likewise.
21062 (grub_dma_get_virt): Likewise.
21063 (grub_dma_get_phys): Likewise.
21064 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
21065 (grub_ohci_pci_iter): Use dma32_alloc.
21066 (grub_ohci_transfer): Likewise.
21067 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
21068 (grub_usb_bulk_readwrite): Likewise.
21069 * include/grub/pci.h: Add declarations.
21070
21071 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21072
21073 CS5536 support.
21074
21075 * bus/cs5536.c: New file.
21076 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
21077 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
21078 (cs5536_mod_SOURCES): New variable.
21079 (cs5536_mod_CFLAGS): Likewise.
21080 (cs5536_mod_LDFLAGS): Likewise.
21081 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
21082 machine/pci.h.
21083 (kernel_img_SOURCES): Add bus/cs5536.c.
21084 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
21085 usb_keyboard.mod.
21086 (usb_mod_SOURCES): New variable.
21087 (usb_mod_CFLAGS): New variable.
21088 (usb_mod_LDFLAGS): New variable.
21089 (usbtest_mod_SOURCES): New variable.
21090 (usbtest_mod_CFLAGS): New variable.
21091 (usbtest_mod_LDFLAGS): New variable.
21092 (ohci_mod_SOURCES): New variable.
21093 (ohci_mod_CFLAGS): New variable.
21094 (ohci_mod_LDFLAGS): New variable.
21095 (usbms_mod_SOURCES): New variable.
21096 (usbms_mod_CFLAGS): New variable.
21097 (usbms_mod_LDFLAGS): New variable.
21098 (usb_keyboard_mod_SOURCES): New variable.
21099 (usb_keyboard_mod_CFLAGS): New variable.
21100 (usb_keyboard_mod_LDFLAGS): New variable.
21101 * include/grub/smbus.h: New file.
21102 * include/grub/cs5536.h: New file.
21103
21104 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21105
21106 * util/grub.d/00_header.in: Add safety check to make sure that
21107 ${locale_dir} exists before trying to probe it.
21108
21109 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21110
21111 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
21112 per the GNU Coding Standards; this is now too obscure to be worth
21113 documenting.
21114 (QNX): Likewise.
21115 (chainloader): Remove cross-reference to `SCO UnixWare'.
21116
21117 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21118
21119 * docs/grub.texi (Chain-loading): New section.
21120 (DOS/Windows): New section, borrowed from GRUB Legacy with details
21121 adjusted for GRUB 2.
21122 (SCO UnixWare): Likewise.
21123 (QNX): Likewise.
21124 (chainloader): Add reference to `Block list syntax'.
21125 (drivemap): New section.
21126 (parttool): New section.
21127
21128 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21129
21130 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
21131 the grub shell'.
21132 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
21133 (Installing GRUB using grub-install): Remove reference to the grub
21134 shell; mention `grub-mkimage' and `grub-setup' instead.
21135 (Invoking grub-install): Likewise.
21136 (Interface): Add reference to `Menu entry editor'.
21137 (serial): Remove `--device' option.
21138
21139 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21140
21141 * docs/grub.texi (Configuration): New section, documenting
21142 configuration file generation using grub-mkconfig. I've left a slot
21143 for documenting the full shell scripting format but have not yet
21144 started on writing that up.
21145 (Invoking grub-mkconfig): New section.
21146
21147 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21148
21149 * docs/grub.texi (direntry): Remove grub-terminfo reference.
21150 (GNU GRUB manual): Likewise.
21151 (General commands): Update description of `terminfo' for GRUB 2.
21152
21153 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21154
21155 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
21156 (GRUB_MOD_INIT): Fix capitalisation.
21157 * docs/grub.texi (Command-line and menu entry commands): Document
21158 gettext and gptsync commands.
21159
21160 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21161
21162 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
21163 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
21164
21165 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
21166
21167 Add btrfs probing support, currently only in the single-device case.
21168
21169 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
21170 function.
21171 (grub_guess_root_device): Call find_root_device_from_mountinfo
21172 before looking in /dev.
21173
21174 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21175
21176 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
21177 GRUB_DISK_SIZE_UNKNOWN.
21178 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
21179
21180 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
21181
21182 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
21183 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
21184 corrupted or not synced properly.
21185
21186 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21187
21188 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
21189 Reported by: Seth Goldberg.
21190
21191 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21192
21193 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
21194 addition of dest.
21195 Reported by: Seth Goldberg.
21196
21197 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21198
21199 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
21200 Reported by: Seth Goldberg.
21201
21202 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21203
21204 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
21205 64-bit address as signed on MIPS.
21206
21207 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
21208
21209 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
21210 to the empty string.
21211
21212 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
21213
21214 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
21215
21216 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
21217 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
21218 * kern/misc.c (__enable_execute_stack): Disable on
21219 GRUB_MACHINE_EMU.
21220
21221 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
21222
21223 Make grub-probe work with symbolic links under /dev/mapper as well
21224 as with real block devices. The Linux world seems to be (at best)
21225 in transition here, and GRUB shouldn't get caught in the middle.
21226
21227 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
21228 /dev/mapper.
21229
21230 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
21231
21232 * util/grub-script-check.c (main): Ensure defined behaviour on empty
21233 input files (in which case exit zero).
21234
21235 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
21236
21237 * kern/emu/misc.c (canonicalize_file_name): realpath can still
21238 return NULL for various reasons even if it has a maximum-length
21239 buffer: for example, there might be a symlink loop, or the path
21240 might exceed PATH_MAX. If this happens, return NULL.
21241
21242 2010-05-27 Robert Millan <rmh@gnu.org>
21243
21244 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
21245 partmap module to handle cross-partmap setups.
21246 Reported by Orestes Mas. Gràcies!
21247
21248 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
21249
21250 * util/grub-mkrescue.in: Initialise override_dir rather than
21251 assuming that it's unset or empty in the environment.
21252
21253 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
21254
21255 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
21256 variable index into p_index to suppress a warning with -Wshadow.
21257
21258 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
21259
21260 * INSTALL: Added flex >= 2.5.35 requirement.
21261
21262 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21263
21264 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
21265
21266 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21267
21268 cmostest support.
21269
21270 * commands/i386/cmostest.c: New file.
21271 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
21272 (cmostest_mod_SOURCES): New variable.
21273 (cmostest_mod_CFLAGS): Likewise.
21274 (cmostest_mod_LDFLAGS): Likewise.
21275 * conf/i386-pc.rmk: Likewise.
21276 * docs/grub.texi (Vendor power-on keys): New section.
21277 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
21278 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
21279 and GRUB_BUTTON_CMOS_ADDRESS.
21280 * util/grub.d/00_header.in: Handle powering-on by separate button.
21281
21282 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21283
21284 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
21285 Removed drawing_scrollbar argument. All users updated
21286 Fixes #29792.
21287 Reported by Jo Shields
21288
21289 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21290
21291 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
21292 buffer since gfxterm handles double repaint.
21293
21294 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21295
21296 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
21297 * term/gfxterm.c (real_scroll): Likewise.
21298
21299 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21300
21301 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
21302 before calling BIOS.
21303
21304 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21305
21306 * include/grub/i18n.h: Always enable grub_gettext.
21307
21308 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21309
21310 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
21311 partition naming style.
21312
21313 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
21314
21315 * util/grub-mkconfig.in: Fix handling of -o so that it works when
21316 not the first option.
21317
21318 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
21319
21320 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
21321
21322 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
21323
21324 * util/misc.c: Move inclusion of <limits.h> to ...
21325 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
21326
21327 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
21328
21329 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
21330 Fix merge error in NetBSD code.
21331 (find_partition_start) [__NetBSD__]: Likewise.
21332
21333 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
21334
21335 Fix grub-mkrescue usage unit testing.
21336
21337 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
21338
21339 2010-05-18 Christian Franke <franke@computer.org>
21340
21341 * util/grub.d/10_windows.in: Use path names instead of
21342 drive letters to prevent warning from Cygwin 1.7.
21343 Add drivemap command to menuentry if needed.
21344
21345 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
21346
21347 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
21348 gnumach and gnumach.gz.
21349
21350 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21351
21352 * include/grub/i18n.h (gettext): Inline instead of using #define.
21353 (grub_gettext): Likewise.
21354 (_): Likewise.
21355
21356 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21357
21358 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
21359 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
21360 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
21361 (main): Add a slash after pkglibdirroot.
21362
21363 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21364
21365 * util/grub-install.in: Add missing "in" keyword.
21366
21367 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21368
21369 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
21370 Reported by: Seth Goldberg.
21371
21372 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21373
21374 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
21375
21376 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21377
21378 * configure.ac: Check for Linux device-mapper support.
21379
21380 * util/hostdisk.c (device_is_mapped): New function.
21381 (find_partition_start): New function, partly broken out from
21382 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
21383 device-mapper support added.
21384 (linux_find_partition): Use find_partition_start.
21385 (convert_system_partition_to_system_disk): Add `st' argument.
21386 Support Linux /dev/mapper/* devices if device-mapper support is
21387 available; only DM-RAID devices are understood at present.
21388 (find_system_device): Add `st' argument. Pass it to
21389 convert_system_partition_to_system_disk.
21390 (grub_util_biosdisk_get_grub_dev): Pass stat result to
21391 find_system_device and convert_system_partition_to_system_disk. Use
21392 find_partition_start.
21393
21394 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
21395 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
21396 * util/deviceiter.c [__linux__]: Define MINOR.
21397 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
21398 * util/mkdevicemap.c (grub_putchar): New function.
21399 (grub_getkey): New function.
21400 (grub_refresh): New function.
21401 (main): Set debug=all if -v -v is used.
21402
21403 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21404
21405 Fix build with non-GNU libcs.
21406
21407 * util/misc.c (canonicalize_file_name): Move to ...
21408 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
21409 grub_make_system_path_relative_to_its_root.
21410
21411 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21412
21413 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
21414 we handle finding grub-mkimage. Default to finding grub-mkimage in
21415 ${bindir} with program_transform_name applied, and provide a
21416 --grub-mkimage option to override this.
21417
21418 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21419
21420 Remove grub-mkisofs.
21421
21422 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
21423 (grub_mkisofs_SOURCES): Removed.
21424 (grub_mkisofs_CFLAGS): Removed.
21425 * util/mkisofs/defaults.h: Removed.
21426 * util/mkisofs/eltorito.c: Likewise.
21427 * util/mkisofs/exclude.h: Likewise.
21428 * util/mkisofs/hash.c: Likewise.
21429 * util/mkisofs/include/: Likewise.
21430 * util/mkisofs/include/fctldefs.h: Likewise.
21431 * util/mkisofs/include/mconfig.h: Likewise.
21432 * util/mkisofs/include/prototyp.h: Likewise.
21433 * util/mkisofs/include/statdefs.h: Likewise.
21434 * util/mkisofs/iso9660.h: Likewise.
21435 * util/mkisofs/joliet.c: Likewise.
21436 * util/mkisofs/match.c: Likewise.
21437 * util/mkisofs/match.h: Likewise.
21438 * util/mkisofs/mkisofs.c: Likewise.
21439 * util/mkisofs/mkisofs.h: Likewise.
21440 * util/mkisofs/msdos_partition.h: Likewise.
21441 * util/mkisofs/multi.c: Likewise.
21442 * util/mkisofs/name.c: Likewise.
21443 * util/mkisofs/rock.c: Likewise.
21444 * util/mkisofs/tree.c: Likewise.
21445 * util/mkisofs/write.c: Likewise.
21446
21447 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21448
21449 Unify grub-mkimage accross platforms.
21450
21451 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
21452 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
21453 (grub_mkelfimage_SOURCES): Removed.
21454 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
21455 (util/grub-mkimage.c_DEPENDENCIES): .. this.
21456 (bin_UTILITIES): Add grub-mkimage.
21457 (grub_mkimage_SOURCES): New variable.
21458 (kernel_img_HEADERS): Remove machine/kernel.h.
21459 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
21460 (pkglib_PROGRAMS): Add kernel.img.
21461 (kernel_img_HEADERS): Add machine/kernel.h.
21462 (kernel_img_FORMAT): Removed.
21463 (bin_UTILITIES): Remove grub-mkimage.
21464 (grub_mkimage_SOURCES): Removed.
21465 (grub_mkimage_CFLAGS): Likewise.
21466 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21467 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
21468 (pkglib_PROGRAMS): Add kernel.img.
21469 (bin_UTILITIES): Remove grub-mkimage.
21470 (grub_mkimage_SOURCES): Removed.
21471 (grub_mkimage_CFLAGS): Likewise.
21472 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21473 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
21474 (pkglib_PROGRAMS): Add kernel.img.
21475 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
21476 (pkglib_PROGRAMS): Add kernel.img.
21477 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
21478 (grub_mkimage_SOURCES): Removed.
21479 (grub_mkimage_CFLAGS): Likewise.
21480 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21481 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
21482 (pkglib_PROGRAMS): Add kernel.img.
21483 (bin_UTILITIES): Remove grub-mkimage.
21484 (grub_mkimage_SOURCES): Removed.
21485 (grub_mkimage_CFLAGS): Likewise.
21486 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21487 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
21488 (grub_mkimage_SOURCES): Removed.
21489 (grub_mkimage_CFLAGS): Likewise.
21490 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21491 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
21492 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
21493 (grub_pe32_optional_header): ... this.
21494 (grub_pe64_optional_header): ... and this. All users updated.
21495 (GRUB_PE32_PE32_MAGIC): Split into ..
21496 (GRUB_PE32_PE32_MAGIC): .. this.
21497 (GRUB_PE32_PE64_MAGIC): .. and this.
21498 (GRUB_PE32_SIGNATURE_SIZE): New definition.
21499 * include/grub/elf.h (PT_GNU_STACK): New definition.
21500 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
21501 * include/grub/i386/efi/kernel.h: Likewise.
21502 * include/grub/i386/kernel.h: Likewise.
21503 * include/grub/i386/pc/kernel.h: Likewise.
21504 * include/grub/i386/qemu/boot.h: Likewise.
21505 * include/grub/mips/kernel.h: Likewise.
21506 * include/grub/mips/qemu-mips/kernel.h: Likewise.
21507 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21508 * include/grub/powerpc/kernel.h: Likewise.
21509 * include/grub/sparc64/ieee1275/boot.h: Likewise.
21510 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21511 * include/grub/sparc64/kernel.h: Likewise.
21512 * include/grub/x86_64/efi/kernel.h: Likewise.
21513 * include/grub/x86_64/kernel.h: Likewise.
21514 * include/grub/offsets.h: New file.
21515 * include/grub/kernel.h (grub_module_info): Split into ...
21516 (grub_module_info32): ... this.
21517 (grub_module_info64): ... and this.
21518 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
21519 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
21520 (grub_boot_blocklist): Moved from here ...
21521 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
21522 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
21523 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
21524 * include/grub/types.h (grub_target_to_host16): Removed.
21525 (grub_target_to_host32): Likewise.
21526 (grub_target_to_host64): Likewise.
21527 (grub_host_to_target16): Likewise.
21528 (grub_host_to_target32): Likewise.
21529 (grub_host_to_target64): Likewise.
21530 (grub_host_to_target_addr): Likewise.
21531
21532 Support grub-mkrescue for efi, coreboot and qemu.
21533
21534 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
21535 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
21536 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
21537 * util/grub-mkrawimage.c: Moved from here ...
21538 * util/grub-mkimage.c: ... here. All users updated.
21539 (ALIGN_ADDR): Use image_target.
21540 (TARGET_NO_FIELD): New const.
21541 (image_target_desc): New type.
21542 (image_targets): New array.
21543 (grub_target_to_host64): Use image_target.
21544 (grub_target_to_host32): Likewise.
21545 (grub_target_to_host16): Likewise.
21546 (grub_host_to_target64): Likewise.
21547 (grub_host_to_target32): Likewise.
21548 (grub_host_to_target16): Likewise.
21549 (grub_host_to_target_addr): Likewise.
21550 (generate_image): Handle multiimage.
21551 (main): Require -O parameter. All users updated.
21552 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
21553 util/efi/grub-mkimage.c
21554 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
21555 New option --rom-directory.
21556 Use xorriso.
21557 * util/i386/efi/grub-mkimage.c: Removed.
21558 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
21559 (grub_target_to_host32): Likewise.
21560 (grub_target_to_host64): Likewise.
21561 (grub_host_to_target16): Likewise.
21562 (grub_host_to_target32): Likewise.
21563 (grub_host_to_target64): Likewise.
21564 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
21565 (grub_target_to_host32): Likewise.
21566 (grub_target_to_host64): Likewise.
21567 (grub_host_to_target16): Likewise.
21568 (grub_host_to_target32): Likewise.
21569 (grub_host_to_target64): Likewise.
21570
21571 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
21572
21573 Source tree is reorganized for emu build.
21574
21575 * include/grub/util/console.h: Move from here...
21576 * include/grub/emu/console.h: ...to here.
21577 * include/grub/util/getroot.h: Move from here...
21578 * include/grub/emu/getroot.h: ...to here.
21579 * include/grub/util/hostdisk.h: Move from here...
21580 * include/grub/emu/hostdisk.h: ...to here.
21581 * util/console.c: Move from here...
21582 * kern/emu/console.c: ...to here.
21583 * util/getroot.c: Move from here...
21584 * kern/emu/getroot.c: ...to here.
21585 * util/grub-emu.c: Move from here...
21586 * kern/emu/main.c: ...to here.
21587 * util/hostdisk.c: Move from here...
21588 * kern/emu/hostdisk.c: ...to here.
21589 * util/hostfs.c: Move from here...
21590 * kern/emu/hostfs.c: ...to here.
21591 * util/mm.c: Move from here...
21592 * kern/emu/mm.c: ...to here.
21593 * util/pci.c: Move from here...
21594 * bus/emu/pci.c: ...to here.
21595 * util/sdl.c: Move from here...
21596 * video/emu/sdl.c: ...to here.
21597 * util/time.c: Move from here...
21598 * kern/emu/time.c: ...to here.
21599 * util/usb.c: Move from here...
21600 * bus/usb/emu/usb.c: ...to here.
21601
21602 * include/grub/emu/misc.h: New header for grub-emu functions.
21603 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
21604
21605 * conf/any-emu.rmk: Rule updates for above renames.
21606 * conf/common.rmk: Likewise.
21607 * conf/i386-pc.rmk: Likewise.
21608 * conf/i386-qemu.rmk: Likewise.
21609 * conf/mips.rmk: Likewise.
21610 * conf/sparc64-ieee1275.rmk: Likewise.
21611 * conf/x86-efi.rmk: Likewise.
21612
21613 * disk/lvm.h: #include updates for above renames.
21614 * util/grub-mkrelpath.c: Likewise.
21615 * util/grub-probe.c: Likewise.
21616 * util/i386/pc/grub-setup.c: Likewise.
21617 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21618 * kern/emu/console.c: Likewise.
21619 * kern/emu/getroot.c: Likewise.
21620 * kern/emu/hostdisk.c: Likewise.
21621 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
21622
21623 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
21624 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
21625 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
21626 * util/misc.c: Remove grub-emu functions.
21627
21628 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
21629
21630 Fix gfxmenu crash.
21631 Reported by: Thorsten Grützmacher.
21632
21633 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
21634 timeout hook.
21635 (circprog_set_property): Register and unregister timeout hook.
21636 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
21637 (label_destroy): Free template. and unregister hook.
21638 (label_set_state): New function.
21639 (label_set_property): Handle templates and hooks.
21640 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
21641 timeout hook.
21642 (progress_bar_set_property): Register and unregister timeout hook.
21643 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
21644 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
21645 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
21646 (update_timeout_visit): Removed.
21647 (update_timeouts): New function.
21648 (redraw_timeouts): Likewise.
21649 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
21650 (grub_gfxmenu_clear_timeout): Likewise.
21651 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
21652 (grub_gfxmenu_timeout_notify): Likewise.
21653 (grub_gfxmenu_timeout_notifications): New external variable.
21654 (grub_gfxmenu_timeout_register): New function.
21655 (grub_gfxmenu_timeout_unregister): Likewise.
21656
21657 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
21658
21659 Transform (broken) vga terminal into (working) vga video driver.
21660
21661 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
21662 video/i386/pc/vga.c.
21663 * include/grub/video.h (grub_video_driver_id):
21664 Add GRUB_VIDEO_DRIVER_VGA.
21665 * term/i386/pc/vga.c: Renamed to ...
21666 * video/i386/pc/vga.c: ...this
21667 (DEBUG_VGA): Removed.
21668 (CHAR_WIDTH): Likewise.
21669 (CHAR_HEIGHT): Likewise.
21670 (TEXT_WIDTH): Likewise.
21671 (TEXT_HEIGHT): Likewise.
21672 (DEFAULT_FG_COLOR): Likewise.
21673 (DEFAULT_BG_COLOR): Likewise.
21674 (colored_char): Likewise.
21675 (xpos): Likewise.
21676 (ypos): Likewise.
21677 (cursor_state): Likewise.
21678 (fg_color): Likewise.
21679 (bg_color): Likewise.
21680 (text_buf): Likewise.
21681 (page): Likewise.
21682 (font): Likewise.
21683 (framebuffer): New variable.
21684 (set_read_map): Disabled.
21685 (setup): New variable.
21686 (is_target): Likewise.
21687 (grub_vga_mod_init): Likewise.
21688 (grub_vga_mod_fini): Likewise.
21689 (check_vga_mem): Likewise.
21690 (write_char): Likewise.
21691 (write_cursor): Likewise.
21692 (scroll_up): Likewise.
21693 (grub_vga_putchar): Likewise.
21694 (grub_vga_getcharwidth): Likewise.
21695 (grub_vga_getwh): Likewise.
21696 (grub_vga_getxy): Likewise.
21697 (grub_vga_gotoxy): Likewise.
21698 (grub_vga_cls): Likewise.
21699 (grub_vga_setcolorstate): Likewise.
21700 (grub_vga_setcursor): Likewise.
21701 (grub_video_vga_init): New function.
21702 (grub_video_vga_setup): Likewise.
21703 (grub_video_vga_fini): Likewise.
21704 (update_target): Likewise.
21705 (grub_video_vga_blit_bitmap): Likewise.
21706 (grub_video_vga_blit_render_target): Likewise.
21707 (grub_video_vga_set_active_render_target): Likewise.
21708 (grub_video_vga_get_active_render_target): Likewise.
21709 (grub_video_vga_swap_buffers): Likewise.
21710 (grub_video_vga_set_palette): Likewise.
21711 (grub_video_vga_get_info_and_fini): Likewise.
21712 (grub_vga_term): Removed.
21713 (grub_video_vga_adapter): New variable.
21714 (GRUB_MOD_INIT): Register a video driver instead of terminal.
21715 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
21716
21717 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21718
21719 * video/readers/jpeg.c: Indented.
21720
21721 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21722
21723 Various jpeg cleanups.
21724
21725 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
21726 (grub_jpeg_decode_quan_table): Use sizeof.
21727 (grub_jpeg_decode_du): Use ARRAY_SIZE.
21728
21729 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
21730
21731 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
21732 tables. Ignore non-last ac bit.
21733 (grub_jpeg_decode_quan_table): Likewise.
21734
21735 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21736
21737 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
21738 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
21739 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21740 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
21741 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
21742 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
21743
21744 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21745
21746 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
21747 error.
21748
21749 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21750
21751 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
21752
21753 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21754
21755 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
21756 condition.
21757
21758 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21759
21760 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
21761 part.
21762
21763 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21764
21765 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
21766 pointers.
21767
21768 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21769
21770 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
21771
21772 2010-05-01 Christian Franke <franke@computer.org>
21773
21774 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
21775 Remove broken Cygwin path conversion.
21776 * util/misc.c: [__CYGWIN__] Add include and define.
21777 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
21778 for Cygwin 1.7.
21779 (make_system_path_relative_to_its_root): Simplify loop, replace early
21780 return by break.
21781 [__CYGWIN__] Add conversion to win32 path.
21782 Include "/" case in trailing slash removal.
21783
21784 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21785
21786 * kern/main.c (grub_load_config): Fix copy-pasted comment.
21787 Reported by: Seth Goldberg
21788
21789 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21790
21791 * commands/help.c (grub_cmd_help): Fix a typo.
21792 Reported by: Seth Goldberg
21793
21794 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21795
21796 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
21797 name and add N_.
21798 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
21799 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
21800 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
21801 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
21802 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
21803 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
21804 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
21805 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
21806 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
21807 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
21808 * normal/context.c (GRUB_MOD_INIT): Likewise.
21809 * normal/main.c (GRUB_MOD_INIT): Likewise.
21810 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
21811 * term/serial.c (GRUB_MOD_INIT): Likewise.
21812 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
21813
21814 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21815
21816 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
21817 extra == 0.
21818
21819 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21820
21821 * commands/iorw.c: New file.
21822 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
21823 (iorw_mod_SOURCES): New variable.
21824 (iorw_mod_CFLAGS): Likewise.
21825 (iorw_mod_LDFLAGS): Likewise.
21826
21827 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21828
21829 Hotkey support
21830
21831 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
21832 * normal/main.c (hotkey_aliases): New variable.
21833 (grub_normal_add_menu_entry): Parse "--hotkey".
21834 * normal/menu_text.c (run_menu): Handle hotkeys.
21835
21836 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21837
21838 * kern/i386/coreboot/init.c (grub_machine_init): Call
21839 grub_machine_mmap_init on qemu.
21840
21841 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21842
21843 * boot/i386/qemu/boot.S: Add a missing .code16.
21844
21845 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21846
21847 Use LBIO on coreboot.
21848
21849 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
21850 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
21851 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
21852 New declaration.
21853 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
21854 grub_machine_mmap_init on coreboot.
21855 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
21856 GRUB_LINUXBIOS_MEMBER_LINK.
21857 (grub_machine_mmap_iterate): Fix declaration.
21858 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
21859
21860 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21861
21862 Split coreboot and multiboot ports.
21863
21864 * conf/i386-multiboot.rmk: New file.
21865 * configure.ac: Add multiboot port.
21866 * include/grub/i386/multiboot/boot.h: New file.
21867 * include/grub/i386/multiboot/console.h: Likewise.
21868 * include/grub/i386/multiboot/init.h: Likewise.
21869 * include/grub/i386/multiboot/kernel.h: Likewise.
21870 * include/grub/i386/multiboot/loader.h: Likewise.
21871 * include/grub/i386/multiboot/memory.h: Likewise.
21872 * include/grub/i386/multiboot/serial.h: Likewise.
21873 * include/grub/i386/multiboot/time.h: Likewise.
21874 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
21875 * loader/multiboot.c: Likewise.
21876 * loader/multiboot_mbi2.c: Likewise.
21877 * util/grub-mkrescue.in: Generate multiboot rescue.
21878
21879 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21880
21881 * kern/parser.c (grub_parser_execute): Cope with read-only config.
21882
21883 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21884
21885 Merge handling of input and output terminals. Fix a hang.
21886
21887 * commands/terminal.c (abstract_terminal): New struct.
21888 (handle_command): New function. Based on grub_cmd_terminal_input.
21889 (grub_cmd_terminal_input): Use handle_command.
21890 (grub_cmd_terminal_output): Use handle_command.
21891
21892 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
21893
21894 Fix comment handling.
21895
21896 * tests/grub_script_comments.in: New testcase.
21897 * conf/tests.rmk: Rules for new testcase.
21898 * script/yylex.l: Updated flex rules.
21899
21900 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
21901
21902 * docs/grub.texi (play): Document that zero pitches produce rests.
21903 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
21904 if argc is 1.
21905
21906 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
21907
21908 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
21909 autogen issues.
21910
21911 2010-04-26 Christian Franke <franke@computer.org>
21912
21913 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
21914 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
21915 (grub_get_prefix): Remove function.
21916 * util/grub-emu.c (main): Replace grub_get_prefix () call by
21917 make_system_path_relative_to_its_root ().
21918 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
21919
21920 2010-04-24 Christian Franke <franke@computer.org>
21921
21922 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
21923 (kernel_img_LDFLAGS): Remove -static-libgcc.
21924
21925 2010-04-24 Christian Franke <franke@computer.org>
21926
21927 * configure.ac: Do not CHECK_BSS_START_SYMBOL
21928 and CHECK_END_SYMBOL if grub-emu is built.
21929 Unset TARGET_OBJ2ELF if grub-emu is built
21930 without module support.
21931
21932 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
21933
21934 Nilfs2 support.
21935
21936 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
21937 (grub_fstest_SOURCES): Likewise.
21938 (pkglib_MODULES): Add nilfs2.mod.
21939 (nilfs2_mod_SOURCES): New variable.
21940 (nilfs2_mod_CFLAGS): Likewise.
21941 (nilfs2_mod_LDFLAGS): Likewise.
21942 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21943 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21944 * fs/nilfs2.c: New file.
21945
21946 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
21947
21948 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
21949 is not supported.
21950
21951 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
21952
21953 Add grub-mkconfig support for NetBSD.
21954
21955 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
21956 * util/grub-mkconfig.in: export new NetBSD specific variables.
21957 * po/POTFILES-shell: added 10_netbsd.in.
21958 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
21959
21960 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
21961
21962 Fix emu build with grub-emu-pci and grub-emu-modules.
21963
21964 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
21965 functions.
21966 * include/grub/libpciaccess.h: New file.
21967 * conf/any-emu.rmk: Update kernel headers for emu build.
21968
21969 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21970
21971 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
21972
21973 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21974
21975 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
21976
21977 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21978
21979 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
21980 Retrieve chosen/bootpath if bootpath isn't hardcoded.
21981 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
21982 util/ieee1275/ofpath.c.
21983 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
21984 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
21985 * include/grub/sparc64/ieee1275/boot.h
21986 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
21987 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
21988 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
21989 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
21990 const char *.
21991 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
21992 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
21993 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
21994 install.
21995
21996 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21997
21998 * util/grub-mkconfig.in: Corrected two == equality tests.
21999 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
22000 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
22001 expect a number appended to it.
22002 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
22003 expects a number appended to it.
22004
22005 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
22006
22007 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
22008
22009 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
22010
22011 * util/hostdisk.c (make_device_name): Change to new partition naming.
22012
22013 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
22014
22015 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
22016
22017 2010-04-17 Christian Franke <franke@computer.org>
22018
22019 * Makefile.in: Add missing localedir setting.
22020
22021 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
22022
22023 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
22024 mistake in r2156. Noticed by Anthony Fok.
22025
22026 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
22027 @localedir@.
22028 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
22029
22030 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
22031
22032 Fix a spurious, uninitialized variable warning.
22033
22034 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
22035 Initialize variable, shdr.
22036 (grub_freebsd_load_elfmodule): Likewise.
22037 (grub_freebsd_load_elf_meta): Likewise.
22038
22039 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
22040
22041 Fix for escaped dollar in double quoted strings.
22042
22043 * script/yylex.l: Updated flex rules.
22044 * conf/tests.rmk: Rule for new testcase.
22045 * tests/grub_script_dollar.in: New testcase.
22046
22047 2010-04-13 Carles Pina i Estany <carles@pina.cat>
22048 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
22049
22050 Enclose all translated strings in grub.cfg in single quotes, and
22051 escape them appropriately (Ubuntu bug #552921).
22052
22053 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
22054 * util/grub.d/10_hurd.in: Use it.
22055 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
22056 * util/grub.d/10_linux.in (linux_entry): Likewise.
22057
22058 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22059
22060 Fix cygwin compilation.
22061
22062 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
22063 * include/grub/misc.h (__register_frame_info)
22064 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
22065 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
22066 * kern/misc.c (__register_frame_info)
22067 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
22068 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
22069
22070 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22071
22072 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
22073
22074 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22075
22076 Unify libgcc processing.
22077
22078 * Makefile.in (kernel_img_LDFLAGS): New variable.
22079 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
22080 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
22081 overwriting.
22082 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
22083 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
22084 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
22085 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
22086 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
22087 overwriting. Remove -lgcc and -static-libgcc
22088 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
22089 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
22090 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
22091 (kernel_img_LDFLAGS): Append instead of overwriting.
22092 Remove -lgcc and -static-libgcc
22093 * conf/sparc64-ieee1275.rmk: Likewise.
22094 * include/grub/powerpc/libgcc.h: Move to ...
22095 * include/grub/libgcc.h: .. this.
22096 * include/grub/libgcc.h: Don't export most of the function on x86.
22097 (__bswapsi2): New export.
22098 (__bswapdi2): Likewise.
22099 * include/grub/mips/libgcc.h: Removed.
22100 * include/grub/sparc64/libgcc.h: Likewise.
22101
22102 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22103
22104 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
22105 disk_info_msg (conflicts with gettexting into languages with cases).
22106
22107 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
22108
22109 Add grub-probe support for NetBSD.
22110
22111 * util/getroot.c (find_root_device): Convert block device to
22112 character device on NetBSD.
22113 * util/probe.c (probe): Require character device on NetBSD.
22114 * util/hostdisk.c: NetBSD specific headers.
22115 (configure_device_driver): new function to tune device driver
22116 parameters (currently only for NetBSD floppy driver).
22117 (grub_util_biosdisk_open): NetBSD specific code (get disk size
22118 via disklabel ioctl).
22119 (open_device): call configure_device_driver on NetBSD.
22120 (convert_system_partition_to_system_disk): NetBSD specific code.
22121 (device_is_wholedisk): Likewise.
22122 (grub_util_biosdisk_get_grub_dev): Likewise.
22123 (make_device_name): Fixed a typo in bsd_part_str.
22124 * configure.ac: check for opendisk() and getrawpartition() on
22125 NetBSD and set LIBUTIL.
22126 * Makefile.in: add LIBUTIL to LIBS.
22127
22128 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22129
22130 Documentation fix.
22131
22132 * util/grub-script-check.c: Better help message.
22133
22134 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22135
22136 Fix FreeBSD build.
22137
22138 * configure.ac: Flex version check.
22139 * conf/common.rmk: Add -Wno-error to sh.mod.
22140 * script/yylex.l: Remove all #pragma.
22141
22142 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22143
22144 * include/grub/util/misc.h (canonicalise_file_name): Add missing
22145 prototype.
22146 Reported by: Seth Goldberg.
22147
22148 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22149
22150 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
22151 Rename "module" to "module2".
22152 Reported by: Seth Goldberg.
22153
22154 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22155
22156 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
22157 EXPORT_FUNC.
22158 Reported by: Seth Goldberg.
22159
22160 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22161
22162 * lib/posix_wrap/locale.h: Add missing file.
22163 Reported by: Seth Goldberg.
22164
22165 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22166
22167 grub-emu module load support.
22168
22169 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
22170 NO_DYNAMIC_MODULES switched to this.
22171 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
22172 (CFLAGS): Likewise.
22173 * conf/any-emu.rmk: Generate symlist.
22174 (kernel_img_HEADERS): Add util/datetime.h.
22175 (kernel_img_HEADERS) [sdl]: Add sdl.h.
22176 (kernel_img_HEADERS) [libusb]: Add libusb.h.
22177 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
22178 kern/$(target_cpu)/cache.S.
22179 * configure.ac (grub-emu-modules): New option.
22180 * genmk.rb: Handle multiple source lists.
22181 * include/grub/sdl.h: New file.
22182 * include/grub/libusb.h: Likewise.
22183 * util/grub-emu.c (main): Hanle (host) root.
22184 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
22185 GRUB_ERR_UNKNOWN_DEVICE.
22186 * util/misc.c: Move mm functions to ...
22187 * util/mm.c: ... here. All users updated.
22188
22189 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22190
22191 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
22192 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
22193 missing files.
22194 (maintainer-clean): Remove libgcrypt-grub.
22195
22196 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22197
22198 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
22199
22200 2010-04-09 EFI Coder <eficoder@hotmail.com>
22201
22202 * normal/menu_text.c (print_message): Clean up the message and show
22203 the Fn information when on EFI
22204 * term/efi/console.c (grub_console_checkkey): Add F4 support.
22205
22206 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22207
22208 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
22209 All users updated.
22210 * normal/crypto.c (read_crypto_list): Likewise.
22211 * normal/dyncmd.c (read_command_list): Likewise.
22212 * normal/term.c (read_terminal_list): Likewise.
22213 * normal/main.c (read_lists): Use explicit prefix.
22214 (read_lists_hook): Use read_lists.
22215 (grub_normal_execute): Likewise.
22216
22217 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22218
22219 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
22220 Reported by: Thomas Schmitt.
22221 Add -no-emul-boot to grub-mkisofs parameters.
22222
22223 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22224
22225 * font/font.c: Indented.
22226
22227 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22228
22229 Elif support to GRUB script (by Deepak Vankadaru).
22230
22231 * tests/grub_script_if.in: New testcase.
22232 * conf/tests.rmk: Rule for new testcase.
22233 * script/parser.y: Grammar rules for elif.
22234
22235 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22236
22237 While and until loops support to GRUB script.
22238
22239 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
22240 (grub_script_create_cmdwhile): New function prototype.
22241 (grub_script_execute_cmdwhile): New function prototype.
22242 * script/execute.c (grub_script_execute_cmdwhile): New function.
22243 * script/parser.y (command): New commands.
22244 (whilecmd): New grammar rule.
22245 (untilcmd): New grammar rule.
22246 * script/script.c (grub_script_create_cmdwhile): New function.
22247 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
22248 function.
22249
22250 * tests/grub_script_while1.in: New testcase.
22251 * conf/tests.rmk: Rule for new testcase.
22252
22253 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22254
22255 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
22256 as *.jpg.
22257
22258 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
22259
22260 GRUB_BACKGROUND support.
22261
22262 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
22263 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
22264
22265 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22266
22267 Load fonts and modules for gfxmenu in grub-mkconfig.
22268 Idea by: Mario Vazquez
22269
22270 * util/grub.d/00_header.in: Load pf2 and image modules.
22271
22272 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22273
22274 grub-mkconfig multiple terminal support.
22275
22276 * util/grub-mkconfig.in: Handle multiple terminals correctly.
22277 * util/grub.d/00_header.in: Likewise.
22278
22279 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22280
22281 * Makefile.in: Specify files explicitly instead of using $< and $@ since
22282 we use cd $(srcdir).
22283
22284 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
22285
22286 * util/grub.d/10_linux.in: Only use the first word of
22287 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
22288 spaces in GRUB_DISTRIBUTOR.
22289 * util/grub.d/10_kfreebsd.in: Likewise.
22290 * util/grub.d/10_hurd.in: Likewise.
22291
22292 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
22293
22294 Fix unit testing framework for Qemu 0.12.
22295
22296 * tests/util/grub-shell.in: Remove -serial stdio option.
22297
22298 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
22299
22300 POSIX header file wrappers.
22301
22302 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
22303 equivalents.
22304 * lib/posix_wrap/ctype.h: Likewise.
22305 * lib/posix_wrap/errno.h: Likewise.
22306 * lib/posix_wrap/langinfo.h: Likewise.
22307 * lib/posix_wrap/limits.h: Likewise.
22308 * lib/posix_wrap/localcharset.h: Likewise.
22309 * lib/posix_wrap/stdint.h: Likewise.
22310 * lib/posix_wrap/stdio.h: Likewise.
22311 * lib/posix_wrap/stdlib.h: Likewise.
22312 * lib/posix_wrap/string.h: Likewise.
22313 * lib/posix_wrap/sys/types.h: Likewise.
22314 * lib/posix_wrap/unistd.h: Likewise.
22315 * lib/posix_wrap/wchar.h: Likewise.
22316 * lib/posix_wrap/wctype.h: Likewise.
22317 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
22318 (grub_script.yy.h): Likewise.
22319 * script/yylex.l: Remove POSIX emulation #defines.
22320 * Makefile.in (POSIX_CFLAGS): New variable.
22321 (GNULIB_UTIL_CFLAGS): Likewise.
22322
22323 Regexp support.
22324
22325 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
22326 (regexp_mod_SOURCES): New variable.
22327 (regexp_mod_CFLAGS): Likewise.
22328 (regexp_mod_LDFLAGS): Likewise.
22329 * commands/regexp.c: New file.
22330 * gnulib/regcomp.c: New file. Imported from gnulib.
22331 * gnulib/regex.c: Likewise.
22332 * gnulib/regex_internal.c: Likewise.
22333 * gnulib/regex_internal.h: Likewise.
22334 * gnulib/regexec.c: Likewise.
22335 * gnulib/regex.h: Likewise.
22336
22337 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22338
22339 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
22340 unsupported video mode types.
22341
22342 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22343
22344 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
22345
22346 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22347
22348 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
22349 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
22350
22351 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
22352
22353 Remove unused grub_vga_get_font.
22354
22355 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
22356 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
22357
22358 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22359
22360 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
22361 * include/grub/misc.h: Likewise.
22362
22363 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22364
22365 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
22366 for which failure is fatal.
22367
22368 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22369
22370 * util/grub-install.in: Use mkdir -p to create grub directory.
22371 * util/i386/efi/grub-install.in: Likewise.
22372 * util/ieee1275/grub-install.in: Likewise.
22373
22374 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22375
22376 * Makefile.in (LEX): new variable.
22377
22378 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22379
22380 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
22381 `=' and added double quotes on operands of this equality test.
22382
22383 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22384
22385 * Makefile.in (uninstall): Remove a leftover debug echo.
22386 Reported by: Grégoire Sutre
22387
22388 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22389
22390 MIPS multiboot2 support.
22391
22392 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
22393 (multiboot2_mod_SOURCES): New variable.
22394 (multiboot2_mod_CFLAGS): Likewise.
22395 (multiboot2_mod_LDFLAGS): Likewise.
22396 (multiboot2_mod_ASFLAGS): Likewise.
22397 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
22398 definition.
22399 (MULTIBOOT_ENTRY_REGISTER): Likewise.
22400 (MULTIBOOT_MBI_REGISTER): Likewise.
22401 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
22402 (MULTIBOOT_ELF32_MACHINE): Likewise.
22403 (MULTIBOOT_ELF64_MACHINE): Likewise.
22404 * include/grub/mips/multiboot.h: New file.
22405 * include/grub/video.h (grub_video_driver_id): New type
22406 GRUB_VIDEO_DRIVER_SM712.
22407 (grub_video_get_info_and_fini): Export.
22408 (grub_video_get_palette): Likewise.
22409 (grub_video_get_driver_id): Likewise.
22410 * include/multiboot2.h: Resynced with spec.
22411 * loader/i386/multiboot.c: Moved from here ...
22412 * loader/multiboot.c: ... here. All users updated.
22413 (grub_multiboot_boot): Use platform-specific macros.
22414 * loader/i386/multiboot_elfxx.c: Moved from here ...
22415 * loader/multiboot_elfxx.c: ... here. All users updated.
22416 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
22417 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
22418 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
22419
22420 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
22421
22422 Import gnulib argp module.
22423
22424 * gnulib/argp-ba.c: New file.
22425 * gnulib/argp-eexst.c: Likewise.
22426 * gnulib/argp-fmtstream.c: Likewise.
22427 * gnulib/argp-fmtstream.h: Likewise.
22428 * gnulib/argp-fs-xinl.c: Likewise.
22429 * gnulib/argp-help.c: Likewise.
22430 * gnulib/argp-namefrob.h: Likewise.
22431 * gnulib/argp-parse.c: Likewise.
22432 * gnulib/argp-pin.c: Likewise.
22433 * gnulib/argp-pv.c: Likewise.
22434 * gnulib/argp-pvh.c: Likewise.
22435 * gnulib/argp-version-etc.c: Likewise.
22436 * gnulib/argp-version-etc.h: Likewise.
22437 * gnulib/argp-xinl.c: Likewise.
22438 * gnulib/argp.h: Likewise.
22439
22440 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22441
22442 * kern/device.c (grub_device_iterate): Clear errors after failed
22443 opening device.
22444
22445 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22446
22447 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
22448 returned by firmware.
22449
22450 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
22451
22452 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
22453 compilation on coreboot and qemu
22454
22455 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22456
22457 * include/multiboot2.h: Resync with spec.
22458
22459 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22460
22461 Multiboot2 tag support
22462
22463 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
22464 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
22465 Remove loader/multiboot_loader.c.
22466 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
22467 (grub_multiboot2_real_boot): Likewise.
22468 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
22469 (grub_get_multiboot_mmap_count): New proto.
22470 (grub_fill_multiboot_mmap): Likewise.
22471 (grub_multiboot_set_video_mode): Likewise.
22472 (grub_multiboot_set_console): Likewise.
22473 (grub_multiboot_load): Likewise.
22474 (grub_multiboot_load_elf): Likewise.
22475 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
22476 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
22477 * include/multiboot.h: Resynced with specification.
22478 * include/multiboot2.h: Resynced with specification.
22479 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
22480 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
22481 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
22482 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
22483 users updated.
22484 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
22485 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
22486 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
22487 Removed.
22488 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
22489 Moved from here...
22490 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
22491 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22492 Moved from here...
22493 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
22494 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
22495 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
22496 All users updated.
22497 * loader/i386/multiboot_mbi2.c: New file.
22498
22499 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22500
22501 Resync with gnulib.
22502
22503 * Makefile.in (GNULIB_CFLAGS): New variable.
22504 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
22505 (grub_script_check_CFLAGS): New variable.
22506 * gnulib/alloca.h: Resync with gnulib.
22507 * gnulib/error.c: Likewise.
22508 * gnulib/error.h: Likewise.
22509 * gnulib/fnmatch.c: Likewise.
22510 * gnulib/fnmatch_loop.c: Likewise.
22511 * gnulib/getdelim.c: Likewise.
22512 * gnulib/getline.c: Likewise.
22513 * gnulib/getopt.c: Likewise.
22514 * gnulib/getopt1.c: Likewise.
22515 * gnulib/getopt_int.h: Likewise.
22516 * gnulib/gettext.h: Likewise.
22517 * gnulib/progname.c: Likewise.
22518 * gnulib/progname.h: Likewise.
22519
22520 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
22521
22522 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
22523 which is the case with --disabled-nls.
22524
22525 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
22526 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
22527 * util/misc.c: Likewise.
22528 * util/mkisofs/mkisofs.c: Likewise.
22529 * util/mkisofs/mkisofs.h: Likewise.
22530
22531 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22532
22533 Simplify Apple CC support.
22534
22535 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
22536 Add 0 byte at the end not to have a symbol with empty target.
22537 * mmap/i386/pc/mmap_helper.S: Likewise.
22538 * genmk.rb: Ignore errors 2030 and 2050.
22539 * kern/i386/pc/startup.S: Use LOCAL when possible.
22540
22541 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
22542
22543 Testcase and the fix for final semicolon on cmdline.
22544
22545 * tests/grub_script_final_semicolon.in: New testcase.
22546 * conf/tests.rmk: Rules for the new testcase.
22547 * script/parser.y: Grammar fix.
22548
22549 2010-03-26 BVK Chaitanya <bvk@localhost>
22550
22551 Blank lines testcase for GRUB script.
22552
22553 * tests/grub_script_blanklines.in: New testcase.
22554 * conf/tests.rmk: Rules for the new testcase.
22555
22556 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22557
22558 Don't use __FILE__.
22559
22560 * genmk.rb: Add -DGRUB_FILE to all C targets.
22561 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
22562 * include/grub/list.h: Likewise.
22563 * include/grub/misc.h: Likewise.
22564 * include/grub/mm.h: Likewise.
22565 * include/grub/test.h: Likewise.
22566 * kern/mm.c: Likewise.
22567 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
22568
22569 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22570
22571 Sunpc partitions support.
22572
22573 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
22574 (grub_fstest_SOURCES): Likewise.
22575 (pkglib_MODULES): Add part_sunpc.mod.
22576 (part_sunpc_mod_SOURCES): New variable.
22577 (part_sunpc_mod_CFLAGS): Likewise.
22578 (part_sunpc_mod_LDFLAGS): Likewise.
22579 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
22580 * partmap/sunpc.c: New file.
22581
22582 2010-03-26 BVK Chaitanya <bvk@localhost>
22583
22584 For loop support to GRUB script.
22585
22586 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
22587 (grub_script_create_cmdfor): New function prototype.
22588 (grub_script_execute_cmdfor): New function prototype.
22589 * script/execute.c (grub_script_execute_cmdfor): New function.
22590 * script/parser.y (command): New for command.
22591 (forcmd): New grammar rule.
22592 * script/script.c (grub_script_create_cmdfor): New function.
22593 * util/grub-script-check.c (grub_script_execute_cmdfor): New
22594 function.
22595 * tests/grub_script_for1.in: New testcase.
22596 * conf/tests.rmk: Rules for new testcase.
22597
22598 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22599
22600 Nested partitions
22601
22602 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
22603 'partition' is NULL, grub_partition_get_start already does that.
22604 * commands/loadenv.c (check_blocklists): Likewise.
22605 (write_blocklists): Likewise.
22606 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
22607 (grub_fstest_SOURCES): Likewise.
22608 (pkglib_MODULES): Add part_bsd.mod.
22609 (part_bsd_mod_SOURCES): New variable.
22610 (part_bsd_mod_CFLAGS): Likewise.
22611 (part_bsd_mod_LDFLAGS): Likewise.
22612 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
22613 (grub_emu_SOURCES): Likewise.
22614 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22615 * include/grub/bsdlabel.h: New file.
22616 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
22617 'get_name'.
22618 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
22619 (grub_partition_map_list): New variable.
22620 (grub_partition_map_register): Inline.
22621 (grub_partition_map_unregister): Likewise.
22622 (FOR_PARTITION_MAPS): New macro.
22623 (grub_partition_map_iterate): Removed.
22624 (grub_partition_get_start): Handle nested partitions.
22625 * include/grub/msdos_partition.h: Remove bsd-related entries.
22626 (grub_pc_partition): Remove.
22627 * kern/disk.c (grub_disk_close): Free partition data.
22628 (grub_disk_adjust_range): Handle nested partitions.
22629 * kern/partition.c (grub_partition_map_probe): New function.
22630 (grub_partition_probe): Parse name to number, handle subpartitions.
22631 (get_partmap): New function.
22632 (grub_partition_iterate): Handle subpartitions.
22633 (grub_partition_get_name): Likewise.
22634 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
22635 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
22636 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
22637 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
22638 Set 'number'.
22639 (acorn_partition_map_probe): Remove.
22640 (acorn_partition_map_get_name): Likewise.
22641 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
22642 Set 'number'.
22643 Set 'index' to 0 since there can be only one partition entry per sector.
22644 (amiga_partition_map_probe): Remove.
22645 (amiga_partition_map_get_name): Likewise.
22646 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
22647 Set 'number'.
22648 Set 'offset' and 'index' to real positions of partitions.
22649 (apple_partition_map_probe): Remove.
22650 (apple_partition_map_get_name): Likewise.
22651 * partmap/bsdlabel.c: New file.
22652 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
22653 Set 'number'.
22654 Allocate 'data' so it can be correctly freed.
22655 Set 'index' to offset inside sector.
22656 (gpt_partition_map_probe): Remove.
22657 (gpt_partition_map_get_name): Likewise.
22658 * partmap/msdos.c (grub_partition_parse): Remove.
22659 (pc_partition_map_iterate): Don't force raw access.
22660 Set 'number'.
22661 Make 'ext_offset' a local variable.
22662 (pc_partition_map_probe): Remove.
22663 (pc_partition_map_get_name): Remove.
22664 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
22665 Set 'number'.
22666 (sun_partition_map_probe): Remove.
22667 (sun_partition_map_get_name): Likewise.
22668 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
22669 (grub_pcpart_type): Likewise.
22670 * util/hostdisk.c (open_device): Handle new numbering scheme.
22671 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
22672 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
22673 * util/grub-probe.c (probe_partmap): Handle nested paritions.
22674 * util/grub-install.in: Insert all subpartition modules.
22675 * util/ieee1275/grub-install.in: Likewise.
22676
22677 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
22678
22679 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
22680 grammar.
22681
22682 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
22683
22684 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
22685
22686 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
22687
22688 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
22689 match where 'make install' puts them.
22690 * util/i386/efi/grub-install.in: Likewise.
22691
22692 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
22693
22694 * .bzrignore: Add gentrigtables, grub-script-check,
22695 grub_script_check_init.c, grub_script_check_init.h, and
22696 trigtables.c.
22697
22698 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
22699
22700 * kern/parser.c: Indented.
22701
22702 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22703
22704 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
22705
22706 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22707
22708 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
22709 alpha_mask_size == 0 case.
22710
22711 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
22712
22713 GRUB shell lexer and parser improvements.
22714
22715 * conf/any-emu.rmk: Build rule updates.
22716 * conf/common.rmk: Likewise.
22717 * conf/i386-coreboot.rmk: Likewise.
22718 * conf/i386-efi.rmk: Likewise.
22719 * conf/i386-ieee1275.rmk: Likewise.
22720 * conf/i386-pc.rmk: Likewise.
22721 * conf/powerpc-ieee1275.rmk: Likewise.
22722 * conf/x86_64-efi.rmk: Likewise.
22723
22724 * configure.ac: Configure check for flex.
22725
22726 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
22727 types.
22728 (grub_lexer_param): Struct member updates.
22729 (grub_parser_param): Likewise.
22730 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
22731 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
22732 (grub_script_lexer_init): Prototype update.
22733 (grub_script_lexer_record_start): Likewise.
22734 (grub_script_lexer_record_stop): Likewise.
22735 (grub_script_lexer_yywrap): New function prototype.
22736 (grub_script_lexer_fini): Likewise.
22737 (grub_script_execute_argument_to_string): Removed by...
22738 (grub_script_execute_argument_to_argv): ...better version.
22739
22740 * script/execute.c (ROUND_UPTO): New macro.
22741 (grub_script_execute_cmdline): Out of memory fixes.
22742 (grub_script_execute_menuentry): Likewise.
22743 (grub_script_execute_argument_to_string): Removed. Update all
22744 users by...
22745 (grub_script_execute_argument_to_argv): ...better version.
22746 * script/function.c (grub_script_function_create): Use
22747 grub_script_execute_argument_to_argv instead of
22748 grub_script_execute_argument_to_string.
22749
22750 * script/lexer.c (check_varstate): Removed.
22751 (check_textstate): Removed.
22752 (grub_script_lexer_record_start): Likewise.
22753 (grub_script_lexer_record_stop): Likewise.
22754 (recordchar): Replaced with...
22755 (grub_script_lexer_record): ...new function.
22756 (nextchar): Removed.
22757 (grub_script_lexer_init): Rewritten.
22758 (grub_script_yylex): Rewritten.
22759 (append_newline): New function.
22760 (grub_script_lexer_yywrap): New function.
22761 (grub_script_lexer_fini): New function.
22762 (grub_script_yyerror): Sets error flag.
22763
22764 * script/yylex.l: New file.
22765 (grub_lexer_yyfree): Wrapper for flex yyffre.
22766 (grub_lexer_yyalloc): Likewise.
22767 (grub_lexer_yyrealloc): Likewise.
22768 * script/parser.y: Refactored.
22769
22770 * script/script.c (grub_script_arg_add): Out of memory fixes.
22771 (grub_script_add_arglist): Likewise.
22772 (grub_script_create_cmdline): Likewise.
22773 (grub_script_create_cmdmenu): Likewise.
22774 (grub_script_add_cmd): Likewise.
22775 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
22776 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
22777 unnecessary code.
22778
22779 * tests/grub_script_echo1.in: New testcase.
22780 * tests/grub_script_vars1.in: New testcase.
22781 * tests/grub_script_echo_keywords.in: New testcase.
22782
22783 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22784
22785 Remove some redundancy in build system.
22786
22787 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
22788 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
22789 (TARGET_LDFLAGS): Add -nostdlib.
22790 (TARGET_IMG_LDFLAGS): Likewise.
22791 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
22792 anything since mmap isn't available.
22793 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
22794 Add util/time.c.
22795 (pkglib_MODULES): Remove reboot.mod.
22796 (reboot_mod_SOURCES): Removed.
22797 (reboot_mod_CFLAGS): Likewise.
22798 (reboot_mod_LDFLAGS): Likewise.
22799 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
22800 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
22801 (DEFSYMFILES): Add kernel_syms.lst.
22802 (kernel_img_HEADERS): Add common headers.
22803 (symlist.c): New target.
22804 (kernel_syms.lst): Likewise.
22805 (pkglib_MODULES): Add memdisk.mod.
22806 (memdisk_mod_SOURCES): New variable.
22807 (memdisk_mod_CFLAGS): Likewise.
22808 (memdisk_mod_LDFLAGS): Likewise.
22809 (pkglib_MODULES): Add reboot.mod.
22810 (reboot_mod_SOURCES): New variable.
22811 (reboot_mod_CFLAGS): Likewise.
22812 (reboot_mod_LDFLAGS): Likewise.
22813 (pkglib_MODULES): Add date.mod.
22814 (date_mod_SOURCES): New variable.
22815 (date_mod_CFLAGS): Likewise.
22816 (date_mod_LDFLAGS): Likewise.
22817 (pkglib_MODULES): Add datehook.mod.
22818 (datehook_mod_SOURCES): New variable.
22819 (datehook_mod_CFLAGS): Likewise.
22820 (datehook_mod_LDFLAGS): Likewise.
22821 (pkglib_MODULES): Add lsmmap.mod.
22822 (lsmmap_mod_SOURCES): New variable.
22823 (lsmmap_mod_CFLAGS): Likewise.
22824 (lsmmap_mod_LDFLAGS): Likewise.
22825 (pkglib_MODULES): Add boot.mod.
22826 (boot_mod_SOURCES): New variable.
22827 (boot_mod_CFLAGS): Likewise.
22828 (boot_mod_LDFLAGS): Likewise.
22829 * conf/i386-coreboot.rmk: Removed redundant parts.
22830 * conf/i386-ieee1275.rmk: Likewise.
22831 * conf/i386-pc.rmk: Likewise.
22832 * conf/mips-yeeloong.rmk: Likewise.
22833 * conf/mips.rmk: Likewise.
22834 * conf/powerpc-ieee1275.rmk: Likewise.
22835 * conf/sparc64-ieee1275.rmk: Likewise.
22836 * conf/x86_64-efi.rmk: Likewise.
22837 * conf/i386-coreboot.rmk: Moved qemu parts ..
22838 * conf/i386-qemu.rmk: ... here
22839 * conf/i386-efi.rmk: Moved common parts to...
22840 * conf/x86-efi.rmk: ... here.
22841 * conf/i386.rmk: Added modules common to all x86 variants.
22842 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
22843 * disk/memdisk.c: Remove grub/machine/kernel.h.
22844 * gensymlist.sh.in: Include symbol.h.
22845 * hook/datehook.c: Correct module name.
22846 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
22847 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
22848 * include/grub/i386/efi/serial.h: New file.
22849 * include/grub/x86_64/efi/serial.h: Likewise.
22850 * util/time.c: Likewise.
22851 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
22852
22853 2010-03-14 Colin King <colin.king@ubuntu.com>
22854 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22855
22856 Shrink the pre-partition-table part of boot.img by eight bytes.
22857
22858 * boot/i386/pc/boot.S (ERR): New macro.
22859 (chs_mode): Use ERR.
22860 (geometry_error): Likewise.
22861 (hd_probe_error): Remove. This is only used once, so we wrwite
22862 it inline instead.
22863 (read_error): Instead of printing read_error_string, just set up
22864 %si and fall through to ...
22865 (error_message): ... this new function, also used by ERR.
22866
22867 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22868
22869 Speed up consecutive hostdisk operations on the same device.
22870
22871 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
22872 (grub_util_biosdisk_open): Initialise disk->data.
22873 (struct linux_partition_cache): New structure.
22874 (linux_find_partition): Cache partition start positions; these are
22875 expensive to compute on every read and write.
22876 (open_device): Cache open file descriptor in disk->data, so that we
22877 don't have to reopen it and flush the buffer cache for consecutive
22878 operations on the same device.
22879 (grub_util_biosdisk_close): New function.
22880 (grub_util_biosdisk_dev): Set `close' member.
22881
22882 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
22883 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
22884 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22885 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
22886 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
22887
22888 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22889
22890 Compile parts of grub-emu as modules.
22891
22892 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
22893 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
22894 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
22895 (all-local): Add $(GRUB_EMU).
22896 (install-local): Install $(GRUB_EMU).
22897 (uninstall): Uninstall $(GRUB_EMU).
22898 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
22899 * kern/dl.c: Likewise.
22900 * commands/sleep.c: Not include machine/time.h.
22901 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
22902 (COMMON_CFLAGS): Likewise.
22903 (sbin_UTILITIES): Remove grub-emu.
22904 (grub_emu_SOURCES): Removed.
22905 (kernel_img_RELOCATABLE): New variable.
22906 (pkglib_PROGRAMS): Add kernel.img.
22907 (kernel_img_SOURCES): New variable
22908 (kernel_img_CFLAGS): Likewise.
22909 (kernel_img_LDFLAGS): Likewise.
22910 (TARGET_NO_STRIP): Likewise.
22911 (TARGET_NO_DYNAMIC_MODULES): Likewise.
22912 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
22913 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
22914 (grub-emu): New target.
22915 (GRUB_EMU): New variable.
22916 * configure.ac: Whitelist -emu as possible x86_64 architecture.
22917 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
22918 * loader/xnu.c: Likewise.
22919 * include/grub/pci.h: Likewise.
22920 * genemuinit.sh: New file.
22921 * genemuinitheader.sh: Likewise.
22922 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
22923 Support TARGET_NO_DYNAMIC_MODULES.
22924 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
22925 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
22926 * disk/loopback.c: Likewise.
22927 * font/font_cmd.c: Likewise.
22928 * partmap/acorn.c: Likewise.
22929 * partmap/amiga.c: Likewise.
22930 * partmap/apple.c: Likewise.
22931 * partmap/gpt.c: Likewise.
22932 * partmap/msdos.c: Likewise.
22933 * partmap/sun.c: Likewise.
22934 * parttool/msdospart.c: Likewise.
22935 * term/gfxterm.c: Likewise.
22936 * video/bitmap.c: Likewise.
22937 * video/readers/jpeg.c: Likewise.
22938 * video/readers/png.c: Likewise.
22939 * video/readers/tga.c: Likewise.
22940 * video/video.c: Likewise.
22941 * util/grub-emu.c (read_command_list): Removed.
22942 (main): Don't call util_init_nls.
22943 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
22944 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
22945
22946 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22947
22948 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
22949 date.mod, datehook.mod.
22950 (datetime_mod_SOURCES): New variable.
22951 (datetime_mod_CFLAGS): Likewise.
22952 (datetime_mod_LDFLAGS): Likewise.
22953 (date_mod_SOURCES): Likewise.
22954 (date_mod_CFLAGS): Likewise.
22955 (date_mod_LDFLAGS): Likewise.
22956 (datehook_mod_SOURCES): Likewise.
22957 (datehook_mod_CFLAGS): Likewise.
22958 (datehook_mod_LDFLAGS): Likewise.
22959 * conf/sparc64-ieee1275.rmk: Likewise.
22960 * lib/ieee1275/datetime.c: New file.
22961
22962 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22963
22964 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
22965 (ieee1275_fb_mod_SOURCES): New variable.
22966 (ieee1275_fb_mod_CFLAGS): Likewise.
22967 (ieee1275_fb_mod_LDFLAGS): Likewise.
22968 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
22969 New proto.
22970 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
22971 (HEAP_MAX_ADDR): Likewise.
22972 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
22973 type.
22974 Correct stop condition.
22975 (grub_ieee1275_devices_iterate): New function.
22976 * video/ieee1275.c: New file.
22977
22978 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22979
22980 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
22981
22982 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
22983 as scratch.
22984 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
22985 SCRATCH_PAD_DISKBOOT as scratch.
22986 (bootit): Pass Openfirmware pointer in %o4.
22987 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
22988 of 0x200000.
22989 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
22990 with util/grub-mkrawimage.c.
22991 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
22992 * include/grub/aout.h (AOUT_MID_SUN): New definition.
22993 (grub_aout_get_type) [GRUB_UTIL]: Removed.
22994 (grub_aout_load) [GRUB_UTIL]: Likewise.
22995 * include/grub/kernel.h (grub_modules_get_end): New proto.
22996 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
22997 (SCRATCH_PAD_BOOT): New definition.
22998 (SCRATCH_PAD_DISKBOOT): Likewise.
22999 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
23000 * include/grub/sparc64/ieee1275/ieee1275.h
23001 (grub_ieee1275_original_stack): New variable
23002 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
23003 New definition
23004 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
23005 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
23006 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
23007 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
23008 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
23009 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
23010 (grub_platform_image_format_t): New type.
23011 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
23012 * kern/main.c (grub_modules_get_end)
23013 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
23014 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
23015 (codestart): Switch stacks.
23016 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
23017 variable.
23018 (grub_heap_init): Use grub_modules_get_end.
23019 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
23020 stack.
23021 * util/grub-mkrawimage.c (generate_image): Support sparc64.
23022 (main): Likewise.
23023 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
23024
23025 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
23026
23027 * util/grub-mkrescue.in: Base ISO UUID on UTC.
23028
23029 2010-03-08 Matt Kraai <kraai@ftbfs.org>
23030
23031 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
23032 bug #559005).
23033
23034 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
23035
23036 * genmoddep.awk: Output all missing symbols and not only first.
23037
23038 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23039
23040 * NEWS: Put the date of 1.98 release.
23041
23042 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23043
23044 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
23045 ft2build.h.
23046
23047 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23048
23049 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
23050 completition in the middle of string.
23051
23052 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23053
23054 * util/grub-mkrescue.in: Use mktemp with explicit template.
23055
23056 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23057
23058 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
23059
23060 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23061
23062 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
23063 right pointer.
23064
23065 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
23066
23067 Fix FreeBSD compilation.
23068
23069 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
23070 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
23071
23072 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
23073
23074 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
23075
23076 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23077
23078 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
23079
23080 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23081
23082 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
23083
23084 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
23085
23086 Support relative image path in theme file.
23087
23088 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
23089 (image_set_property): Handle theme_dir and relative path.
23090
23091 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23092
23093 * configure.ac: Alias amd64 to x86_64.
23094
23095 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23096
23097 * NEWS: mention multiboot on EFI.
23098
23099 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23100
23101 * kern/main.c (grub_load_modules): Handle errors from init functions of
23102 embeded modules.
23103
23104 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23105
23106 * normal/autofs.c (autoload_fs_module): Handle errors.
23107
23108 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23109
23110 Disable linux.mod on qemu-mips since it's not functional and leads
23111 to compilation failure.
23112
23113 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
23114 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
23115 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
23116 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
23117 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
23118 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
23119 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
23120 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
23121 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
23122 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
23123 Reported by: BVK Chaitanya
23124
23125 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
23126
23127 * INSTALL: Add gettext as a dependency and add qemu to a new section
23128 "Prerequisites for make-check".
23129
23130 2010-03-04 Christian Franke <franke@computer.org>
23131
23132 * util/grub-pe2elf.c: Add missing include "progname.h".
23133
23134 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23135
23136 * normal/crypto.c (read_crypto_list): Fix a typo.
23137 Reported by: Seth Goldberg.
23138
23139 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23140
23141 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
23142 Reported by: Seth Goldberg.
23143
23144 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23145
23146 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
23147 ascii.bitmaps.
23148
23149 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23150
23151 * genmk.rb: Remove terminal*.lst in make clean.
23152 Reported by: Seth Goldberg.
23153
23154 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23155
23156 * util/i386/efi/grub-install.in: Copy gettext files.
23157
23158 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23159
23160 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
23161
23162 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23163
23164 Wait for user entry basing on presence of output rather than on errors.
23165
23166 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
23167 (grub_install_newline_hook): Likewise.
23168 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
23169 * normal/menu.c (show_menu): Check line_counter to determine presence
23170 of output.
23171 * normal/term.c (grub_normal_line_counter): New variable.
23172 (grub_normal_get_line_counter): New function.
23173 (grub_install_newline_hook): Likewise.
23174
23175 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23176
23177 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
23178
23179 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23180
23181 * configure.ac: Update version to 1.98.
23182
23183 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
23184
23185 * util/grub.d/10_linux.in (linux_entry): Don't default to
23186 gfxpayload=keep if Linux doesn't support video handover.
23187
23188 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
23189
23190 Don't compile video modules on yeeloong since video subsystem is part
23191 of kernel.
23192
23193 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
23194 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
23195 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
23196 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
23197 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
23198 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
23199 * include/grub/bitmap_scale.h: Likewise.
23200 * include/grub/bufio.h: Likewise.
23201 * include/grub/font.h: Likewise.
23202 * include/grub/gfxterm.h: Likewise.
23203 * include/grub/video.h: Likewise.
23204 * include/grub/vbe.h: Don't include video_fb.h.
23205 * video/i386/pc/vbe.c: Include video_fb.h.
23206 * commands/i386/pc/vbetest.c: Include video.h.
23207
23208 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
23209
23210 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
23211 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
23212 default entry if GRUB_SAVEDEFAULT=true. This allows using
23213 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
23214 saving a new default on every boot.
23215
23216 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23217
23218 * normal/crypto.c (read_crypto_list): Fix a memory leak.
23219 * normal/term.c (read_terminal_list): Likewise.
23220 * normal/main.c (grub_normal_init_page): Likewise.
23221 (grub_normal_read_line_real): Likewise.
23222
23223 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23224
23225 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
23226 memory leak.
23227 Reported by: Seth Goldberg.
23228
23229 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
23230
23231 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
23232 duplicate declaration of `start'.
23233
23234 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23235
23236 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
23237 filename.
23238 Reported by: Georgy Buranov
23239
23240 2010-02-20 Carles Pina i Estany <carles@pina.cat>
23241
23242 * util/grub-mkrawimage.c (usage): Change string formatting to
23243 improve gettext.
23244
23245 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
23246
23247 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
23248 backspace keys.
23249
23250 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23251
23252 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
23253 Reported by: Michael Suchanek.
23254
23255 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
23256
23257 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
23258 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
23259
23260 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
23261
23262 Remove any reference to non-free fonts.
23263
23264 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
23265 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
23266 uses non-free components.
23267 * font/font.c (grub_font_get_name): Remove example name.
23268 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
23269 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
23270 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
23271 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
23272
23273 2010-02-16 Georgy Buranov <gburanov@gmail.com>
23274
23275 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
23276
23277 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23278
23279 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
23280 Double divisor.
23281 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
23282 features.
23283 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
23284
23285 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23286
23287 * gensymlist.sh.in: Use TARGET_CC instead of CC.
23288
23289 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23290
23291 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
23292 * docs/grub.texi (Command-line and menu entry commands): Document play
23293 command.
23294
23295 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23296
23297 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
23298 parse arguments as inline tempo and notes. Move code for playing notes
23299 to...
23300 (play): ... new function.
23301
23302 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23303
23304 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
23305 grub_uint16_t instead of short.
23306 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
23307 disk from little endian to cpu endianness.
23308
23309 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
23310
23311 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
23312 GRUB_TICKS_PER_SECOND instead of 120.
23313
23314 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23315
23316 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
23317 escape sequence after \e.
23318
23319 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23320
23321 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
23322 non-ASCII characters.
23323
23324 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23325
23326 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
23327 set root in single quotes to prevent \, from being unescaped.
23328
23329 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23330
23331 Prevent unknown commands from stopping menuentry execution.
23332
23333 * script/execute.c (grub_script_execute_cmdline): Print error after
23334 unknown command.
23335
23336 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23337
23338 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
23339 Reported by: Pavel Pisa.
23340
23341 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23342
23343 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
23344
23345 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23346
23347 Merge grub_ieee1275_map_physical into grub_map and rename to
23348 grub_ieee1275_map
23349
23350 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
23351 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
23352 Remove.
23353 * kern/ieee1275/openfw.c (grub_map): Rename to ...
23354 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
23355 necessary.
23356 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
23357
23358 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23359
23360 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
23361 opening and not after.
23362
23363 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23364
23365 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
23366 constants.
23367
23368 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23369
23370 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
23371 (alloc_phys): Use ALIGN_UP instead of align_addr.
23372
23373 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23374
23375 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
23376
23377 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23378
23379 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
23380
23381 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23382
23383 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
23384 verbose dprintf.
23385
23386 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23387
23388 Fix over-4GiB seek on sparc64.
23389
23390 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
23391 Replace pos_i and pos_lo with pos. All users updated.
23392 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23393 New constant.
23394 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23395 Likewise.
23396 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
23397 and pos_lo.
23398
23399 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23400
23401 * util/grub-mkrawimage.c (main): Call set_program_name.
23402
23403 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23404
23405 Properly align 64-bit targets.
23406
23407 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
23408 (generate_image): Use ALIGN_ADDR.
23409
23410 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23411
23412 Properly create cross-endian images.
23413
23414 * include/grub/types.h (grub_host_to_target_addr): New macro
23415 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
23416
23417 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23418
23419 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
23420
23421 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23422
23423 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
23424
23425 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
23426 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
23427 (grub_linux_boot): Divide by 64K when on VESA.
23428
23429 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23430
23431 Support GRUB_GFXPAYLOAD_LINUX.
23432
23433 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
23434 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
23435
23436 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23437
23438 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
23439 to show messages instead of discarding them.
23440 Process errors after executing command and not before. Keep old method
23441 too as precaution.
23442
23443 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
23444
23445 * configure.ac: Check for ft2build.h.
23446
23447 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23448
23449 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
23450
23451 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23452
23453 * genkernsyms.sh.in: Use TARGET_CC.
23454
23455 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
23456
23457 * NEWS: Update.
23458
23459 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23460
23461 * include/grub/multiboot2.h: Remove leftover file.
23462 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
23463 * include/grub/partition.h [GRUB_UTIL]: Likewise.
23464
23465 2010-02-07 Yves Blusseau <blusseau@zetam.org>
23466
23467 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
23468
23469 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23470
23471 Fix warnings in grub-emu when compiling with maximum warning options.
23472
23473 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
23474 (grub_arch_modules_addr): Return 0 and not NULL.
23475 * util/misc.c (ENABLE_RELOCATABLE): New definition.
23476 (xstrdup): Use newstr instead of dup.
23477 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
23478 of disk to dsk to avoid shadowing.
23479 (find_free_slot): Fix prototype.
23480 * util/getroot.c (grub_util_is_dmraid): Make static.
23481 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
23482 Add missing prototype.
23483 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
23484
23485 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23486
23487 * loader/i386/linux.c (grub_linux_setup_video): Handle error
23488 appropriately.
23489
23490 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23491
23492 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
23493 code out.
23494
23495 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23496
23497 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
23498 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
23499 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
23500 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
23501 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
23502 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
23503
23504 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23505
23506 * include/grub/err.h (grub_err_printf): Don't export.
23507
23508 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23509
23510 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
23511
23512 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23513
23514 * include/grub/i18n.h (grub_gettext_dummy): Removed.
23515 * kern/misc.c (grub_gettext_dummy): Make static.
23516
23517 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23518
23519 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
23520 by non-valid ones.
23521 * kern/term.c (grub_putchar): Likewise.
23522
23523 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23524
23525 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
23526 buggy hook call and memory leak.
23527
23528 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23529
23530 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
23531
23532 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23533
23534 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
23535
23536 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23537
23538 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
23539 modevar.
23540 Return grub_errno on allocation error.
23541
23542 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23543
23544 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
23545
23546 2010-02-06 Yves Blusseau <blusseau@zetam.org>
23547
23548 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
23549 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
23550
23551 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23552
23553 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
23554 non-pxe disk.
23555 (grub_pxefs_open): Likewise.
23556
23557 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23558
23559 * util/grub.d/10_hurd.in: Add --class information to menuentries.
23560 * util/grub.d/10_kfreebsd.in: Likewise.
23561 * util/grub.d/10_linux.in: Likewise.
23562
23563 2010-02-06 Colin D Bennett <colin@gibibit.com>
23564
23565 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
23566 (gfxmenu_mod_SOURCES): New variable.
23567 (gfxmenu_mod_CFLAGS): Likewise.
23568 (gfxmenu_mod_LDFLAGS): Likewise.
23569 * include/grub/term.h (grub_term_set_current_output): Declare
23570 argument as const.
23571 * docs/gfxmenu-theme-example.txt: New file.
23572 * gfxmenu/gfxmenu.c: Likewise.
23573 * gfxmenu/gui_box.c: Likewise.
23574 * gfxmenu/gui_canvas.c: Likewise.
23575 * gfxmenu/gui_circular_progress.c: Likewise.
23576 * gfxmenu/gui_image.c: Likewise.
23577 * gfxmenu/gui_label.c: Likewise.
23578 * gfxmenu/gui_list.c: Likewise.
23579 * gfxmenu/gui_progress_bar.c: Likewise.
23580 * gfxmenu/gui_string_util.c: Likewise.
23581 * gfxmenu/gui_util.c: Likewise.
23582 * gfxmenu/icon_manager.c: Likewise.
23583 * gfxmenu/model.c: Likewise.
23584 * gfxmenu/named_colors.c: Likewise.
23585 * gfxmenu/theme_loader.c: Likewise.
23586 * gfxmenu/view.c: Likewise.
23587 * gfxmenu/widget-box.c: Likewise.
23588 * include/grub/gfxmenu_model.h: Likewise.
23589 * include/grub/gfxmenu_view.h: Likewise.
23590 * include/grub/gfxwidgets.h: Likewise.
23591 * include/grub/gui.h: Likewise.
23592 * include/grub/gui_string_util.h: Likewise.
23593 * include/grub/icon_manager.h: Likewise.
23594
23595 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23596
23597 Agglomerate scrolling in gfxterm.
23598
23599 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
23600 (grub_virtual_screen_setup): Initialise 'total_screen'.
23601 (write_char): Split to ...
23602 (paint_char): ... this ...
23603 (write_char): ... and this.
23604 (paint_char): Handle delayed scrolling.
23605 (draw_cursor): Likewise.
23606 (scroll_up): Split to ...
23607 (real_scroll): ... this ...
23608 (scroll_up): ... and this.
23609 (real_scroll): Handle multi-line scroll and draw below-the-bottom
23610 characters.
23611 (grub_gfxterm_refresh): Call real_scroll.
23612
23613 2010-02-06 Colin D Bennett <colin@gibibit.com>
23614
23615 * include/grub/misc.h (grub_iscntrl): New inline function.
23616 (grub_isalnum): Likewise.
23617 (grub_strtol): Likewise.
23618
23619 2010-02-06 Colin D Bennett <colin@gibibit.com>
23620
23621 * normal/menu_text.c (get_entry_number): Move from here ...
23622 * normal/menu.c (get_entry_number): ... moved here.
23623 * include/grub/menu.h (grub_menu_get_default_entry_index):
23624 New prototype.
23625 * normal/menu.c (grub_menu_get_default_entry_index): New function.
23626 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
23627 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
23628 (grub_menu_viewer_should_return): Likewise.
23629 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
23630 * normal/menu_text.c (run_menu): Enable menu switching.
23631 * normal/menu_viewer.c (should_return): New variable.
23632 (menu_viewer_changed): Likewise.
23633 (grub_menu_viewer_show_menu): Handle menu viewer changes.
23634 (grub_menu_viewer_should_return): New function.
23635 (menuviewer_write_hook): Likewise.
23636 (grub_menu_viewer_init): Likewise.
23637
23638 2010-02-06 Colin D Bennet <colin@gibibit.com>
23639 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23640
23641 Support for gfxterm in a window.
23642
23643 * include/grub/gfxterm.h: New file.
23644 * include/grub/video.h (struct grub_video_rect): New declaration.
23645 (grub_video_rect_t): Likewise.
23646 * term/gfxterm.c (struct grub_gfxterm_window): New type.
23647 (refcount): New variable.
23648 (render_target): Likewise.
23649 (window): Likewise.
23650 (repaint_callback): Likewise.
23651 (grub_virtual_screen_setup): Use 'render_target'.
23652 (init_window): New function.
23653 (grub_gfxterm_init_window): Likewise.
23654 (grub_gfxterm_init): Check reference counter.
23655 Use init_window.
23656 (destroy_window): New function.
23657 (grub_gfxterm_destroy_window): Likewise.
23658 (grub_gfxterm_fini): Check reference counter.
23659 Use destroy_window.
23660 (redraw_screen_rect): Restore viewport.
23661 Use 'render_target' and 'window'.
23662 Call 'repaint_callback'.
23663 (write_char): Use 'render_target'.
23664 (draw_cursor): Likewise.
23665 (scroll_up): Restore viewport.
23666 Use 'render_target' and 'window'.
23667 Call 'repaint_callback'.
23668 (grub_gfxterm_cls): Likewise.
23669 (grub_gfxterm_refresh): Use 'window'.
23670 (grub_gfxterm_set_repaint_callback): New function.
23671 (grub_gfxterm_background_image_cmd): Use 'window'.
23672 (grub_gfxterm_get_term): New function.
23673 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
23674
23675 2010-02-06 Colin D Bennett <colin@gibibit.com>
23676
23677 Bitmap scaling support.
23678
23679 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
23680 (bitmap_scale_mod_SOURCES): New variable.
23681 (bitmap_scale_mod_CFLAGS): Likewise.
23682 (bitmap_scale_mod_LDFLAGS): Likewise.
23683 * include/grub/bitmap_scale.h: New file.
23684 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
23685 (background_image_cmd_options): New variable.
23686 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
23687 (cmd): Rename and change type to ...
23688 (background_image_cmd_handle): ... this. All users updated.
23689 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
23690 * video/bitmap_scale.c: New file.
23691
23692 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23693
23694 SDL support.
23695
23696 * Makefile.in (LIBSDL): New variable.
23697 (enable_grub_emu_sdl): Likewise.
23698 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
23699 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
23700 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
23701 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
23702 * util/sdl.c: New file.
23703
23704 2010-02-06 Colin D Bennett <colin@gibibit.com>
23705 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23706
23707 Double buffering support.
23708
23709 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
23710 * include/grub/video.h: Update comment.
23711 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
23712 New type.
23713 (grub_video_fb_doublebuf_blit_init): New prototype.
23714 * term/gfxterm.c (scroll_up): Support double buffering.
23715 (grub_gfxterm_refresh): Likewise.
23716 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
23717 (grub_video_fb_doublebuf_blit_init): Likewise.
23718 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
23719 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
23720 'displayed_page', 'render_page' and 'update_screen'.
23721 (grub_video_vbe_fini): Free offscreen buffer.
23722 (doublebuf_pageflipping_commit): New function.
23723 (doublebuf_pageflipping_update_screen): Likewise.
23724 (doublebuf_pageflipping_init): Likewise.
23725 (double_buffering_init): Likewise.
23726 (grub_video_vbe_setup): Enable doublebuffering.
23727 (grub_video_vbe_swap_buffers): Implement.
23728 (grub_video_vbe_set_active_render_target): Handle double buffering.
23729 (grub_video_vbe_get_active_render_target): Likewise.
23730 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
23731 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
23732 (grub_video_vbe_enable_double_buffering): Likewise.
23733 (grub_video_vbe_swap_buffers): Use update_screen.
23734 (grub_video_set_mode): Use double buffering.
23735
23736 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23737
23738 * maintainance/gentrigtables.py: Remove.
23739 * lib/trig.c: Likewise.
23740
23741 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
23742
23743 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
23744 `trigtables.c'.
23745 (trigtables.c): New rule.
23746 (gentrigtables): Likewise.
23747 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
23748
23749 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23750
23751 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
23752 integer constants.
23753
23754 2010-02-06 Colin D Bennet <colin@gibibit.com>
23755
23756 Trigonometry support.
23757
23758 * include/grub/trig.h: New file.
23759 * lib/trig.c: Likewise.
23760 * maintainance/gentrigtables.py: Likewise.
23761 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
23762 (trig_mod_SOURCES): New variable.
23763 (trig_mod_CFLAGS): Likewise.
23764 (trig_mod_LDFLAGS): Likewise.
23765
23766 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23767
23768 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
23769 disk devices.
23770
23771 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23772
23773 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
23774 error.
23775
23776 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23777
23778 * util/hostdisk.c (open_device): Don't use partition device when reading
23779 before the partition.
23780 (grub_util_biosdisk_read): Don't read from partition and before the
23781 partition in single operation.
23782 (grub_util_biosdisk_write): Don't write to partition and before the
23783 partition in single operation.
23784
23785 2010-02-03 Torsten Landschoff <torsten@debian.org>
23786
23787 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23788 last sectors.
23789
23790 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23791
23792 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
23793 CDROM reads.
23794 (grub_biosdisk_write): Refuse to write to CDROM.
23795
23796 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23797
23798 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
23799
23800 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23801
23802 * font/font.c (find_glyph): Check that bmp_idx is available before
23803 using it.
23804 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
23805 with (font == NULL).
23806
23807 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
23808
23809 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
23810
23811 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
23812
23813 * include/grub/script_sh.h (sourcecode): Add const qualifier.
23814 * util/grub-script-check.c (getline): Fix empty lines case.
23815
23816 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
23817
23818 * Makefile.in (check): Exit with fail status when one of the tests
23819 fails.
23820 * tests/example_functional_test.c (example_test): Fix reversed assert.
23821 * tests/example_unit_test.c (example_test): Likewise.
23822
23823 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
23824
23825 * util/grub.d/10_linux.in: This script does not use any of the
23826 contents of gettext.sh, only the external command `gettext', so stop
23827 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
23828 the same prefix as GRUB.)
23829 * util/grub.d/10_kfreebsd.in: Likewise.
23830
23831 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23832
23833 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
23834 of the line.
23835
23836 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23837
23838 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23839 last sectors.
23840
23841 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23842
23843 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
23844 having a 4KiB and not 32KiB buffer size.
23845
23846 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23847
23848 * util/hostfs.c: Include `<errno.h>'.
23849 (grub_hostfs_read): Handle errors from fseeko() and fread().
23850
23851 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23852
23853 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
23854 loop when using read hooks on files whose size isn't sector-aligned.
23855
23856 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23857
23858 Remove unused parameter.
23859
23860 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
23861 (grub_iso9660_open): Remove initialization of `data->length'.
23862
23863 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23864
23865 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
23866 memleak conditions.
23867
23868 2010-01-27 Carles Pina i Estany <carles@pina.cat>
23869
23870 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
23871 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
23872
23873 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23874
23875 * util/bin2h.c (usage): Fix warning (space after backslash).
23876
23877 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23878
23879 * font/font.c: Include `grub/fontformat.h.
23880 Remove font file format constants.
23881 (grub_font_load): Use the new macros.
23882 * include/grub/fontformat.h: New file.
23883 * util/grub-mkfont.c: Include `grub/fontformat.c'.
23884 (write_font_pf2): Use the new macros.
23885
23886 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23887
23888 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
23889 does.
23890
23891 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23892
23893 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
23894
23895 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
23896 (_start): Macroify `0x7F'.
23897
23898 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
23899 (make_install_device): Use "(pxe)" as fallback prefix when booting
23900 via PXE.
23901
23902 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
23903
23904 * configure.ac: Reset LIBS after check for libgcc symbols.
23905
23906 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
23907
23908 * util/hostdisk.c (open_device): Add trailing newline to debug
23909 message.
23910
23911 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
23912
23913 * configure.ac: Check for `limits.h'.
23914 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
23915
23916 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
23917
23918 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
23919 capitalize error strings.
23920
23921 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
23922
23923 * util/grub.d/10_hurd.in: Add a recovery mode.
23924
23925 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
23926
23927 * configure.ac: Check for libgcc symbols with -nostdlib.
23928
23929 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
23930
23931 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
23932
23933 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23934
23935 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
23936 stack since heap may be unavailable at that point.
23937 (grub_ofconsole_gotoxy): Likewise.
23938
23939 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23940
23941 * configure.ac: Check for _restgpr_14_x.
23942 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
23943 and _savegpr_* prototypes.
23944
23945 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
23946
23947 Use generic grub_reboot() for i386-efi.
23948
23949 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
23950 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
23951 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
23952
23953 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23954
23955 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
23956 presence of "prefix" variable as it breaks when normal.mod is
23957 embedded.
23958
23959 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23960
23961 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
23962 stack since heap is unavailable at that point.
23963
23964 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23965
23966 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
23967 (grub_freebsd_bootinfo): Rewritten.
23968 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
23969
23970 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23971
23972 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
23973
23974 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
23975
23976 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
23977 domain now.
23978
23979 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
23980
23981 * util/misc.c (make_system_path_relative_to_its_root): Change the work
23982 around for handling "/" to the correct fix. Fix a memory leak. Use
23983 xstrdup instead of strdup.
23984
23985 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23986
23987 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
23988
23989 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23990
23991 Optimise glyph lookup by Basic Multilingual Plane lookup array.
23992
23993 * font/font.c (struct grub_font): New member 'bmp_idx'.
23994 (font_init): Initialise 'bmp_idx'.
23995 (load_font_index): Fill 'bmp_idx'.
23996 (find_glyph): Make inline. Use bmp_idx for BMP characters.
23997
23998 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23999
24000 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
24001 unnecessary calls.
24002
24003 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24004
24005 Move context handling out of the kernel.
24006
24007 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
24008 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
24009 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
24010 * conf/i386-efi.rmk: Likewise.
24011 * conf/i386-ieee1275.rmk: Likewise.
24012 * conf/i386-pc.rmk: Likewise.
24013 * conf/powerpc-ieee1275.rmk: Likewise.
24014 * conf/sparc64-ieee1275.rmk: Likewise.
24015 * conf/x86_64-efi.rmk: Likewise.
24016 * include/grub/env.h: Include grub/menu.h.
24017 (grub_env_var_type): Removed.
24018 (grub_env_var): Replaced field 'type' with 'global'.
24019 (grub_env_find): New prototype.
24020 (grub_env_context_open): Remove EXPORT_FUNC.
24021 (grub_env_context_close): Likewise.
24022 (grub_env_export): Likewise.
24023 (grub_env_set_data_slot): Removed.
24024 (grub_env_get_data_slot): Likewise.
24025 (grub_env_unset_data_slot): Likewise.
24026 (grub_env_unset_menu): New prototype.
24027 (grub_env_set_menu): Likewise.
24028 (grub_env_get_menu): Likewise.
24029 * include/grub/env_private.h: New file.
24030 * include/grub/normal.h (grub_context_init): New prototype.
24031 (grub_context_fini): Likewise.
24032 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
24033 * normal/context.c (grub_cmd_export): ... to here.
24034 * kern/env.c: Include env_private.h.
24035 (HASHSZ): Moved to include/grub/env_private.h.
24036 (grub_env_context): Likewise.
24037 (grub_env_sorted_var): Likewise.
24038 (current_context): Renamed from this ...
24039 (grub_current_context): ...to this. 'static' removed. All users updated.
24040 (grub_env_find): Removed 'static'.
24041 (grub_env_context_open): Moved to normal/context.c.
24042 (grub_env_context_close): Likewise.
24043 (grub_env_export): Likewise.
24044 (mangle_data_slot_name): Removed.
24045 (grub_env_set_data_slot): Likewise.
24046 (grub_env_get_data_slot): Likewise.
24047 (grub_env_unset_data_slot): Likewise.
24048 * kern/main.c (grub_set_root_dev): Don't export root.
24049 It will be done later.
24050 (grub_main): Don't export prefix.
24051 It will be done later.
24052 * normal/context.c: New file.
24053 * normal/main.c (free_menu): Use grub_env_unset_menu.
24054 (grub_normal_add_menu_entry): Use grub_env_get_menu.
24055 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
24056 (GRUB_MOD_INIT(normal)): Call grub_context_init.
24057 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
24058
24059 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24060
24061 setpci support.
24062
24063 * commands/setpci.c: New file.
24064 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
24065 (setpci_mod_SOURCES): New variable.
24066 (setpci_mod_CFLAGS): Likewise.
24067 (setpci_mod_LDFLAGS): Likewise.
24068
24069 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24070
24071 Byte-addressable PCI configuration space.
24072
24073 * bus/pci.c (grub_pci_make_address): Use byte address instead of
24074 dword address.
24075 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
24076 GRUB_PCI_REG_CACHELINE.
24077 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
24078 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
24079 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
24080 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
24081 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
24082 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
24083 grub_pci_make_address.
24084 (lock_rom_area): Likewise.
24085 * commands/lspci.c (grub_lspci_iter): Use macroses
24086 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
24087 of grub_pci_make_address.
24088 * disk/ata.c (grub_ata_pciinit): Likewise.
24089 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
24090 (GRUB_PCI_REG_VENDOR): Likewise.
24091 (GRUB_PCI_REG_DEVICE): Likewise.
24092 (GRUB_PCI_REG_COMMAND): Likewise.
24093 (GRUB_PCI_REG_STATUS): Likewise.
24094 (GRUB_PCI_REG_REVISION): Likewise.
24095 (GRUB_PCI_REG_CLASS): Likewise.
24096 (GRUB_PCI_REG_CACHELINE): Likewise.
24097 (GRUB_PCI_REG_LAT_TIMER): Likewise.
24098 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
24099 (GRUB_PCI_REG_BIST): Likewise.
24100 (GRUB_PCI_REG_ADDRESSES): Likewise.
24101 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24102 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24103 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24104 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24105 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24106 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24107 (GRUB_PCI_REG_CIS_POINTER): Likewise.
24108 (GRUB_PCI_REG_SUBVENDOR): Likewise.
24109 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
24110 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
24111 (GRUB_PCI_REG_CAP_POINTER): Likewise.
24112 (GRUB_PCI_REG_IRQ_LINE): Likewise.
24113 (GRUB_PCI_REG_IRQ_PIN): Likewise.
24114 (GRUB_PCI_REG_MIN_GNT): Likewise.
24115 (GRUB_PCI_REG_MAX_LAT): Likewise.
24116 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
24117 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
24118 * video/efi_uga.c (find_framebuf): Likewise.
24119 * video/sm712.c (grub_video_sm712_setup): Likewise.
24120 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
24121 space.
24122
24123 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24124
24125 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
24126 can be reliably determined to be supported.
24127
24128 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24129
24130 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
24131 that VESA is supported.
24132 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
24133 supported.
24134
24135 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24136
24137 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
24138
24139 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24140
24141 * util/misc.c (make_system_path_relative_to_its_root): Work around
24142 special-casing of "/", as previous incarnation of this routine did.
24143
24144 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24145
24146 Fix any-emu compilation.
24147
24148 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
24149 * grub_bin2h_SOURCES: New variable.
24150
24151 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24152
24153 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
24154
24155 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24156
24157 * util/grub.d/00_header.in: Fix handling of locale_dir.
24158
24159 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24160
24161 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
24162 as possible unifont location (Gentoo).
24163 Reported by: Alexander Brüning
24164
24165 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24166
24167 Don't try to generate lists for kernel.img.
24168
24169 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
24170 (pkglib_MODULES): Remove kernel.img.
24171 (kernel_img_EXPORTS): Removed.
24172 (kernel_img_RELOCATABLE): New variable.
24173 * conf/x86_64-efi.rmk: Likewise.
24174 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
24175
24176 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24177
24178 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
24179 grub_xasprintf or grub_snprintf.
24180 (grub_vsprintf): Likewise.
24181 (grub_snprintf): New proto.
24182 (grub_vsnprintf): Likewise.
24183 (grub_xasprintf): Likewise.
24184 (grub_xvasprintf): Likewise.
24185 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
24186 (grub_sprintf): Removed.
24187 (grub_vsnprintf): New function.
24188 (grub_snprintf): Likewise.
24189 (grub_xvasprintf): Likewise.
24190 (grub_xasprintf): Likewise.
24191 (grub_vsprintf): Renamed to ...
24192 (grub_vsnprintf_real): ...this. New argument max_len.
24193
24194 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
24195
24196 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
24197 fix grub-script-check warning.
24198
24199 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24200
24201 * include/grub/font.h (grub_font_load): Fix prototype.
24202
24203 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24204
24205 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
24206
24207 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24208
24209 * include/grub/x86_64/at_keyboard.h: New file.
24210
24211 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24212
24213 * loader/mips/linux.c: Include missing grub/i18n.h.
24214
24215 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24216
24217 * normal/menu.c (notify_execution_failure): Clarify error message.
24218
24219 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24220
24221 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
24222 return value (and revert all return statements). Update users.
24223
24224 2010-01-20 Dan Merillat <debian@dan.merillat.org>
24225
24226 * kern/device.c (grub_device_iterate): Allocate new part_ent
24227 structure based on sizeof (*p) rather than sizeof (p->next), to
24228 account for structure padding.
24229
24230 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
24231 disk is NULL, which might happen for LVM physical volumes with no
24232 LVM signature.
24233
24234 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24235
24236 * loader/mips/linux.c (grub_cmd_initrd)
24237 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
24238
24239 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24240
24241 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
24242 (grub_video_video_init, grub_video_bitmap_init)
24243 (grub_font_manager_init, grub_term_gfxterm_init)
24244 (grub_at_keyboard_init): New extern declarations.
24245 (grub_machine_init): Initialize gfxterm and at_keyboard.
24246
24247 * kern/main.c (grub_main): Revert grub_printf delay kludge.
24248
24249 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
24250 `gfxterm.mod' into core image.
24251
24252 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24253 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24254 (kernel_img_FORMAT): Copy to ...
24255
24256 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24257 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24258 (kernel_img_FORMAT): ... here, and ...
24259
24260 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24261 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24262 (kernel_img_FORMAT): ... here.
24263
24264 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
24265 and input (at_keyboard) terminals in kernel.
24266 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
24267
24268 (pkglib_MODULES): Remove `pci.mod'.
24269 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
24270 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
24271 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
24272 (at_keyboard_mod_LDFLAGS): Remove variables.
24273
24274 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
24275
24276 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
24277
24278 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
24279
24280 * include/grub/mips/libgcc.h: Only export symbols for functions
24281 that libgcc provides.
24282
24283 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
24284
24285 MIPS support.
24286
24287 * bus/bonito.c: New file.
24288 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
24289 GRUB_PCI_NUM_DEVICES.
24290 * term/i386/pc/serial.c: Move to ...
24291 * term/serial.c: ... here. All users updated.
24292 * util/i386/pc/grub-mkimage.c: Move to ...
24293 * util/grub-mkrawimage.c: ... here. All users updated.
24294 * term/i386/pc/at_keyboard.c: Move to ...
24295 * term/at_keyboard.c: ... here. All users updated.
24296 * conf/mips-qemu-mips.rmk: New file.
24297 * conf/mips-yeeloong.rmk: Likewise.
24298 * conf/mips.rmk: Likewise.
24299 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
24300 mipsel-qemu-mips.
24301 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
24302 to port addresses.
24303 (grub_ata_pciinit): Support CS5536.
24304 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
24305 * font/font_cmd.c (loadfont_command): Open file before passing it to
24306 grub_font_load.
24307 (pseudo_file_read): New function.
24308 (pseudo_file_close): Likewise.
24309 (pseudo_fs): New structure.
24310 (load_font_module): New function.
24311 (GRUB_MOD_INIT(font_manager)): Load embedded font.
24312 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
24313 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
24314 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
24315 * include/grub/i386/at_keyboard.h: Split into ...
24316 * include/grub/at_keyboard.h: ... this ...
24317 * include/grub/i386/at_keyboard.h: ... and this.
24318 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
24319 New prototype.
24320 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
24321 updated.
24322 (grub_elf64_size): Likewise.
24323 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
24324 filename.
24325 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
24326 * include/grub/i386/coreboot/serial.h: Rewritten.
24327 * include/grub/i386/ieee1275/serial.h: Include
24328 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
24329 * include/grub/i386/pc/serial.h: Moved from here ...
24330 * include/grub/serial.h: ... to here. All users updated.
24331 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
24332 (GRUB_PCI_NUM_BUS): Likewise.
24333 (GRUB_PCI_NUM_DEVICES): Likewise.
24334 (grub_pci_device_map_range): Add missing volatile keyword.
24335 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
24336 * include/grub/mips/at_keyboard.h: New file.
24337 * include/grub/mips/cache.h: Likewise.
24338 * include/grub/mips/io.h: Likewise.
24339 * include/grub/mips/kernel.h: Likewise.
24340 * include/grub/mips/libgcc.h: Likewise.
24341 * include/grub/mips/pci.h: Likewise.
24342 * include/grub/mips/qemu-mips/boot.h: Likewise.
24343 * include/grub/mips/qemu-mips/kernel.h: Likewise.
24344 * include/grub/mips/qemu-mips/loader.h: Likewise.
24345 * include/grub/mips/qemu-mips/memory.h: Likewise.
24346 * include/grub/mips/qemu-mips/serial.h: Likewise.
24347 * include/grub/mips/qemu-mips/time.h: Likewise.
24348 * include/grub/mips/relocator.h: Likewise.
24349 * include/grub/mips/time.h: Likewise.
24350 * include/grub/mips/types.h: Likewise.
24351 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
24352 * include/grub/mips/yeeloong/boot.h: Likewise.
24353 * include/grub/mips/yeeloong/kernel.h: Likewise.
24354 * include/grub/mips/yeeloong/loader.h: Likewise.
24355 * include/grub/mips/yeeloong/memory.h: Likewise.
24356 * include/grub/mips/yeeloong/pci.h: Likewise.
24357 * include/grub/mips/yeeloong/serial.h: Likewise.
24358 * include/grub/mips/yeeloong/time.h: Likewise.
24359 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
24360 * kern/elf.c (grub_elf32_size): New parameter. All users
24361 updated.
24362 (grub_elf64_size): Likewise.
24363 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
24364 Load modules before saying "Welcome to GRUB!".
24365 Call grub_refresh after saying "Welcome to GRUB!".
24366 * kern/mips/cache.S: New file.
24367 * kern/mips/cache_flush.S: Likewise.
24368 * kern/mips/dl.c: Likewise.
24369 * kern/mips/init.c: Likewise.
24370 * kern/mips/qemu-mips/init.c: Likewise.
24371 * kern/mips/startup.S: Likewise.
24372 * kern/mips/yeeloong/init.c: Likewise.
24373 * kern/term.c (grub_putcode): Handle NULL terminal.
24374 (grub_getcharwidth): Likewise.
24375 (grub_getkey): Likewise.
24376 (grub_checkkey): Likewise.
24377 (grub_getkeystatus): Likewise.
24378 (grub_getxy): Likewise.
24379 (grub_getwh): Likewise.
24380 (grub_gotoxy): Likewise.
24381 (grub_cls): Likewise.
24382 (grub_setcolorstate): Likewise.
24383 (grub_setcolor): Likewise.
24384 (grub_getcolor): Likewise.
24385 (grub_refresh): Likewise.
24386 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
24387 (write_jump): Add hatch nop.
24388 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
24389 * lib/mips/setjmp.S: New file.
24390 * loader/mips/linux.c: Likewise.
24391 * term/i386/pc/at_keyboard.c: Move from here ...
24392 * term/at_keyboard.c: ... to here.
24393 * term/i386/pc/serial.c: Moved from here ...
24394 * term/serial.c: ... to here. All users updated.
24395 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
24396 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
24397 (serial_translate_key_sequence): Avoid deadlock.
24398 (grub_serial_getkey): Handle backspace.
24399 (grub_serial_putchar): Fix newline handling.
24400 * util/i386/pc/grub-mkimage.c: Move from here ...
24401 * util/grub-mkrawimage.c: ... to here. All users updated.
24402 (generate_image): New parameters 'font_path' and 'format'.
24403 Support embedding font.
24404 Use grub_host_to_target* instead of grub_cpu_to_le*.
24405 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
24406 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
24407 (options): New option "--font".
24408 (usage): Likewise.
24409 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
24410 (main): Handle "--font".
24411 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
24412 (grub_virtual_screen_setup): Set bg_color_display.
24413 (redraw_screen_rect): Use bg_color_display instead of incorrect
24414 bg_color.
24415 (grub_gfxterm_cls): Likewise.
24416 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
24417 Support embedding config file.
24418 (add_segments): Likewise.
24419 (options): New option "--config".
24420 (main): Handle "--config".
24421 * video/sm712.c: New file.
24422
24423 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24424
24425 Fix parallel builds.
24426
24427 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
24428 font.c depend on ascii.h).
24429
24430 2010-01-12 Carles Pina i Estany <carles@pina.cat>
24431
24432 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
24433
24434 2010-01-11 Carles Pina i Estany <carles@pina.cat>
24435
24436 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
24437 By default: disabled.
24438 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
24439 parameter.
24440
24441 2010-01-10 Carles Pina i Estany <carles@pina.cat>
24442
24443 * font/font.c: Update copyright years.
24444 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
24445
24446 2010-01-10 Carles Pina i Estany <carles@pina.cat>
24447
24448 * font/font.c: Include `ascii.h'.
24449 (ASCII_BITMAP_SIZE): New macro.
24450 (ascii_font_glyph): Define.
24451 (ascii_glyph_lookup): New function.
24452 (grub_font_get_string_width): Change comment. If glyph not found, use
24453 ascii_glyph_lookup.
24454 (grub_font_get_glyph_with_fallback): If glyph not available returns
24455 ascii_glyph_lookup.
24456 * util/grub-mkfont.c (file_formats): New enum.
24457 (options): Add `ascii-bitmaps' new option.
24458 (usage): Add `asii-bitmaps' new option.
24459 (write_font_ascii_bitmap): New function.
24460 (write_font): Rename to ...
24461 (write_font_p2): ... this. Remove print_glyphs call.
24462 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
24463 used. Call print_glyphs.
24464 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
24465
24466 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24467
24468 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
24469 (grub_bin2h_SOURCES): New variable.
24470 * util/bin2h.c: New file.
24471
24472 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24473
24474 * include/multiboot.h: Resynced with spec.
24475 * include/multiboot2.h: Likewise.
24476 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
24477 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
24478
24479 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24480
24481 * include/grub/term.h (grub_term_register_input,
24482 grub_term_register_output): Check return of terminal init()
24483 routines, and abort if errors are raised.
24484
24485 * commands/terminal.c: Update copyright year.
24486
24487 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24488
24489 * commands/terminal.c (grub_cmd_terminal_input)
24490 (grub_cmd_terminal_output): Check return of terminal init()
24491 routines, and abort if errors are raised.
24492
24493 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24494
24495 * include/grub/i386/bsd.h: Fix include pathes.
24496
24497 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24498
24499 Add missing *BSD copyright headers.
24500
24501 * include/grub/aout.h: Add BSD licence.
24502 * include/grub/i386/bsd.h: Parts under different licences moved to ...
24503 * include/grub/i386/freebsd_linker.h: ... here,
24504 * include/grub/i386/freebsd_reboot.h: ... here,
24505 * include/grub/i386/netbsd_bootinfo.h: ... here,
24506 * include/grub/i386/netbsd_reboot.h: ... here,
24507 * include/grub/i386/openbsd_bootarg.h: ... here,
24508 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
24509 licence to each file.
24510
24511 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24512
24513 * acinclude.m4: Remove `nop' assembly instruction; it's not
24514 implemented by all architectures.
24515
24516 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24517
24518 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
24519 ELILO. This is no longer necessary.
24520
24521 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
24522
24523 Added new tool, grub-scrit-check to verify grub.cfg syntax.
24524
24525 * util/grub-script-check.c: grub-script-check tool.
24526 * conf/common.rmk: Make rules for grub-script-check.
24527
24528 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24529
24530 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
24531 spotting it back in 2008. Shame on me for forgetting he did.
24532
24533 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
24534
24535 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24536
24537 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
24538 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
24539 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
24540 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
24541 (GRUB_VIDEO_TYPE_EFI): Rename to ...
24542 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
24543
24544 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
24545
24546 * include/grub/test.h: Add license header.
24547 * tests/example_functional_test.c: Likewise.
24548 * tests/example_unit_test.c: Likewise.
24549 * tests/lib/functional_test.c: Likewise.
24550 * tests/lib/test.c: Likewise.
24551 * tests/lib/unit_test.c: Likewise.
24552
24553 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
24554
24555 Use flag-based instead of hook-based video mode selection and "auto"
24556 keyword.
24557
24558 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
24559 (grub_video_set_mode): Changed prototype. All users updated.
24560 (grub_video_check_mode_flag): New inline function.
24561 * video/video.c (parse_modespec): New function.
24562 (grub_video_set_mode): Parse flags and keywords.
24563
24564 2010-01-17 Carles Pina i Estany <carles@pina.cat>
24565
24566 * util/misc.c (grub_util_info): Fix the order of the parameters in a
24567 fprintf call.
24568
24569 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
24570
24571 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
24572
24573 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24574
24575 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
24576 string.
24577 * util/grub-emu.c (usage): Likewise.
24578 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
24579 * util/i386/efi/grub-mkimage.c (usage): Likewise.
24580 * util/i386/pc/grub-mkimage.c (usage): Likewise.
24581 * util/i386/pc/grub-setup.c (usage): Likewise.
24582
24583 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24584
24585 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
24586 the message.
24587 (grub_util_info): Likewise.
24588 (grub_util_error): Likewise.
24589 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
24590 and/or new lines in `grub_util_warna', `grub_util_info',
24591 `grub_util_error' calls.
24592 * util/getroot.c: Likewise.
24593 * util/grub-editenv.c: Likewise.
24594 * util/grub-emu.c: Likewise.
24595 * util/grub-fstest.c: Likewise.
24596 * util/grub-mkdevicemap.c: Likewise.
24597 * util/grub-mkfont.c: Likewise.
24598 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24599 * util/grub-mkrelpath.c: Likewise.
24600 * util/grub-pe2elf.c: Likewise.
24601 * util/grub-probe.c: Likewise.
24602 * util/hostdisk.c: Likewise.
24603 * util/i386/efi/grub-mkimage.c: Likewise.
24604 * util/i386/pc/grub-mkimage.c: Likewise.
24605 * util/i386/pc/grub-setup.c: Likewise.
24606 * util/ieee1275/ofpath.c: Likewise.
24607 * util/mkisofs/eltorito.c: Likewise.
24608 * util/mkisofs/rock.c: Likewise.
24609 * util/mkisofs/write.c: Likewise.
24610 * util/raid.c: Likewise.
24611 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
24612 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24613
24614 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24615
24616 Enable multiboot on non-pc.
24617
24618 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
24619 multiboot.mod and multiboot2.mod to ...
24620 * conf/i386.rmk (pkglib_MODULES): ... here.
24621 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
24622 Moved to ...
24623 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
24624 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
24625 Moved to ...
24626 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
24627 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
24628 Moved to ...
24629 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
24630 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
24631 Moved to ...
24632 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
24633 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
24634 relocator.mod.
24635 (ata_mod_SOURCES): Removed.
24636 (ata_mod_CFLAGS): Likewise.
24637 (ata_mod_LDFLAGS): Likewise.
24638 (relocator_mod_SOURCES): Removed.
24639 (relocator_mod_CFLAGS): Likewise.
24640 (relocator_mod_ASFLAGS): Likewise.
24641 (relocator_mod_LDFLAGS): Likewise.
24642 Include i386.mk.
24643 * include/grub/x86_64/multiboot.h: New file.
24644 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
24645 Terminate EFI.
24646
24647 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24648
24649 Video multiboot support.
24650
24651 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
24652 New prototype.
24653 * include/multiboot.h: Resynced with multiboot specification.
24654 * include/multiboot2.h: Likewise.
24655 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
24656 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
24657 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
24658 (HAS_VGA_TEXT): Likewise.
24659 (accepts_video): New variable.
24660 (grub_multiboot_set_accepts_video): New function.
24661 (grub_multiboot_get_mbi_size): Account for video structures.
24662 (set_video_mode): New function.
24663 (retrieve_video_parameters): Likewise.
24664 (grub_multiboot_make_mbi): Fill video fields.
24665
24666 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24667
24668 Video driver ids.
24669
24670 * include/grub/video.h (grub_video_driver_id): New type.
24671 (grub_video_adapter): New member 'id'. All users updated.
24672 (grub_video_get_driver_id): New proto.
24673 * video/video.c (grub_video_get_driver_id): New function.
24674
24675 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24676
24677 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
24678 `var=val'.
24679
24680 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24681
24682 * normal/cmdline.c (print_completion): Gettextizze.
24683
24684 2001-01-14 Carles Pina i Estany <carles@pina.cat>
24685
24686 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
24687
24688 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24689
24690 * gettext/gettext.c (grub_gettext_translate): Push and pop
24691 grub_errno.
24692 (grub_gettext_delete_list): Change comment style.
24693 * kern/err.c (grub_error): Gettextizze.
24694 (grub_fatal): Gettextizze.
24695
24696 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24697
24698 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
24699 (grub_linux16_real_boot): ... this.
24700 * kern/i386/loader.S: Likewise.
24701 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
24702 (grub_linux16_boot): New function. Switches to text mode and calls
24703 grub_linux16_real_boot().
24704
24705 * loader/i386/bsd.c: Include `<grub/video.h>'.
24706 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
24707 text mode before calling grub_unix_real_boot().
24708
24709 * loader/i386/multiboot.c: Include `<grub/video.h>'.
24710 (grub_multiboot_boot): Switch to text mode before calling
24711 grub_relocator32_boot().
24712
24713 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
24714 (grub_chainloader_boot): Switch to text mode before calling
24715 grub_chainloader_real_boot().
24716
24717 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24718 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24719
24720 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
24721 non-empty value.
24722
24723 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24724 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24725
24726 * util/grub.d/00_header.in: Define a "savedefault" function for use
24727 in menu entries.
24728 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
24729
24730 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24731 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24732
24733 * util/grub-mkconfig_lib.in (save_default_entry): Only set
24734 saved_entry if boot_once is unset.
24735 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
24736 previous saved entry (i.e. grub-reboot).
24737
24738 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24739
24740 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
24741
24742 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24743
24744 * util/grub.d/00_header.in: Use `set var=val' rather than plain
24745 `var=val'.
24746 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
24747
24748 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24749
24750 * util/grub-reboot.in: Fix --version output.
24751 * util/grub-set-default.in: Likewise.
24752
24753 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24754
24755 * util/grub.d/00_header.in: Silently ignore zero-sized environment
24756 blocks.
24757
24758 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24759
24760 * util/grub.d/00_header.in: Quote the value assigned to `default',
24761 in case it contains spaces.
24762
24763 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24764
24765 * util/grub.d/30_os-prober.in: Fix merge error that moved a
24766 `save_default_entry' call from the macosx case to the linux case.
24767
24768 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
24769 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
24770
24771 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
24772 in `chosen' environment variable.
24773 * normal/menu_text.c (get_entry_number): Check if the variable
24774 matches the title of a menu entry.
24775 (run_menu): Pass menu to get_entry_number.
24776
24777 * util/grub-reboot.in: New file.
24778 * util/grub-set-default.in: New file.
24779 * conf/common.rmk (grub-reboot): New utility.
24780 (grub-set-default): New utility.
24781
24782 * util/grub-mkconfig_lib.in (save_default_entry): New function.
24783 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
24784 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
24785 move it to `saved_entry' for the next boot. Load environment on
24786 initialisation.
24787 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
24788 * util/grub.d/10_hurd.in: Likewise.
24789 * util/grub.d/10_linux.in (linux_entry): Likewise.
24790 * util/grub.d/10_windows.in: Likewise.
24791 * util/grub.d/30_os-prober.in: Likewise.
24792
24793 * util/grub-install.in: Create environment block.
24794 * util/i386/efi/grub-install.in: Likewise.
24795 * util/ieee1275/grub-install.in: Likewise.
24796 * util/sparc64/ieee1275/grub-install.in: Likewise.
24797
24798 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
24799
24800 Unit testing framework for GRUB.
24801
24802 * Makefile.in: Test framework build rules for 'make check'.
24803 * conf/tests.rmk: Build rules for individual tests and framework.
24804
24805 * include/grub/test.h: Header file for whitebox tests.
24806 * tests/lib/functional_test.c: Framework support for whitebox
24807 functional tests.
24808 * tests/lib/test.c: Common whitebox testing code for unit and
24809 functional tests.
24810 * tests/lib/unit_test.c: Framework support for whitebox unit
24811 tests.
24812
24813 * tests/util/grub-shell-tester.in: Support utility for grub-script
24814 tests.
24815 * tests/util/grub-shell.in: Utility to execute grub-script
24816 commands in a Qemu instance.
24817
24818 * tests/example_functional_test.c: Example whitebox functional
24819 test.
24820 * tests/example_grub_script_test.in: Example grub-script test.
24821 * tests/example_scripted_test.in: Example scripted test.
24822 * tests/example_unit_test.c: Example whitebox unit test.
24823
24824 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
24825
24826 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
24827 Add loader/i386/multiboot_mbi.c.
24828 (multiboot2_mod_SOURCES): Likewise.
24829 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
24830 (multiboot2_mod_SOURCES): Likewise.
24831 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
24832 (grub_multiboot_make_mbi): Likewise.
24833 (grub_multiboot_free_mbi): Likewise.
24834 (grub_multiboot_init_mbi): Likewise.
24835 (grub_multiboot_add_module): Likewise.
24836 (grub_multiboot_set_bootdev): Likewise.
24837 * loader/i386/multiboot.c (mbi): Removed.
24838 (mbi_dest): Likewise.
24839 (alloc_mbi): New variable.
24840 (grub_multiboot_payload_size): Removed. All users updated.
24841 (grub_multiboot_pure_size): New variable.
24842 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
24843 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
24844 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
24845 (grub_fill_multiboot_mmap): Likewise.
24846 (grub_multiboot_get_bootdev): Likewise.
24847 (grub_multiboot): Use multiboot_mbi functions.
24848 * loader/i386/multiboot_mbi.c: New file.
24849
24850 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24851
24852 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
24853 it would result in module crash.
24854
24855 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24856
24857 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
24858 (grub_ofconsole_getwh): Split to ...
24859 (grub_ofconsole_getwh): ... this.
24860 (grub_ofconsole_dimensions): ...and this.
24861 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
24862
24863 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
24864
24865 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
24866
24867 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24868
24869 * loader/i386/pc/multiboot2.c: Removed stalled file.
24870
24871 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24872
24873 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
24874 Reported by: Grégoire Sutre
24875
24876 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
24877
24878 * util/misc.c (canonicalize_file_name): New function.
24879 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
24880 instead of realpath().
24881
24882 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
24883
24884 * util/grub-install.in (usage): Clarify meaning of --root-directory,
24885 and make it clearer that it's optional. Based on confusion
24886 witnessed on IRC.
24887
24888 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24889
24890 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
24891 in premature implicit newline.
24892
24893 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24894
24895 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
24896 which resulted in garbled command line at the end of screen.
24897
24898 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24899
24900 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
24901 initialization with similar approach as with other Linux loaders.
24902
24903 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24904
24905 Fix i386-ieee1275 build.
24906
24907 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
24908 and grub_term_height() for video_{width,height} initialization.
24909
24910 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24911
24912 Fix grub-emu build.
24913
24914 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
24915
24916 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24917 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24918
24919 Support for multiple terminals.
24920
24921 * Makefile.in (pkglib_DATA): terminal.lst.
24922 (terminal.lst): New target.
24923 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
24924 (GRUB_MOD_INIT(handler)): Likewise.
24925 (GRUB_MOD_FINI(handler)): Likewise.
24926 * commands/help.c (grub_cmd_help): Handle multiple terminals.
24927 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
24928 * commands/sleep.c (do_print): Use grub_term_restore_pos.
24929 (grub_cmd_sleep): Use grub_term_save_pos.
24930 * commands/terminal.c: New file.
24931 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
24932 commands/terminal.c and lib/charset.c.
24933 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
24934 (pkglib_MODULES): Add terminal.mod.
24935 (terminal_mod_SOURCES): New variable.
24936 (terminal_mod_CFLAGS): Likewise.
24937 (terminal_mod_LDFLAGS): Likewise.
24938 * genhandlerlist.sh: Don't handle terminals.
24939 * genmk.rb: Generate terminal-*.lst.
24940 * genterminallist.sh: New file.
24941 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
24942 (grub_is_valid_utf8): Likewise.
24943 (grub_utf8_to_ucs4_alloc): Likewise.
24944 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
24945 (grub_menu_register_viewer): Changed argument.
24946 (grub_menu_try_text): New proto.
24947 (grub_gfxmenu_try_hook): New declaration.
24948 * include/grub/normal.h (grub_normal_exit_level): New declaration.
24949 (grub_menu_init_page): Additional argument term.
24950 (grub_normal_init_page): Likewise.
24951 (grub_cmdline_get): Arguments simplified.
24952 (grub_utf8_to_ucs4_alloc): Removed.
24953 (grub_print_ucs4): Additional argument term.
24954 (grub_getstringwidth): Likewise.
24955 (grub_print_message_indented): Likewise.
24956 (grub_menu_text_register_instances): New proto.
24957 (grub_show_menu): Likewise.
24958 (read_terminal_list): Likewise.
24959 (grub_set_more): Likewise.
24960 * include/grub/parser.h: Include handler.h.
24961 * include/grub/reader.h: Rewritten.
24962 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
24963 (GRUB_TERM_WIDTH): Changed to function.
24964 (GRUB_TERM_HEIGHT): Likewise.
24965 (GRUB_TERM_BORDER_WIDTH): Likewise.
24966 (GRUB_TERM_BORDER_HEIGHT): Likewise.
24967 (GRUB_TERM_NUM_ENTRIES): Likewise.
24968 (GRUB_TERM_ENTRY_WIDTH): Likewise.
24969 (GRUB_TERM_CURSOR_X): Likewise.
24970 (grub_term_input_class): Likewise.
24971 (grub_term_output_class): Likewise.
24972 (grub_term_outputs_disabled): New declaration.
24973 (grub_term_inputs_disabled): Likewise.
24974 (grub_term_outputs): Likewise.
24975 (grub_term_inputs): Likewise.
24976 (grub_term_register_input): Rewritten.
24977 (grub_term_register_output): Likewise.
24978 (grub_term_unregister_input): Likewise.
24979 (grub_term_unregister_output): Likewise.
24980 (FOR_ACTIVE_TERM_INPUTS): New macro.
24981 (FOR_DISABLED_TERM_INPUTS): Likewise.
24982 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24983 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24984 * include/grub/terminfo.h: Add oterm argument to all protypes.
24985 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
24986 Use grub_rescue_run.
24987 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
24988 All users updated.
24989 * kern/reader.c: Removed. All users updated.
24990 * kern/rescue_reader.c (grub_rescue_init): Removed.
24991 (grub_rescue_reader): Likewise.
24992 (grub_register_rescue_reader): Likewise.
24993 (grub_rescue_run): New function based on kern/reader.c.
24994 * kern/term.c: Adapted for multiterm.
24995 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
24996 (grub_is_valid_utf8): Likewise.
24997 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
24998 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
24999 right terminal.
25000 * loader/i386/linux.c (grub_linux_boot): Likewise.
25001 * normal/auth.c (grub_username_get): New function.
25002 (grub_auth_check_authentication): Use grub_username_get.
25003 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
25004 * normal/color.c: Adapt for multiterm.
25005 * normal/main.c (read_config_file): Don't use grub_reader_loop.
25006 (grub_normal_init_page): Additional argument term.
25007 (read_lists): Call read_terminal_lists.
25008 (grub_enter_normal_mode): Call grub_cmdline_run.
25009 Handle grub_normal_exit_level.
25010 (grub_cmd_normal): Make reentrant.
25011 (grub_cmd_normal_exit): New function.
25012 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
25013 * normal/menu.c: Adapt for multiterm.
25014 * normal/menu_entry.c: Likewise.
25015 * normal/menu_text.c: Likewise.
25016 * normal/menu_viewer.c: Removed. All users updated.
25017 * normal/term.c: New file.
25018 * util/console.c: Change order of includes to workaround a bug in
25019 ncurses headers.
25020 * term/terminfo.c: New argument oterm on all exported functions.
25021 All users updated.
25022 * util/grub-editenv.c (grub_term_input_class): Removed.
25023 (grub_term_output_class): Likewise.
25024
25025 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
25026
25027 Make loader output a bit more user-friendly.
25028
25029 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
25030 is being loaded. Likewise for the Hurd.
25031
25032 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
25033 that kernel of FreeBSD ${version} is being loaded.
25034
25035 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
25036 grub_dprintf().
25037 (grub_cmd_initrd): Likewise.
25038 * util/grub.d/10_linux.in (linux_entry): Print message indicating
25039 that Linux ${version} is being loaded. Likewise for initrd.
25040
25041 2010-01-09 Carles Pina i Estany <carles@pina.cat>
25042
25043 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
25044
25045 2010-01-08 Carles Pina i Estany <carles@pina.cat>
25046
25047 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
25048 (GRUB_MOD_INIT): Gettextizze.
25049 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
25050 (GRUB_MOD_INIT): Gettextizze.
25051 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
25052 (grub_cmd_linux): Capitalise Linux.
25053 (GRUB_MOD_INIT): Gettextizze.
25054 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
25055 (grub_cmd_linux): Capitalise Linux.
25056 (GRUB_MOD_INIT): Gettextizze.
25057 * loader/i386/linux.c: Include `<grub/i18n.h>'.
25058 (grub_cmd_linux): Capitalise Linux.
25059 (GRUB_MOD_INIT): Gettextizze.
25060 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
25061 (GRUB_MOD_INIT): Gettextizze.
25062 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
25063 (grub_cmd_linux): Capitalise Linux.
25064 (GRUB_MOD_INIT): Gettextizze.
25065 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
25066 (grub_cpu_xnu_init): Gettextizze.
25067 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
25068 (GRUB_MOD_INIT): Gettextizze.
25069 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
25070 (GRUB_MOD_INIT): Gettextizze.
25071 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
25072 (grub_linux_load64): Capitalise Linux.
25073 (GRUB_MOD_INIT): Gettextizze.
25074 * loader/xnu.c: Include `<grub/i18n.h>'.
25075 (GRUB_MOD_INIT): Gettextizze.
25076 * po/POTFILES: Add `loader/efi/appleloader.c',
25077 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
25078 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
25079 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
25080 `loader/i386/xnu.c', `loader/multiboot_loader.c',
25081 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
25082 and `loader/xnu.c'.
25083
25084 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
25085
25086 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
25087
25088 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
25089
25090 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
25091 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
25092 * util/mkisofs/mkisofs.c (main): Readjust --version output.
25093
25094 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25095
25096 Reset Multiboot 2 support. New loader implements the draft in
25097 /branches/multiboot2 and shares as much code as possible with the
25098 production Multiboot 1 implementation.
25099
25100 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
25101 * loader/multiboot2.c: Likewise.
25102 * loader/i386/multiboot_helper.S: Likewise.
25103 * include/multiboot2.h: Replace with latest version from the draft
25104 in /branches/multiboot2.
25105
25106 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
25107 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
25108 and `loader/multiboot2.c'.
25109 (pkglib_MODULES): Add `multiboot2.mod'.
25110 (multiboot2_mod_SOURCES): New variable.
25111 (multiboot2_mod_LDFLAGS): Likewise.
25112 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
25113
25114 * conf/i386-pc.rmk: Likewise.
25115
25116 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
25117 (multiboot_mod_SOURCES): Remove variable.
25118 (multiboot_mod_LDFLAGS): Likewise.
25119 (multiboot_mod_CFLAGS): Likewise.
25120
25121 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
25122 `<multiboot2.h>' instead of `<multiboot.h>'.
25123 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
25124 (MULTIBOOT_HEADER_MAGIC): New macros.
25125
25126 * loader/multiboot_loader.c (module_version_status): Remove variable.
25127 (find_multi_boot2_header): Remove function.
25128 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
25129 logic. Always check for the Multiboot version we're compiling for.
25130 (grub_cmd_module_loader): Likewise.
25131 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
25132 command instead of `multiboot'.
25133
25134 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25135
25136 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
25137 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
25138 all users.
25139
25140 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25141 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25142
25143 Fix breakage introduced with previous commit.
25144
25145 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
25146 commands.
25147 * normal/handler.c (read_handler_list): Revert part of previous commit
25148 affecting this file.
25149 * normal/main.c (read_lists): Move read_handler_list() call back to ...
25150 (grub_normal_execute): ... here.
25151
25152 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25153
25154 Merge prefix-redefinition-fix branch.
25155
25156 * normal/autofs.c (read_fs_list): Make function capable of being
25157 run multiple times, gracefuly replacing the previous data
25158 structures.
25159 * normal/dyncmd.c (read_command_list): Likewise.
25160 * normal/handler.c (read_handler_list): Likewise.
25161 * normal/main.c (read_lists): New function. Calls all the
25162 list reading functions.
25163 (grub_normal_execute): Use read_lists() instead of calling all
25164 list reading functions explicitly. Register read_lists() as a
25165 variable hook attached to ${prefix}.
25166
25167 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25168
25169 Merge crypto branch.
25170
25171 * Makefile.in (pkglib_DATA): Add crypto.lst.
25172 (crypto.lst): New target.
25173 * commands/hashsum.c: New file.
25174 * commands/password.c (check_password): Use grub_crypto_memcmp.
25175 * commands/password_pbkdf2.c: New file.
25176 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
25177 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
25178 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
25179 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
25180 -I$(srcdir)/lib/libgcrypt_wrap.
25181 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
25182 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
25183 password_pbkdf2.mod.
25184 (crypto_mod_SOURCES): New variable.
25185 (crypto_mod_CFLAGS): Likewise.
25186 (crypto_mod_LDFLAGS): Likewise.
25187 (hashsum_mod_SOURCES): New variable.
25188 (hashsum_mod_CFLAGS): Likewise.
25189 (hashsum_mod_LDFLAGS): Likewise.
25190 (pbkdf2_mod_SOURCES): New variable.
25191 (pbkdf2_mod_CFLAGS): Likewise.
25192 (pbkdf2_mod_LDFLAGS): Likewise.
25193 (password_pbkdf2_mod_SOURCES): New variable.
25194 (password_pbkdf2_mod_CFLAGS): Likewise.
25195 (password_pbkdf2_mod_LDFLAGS): Likewise.
25196 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
25197 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
25198 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
25199 Include conf/gcry.rmk.
25200 * include/grub/auth.h: Rewritten.
25201 * include/grub/crypto.h: New file.
25202 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
25203 * include/grub/normal.h (read_crypto_list): New prototype.
25204 * lib/crypto.c: New file.
25205 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
25206 * lib/pbkdf2.c: Likewise.
25207 * normal/auth.c (grub_auth_strcmp): Removed.
25208 (grub_iswordseparator): Likewise.
25209 (grub_auth_strword): Likewise.
25210 (is_authenticated): Use grub_strword.
25211 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
25212 and grub_strword. Pass entered password to authentication callback.
25213 * normal/crypto.c: New file.
25214 * normal/main.c: Call read_crypto_list.
25215 * util/grub-mkpasswd-pbkdf2.c: New file.
25216 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
25217
25218 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
25219
25220 Fix descent and ascent calculation.
25221
25222 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
25223 (options): New option "asce".
25224 (usage): Likewise.
25225 (add_char): Ignore invalid glyphs for descent calculation.
25226 Calculate ascent from actual content.
25227 (print_glyphs): Use 'asce'.
25228 (write_font): Likewise. Allow ascent override.
25229 (main): Handle "asce" option.
25230
25231 2010-01-06 Carles Pina i Estany <carles@pina.cat>
25232
25233 * kern/err.c: Include `<grub/i18n.h>'.
25234 (grub_print_error): Add full stop. Gettextizze.
25235 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
25236 (grub_bsd_load_elf): Capitalise ELF.
25237 (grub_cmd_freebsd_loadenv): Add `s' in error string.
25238 (grub_cmd_freebsd_module): Likewise.
25239 (grub_cmd_freebsd_module_elf): Likewise.
25240 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
25241
25242 2010-01-06 Carles Pina i Estany <carles@pina.cat>
25243
25244 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
25245 * commands/search_file.c (HELP_MESSAGE): New macro.
25246 * commands/search_label.c (HELP_MESSAGE): Likewise.
25247 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
25248 * po/POTFILES: Add `commands/search_file.c',
25249 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
25250 `commands/search.c'.
25251
25252 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25253
25254 * config.rpath: Update from Gnulib.
25255
25256 2010-01-05 Yves Blusseau <blusseau@zetam.org>
25257
25258 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
25259
25260 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
25261
25262 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
25263
25264 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
25265
25266 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
25267 arguments to fread so that we get a return value in bytes, rather
25268 than something that will normally be rounded down to 0.
25269 Adjust error handling to avoid producing garbage when size_t is not
25270 the same size as long long.
25271
25272 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
25273
25274 * util/mkisofs/write.c (padblock_write): Check return value of
25275 fread.
25276
25277 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25278
25279 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
25280 floppy images now.
25281
25282 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
25283
25284 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25285
25286 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
25287 instead of manual alignment.
25288 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
25289 verbose). Avoid attempts to read past end of the device
25290 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
25291 but GRUB_DISK_CACHE_SIZE may exceed that).
25292
25293 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25294
25295 * commands/crc.c (grub_cmd_crc): Abort on read errors.
25296 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
25297 it to upper layer.
25298
25299 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25300
25301 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
25302 New constant.
25303 (grub_efi_piwg_device_path): New structure
25304 (grub_efi_piwg_device_path_t): New type.
25305 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
25306 (devpath_1): Transform to a structure. All users updated.
25307 (devpath_2): Likewise.
25308 (devpath_3): Likewise.
25309 (devpath_4): Likewise.
25310 (devpath_5): Likewise.
25311
25312 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25313
25314 * loader/efi/appleloader.c: Restored. Update all users.
25315
25316 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25317
25318 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
25319
25320 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
25321 (struct boot_blocklist): Move from here ...
25322 * include/grub/i386/pc/boot.h [ASM_FILE]
25323 (struct grub_boot_blocklist): ... to here. Update all users.
25324 (setup): Only initialize `start' member of `first_block'
25325 structure. Add assert() calls to verify the other members.
25326
25327 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
25328 (generate_image): Fix broken blocklist length initialization.
25329 Add assert() call to verify blocklist `segment' field.
25330
25331 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25332
25333 * loader/efi/appleloader.c: Remove. Update all users.
25334
25335 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25336
25337 * boot/i386/pc/boot.S: Update copyright year.
25338 * boot/i386/pc/cdboot.S: Likewise.
25339 * boot/i386/pc/diskboot.S: Likewise.
25340 * boot/i386/pc/lnxboot.S: Likewise.
25341 * boot/i386/pc/pxeboot.S: Likewise.
25342 * bus/pci.c: Likewise.
25343 * commands/cmp.c: Likewise.
25344 * commands/help.c: Likewise.
25345 * commands/hexdump.c: Likewise.
25346 * commands/i386/pc/halt.c: Likewise.
25347 * commands/i386/pc/play.c: Likewise.
25348 * commands/i386/pc/vbeinfo.c: Likewise.
25349 * commands/ls.c: Likewise.
25350 * commands/test.c: Likewise.
25351 * disk/dmraid_nvidia.c: Likewise.
25352 * disk/i386/pc/biosdisk.c: Likewise.
25353 * disk/ieee1275/nand.c: Likewise.
25354 * disk/ieee1275/ofdisk.c: Likewise.
25355 * disk/lvm.c: Likewise.
25356 * disk/raid.c: Likewise.
25357 * disk/raid6_recover.c: Likewise.
25358 * disk/scsi.c: Likewise.
25359 * fs/affs.c: Likewise.
25360 * fs/cpio.c: Likewise.
25361 * fs/ext2.c: Likewise.
25362 * fs/hfs.c: Likewise.
25363 * fs/iso9660.c: Likewise.
25364 * fs/ntfs.c: Likewise.
25365 * fs/sfs.c: Likewise.
25366 * fs/udf.c: Likewise.
25367 * fs/ufs.c: Likewise.
25368 * fs/xfs.c: Likewise.
25369 * gencmdlist.sh: Likewise.
25370 * genmk.rb: Likewise.
25371 * include/grub/disk.h: Likewise.
25372 * include/grub/efi/api.h: Likewise.
25373 * include/grub/efi/efi.h: Likewise.
25374 * include/grub/efi/pe32.h: Likewise.
25375 * include/grub/elf.h: Likewise.
25376 * include/grub/fs.h: Likewise.
25377 * include/grub/i386/at_keyboard.h: Likewise.
25378 * include/grub/i386/pc/memory.h: Likewise.
25379 * include/grub/i386/pc/vbe.h: Likewise.
25380 * include/grub/i386/pci.h: Likewise.
25381 * include/grub/i386/tsc.h: Likewise.
25382 * include/grub/ieee1275/ieee1275.h: Likewise.
25383 * include/grub/ntfs.h: Likewise.
25384 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
25385 * include/grub/sparc64/libgcc.h: Likewise.
25386 * include/grub/symbol.h: Likewise.
25387 * include/grub/types.h: Likewise.
25388 * include/multiboot2.h: Likewise.
25389 * io/gzio.c: Likewise.
25390 * kern/device.c: Likewise.
25391 * kern/disk.c: Likewise.
25392 * kern/efi/efi.c: Likewise.
25393 * kern/efi/mm.c: Likewise.
25394 * kern/elf.c: Likewise.
25395 * kern/file.c: Likewise.
25396 * kern/i386/dl.c: Likewise.
25397 * kern/i386/pc/init.c: Likewise.
25398 * kern/i386/pc/startup.S: Likewise.
25399 * kern/ieee1275/ieee1275.c: Likewise.
25400 * kern/ieee1275/init.c: Likewise.
25401 * kern/main.c: Likewise.
25402 * kern/mm.c: Likewise.
25403 * kern/powerpc/dl.c: Likewise.
25404 * kern/sparc64/dl.c: Likewise.
25405 * kern/x86_64/dl.c: Likewise.
25406 * lib/hexdump.c: Likewise.
25407 * loader/efi/appleloader.c: Likewise.
25408 * loader/i386/ieee1275/linux.c: Likewise.
25409 * loader/i386/pc/chainloader.c: Likewise.
25410 * loader/i386/pc/linux.c: Likewise.
25411 * loader/i386/pc/multiboot2.c: Likewise.
25412 * loader/ieee1275/multiboot2.c: Likewise.
25413 * loader/multiboot2.c: Likewise.
25414 * loader/multiboot_loader.c: Likewise.
25415 * loader/powerpc/ieee1275/linux.c: Likewise.
25416 * normal/completion.c: Likewise.
25417 * normal/menu_entry.c: Likewise.
25418 * partmap/apple.c: Likewise.
25419 * util/grub.d/10_hurd.in: Likewise.
25420 * util/hostfs.c: Likewise.
25421 * video/readers/png.c: Likewise.
25422
25423 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
25424
25425 * include/grub/misc.h (GNUC_PREREQ): New macro.
25426 (ATTRIBUTE_ERROR): New macro.
25427 * include/grub/list.h (grub_bad_type_cast_real): Use
25428 ATTRIBUTE_ERROR.
25429
25430 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25431
25432 * normal/menu_text.c (print_message): Change messages.
25433
25434 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25435
25436 * normal/menu_entry.c (store_completion): Gettextizze.
25437
25438 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25439
25440 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
25441
25442 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25443
25444 * po/POTFILES: Sort correctly.
25445
25446 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25447
25448 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
25449 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
25450 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
25451 full stop.
25452 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
25453 summary. Gettextizze the strings.
25454 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
25455 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
25456 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
25457 full stop.
25458 (GRUB_MOD_INIT): Remove command name from summary.
25459 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
25460 summary.
25461 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
25462 * term/i386/pc/serial.c (options): Add full stops.
25463 (GRUB_MOD_INIT): Remove command name from the summary.
25464
25465 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25466
25467 * commands/acpi.c: Gettextizze help strings and/or options. Include
25468 `grub/i18n.h' if needed.
25469 * commands/blocklist.c: Likewise.
25470 * commands/boot.c: Likewise.
25471 * commands/cat.c: Likewise.
25472 * commands/cmp.c: Likewise.
25473 * commands/configfile.c: Likewise.
25474 * commands/crc.c: Likewise.
25475 * commands/date.c: Likewise.
25476 * commands/echo.c: Likewise.
25477 * commands/efi/fixvideo.c: Likewise.
25478 * commands/efi/loadbios.c: Likewise.
25479 * commands/gptsync.c: Likewise.
25480 * commands/halt.c: Likewise.
25481 * commands/handler.c: Likewise.
25482 * commands/hdparm.c: Likewise.
25483 * commands/hexdump.c: Likewise.
25484 * commands/i386/cpuid.c: Likewise.
25485 * commands/i386/pc/drivemap.c: Likewise.
25486 * commands/i386/pc/halt.c: Likewise.
25487 * commands/i386/pc/pxecmd.c: Likewise.
25488 * commands/i386/pc/vbeinfo.c: Likewise.
25489 * commands/i386/pc/vbetest.c: Likewise.
25490 * commands/ieee1275/suspend.c: Likewise.
25491 * commands/keystatus.c: Likewise.
25492 * commands/loadenv.c: Likewise.
25493 * commands/ls.c: Likewise.
25494 * commands/lsmmap.c: Likewise.
25495 * commands/lspci.c: Likewise.
25496 * commands/memrw.c: Likewise.
25497 * commands/minicmd.c: Likewise.
25498 * commands/parttool.c: Likewise.
25499 * commands/password.c: Likewise.
25500 * commands/probe.c: Likewise.
25501 * commands/read.c: Likewise.
25502 * commands/reboot.c: Likewise.
25503 * commands/search.c: Likewise.
25504 * commands/sleep.c: Likewise.
25505 * commands/test.c: Likewise.
25506 * commands/true.c: Likewise.
25507 * commands/usbtest.c: Likewise.
25508 * commands/videotest.c: Likewise.
25509 * commands/xnu_uuid.c: Likewise.
25510 * disk/loopback.c: Likewise.
25511 * hello/hello.c: Likewise.
25512 * loader/i386/bsd.c: Likewise.
25513 * term/i386/pc/serial.c: Likewise.
25514 * po/POTFILES: Add new files.
25515
25516 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
25517
25518 * term/i386/pc/at_keyboard.c
25519 (keyboard_controller_wait_untill_ready): Rename to ...
25520 (keyboard_controller_wait_until_ready): ... this. Update all users.
25521
25522 2010-01-01 Carles Pina i Estany <carles@pina.cat>
25523
25524 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
25525 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
25526 string using string width.
25527 * normal/menu_text.c (grub_print_message_indented): Use
25528 grub_print_spaces and not print_spaces.
25529 (print_timeout): Likewise.
25530 (print_spaces): Move to...
25531 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
25532
25533 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
25534
25535 Import from Gnulib.
25536
25537 * gnulib/getdelim.c: New file.
25538 * gnulib/getline.c: Likewise.
25539
25540 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
25541
25542 * include/grub/list.h (grub_assert_fail): Removed.
25543 (grub_bad_type_cast_real): New function.
25544 (grub_bad_type_cast): New macro.
25545 (GRUB_AS_LIST): Use grub_bad_type_cast.
25546 (GRUB_AS_LIST_P): Likewise.
25547 (GRUB_AS_NAMED_LIST): Likewise.
25548 (GRUB_AS_NAMED_LIST_P): Likewise.
25549 (GRUB_AS_PRIO_LIST): Likewise.
25550 (GRUB_AS_PRIO_LIST_P): Likewise.
25551 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
25552
25553 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
25554
25555 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
25556 Fix syntax error.
25557
25558 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
25559
25560 * configure.ac: Check for TARGET_CFLAGS initialization before we
25561 initialize it ourselves (sigh).
25562 Move a few modifications to TARGET_CFLAGS to be unconditional
25563 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
25564 eh_frame)
25565
25566 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
25567 * term/i386/pc/at_keyboard.c
25568 (keyboard_controller_wait_untill_ready): Likewise.
25569 (keyboard_controller_led): Rename `led_status' paramter to avoid
25570 name conflict.
25571
25572 2009-12-28 Carles Pina i Estany <carles@pina.cat>
25573
25574 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
25575 quotes.
25576
25577 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25578
25579 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
25580
25581 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25582
25583 * normal/menu_text.c (grub_print_message_indented): Prevent
25584 past-the-end-of-array dereference.
25585
25586 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25587
25588 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
25589 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
25590
25591 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25592
25593 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
25594 * normal/main.c (grub_normal_read_line): Remove a space from the
25595 default prompt.
25596
25597 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25598
25599 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
25600 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25601 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25602 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25603 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25604 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25605 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25606
25607 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25608
25609 * video/readers/jpeg.c (cmd): Declare.
25610 (grub_cmd_jpegtest): Use `grub_command_t' type.
25611 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25612 Assign to `cmd'.
25613 (GRUB_MOD_FINI): Use `cmd' to unregister.
25614 * video/readers/png.c (cmd): Declare.
25615 (grub_cmd_pngtest): Use `grub_command_t' type.
25616 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25617 Assign to `cmd'.
25618 (GRUB_MOD_FINI): Use `cmd' to unregister.
25619 * video/readers/tga.c (cmd): Declare.
25620 (grub_cmd_tgatest): Use `grub_command_t' type.
25621 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25622 Assign to `cmd'.
25623 (GRUB_MOD_FINI): Use `cmd' to unregister.
25624
25625 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25626
25627 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
25628 stops.
25629 * kern/corecmd.c (grub_register_core_commands): Likewise.
25630 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
25631 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25632 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
25633 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25634 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25635 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
25636 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25637 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
25638 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25639 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25640 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25641 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25642 * normal/handler.c (insert_handler): Likewise.
25643 * normal/main.c (GRUB_MOD_INIT): Likewise.
25644 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25645
25646 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25647
25648 * commands/help.c (grub_cmd_help): Print the command name before the
25649 summary.
25650 (GRUB_MOD_INIT): Remove command name from the summary.
25651 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
25652 string as summary.
25653 * lib/arg.c (find_long): Print the command name before the summary.
25654 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
25655 summary.
25656 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
25657 * commands/cat.c (GRUB_MOD_INIT): Likewise.
25658 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
25659 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25660 * commands/crc.c (GRUB_MOD_INIT): Likewise.
25661 * commands/date.c (GRUB_MOD_INIT): Likewise.
25662 * commands/echo.c (GRUB_MOD_INIT): Likewise.
25663 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
25664 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25665 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25666 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
25667 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
25668 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
25669 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
25670 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25671 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
25672 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
25673 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
25674 * commands/ls.c (GRUB_MOD_INIT): Likewise.
25675 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25676 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25677 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25678 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
25679 * commands/password.c (GRUB_MOD_INIT): Likewise.
25680 * commands/probe.c (GRUB_MOD_INIT): Likewise.
25681 * commands/read.c (GRUB_MOD_INIT): Likewise.
25682 * commands/search.c (GRUB_MOD_INIT): Likewise.
25683 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
25684 * commands/test.c (GRUB_MOD_INIT): Likewise.
25685 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
25686 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25687 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25688 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
25689 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25690 * lib/arg.c (GRUB_MOD_INIT): Likewise.
25691 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
25692 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25693 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25694 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25695 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25696 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
25697 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
25698 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
25699
25700 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25701
25702 Use search command for preliminar UUID search.
25703
25704 * commands/search.c: Split into ...
25705 * commands/search_wrap.c: ...this
25706 * commands/search.c: ...and this.
25707 * commands/search_file.c: New file.
25708 * commands/search_label.c: New file.
25709 * commands/search_uuid.c: New file.
25710 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
25711 Add commands/search_wrap.c, commands/search_file.c,
25712 commands/search_label.c and commands/search_uuid.c.
25713 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
25714 (search_mod_SOURCES): Set to commands/search_wrap.c.
25715 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
25716 search_label.mod.
25717 (search_fs_file_mod_SOURCES): New variable.
25718 (search_fs_file_mod_CFLAGS): Likewise.
25719 (search_fs_file_mod_LDFLAGS): Likewise.
25720 (search_label_mod_SOURCES): Likewise.
25721 (search_label_mod_CFLAGS): Likewise.
25722 (search_label_mod_LDFLAGS): Likewise.
25723 (search_fs_uuid_mod_SOURCES): New variable.
25724 (search_fs_uuid_mod_CFLAGS): Likewise.
25725 (search_fs_uuid_mod_LDFLAGS): Likewise.
25726 (fs_file_mod_SOURCES): Removed.
25727 (fs_file_mod_CFLAGS): Likewise.
25728 (fs_file_mod_LDFLAGS): Likewise.
25729 (fs_uuid_mod_SOURCES): Removed.
25730 (fs_uuid_mod_CFLAGS): Likewise.
25731 (fs_uuid_mod_LDFLAGS): Likewise.
25732 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
25733 Set to util/grub-install.in.
25734 * disk/fs_file.c: Removed.
25735 * disk/fs_uuid.c: Likewise.
25736 * include/grub/search.h: New file.
25737 * util/grub-install.in: Handle sparc64.
25738 Create and use load.cfg.
25739 * util/sparc64/ieee1275/grub-install.in: Removed.
25740
25741 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25742
25743 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
25744 Ignore return status if CF is cleared.
25745 (grub_biosdisk_get_diskinfo_standard): Likewise.
25746
25747 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25748
25749 * term/i386/pc/at_keyboard.c
25750 (keyboard_controller_wait_untill_ready): New function.
25751 (grub_keyboard_controller_write, grub_keyboard_controller_read)
25752 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
25753 for keyboard polling, rather than duplicate the same loop. This
25754 saves a few bytes in code size.
25755
25756 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25757
25758 Support for (pxe[:server[:gateway]]) syntax and
25759 use environment variable for PXE.
25760
25761 * commands/i386/pc/pxecmd.c (options): Removed.
25762 (print_ip): Removed.
25763 (grub_cmd_pxe): Removed
25764 (grub_cmd_pxe_unload): New function.
25765 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
25766 (grub_pxe_your_ip): Made static.
25767 (grub_pxe_default_server_ip): Likewise.
25768 (grub_pxe_default_gateway_ip): Likewise.
25769 (grub_pxe_blksize): Likewise.
25770 (parse_ip): New function.
25771 (grub_pxe_open): Support server and gateway specification.
25772 (grub_pxe_close): Free disk->data.
25773 (grub_pxefs_open): Use disk->data.
25774 (grub_pxefs_read): Likewise.
25775 (grub_env_write_readonly): New function.
25776 (set_mac_env): Likewise.
25777 (set_env_limn_ro): Likewise.
25778 (parse_dhcp_vendor): Likewise.
25779 (grub_pxe_detect): Set the environment variables.
25780 (set_ip_env): New function.
25781 (write_ip_env): Likewise.
25782 (grub_env_write_pxe_default_server): Likewise.
25783 (grub_env_write_pxe_default_gateway): Likewise.
25784 (grub_env_write_pxe_blocksize): Likewise.
25785 (GRUB_MOD_INIT(pxe)): Set environment variables.
25786 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
25787 (grub_pxe_mac_addr_t): ... this. All users updated.
25788 (grub_pxe_your_ip): Removed.
25789 (grub_pxe_server_ip): Likewise.
25790 (grub_pxe_gateway_ip): Likewise.
25791 (grub_pxe_blksize): Likewise.
25792
25793 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25794
25795 * commands/help.c: Include `<grub/i18n.h>'.
25796 (grub_cmd_help): Gettextizze.
25797 (GRUB_MOD_INIT): Likewise.
25798 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
25799 (GRUB_MOD_INIT): Gettextizze.
25800 * commands/search.c: Include `<grub/i18n.h>'.
25801 (options): Gettextizze.
25802 (GRUB_MOD_INIT): Gettextizze.
25803 * lib/arg.c: Include `<grub/i18n.h>'.
25804 (help_options): Gettextizze.
25805 (find_long): Likewise.
25806 (grub_arg_show_help): Likewise.
25807 * normal/dyncmd.c: Include `<grub/i18n.h>'.
25808 (read_command_list): Gettextizze.
25809 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
25810 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
25811
25812 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25813
25814 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
25815 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
25816 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
25817 (led_status): New variable.
25818 (keyboard_controller_led): New function.
25819 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
25820 update led status for caps lock, num lock and scroll lock.
25821
25822 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
25823
25824 * util/hostdisk.c (open_device): Fix a comment.
25825
25826 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25827
25828 * util/grub-install.in (host_os): New variable.
25829 * util/i386/efi/grub-install.in (host_os): Likewise.
25830
25831 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25832
25833 * util/mkisofs/write.c (padblock_write): Abort when given an
25834 excedingly large embed image, instead of silently truncating it.
25835
25836 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25837
25838 * include/multiboot.h: Indentation fixes.
25839
25840 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25841
25842 * include/multiboot.h (struct multiboot_aout_symbol_table)
25843 (struct multiboot_elf_section_header_table): New structure
25844 declarations (stolen from GRUB Legacy).
25845 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
25846 table information.
25847
25848 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
25849 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
25850 type aliases.
25851
25852 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25853
25854 * include/multiboot.h: Make comments src2texi-friendly.
25855
25856 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25857
25858 For consistency with [multiboot]/docs/boot.S.
25859
25860 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
25861 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
25862 (MULTIBOOT_MAGIC2): Rename from this ...
25863 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
25864
25865 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25866
25867 * include/multiboot.h: Remove `<grub/types.h>'.
25868 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
25869 types. Update all users.
25870
25871 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25872
25873 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
25874 `couldn't' and `can not' by `cannot'.
25875 * commands/i386/pc/drivemap.c: Likewise.
25876 * disk/ata.c: Likewise.
25877 * disk/ieee1275/nand.c: Likewise.
25878 * fs/affs.c: Likewise.
25879 * fs/fat.c: Likewise.
25880 * fs/hfs.c: Likewise.
25881 * fs/hfsplus.c: Likewise.
25882 * fs/iso9660.c: Likewise.
25883 * fs/jfs.c: Likewise.
25884 * fs/minix.c: Likewise.
25885 * fs/reiserfs.c: Likewise.
25886 * fs/sfs.c: Likewise.
25887 * fs/udf.c: Likewise.
25888 * fs/ufs.c: Likewise.
25889 * fs/xfs.c: Likewise.
25890 * loader/powerpc/ieee1275/linux.c: Likewise.
25891 * loader/sparc64/ieee1275/linux.c: Likewise.
25892 * util/grub-probe.c: Likewise.
25893 * util/misc.c: Likewise.
25894
25895 2009-12-24 Carles Pina i Estany <carles@pina.cat>
25896
25897 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
25898 grub_errno calls.
25899 * commands/acpi.c: Likewise.
25900 * commands/blocklist.c: Likewise.
25901 * commands/efi/loadbios.c: Likewise.
25902 * commands/i386/pc/drivemap.c: Likewise.
25903 * commands/loadenv.c: Likewise.
25904 * commands/memrw.c: Likewise.
25905 * commands/password.c: Likewise.
25906 * commands/videotest.c: Likewise.
25907 * disk/ata.c: Likewise.
25908 * disk/ata_pthru.c: Likewise.
25909 * disk/dmraid_nvidia.c: Likewise.
25910 * disk/ieee1275/nand.c: Likewise.
25911 * disk/ieee1275/ofdisk.c: Likewise.
25912 * disk/loopback.c: Likewise.
25913 * disk/lvm.c: Likewise.
25914 * disk/mdraid_linux.c: Likewise.
25915 * disk/raid.c: Likewise.
25916 * disk/raid6_recover.c: Likewise.
25917 * disk/scsi.c: Likewise.
25918 * efiemu/main.c: Likewise.
25919 * efiemu/mm.c: Likewise.
25920 * efiemu/pnvram.c: Likewise.
25921 * efiemu/symbols.c: Likewise.
25922 * font/font.c: Likewise.
25923 * fs/cpio.c: Likewise.
25924 * fs/hfsplus.c: Likewise.
25925 * fs/iso9660.c: Likewise.
25926 * fs/jfs.c: Likewise.
25927 * fs/minix.c: Likewise.
25928 * fs/ntfs.c: Likewise.
25929 * fs/ntfscomp.c: Likewise.
25930 * fs/reiserfs.c: Likewise.
25931 * fs/ufs.c: Likewise.
25932 * fs/xfs.c: Likewise.
25933 * gettext/gettext.c: Likewise.
25934 * include/grub/auth.h: Likewise.
25935 * kern/elf.c: Likewise.
25936 * kern/file.c: Likewise.
25937 * kern/ieee1275/init.c: Likewise.
25938 * kern/ieee1275/mmap.c: Likewise.
25939 * kern/ieee1275/openfw.c: Likewise.
25940 * kern/powerpc/dl.c: Likewise.
25941 * kern/sparc64/dl.c: Likewise.
25942 * lib/arg.c: Likewise.
25943 * loader/i386/bsd.c: Likewise.
25944 * loader/i386/bsdXX.c: Likewise.
25945 * loader/i386/efi/linux.c: Likewise.
25946 * loader/i386/efi/xnu.c: Likewise.
25947 * loader/i386/ieee1275/linux.c: Likewise.
25948 * loader/i386/linux.c: Likewise.
25949 * loader/i386/multiboot.c: Likewise.
25950 * loader/i386/pc/linux.c: Likewise.
25951 * loader/i386/pc/multiboot2.c: Likewise.
25952 * loader/i386/xnu.c: Likewise.
25953 * loader/ieee1275/multiboot2.c: Likewise.
25954 * loader/macho.c: Likewise.
25955 * loader/machoXX.c: Likewise.
25956 * loader/multiboot2.c: Likewise.
25957 * loader/multiboot_loader.c: Likewise.
25958 * loader/powerpc/ieee1275/linux.c: Likewise.
25959 * loader/sparc64/ieee1275/linux.c: Likewise.
25960 * loader/xnu.c: Likewise.
25961 * loader/xnu_resume.c: Likewise.
25962 * mmap/i386/pc/mmap.c: Likewise.
25963 * normal/menu_viewer.c: Likewise.
25964 * partmap/acorn.c: Likewise.
25965 * partmap/amiga.c: Likewise.
25966 * partmap/apple.c: Likewise.
25967 * script/lexer.c: Likewise.
25968 * term/gfxterm.c: Likewise.
25969 * term/i386/pc/serial.c: Likewise.
25970 * term/i386/pc/vga.c: Likewise.
25971 * term/ieee1275/ofconsole.c: Likewise.
25972 * term/terminfo.c: Likewise.
25973 * video/bitmap.c: Likewise.
25974 * video/efi_gop.c: Likewise.
25975 * video/efi_uga.c: Likewise.
25976 * video/fb/video_fb.c: Likewise.
25977 * video/i386/pc/vbe.c: Likewise.
25978 * video/readers/tga.c: Likewise.
25979 * video/video.c: Likewise.
25980
25981 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
25982
25983 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
25984 * commands/lspci.c: Likewise.
25985 * commands/probe.c: Likewise.
25986 * commands/xnu_uuid.c: Likewise.
25987 * conf/i386-coreboot.rmk: Likewise.
25988 * conf/i386-efi.rmk: Likewise.
25989 * conf/i386-ieee1275.rmk: Likewise.
25990 * conf/i386-pc.rmk: Likewise.
25991 * conf/powerpc-ieee1275.rmk: Likewise.
25992 * conf/sparc64-ieee1275.rmk: Likewise.
25993 * conf/x86_64-efi.rmk: Likewise.
25994 * fs/i386/pc/pxe.c: Likewise.
25995 * gettext/gettext.c: Likewise.
25996 * include/grub/efi/graphics_output.h: Likewise.
25997 * include/grub/i386/pc/memory.h: Likewise.
25998 * kern/env.c: Likewise.
25999 * kern/i386/qemu/startup.S: Likewise.
26000 * lib/i386/pc/biosnum.c: Likewise.
26001 * lib/i386/relocator.c: Likewise.
26002 * lib/i386/relocator_asm.S: Likewise.
26003 * lib/relocator.c: Likewise.
26004 * loader/i386/bsd.c: Likewise.
26005 * loader/i386/multiboot.c: Likewise.
26006 * loader/i386/pc/chainloader.c: Likewise.
26007 * loader/i386/xnu.c: Likewise.
26008 * loader/xnu.c: Likewise.
26009 * normal/main.c: Likewise.
26010 * normal/menu_text.c: Likewise.
26011 * util/getroot.c: Likewise.
26012 * util/grub-mkconfig_lib.in: Likewise.
26013 * util/grub.d/00_header.in: Likewise.
26014 * util/i386/pc/grub-mkimage.c: Likewise.
26015 * util/mkisofs/eltorito.c: Likewise.
26016 * util/mkisofs/exclude.h: Likewise.
26017 * util/mkisofs/hash.c: Likewise.
26018 * util/mkisofs/iso9660.h: Likewise.
26019 * util/mkisofs/joliet.c: Likewise.
26020 * util/mkisofs/mkisofs.c: Likewise.
26021 * util/mkisofs/mkisofs.h: Likewise.
26022 * util/mkisofs/multi.c: Likewise.
26023 * util/mkisofs/name.c: Likewise.
26024 * util/mkisofs/rock.c: Likewise.
26025 * util/mkisofs/tree.c: Likewise.
26026 * util/mkisofs/write.c: Likewise.
26027 * video/efi_gop.c: Likewise.
26028
26029 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
26030
26031 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
26032 size counting.
26033
26034 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
26035
26036 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
26037 * genmk.rb (class SCRIPT): Modify the target file instead of source.
26038
26039 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26040
26041 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
26042 (GRUB_MOD_INIT(memrw)): Update help line.
26043
26044 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26045
26046 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
26047 Use grub_extcmd_t. All users updated.
26048 (options): New variable.
26049 (grub_cmd_read): Restructure for readability. Support "-v" option.
26050 (grub_cmd_write): Restructure for readability.
26051
26052 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
26053
26054 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
26055
26056 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
26057
26058 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
26059 with the actual contents of the correspondending make variable.
26060 * util/grub-mkrescue.in (pkglib_DATA): New variable.
26061 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
26062 specifying `*.lst' and `efiemu??.o'
26063
26064 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
26065
26066 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
26067 after function name.
26068 Noticed by Rene Engelhard <rene@debian.org>.
26069
26070 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26071
26072 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
26073 (options): New variable.
26074 (iospace): Likewise.
26075 (grub_lspci_iter): List IO spaces if "-i" was given.
26076 (grub_cmd_lspci): Parse options.
26077 (GRUB_MOD_INIT(lspci)): Use extcmd.
26078 (GRUB_MOD_FINI(lspci)): Likewise.
26079
26080 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
26081
26082 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
26083 `function' keyword.
26084 Patch by Tony Mancill <tmancill@debian.org>.
26085
26086 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26087
26088 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
26089 (grub_uhci_portstatus): Likewise.
26090 (grub_uhci_portstatus): Add necessary delay.
26091 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
26092
26093 2009-12-21 Carles Pina i Estany <carles@pina.cat>
26094
26095 * commands/acpi.c (options): Fix capitalizations and/or full stops.
26096 (GRUB_MOD_INIT): Likewise.
26097 * commands/boot.c (GRUB_MOD_INIT): Likewise.
26098 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
26099 * commands/echo.c (options): Fix capitalizations and/or full stops.
26100 * commands/efi/loadbios.c (enable_rom_area): Likewise.
26101 (enable_rom_area): Likewise.
26102 (GRUB_MOD_INIT): Likewise.
26103 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
26104 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
26105 * commands/handler.c (GRUB_MOD_INIT): Likewise.
26106 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
26107 * commands/hexdump.c (options): Likewise.
26108 * commands/i386/cpuid.c (options): Likewise.
26109 (GRUB_MOD_INIT): Likewise.
26110 * commands/i386/pc/drivemap.c (options): Likewise.
26111 (GRUB_MOD_INIT): Likewise.
26112 * commands/i386/pc/halt (options): Likewise.
26113 (GRUB_MOD_INIT): Likewise.
26114 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
26115 * commands/i386/pc/pxecmd.c (options): Likewise.
26116 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
26117 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
26118 * commands/keystatus.c (options): Likewise.
26119 (GRUB_MOD_INIT): Likewise.
26120 * commands/loadenv.c (options): Likewise.
26121 * commands/ls.c (options): Likewise.
26122 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
26123 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
26124 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
26125 * commands/parttool.c (helpmsg): Likewise.
26126 * commands/probe.c (options): Likewise.
26127 * commands/read.c (GRUB_MOD_INIT): Likewise.
26128 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
26129 * commands/search.c (options): Likewise.
26130 * commands/sleep.c (options): Likewise.
26131 * commands/test.c (GRUB_MOD_INIT): Likewise.
26132 * commands/true.c (GRUB_MOD_INIT): Likewise.
26133 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
26134 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
26135 * lib/arg.c (help_options): Likewise.
26136 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
26137 `$(XGETTEXT)'.
26138 * po/POTFILES: Add `commands/loadenv.c'.
26139
26140 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
26141
26142 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
26143 instead of specifying them explicit.
26144
26145 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26146
26147 * NEWS: Add grub-probe support for GNU/Hurd.
26148
26149 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26150
26151 * NEWS: gettext was added after 1.97.
26152
26153 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26154
26155 * util/mkisofs/msdos_partition.h: New file (based on
26156 include/grub/msdos_partition.h).
26157 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
26158 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
26159 (ld_options, main): Recognize --protective-msdos-label.
26160 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
26161 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
26162 (padblock_write): If `use_protective_msdos_label' is set, patch a
26163 protective DOS-style label in the output image.
26164
26165 * util/grub-mkrescue.in: Use --protective-msdos-label.
26166
26167 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26168
26169 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
26170 boot.
26171
26172 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26173
26174 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
26175 variables.
26176 (ld_options, main): Recognize `--embedded-boot'.
26177 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
26178 declarations.
26179 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
26180 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
26181 (padblock_write): Likewise. Rewrite to support embedded boot image.
26182
26183 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
26184 for BIOS-based disk boot instead of only ElTorito.
26185
26186 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26187
26188 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
26189 build (not needed for bootstrap).
26190
26191 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26192
26193 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
26194 from i386-pc build (not needed for bootstrap).
26195 Rewrite a pair of strings.
26196
26197 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26198
26199 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
26200
26201 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
26202
26203 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
26204
26205 2009-12-21 Andreas Born <futur.andy@googlemail.com>
26206
26207 * kern/env.c (grub_env_context_open): Mark exported variable for
26208 reexport.
26209
26210 2009-12-21 Andreas Born <futur.andy@googlemail.com>
26211
26212 * kern/env.c (grub_env_export): Create nonexistent variables before
26213 exporting.
26214
26215 2009-12-20 Carles Pina i Estany <carles@pina.cat>
26216
26217 * include/grub/auth.h: Include `<grub/i18n.h>'.
26218 (GRUB_GET_PASSWORD): Gettextizze string.
26219 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
26220 menu_text.c.
26221 (grub_utf8_to_ucs4_alloc): Fix indentation.
26222 (grub_print_ucs4): Likewise.
26223 (grub_getstringwidth): Likewise.
26224 (print_message_indented): New declaration.
26225 * normal/auth.c: Include `<grub/i18n.h>'.
26226 (grub_auth_check_authentication): Gettexttize string.
26227 * normal/cmdline.c: Include `<grub/i18n.h>'.
26228 (grub_cmdline_get): Gettextizze.
26229 * normal/color.c: Include `<grub/i18n.h>'.
26230 (grub_parse_color_name_pair): Gettexttize strings.
26231 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
26232 string (use `print_message_indented').
26233 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
26234 `include/grub/normal.h'.
26235 (print_message_indented): Renamed to ...
26236 (grub_print_message_indented): ... this. Remove `static' qualifer (now
26237 used in normal/main.c).
26238 (print_message): Use `grub_print_message_indented' instead of
26239 `print_message_indented'.
26240 (print_timeout): Likewise.
26241 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
26242 (grub_normal_print_device_info): Gettexttize strings.
26243 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
26244
26245 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26246
26247 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
26248 of arguments. Return number of tokens and not arguments. All users
26249 updated.
26250
26251 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26252
26253 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
26254 non-MSDOS paritions.
26255
26256 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
26257
26258 * include/grub/types.h (UNUSED): Removed since it conflicts with
26259 NetBSD headers. All users changed to direct __attribute__ ((unused)).
26260 Reported by Grégoire Sutre.
26261
26262 2009-12-19 Carles Pina i Estany <carles@pina.cat>
26263
26264 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
26265 (grub_print_ucs4_alloc): Likewise.
26266 (grub_getstringwidth): Likewise.
26267 * normal/main.c (grub_normal_init_page): Gettextize version string.
26268 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
26269 (getstringwidth): Renamed to ...
26270 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
26271 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
26272 (grub_print_ucs4): Remove `static' qualifer (now used in
26273 normal/main.c).
26274 * po/POTFILES: Add normal/main.c.
26275
26276 2009-12-19 Carles Pina i Estany <carles@pina.cat>
26277
26278 * normal/menu_text.c (STANDARD_MARGIN): New macro.
26279 (print_message_indented): Add `margin_left' and `margin_right'
26280 parameters.
26281 (print_message): Update `print_message_indented' calls. Adds '\n' to the
26282 strings.
26283 (print_timeout): Use `print_message_indented' to print the message.
26284 Deletes `second_stage' parameter.
26285 (run_menu): Update `print_timeout' calls.
26286
26287 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26288
26289 Fix console palette on OpenFirmware.
26290
26291 * term/ieee1275/ofconsole.c (MAX): Removed.
26292 (colors): Redone based on VGA palette.
26293 (grub_ofconsole_setcolor): Discard brightness bit since only 8
26294 colors are supported.
26295 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
26296
26297 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26298
26299 Fix potential EfiEmu double prepare.
26300
26301 * efiemu/main.c (prepared): New variable
26302 (grub_efiemu_unload): Set prepare to '0'.
26303 (grub_efiemu_prepare): Return if already prepared. Set prepared.
26304
26305 set_virtual_address_map support.
26306
26307 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
26308 prototype.
26309 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
26310 prototype.
26311 (grub_efiemu_crc32): Likewise.
26312 (grub_efiemu_crc64): Likewise.
26313 (grub_efiemu_set_virtual_address_map): Likewise.
26314 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
26315 New definition.
26316 (grub_autoefi_set_virtual_address_map): Likewise.
26317 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
26318 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
26319 Restructure flow to accomodate it.
26320 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
26321 (grub_efiemu_crc): Recompute CRC32.
26322 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
26323 (efiemu_ptv_relocated): ... this. Made global. All users updated.
26324 * efiemu/symbols.c (relocated_handle): New variable.
26325 (grub_efiemu_free_syms): Free relocated_handle.
26326 (grub_efiemu_alloc_syms): Allocate relocated_handle.
26327 (grub_efiemu_write_sym_markers): New function.
26328 (grub_efiemu_set_virtual_address_map): Likewise.
26329
26330 Newer XNU parameters.
26331
26332 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
26333 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
26334 (grub_xnu_fill_devicetree): New prototype.
26335 (grub_xnu_heap_real_start): New variable.
26336 * loader/xnu.c (get_name_ptr): New function.
26337 (grub_xnu_load_driver): Fill namelen and name.
26338
26339 64-bit xnu support.
26340
26341 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
26342 and 'loader/macho64.c'.
26343 * conf/i386-pc.rmk: Likewise.
26344 * conf/x86_64-efi.rmk: Likewise.
26345 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
26346 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
26347 * include/grub/macho.h (grub_macho_segment64): New structure.
26348 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
26349 (grub_macho_size32): ... to this.
26350 (grub_macho32_get_entry_point): Renamed from ...
26351 (grub_macho_get_entry_point32): ... to this.
26352 (grub_macho_contains_macho64): New prototype.
26353 (grub_macho_size64): Likewise.
26354 (grub_macho_get_entry_point64): Likewise.
26355 (grub_macho32_load): Renamed from ...
26356 (grub_macho_load32): ... to this.
26357 (grub_macho32_filesize): Renamed from ...
26358 (grub_macho_filesize32): ... to this.
26359 (grub_macho32_readfile): Renamed from ...
26360 (grub_macho_readfile32): ... to this.
26361 (grub_macho_filesize64): New prototype.
26362 (grub_macho_readfile64): Likewise.
26363 (grub_macho_parse32): Likewise.
26364 (grub_macho_parse64): Likewise.
26365 * loader/macho.c: Split into ...
26366 * loader/machoXX.c: ... and this. Replace 32 with XX.
26367 * loader/macho32.c: New file.
26368 * loader/macho64.c: Likewise.
26369 * loader/xnu.c (grub_xnu_is_64bit): New variable.
26370 (grub_cmd_xnu_kernel): Make 32-bit only.
26371 (grub_cmd_xnu_kernel64): New function.
26372 (grub_xnu_load_driver): Support Mach-O 64.
26373 (grub_cmd_xnu_mkext): Likewise.
26374 * util/grub.d/30_os-prober.in (osx_entry): New function.
26375 Generate entries for 64-bit boot too.
26376
26377 Eliminate ad-hoc tree format in XNU and EfiEmu.
26378
26379 * efiemu/main.c (grub_efiemu_prepare): Update comment.
26380 * efiemu/pnvram.c: Rewritten to use environment variables.
26381 All users updated.
26382
26383 Inline utf16_to_utf8.
26384
26385 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
26386 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
26387 All users updated.
26388 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
26389
26390 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
26391 * commands/usbtest.c (grub_usb_get_string): ... move here.
26392 (usb_print_str): Fix error handling.
26393 * include/grub/usb.h (grub_usb_get_string): Remove.
26394
26395 UTF-8 to UTF-16 transformation.
26396
26397 * conf/common.rmk (pkglib_MODULES): Add charset.mod
26398 (charset_mod_SOURCES): New variable.
26399 (charset_mod_CFLAGS): Likewise.
26400 (charset_mod_LDFLAGS): Likewise.
26401 * include/grub/utf.h: New file.
26402 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
26403
26404 Support for device properties.
26405
26406 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
26407 (grub_xnu_devprop_device_header): Likewise.
26408 (grub_xnu_devprop_device_descriptor): Likewise.
26409 (grub_xnu_devprop_add_device): New prototype.
26410 (grub_xnu_devprop_remove_device): Likewise.
26411 (grub_xnu_devprop_remove_property): Likewise.
26412 (grub_xnu_devprop_add_property_utf8): Likewise.
26413 (grub_xnu_devprop_add_property_utf16): Likewise.
26414 (grub_cpu_xnu_init): Likewise.
26415 (grub_cpu_xnu_fini): Likewise.
26416 (grub_cpu_xnu_unload): Likewise.
26417 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
26418 (property_descriptor): Likewise.
26419 (devices): New variable.
26420 (grub_xnu_devprop_remove_property): New function.
26421 (grub_xnu_devprop_add_device): Likewise.
26422 (grub_xnu_devprop_remove_device): Likewise.
26423 (grub_xnu_devprop_add_property): Likewise.
26424 (grub_xnu_devprop_add_property_utf8): Likewise.
26425 (grub_xnu_devprop_add_property_utf16): Likewise.
26426 (hextoval): Likewise.
26427 (grub_cpu_xnu_fill_devprop): Likewise.
26428 (grub_cmd_devprop_load): Likewise.
26429 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
26430 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
26431 (cmd_devprop_load): New variable.
26432 (grub_cpu_xnu_init): New function.
26433 (grub_cpu_xnu_fini): Likewise.
26434 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
26435 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
26436 (grub_cmd_xnu_devtree): Likewise.
26437 (hextoval): New function.
26438 (unescape): Likewise.
26439 (grub_xnu_fill_devicetree): Likewise.
26440
26441 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
26442 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
26443
26444 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26445
26446 Workaround for broken ATI VBE.
26447
26448 * video/i386/pc/vbe.c (last_set_mode): New variable.
26449 (grub_vbe_set_video_mode): Set 'last_set_mode'.
26450 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
26451 (grub_video_vbe_setup): Don't check for reserved flag.
26452
26453 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
26454
26455 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
26456 the `find' command.
26457
26458 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
26459
26460 UUID support for HFS.
26461
26462 * fs/hfs.c (grub_hfs_uuid): New function.
26463 (grub_hfs_fs): New value .uuid.
26464 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
26465
26466 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
26467
26468 Fix a segfault with parsing unknown long options.
26469
26470 * util/grub-mkrelpath.c (options): Zero terminate it.
26471
26472 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26473
26474 * include/grub/misc.h (grub_puts): New declaration.
26475 (grub_puts_): Likewise.
26476 * kern/misc.c (grub_puts): New definition.
26477 (grub_puts_): Likewise.
26478
26479 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26480
26481 * util/grub-probe.c (probe): Improve error message.
26482
26483 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26484
26485 * loader/i386/multiboot_elfxx.c
26486 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
26487 initialization.
26488
26489 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26490
26491 Relocator framework
26492
26493 * loader/i386/xnu_helper.S: Removed. All users updated.
26494 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
26495 (relocator_mod_SOURCES): New variable.
26496 (relocator_mod_CFLAGS): Likewise.
26497 (relocator_mod_LDFLAGS): Likewise.
26498 (relocator_mod_ASFLAGS): Likewise.
26499 * conf/x86_64.rmk: Likewise.
26500 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
26501 (grub_multiboot_payload_entry_offset): Likewise.
26502 (grub_multiboot_forward_relocator): Likewise.
26503 (grub_multiboot_forward_relocator_end): Likewise.
26504 (grub_multiboot_backward_relocator): Likewise.
26505 (grub_multiboot_backward_relocator_end): Likewise.
26506 (grub_multiboot_payload_eip): New variable.
26507 (grub_multiboot_payload_orig): Likewise.
26508 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
26509 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
26510 * include/grub/i386/memory.h
26511 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
26512 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
26513 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
26514 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
26515 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
26516 * include/grub/i386/relocator.h: New file.
26517 * include/grub/x86_64/relocator.h: Likewise.
26518 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
26519 (XNU_RELOCATOR): New macro.
26520 (grub_xnu_launcher_start): Remove.
26521 (grub_xnu_launcher_end): Likewise.
26522 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
26523 (grub_xnu_heap_real_start): Remove.
26524 (grub_xnu_heap_start): Change to void *. All users updated.
26525 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
26526 * lib/i386/relocator.c: New file.
26527 * lib/i386/relocator_asm.S: Likewise.
26528 * lib/i386/relocator_backward.S: Likewise.
26529 * lib/mips/relocator.c: Likewise.
26530 * lib/mips/relocator_asm.S: Likewise.
26531 * lib/relocator.c: Likewise.
26532 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
26533 (entry): Removed.
26534 (playground): Likewise.
26535 (grub_multiboot_payload_orig): New variable.
26536 (grub_multiboot_payload_dest): Likewise.
26537 (grub_multiboot_payload_size): Likewise.
26538 (grub_multiboot_payload_eip): Likewise.
26539 (grub_multiboot_payload_esp): Likewise.
26540 (grub_multiboot_boot): Use grub_relocator32_boot.
26541 (grub_multiboot_unload): Free relocators.
26542 (grub_multiboot): Setup stack. Use relocators.
26543 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
26544 (grub_multiboot_load_elfXX): Use relocators.
26545 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
26546 (grub_multiboot_payload_size): Likewise.
26547 (grub_multiboot_payload_dest): Likewise.
26548 (grub_multiboot_payload_entry_offset): Likewise.
26549 (grub_multiboot_forward_relocator): Likewise.
26550 (grub_multiboot_backward_relocator): Likewise.
26551 (grub_multiboot_real_boot): Likewise.
26552 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
26553 (grub_xnu_entry_point): Likewise.
26554 (grub_xnu_arg1): Likewise.
26555 (grub_xnu_stack): Likewise.
26556 (grub_xnu_launch): Removed.
26557 (grub_xnu_boot_resume): New function.
26558 (grub_xnu_boot): Use relocators.
26559 * loader/i386/xnu_helper.S: Removed.
26560 * loader/xnu.c (grub_xnu_heap_start): New variable.
26561 (grub_xnu_heap_size): Likewise.
26562 (grub_xnu_heap_malloc): Use relocators.
26563 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
26564
26565 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26566
26567 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
26568 anything.
26569
26570 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26571
26572 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
26573 GRUB_ERR_NONE before calling grub_env_set.
26574
26575 2009-12-12 Robert Millan <rmh@aybabtu.com>
26576
26577 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
26578 * genmk.rb (video): New variable.
26579 (CLEANFILES, VIDEOFILES): Add #{video}.
26580 (#{video}): New target rule.
26581 * genvideolist.sh: New file.
26582 * Makefile.in (pkglib_DATA): Add video.lst.
26583 (video.lst): New target rule.
26584 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
26585 `video.lst'.
26586 * util/grub.d/30_os-prober.in: Replace `vbe' with
26587 ${GRUB_VIDEO_BACKEND}.
26588
26589 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
26590
26591 * THANKS: Add David Miller.
26592
26593 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
26594
26595 libpciaccess support.
26596
26597 * Makefile.in (LIBPCIACCESS): New variable.
26598 (enable_grub_emu_pci): Likewise.
26599 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
26600 util/pci.c and commands/lspci.c.
26601 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
26602 * configure.ac (grub-emu-pci): New option.
26603 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
26604 (grub_pci_device_unmap_range): Likewise.
26605 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
26606 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
26607 (grub_pci_address_t) [!GRUB_UTIL]: New type.
26608 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
26609 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
26610 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
26611 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
26612 * include/grub/pciutils.h: New file.
26613 * util/pci.c: Likewise.
26614
26615 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
26616
26617 * util/misc.c: Don't include <errno.h> twice.
26618
26619 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
26620
26621 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
26622 name in an error message.
26623 (grub_biosdisk_rw): Likewise.
26624
26625 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26626
26627 Eliminate NTFS 4Gib barrier.
26628
26629 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
26630 (read_run_data): Likewise.
26631 (grub_ntfs_read_run_list): Likewise.
26632 (grub_ntfs_read_block): Likewise.
26633 (grub_ntfs_iterate_dir): Likewise.
26634 (read_mft): Likewise.
26635 (read_data): Likewise.
26636 Use COM_LOG_LEN.
26637 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
26638 to avoid 64-bit division
26639 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
26640 (grub_ntfs_rlst): Use grub_disk_addr_t.
26641
26642 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26643
26644 Eliminate grub-fstest 4Gib barrier.
26645
26646 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
26647 (read_file): Fix error reporting.
26648
26649 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26650
26651 Eliminate hexdump 4Gib barrier.
26652
26653 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
26654 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
26655
26656 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26657
26658 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
26659 Fixes amarsh bug.
26660
26661 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
26662
26663 Remove miscellaneous files in distclean target.
26664
26665 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
26666
26667 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
26668
26669 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
26670 if they're already set. This resolves the conflict between my
26671 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
26672 fixing the --grub-probe option again.
26673 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
26674 change on 2009-10-06, so that we now once again source
26675 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26676
26677 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
26678
26679 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
26680 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
26681 `util/devicemap.c'.
26682
26683 2009-12-08 Carles Pina i Estany <carles@pina.cat>
26684
26685 * include/grub/misc.h (grub_printf_): New declaration.
26686 * kern/misc.c (grub_printf_): New definition.
26687 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
26688 instead of `grub_printf' and `_'.
26689 * normal/menu_entry.c (store_completion): Likewise.
26690 (run): Likewise.
26691 (grub_menu_entry_run): Likewise.
26692 * normal/menu_text.c (grub_wait_after_message): Likewise.
26693 (notify_booting): Likewise.
26694 (notify_fallback): Likewise.
26695 (notify_execution_failure): Likewise.
26696
26697 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
26698
26699 * configure.ac: Check for vasprintf.
26700 * util/misc.c (asprintf): Move allocation from here ...
26701 (vasprintf): ... to here. New function.
26702 (xasprintf): New function.
26703 * include/grub/util/misc.h (vasprintf, xasprintf): Add
26704 prototypes.
26705 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26706 * util/grub-mkfont.c (write_font): Likewise.
26707 * util/grub-probe.c (probe): Likewise.
26708 * util/hostdisk.c (make_device_name): Likewise.
26709
26710 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
26711
26712 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
26713 anything even prefixed with 'cdrom' as a cdrom.
26714
26715 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
26716
26717 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
26718 mount points.
26719
26720 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26721
26722 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
26723 grub_gettext_msg_list.
26724 (grub_gettext_gettranslation_from_position): Return const char *
26725 and not char *.
26726 (grub_gettext_translate): Add the translated strings into a list,
26727 returns from the list if existing there.
26728 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
26729 (grub_gettext_delete_list): Delete the list.
26730 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
26731 lang environment variable is changed.
26732 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
26733
26734 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26735
26736 Rename kernel.mod to kernel.img.
26737
26738 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
26739 (kernel_mod_EXPORTS): Rename to ...
26740 (kernel_img_EXPORTS): ... this.
26741 (kernel_mod_SOURCES): Rename to ...
26742 (kernel_img_SOURCES): ... this.
26743 (kernel_mod_HEADERS): Rename to ...
26744 (kernel_img_HEADERS): ... this. All users updated.
26745 (kernel_mod_CFLAGS): Rename to ...
26746 (kernel_img_CFLAGS): ... this.
26747 (kernel_mod_ASFLAGS): Rename to ...
26748 (kernel_img_ASFLAGS): ... this.
26749 (kernel_mod_LDFLAGS): Rename to ...
26750 (kernel_img_LDFLAGS): ... this.
26751 * conf/x86_64-efi.rmk: Likewise.
26752 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
26753 (read_kernel_image): ... this. All users updated.
26754 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
26755
26756 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26757
26758 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
26759 (print_spaces): New function.
26760 (grub_print_ucs4): New function.
26761 (getstringwidth): New function.
26762 (print_message_indented): New function.
26763 (print_message): Gettexttize strings using print_message_indented.
26764 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
26765 width.
26766 (get_entry_number): Gettextize and uses dynamic terminal width.
26767 (notify_booting, notify_fallback, notify_execution_failure):
26768 Gettextize.
26769 * normal/menu_entry.c (store_completion): Cleanup the gettextized
26770 string.
26771 (run): Likewise.
26772 (grub_menu_entry_run): Likewise.
26773 * PO/POTFILES: Add normal/menu_entry.c.
26774
26775 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26776
26777 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
26778
26779 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26780
26781 * util/grub-install.in: Install gettext .mo files.
26782 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
26783
26784 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26785
26786 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
26787 grub_dprintf.
26788
26789 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
26790
26791 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
26792 non-firmware-dependant one in realmode.S takes precedence.
26793
26794 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
26795
26796 * commands/halt.c: Replace misc arch-specific headers with
26797 `<grub/misc.h>'.
26798 * commands/reboot.c: Likewise.
26799 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
26800 `<grub/misc.h>'.
26801 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
26802 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
26803 (kernel_img_SOURCES): ... to here.
26804
26805 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
26806 * include/grub/i386/pc/init.h: Likewise.
26807 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
26808 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26809
26810 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
26811
26812 * include/grub/i386/halt.h: Remove.
26813 * include/grub/i386/reboot.h: Likewise.
26814
26815 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
26816
26817 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
26818
26819 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
26820 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
26821 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
26822 "progname.h"
26823 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26824 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26825 (usage): Add missing comma in printf.
26826
26827 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
26828
26829 Use the same reboot approach on i386 coreboot and qemu as we do on
26830 BIOS.
26831
26832 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
26833 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
26834 * kern/i386/reboot.c: Remove.
26835 * include/grub/i386/reboot.h (grub_reboot): Export function.
26836 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
26837 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
26838 0xf000:0xfff0 instead of 0xffff:0x0000.
26839 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
26840 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
26841
26842 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
26843
26844 Fix $srcdir != $objdir build.
26845
26846 * Makefile.in (po/%.po): Rewrite as ...
26847 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
26848
26849 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
26850
26851 Fix GNU/Hurd grub-install crash.
26852 * util/grub-probe.c (probe): Try to access `path' only when it is not
26853 NULL.
26854
26855 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26856
26857 Correct module naming.
26858
26859 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26860 (GRUB_MOD_INIT(efi_uga)): ... to this
26861 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26862 (GRUB_MOD_FINI(efi_uga)): ... to this
26863 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26864 (GRUB_MOD_INIT(efi_gop)): ... to this
26865 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26866 (GRUB_MOD_FINI(efi_gop)): ... to this
26867
26868 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
26869
26870 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
26871 translatable.
26872 (usage): Translate `arg' strings using gettext().
26873 Thanks to Jordi Mallach for the suggestion.
26874
26875 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26876
26877 GOP support. Based on patch from Bean
26878 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26879
26880 * video/efi_gop.c: New file.
26881 * include/grub/efi/graphics_output.h: Likewise.
26882 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
26883 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26884 variables.
26885 * conf/x86_64-efi.rmk: Likewise.
26886
26887 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26888
26889 Rename efi_fb to efi_uga.
26890
26891 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26892 'efi_uga.mod'.
26893 (efi_fb_mod_SOURCES): Rename this ...
26894 (efi_uga_mod_SOURCES): ... to this.
26895 (efi_fb_mod_CFLAGS): Rename this ...
26896 (efi_uga_mod_CFLAGS): ... to this.
26897 (efi_fb_mod_LDFLAGS): Rename this ...
26898 (efi_uga_mod_LDFLAGS): ... to this.
26899 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26900 'efi_uga.mod'.
26901 (efi_fb_mod_SOURCES): Rename this ...
26902 (efi_uga_mod_SOURCES): ... to this.
26903 (efi_fb_mod_CFLAGS): Rename this ...
26904 (efi_uga_mod_CFLAGS): ... to this.
26905 (efi_fb_mod_LDFLAGS): Rename this ...
26906 (efi_uga_mod_LDFLAGS): ... to this.
26907 * video/efi_fb.c: Move this ...
26908 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
26909
26910 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26911
26912 * po/README: New file. Explain our PO file workflow.
26913
26914 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26915
26916 * po/ChangeLog: Remove. Move relevant entries back to ...
26917 * ChangeLog: ... here.
26918 * po/ca.po: Remove (now handled by TLP).
26919 * po/id.po: Likewise.
26920 * po/zh_CN.po: Likewise.
26921 * Makefile.in (LINGUAS): Initialize in a way that supports
26922 empty set.
26923
26924 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26925
26926 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
26927 reliing on po/LINGUAS.
26928 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
26929 (po/%.po): ... this.
26930
26931 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26932
26933 * util/i386/efi/grub-mkimage.c: Include "progname.h".
26934 (main): Use `program_name' instead of nonexistent `progname'.
26935
26936 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26937
26938 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26939 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
26940
26941 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26942
26943 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
26944 commit.
26945 * conf/i386-efi.rmk: Likewise.
26946 * conf/i386-ieee1275.rmk: Likewise.
26947 * conf/powerpc-ieee1275.rmk: Likewise.
26948 * conf/sparc64-ieee1275.rmk: Likewise.
26949 * conf/x86_64-efi.rmk: Likewise.
26950
26951 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26952
26953 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
26954
26955 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26956
26957 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
26958
26959 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26960
26961 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
26962 (grub_mkdevicemap_SOURCES): New variable.
26963 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
26964 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
26965 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
26966 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
26967 (grub_mkdevicemap_SOURCES): Remove.
26968 * conf/i386-efi.rmk: Likewise.
26969 * conf/i386-ieee1275.rmk: Likewise.
26970 * conf/i386-pc.rmk: Likewise.
26971 * conf/powerpc-ieee1275.rmk: Likewise.
26972 * conf/sparc64-ieee1275.rmk: Likewise.
26973 * conf/x86_64-efi.rmk: Likewise.
26974 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
26975 (usage): Fix strings to use `program_name'.
26976 (main): Initialize gettext.
26977 * util/grub-editenv.c: Likewise.
26978 * util/grub-emu.c: Likewise.
26979 * util/grub-fstest.c: Likewise.
26980 * util/grub-mkdevicemap.c: Likewise.
26981 * util/grub-mkfont.c: Likewise.
26982 * util/grub-mkrelpath.c: Likewise.
26983 * util/grub-pe2elf.c: Likewise.
26984 * util/grub-probe.c: Likewise.
26985 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
26986 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26987 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26988
26989 * util/misc.c: Include `"progname.h"'.
26990 (progname): Remove variable.
26991 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
26992
26993 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26994
26995 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
26996 printf and print a newline after the menuentry header line.
26997 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26998
26999 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
27000
27001 autoconf >= 2.60 support $(localedir).
27002
27003 * INSTALL: Note that autoconf 2.60 is required.
27004 * configure.ac (AC_PREREQ): Bump to 2.60.
27005 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
27006 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
27007
27008 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
27009
27010 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
27011 aclocal is run.
27012
27013 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
27014
27015 * normal/main.c (grub_normal_read_line): Fix off-by-one
27016 buffer overflow.
27017
27018 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
27019
27020 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
27021 "parser.grub" in grub_command_execute() call.
27022
27023 2009-11-24 Carles Pina i Estany <carles@pina.cat>
27024
27025 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
27026 * conf/i386-efi.rmk: Likewise.
27027 * conf/i386-ieee1275.rmk: Likewise.
27028 * conf/i386-pc.rmk: Likewise.
27029 * conf/powerpc-ieee1275.rmk: Likewise.
27030 * conf/sparc64-ieee1275.rmk: Likewise.
27031 * conf/x86_64-efi.rmk: Likewise.
27032 * gettext/gettex.c: Include <grub/i18n.h>.
27033 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
27034 here ...
27035 * include/grub/i18n.h: ... to here
27036 * include/grub/i18n.h: ... to here.
27037 * kern/misc.c: Include <grub/i18n.h>
27038 (grub_gettext_dummy): Move above user.
27039
27040 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27041
27042 * util/Makefile.in (install-local): Convert a `for' into a normal
27043 shell expansion.
27044
27045 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
27046
27047 * autogen.sh: Add automake call.
27048 * config.guess: Remove.
27049 * config.sub: Likewise.
27050 * install-sh: Likewise.
27051
27052 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27053
27054 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
27055
27056 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27057
27058 * util/Makefile.in (install-local): Convert a make `$(foreach)'
27059 function to a normal shell `for'.
27060
27061 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27062
27063 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27064
27065 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27066
27067 * util/grub-mkrelpath.c: New file.
27068 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
27069 (grub_mkrelpath_SOURCES): New variable.
27070 * include/grub/util/misc.h: New function prototype.
27071 * util/misc.c (make_system_path_relative_to_its_root): New function.
27072
27073 * util/grub-mkconfig_lib.in (bindir): New variable.
27074 (grub_mkrelpath): Likewise.
27075 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
27076
27077 * util/probe.c (probe): Make the file path relative to its root.
27078 Change a info message to use the GRUB path. Enable again the
27079 check if we can read the file with GRUB facilities.
27080
27081 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
27082 to its root.
27083
27084 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27085
27086 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
27087 platform.
27088
27089 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27090
27091 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
27092 strncmp().
27093
27094 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27095
27096 * util/getroot.c (grub_util_is_dmraid): New function.
27097 (grub_util_get_dev_abstraction): Treat dmraid and multipath
27098 devices as normal ones, not as LVM.
27099
27100 2009-11-23 Carles Pina i Estany <carles@pina.cat>
27101
27102 * conf/common.rmk: Add grub-gettext_lib target and updates
27103 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
27104 LDFLAGS.
27105 * gettext/gettext.c: New file. (Reads mo files).
27106 * include/grub/file.h (grub_file_pread): New prototype.
27107 * include/grub/i18n.h (_): New prototype.
27108 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
27109 prototypes.
27110 * kern/misc.c (grub_gettext_dummy): New function.
27111 * normal/menu_text.c: Include <grub/i18n.h>.
27112 * normal/menu_text.c (print_timeout): Gettexttize string.
27113 * normal/menu_text.c (print_message): Gettexttize string.
27114 * po/POTFILES: Add `normal/menu_text.c'.
27115 * po/ca.po: Add new translations.
27116 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
27117 gettext module and defines locale_dir and lang in grub.cfg.
27118 * NEWS: Add gettext support.
27119
27120 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27121
27122 * util/hostdisk.c: Include `<grub/i18n.h>'.
27123 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
27124 (make_device_name): Rewrite using asprintf.
27125 (convert_system_partition_to_system_disk): Replace 0 with NULL.
27126 (find_system_device): If a device is not found, generate one just
27127 by reusing the OS path name.
27128 (read_device_map): Make it permissible for device.map not to exist.
27129
27130 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27131
27132 * script/sh/execute.c: Move from here ...
27133 * script/execute.c: ... to here. Update all users.
27134 * script/sh/function.c: Move from here ...
27135 * script/function.c: ... to here. Update all users.
27136 * script/sh/lexer.c: Move from here ...
27137 * script/lexer.c: ... to here. Update all users.
27138 * script/sh/main.c: Move from here ...
27139 * script/main.c: ... to here. Update all users.
27140 * script/sh/parser.y: Move from here ...
27141 * script/parser.y: ... to here. Update all users.
27142 * script/sh/script.c: Move from here ...
27143 * script/script.c: ... to here. Update all users.
27144
27145 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27146
27147 * configure.ac: Detect all `emu' platforms. Define
27148 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
27149 --enable-grub-emu logic. Disable include/grub/machine
27150 symlink on `emu' platforms.
27151
27152 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
27153 * gensymlist.sh.in: Likewise.
27154
27155 * include/grub/i386/coreboot/machine.h: Remove file.
27156 * include/grub/i386/efi/machine.h: Likewise.
27157 * include/grub/i386/ieee1275/machine.h: Likewise.
27158 * include/grub/i386/pc/machine.h: Likewise.
27159 * include/grub/i386/qemu/machine.h: Likewise.
27160 * include/grub/powerpc/ieee1275/machine.h: Likewise.
27161 * include/grub/sparc64/ieee1275/machine.h: Likewise.
27162 * include/grub/x86_64/efi/machine.h: Likewise.
27163
27164 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
27165 * commands/halt.c: Likewise.
27166 * commands/reboot.c: Likewise.
27167 * include/grub/autoefi.h: Likewise.
27168 * include/grub/i386/at_keyboard.h: Likewise.
27169 * include/grub/i386/kernel.h: Likewise.
27170 * include/grub/i386/loader.h: Likewise.
27171 * include/grub/i386/pc/memory.h: Likewise.
27172 * kern/dl.c: Likewise.
27173 * kern/i386/coreboot/init.c: Likewise.
27174 * loader/i386/bsd.c: Likewise.
27175 * loader/i386/linux.c: Likewise.
27176 * loader/multiboot_loader.c: Likewise.
27177 * term/i386/pc/serial.c: Likewise.
27178 * term/usb_keyboard.c: Likewise.
27179
27180 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
27181 `<grub/machine/machine.h>'
27182 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
27183 * util/misc.c: Remove `<grub/machine/machine.h>' and
27184 `<grub/machine/time.h>'.
27185
27186 * Makefile.in (enable_grub_emu): Remove variable.
27187 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
27188
27189 * conf/any-emu.rmk: New file.
27190 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
27191 (grub_emu_init.c): Move from here ...
27192 * conf/any-emu.rmk: ... to here.
27193
27194 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
27195 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
27196 * conf/any-emu.rmk: ... to here.
27197
27198 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27199
27200 * include/grub/parser.h (grub_parser_register): Document need
27201 of `name' parameter.
27202 * normal/main.c (grub_normal_read_line): Simplify prompt string.
27203 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
27204 "sh" to "grub".
27205
27206 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27207
27208 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
27209 `$(XGETTEXT)'.
27210 * include/grub/i18n.h (N_): New macro.
27211 * util/mkisofs/mkisofs.h: Likewise.
27212 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
27213 around N_().
27214 (usage): Use gettext() to translate help strings when printing them.
27215
27216 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27217
27218 Based on patch from Bean
27219 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
27220
27221 * video/efi_fb.c: New file.
27222 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
27223 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
27224 variables.
27225 * conf/x86_64-efi.rmk: Likewise.
27226
27227 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
27228
27229 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
27230 * util/i386/pc/grub-setup.c: Likewise.
27231
27232 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
27233
27234 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
27235 <hurd/fs.h>
27236 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
27237 file_get_storage_info to implement grub_guess_root_device.
27238
27239 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
27240
27241 * Makefile.in (target): Use make's builtin $(shell) function
27242 instead of calling directly $(SHELL) to create the locale directories,
27243 inside the $(foreach) function.
27244
27245 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
27246
27247 * util/grub-mkrescue.in: Print an error and usage if output option
27248 has not been given.
27249
27250 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
27251
27252 Patch from Loïc Minier <loic.minier@ubuntu.com>.
27253 * util/grub.d/30_os-prober.in: Cope with Linux entries where
27254 root and /boot are on different devices.
27255
27256 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27257
27258 Fix build for srcdir != objdir.
27259
27260 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
27261 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
27262 $(srcdir).
27263 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
27264 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
27265 reference for input.
27266
27267 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27268
27269 * util/grub-mkrescue.in: Use source directory direcly (without copiing
27270 or hardlinking it). Remove -J option, Joliet is not compatible with
27271 multiple source directories.
27272
27273 2009-11-21 Carles Pina i Estany <carles@pina.cat>
27274 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27275
27276 * util/grub-mkrescue.in: Recognize `--override-directory' option.
27277 (process_input_dir): New function. Process an arbitrary input
27278 directory.
27279 Misc adjustments to support both "override mode" and system-wide mode.
27280
27281 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
27282
27283 * configure.ac (UNIFONT_BDF): Rename to ...
27284 (FONT_SOURCE): ... this. Update all users.
27285
27286 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
27287
27288 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
27289 to the list of unifont files to look for.
27290
27291 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27292
27293 Patch from Joe Auricchio <jauricchio@gmail.com>
27294 * commands/minicmd.c (grub_mini_cmd_clear): New function.
27295 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
27296 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
27297
27298 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
27299
27300 * Makefile.in (install-local): Add a missing backslash.
27301
27302 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
27303
27304 * include/grub/x86_64/io.h: New file.
27305
27306 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27307
27308 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
27309 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
27310 Include `"progname.h"'.
27311 (main): Initialize gettext.
27312 * util/i386/pc/grub-setup.c: Gettexttize.
27313 * util/i386/pc/grub-mkimage.c: Likewise.
27314
27315 * Makefile.in (po/*.po): Redefine as ...
27316 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
27317
27318 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
27319
27320 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27321
27322 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
27323 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
27324 (program_name): Remove.
27325 (main): Initialize gettext support.
27326 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
27327 Include `<libintl.h>'.
27328 (_): New macro.
27329
27330 * util/mkisofs/eltorito.c: Gettexttize.
27331 * util/mkisofs/joliet.c: Likewise.
27332 * util/mkisofs/mkisofs.c: Likewise.
27333 * util/mkisofs/multi.c: Likewise.
27334 * util/mkisofs/rock.c: Likewise.
27335 * util/mkisofs/tree.c: Likewise.
27336 * util/mkisofs/write.c: Likewise.
27337
27338 * po/POTFILES: Update with new files.
27339
27340 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27341
27342 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
27343 * util/mkisofs/iso9660.h: Likewise.
27344 * util/mkisofs/joliet.c: Likewise.
27345 * util/mkisofs/mkisofs.c: Likewise.
27346 * util/mkisofs/mkisofs.h: Likewise.
27347 * util/mkisofs/rock.c: Likewise.
27348 * util/mkisofs/tree.c: Likewise.
27349 * util/mkisofs/write.c: Likewise.
27350
27351 * util/mkisofs/eltorito.c (rcsid): Remove.
27352 * util/mkisofs/hash.c: Likewise.
27353 * util/mkisofs/joliet.c: Likewise.
27354 * util/mkisofs/name.c: Likewise.
27355 * util/mkisofs/rock.c: Likewise.
27356 * util/mkisofs/tree.c: Likewise.
27357 * util/mkisofs/write.c: Likewise.
27358
27359 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27360
27361 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
27362 instead of static allocation.
27363 * util/mkisofs/match.h: Likewise.
27364
27365 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27366
27367 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
27368 and `util/grub.d/10_linux.in'.
27369 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
27370 translatable Shell files.
27371
27372 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27373
27374 * Makefile.in ($(srcdir)/aclocal.m4): New target.
27375
27376 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27377
27378 * INSTALL: Document Automake is needed for bootstrap.
27379 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
27380 * util/grub.d/10_kfreebsd.in (bindir): New variable.
27381 Add gettext initialization.
27382 (kfreebsd_entry): Make menuentry output translatable.
27383
27384 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27385
27386 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
27387 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
27388 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
27389 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
27390 (LINGUAS): Auto-generate using `po/LINGUAS'.
27391 * po/LINGUAS: New file.
27392
27393 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27394
27395 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
27396 other things).
27397 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
27398 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
27399 bindtextdomain() calls for gettext initialization.
27400
27401 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27402
27403 * gnulib/progname.c: New file (imported from Gnulib).
27404 * gnulib/progname.h: Likewise.
27405 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27406 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
27407 (usage): Replace `progname' with `program_name'.
27408 (main): Use set_program_name() for program name initialization.
27409
27410 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27411
27412 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
27413 from here ...
27414 * Makefile.in (CPPFLAGS): ... to here.
27415
27416 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27417
27418 * aclocal.m4: Move from here ...
27419 * acinclude.m4: ... to here.
27420 * autogen.sh: Add call to `aclocal'.
27421 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
27422
27423 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27424
27425 * Makefile.in (CLEANFILES): Add `po/*.mo'.
27426 (LINGUAS): New variable.
27427 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
27428 (install-local): Install MO files.
27429 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
27430 * include/grub/i18n.h: New file.
27431 * po/POTFILES: New file.
27432 * po/ca.po: New file.
27433 * util/grub.d/10_linux.in (bindir): New variable.
27434 Add gettext initialization.
27435 (linux_entry): Make menuentry output translatable.
27436 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
27437 (usage): Make --help output translatable.
27438 (main): Initialize gettext.
27439
27440 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27441
27442 * import_gcry.py: New file (written by Vladimir with minor
27443 adjustments).
27444 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
27445 ciphers.
27446 * INSTALL: Document that Python is required for bootstrap.
27447
27448 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27449
27450 Import ciphers from libgcrypt 1.4.4.
27451
27452 * lib/libgcrypt/cipher/ChangeLog
27453 * lib/libgcrypt/cipher/ac.c
27454 * lib/libgcrypt/cipher/arcfour.c
27455 * lib/libgcrypt/cipher/bithelp.h
27456 * lib/libgcrypt/cipher/blowfish.c
27457 * lib/libgcrypt/cipher/camellia-glue.c
27458 * lib/libgcrypt/cipher/camellia.c
27459 * lib/libgcrypt/cipher/camellia.h
27460 * lib/libgcrypt/cipher/cast5.c
27461 * lib/libgcrypt/cipher/cipher.c
27462 * lib/libgcrypt/cipher/crc.c
27463 * lib/libgcrypt/cipher/des.c
27464 * lib/libgcrypt/cipher/dsa.c
27465 * lib/libgcrypt/cipher/ecc.c
27466 * lib/libgcrypt/cipher/elgamal.c
27467 * lib/libgcrypt/cipher/hash-common.c
27468 * lib/libgcrypt/cipher/hash-common.h
27469 * lib/libgcrypt/cipher/hmac-tests.c
27470 * lib/libgcrypt/cipher/md.c
27471 * lib/libgcrypt/cipher/md4.c
27472 * lib/libgcrypt/cipher/md5.c
27473 * lib/libgcrypt/cipher/primegen.c
27474 * lib/libgcrypt/cipher/pubkey.c
27475 * lib/libgcrypt/cipher/rfc2268.c
27476 * lib/libgcrypt/cipher/rijndael-tables.h
27477 * lib/libgcrypt/cipher/rijndael.c
27478 * lib/libgcrypt/cipher/rmd.h
27479 * lib/libgcrypt/cipher/rmd160.c
27480 * lib/libgcrypt/cipher/rsa.c
27481 * lib/libgcrypt/cipher/seed.c
27482 * lib/libgcrypt/cipher/serpent.c
27483 * lib/libgcrypt/cipher/sha1.c
27484 * lib/libgcrypt/cipher/sha256.c
27485 * lib/libgcrypt/cipher/sha512.c
27486 * lib/libgcrypt/cipher/tiger.c
27487 * lib/libgcrypt/cipher/twofish.c
27488 * lib/libgcrypt/cipher/whirlpool.c
27489
27490 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27491
27492 Fix build for systems without error().
27493
27494 * gnulib/error.c: New file (imported from Gnulib).
27495 * gnulib/error.h: Likewise.
27496 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
27497 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
27498 (this variable is now used by error()).
27499
27500 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27501
27502 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
27503 instead of relying that char is signed.
27504
27505 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
27506
27507 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
27508 blocksize different from specified.
27509 (grub_pxefs_read): Likewise.
27510
27511 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27512
27513 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
27514
27515 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
27516 (grub_ata_readwrite): Likewise. Update 2 format strings.
27517 (grub_atapi_read): Likewise.
27518
27519 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
27520 * conf/i386.rmk (pkglib_MODULES): ... to here ...
27521 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
27522 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
27523 (ata_mod_LDFLAGS): Move from here ...
27524 * conf/i386.rmk: ... to here ...
27525 * conf/x86_64-efi.rmk: ... and here.
27526 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
27527 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
27528
27529 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27530
27531 Relicense multiboot.h, with RMS' blessing.
27532
27533 * include/multiboot.h: Change to X11 license.
27534
27535 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
27536
27537 Support --version in grub-mkisofs.
27538
27539 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
27540 (OPTION_VERSION): New macro.
27541 (ld_options): Recognize --version.
27542 (usage): Move `program_name' from here ...
27543 (program_name): ... to here. Add `static' qualifier.
27544 (main): Recognize `OPTION_VERSION'.
27545
27546 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
27547
27548 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
27549 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
27550
27551 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27552
27553 Fix help2man generation for mkisofs.
27554
27555 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
27556 (usage): Send output to stdout (rather than stderr).
27557
27558 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27559
27560 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
27561 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27562 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
27563 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27564 (bin_SCRIPTS): Add `grub-mkfloppy'.
27565 (grub_mkfloppy_SOURCES): New variable.
27566
27567 * util/grub-mkrescue.in: New file.
27568 * util/i386/pc/grub-mkfloppy.in: New file.
27569
27570 * util/i386/coreboot/grub-mkrescue.in: Remove.
27571 * util/i386/pc/grub-mkrescue.in: Remove.
27572
27573 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27574
27575 * include/grub/multiboot.h (struct grub_multiboot_header): Move
27576 from here ...
27577 * include/multiboot.h (struct multiboot_header): ... to here. Update
27578 all users.
27579 * include/grub/multiboot.h (struct grub_multiboot_info): Move
27580 from here ...
27581 * include/multiboot.h (struct multiboot_info): ... to here. Update
27582 all users.
27583 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
27584 from here ...
27585 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
27586 Update all users.
27587 * include/grub/multiboot.h (struct grub_mod_list): Move
27588 from here ...
27589 * include/multiboot.h (struct multiboot_mod_list): ... to here.
27590 Update all users.
27591
27592 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27593
27594 * include/multiboot2.h (multiboot_word): Rename from this ...
27595 (multiboot2_word): ... to this. Update all users.
27596 (multiboot_header): Rename from this ...
27597 (multiboot2_header): ... to this. Update all users.
27598 (multiboot_tag_header): Rename from this ...
27599 (multiboot2_tag_header): ... to this. Update all users.
27600 (multiboot_tag_start): Rename from this ...
27601 (multiboot2_tag_start): ... to this. Update all users.
27602 (multiboot_tag_name): Rename from this ...
27603 (multiboot2_tag_name): ... to this. Update all users.
27604 (multiboot_tag_module): Rename from this ...
27605 (multiboot2_tag_module): ... to this. Update all users.
27606 (multiboot_tag_memory): Rename from this ...
27607 (multiboot2_tag_memory): ... to this. Update all users.
27608 (multiboot_tag_unused): Rename from this ...
27609 (multiboot2_tag_unused): ... to this. Update all users.
27610 (multiboot_tag_end): Rename from this ...
27611 (multiboot2_tag_end): ... to this. Update all users.
27612
27613 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27614
27615 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
27616 this platform we should support Multiboot1 first.
27617
27618 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
27619 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
27620 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
27621
27622 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27623
27624 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
27625 of write calls (converting them to fwrite() if they aren't already).
27626 (get_torito_desc): Likewise.
27627 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
27628
27629 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27630
27631 * util/i386/pc/grub-install.in: Move from here ...
27632 * util/grub-install.in: ... to here. Update all users.
27633
27634 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
27635
27636 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
27637
27638 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27639
27640 Support for El Torito without floppy emulation.
27641
27642 * util/mkisofs/eltorito.c: Include `<errno.h>'.
27643 (init_boot_catalog): Improve error handling.
27644 (get_torito_desc): Don't use floppy emulation unless requested by
27645 user. Patch boot information table when requested via
27646 `-boot-info-table'.
27647 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
27648 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
27649 (use_boot_info_table): New variables.
27650 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
27651 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
27652 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
27653 `--eltorito-emul-floppy'.
27654 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
27655 and `OPTION_ELTORITO_EMUL_FLOPPY'.
27656 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
27657 (use_boot_info_table, get_731): New prototypes.
27658 * util/mkisofs/write.c (get_731): New function.
27659
27660 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
27661
27662 Fix the generation of the man page.
27663
27664 * util/pc/i386/grub-install.in: Source
27665 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
27666
27667 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27668
27669 Large file support for grub-mkisofs.
27670
27671 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
27672 * util/mkisofs/mkisofs.c (next_extent, last_extent)
27673 (session_start): Upgrade type to `uint64_t'. Update all users.
27674 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
27675 (struct directory_entry): Upgrade type of `starting_block' and
27676 `size' to `uint64_t'. Update all users.
27677 (struct deferred): Remove unused structure.
27678 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
27679 Update all users.
27680 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
27681 file is larger than `UINT32_MAX'.
27682 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
27683 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
27684 return value.
27685 (struct deferred_write): Upgrade type of `extent' and `size' to
27686 `uint64_t'. Update all users.
27687 (last_extent_written): Upgrade type to `uint64_t'. Update all
27688 users.
27689 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
27690 Update all users. Upgrade type of `remain' to `int64_t' and
27691 `use' to `size_t'. Use error() to handle fread() errors.
27692 (write_files): Rely on write_one_file() rather than calling
27693 xfwrite() directly.
27694
27695 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
27696
27697 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
27698
27699 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27700
27701 * util/mkisofs/fnmatch.c: Remove.
27702 * util/mkisofs/getopt1.c: Likewise.
27703 * util/mkisofs/getopt.c: Likewise.
27704 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
27705 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
27706 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
27707 `gnulib/getopt1.c' and `gnulib/getopt.c'.
27708 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
27709
27710 * configure.ac: Detect `mingw32msvc' host_os.
27711 Check for lstat(), getuid() and getgid().
27712
27713 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
27714 instances of `u_char' with `uint8_t'.
27715
27716 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
27717 [!HAVE_GETUID] (getuid): New function (stub).
27718 [!HAVE_GETGID] (getgid): Likewise.
27719 [!HAVE_LSTAT] (lstat): Likewise.
27720 [!S_IROTH] (S_IROTH): New macro (dummy).
27721 [!S_IRGRP] (S_IRGRP): Likewise.
27722
27723 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27724
27725 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
27726 conditional expression).
27727
27728 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27729
27730 Import from Gnulib.
27731
27732 * gnulib/fnmatch.c: New file.
27733 * gnulib/fnmatch.h: Likewise.
27734 * gnulib/fnmatch_loop.c: Likewise.
27735 * gnulib/getopt.c: Likewise.
27736 * gnulib/getopt.h: Likewise.
27737 * gnulib/getopt1.c: Likewise.
27738 * gnulib/getopt_int.h: Likewise.
27739 * gnulib/gettext.h: Likewise.
27740
27741 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27742
27743 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
27744 * normal/handler.c (read_handler_list): Likewise.
27745
27746 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27747
27748 Misc cleanup.
27749
27750 * kern/command.c (grub_register_command_prio): Use
27751 grub_zalloc() instead of explicitly zeroing data.
27752 * kern/list.c: Include `<grub/mm.h>'.
27753 (grub_named_list_find): Replace `0' with `NULL'.
27754 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
27755 (fs_module_list): Change type to `grub_named_list_t'. Update all
27756 users.
27757 * normal/dyncmd.c (read_command_list): Add space between function
27758 call and parenthesis.
27759 * normal/handler.c (read_handler_list): Likewise.
27760
27761 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27762
27763 * normal/auth.c (punishment_delay): Moved from here ...
27764 (grub_auth_strcmp): ... to here (inside function).
27765
27766 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27767
27768 * include/grub/list.h (struct grub_named_list): Remove `const'
27769 qualifier from `name'.
27770 (struct grub_prio_list): Likewise.
27771
27772 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27773
27774 * normal/auth.c: Include `<grub/time.h>'.
27775 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
27776
27777 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27778
27779 * normal/auth.c (punishment_delay): New variable.
27780 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
27781 (grub_auth_check_authentication): Punish failed login attempts with
27782 an incremental (2^N) delay.
27783
27784 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27785
27786 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
27787 path with $(srcdir).
27788
27789 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27790
27791 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
27792
27793 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27794
27795 * util/i386/coreboot/grub-mkrescue.in: New file.
27796 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
27797 variables.
27798
27799 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
27800 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
27801 * configure.ac: Add header and function checks to satisfy grub-mkisofs
27802 requirements.
27803 * util/mkisofs/defaults.h: New file.
27804 * util/mkisofs/eltorito.c: Likewise.
27805 * util/mkisofs/exclude.h: Likewise.
27806 * util/mkisofs/fnmatch.c: Likewise.
27807 * util/mkisofs/getopt.c: Likewise.
27808 * util/mkisofs/getopt1.c: Likewise.
27809 * util/mkisofs/hash.c: Likewise.
27810 * util/mkisofs/include/fctldefs.h: Likewise.
27811 * util/mkisofs/include/mconfig.h: Likewise.
27812 * util/mkisofs/include/prototyp.h: Likewise.
27813 * util/mkisofs/include/statdefs.h: Likewise.
27814 * util/mkisofs/iso9660.h: Likewise.
27815 * util/mkisofs/joliet.c: Likewise.
27816 * util/mkisofs/match.c: Likewise.
27817 * util/mkisofs/match.h: Likewise.
27818 * util/mkisofs/mkisofs.c: Likewise.
27819 * util/mkisofs/mkisofs.h: Likewise.
27820 * util/mkisofs/multi.c: Likewise.
27821 * util/mkisofs/name.c: Likewise.
27822 * util/mkisofs/rock.c: Likewise.
27823 * util/mkisofs/tree.c: Likewise.
27824 * util/mkisofs/write.c: Likewise.
27825
27826 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27827
27828 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
27829 being insecure.
27830
27831 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27832
27833 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
27834 `grub-mkimage' (and use $0 when possible).
27835
27836 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27837
27838 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
27839 error message for excessively large memory map.
27840
27841 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27842
27843 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
27844 executable bit.
27845
27846 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27847
27848 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
27849 message for coreboot users.
27850
27851 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
27852
27853 Fix build with GNU gold.
27854
27855 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
27856 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
27857 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
27858 link addresses.
27859 * aclocal.m4: Likewise.
27860
27861 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
27862
27863 * configure.ac (AC_PREREQ): Bump to 2.59d.
27864 * INSTALL: Make it more clear when Autoconf and Ruby are
27865 needed and when to run `./autogen.sh'.
27866
27867 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27868
27869 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
27870 OSes.
27871
27872 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27873
27874 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
27875
27876 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27877
27878 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
27879 giving it to GNU Mach.
27880
27881 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27882
27883 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
27884 GNU partition number to get internal GRUB partition number.
27885
27886 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27887
27888 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
27889 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
27890
27891 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
27892
27893 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
27894 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
27895 case.
27896
27897 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
27898
27899 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
27900
27901 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27902
27903 Fix build problem.
27904
27905 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
27906 `-isystem=$(srcdir)/include'.
27907
27908 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27909
27910 * util/i386/pc/grub-install.in: Remove hint that device.map should be
27911 checked (grub-install doesn't currently rely on it).
27912
27913 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
27914
27915 Revert SVN r2660.
27916
27917 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
27918 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27919 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
27920 * conf/i386-ieee1275.rmk: Likewise.
27921 * conf/i386-pc.rmk: Likewise.
27922 * conf/powerpc-ieee1275.rmk: Likewise.
27923 * conf/sparc64-ieee1275.rmk: Likewise.
27924 * conf/x86_64-efi.rmk: Likewise.
27925
27926 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27927
27928 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
27929
27930 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27931
27932 * include/grub/misc.h: Stop checking for APPLE_CC.
27933
27934 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27935
27936 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
27937 doesn't cause an infinite call loop.
27938
27939 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
27940
27941 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
27942 strings.
27943
27944 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27945
27946 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
27947 variable.
27948 * Makefile.in: Likewise.
27949
27950 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27951
27952 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
27953
27954 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27955
27956 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
27957
27958 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27959
27960 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
27961
27962 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27963
27964 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
27965 from here ...
27966 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
27967
27968 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27969
27970 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
27971 in $(MAKEINFO) invocation. This makes it clear in output that
27972 errors are being ignored.
27973
27974 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27975
27976 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
27977 from here ...
27978 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27979 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
27980 * conf/i386-ieee1275.rmk: Likewise.
27981 * conf/i386-pc.rmk: Likewise.
27982 * conf/powerpc-ieee1275.rmk: Likewise.
27983 * conf/sparc64-ieee1275.rmk: Likewise.
27984 * conf/x86_64-efi.rmk: Likewise.
27985
27986 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27987
27988 * util/grub-editenv.c (main): If only a command is given, use
27989 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
27990 (usage): FILENAME is now optional and has a default.
27991
27992 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27993
27994 Improve grub-mkconfig performance when there are several menu
27995 entries on a single filesystem.
27996
27997 * util/grub.d/10_linux.in (linux_entry): Cache the output of
27998 prepare_grub_to_access_device.
27999 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28000 * util/grub.d/30_os-prober.in: Likewise.
28001
28002 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28003
28004 * util/grub.d/10_freebsd.in: Remove.
28005 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
28006 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
28007
28008 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28009
28010 * docs/grub.cfg: Fix example usage of *BSD loaders.
28011
28012 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28013
28014 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
28015 grub_util_error() call.
28016
28017 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28018
28019 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
28020 `reserved_first_sector' member.
28021 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
28022 `reserved_first_sector' to 1.
28023 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
28024 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
28025 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
28026 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
28027 filesystems which begin at first sector.
28028 (options): New option --skip-fs-probe.
28029 (main): Handle --skip-fs-probe and pass it to setup().
28030
28031 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28032
28033 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
28034 (memset): Fix function prototype.
28035
28036 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28037 2009-10-25 Vasily Averin <vvs@parallels.com>
28038
28039 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
28040 `dirent.direntlen == 0'.
28041
28042 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28043
28044 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
28045 `cpio'.
28046 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
28047
28048 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28049
28050 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
28051 `__trampoline_setup' and `__ucmpdi2'.
28052 * include/grub/powerpc/libgcc.h: Only export symbols for functions
28053 that libgcc provides.
28054
28055 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28056
28057 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
28058 * include/grub/sparc64/libgcc.h (memset): Likewise.
28059 * include/grub/misc.h (memset, memcmp): New function prototypes.
28060
28061 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28062
28063 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
28064 `cpio'.
28065 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
28066
28067 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28068
28069 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
28070 * docs/grub.cfg: Compensate for recent change in multiboot
28071 loader (since 2009-08-14 it won't pass filename to payload).
28072 * util/grub.d/10_hurd.in: Likewise.
28073
28074 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
28075
28076 * config.guess: Update to latest version from config git
28077 repository.
28078 * config.sub: Likewise.
28079
28080 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
28081
28082 Fix build on sparc64.
28083
28084 * configure.ac: Perform checks for libgcc symbols before
28085 adding `-nostdlib' to LDFLAGS.
28086
28087 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
28088
28089 Let user specify OpenBSD root device.
28090
28091 * loader/i386/bsd.c (openbsd_root): New variable.
28092 (openbsd_opts): New option 'root'.
28093 (OPENBSD_ROOT_ARG): New macro.
28094 (grub_openbsd_boot): Use 'openbsd_root'.
28095 (grub_cmd_openbsd): Fill 'openbsd_root'.
28096
28097 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
28098
28099 * NEWS: Misc adjustments.
28100
28101 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
28102
28103 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
28104
28105 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
28106
28107 * configure.ac: Bump version to 1.97.
28108
28109 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
28110
28111 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
28112 -mno-3dnow on x86 architectures. Some toolchains enable these
28113 features by default, but they rely on registers that aren't enabled
28114 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
28115
28116 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
28117
28118 Make entry text a bit more readable.
28119
28120 * util/grub.d/10_linux.in: Add `with' before `Linux'.
28121
28122 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28123
28124 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
28125
28126 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28127
28128 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
28129 operations.
28130
28131 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28132
28133 * configure.ac: Add missing dollar.
28134
28135 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28136
28137 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
28138
28139 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
28140 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
28141 exports.
28142 * include/grub/sparc64/libgcc.h: Likewise. Use
28143 preprocessor conditionals.
28144
28145 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28146
28147 * conf/common.rmk (grub-dumpbios): Remove rule.
28148 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
28149 * util/grub-dumpbios.in: Remove file.
28150
28151 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28152
28153 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
28154 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
28155
28156 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
28157 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
28158 users.
28159
28160 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
28161 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
28162 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
28163 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
28164 users.
28165
28166 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
28167
28168 * term/tparm.c: Switch to GPLv3.
28169
28170 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28171
28172 * include/grub/i386/cpuid.h: Add header protection.
28173
28174 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28175
28176 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
28177
28178 * include/grub/i386/cpuid.h: New file.
28179 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
28180 (has_longmode): Rename to ...
28181 (grub_cpuid_has_longmode): ... this. Update all users. Remove
28182 `static' attribute.
28183 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
28184 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
28185 on a CPU that doesn't implement AMD64 instruction set.
28186
28187 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
28188
28189 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
28190 that version.texi is rebuilt on version number changes.
28191
28192 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
28193
28194 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
28195 Fixes bug #27602.
28196
28197 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
28198
28199 * util/i386/pc/grub-install.in: Source
28200 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
28201 that the --grub-probe option will work.
28202 * util/sparc64/ieee1275/grub-install.in: Likewise.
28203
28204 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
28205
28206 * configure.ac: Bump version to 1.97~beta4.
28207
28208 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
28209
28210 Resync grub-mkdevicemap in x86_64-efi.
28211
28212 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
28213 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
28214 `util/devicemap.c'.
28215
28216 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
28217
28218 * util/grub-editenv.c (create_envblk_file): Write new block with a
28219 .new suffix and then rename it into place, to ensure atomic
28220 creation.
28221
28222 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
28223
28224 Do not automatically install headers.
28225
28226 * Makefile.in (include_DATA): Remove. Update all users.
28227
28228 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
28229
28230 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
28231 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
28232
28233 * util/osdetect.lua: Remove.
28234 * script/lua/lauxlib.c: Likewise.
28235 * script/lua/ldebug.c: Likewise.
28236 * script/lua/grub_main.c: Likewise.
28237 * script/lua/lauxlib.h: Likewise.
28238 * script/lua/ldebug.h: Likewise.
28239 * script/lua/ltablib.c: Likewise.
28240 * script/lua/liolib.c: Likewise.
28241 * script/lua/lstrlib.c: Likewise.
28242 * script/lua/lualib.h: Likewise.
28243 * script/lua/ldo.c: Likewise.
28244 * script/lua/ldump.c: Likewise.
28245 * script/lua/ldo.h: Likewise.
28246 * script/lua/loslib.c: Likewise.
28247 * script/lua/lundump.c: Likewise.
28248 * script/lua/grub_lib.c: Likewise.
28249 * script/lua/ldblib.c: Likewise.
28250 * script/lua/lundump.h: Likewise.
28251 * script/lua/lmem.c: Likewise.
28252 * script/lua/grub_lib.h: Likewise.
28253 * script/lua/lmathlib.c: Likewise.
28254 * script/lua/lstate.c: Likewise.
28255 * script/lua/ltm.c: Likewise.
28256 * script/lua/lvm.c: Likewise.
28257 * script/lua/lmem.h: Likewise.
28258 * script/lua/lstate.h: Likewise.
28259 * script/lua/ltm.h: Likewise.
28260 * script/lua/ltable.c: Likewise.
28261 * script/lua/lvm.h: Likewise.
28262 * script/lua/llex.c: Likewise.
28263 * script/lua/lgc.c: Likewise.
28264 * script/lua/grub_lua.h: Likewise.
28265 * script/lua/loadlib.c: Likewise.
28266 * script/lua/lfunc.c: Likewise.
28267 * script/lua/lopcodes.c: Likewise.
28268 * script/lua/lparser.c: Likewise.
28269 * script/lua/ltable.h: Likewise.
28270 * script/lua/llex.h: Likewise.
28271 * script/lua/lgc.h: Likewise.
28272 * script/lua/lfunc.h: Likewise.
28273 * script/lua/lbaselib.c: Likewise.
28274 * script/lua/lopcodes.h: Likewise.
28275 * script/lua/lparser.h: Likewise.
28276 * script/lua/lzio.c: Likewise.
28277 * script/lua/linit.c: Likewise.
28278 * script/lua/lobject.c: Likewise.
28279 * script/lua/llimits.h: Likewise.
28280 * script/lua/lstring.c: Likewise.
28281 * script/lua/lzio.h: Likewise.
28282 * script/lua/lapi.c: Likewise.
28283 * script/lua/lcode.c: Likewise.
28284 * script/lua/lua.h: Likewise.
28285 * script/lua/lobject.h: Likewise.
28286 * script/lua/lstring.h: Likewise.
28287 * script/lua/lapi.h: Likewise.
28288 * script/lua/lcode.h: Likewise.
28289 * script/lua/luaconf.h: Likewise.
28290
28291 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
28292
28293 * docs/grub.texi (Command-line and menu entry commands): Document
28294 date and echo commands.
28295
28296 2009-09-24 Pavel Roskin <proski@gnu.org>
28297
28298 * include/grub/kernel.h (struct grub_module_header): Remove
28299 `grub_module_header_types'. Make `type' unsigned. Make `size'
28300 32-bit on all platforms.
28301 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
28302 8-bit field. Use grub_host_to_target32() for `size'.
28303 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
28304 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
28305 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
28306
28307 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28308
28309 Fix "lost keypress" bug in at_keyboard.
28310
28311 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
28312 Checks for readyness of input buffer (without flushing it).
28313 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
28314 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
28315
28316 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28317
28318 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
28319 size check within GRUB_MACHINE_PCBIOS section.
28320
28321 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28322
28323 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
28324 return value.
28325 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
28326 KEYBOARD_ISREADY check.
28327 (grub_at_keyboard_checkkey): Rename to ...
28328 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
28329 Remove gratuitous cast.
28330
28331 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
28332
28333 * configure.ac: Call AC_PROG_MKDIR_P.
28334 * Makefile.in (docs/stamp-vti): Create docs directory. Create
28335 version.texi in $(builddir) rather than $(srcdir).
28336 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
28337 to makeinfo's @include search path.
28338
28339 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
28340
28341 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
28342
28343 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
28344
28345 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
28346 for `*.dpkg-new'.
28347
28348 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
28349
28350 Build info documentation. Some code borrowed from Automake.
28351
28352 * configure.ac: Check for makeinfo.
28353 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
28354 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
28355 docs/version.texi.
28356 (MOSTLYCLEANFILES): Add vti.tmp.
28357 (docs/version.texi, docs/stamp-vti): Update automatically.
28358 (docs/grub.info): Build info documentation. Use --force and ignore
28359 errors for now.
28360 (all-local): Add $(INFOS).
28361 (install-local): Install info files.
28362 (uninstall): Uninstall info files.
28363 * docs/version.texi: Remove from revision control. This file is
28364 automatically generated on build now.
28365 * gendistlist.sh: Add `*.info'.
28366
28367 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
28368
28369 * kern/term.c: Fix indentation.
28370
28371 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
28372
28373 * util/hostdisk.c: Fix a comment.
28374
28375 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
28376
28377 Fix regression introduced in r2539.
28378
28379 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
28380 to 0xA1.
28381
28382 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
28383
28384 * util/grub.d/30_os-prober.in: Don't throw away stderr from
28385 os-prober. Under normal operation, it does not print anything to
28386 stderr; if it does, we need to debug it, and throwing away stderr
28387 makes that excessively difficult.
28388
28389 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
28390
28391 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
28392
28393 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28394
28395 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
28396 AC_LANG_PROGRAM from autoconf.
28397 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
28398 prototypes (fixes warning).
28399
28400 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
28401 `--disable-werror' was used.
28402
28403 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28404
28405 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
28406 uninitialized `lastaddr'.
28407
28408 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
28409
28410 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
28411
28412 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
28413
28414 * commands/test.c (get_fileinfo): Return immediately if
28415 grub_fs_probe fails.
28416
28417 2009-09-14 José Martínez <xosemp@gmail.com>
28418
28419 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
28420
28421 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
28422
28423 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
28424 output.
28425
28426 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
28427
28428 * configure.ac: Remove --enable-grub-pe2elf. Only build
28429 grub-pe2elf when needed by the build system itself.
28430 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
28431
28432 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28433
28434 * configure.ac: Bump version to 1.97~beta3.
28435 * docs/version.texi: Likewise.
28436
28437 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28438
28439 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
28440 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
28441 from here ...
28442 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
28443 (grub_linux_setup_video): ... to here (with some adjustments).
28444
28445 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28446
28447 Fix memory corruption issue (spotted by Colin Watson).
28448
28449 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
28450 causing returned size to be stored in an incorrect memory location.
28451 Fix use of uninitialized value when storing the returned size.
28452
28453 2009-09-12 Yves Blusseau <blusseau@zetam.org>
28454
28455 Change clean rules to properly remove files
28456
28457 * genmk.rb: add new clean rules
28458 * Makefile.in (clean): add the new targets
28459 (mostlyclean): likewise
28460
28461 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
28462
28463 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
28464 to grub_uint64_t.
28465 * fs/ntfs.c (init_file): Understand 64-bit sizes for
28466 non-resident files.
28467
28468 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
28469
28470 * configure.ac: Don't look for help2man when cross-compiling. Fixes
28471 part of bug #27349.
28472
28473 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
28474
28475 * util/grub-mkconfig.in: Make the created config mode 400 and
28476 print a warning if it fails.
28477
28478 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
28479
28480 * util/grub.d/40_custom.in: Ask user to type custom entries below
28481 comment, rather than below 'exec tail' line.
28482
28483 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
28484
28485 * util/grub.d/40_custom.in: Make sure that the explanatory text is
28486 visible in grub.cfg.
28487
28488 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
28489
28490 * util/grub.d/40_custom.in: Make it a little clearer how to use this
28491 file.
28492
28493 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
28494
28495 * docs/grub.cfg: Add an example menu entry for memtest86+.
28496
28497 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
28498
28499 * config.guess: Update to latest version from config git.
28500 * config.sub: Likewise.
28501
28502 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
28503
28504 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
28505 unknown-command case. Fixes bug #27320.
28506
28507 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
28508
28509 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
28510 `help' if the command exists.
28511
28512 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
28513
28514 * INSTALL: Require GCC 4.1.3 or later.
28515
28516 2009-09-06 Yves Blusseau <blusseau@zetam.org>
28517
28518 * Makefile.in (RMKFILES): add i386-qemu.rmk
28519 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
28520 $(srcdir)/stamp-h.in
28521
28522 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
28523
28524 * util/grub-probe.c (probe): Comment out buggy codepath, which
28525 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
28526 should be re-enabled after 1.97.
28527
28528 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
28529
28530 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
28531 find searches for.
28532
28533 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
28534
28535 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
28536 unnecessary calls to grub_error.
28537
28538 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
28539
28540 * NEWS: Mention `keystatus' and Unicode fonts.
28541
28542 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
28543
28544 * configure.ac: Bump version to 1.97~beta2.
28545 * docs/version.texi: Likewise.
28546
28547 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28548
28549 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
28550 containing unwind information in some cases where it previously did
28551 not. Use -fno-dwarf2-cfi-asm if available to restore the old
28552 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
28553 discussion.
28554
28555 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
28556
28557 Embedding loadenv module into grub-emu
28558
28559 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
28560 commands/loadenv.c
28561 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
28562 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
28563 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
28564 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
28565 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
28566 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
28567
28568 2009-09-03 Magnus Granberg <zorry@ume.nu>
28569
28570 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
28571 include -fPIE in the default specs.
28572 * configure.ac: Check if pie_possible is yes and add -fno-PIE
28573 to TARGET_CFLAGS.
28574
28575 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
28576
28577 * INSTALL: Note that GNU Bison 2.3 or later is required.
28578
28579 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28580
28581 * kern/i386/pc/startup.S: Fix typo.
28582
28583 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
28584
28585 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
28586 according to GCS.
28587
28588 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28589
28590 * docs/grub.texi (Naming convention): Describe one-based partition
28591 numbering.
28592 (Device syntax): Likewise.
28593 (File name syntax): Likewise.
28594 (Block list syntax): Likewise.
28595 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
28596 menu.lst.
28597 (File name syntax): Likewise.
28598 (Command-line and menu entry commands): Document acpi, blocklist,
28599 crc, export, insmod, keystatus, ls, set, and unset commands.
28600
28601 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28602
28603 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
28604 to avoid implying that only one of --shift, --ctrl, or --alt may be
28605 used.
28606
28607 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28608
28609 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
28610 rather than comparing against S_IFREG, which will almost never work.
28611
28612 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
28613
28614 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
28615 (write_blocklists): Likewise.
28616
28617 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
28618
28619 * script/lua/grub_lua.h (fputs): Supply a format string as the first
28620 argument to grub_printf.
28621
28622 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
28623
28624 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
28625 non GNU test.
28626
28627 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28628
28629 * kern/file.c (grub_file_read): Spelling fix
28630
28631 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28632
28633 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
28634 loading of headers in some cases.
28635
28636 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
28637
28638 * configure.ac: Bump version to 1.97~beta1.
28639 * docs/version.texi: Likewise.
28640
28641 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
28642
28643 * include/grub/i386/xnu.h: Add license header.
28644 include grub/err.h explicitly.
28645
28646 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28647
28648 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
28649 to `ufs' in the vfs.root.mountfrom kernel parameter.
28650
28651 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28652
28653 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
28654
28655 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
28656 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
28657
28658 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
28659 `ARRAY_SIZE' macro.
28660
28661 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28662
28663 * kern/file.c (grub_file_read): Check offset.
28664 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
28665 * fs/jfs.c (grub_jfs_read_file): Likewise.
28666 * fs/ntfs.c (grub_ntfs_read): Likewise.
28667 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
28668 * fs/minix.c (grub_minix_read_file): Correct offset check.
28669 * fs/ufs.c (grub_ufs_read_file): Likewise.
28670
28671 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28672
28673 * term/i386/pc/console.c (bios_data_area): Cast
28674 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
28675
28676 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28677
28678 1-bit optimised blitters.
28679
28680 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
28681 prototype.
28682 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28683 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28684 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28685 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28686 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28687 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28688 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
28689 function.
28690 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28691 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28692 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28693 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28694 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28695 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28696 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
28697 when possible.
28698 * video/video.c (grub_video_get_blit_format): Return
28699 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
28700
28701 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28702
28703 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
28704 the first argument to grub_printf.
28705
28706 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28707 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
28708
28709 Add `getkeystatus' terminal method. Add a new `keystatus' command
28710 to query it.
28711
28712 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
28713 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
28714 modifier key bitmasks.
28715 (struct grub_term_input): Add `getkeystatus' member.
28716 (grub_getkeystatus): Add prototype.
28717 * kern/term.c (grub_getkeystatus): New function.
28718
28719 * include/grub/i386/pc/memory.h
28720 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
28721 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
28722 Data Area layout.
28723 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
28724 (grub_console_term_input): Set `getkeystatus' member.
28725 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
28726 constants.
28727 (grub_usb_keyboard_getreport): Likewise.
28728 (grub_usb_keyboard_checkkey): Likewise.
28729 (grub_usb_keyboard_getkeystatus): New function.
28730 (grub_usb_keyboard_term): Set `getkeystatus' member.
28731
28732 * commands/keystatus.c: New file.
28733 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
28734 (keystatus_mod_SOURCES): New variable.
28735 (keystatus_mod_CFLAGS): Likewise.
28736 (keystatus_mod_LDFLAGS): Likewise.
28737 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
28738 commands/keystatus.c.
28739 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28740 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28741 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28742 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28743 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28744 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28745
28746 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28747
28748 Split befs.mod and afs.mod into *_be.mod and *.mod
28749
28750 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
28751 (grub_fstest_SOURCES): Likewise.
28752 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
28753 (afs_be_mod_SOURCES): New variable.
28754 (afs_be_mod_CFLAGS): Likewise.
28755 (afs_be_mod_LDFLAGS): Likewise.
28756 (befs_be_mod_SOURCES): Likewise.
28757 (befs_be_mod_CFLAGS): Likewise.
28758 (befs_be_mod_LDFLAGS): Likewise.
28759 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
28760 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28761 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28762 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28763 (grub_emu_SOURCES): Likewise.
28764 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28765 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28766 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28767 * fs/afs_be.c: New file.
28768 * fs/befs_be.c: New file.
28769 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
28770 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
28771 (U16): Replaced with ...
28772 (grub_afs_to_cpu16): ...this. All users updated.
28773 (U32): Replaced with ...
28774 (grub_afs_to_cpu32): ...this. All users updated.
28775 (U64): Replaced with ...
28776 (grub_afs_to_cpu64): ...this. All users updated.
28777 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
28778 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
28779 (grub_afs_validate_sblock): Check only one endianness.
28780 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28781 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28782 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28783 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28784 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28785 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28786 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28787 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28788
28789 2009-08-26 Bean <bean123ch@gmail.com>
28790
28791 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
28792 64-bit number.
28793 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
28794 (grub_xfs_inode_block): Change return type to grub_uint64_t.
28795 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
28796
28797 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28798
28799 NetBSD memory map support.
28800
28801 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
28802 (grub_netbsd_btinfo_mmap_header): New structure.
28803 (grub_netbsd_btinfo_mmap_entry): Likewise.
28804 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
28805
28806 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28807
28808 Enable bsd.mod on coreboot.
28809
28810 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
28811 (bsd_mod_SOURCES): New variable.
28812 (bsd_mod_CFLAGS): Likewise.
28813 (bsd_mod_LDFLAGS): Likewise.
28814 (bsd_mod_ASFLAGS): Likewise.
28815 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
28816 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
28817
28818 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28819
28820 Cleanup NetBSD root support.
28821
28822 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
28823 grub_bsd_get_device.
28824 Fix typo.
28825
28826 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
28827
28828 * util/grub.d/00_header.in: Move check for the video backend of
28829 gfxterm from here ...
28830 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
28831 a suitable video backend.
28832
28833 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28834
28835 Fix breakage in grub-setup.
28836
28837 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
28838 "msdos_partition_map".
28839
28840 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28841
28842 Fix breakage in normal/auth.c.
28843
28844 * normal/auth.c (grub_iswordseparator): New function.
28845
28846 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28847
28848 Authentication support.
28849
28850 * commands/password.c: New file.
28851 * conf/common.rmk (pkglib_MODULES): Add password.mod.
28852 (password_mod_SOURCES): New variable.
28853 (password_mod_CFLAGS): Likewise.
28854 (password_mod_LDFLAGS): Likewise.
28855 (normal_mod_SOURCES): Add normal/auth.c.
28856 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
28857 normal/auth.c.
28858 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28859 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28860 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28861 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28862 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28863 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28864 * include/grub/auth.h: New file.
28865 * include/grub/err.h (grub_err_t): New enum value
28866 GRUB_ERR_ACCESS_DENIED.
28867 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
28868 'users'.
28869 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
28870 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
28871 users updated.
28872 * normal/auth.c: New file.
28873 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
28874 (grub_cmdline_run): Don't allow to go to command line without
28875 authentication.
28876 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
28877 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
28878 menuentry without superuser rights.
28879 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
28880 user isn't a superuser.
28881
28882 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28883
28884 Save space by inlining misc.c functions.
28885
28886 * kern/misc.c (grub_iswordseparator): Made static.
28887 * kern/misc.c (grub_strcat): Moved from here ...
28888 * include/grub/misc.h (grub_strcat): ... here. Inlined.
28889 * kern/misc.c (grub_strncat): Moved from here ...
28890 * include/grub/misc.h (grub_strncat): ... here. Inlined.
28891 * kern/misc.c (grub_strcasecmp): Moved from here ...
28892 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
28893 * kern/misc.c (grub_strncasecmp): Moved from here ...
28894 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
28895 * kern/misc.c (grub_isalpha): Moved from here ...
28896 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
28897 * kern/misc.c (grub_isdigit): Moved from here ...
28898 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
28899 * kern/misc.c (grub_isgraph): Moved from here ...
28900 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
28901 * kern/misc.c (grub_tolower): Moved from here ...
28902 * include/grub/misc.h (grub_tolower): ... here. Inlined.
28903
28904 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28905
28906 * script/sh/function.c (grub_script_function_find): Cut error message
28907 not to flood terminal.
28908 * script/sh/lexer.c (grub_script_yylex): Remove command line length
28909 limit.
28910 * script/sh/script.c (grub_script_arg_add): Duplicate string.
28911
28912 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
28913
28914 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
28915 `report' grub_uint8_t *.
28916 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
28917 Use a 50-millisecond timeout rather than just repeating
28918 grub_usb_keyboard_getreport 50 times.
28919 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
28920
28921 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28922
28923 Rename *_partition_map to part_*
28924
28925 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
28926 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
28927 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
28928 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
28929 All users updated.
28930 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
28931 All users updated.
28932 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
28933 * util/grub-probe.c (probe_partmap): Don't transform partition name
28934 to get module name.
28935
28936 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28937
28938 Fix OpenBSD and NetBSD support.
28939
28940 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
28941 memory address conflict.
28942 (OPENBSD_MMAP_ACPI): New definition.
28943 (OPENBSD_MMAP_NVS): Likewise.
28944 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
28945 and OPENBSD_MMAP_NVS.
28946 Add memory map terminator
28947 Explicit cast when calling grub_unix_real_boot.
28948 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
28949
28950 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28951
28952 Let user specify NetBSD root device.
28953
28954 * loader/i386/bsd.c (netbsd_root): New variable.
28955 (netbsd_opts): New option 'root'.
28956 (NETBSD_ROOT_ARG): New macro.
28957 (grub_netbsd_boot): Use 'netbsd_root'.
28958 (grub_bsd_unload): Free 'netbsd_root'.
28959 (grub_cmd_netbsd): Fill 'netbsd_root'.
28960
28961 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28962
28963 Support for 64-bit NetBSD.
28964
28965 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
28966 point when booting non-FreeBSD.
28967
28968 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28969
28970 Support --no-smp and --no-acpi for NetBSD.
28971
28972 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
28973 (NETBSD_AB_NOACPI): Likewise.
28974 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
28975 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
28976
28977 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28978
28979 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
28980 errors.
28981 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
28982 errors. Call grub_error when needed.
28983
28984 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28985
28986 * commands/search.c (search_fs): Try searching without autoload first.
28987 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
28988 filesystem module explicitly for faster booting.
28989
28990 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28991
28992 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
28993
28994 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28995
28996 * util/grub.d/30_os-prober.in: Disable os-prober if
28997 `GRUB_DISABLE_OS_PROBER' was set to true.
28998
28999 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
29000
29001 * partmap/pc.c: Rename to ...
29002 * partmap/msdos.c: ... this. Update all users.
29003 (grub_pc_partition_map): Rename to ...
29004 (grub_msdos_partition_map): ... this. Update all users.
29005
29006 * parttool/pcpart.c: Rename to ...
29007 * parttool/msdospart.c: ... this. Update all users.
29008
29009 * include/grub/pc_partition.h: Rename to ...
29010 * include/grub/msdos_partition.h: ... this. Update all users.
29011 (grub_pc_partition_bsd_entry): Rename to ...
29012 (grub_msdos_partition_bsd_entry): ... this. Update all users.
29013 (grub_pc_partition_disk_label): Rename to ...
29014 (grub_msdos_partition_disk_label): ... this. Update all users.
29015 (grub_pc_partition_entry): Rename to ...
29016 (grub_msdos_partition_entry): ... this. Update all users.
29017 (grub_pc_partition_mbr): Rename to ...
29018 (grub_msdos_partition_mbr): ... this. Update all users.
29019 (grub_pc_partition): Rename to ...
29020 (grub_msdos_partition): ... this. Update all users.
29021 (grub_pc_partition_is_empty): Rename to ...
29022 (grub_msdos_partition_is_empty): ... this. Update all users.
29023 (grub_pc_partition_is_extended): Rename to ...
29024 (grub_msdos_partition_is_extended): ... this. Update all users.
29025 (grub_pc_partition_is_bsd): Rename to ...
29026 (grub_msdos_partition_is_bsd): ... this. Update all users.
29027
29028 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
29029 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
29030 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
29031 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
29032 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
29033 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
29034 (gpt_mod_LDFLAGS): Rename to ...
29035 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
29036 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
29037 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
29038 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
29039 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
29040 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
29041 (part_gpt_mod_LDFLAGS): ... this.
29042 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
29043 `pcpart.mod' to `msdospart.mod'.
29044 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
29045 to ...
29046 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
29047 (msdospart_mod_LDFLAGS): ... this.
29048
29049 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
29050
29051 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
29052 (openbsd_opts): Likewise.
29053 (netbsd_opts): Likewise.
29054 (freebsd_flags): Added 0 terminator.
29055 (openbsd_flags): Likewise.
29056 (netbsd_flags): Likewise.
29057 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
29058 (grub_cmd_freebsd): Transformed into extended command.
29059 (grub_cmd_openbsd): Likewise.
29060 (grub_cmd_netbsd): Likewise.
29061 (cmd_freebsd): Changed type to grub_extcmd_t.
29062 (cmd_openbsd): Likewise.
29063 (cmd_netbsd): Likewise.
29064 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
29065 grub_cmd_openbsd as extended commands.
29066 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
29067 cmd_netbsd and cmd_openbsd
29068
29069 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
29070
29071 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
29072
29073 2009-08-21 Pavel Roskin <proski@gnu.org>
29074
29075 * Makefile.in (install-local): When checking if a file is in the
29076 build directory, use "test -e" to detect symlinks.
29077
29078 * Makefile.in (install-local): Remove all files in
29079 $(DESTDIR)$(pkglibdir) before installing new files there.
29080
29081 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
29082
29083 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
29084 grub-mkelfimage.
29085
29086 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
29087
29088 * util/grub-mkconfig.in: Don't use gfxterm by default if not
29089 explicitly specified by the user.
29090
29091 2009-08-18 Pavel Roskin <proski@gnu.org>
29092
29093 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
29094 grub_uint8_t pointer for data.
29095 * include/grub/fbutil.h (struct grub_video_fbblit_info):
29096 Likewise.
29097 * video/fb/fbutil.c: Remove unnecessary casts.
29098
29099 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
29100
29101 VBE cleanup.
29102
29103 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
29104 (grub_vbe_set_video_mode): Save active mode info
29105 only after setting the mode.
29106 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
29107 second argument.
29108
29109 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
29110
29111 Rename variables for clarity.
29112
29113 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
29114 (active_vbe_mode_info): ... this. All users updated.
29115 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
29116 All users updated.
29117 (initial_mode): Rename to ...
29118 (initial_vbe_mode): ... this. All users updated.
29119 (mode_in_use): Rename to ..
29120 (vbe_mode_in_use): ... this. All users updated.
29121 (mode_list): Rename to ..
29122 (vbe_mode_list): ... this. All users updated.
29123 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
29124 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
29125 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
29126 'mode_list_size' to 'vbe_mode_list_size'.
29127 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
29128 'best_mode_info' to 'best_vbe_mode_info' and
29129 'best_mode' to 'best_vbe_mode'
29130
29131 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
29132
29133 Remove duplicate grub_video_fb_get_video_ptr.
29134
29135 * include/grub/fbutil.h (get_data_ptr): Rename to ...
29136 (grub_video_fb_get_video_ptr): ... this.
29137 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
29138 * video/fb/fbutil.c: Add comment about addressing.
29139 (get_data_ptr): Rename to ...
29140 (grub_video_fb_get_video_ptr): ... this. All users updated.
29141 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
29142
29143 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29144
29145 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
29146 grub_dprintf() that was just added.
29147
29148 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29149
29150 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
29151 (DEFAULT_VIDEO_MODE): Remove macros.
29152 (grub_linux_boot): Remove assumption that Linux has FB support,
29153 and use "text" as default video mode.
29154
29155 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
29156
29157 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
29158 grub_dprintf.
29159 * fs/fat.c (grub_fat_read_data): Likewise.
29160
29161 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29162
29163 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
29164 payload.
29165 (grub_module): Likewise.
29166
29167 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29168
29169 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
29170 mbi->cmdline but free playground.
29171
29172 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29173
29174 Handle group offset on UFS1.
29175
29176 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
29177 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
29178
29179 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29180
29181 Split ufs.mod into ufs1.mod and ufs2.mod.
29182
29183 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
29184 (grub_fstest_SOURCES): Likewise.
29185 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
29186 (ufs_mod_SOURCES): Remove.
29187 (ufs_mod_CFLAGS): Likewise.
29188 (ufs_mod_LDFLAGS): Likewise.
29189 (ufs1_mod_SOURCES): New variable.
29190 (ufs1_mod_CFLAGS): Likewise.
29191 (ufs1_mod_LDFLAGS): Likewise.
29192 (ufs2_mod_SOURCES): New variable.
29193 (ufs2_mod_CFLAGS): Likewise.
29194 (ufs2_mod_LDFLAGS): Likewise.
29195 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
29196 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29197 Likewise.
29198 (grub_emu_SOURCES): Likewise.
29199 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29200 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29201 (grub_setup_SOURCES): Likewise.
29202 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29203 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
29204 (grub_setup_SOURCES): Likewise.
29205 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29206 Likewise.
29207 * fs/ufs2.c: New file.
29208 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
29209
29210 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29211
29212 Framebuffer split.
29213
29214 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
29215 subsystem at the end.
29216 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
29217 (video_fb_mod_SOURCES): New variable.
29218 (video_fb_mod_CFLAGS): Likewise.
29219 (video_fb_mod_LDFLAGS): Likewise.
29220 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
29221 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
29222 * video/i386/pc/vbeblit.c: Moved from here ...
29223 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
29224 * video/i386/pc/vbefill.c: Moved from here ...
29225 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
29226 * video/i386/pc/vbeutil.c: Moved from here ...
29227 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
29228 * include/grub/i386/pc/vbeblit.h: Moved from here ...
29229 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
29230 * include/grub/i386/pc/vbefill.h: Moved from here ...
29231 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
29232 * include/grub/i386/pc/vbeutil.h: Moved from here ...
29233 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
29234 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
29235 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
29236 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
29237 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
29238 (grub_video_adapter): Added 'get_info_and_fini'.
29239 (grub_video_get_info_and_fini): New prototype.
29240 (grub_video_set_mode): make modestring const char *.
29241 * loader/i386/linux.c (grub_linux_setup_video): Use
29242 grub_video_get_info_and_fini.
29243 (grub_linux_boot): Move modesetting just before booting.
29244 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
29245 grub_video_get_info_and_fini.
29246 * video/i386/pc/vbe.c: Moved framebuffer part ...
29247 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
29248 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
29249 grub_video_fbstd_colors and grub_video_fb_set_palette.
29250 (grub_video_vbe_init): Clear 'framebuffer' variable and use
29251 grub_video_fb_init.
29252 (grub_video_vbe_fini): Use grub_video_fb_fini.
29253 (grub_video_vbe_setup): Use framebuffer.render_target instead of
29254 render_target and use grub_video_fb_set_active_render_target and
29255 grub_video_fb_set_palette.
29256 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
29257 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
29258 (grub_video_vbe_adapter): Use framebuffer.
29259 * video/video.c (grub_video_get_info_and_fini): New function.
29260 (grub_video_set_mode): Make modestring const char *.
29261 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
29262 values are already initialised.
29263
29264 2009-08-14 Pavel Roskin <proski@gnu.org>
29265
29266 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
29267 ABS and APPLE_CC.
29268 * boot/i386/pc/diskboot.S: Likewise.
29269 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
29270 sectors allow compilation on MacOSX.
29271 * conf/i386-pc.rmk: Enable unconditional compilation of
29272 lnxboot.img.
29273
29274 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
29275
29276 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
29277 * util/grub.d/00_header.in: Enter interruptible sleep if
29278 GRUB_HIDDEN_TIMEOUT is set.
29279
29280 2009-08-13 Yves Blusseau <blusseau@zetam.org>
29281
29282 * include/grub/symbol.h: Add the LOCAL macro.
29283 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
29284 starting with "L_".
29285
29286 2009-08-13 Pavel Roskin <proski@gnu.org>
29287
29288 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
29289 any modern compilers we support.
29290
29291 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
29292 Use local labels starting with "L_" so that Apple assembler
29293 knows they are local.
29294
29295 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
29296
29297 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
29298 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
29299 (bsd_kernel_types): ... this enum.
29300
29301 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
29302 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
29303 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
29304
29305 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
29306 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
29307 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
29308 messages.
29309
29310 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29311
29312 * util/grub-dumpdevtree: Moved from here ...
29313 * util/i386/efi/grub-dumpdevtree: ... to here.
29314 (hexify): New function. Converts a string to its hex version.
29315 Generate hex versions of "efi" and "device-properties" by calling
29316 hexify() on the ASCII strings rather than by hardcoding numbers.
29317
29318 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29319
29320 * fs/jfs.c: Update copyright year.
29321
29322 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
29323
29324 * util/grub.d/00_header.in: Fix a comment.
29325 * util/grub.d/10_linux.in: Likewise.
29326 * util/grub.d/10_windows.in: Likewise.
29327 * util/grub.d/10_hurd.in: Likewise.
29328
29329 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
29330
29331 * util/grub-mkconfig.in: Allow the user to specify the used font
29332 with GRUB_FONT.
29333
29334 2009-08-08 Pavel Roskin <proski@gnu.org>
29335
29336 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
29337 available, xfs.mod needs it now.
29338
29339 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
29340 the "g" modifier in sed when the intention is to strip something
29341 once. This fixes comparison of kernels with multiple dashes.
29342
29343 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
29344 on it. Add missing space before closing bracket. Fix
29345 misleading formatting.
29346
29347 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29348
29349 * docs/grub.texi: Major overhaul. Remove all sections that are
29350 specific to GRUB Legacy, or mostly composed of Legacy-specific
29351 information.
29352
29353 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29354
29355 * docs/version.texi: New file. Provides version information for
29356 grub.texi.
29357
29358 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29359
29360 * docs/grub.texi: Update CVS information to SVN.
29361 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
29362
29363 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29364
29365 * util/grub-mkconfig.in: Remove a wrong `fi'.
29366
29367 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29368
29369 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
29370 (grub_jfs_uuid): New function.
29371 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
29372
29373 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29374
29375 * util/grub-mkconfig_lib.in (font_path): Move the functionality
29376 of it to ...
29377 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
29378 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
29379
29380 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29381
29382 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
29383 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
29384 Update all users.
29385
29386 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
29387 not just "vmlinu[zx]".
29388 Moved from here ...
29389 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
29390 all users.
29391
29392 * util/grub.d/10_linux.in (find_latest): Moved from here ...
29393 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
29394 all users.
29395
29396 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29397
29398 * util/grub.d/10_freebsd.in: Use an absolute device path for
29399 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
29400
29401 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
29402
29403 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
29404 handling of multiple abstraction modules.
29405
29406 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
29407
29408 Fix a bug resulting in black screen when loading Linux using a
29409 packed video mode.
29410
29411 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
29412 function.
29413
29414 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
29415 (grub_vbe_bios_getset_dac_palette_width): New function.
29416 (grub_vbe_bios_get_dac_palette_width)
29417 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
29418 grub_vbe_bios_getset_dac_palette_width()).
29419
29420 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
29421 check for return status.
29422 (grub_vbe_get_video_mode_info): When getting information for a packed
29423 mode (<= 8 bpp), obtain DAC palette width using
29424 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
29425 {red,green,blue}_mark_size.
29426
29427 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
29428
29429 * commands/search.c (options): Fix help output to match actual code.
29430
29431 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
29432
29433 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
29434 of homegrown code.
29435
29436 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29437
29438 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
29439 on XFS or ReiserFS.
29440
29441 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29442
29443 Support Apple partition map with sector size different from 512 bytes.
29444
29445 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
29446 (apple_partition_map_iterate): Respect 'aheader.blocksize'
29447 and 'apart.partmap_size'.
29448
29449 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29450 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
29451
29452 Fix cpuid command.
29453
29454 * commands/i386/cpuid.c (options): New variable.
29455 (grub_cmd_cpuid): Return real error.
29456 (GRUB_MOD_INIT(cpuid)): Declare options.
29457
29458 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
29459
29460 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
29461 valid.
29462
29463 2009-07-31 Bean <bean123ch@gmail.com>
29464
29465 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
29466 log2_inode.
29467 (grub_fshelp_node): Move inode field to the end.
29468 (grub_xfs_data): Remove inode field.
29469 (grub_xfs_inode_block): Calculate inode size using sblock.
29470 (grub_xfs_inode_offset): Likewise.
29471 (grub_xfs_read_inode): Calculate inode size using sblock.
29472 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
29473 (grub_xfs_iterate_dir): Calculate inode size using sblock.
29474 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
29475 to match inode size.
29476 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
29477 not accessible when data is null.
29478 (grub_xfs_open): Likewise.
29479
29480 2009-07-31 Bean <bean123ch@gmail.com>
29481
29482 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
29483 Don't change pv->disk if it's already set.
29484
29485 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
29486 (grub_raid_register): ... here.
29487 (grub_raid_rescan): Removed.
29488
29489 * include/grub/raid.h (grub_raid_rescan): Removed.
29490
29491 * util/grub-fstest.c: Remove include file <grub/raid.h>.
29492 (fstest): Replace grub_raid_rescan with module fini function followed
29493 by init function.
29494
29495 * util/grub-probe.c: Add include file <grub/raid.h>.
29496 (probe_raid_level): New function.
29497 (probe): Detect abstraction by walking the disk device, support two
29498 level of abstraction (LVM on RAID) when detecting partition map.
29499
29500 2009-07-31 Pavel Roskin <proski@gnu.org>
29501
29502 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
29503 to grub_zalloc(), it was erroneous.
29504 Reported by Bean <bean123ch@gmail.com>
29505
29506 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
29507
29508 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
29509 embedding zone, not only the first one.
29510
29511 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
29512
29513 * term/gfxterm.c (clear_char): New function.
29514 (grub_virtual_screen_setup): Use clear_char.
29515 (scroll_up): Likewise.
29516 (grub_virtual_screen_cls): Likewise.
29517
29518 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
29519
29520 * util/deviceiter.c (get_acceleraid_disk_name): New static
29521 function.
29522 (grub_util_iterate_devices): Handle Accelraid devices.
29523 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
29524
29525 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
29526
29527 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
29528 separator for the suggested gfxpayload string (';' collides with the
29529 parser and needs escaping).
29530
29531 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
29532
29533 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
29534 Clear direction flag before jumping to OS.
29535 (grub_multiboot2_real_boot): Likewise.
29536
29537 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29538
29539 * util/i386/pc/grub-install: Fix parsing of --disk-module
29540 option.
29541
29542 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29543
29544 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
29545 when embedding.
29546
29547 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
29548
29549 * util/grub-mkconfig.in (package_version): New variable.
29550 Use it do display the version.
29551
29552 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29553
29554 * kern/file.c (grub_file_open): Revert to previous check with
29555 grub_errno.
29556
29557 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29558
29559 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
29560 from help line. It's out of sync with code.
29561
29562 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29563
29564 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
29565 entries on failed boot.
29566
29567 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29568
29569 * kern/file.c (grub_file_open): Fix an error check.
29570
29571 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
29572
29573 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
29574 partition map couldn't be identified.
29575
29576 2009-07-23 Pavel Roskin <proski@gnu.org>
29577
29578 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
29579 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
29580 case of little endian words becomes just an optimization.
29581 Respect const modifier.
29582 (md5_final): Use code that doesn't depend on endianness.
29583
29584 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
29585 to avoid loss of upper bits if align is unsigned and shorter
29586 than addr.
29587
29588 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29589
29590 UUID support for UFS
29591
29592 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
29593 (grub_ufs_uuid): New function.
29594 (grub_ufs_fs): add .uuid
29595
29596 2009-07-21 Pavel Roskin <proski@gnu.org>
29597
29598 * kern/dl.c (grub_dl_check_header): Make static.
29599
29600 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
29601
29602 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
29603 add drivemap for Vista. It breaks Windows 7.
29604
29605 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29606
29607 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
29608 128 bytes
29609
29610 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29611
29612 Add BFS support
29613
29614 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
29615 (grub_fstest_SOURCES): Likewise.
29616 (pkglib_MODULES): Add befs.mod.
29617 (befs_mod_SOURCES): New variable.
29618 (befs_mod_CFLAGS): Likewise.
29619 (befs_mod_LDFLAGS): Likewise.
29620 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29621 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29622 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29623 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29624 (grub_setup_SOURCES): Likewise.
29625 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29626 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29627 (grub_setup_SOURCES): Likewise.
29628 * fs/befs.c: New file.
29629 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
29630 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
29631 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
29632 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
29633 (B_KEY_INDEX_ALIGN): New declaration.
29634 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
29635 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
29636 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
29637 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
29638 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
29639 (grub_afs_mount) [MODE_BFS]: Likewise.
29640 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
29641 (grub_afs_fs): Use GRUB_AFS_FSNAME
29642 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
29643 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
29644 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
29645 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
29646
29647 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
29648
29649 * util/getroot.c (find_root_device): Add support for MacOSX.
29650 * util/hostdisk.c: Likewise.
29651
29652 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29653
29654 * font/font.c (find_glyph): Check whether a font is present to avoid
29655 segmentation fault.
29656
29657 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
29658
29659 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
29660
29661 2009-07-20 Pavel Roskin <proski@gnu.org>
29662
29663 * configure.ac: Trim excessively wordy excuses.
29664
29665 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29666
29667 Add symlink, mtime and label support to AtheFS.
29668
29669 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
29670 (grub_afs_iterate_dir): Handle symlinks.
29671 (grub_afs_open): Use grub_afs_read_symlink.
29672 (grub_afs_dir): Likewise.
29673 Pass mtime.
29674 (grub_afs_label): New function.
29675 (grub_afs_fs): Add grub_afs_label.
29676 (grub_afs_read_symlink): New function.
29677
29678 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29679
29680 Fix AtheFS support.
29681
29682 * fs/afs.c: Fix comments style.
29683 (grub_afs_blockrun): Declare as packed.
29684 (grub_afs_datastream): Likewise.
29685 (grub_afs_bnode): Likewise.
29686 (grub_afs_btree): Likewise.
29687 (grub_afs_sblock): Likewise.
29688 Declare `name' as char.
29689 (grub_afs_inode): Declare as packed.
29690 Change void *vnode to grub_uint32_t unused.
29691 (grub_afs_iterate_dir): Check that key_size is positive.
29692 (grub_afs_mount): Don't read superblock twice.
29693 (grub_afs_dir): Don't free node in case of error,
29694 grub_fshelp_find_file already handles this.
29695 (grub_afs_open): Likewise.
29696
29697 2009-07-19 Pavel Roskin <proski@gnu.org>
29698
29699 * Makefile.in: Remove LIBLZO and enable_lzo.
29700 * conf/i386-pc.rmk: Remove lzo support.
29701 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
29702 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
29703 support.
29704 * kern/i386/pc/lzo1x.S: Remove.
29705 * kern/i386/pc/startup.S: Remove lzo support.
29706 * util/i386/pc/grub-mkimage.c: Likewise.
29707
29708 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
29709
29710 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
29711 * fs/xfs.c (grub_xfs_dir): Likewise.
29712 * fs/afs.c (grub_afs_dir): Likewise.
29713 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
29714 (grub_iso9660_open): Likewise.
29715 * fs/jfs.c (grub_jfs_open): Likewise.
29716 * fs/ext2.c (grub_ext2_dir): Likewise.
29717 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
29718 * script/sh/lexer.c (grub_script_yylex): Likewise.
29719
29720 2009-07-16 Pavel Roskin <proski@gnu.org>
29721
29722 * configure.ac: Never add "-c" to CFLAGS.
29723
29724 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
29725
29726 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
29727 grub_cv_cc_efiemu should be used.
29728
29729 * configure.ac: Typo fixes.
29730
29731 * kern/mm.c (grub_zalloc): New function.
29732 (grub_debug_zalloc): Likewise.
29733 * include/grub/mm.h: Declare grub_zalloc() and
29734 grub_debug_zalloc().
29735 * util/misc.c (grub_zalloc): New function.
29736 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
29737 instead of grub_malloc(), remove unneeded initializations.
29738 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
29739 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
29740 * commands/parttool.c (grub_cmd_parttool): Likewise.
29741 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
29742 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
29743 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
29744 * disk/usbms.c (grub_usbms_finddevs): Likewise.
29745 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
29746 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
29747 (grub_cmd_efiemu_pnvram): Likewise.
29748 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
29749 * fs/iso9660.c (grub_iso9660_mount): Likewise.
29750 (grub_iso9660_iterate_dir): Likewise.
29751 * fs/jfs.c (grub_jfs_opendir): Likewise.
29752 * fs/ntfs.c (list_file): Likewise.
29753 (grub_ntfs_mount): Likewise.
29754 * kern/disk.c (grub_disk_open): Likewise.
29755 * kern/dl.c (grub_dl_load_core): Likewise.
29756 * kern/elf.c (grub_elf_file): Likewise.
29757 * kern/env.c (grub_env_context_open): Likewise.
29758 (grub_env_set): Likewise.
29759 (grub_env_set_data_slot): Likewise.
29760 * kern/file.c (grub_file_open): Likewise.
29761 * kern/fs.c (grub_fs_blocklist_open): Likewise.
29762 * loader/i386/multiboot.c (grub_module): Likewise.
29763 * loader/xnu.c (grub_xnu_create_key): Likewise.
29764 (grub_xnu_create_value): Likewise.
29765 * normal/main.c (grub_normal_add_menu_entry): Likewise.
29766 (read_config_file): Likewise.
29767 * normal/menu_entry.c (make_screen): Likewise.
29768 * partmap/sun.c (sun_partition_map_iterate): Likewise.
29769 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
29770 * script/sh/script.c (grub_script_parse): Likewise.
29771 * video/bitmap.c (grub_video_bitmap_create): Likewise.
29772 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
29773 * video/readers/png.c (grub_png_output_byte): Likewise.
29774 (grub_video_reader_png): Likewise.
29775
29776 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29777
29778 Enable all targets that can be built by default
29779
29780 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
29781 grub-mkfont and grub-fstest if they can be built
29782
29783 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29784
29785 Fix hang and segmentation fault in grub-emu-usb
29786
29787 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
29788 * util/usb.c (grub_libusb_devices): likewise
29789 (grub_libusb_init): rename to ...
29790 (GRUB_MOD_INIT (libusb)):...this
29791 (grub_libusb_fini): rename to ..
29792 (GRUB_MOD_FINI (libusb)):...this
29793 * disk/usbms.c (grub_usbms_transfer): fix retry logic
29794 * include/grub/disk.h (grub_raid_init): removed, it's useless
29795 (grub_raid_fini): likewise
29796 (grub_lvm_init): likewise
29797 (grub_lvm_fini): likewise
29798 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
29799 by grub_init_all
29800
29801 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29802
29803 Fix libusb
29804
29805 * Makefile.in (LIBUSB): new macro
29806 * genmk.rb (Utility/print_tail): new method
29807 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
29808 (top level): call util.print_tail at the end.
29809
29810 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29811
29812 Make FreeBSD accept zpool.cache
29813
29814 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
29815 type is /boot/zfs/zpool.cache
29816
29817 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29818
29819 Fix 64-bit efiemu
29820
29821 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
29822 correct wrong typedef
29823 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
29824
29825 2009-07-15 Pavel Roskin <proski@gnu.org>
29826
29827 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
29828 * kern/disk.c (struct grub_disk_cache): Likewise.
29829
29830 * commands/probe.c (options): Typo fix.
29831
29832 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
29833 Increase to 0x5a to accommodate FAT32. Adjust other offsets
29834 accordingly.
29835 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
29836
29837 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
29838 the end of "Error" to make the message more readable.
29839
29840 * boot/i386/pc/boot.S (kernel_segment): Remove.
29841 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
29842 for destination.
29843
29844 * boot/i386/pc/boot.S (boot_version): Remove.
29845 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
29846 Remove.
29847
29848 * include/grub/i386/pc/boot.h: Sort all offsets.
29849 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
29850 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
29851 * boot/i386/pc/boot.S: Assert location of every offset listed in
29852 include/grub/i386/pc/boot.h.
29853
29854 2009-07-13 Pavel Roskin <proski@gnu.org>
29855
29856 * include/grub/i386/coreboot/machine.h: Rename
29857 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
29858 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
29859 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
29860
29861 * kern/dl.c: Force native word size to suppress warnings when
29862 compiling grub-emu.
29863
29864 * kern/device.c (grub_device_iterate): Change struct part_ent to
29865 hold the name, not a pointer to it. Use one grub_malloc() per
29866 partition, not two. Free partition_name if grub_malloc() fails.
29867 Set ents to NULL only before grub_partition_iterate() is called.
29868
29869 2009-07-11 Bean <bean123ch@gmail.com>
29870
29871 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
29872 childname.
29873
29874 2009-07-10 Bean <bean123ch@gmail.com>
29875 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
29876
29877 * kern/ieee1275/openfw.c (grub_children_iterate)
29878 (grub_devalias_iterate): Fix size evaluation for property or path
29879 strings, which was broken since r2132.
29880
29881 2009-07-07 Pavel Roskin <proski@gnu.org>
29882
29883 * commands/search.c (search_file): Merge into ...
29884 (search_fs): ... this. Accept search type as argument.
29885 (grub_cmd_search): Pass search type to search_fs().
29886
29887 * include/grub/util/console.h: New file.
29888 * util/console.c: Use it instead of grub/machine/console.h.
29889 * util/grub-emu.c: Likewise.
29890
29891 * lib/arg.c (find_long_option): Remove.
29892 (find_long): Add `len' argument, make `s' const char *.
29893 (grub_arg_parse): Parse long options in place, not in a
29894 temporary buffer.
29895
29896 2009-07-06 Pavel Roskin <proski@gnu.org>
29897
29898 * commands/search.c (search_fs): Fix potential NULL pointer
29899 dereference.
29900
29901 * commands/search.c (search_fs): Replace QUID macro with quid_fn
29902 function pointer.
29903
29904 2009-07-06 Daniel Mierswa <impulze@impulze.org>
29905
29906 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
29907 comparison.
29908
29909 2009-07-05 Pavel Roskin <proski@gnu.org>
29910
29911 * include/grub/i386/linux.h (struct linux_kernel_params):
29912 Restore padding3, it's still needed.
29913
29914 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
29915 FreeBSD.
29916 * util/osdetect.lua: Likewise.
29917
29918 2009-07-05 Bean <bean123ch@gmail.com>
29919
29920 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
29921
29922 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
29923 (grub_lua_getenv): Likewise.
29924 (grub_lua_setenv): Likewise.
29925 (save_errno): New function.
29926 (push_result): Likewise.
29927 (grub_lua_enum_device): Likewise.
29928 (grub_lua_enum_file): Likewise.
29929 (grub_lua_file_open): Likewise.
29930 (grub_lua_file_close): Likewise.
29931 (grub_lua_file_seek): Likewise.
29932 (grub_lua_file_read): Likewise.
29933 (grub_lua_file_getline): Likewise.
29934 (grub_lua_file_getsize): Likewise.
29935 (grub_lua_file_getpos): Likewise.
29936 (grub_lua_file_eof): Likewise.
29937 (grub_lua_file_exist): Likewise.
29938 (grub_lua_add_menu): Likewise.
29939
29940 * script/lua/grub_lua.h (isupper): New inline function.
29941 (islower): Likewise.
29942 (ispunct): Likewise.
29943 (isxdigit): Likewise.
29944 (strcspn): Change to normal function.
29945 (strpbkr): New function declaration.
29946 (memchr): Likewise.
29947
29948 * script/lua/grub_main.c (scan_str): New function.
29949 (strcspn): Likewise.
29950 (strpbrk): Likewise.
29951 (memchr): Likewise.
29952
29953 * script/lua/linit.c (lualibs): Enable the string library.
29954
29955 * util/osdetect.lua: New file.
29956
29957 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
29958
29959 * include/grub/i386/linux.h (struct linux_kernel_params): Add
29960 `capabilities' member.
29961
29962 2009-07-02 Pavel Roskin <proski@gnu.org>
29963
29964 * genparttoollist.sh: Add missing newline at the end.
29965
29966 2009-07-01 Pavel Roskin <proski@gnu.org>
29967
29968 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
29969
29970 * util/hostdisk.c (open_device): Remove `const' from
29971 `sysctl_size', as sysctlbyname() can change it (in this case it
29972 doesn't actually happen).
29973
29974 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
29975 using signed long int constants.
29976
29977 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
29978 constant to avoid a warning on FreeBSD.
29979
29980 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
29981 where it's needed.
29982
29983 * Makefile.in: Install include/grub/machine symlink.
29984
29985 * Makefile.in: When installing symlinks, use "cp -fR", which
29986 works on FreeBSD and MacOSX.
29987 From Yves Blusseau <cl7m42e02@sneakemail.com>
29988
29989 * kern/dl.c (grub_dl_resolve_symbol): Make static.
29990 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
29991
29992 * util/misc.c: Move grub_reboot() and grub_halt() ...
29993 * util/grub-emu.c: ... here. Make main_env static.
29994 * include/grub/util/misc.h: Remove main_env.
29995
29996 * kern/mm.c: Use correct format to print size_t.
29997
29998 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
29999 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
30000 * kern/powerpc/dl.c: Likewise.
30001 * kern/sparc64/dl.c: Likewise.
30002 * kern/x86_64/dl.c: Likewise.
30003
30004 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30005
30006 Fix grub-emu build on sparc64-ieee1275.
30007
30008 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
30009 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
30010
30011 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30012
30013 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
30014 (grub_reboot, grub_halt): New functions.
30015
30016 * util/i386/pc/misc.c: Delete. Update all users.
30017 * util/sparc64/ieee1275/misc.c: Likewise.
30018 * util/powerpc/ieee1275/misc.c: Likewise.
30019
30020 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30021
30022 * conf/i386.rmk (setjmp_mod_SOURCES)
30023 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
30024 * conf/common.rmk (setjmp_mod_SOURCES)
30025 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
30026 to use $(target_cpu).
30027 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
30028 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
30029 * conf/powerpc-ieee1275.rmk: Likewise.
30030 * conf/sparc64-ieee1275.rmk: Likewise.
30031
30032 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
30033 $(target_cpu) for kern/$(target_cpu)/dl.c.
30034 * conf/i386-efi.rmk: Likewise.
30035 * conf/i386-ieee1275.rmk: Likewise.
30036 * conf/x86_64-efi.rmk: Likewise.
30037 * conf/i386-coreboot.rmk: Likewise.
30038 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
30039 $(target_cpu) for kern/$(target_cpu)/dl.c and for
30040 kern/$(target_cpu)/cache.S.
30041 * conf/sparc64-ieee1275.rmk: Likewise.
30042
30043 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30044
30045 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
30046 type to `grub_uint8_t', and adjust `padding9' accordingly.
30047
30048 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30049
30050 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
30051
30052 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
30053 assembly in final jump, using register constraints.
30054
30055 (grub_linux_boot): For text mode, initialize `have_vga' using
30056 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
30057
30058 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
30059 right before the final jump.
30060
30061 Set `video_mode' to 0x3.
30062
30063 Document initialization of `video_page', `video_mode' and
30064 `video_ega_bx'.
30065
30066 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30067
30068 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
30069 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
30070 and set GRUB_LINUX_FLAG_QUIET appropriately.
30071
30072 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30073
30074 Fix build on Debian / sparc.
30075
30076 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
30077
30078 2009-06-28 Pavel Roskin <proski@gnu.org>
30079
30080 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
30081 fix a warning.
30082
30083 * util/grub.d/10_linux.in: Match SUSE style initrd names.
30084
30085 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30086
30087 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
30088 `err'.
30089
30090 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30091
30092 Revert r2338.
30093
30094 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
30095 file can't be opened. grub_file_open() is already supposed to set
30096 grub_errno / grub_errmsg appropriately.
30097 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30098
30099 2009-06-27 Pavel Roskin <proski@gnu.org>
30100 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30101
30102 * include/grub/dl.h: Include grub/elf.h.
30103 (struct grub_dl): Add symtab field.
30104 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
30105 GRUB_MODULES_MACHINE_READONLY.
30106 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
30107 of the header for read-only modules.
30108 (grub_dl_unload): Free mod->symtab for read-only modules.
30109 * kern/i386/dl.c: Use mod->symtab.
30110 * kern/powerpc/dl.c: Likewise.
30111 * kern/sparc64/dl.c: Likewise.
30112 * kern/x86_64/dl.c: Likewise.
30113
30114 * conf/i386-qemu.rmk: New file.
30115 * kern/i386/qemu/startup.S: Likewise.
30116 * kern/i386/qemu/mmap.c: Likewise.
30117 * boot/i386/qemu/boot.S: Likewise.
30118 * include/grub/i386/qemu/time.h: Likewise.
30119 * include/grub/i386/qemu/serial.h: Likewise.
30120 * include/grub/i386/qemu/kernel.h: Likewise.
30121 * include/grub/i386/qemu/console.h: Likewise.
30122 * include/grub/i386/qemu/boot.h: Likewise.
30123 * include/grub/i386/qemu/init.h: Likewise.
30124 * include/grub/i386/qemu/machine.h: Likewise.
30125 * include/grub/i386/qemu/loader.h: Likewise.
30126 * include/grub/i386/qemu/memory.h: Likewise.
30127
30128 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
30129 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
30130 [qemu] (pkglib_IMAGES): Add `boot.img'.
30131 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
30132 [qemu] (boot_img_FORMAT): New variables.
30133 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
30134 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
30135 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
30136 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30137 [qemu] (kernel_img_FORMAT): New variables.
30138
30139 * configure.ac: Recognise `i386-qemu'.
30140
30141 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
30142 (for no compression).
30143 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
30144 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
30145 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
30146 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
30147 ifdefs).
30148
30149 2009-06-27 Pavel Roskin <proski@gnu.org>
30150
30151 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
30152 read.
30153 * efiemu/prepare32.c: Likewise.
30154 * efiemu/prepare64.c: Likewise.
30155
30156 2009-06-26 Pavel Roskin <proski@gnu.org>
30157
30158 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
30159 * include/grub/elf.h: Define symbols without "32" or "64" based
30160 on GRUB_TARGET_WORDSIZE.
30161 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
30162 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
30163 ELF definitions.
30164 * efiemu/loadcore64.c: Likewise.
30165 * loader/i386/bsd32.c: Likewise.
30166 * loader/i386/bsd64.c: Likewise.
30167 * kern/dl.c: Remove own ELF definitions.
30168 * util/i386/efi/grub-mkimage.c: Likewise.
30169
30170 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
30171
30172 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
30173 segment 0x0 unconditionally, because the reference generated by
30174 GAS is an absolute address.
30175
30176 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30177
30178 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
30179 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
30180
30181 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30182
30183 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
30184 indexes. Check for -f explicitly.
30185 (search_file): Improve error message.
30186 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
30187
30188 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30189
30190 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
30191 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
30192
30193 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30194
30195 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
30196 * conf/i386-ieee1275.rmk: Likewise.
30197 * conf/i386-coreboot.rmk: Likewise.
30198
30199 * kern/i386/pc/startup.S (grub_stop): Remove function.
30200 * kern/i386/ieee1275/startup.S: Likewise.
30201 * kern/i386/coreboot/startup.S: Likewise.
30202 * kern/i386/misc.S (grub_stop): New function.
30203
30204 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30205
30206 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
30207 * kern/i386/realmode.S (real_to_prot): ... to here.
30208
30209 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30210
30211 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
30212 with `kernel.img'.
30213 (kernel_elf_SOURCES): Rename to ...
30214 (kernel_img_SOURCES): ... this.
30215 (kernel_elf_HEADERS): Rename to ...
30216 (kernel_img_HEADERS): ... this. Update all users.
30217 (kernel_elf_ASFLAGS): Rename to ...
30218 (kernel_img_ASFLAGS): ... this.
30219 (kernel_elf_CFLAGS): Rename to ...
30220 (kernel_img_CFLAGS): ... this.
30221 (kernel_elf_LDFLAGS): Rename to ...
30222 (kernel_img_LDFLAGS): ... this.
30223 * conf/i386-coreboot.rmk: Likewise.
30224 * conf/powerpc-ieee1275.rmk: Likewise.
30225
30226 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
30227 with "kernel.img".
30228
30229 2009-06-21 Pavel Roskin <proski@gnu.org>
30230
30231 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
30232 to match nested functions.
30233 * loader/sparc64/ieee1275/linux.c: Likewise.
30234
30235 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
30236
30237 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30238
30239 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
30240 all i386 platforms.
30241
30242 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30243
30244 Fix asm file handling on ELF, and remove workarounds.
30245
30246 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
30247 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
30248 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
30249 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
30250
30251 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
30252
30253 Load BSD ELF modules
30254
30255 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
30256 and loader/i386/bsd64.c
30257 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
30258 (FREEBSD_MODTYPE_ELF_MODULE): New definition
30259 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
30260 (grub_freebsd_load_elfmodule32): New declaration
30261 (grub_freebsd_load_elfmoduleobj64): Likewise
30262 (grub_freebsd_load_elf_meta32): Likewise
30263 (grub_freebsd_load_elf_meta64): Likewise
30264 (grub_freebsd_add_meta): Likewise
30265 (grub_freebsd_add_meta_module): Likewise
30266 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
30267 (grub_freebsd_add_meta_module): Likewise and move module-specific
30268 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
30269 (grub_cmd_freebsd): Add elf-kernel specific parts
30270 based on grub_freebsd_add_meta_module
30271 (grub_cmd_freebsd_module): Add type parsing moved from
30272 grub_freebsd_add_meta_module
30273 (grub_cmd_freebsd_module_elf): New function
30274 (cmd_freebsd_module_elf): New variable
30275 (GRUB_MOD_INIT): Register freebsd_module_elf
30276 * loader/i386/bsd32.c: New file
30277 * loader/i386/bsd64.c: Likewise
30278 * loader/i386/bsdXX.c: Likewise
30279 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
30280 (grub_elf64_load): Likewise
30281 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
30282 All users updated
30283 (grub_elf64_load_hook_t): Likewise
30284
30285 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
30286
30287 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
30288 variable.
30289 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
30290 don't write a menu entry for recovery mode.
30291
30292 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30293
30294 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
30295 after it's no longer needed.
30296
30297 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30298
30299 * include/grub/i386/loader.h (grub_linux_prot_size)
30300 (grub_linux_tmp_addr, grub_linux_real_addr)
30301 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
30302 GRUB_MACHINE_PCBIOS.
30303 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
30304 common grub_util_info() call to ...
30305 (generate_image): ... here.
30306 Fix use of uninitialized memory, comparison of signed with
30307 unsigned integers and memory leak.
30308 Remove bogus module address message.
30309
30310 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
30311
30312 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
30313 grub_raid_register
30314 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
30315
30316 2009-06-19 Pavel Roskin <proski@gnu.org>
30317
30318 * configure.ac: Remove stray AC_MSG_CHECKING.
30319
30320 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
30321
30322 * disk/scsi.c (grub_scsi_open): use continue instead of big if
30323
30324 2009-06-18 Pavel Roskin <proski@gnu.org>
30325
30326 * conf/common.rmk: Add fs_file.mod.
30327 * disk/fs_file.c: New file.
30328 * include/grub/disk.h (enum grub_disk_dev_id): Add
30329 GRUB_DISK_DEVICE_FILE_ID.
30330
30331 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30332
30333 Fix build with Apple's toolchain. Part 2
30334
30335 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
30336 a fake start
30337
30338 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30339
30340 Fix build with Apple's toolchain. Part 1
30341
30342 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
30343 for long calls
30344 * configure.ac: remove a leftover AC_MSG_RESULT
30345 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
30346 Apple's toolchain
30347
30348 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30349
30350 Fix warnings
30351
30352 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
30353 (decomp_block): initialize ch
30354 use grub_memcpy instead of memcpy
30355
30356 2009-06-17 Pavel Roskin <proski@gnu.org>
30357
30358 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
30359 version, use declarations needed to use vga_text as the startup
30360 console.
30361
30362 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
30363 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
30364 the kernel.
30365 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
30366 and grub_at_keyboard_fini(), it's done on module load and
30367 unload.
30368
30369 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
30370
30371 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
30372 file can't be found.
30373 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30374
30375 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30376
30377 Fix newline handling
30378
30379 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
30380 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
30381 (grub_script_yylex): don't segfault on unterminated script
30382 newline terminates command and variable
30383
30384 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30385
30386 avoid double grub_adjust_range call. Bug reported by David Simner
30387
30388 * kern/disk.c (grub_disk_write): change to raw disk access before
30389 calling disk_read
30390
30391 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
30392
30393 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
30394 spaces, for the benefit of help2man.
30395 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30396
30397 2009-06-16 Pavel Roskin <proski@gnu.org>
30398
30399 * kern/i386/halt.c: Include grub/machine/init.h.
30400 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
30401
30402 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
30403
30404 * util/grub.d/30_os-prober.in: Use ${root} in the generated
30405 drivemap menuentry.
30406
30407 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
30408
30409 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
30410 `echo' command.
30411
30412 2009-06-16 Pavel Roskin <proski@gnu.org>
30413
30414 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
30415 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
30416 save %dx, we only need %dl and we never change it.
30417 * boot/i386/pc/cdboot.S: Don't set the root drive.
30418 * boot/i386/pc/pxeboot.S: Likewise.
30419 * include/grub/i386/pc/boot.h: Remove
30420 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
30421 GRUB_BOOT_MACHINE_DRIVE_CHECK.
30422 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
30423 * kern/i386/pc/init.c (make_install_device): Remove references
30424 to grub_root_drive.
30425 * kern/i386/pc/startup.S: Likewise.
30426 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
30427
30428 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30429
30430 xnu_uuid command
30431
30432 * commands/xnu_uuid.c: new file
30433 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
30434 (xnu_uuid_mod_SOURCES): new variable
30435 (xnu_uuid_mod_CFLAGS): likewise
30436 (xnu_uuid_mod_LDFLAGS): likewise
30437 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30438 * conf/i386-ieee1275.rmk: likewise
30439 * conf/i386-pc.rmk: likewise
30440 * conf/powerpc-ieee1275.rmk: likewise
30441 * conf/sparc64-ieee1275.rmk: likewise
30442 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
30443
30444 2009-06-16 Pavel Roskin <proski@gnu.org>
30445
30446 * configure.ac: Avoid '==' in test command, it's not portable.
30447
30448 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30449
30450 Probe command
30451
30452 * commands/probe.c: new file
30453 * conf/common.rmk (pkglib_MODULES): add probe.mod
30454 (probe_mod_SOURCES): new variable
30455 (probe_mod_CFLAGS): likewise
30456 (probe_mod_LDFLAGS): likewise
30457 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30458 * conf/i386-ieee1275.rmk: likewise
30459 * conf/i386-pc.rmk: likewise
30460 * conf/powerpc-ieee1275.rmk: likewise
30461 * conf/sparc64-ieee1275.rmk: likewise
30462
30463 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
30464
30465 Fix handling of string like \"hello\" and "a
30466 b"
30467
30468 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
30469 (grub_script_yylex): fix parsing of quoting, escaping and newline
30470
30471 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
30472
30473 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
30474 handling
30475
30476 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
30477
30478 * util/grub-mkconfig.in: Fix parsing of --output option.
30479
30480 2009-06-12 Pavel Roskin <proski@gnu.org>
30481
30482 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
30483 genmk.rb don't need to be generated or installed.
30484
30485 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
30486
30487 * commands/i386/pc/drivemap_int13h.S: add more comments
30488
30489 2009-06-11 Pavel Roskin <proski@gnu.org>
30490
30491 * Makefile.in (uninstall): Uninstall manuals.
30492
30493 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
30494 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
30495 and update-grub_lib in two places.
30496 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
30497
30498 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
30499 a compiler warning.
30500
30501 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
30502 `entry_lo' to fix variable shadowing.
30503
30504 2009-06-11 Christian Franke <franke@computer.org>
30505
30506 * kern/misc.c (__enable_execute_stack): Add missing return type
30507 to prevent gcc warning.
30508
30509 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30510
30511 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
30512
30513 2009-06-11 Pavel Roskin <proski@gnu.org>
30514
30515 * Makefile.in: Don't rely on any scripts being executable.
30516 Always use $(SHELL) to run shell scripts.
30517
30518 * configure.ac: Always define ___main if using -nostdlib. This
30519 fixes tests on Cygwin.
30520
30521 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
30522
30523 UDF fix
30524
30525 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
30526 is in bytes and not in blocks
30527
30528 2009-06-11 Pavel Roskin <proski@gnu.org>
30529
30530 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
30531 warning.
30532
30533 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30534
30535 * util/grub.d/30_os-prober.in: Fix a comment. Source
30536 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
30537 to set the root device. Place drivemap command in the generated
30538 chain entry.
30539
30540 2009-06-11 Pavel Roskin <proski@gnu.org>
30541
30542 * configure.ac: Remove host_m32. Issues with 64-bit utilities
30543 have long been resolved.
30544
30545 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
30546
30547 * util/grub.d/10_linux.in: Capitalise "Linux".
30548
30549 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
30550
30551 2009-06-11 Pavel Roskin <proski@gnu.org>
30552
30553 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
30554 fix a gcc warning and ensure that the function won't ever exit.
30555
30556 * kern/i386/ieee1275/init.c: Add missing prototype for
30557 grub_stop_floppy().
30558
30559 * loader/ieee1275/multiboot2.c [__i386__]: Include
30560 grub/cpu/multiboot.h.
30561
30562 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
30563 casts to short - they are not portable and cause warnings. Fix
30564 use of uninitialized values in input_buf. Use ARRAY_SIZE.
30565
30566 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
30567
30568 Drivemap fixes
30569
30570 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
30571 new function
30572 (grub_get_root_biosnumber_saved): new variable
30573 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
30574 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
30575 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
30576 %dx after the call if necessary
30577 * conf/common.rmk (pkglib_MODULES): remove boot.mod
30578 (boot_mod_SOURCES): remove
30579 (boot_mod_CFLAGS): remove
30580 (boot_mod_LDFLAGS): remove
30581 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
30582 (boot_mod_SOURCES): new variable
30583 (boot_mod_CFLAGS): likewise
30584 (boot_mod_LDFLAGS): likewise
30585 * conf/i386-efi.rmk: likewise
30586 * conf/i386-ieee1275.rmk: likewise
30587 * conf/i386-pc.rmk: likewise
30588 * conf/powerpc-ieee1275.rmk: likewise
30589 * conf/sparc64-ieee1275.rmk: likewise
30590 * conf/x86_64-efi.rmk: likewise
30591 * include/grub/i386/pc/biosnum.h: new file
30592 * lib/i386/pc/biosnum.c: likewise
30593 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
30594 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
30595 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
30596
30597 2009-06-10 Pavel Roskin <proski@gnu.org>
30598
30599 * io/gzio.c (test_header): Don't reuse one buffer for all data.
30600 Use separate variables. Read only the file size at the end, but
30601 not the checksum that we don't use.
30602
30603 * kern/file.c (grub_file_read): Use void pointer for the buffer.
30604 Adjust all callers.
30605
30606 * kern/ieee1275/openfw.c: Remove libc includes.
30607 * kern/ieee1275/cmain.c: Likewise.
30608 * include/grub/ieee1275/ieee1275.h: Likewise.
30609
30610 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
30611 compiler warnings.
30612
30613 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30614
30615 * Makefile.in: Remove all trailing whitespace.
30616 * conf/i386-pc.rmk: Likewise.
30617 * conf/powerpc-ieee1275.rmk: Likewise.
30618 * conf/sparc64-ieee1275.rmk: Likewise.
30619 * docs/grub.texi: Likewise.
30620 * docs/texinfo.tex: Likewise.
30621 * disk/fs_uuid.c: Likewise.
30622 * disk/lvm.c: Likewise.
30623 * disk/scsi.c: Likewise.
30624 * disk/ata.c: Likewise.
30625 * disk/ieee1275/ofdisk.c: Likewise.
30626 * disk/i386/pc/biosdisk.c: Likewise.
30627 * disk/host.c: Likewise.
30628 * disk/raid.c: Likewise.
30629 * disk/efi/efidisk.c: Likewise.
30630 * disk/usbms.c: Likewise.
30631 * disk/memdisk.c: Likewise.
30632 * disk/loopback.c: Likewise.
30633 * kern/powerpc/dl.c: Likewise.
30634 * kern/device.c: Likewise.
30635 * kern/dl.c: Likewise.
30636 * kern/sparc64/dl.c: Likewise.
30637 * kern/ieee1275/ieee1275.c: Likewise.
30638 * kern/term.c: Likewise.
30639 * kern/fs.c: Likewise.
30640 * kern/i386/dl.c: Likewise.
30641 * kern/i386/pc/startup.S: Likewise.
30642 * kern/i386/pc/init.c: Likewise.
30643 * kern/i386/pc/mmap.c: Likewise.
30644 * kern/i386/pc/lzo1x.S: Likewise.
30645 * kern/i386/ieee1275/init.c: Likewise.
30646 * kern/i386/realmode.S: Likewise.
30647 * kern/i386/tsc.c: Likewise.
30648 * kern/partition.c: Likewise.
30649 * kern/corecmd.c: Likewise.
30650 * kern/file.c: Likewise.
30651 * kern/efi/efi.c: Likewise.
30652 * kern/efi/init.c: Likewise.
30653 * kern/efi/mm.c: Likewise.
30654 * kern/main.c: Likewise.
30655 * kern/err.c: Likewise.
30656 * kern/env.c: Likewise.
30657 * kern/disk.c: Likewise.
30658 * kern/generic/millisleep.c: Likewise.
30659 * kern/generic/rtc_get_time_ms.c: Likewise.
30660 * kern/misc.c: Likewise.
30661 * kern/parser.c: Likewise.
30662 * genmk.rb: Likewise.
30663 * configure.ac: Likewise.
30664 * boot/i386/pc/diskboot.S: Likewise.
30665 * boot/i386/pc/pxeboot.S: Likewise.
30666 * boot/i386/pc/boot.S: Likewise.
30667 * boot/i386/pc/lnxboot.S: Likewise.
30668 * boot/i386/pc/cdboot.S: Likewise.
30669 * parttool/pcpart.c: Likewise.
30670 * video/readers/tga.c: Likewise.
30671 * video/video.c: Likewise.
30672 * video/bitmap.c: Likewise.
30673 * lib/envblk.c: Likewise.
30674 * lib/i386/setjmp.S: Likewise.
30675 * fs/xfs.c: Likewise.
30676 * fs/afs.c: Likewise.
30677 * fs/fat.c: Likewise.
30678 * fs/ntfs.c: Likewise.
30679 * fs/udf.c: Likewise.
30680 * fs/affs.c: Likewise.
30681 * fs/iso9660.c: Likewise.
30682 * fs/hfs.c: Likewise.
30683 * fs/fshelp.c: Likewise.
30684 * fs/ext2.c: Likewise.
30685 * fs/jfs.c: Likewise.
30686 * fs/reiserfs.c: Likewise.
30687 * fs/hfsplus.c: Likewise.
30688 * fs/minix.c: Likewise.
30689 * fs/cpio.c: Likewise.
30690 * fs/sfs.c: Likewise.
30691 * fs/ufs.c: Likewise.
30692 * efiemu/prepare.c: Likewise.
30693 * efiemu/loadcore_common.c: Likewise.
30694 * efiemu/runtime/efiemu.sh: Likewise.
30695 * efiemu/runtime/efiemu.S: Likewise.
30696 * efiemu/runtime/efiemu.c: Likewise.
30697 * efiemu/pnvram.c: Likewise.
30698 * efiemu/main.c: Likewise.
30699 * efiemu/i386/pc/cfgtables.c: Likewise.
30700 * efiemu/i386/loadcore64.c: Likewise.
30701 * efiemu/i386/loadcore32.c: Likewise.
30702 * efiemu/loadcore.c: Likewise.
30703 * efiemu/symbols.c: Likewise.
30704 * efiemu/mm.c: Likewise.
30705 * include/grub/autoefi.h: Likewise.
30706 * include/grub/datetime.h: Likewise.
30707 * include/grub/term.h: Likewise.
30708 * include/grub/hfs.h: Likewise.
30709 * include/grub/lvm.h: Likewise.
30710 * include/grub/i386/tsc.h: Likewise.
30711 * include/grub/i386/linux.h: Likewise.
30712 * include/grub/i386/xnu.h: Likewise.
30713 * include/grub/i386/efiemu.h: Likewise.
30714 * include/grub/i386/pc/biosdisk.h: Likewise.
30715 * include/grub/i386/pc/memory.h: Likewise.
30716 * include/grub/i386/pc/vbe.h: Likewise.
30717 * include/grub/parttool.h: Likewise.
30718 * include/grub/video.h: Likewise.
30719 * include/grub/memory.h: Likewise.
30720 * include/grub/fs.h: Likewise.
30721 * include/grub/partition.h: Likewise.
30722 * include/grub/xnu.h: Likewise.
30723 * include/grub/efi/api.h: Likewise.
30724 * include/grub/efi/pe32.h: Likewise.
30725 * include/grub/efi/memory.h: Likewise.
30726 * include/grub/multiboot.h: Likewise.
30727 * include/grub/usbdesc.h: Likewise.
30728 * include/grub/multiboot2.h: Likewise.
30729 * include/grub/acpi.h: Likewise.
30730 * include/grub/efiemu/efiemu.h: Likewise.
30731 * include/grub/disk.h: Likewise.
30732 * include/grub/ieee1275/ieee1275.h: Likewise.
30733 * include/grub/net.h: Likewise.
30734 * include/grub/machoload.h: Likewise.
30735 * include/grub/macho.h: Likewise.
30736 * include/multiboot.h: Likewise.
30737 * genmoddep.awk: Likewise.
30738 * normal/main.c: Likewise.
30739 * normal/menu_entry.c: Likewise.
30740 * normal/menu_viewer.c: Likewise.
30741 * normal/completion.c: Likewise.
30742 * normal/cmdline.c: Likewise.
30743 * normal/misc.c: Likewise.
30744 * normal/datetime.c: Likewise.
30745 * bus/usb/usbtrans.c: Likewise.
30746 * bus/usb/ohci.c: Likewise.
30747 * bus/usb/uhci.c: Likewise.
30748 * bus/usb/usb.c: Likewise.
30749 * mmap/efi/mmap.c: Likewise.
30750 * mmap/i386/pc/mmap_helper.S: Likewise.
30751 * mmap/i386/pc/mmap.c: Likewise.
30752 * mmap/i386/mmap.c: Likewise.
30753 * mmap/i386/uppermem.c: Likewise.
30754 * mmap/mmap.c: Likewise.
30755 * commands/acpi.c: Likewise.
30756 * commands/echo.c: Likewise.
30757 * commands/blocklist.c: Likewise.
30758 * commands/loadenv.c: Likewise.
30759 * commands/usbtest.c: Likewise.
30760 * commands/boot.c: Likewise.
30761 * commands/parttool.c: Likewise.
30762 * commands/search.c: Likewise.
30763 * commands/cat.c: Likewise.
30764 * commands/i386/pc/play.c: Likewise.
30765 * commands/i386/pc/drivemap.c: Likewise.
30766 * commands/i386/pc/vbeinfo.c: Likewise.
30767 * commands/i386/pc/acpi.c: Likewise.
30768 * commands/i386/pc/vbetest.c: Likewise.
30769 * commands/ls.c: Likewise.
30770 * commands/cmp.c: Likewise.
30771 * commands/test.c: Likewise.
30772 * commands/efi/acpi.c: Likewise.
30773 * commands/gptsync.c: Likewise.
30774 * commands/help.c: Likewise.
30775 * partmap/amiga.c: Likewise.
30776 * partmap/apple.c: Likewise.
30777 * partmap/acorn.c: Likewise.
30778 * partmap/pc.c: Likewise.
30779 * partmap/sun.c: Likewise.
30780 * partmap/gpt.c: Likewise.
30781 * script/sh/lexer.c: Likewise.
30782 * script/sh/function.c: Likewise.
30783 * font/font.c: Likewise.
30784 * font/font_cmd.c: Likewise.
30785 * loader/powerpc/ieee1275/linux.c: Likewise.
30786 * loader/efi/chainloader.c: Likewise.
30787 * loader/multiboot_loader.c: Likewise.
30788 * loader/macho.c: Likewise.
30789 * loader/i386/multiboot.c: Likewise.
30790 * loader/i386/linux.c: Likewise.
30791 * loader/i386/pc/linux.c: Likewise.
30792 * loader/i386/pc/multiboot2.c: Likewise.
30793 * loader/i386/pc/chainloader.c: Likewise.
30794 * loader/i386/pc/xnu.c: Likewise.
30795 * loader/i386/bsd_trampoline.S: Likewise.
30796 * loader/i386/efi/linux.c: Likewise.
30797 * loader/i386/multiboot_elfxx.c: Likewise.
30798 * loader/i386/bsd_helper.S: Likewise.
30799 * loader/i386/bsd.c: Likewise.
30800 * loader/i386/linux_trampoline.S: Likewise.
30801 * loader/i386/xnu_helper.S: Likewise.
30802 * loader/i386/xnu.c: Likewise.
30803 * loader/i386/bsd_pagetable.c: Likewise.
30804 * loader/i386/multiboot_helper.S: Likewise.
30805 * loader/xnu.c: Likewise.
30806 * loader/xnu_resume.c: Likewise.
30807 * io/gzio.c: Likewise.
30808 * term/efi/console.c: Likewise.
30809 * term/terminfo.c: Likewise.
30810 * term/ieee1275/ofconsole.c: Likewise.
30811 * term/i386/pc/serial.c: Likewise.
30812 * term/i386/pc/vesafb.c: Likewise.
30813 * term/i386/pc/vga.c: Likewise.
30814 * term/usb_keyboard.c: Likewise.
30815 * term/gfxterm.c: Likewise.
30816 * aclocal.m4: Likewise.
30817 * util/lvm.c: Likewise.
30818 * util/grub.d/30_os-prober.in: Likewise.
30819 * util/grub.d/10_hurd.in: Likewise.
30820 * util/console.c: Likewise.
30821 * util/grub-macho2img.c: Likewise.
30822 * util/grub-probe.c: Likewise.
30823 * util/hostfs.c: Likewise.
30824 * util/i386/pc/grub-mkimage.c: Likewise.
30825 * util/i386/pc/grub-setup.c: Likewise.
30826 * util/i386/efi/grub-mkimage.c: Likewise.
30827 * util/grub-mkconfig.in: Likewise.
30828 * util/raid.c: Likewise.
30829 * util/resolve.c: Likewise.
30830 * util/grub-mkdevicemap.c: Likewise.
30831 * util/grub-emu.c: Likewise.
30832 * util/getroot.c: Likewise.
30833 * util/hostdisk.c: Likewise.
30834 * util/usb.c: Likewise.
30835 * util/grub-editenv.c: Likewise.
30836 * util/misc.c: Likewise.
30837
30838 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30839
30840 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
30841 `genparttoollist.sh'.
30842 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
30843 Add `*.sh' to the list find searches for and change `mdate.sh'
30844 to `mdate-sh'.
30845
30846 2009-06-10 Pavel Roskin <proski@gnu.org>
30847
30848 * include/grub/multiboot2.h: Provide compatibility defines for
30849 multiboot2.h.
30850 * include/multiboot2.h: Include stdint.h only if needed, using
30851 angle brackets.
30852 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
30853 grub/multiboot2.h.
30854 * loader/ieee1275/multiboot2.c: Likewise.
30855 * loader/multiboot2.c: Likewise.
30856 * loader/multiboot_loader.c: Likewise.
30857
30858 * configure.ac: Use -nostdlib when probing for the target. It
30859 should not be required to have libc for the target.
30860
30861 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
30862 they fail without libc headers for the target.
30863 * include/grub/powerpc/libgcc.h: Use weak attribute for all
30864 exports.
30865 * include/grub/sparc64/libgcc.h: Likewise. Don't use
30866 preprocessor conditionals.
30867
30868 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
30869 build system doesn't need to be aware of the tar.c internals.
30870
30871 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
30872
30873 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
30874
30875 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
30876
30877 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
30878 disk limit to 26 for IDE, Virtio, Xen and SCSI.
30879
30880 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
30881
30882 * util/i386/pc/grub-install.in: Change the error message if UUIDs
30883 aren't available if ata.mod gets used.
30884
30885 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
30886
30887 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
30888 initialising controller.
30889 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30890
30891 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30892
30893 * util/i386/pc/grub-install.in: Add a parameter --disk-module
30894 to choose between ata and biosdisk module on i386-pc.
30895
30896 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
30897
30898 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
30899 Subclass and Programming Interface fields in terms of the 3 byte
30900 Class Code register.
30901 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30902
30903 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
30904 interface is OHCI. Add grub_dprintf for symmetry with
30905 bus/usb/uhci.c.
30906 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
30907 interface is UHCI. Add interf variable for programming
30908 interface. Print interface with class/subclass.
30909
30910 * bus/usb/ohci.c: Set interf with correct field.
30911
30912 * bus/usb/uhci.c: Remove unneeded doubled lines.
30913 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
30914 Remove whitespace inside comment.
30915
30916 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
30917
30918 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
30919 as fallback an equivalent option without depth.
30920
30921 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30922
30923 Not fail if unable to retrieve C/H/S on LBA disks
30924
30925 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
30926 if unable to retrieve C/H/S on LBA disks
30927
30928 2009-06-08 Pavel Roskin <proski@gnu.org>
30929
30930 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
30931 about aliasing.
30932
30933 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30934
30935 * Makefile.in (uninstall): Remove all $lib_DATA files.
30936
30937 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30938
30939 Bugfix: install on partitionless device
30940
30941 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
30942 is a whole disk
30943
30944 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30945
30946 * Makefile.in (uninstall): Remove all $include_DATA files.
30947
30948 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30949
30950 * commands/true.c: New file. Implement the true and false commands.
30951 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
30952 (true_mod_SOURCES): New variable.
30953 (true_mod_CFLAGS): Likewise.
30954 (true_mod_LDFLAGS): Likewise.
30955
30956 2009-06-05 Colin D Bennett <colin@gibibit.com>
30957
30958 Optimized font character lookup using binary search instead of linear
30959 search. Fonts now are required to have the character index ordered by
30960 code point.
30961
30962 * font/font.c (load_font_index): Verify that fonts have ordered
30963 character indices.
30964 (find_glyph): Use binary search instead of linear search to find a
30965 character in a font.
30966
30967 2009-06-05 Michael Scherer <misc@mandriva.org>
30968
30969 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
30970 uses case sensitive btree.
30971 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
30972 only for case insensitive filesystems.
30973
30974 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
30975
30976 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
30977 * conf/common.rmk (search_mod_CFLAGS): likewise
30978
30979 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30980
30981 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
30982 compensate a compiler bug
30983
30984 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30985
30986 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
30987 instead of '\b'
30988
30989 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30990
30991 Definitions for creating asm symbols with Apple's CC
30992
30993 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
30994 [APPLE_CC] (VARIABLE): likewise
30995
30996 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30997
30998 Disable lnxboot.img when compiled
30999 with Apple's CC
31000
31001 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
31002 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
31003 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
31004 [! APPLE_CC] (CODE_LENG): skip
31005 [! APPLE_CC] (setup_sects): likewise
31006 [! APPLE_CC]: skip filling
31007
31008 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31009
31010 Address in trampolines based on 32-bit registers when compiled
31011 with Apple's CC
31012
31013 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
31014 for addresses
31015 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
31016
31017 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31018
31019 Avoid aliases when compiling with Apple's CC for PCBIOS machine
31020
31021 * kern/misc.c [APPLE_CC] (memcpy): new function
31022 [APPLE_CC] (memmove): likewise
31023 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
31024 (memcpy): define alias conditionally on !APPLE_CC
31025 (memset): likewise
31026 (abort): likewise
31027 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
31028 APPLE_CC are defined
31029 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
31030 (grub_assert_fail): make prototype conditional
31031
31032 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31033
31034 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
31035
31036 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
31037 grub-macho2img
31038 (CLEANFILES): add grub-macho2img
31039 (grub_macho2img_SOURCES): new variable
31040 * kern/i386/pc/startup.S (bss_start): new variable
31041 (bss_end): likewise
31042 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
31043 * util/grub-macho2img.c: new file
31044
31045 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31046
31047 Use objconv when compiling with Apple's CC
31048
31049 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
31050 (efiemu64.o): likewise
31051 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
31052 when compiling with Apple's CC
31053 (efiemu64_s.o): likewise
31054 * configure.ac: check for objconv when compiling with Apple's CC
31055 * genmk.rb: use objconv for modules when compiled with Apple's CC
31056
31057 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31058
31059 Define segment as well as section when compiling with
31060 Apple's CC
31061
31062 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
31063 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
31064 (efiemu_convert_pointer): likewise
31065 (efiemu_set_virtual_address_map): likewise
31066 (efiemu_convert_pointer): likewise
31067 (efiemu_getcrc32): likewise
31068 (init_crc32_table): likewise
31069 (reflect): likewise
31070 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
31071 (GRUB_MOD_DEP): likewise
31072
31073 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31074
31075 Allow a compilation without -mcmodel=large
31076
31077 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
31078 when compiled without -mcmodel=large
31079 (filter_memory_map): remove memory post 4 GiB when compiled
31080 without -mcmodel=large
31081 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
31082 TARGET_CFLAGS when -mcmodel=large isn't supported
31083
31084 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31085
31086 Remove nested functions in efiemu core
31087
31088 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
31089
31090 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31091
31092 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
31093
31094 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
31095 temporary storage
31096 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
31097 using Apple's CC
31098 (grub_cpu_is_tsc_supported): likewise
31099 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
31100
31101 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31102
31103 Absolute addressing through constant with Apple's cc
31104
31105 * kern/i386/pc/startup.S: Define necessary constants
31106 and address through it when using ABS with Apple's CC
31107 * boot/i386/pc/diskboot.S: likewise
31108 * boot/i386/pc/boot.S: likewise
31109 * boot/i386/pc/lnxboot.S: likewise
31110 * boot/i386/pc/cdboot.S: likewise
31111 * mmap/i386/pc/mmap_helper.S: likewise
31112 * commands/i386/pc/drivemap_int13h.S: likewise
31113
31114 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31115
31116 Check if compiler is apple cc
31117
31118 * Makefile.in (ASFLAGS): new variable
31119 (TARGET_ASFLAGS): likewise
31120 (TARGET_MODULE_FORMAT): likewise
31121 (TARGET_APPLE_CC): likewise
31122 (OBJCONV): likewise
31123 (TARGET_IMG_CFLAGS): likewise
31124 (TARGET_CPPFLAGS): add includedir
31125 * configure.ac: call grub_apple_cc and grub_apple_target_cc
31126 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
31127 Check for linker script only if compiler isn't Apple's CC
31128 (TARGET_MODULE_FORMAT): set
31129 (TARGET_APPLE_CC): likewise
31130 (TARGET_ASFLAGS): likewise
31131 (ASFLAGS): likewise
31132 Check for objcopy only if compiler isn't Apple's CC
31133 Check for BSS symbol only if compiler isn't Apple's CC
31134 * genmk.rb: adapt nm options if we use Apple's utils
31135 * aclocal.m4 (grub_apple_cc): new test
31136 (grub_apple_target_cc): likewise
31137
31138 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31139
31140 Simplify sed expressions and improve awk
31141
31142 * Makefile.in (install-local): simplify sed expression
31143 * gencmdlist.sh: likewise
31144 * genmoddep.awk: avoid adding module as a dependency of itself
31145
31146 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31147
31148 Add missing start symbols
31149
31150 * boot/i386/pc/boot.S: add start
31151 * boot/i386/pc/pxeboot.S: likewise
31152
31153 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31154
31155 Fix wrong assumptions with grub-mkimage on EFI
31156
31157 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
31158 (relocate_addresses): consider both r_addend and value at offset
31159 (make_mods_section): zerofill modinfo and header
31160 (convert_elf): write prefix here
31161
31162 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31163
31164 Use .asciz instead of .string
31165
31166 * i386/pc/diskboot.S: use .asciz instead of .string
31167 * i386/pc/boot.S: likewise
31168 * include/grub/dl.h (GRUB_MOD_DEP): likewise
31169 (GRUB_MOD_NAME): likewise
31170
31171 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31172
31173 gfxpayload support
31174
31175 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
31176 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
31177 (grub_video_setup): remove
31178 (grub_video_set_mode): new prototype
31179 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
31180 (vid_mode): remove
31181 (linux_vesafb_res): compile only on PCBIOS
31182 (grub_linux_boot): support gfxpayload
31183 * loader/i386/pc/xnu.c (video_hook): new function
31184 (grub_xnu_set_video): support gfxpayload
31185 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
31186 (DEFAULT_VIDEO_HEIGHT): likewise
31187 (DEFAULT_VIDEO_FLAGS): likewise
31188 (DEFAULT_VIDEO_MODE): new definition
31189 (video_hook): new function
31190 (grub_gfxterm_init): use grub_video_set_mode
31191 * util/grub.d/30_os-prober.in: remove explicit modesetting before
31192 loading xnu
31193 * video/video.c (grub_video_setup): removed
31194 (grub_video_set_mode): new function based on grub_gfxterm_init and
31195 grub_video_setup
31196
31197 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31198
31199 Avoid calling biosdisk in drivemap
31200
31201 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
31202 (revparse_biosdisk): likewise
31203 (list_mappings): derive name from id directly
31204 (grub_cmd_drivemap): use tryparse_diskstring
31205
31206 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31207
31208 Script fixes
31209
31210 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
31211 (grub_lexer_param): add tokenonhold
31212 (grub_script_create_cmdline): remove cmdline. All callers updated
31213 (grub_script_function_create): make functionname
31214 grub_script_arg. All callers updated
31215 (grub_script_execute_argument_to_string): new prototype
31216 * kern/parser.c (state_transitions): reorder
31217 (grub_parser_cmdline_state): fix a bug and make more compact
31218 * script/sh/execute.c (grub_script_execute_argument_to_string):
31219 make global
31220 (grub_script_execute_cmdline): use new format
31221 * script/sh/function.c (grub_script_function_create): make functionname
31222 grub_script_arg. All callers updated
31223 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
31224 (grub_script_yylex): remove
31225 (grub_script_yylex2): renamed to ...
31226 (grub_script_yylex): ...renamed
31227 parse the expressions like a${b}c
31228 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
31229 (GRUB_PARSER_TOKEN_VAR): remove
31230 (GRUB_PARSER_TOKEN_NAME): likewise
31231 ("if"): declare as typeless
31232 ("while"): likewise
31233 ("function"): likewise
31234 ("else"): likewise
31235 ("then"): likewise
31236 ("fi"): likewise
31237 (text): remove
31238 (argument): likewise
31239 (script): accept empty scripts and make exit on error
31240 (arguments): use GRUB_PARSER_TOKEN_ARG
31241 (function): likewise
31242 (command): move error handling to script
31243 (menuentry): move grub_script_lexer_ref before
31244 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
31245 argument. All callers updated
31246
31247 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31248
31249 Prevent GRUB from probing floppies during boot.
31250
31251 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
31252 * commands/search.c (options): Add --no-floppy.
31253 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
31254 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
31255 --no-floppy when searching for UUIDs.
31256
31257 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31258
31259 Simplify the code duplication in commands/search.c.
31260
31261 * commands/search.c (search_label, search_fs_uuid): Merge into ...
31262 (search_fs): ... this. Update all users.
31263
31264 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
31265
31266 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
31267
31268 2009-05-28 Pavel Roskin <proski@gnu.org>
31269
31270 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
31271 Remove the original symlink explicitly.
31272
31273 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
31274 just one slash. That's how grub_fshelp_find_file() does it.
31275
31276 2009-05-26 Pavel Roskin <proski@gnu.org>
31277
31278 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
31279 to `str'.
31280
31281 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
31282 possibly unused.
31283
31284 2009-05-25 Christian Franke <franke@computer.org>
31285
31286 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
31287 register.
31288 (grub_atapi_identify): Add wait after drive select.
31289 (grub_ata_identify): Do more strict status register check before
31290 calling grub_atapi_identify (). Suppress error message if status
31291 register is 0x00 after command failure. Add status register
31292 check after PIO read to avoid bogus identify due to stuck DRQ.
31293 Thanks to Pavel Roskin for testing.
31294 (grub_device_initialize): Remove unsafe status register check.
31295 Thanks to 'phcoder' for problem report and patch.
31296 Prevent sign extension in debug message.
31297
31298 2009-05-23 Colin D Bennett <colin@gibibit.com>
31299
31300 Cleaned up `include/grub/normal.h'. Grouped prototypes by
31301 definition file, and functions defined in `normal/menu.c' have had
31302 their prototypes moved to `include/grub/menu.h' for consistency.
31303
31304 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
31305 from normal.h.
31306 (grub_menu_get_entry): Likewise.
31307 (grub_menu_get_timeout): Likewise.
31308 (grub_menu_set_timeout): Likewise.
31309 (grub_menu_execute_entry): Likewise.
31310 (grub_menu_execute_with_fallback): Likewise.
31311 (grub_menu_entry_run): Likewise.
31312
31313 * include/grub/normal.h: Re-ordered and grouped function
31314 prototypes by file that the function is defined in.
31315 (grub_menu_execute_callback): Removed; moved to menu.h.
31316 (grub_menu_get_entry): Likewise.
31317 (grub_menu_get_timeout): Likewise.
31318 (grub_menu_set_timeout): Likewise.
31319 (grub_menu_execute_entry): Likewise.
31320 (grub_menu_execute_with_fallback): Likewise.
31321 (grub_menu_entry_run): Likewise.
31322 (grub_menu_addentry): Renamed from this ...
31323 (grub_normal_add_menu_entry): ... to this.
31324
31325 * normal/main.c (grub_menu_addentry): Renamed from this ...
31326 (grub_normal_add_menu_entry): ... to this.
31327
31328 * script/sh/execute.c (grub_script_execute_menuentry): Update
31329 reference to renamed grub_menu_addentry function.
31330
31331 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
31332
31333 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
31334
31335 2009-05-22 Pavel Roskin <proski@gnu.org>
31336
31337 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
31338 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
31339 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
31340 compiling for the i386 targets, but not for the utilities.
31341
31342 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
31343 to grub_uint8_t.
31344 (grub_root_drive): Likewise.
31345 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
31346 remove alignment.
31347 (grub_root_drive): Change size to byte.
31348 (grub_start_addr): Remove.
31349 (grub_end_addr): Likewise.
31350 (grub_apm_bios_info): Likewise.
31351
31352 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
31353
31354 * normal/i386: Remove.
31355 * normal/powerpc: Likewise.
31356 * normal/sparc64: Likewise.
31357 * normal/x86_64: Likewise.
31358
31359 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
31360
31361 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
31362 * loader/i386/linux_trampoline.S: Fix indentation
31363 * loader/i386/xnu_helper.S: Likewise
31364
31365 2009-05-18 Colin D Bennett <colin@gibibit.com>
31366
31367 Display error messages when parsing a Lua statement fails.
31368 Previously, executing a syntactically invalid statement like
31369 ")foo" or "bar;" would silently fail.
31370
31371 * script/lua/grub_main.c (handle_lua_error): New function.
31372 (grub_lua_parse_line): Improved reporting of Lua parser and
31373 execution errors.
31374
31375 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31376
31377 Remove -Werror which causes build to fail on some systems
31378
31379 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
31380 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
31381 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
31382
31383 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31384
31385 trampoline for linux on 64-bit platform
31386
31387 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
31388 loader/i386/efi/linux_trampoline.S
31389 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
31390 declaration
31391 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
31392 here
31393 * loader/i386/linux_trampoline.S: moved here
31394 * loader/i386/efi/linux.c (allocate_pages): reserve space for
31395 trampoline
31396 (jumpvector): removed
31397 (grub_linux_trampoline_start): new declaration
31398 (grub_linux_trampoline_end): likewise
31399 (grub_linux_boot): use trampoline when on 64-bit platform
31400 * loader/i386/linux.c: likewise
31401
31402 2009-05-16 Pavel Roskin <proski@gnu.org>
31403
31404 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
31405 const to avoid a warning.
31406 (grub_lua_setenv): Likewise.
31407 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
31408 lmsg to fix a warning.
31409
31410 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
31411
31412 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
31413 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31414 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
31415 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31416 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31417 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31418 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31419 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31420
31421 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
31422
31423 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
31424
31425 2009-05-16 Bean <bean123ch@gmail.com>
31426
31427 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
31428 (lua_mod_SOURCES): New variable.
31429 (lua_mod_CFLAGS): Likewise.
31430 (lua_mod_LDFLAGS): Likewise.
31431
31432 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
31433 (setjmp_mod_SOURCES): New variable.
31434 (setjmp_mod_CFLAGS): Likewise.
31435 (setjmp_LDFLAGS): Likewise.
31436
31437 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
31438 (setjmp_mod_SOURCES): New variable.
31439 (setjmp_mod_CFLAGS): Likewise.
31440 (setjmp_LDFLAGS): Likewise.
31441
31442 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31443 (setjmp_mod_SOURCES): New variable.
31444 (setjmp_mod_CFLAGS): Likewise.
31445 (setjmp_LDFLAGS): Likewise.
31446
31447 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31448 (setjmp_mod_SOURCES): New variable.
31449 (setjmp_mod_CFLAGS): Likewise.
31450 (setjmp_LDFLAGS): Likewise.
31451
31452 * normal/i386/setjmp.S: Moved from here ...
31453 * lib/i386/setjmp.S: ... Moved here
31454 * normal/x86_64/setjmp.S: Moved from here ...
31455 * lib/x86_64/setjmp.S: ... Moved here
31456 * normal/powerpc/setjmp.S: Moved from here ...
31457 * lib/powerpc/setjmp.S: ... Moved here
31458 * normal/sparc64/setjmp.S: Moved from here ...
31459 * lib/sparc64/setjmp.S: ... Moved here
31460
31461 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
31462 returns_twice in mingw.
31463
31464 * script/lua/grub_lib.c: New file.
31465 * script/lua/grub_lib.h: Likewise.
31466 * script/lua/grub_lua.h: Likewise.
31467 * script/lua/grub_main.c: Likewise.
31468 * script/lua/lapi.c: Likewise.
31469 * script/lua/lapi.h: Likewise.
31470 * script/lua/lauxlib.c: Likewise.
31471 * script/lua/lauxlib.h: Likewise.
31472 * script/lua/lbaselib.c: Likewise.
31473 * script/lua/lcode.c: Likewise.
31474 * script/lua/lcode.h: Likewise.
31475 * script/lua/ldblib.c: Likewise.
31476 * script/lua/ldebug.c: Likewise.
31477 * script/lua/ldebug.h: Likewise.
31478 * script/lua/ldo.c: Likewise.
31479 * script/lua/ldo.h: Likewise.
31480 * script/lua/ldump.c: Likewise.
31481 * script/lua/lfunc.c: Likewise.
31482 * script/lua/lfunc.h: Likewise.
31483 * script/lua/lgc.c: Likewise.
31484 * script/lua/lgc.h: Likewise.
31485 * script/lua/linit.c: Likewise.
31486 * script/lua/liolib.c: Likewise.
31487 * script/lua/llex.c: Likewise.
31488 * script/lua/llex.h: Likewise.
31489 * script/lua/llimits.h: Likewise.
31490 * script/lua/lmathlib.c: Likewise.
31491 * script/lua/lmem.c: Likewise.
31492 * script/lua/lmem.h: Likewise.
31493 * script/lua/loadlib.c: Likewise.
31494 * script/lua/lobject.c: Likewise.
31495 * script/lua/lobject.h: Likewise.
31496 * script/lua/lopcodes.c: Likewise.
31497 * script/lua/lopcodes.h: Likewise.
31498 * script/lua/loslib.c: Likewise.
31499 * script/lua/lparser.c: Likewise.
31500 * script/lua/lparser.h: Likewise.
31501 * script/lua/lstate.c: Likewise.
31502 * script/lua/lstate.h: Likewise.
31503 * script/lua/lstring.c: Likewise.
31504 * script/lua/lstring.h: Likewise.
31505 * script/lua/lstrlib.c: Likewise.
31506 * script/lua/ltable.c: Likewise.
31507 * script/lua/ltable.h: Likewise.
31508 * script/lua/ltablib.c: Likewise.
31509 * script/lua/ltm.c: Likewise.
31510 * script/lua/ltm.h: Likewise.
31511 * script/lua/lua.h: Likewise.
31512 * script/lua/luaconf.h: Likewise.
31513 * script/lua/lualib.h: Likewise.
31514 * script/lua/lundump.c: Likewise.
31515 * script/lua/lundump.h: Likewise.
31516 * script/lua/lvm.c: Likewise.
31517 * script/lua/lvm.h: Likewise.
31518 * script/lua/lzio.c: Likewise.
31519 * script/lua/lzio.h: Likewise.
31520
31521 2009-05-16 Bean <bean123ch@gmail.com>
31522
31523 * include/grub/kernel.h (grub_module_header_types): Add type
31524 OBJ_TYPE_CONFIG.
31525
31526 * kern/main.c (grub_load_config): New function.
31527 (grub_main): Call grub_load_config to read boot config.
31528
31529 * grub-mkimage (generate_image): New parameter config_path.
31530 (options): New option --config.
31531 (main): Parse --config option, and pass it to generate_image.
31532
31533 2009-05-14 Christian Franke <franke@computer.org>
31534
31535 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
31536 This fixes build on Cygwin.
31537
31538 2009-05-14 Pavel Roskin <proski@gnu.org>
31539
31540 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
31541 jump. This saves two bytes, so the typical case of 2 swapped
31542 drives would fit 32 bytes.
31543
31544 2009-05-13 Pavel Roskin <proski@gnu.org>
31545
31546 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
31547 grub_uint32_t to avoid a warning.
31548
31549 * loader/i386/linux.c (allocate_pages): When assigning
31550 real_mode_mem, cast through grub_size_t to fix a warning. The
31551 code already makes sure that the value would fit a pointer.
31552 (grub_linux_setup_video): Cast render_target->data to
31553 grub_size_t to fix a warning.
31554
31555 2009-05-13 Javier Martín <lordhabbit@gmail.com>
31556
31557 * commands/i386/pc/drivemap.c: New file - implement drivemap
31558 command.
31559 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
31560 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
31561
31562 2009-05-13 Pavel Roskin <proski@gnu.org>
31563
31564 * util/i386/pc/grub-setup.c (setup): Remove unused variable
31565 embedding_area_exists.
31566
31567 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
31568
31569 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
31570 it easier to understand / work with.
31571 Improve warning messages for cases where there's no embedding area,
31572 or when it is too small (or core.img too large).
31573
31574 2009-05-13 Pavel Roskin <proski@gnu.org>
31575
31576 * loader/i386/pc/multiboot2.c: Add necessary includes for
31577 grub_multiboot2_real_boot().
31578
31579 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
31580 PX record is always little-endian. We only need the lower 2
31581 bytes of the mode.
31582
31583 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
31584 facilitate code reuse.
31585 (grub_cpio_mount): Use "struct head", not a char buffer. This
31586 fixes a warning reported by gcc 4.4.
31587
31588 * kernel/disk.c (grub_disk_read): Use void pointer for the
31589 buffer.
31590 (grub_disk_write): Use const void pointer for the buffer.
31591 Adjust all callers. Remove unnecessary casts.
31592
31593 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
31594
31595 * util/i386/pc/grub-install.in: Update copyright year.
31596
31597 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31598
31599 gptsync
31600
31601 * commands/gptsync.c: new file
31602 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
31603 (gptsync_mod_SOURCES): new variable
31604 (gptsync_mod_CFLAGS): likewise
31605 (gptsync_mod_LDFLAGS): likewise
31606 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
31607 new definition
31608 (GRUB_PC_PARTITION_TYPE_HFS): likewise
31609 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
31610 * conf/i386-ieee1275.rmk: likewise
31611 * conf/i386-pc.rmk: likewise
31612 * conf/powerpc-ieee1275.rmk: likewise
31613
31614 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31615
31616 Fixed grub-emu
31617
31618 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
31619 (grub_dl_ref): likewise
31620
31621 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
31622
31623 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
31624 split in two functions (one for msdos and one for gpt).
31625
31626 2009-05-08 Pavel Roskin <proski@gnu.org>
31627
31628 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
31629 not modified.
31630
31631 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
31632 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
31633 Initialize them with -1. Add sanity check for bad1. Eliminate
31634 nerr variable.
31635
31636 2009-05-08 David S. Miller <davem@davemloft.net>
31637
31638 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
31639
31640 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
31641
31642 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
31643 existence.
31644
31645 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
31646
31647 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31648 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
31649
31650 2009-05-05 David S. Miller <davem@davemloft.net>
31651
31652 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
31653
31654 2009-05-05 Pavel Roskin <proski@gnu.org>
31655
31656 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
31657 of grub_dl_ref() and grub_dl_unref().
31658 * commands/parttool.c: Remove preprocessor conditionals around
31659 grub_dl_ref() and grub_dl_unref().
31660 * fs/affs.c: Likewise.
31661 * fs/afs.c: Likewise.
31662 * fs/cpio.c: Likewise.
31663 * fs/ext2.c: Likewise.
31664 * fs/fat.c: Likewise.
31665 * fs/hfs.c: Likewise.
31666 * fs/hfsplus.c: Likewise.
31667 * fs/iso9660.c: Likewise.
31668 * fs/jfs.c: Likewise.
31669 * fs/minix.c: Likewise.
31670 * fs/ntfs.c: Likewise.
31671 * fs/reiserfs.c: Likewise.
31672 * fs/sfs.c: Likewise.
31673 * fs/udf.c: Likewise.
31674 * fs/ufs.c: Likewise.
31675 * fs/xfs.c: Likewise.
31676 * include/grub/dl.h: Likewise.
31677 * loader/xnu.c: Likewise.
31678
31679 2009-05-04 Pavel Roskin <proski@gnu.org>
31680
31681 * commands/acpi.c: Remove unused variable my_mod.
31682 * partmap/amiga.c: Likewise.
31683 * partmap/apple.c: Likewise.
31684 * partmap/gpt.c: Likewise.
31685 * partmap/pc.c: Likewise.
31686 * partmap/sun.c: Likewise.
31687 * term/gfxterm.c: Likewise.
31688 * term/i386/pc/vesafb.c: Likewise.
31689 * term/i386/pc/vga.c: Likewise.
31690
31691 2009-05-04 David S. Miller <davem@davemloft.net>
31692
31693 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
31694 pointer args to grub_ieee1275_get_property().
31695
31696 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
31697
31698 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
31699 devices, and do not traverse down under controller nodes.
31700
31701 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
31702 (grub_ofdisk_open): Use it to un-escape "," characters.
31703 * kern/disk.c (find_part_sep): New.
31704 (grub_disk_open): Use it to find the first non-escaped ','
31705 character in the disk name.
31706 * util/ieee1275/devicemap.c (escape_of_path): New.
31707 (grub_util_emit_devicemap_entry): Use it.
31708 * util/sparc64/ieee1275/grub-install.in: Update script to
31709 strip partition specifiers properly by not triggering on
31710 '\' escaped ',' characters.
31711
31712 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31713
31714 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
31715 to 0x300.
31716 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
31717 resolutions.
31718 (linux_vesafb_modes): Add a lot of additional modes to the list (based
31719 on documentation from Wikipedia).
31720
31721 2009-05-04 Pavel Roskin <proski@gnu.org>
31722
31723 * disk/ata.c: Spelling fixes.
31724 * disk/raid.c: Likewise.
31725 * disk/usbms.c: Likewise.
31726 * disk/dmraid_nvidia.c: Likewise.
31727 * kern/ieee1275/openfw.c: Likewise.
31728 * kern/ieee1275/init.c: Likewise.
31729 * kern/ieee1275/cmain.c: Likewise.
31730 * boot/i386/pc/cdboot.S: Likewise.
31731 * video/readers/png.c: Likewise.
31732 * video/i386/pc/vbe.c: Likewise.
31733 * fs/udf.c: Likewise.
31734 * fs/hfs.c: Likewise.
31735 * fs/reiserfs.c: Likewise.
31736 * efiemu/runtime/efiemu.c: Likewise.
31737 * efiemu/main.c: Likewise.
31738 * efiemu/mm.c: Likewise.
31739 * include/grub/elf.h: Likewise.
31740 * include/grub/xnu.h: Likewise.
31741 * include/grub/usbdesc.h: Likewise.
31742 * include/grub/usb.h: Likewise.
31743 * include/grub/script_sh.h: Likewise.
31744 * include/grub/lib/LzmaEnc.h: Likewise.
31745 * include/grub/efiemu/efiemu.h: Likewise.
31746 * include/grub/command.h: Likewise.
31747 * normal/menu.c: Likewise.
31748 * normal/main.c: Likewise.
31749 * normal/datetime.c: Likewise.
31750 * bus/usb/uhci.c: Likewise.
31751 * mmap/i386/uppermem.c: Likewise.
31752 * mmap/mmap.c: Likewise.
31753 * commands/acpi.c: Likewise.
31754 * commands/test.c: Likewise.
31755 * partmap/apple.c: Likewise.
31756 * font/font.c: Likewise.
31757 * loader/sparc64/ieee1275/linux.c: Likewise.
31758 * loader/macho.c: Likewise.
31759 * loader/i386/bsd_trampoline.S: Likewise.
31760 * loader/i386/bsd.c: Likewise.
31761 * loader/xnu.c: Likewise.
31762 * term/i386/pc/vesafb.c: Likewise.
31763 * term/usb_keyboard.c: Likewise.
31764 * util/resolve.c: Likewise.
31765 * util/getroot.c: Likewise.
31766
31767 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31768
31769 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
31770
31771 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31772
31773 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
31774 build error.
31775
31776 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31777
31778 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
31779 parameter only available on BIOS.
31780
31781 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31782
31783 Removed wrong semicolon in declaration
31784
31785 * grub/misc.h (grub_dprintf): remove semicolon
31786
31787 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31788
31789 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
31790 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
31791 is done by grub_cmd_linux() now).
31792 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
31793 restore video to text mode.
31794 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
31795 indicates lack of "vga=" parameter. "vga=0" is mapped to
31796 `GRUB_LINUX_VID_MODE_NORMAL'.
31797
31798 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31799
31800 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
31801 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
31802 and `normal/script.c'. Add `kern/rescue_reader.c',
31803 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
31804 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
31805 `grub_script.tab.c'.
31806
31807 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31808 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31809 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31810 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31811 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31812
31813 * Makefile.in: Remove duplicated 2008 in Copyright line.
31814
31815 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31816
31817 * util/misc.c (grub_util_warn): New function. Emits a warning
31818 unconditionally.
31819 * include/grub/util/misc.h (grub_util_warn): New declaration.
31820
31821 * util/i386/pc/grub-install.in: Understand --force and pass it down
31822 to grub-setup.
31823
31824 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
31825 down to setup().
31826 (setup): Improve error messages and add warnings when requested to
31827 install in odd layouts. Refuse to install using blocklists unless
31828 --force was set.
31829
31830 2009-05-04 martin f. krafft <madduck@madduck.net>
31831
31832 * disk/raid.c (grub_raid_scan_device): Improve debug message.
31833
31834 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31835
31836 Updated copyright year
31837
31838 * fs/hfsplus.c: updated copyright year
31839
31840 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31841
31842 HFS+ UUID
31843
31844 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
31845 in the space previously used by unused3
31846 (grub_hfsplus_uuid): new function
31847 (grub_hfsplus_fs): added uuid field
31848
31849 2009-05-03 Pavel Roskin <proski@gnu.org>
31850
31851 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
31852 suppress warnings. It's no longer needed.
31853 * disk/host.c: Likewise.
31854 * disk/ata_pthru.c: Likewise.
31855 * disk/loopback.c: Likewise.
31856 * hook/datehook.c: Likewise.
31857 * parttool/pcpart.c: Likewise.
31858 * fs/i386/pc/pxe.c: Likewise.
31859 * fs/ntfscomp.c: Likewise.
31860 * efiemu/main.c: Likewise.
31861 * mmap/mmap.c: Likewise.
31862 * commands/crc.c: Likewise.
31863 * commands/hexdump.c: Likewise.
31864 * commands/hdparm.c: Likewise.
31865 * commands/acpi.c: Likewise.
31866 * commands/echo.c: Likewise.
31867 * commands/minicmd.c: Likewise.
31868 * commands/blocklist.c: Likewise.
31869 * commands/memrw.c: Likewise.
31870 * commands/loadenv.c: Likewise.
31871 * commands/usbtest.c: Likewise.
31872 * commands/lsmmap.c: Likewise.
31873 * commands/boot.c: Likewise.
31874 * commands/parttool.c: Likewise.
31875 * commands/configfile.c: Likewise.
31876 * commands/search.c: Likewise.
31877 * commands/ieee1275/suspend.c: Likewise.
31878 * commands/cat.c: Likewise.
31879 * commands/i386/pc/pxecmd.c: Likewise.
31880 * commands/i386/pc/play.c: Likewise.
31881 * commands/i386/pc/halt.c: Likewise.
31882 * commands/i386/pc/vbeinfo.c: Likewise.
31883 * commands/i386/pc/vbetest.c: Likewise.
31884 * commands/lspci.c: Likewise.
31885 * commands/date.c: Likewise.
31886 * commands/handler.c: Likewise.
31887 * commands/ls.c: Likewise.
31888 * commands/test.c: Likewise.
31889 * commands/cmp.c: Likewise.
31890 * commands/efi/loadbios.c: Likewise.
31891 * commands/efi/fixvideo.c: Likewise.
31892 * commands/halt.c: Likewise.
31893 * commands/help.c: Likewise.
31894 * commands/reboot.c: Likewise.
31895 * hello/hello.c: Likewise.
31896 * script/sh/main.c: Likewise.
31897 * loader/xnu.c: Likewise.
31898 * term/terminfo.c: Likewise.
31899 * term/i386/pc/serial.c: Likewise.
31900 * term/usb_keyboard.c: Likewise.
31901
31902 2009-05-03 David S. Miller <davem@davemloft.net>
31903
31904 * normal/menu.c: Include grub/parser.h
31905
31906 2009-05-03 Pavel Roskin <proski@gnu.org>
31907
31908 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
31909 not char*.
31910 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
31911 Suggested by Javier Martín <lordhabbit@gmail.com>
31912
31913 * util/i386/pc/grub-mkrescue.in: Allow for the case when
31914 efiemu??.o doesn't exist.
31915 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
31916 copying.
31917
31918 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
31919
31920 FreeBSD 64-bit support
31921
31922 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
31923 and loader/i386/bsd_trampoline.S
31924 (bsd_mod_ASFLAGS): new variable
31925 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
31926 (FREEBSD_MODTYPE_KERNEL64): likewise
31927 (grub_bsd64_trampoline_start): likewise
31928 (grub_bsd64_trampoline_end): likewise
31929 (grub_bsd64_trampoline_selfjump): likewise
31930 (grub_bsd64_trampoline_gdt): likewise
31931 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
31932 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
31933 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
31934 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
31935 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
31936 of "attrib" member
31937 * loader/i386/bsd_pagetable.c: new file
31938 * loader/i386/bsd_trampoline.S: likewise
31939 * loader/i386/bsd.c (ALIGN_QWORD): new macro
31940 (ALIGN_VAR): likewise
31941 (entry_hi): new variable
31942 (kern_end_mdofs): likewise
31943 (is_64bit): likewise
31944 (grub_freebsd_add_meta): use ALIGN_VAR
31945 (grub_e820_mmap): new declaration
31946 (grub_freebsd_add_mmap): new function
31947 (grub_freebsd_add_meta_module): support 64 bit kernels
31948 (grub_freebsd_list_modules): use ALIGN_VAR
31949 (gdt_descriptor): new declaration
31950 (grub_freebsd_boot): support 64 bit kernels
31951 (grub_bsd_elf64_hook): new function
31952 (grub_bsd_load_elf): support elf64
31953
31954 2009-05-03 Bean <bean123ch@gmail.com>
31955
31956 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
31957 after we get the result of if statement.
31958
31959 2009-05-03 Bean <bean123ch@gmail.com>
31960
31961 * Makefile.in (enable_efiemu): New variable.
31962
31963 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
31964 set.
31965 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
31966 path.
31967 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
31968 path, add -mno-red-zone option.
31969 (efiemu64_s.o): Likewise.
31970 (efiemu64.o): Use macro $^ for source file.
31971
31972 * configure.ac (--enable-efiemu): New option.
31973
31974 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
31975
31976 xnu support
31977
31978 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
31979 (pkglib_MODULES): add xnu.mod
31980 (xnu_mod_SOURCES): new variable
31981 (xnu_mod_CFLAGS): likewise
31982 (xnu_mod_LDFLAGS): likewise
31983 (xnu_mod_ASFLAGS): likewise
31984 * conf/i386-pc.rmk: likewise
31985 * conf/x86_64-efi.rmk: likewise
31986 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
31987 new declaration
31988 * include/grub/i386/macho.h: new file
31989 * include/grub/i386/xnu.h: likewise
31990 * include/grub/macho.h: likewise
31991 * include/grub/machoload.h: likewise
31992 * include/grub/x86_64/macho.h: likewise
31993 * include/grub/x86_64/xnu.h: likewise
31994 * include/grub/xnu.h: likewise
31995 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
31996 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
31997 * loader/i386/efi/xnu.c: new file
31998 * loader/i386/pc/xnu.c: likewise
31999 * loader/i386/xnu.c: likewise
32000 * loader/i386/xnu_helper.S: likewise
32001 * loader/macho.c: likewise
32002 * loader/xnu.c: likewise
32003 * loader/xnu_resume.c: likewise
32004 * util/grub-dumpdevtree: likewise
32005 * include/grub/i386/pit.h: include grub/err.h
32006 (grub_pit_wait): export
32007 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
32008
32009 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32010
32011 Efiemu
32012
32013 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
32014 _linux_efi, linux_efi.
32015 new files in grub-emu
32016 new targets efiemu32.o and efiemu64.o
32017 * loader/linux_normal_efiemu.c: likewise
32018 * loader/i386/efi/linux.c: added preliminary efiemu support
32019 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
32020 files to copy
32021 * include/grub/autoefi.h: new file
32022 * include/grub/i386/efiemu.h: likewise
32023 * include/grub/i386/pc/efiemu.h: likewise
32024 * include/grub/efi/api.h: add LL suffix when necessary
32025 new definitions relating to tables
32026 * include/grub/efiemu/efiemu.h: new file
32027 * include/grub/efiemu/runtime.h: likewise
32028 * efiemu/prepare.c: likewise
32029 * efiemu/loadcore_common.c: likewise
32030 * efiemu/loadcore64.c: likewise
32031 * efiemu/runtime/efiemu.sh: likewise
32032 * efiemu/runtime/efiemu.S: likewise
32033 * efiemu/runtime/efiemu.c: likewise
32034 * efiemu/runtime/config.h: likewise
32035 * efiemu/prepare32.c: likewise
32036 * efiemu/main.c: likewise
32037 * efiemu/modules/pnvram.c: likewise
32038 * efiemu/modules/i386: likewise
32039 * efiemu/modules/i386/pc: likewise
32040 * efiemu/modules/acpi.c: likewise
32041 * efiemu/i386/pc/cfgtables.c: likewise
32042 * efiemu/i386/loadcore64.c: likewise
32043 * efiemu/i386/loadcore32.c: likewise
32044 * efiemu/prepare64.c: likewise
32045 * efiemu/loadcore.c: likewise
32046 * efiemu/symbols.c: likewise
32047 * efiemu/mm.c: likewise
32048 * efiemu/loadcore32.c: likewise
32049
32050 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32051
32052 ACPI spoofing
32053
32054 * commands/acpi.c: new file
32055 * commands/i386/pc/acpi.c: likewise
32056 * commands/efi/acpi.c: likewise
32057 * include/grub/acpi.h: likewise
32058 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
32059 (acpi_mod_SOURCES): new variable
32060 (acpi_mod_CFLAGS): likewise
32061 (acpi_mod_LDFLAGS): likewise
32062 * conf/i386-efi.rmk: likewise
32063 * conf/x86_64-efi.rmk: likewise
32064
32065 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32066
32067 Missing part from mmap patch
32068
32069 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
32070 (grub_mmap_unregister)
32071 (grub_mmap_free_and_unregister): use grub_mmap_register
32072
32073 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32074
32075 Mmap services
32076
32077 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
32078 * loader/i386/linux.c (find_mmap_size): likewise
32079 (allocate_pages): likewise
32080 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
32081 (grub_fill_multiboot_mmap): likewise
32082 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
32083 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
32084 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
32085 (OPENBSD_MMAP_RESERVED): likewise
32086 * include/grub/i386/pc/memory.h: include grub/memory.h
32087 (grub_lower_mem): removed
32088 (grub_upper_mem): likewise
32089 (GRUB_MACHINE_MEMORY_ACPI): new definition
32090 (GRUB_MACHINE_MEMORY_NVS): likewise
32091 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
32092 (GRUB_MACHINE_MEMORY_HOLE): likewise
32093 (grub_machine_mmap_register): likewise
32094 (grub_machine_mmap_unregister): likewise
32095 (grub_machine_get_upper): likewise
32096 (grub_machine_get_lower): likewise
32097 (grub_machine_get_post64): likewise
32098 * include/grub/i386/efi/memory.h: new file
32099 * include/grub/x86_64/efi/memory.h: likewise
32100 * include/grub/efi/memory.h: likewise
32101 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
32102 (mmap_mod_SOURCES): new variable
32103 (mmap_mod_LDFLAGS): likewise
32104 (mmap_mod_ASFLAGS): likewise
32105 * conf/i386-coreboot.rmk: likewise
32106 * conf/i386-ieee1275.rmk: likewise
32107 * conf/i386-efi.rmk: likewise
32108 * conf/x86_64-efi.rmk: likewise
32109 * include/grub/types.h (UINT_TO_PTR): new macro
32110 (PTR_TO_UINT32): likewise
32111 (PTR_TO_UINT64): likewise
32112 * include/grub/memory.h: new file
32113 * mmap/i386/pc/mmap.c: likewise
32114 * mmap/i386/pc/mmap_helper.S: likewise
32115 * mmap/i386/uppermem.c: likewise
32116 * mmap/mmap.c: likewise
32117 * mmap/efi/mmap.c: likewise
32118 * kern/i386/coreboot/init.c (grub_machine_init): don't use
32119 grub_upper_mem
32120 * kern/i386/pc/init.c (grub_lower_mem): removed variable
32121 (grub_upper_mem): likewise
32122 (grub_machine_init): don't use grub_upper_mem,
32123 make grub_lower_mem local
32124 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
32125 grub_mmap_iterate and grub_mmap_get_upper
32126 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
32127
32128 2009-05-02 Bean <bean123ch@gmail.com>
32129
32130 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
32131 script/sh/parser.y.
32132 (pkglib_MODULES): Add normal.mod and sh.mod.
32133 (normal_SOURCES): New variable.
32134 (normal_mod_CFLAGS): Likewise.
32135 (normal_mod_LDFLAGS): Likewise.
32136 (sh_mod_SOURCES): Likewise.
32137 (sh_mod_CFLAGS): Likewise.
32138 (sh_mod_LDFLAGS): Likewise.
32139
32140 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
32141 script/sh/lexer.c_DEPENDENCIES.
32142 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
32143 kern/rescue_reader.c and kern/rescue_parser.c.
32144 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
32145 (grub_emu_SOURCES): Change source files.
32146 (pkglib_MODULES): Remove normal.mod.
32147 (normal_SOURCES): Removed.
32148 (normal_mod_CFLAGS): Likewise.
32149 (normal_mod_LDFLAGS): Likewise.
32150 * conf/i386-coreboot.rmk: Likewise.
32151 * conf/i386-efi.rmk: Likewise.
32152 * conf/i386-ieee1276.rmk: Likewise.
32153 * conf/powerpc-ieee1275.rmk: Likewise.
32154 * conf/sparc64-ieee1275.rmk: Likewise.
32155 * conf/x86_64-efi.rmk: Likewise.
32156
32157 * include/grub/command.h (grub_command_execute): New inline function.
32158
32159 * include/grub/menu.h (grub_menu_entry): Removed commands field.
32160
32161 * include/grub/normal.h: Remove <grub/setjmp.h>.
32162 (grub_fs_module_list): Moved to normal/autofs.c.
32163 (grub_exit_env): Removed.
32164 (grub_command_execute): Likewise.
32165 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
32166 parameter script.
32167 (read_command_list): New function declaration.
32168 (read_fs_list): Likewise.
32169
32170 * include/parser.h: Include <grub/reader.h>.
32171 (grub_parser_split_cmdline): Change type of getline parameter.
32172 (grub_parser): New structure.
32173 (grub_parser_class): New variable.
32174 (grub_parser_execute): New function declaration.
32175 (grub_register_rescue_parser): Likewise.
32176 (grub_parser_register): New inline function.
32177 (grub_parser_unregister): Likewise.
32178 (grub_parser_get_current): Likewise.
32179 (grub_parser_set_current): Likewise.
32180
32181 * include/grub/reader.h: New file.
32182 * kern/reader.c: Likewise.
32183 * kern/rescue_parser.c: Likewise.
32184 * kern/rescue_reader.c: Likewise.
32185 * normal/autofs.c: Likewise.
32186 * normal/dyncmd.c: Likewise.
32187
32188 * include/grub/rescue.h: Removed.
32189 * normal/command.h: Likewise.
32190
32191 * include/grub/script.h: Moved to ...
32192 * include/grub/script_sh.h: ... Moved here.
32193 * normal/execute.c: Moved to ...
32194 * script/sh/execute.c: ... Moved here.
32195 * normal/function.c: Moved to ...
32196 * script/sh/function.c: ... Moved here.
32197 * normal/lexer.c: Moved to ...
32198 * script/sh/lexer.c: ... Moved here.
32199 * normal/parser.y: Moved to ...
32200 * script/sh/parser.y: ... Moved here.
32201 * normal/script.c: Moved to ...
32202 * script/sh/script.c: ... Moved here.
32203
32204 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
32205 <grub/reader.h>.
32206 (grub_exit_env): Removed.
32207 (fs_module_list): Moved to normal/autofs.c.
32208 (grub_file_getline): Don't handle comment here.
32209 (free_menu): Skip removed field entry->commands.
32210 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
32211 script parameter.
32212 (read_config_file): Removed nested parameter, change getline function.
32213 (grub_enter_normal_mode): Removed.
32214 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
32215 (read_command_list): Likewise.
32216 (autoload_fs_module): Moved to normal/autofs.c.
32217 (read_fs_list): Likewise.
32218 (reader_nested): New variable.
32219 (grub_normal_execute): Run parser.sh to switch to sh parser.
32220 (grub_cmd_rescue): Removed.
32221 (cmd_normal): Removed.
32222 (grub_cmd_normal): Unregister itself at the beginning. Don't register
32223 rescue command.
32224 (grub_cmdline_run): New function.
32225 (grub_normal_reader_init): Likewise.
32226 (grub_normal_read_line): Likewise.
32227 (grub_env_write_pager): Likewise.
32228 (cmdline): New variable.
32229 (grub_normal_reader): Likewise.
32230 (GRUB_MOD_INIT): Register normal reader and set as current, register
32231 pager hook, register normal command with grub_register_command_prio,
32232 so that it won't show up in command.lst.
32233 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
32234 grub_fs_autoload_hook.
32235
32236 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
32237 (grub_menu_execute_entry): Replace grub_script_execute with
32238 grub_parser_execute, change parameter to grub_command_execute.
32239
32240 * normal/menu_text.c: Remove <grub/script.h>.
32241
32242 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
32243 and <grub/parser.h>.
32244 (run): Change editor_getline to use new parser interface. Change
32245 parameter to grub_command_execute.
32246
32247 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
32248 <grub/reader.h> and <grub/parser.h>.
32249 (grub_load_normal_mode): Execute normal command.
32250 (grub_main): Call grub_register_core_commands,
32251 grub_register_rescue_parser and grub_register_rescue_reader, use
32252 grub_reader_loop to enter input loop.
32253
32254 * kern/parser.c (grub_parser_split_cmdline): Change type of
32255 getline parameter.
32256 (grub_parser_class): New variable.
32257 (grub_parser_execute): New function.
32258
32259 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
32260 * loader/multiboot2.c: Likewise.
32261 * loader/sparc64/ieee1275/linux.c: Likewise.
32262
32263 * util/grub-emu.c (read_command_list): New dummy function.
32264
32265 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32266
32267 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
32268 count to 16 for CCISS and IDA.
32269
32270 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32271
32272 * normal/menu_text.c (grub_wait_after_message): Print a newline
32273 after waiting for user input.
32274
32275 * loader/i386/linux.c: Include `<grub/normal.h>'.
32276 (grub_cmd_linux): Improve the error message about `ask' mode, by
32277 waiting for user input so it's not missed (we can do this, since
32278 user requested interaction).
32279
32280 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32281
32282 Added missing lst to grub-mkrescue
32283
32284 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
32285 and ${input_dir}/parttool.lst
32286
32287 2009-04-30 David S. Miller <davem@davemloft.net>
32288
32289 * util/hostdisk.c (device_is_wholedisk): New function.
32290 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
32291 zero only if device_is_wholedisk() returns true.
32292
32293 * util/hostdisk.c (convert_system_partition_to_system_disk):
32294 Handle virtual disk devices named /dev/vdiskX as found on sparc
32295 and powerpc.
32296
32297 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
32298 lettered partition specifier is found, convert to numbered.
32299
32300 2009-04-29 David S. Miller <davem@davemloft.net>
32301
32302 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
32303 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32304
32305 * normal/command.c: Add missing newline at end of file.
32306
32307 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
32308 warnings.
32309 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
32310 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
32311 grub_ofdisk_read): Likewise, and deal similarly with the fact that
32312 ihandles have a 32-bit type but need to be stored in a "void *".
32313
32314 2009-04-28 Pavel Roskin <proski@gnu.org>
32315
32316 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
32317 not disk. Adjust all dependencies.
32318 (grub_fs_uuid_close): Use grub_device_close(), not
32319 grub_disk_close().
32320
32321 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
32322 parent's partition, don't copy it by reference, as it gets freed
32323 on close.
32324
32325 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32326
32327 Preboot hooks support
32328
32329 * commands/boot.c (struct grub_preboot_t): new declaration
32330 (preboots_head): new variable
32331 (preboots_tail): likewise
32332 (grub_loader_register_preboot_hook): new function
32333 (grub_loader_unregister_preboot_hook): likewise
32334 (grub_loader_set): launch preboot hooks
32335 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
32336 (grub_loader_register_preboot_hook): new declaration
32337 (grub_loader_unregister_preboot_hook): likewise
32338
32339 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32340
32341 Warning fix
32342
32343 * disk/scsi.c (grub_scsi_open): added missing cast when
32344 calling grub_dprintf
32345
32346 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
32347
32348 Bug and warning fixes
32349
32350 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
32351 declaration
32352 * commands/test.c (test_parse): fixed bug with file tests and corrected
32353 declaration of find_file
32354
32355 2009-04-26 Pavel Roskin <proski@gnu.org>
32356
32357 * Makefile.in: Don't install empty manual pages if help2man is
32358 missing. Use help2man option for output, not shell redirection.
32359
32360 2009-04-26 David S. Miller <davem@davemloft.net>
32361
32362 * util/grub-mkdevicemap.c (make_device_map): Add missing
32363 NESTED_FUNC_ATTR to process_device().
32364
32365 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32366
32367 Test command
32368
32369 * commands/test.c: rewritten to use bash-like test
32370
32371 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32372
32373 Parttool autoloading and improvements
32374
32375 * Makefile.in (pkglib_DATA): add parttool.lst
32376 (parttool.lst): new target
32377 * genmk.rb: generate parttool-*
32378 (CLEANFILES): add #{parttool}
32379 (PARTTOOLFILES): new variable
32380 * genparttoollist.sh: new file
32381 * parttool/pcpart.c (grub_pcpart_boot): more feedback
32382 (grub_pcpart_type): likewise
32383 * commands/parttool.c (helpmsg): new variable
32384 (grub_cmd_parttool): output help if not enough arguments are supplied
32385 autoload modules
32386 (GRUB_MOD_INIT(parttool)): use helpmsg
32387
32388 2009-04-24 David S. Miller <davem@davemloft.net>
32389
32390 Avoiding opening same device multiple times in device iterator.
32391
32392 * kern/device.c: (grub_device_iterate): Define struct part_ent,
32393 and use it to build a list of partitions in iterate_disk() and
32394 iterate_partition().
32395
32396 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
32397 on disk->data.
32398
32399 * disk/ieee1275/nand.c (grub_nand_iterate): Return
32400 grub_devalias_iterate() result instead of unconditional 0.
32401 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
32402 Also, capture hook return value, either directly or via
32403 grub_children_iterate(), and propagate to caller.
32404 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
32405 grub_children_iterate): Return value is now 'int' instead of
32406 'grub_err_t'.
32407 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
32408 like a proper iterator, stopping when hooks return non-zero.
32409 (grub_devalias_iterate): Likewise.
32410
32411 2009-04-23 David S. Miller <davem@davemloft.net>
32412
32413 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
32414
32415 2009-04-22 David S. Miller <davem@davemloft.net>
32416
32417 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
32418 is larger than address_cells, use that value for address_cells too.
32419
32420 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
32421 IEEE1275_MAX_PATH_LEN): Define.
32422 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
32423 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
32424 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
32425 'devtype'. Explicitly NULL terminate devalias expansion.
32426
32427 * util/sparc64/ieee1275/misc.c: New file.
32428 * util/sparc64/ieee1275/grub-setup.c: New file.
32429 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
32430 * util/sparc64/ieee1275/grub-mkimage.c: New file.
32431 * util/sparc64/ieee1275/grub-install.in: New file.
32432 * util/ieee1275/ofpath.c: New file.
32433 * util/ieee1275/devicemap.c: New file.
32434 * util/devicemap.c: New file.
32435 * util/deviceiter.c: New file.
32436 * kern/sparc64/ieee1275/init.c: New file.
32437 * include/grub/util/ofpath.h: New file.
32438 * include/grub/util/deviceiter.h: New file.
32439 * util/grub-mkdevicemap.c: Include deviceiter.h.
32440 Implement using grub_util_emit_devicemap_entry and
32441 grub_util_iterate_devices.
32442 * conf/i386-corebook.rmk: Build util/deviceiter.c and
32443 util/devicemap.c into grub-mkdevicemap
32444 * conf/i386-efi.rmk: Likewise.
32445 * conf/i386-ieee1275.rmk: Likewise.
32446 * conf/i386-pc.rmk: Likewise.
32447 * conf/powerpc-ieee1275.rmk: Likewise.
32448 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
32449 images and installation utilities. Build kernel as image
32450 instead of as elf binary. Use common rules as much as possible.
32451
32452 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
32453
32454 Correct GPT definition
32455
32456 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
32457 of "attrib" member
32458
32459 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
32460
32461 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
32462
32463 2009-04-19 David S. Miller <davem@davemloft.net>
32464
32465 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
32466 (grub_rescue_cmd_linux): Rename to...
32467 (grub_cmd_linux): and fix prototype.
32468 (grub_rescue_cmd_initrd): Rename to...
32469 (grub_cmd_initrd): and fix prototype.
32470 (cmd_linux, cmd_initrd): New.
32471 (GRUB_MOD_INIT(linux)): Use grub_register_command().
32472 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
32473
32474 2009-04-17 Pavel Roskin <proski@gnu.org>
32475
32476 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
32477 format.
32478 (grub_ohci_transfer): Likewise.
32479
32480 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
32481
32482 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
32483 return without a value. Fix inconsistent indentation.
32484
32485 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
32486 match struct grub_fs.
32487
32488 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
32489 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
32490 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32491 * commands/lspci.c (grub_lspci_iter): Likewise.
32492
32493 2009-04-16 Bean <bean123ch@gmail.com>
32494
32495 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
32496 value.
32497
32498 2009-04-15 Pavel Roskin <proski@gnu.org>
32499
32500 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
32501 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
32502 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
32503 definitions.
32504
32505 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32506
32507 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
32508 that no multiple data or metadata areas are supported and `Unknown
32509 metadata header'.
32510
32511 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32512
32513 Move loader out of the kernel
32514
32515 * kern/loader.c: moved to ...
32516 * commands/boot.c: ... moved here
32517 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
32518 * commands/boot.c (grub_cmd_boot): moved here. All users updated
32519 * include/grub/kernel.h (grub_machine_fini): export
32520 * include/grub/loader.h (grub_loader_is_loaded): update declaration
32521 (grub_loader_set): likewise
32522 (grub_loader_unset): likewise
32523 (grub_loader_boot): likewise
32524 * conf/common.rmk: new module boot.mod
32525 (pkglib_MODULES): add boot.mod
32526 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
32527 (grub_emu_SOURCES): likewise
32528 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
32529 (grub_emu_SOURCES): likewise
32530 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
32531 (grub_emu_SOURCES): likewise
32532 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
32533 (grub_emu_SOURCES): likewise
32534 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
32535 (grub_emu_SOURCES): likewise
32536 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
32537 (grub_emu_SOURCES): likewise
32538 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
32539 (grub_emu_SOURCES): likewise
32540
32541 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32542
32543 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
32544
32545 * kern/misc.c (grub_itoa): Removed function
32546 (grub_ltoa): likewise
32547 (grub_vsprintf): use grub_lltoa
32548
32549 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32550
32551 Restore grub-emu
32552
32553 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
32554 * conf/i386-coreboot.rmk: likewise
32555 * conf/i386-ieee1275.rmk: likewise
32556 * conf/powerpc-ieee1275.rmk: likewise
32557
32558 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32559
32560 * INSTALL: Add that `./autogen.sh' needs to be run before
32561 `./configure.'.
32562
32563 2009-04-14 Bean <bean123ch@gmail.com>
32564
32565 * Makefile.in (pkglib_DATA): Add handler.lst.
32566 (handler.lst): New rule.
32567
32568 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
32569 * conf/i386-coreboot.rmk: Likewise.
32570 * conf/i386-ieee1275.rmk: Likewise.
32571 * conf/i386-efi.rmk: Likewise.
32572 * conf/x86_64-efi.rmk: Likewise.
32573 * conf/powerpc-ieee1275.rmk: Likewise.
32574 * conf/sparc64-ieee1275.rmk: Likewise.
32575
32576 * genhandlerlist.sh: New file.
32577
32578 * genmk.rb: Add rules to generate handler.lst.
32579
32580 * include/grub/normal.h (grub_file_getline): New function definition.
32581 (read_handler_list): Likewise.
32582 (free_handler_list): Likewise.
32583
32584 * include/grub/term.h (grub_term_register_input): Add name parameter
32585 for auto generation of handler.lst.
32586 (grub_term_register_output): Likewise.
32587
32588 * normal/handler.c: New file.
32589
32590 * normal/main.c (get_line): Renamed to grub_file_getline.
32591 (read_config_file): Use the newly renamed grub_file_getline.
32592 (read_command_list): Likewise.
32593 (read_fs_list): Likewise.
32594 (grub_normal_execute): Call read_handler_list to parse handler.lst.
32595 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
32596
32597 * term/efi/console.c (grub_console_init): Add name parameter for auto
32598 generation of handler.lst.
32599 * term/gfxterm.c: Likewise.
32600 * term/i386/pc/at_keyboard.c: Likewise.
32601 * term/i386/pc/console.c: Likewise.
32602 * term/i386/pc/serial.c: Likewise.
32603 * term/i386/pc/vesafb.c: Likewise.
32604 * term/i386/pc/vga.c: Likewise.
32605 * term/i386/pc/vga_text.c: Likewise.
32606 * term/ieee1275/ofconsole.c: Likewise.
32607 * term/usb_keyboard.c: Likewise.
32608
32609 2009-04-14 Bean <bean123ch@gmail.com>
32610
32611 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
32612 properly with null character.
32613
32614 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32615
32616 * configure: Remove.
32617 * config.h.in: Likewise.
32618 * stamp-h.in: Likewise.
32619 * DISTLIST: Likewise.
32620 * conf/common.mk: Likewise.
32621 * conf/i386-coreboot.mk: Likewise.
32622 * conf/i386-efi.mk: Likewise.
32623 * conf/i386-ieee1275.mk: Likewise.
32624 * conf/i386.mk: Likewise.
32625 * conf/i386-pc.mk: Likewise.
32626 * conf/powerpc-ieee1275.mk: Likewise.
32627 * conf/sparc64-ieee1275.mk: Likewise.
32628 * conf/x86_64-efi.mk: Likewise.
32629
32630 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
32631 develop on GRUB.
32632
32633 2009-04-14 John Stanley <jpsinthemix@verizon.net>
32634 David S. Miller <davem@davemloft.net>
32635
32636 * util/hostdisk.c (make_device_name): Fix buffer length
32637 calculations.
32638
32639 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32640
32641 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
32642 <sys/param.h> and <sys/sysctl.h>.
32643 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
32644 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
32645 opening the device and reset them afterwards.
32646
32647 2009-04-13 Pavel Roskin <proski@gnu.org>
32648
32649 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
32650 Reported by John Stanley <jpsinthemix@verizon.net>
32651
32652 2009-04-13 Robert Millan <rmh@aybabtu.com>
32653
32654 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
32655 that name for menuentries when appropriate.
32656
32657 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32658
32659 * util/grub.d/10_freebsd.in: Add a missing `fi'.
32660
32661 2009-04-13 Robert Millan <rmh@aybabtu.com>
32662
32663 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
32664 to Linux, simply abort telling the user it's no longer supported.
32665
32666 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32667
32668 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
32669 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
32670 `freebsd_loadenv' only when devices.hints exist.
32671
32672 2009-04-13 Pavel Roskin <proski@gnu.org>
32673
32674 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
32675
32676 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32677
32678 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
32679 partition number.
32680 (grub_drive): Likewise.
32681
32682 2009-04-13 David S. Miller <davem@davemloft.net>
32683
32684 * kern/sparc64/ieee1275/ieee1275.c: New file.
32685 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
32686 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
32687 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
32688 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
32689 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
32690 grub_ieee1275_alloc_physmem): Declare new exported functions.
32691
32692 * include/grub/sparc64/ieee1275/loader.h: New file.
32693 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32694 * include/grub/sparc64/kernel.h: Likewise.
32695 * loader/sparc64/ieee1275/linux.c: Likewise.
32696
32697 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
32698 (grub_fstest_SOURCES): Likewise.
32699
32700 * util/hostdisk.c (make_device_name): Do not make any assumptions
32701 about the length of drive names.
32702
32703 * kern/dl.c (grub_dl_load_file): Close file immediately when
32704 we are done using it.
32705
32706 2009-04-12 David S. Miller <davem@davemloft.net>
32707
32708 * kern/misc.c (grub_ltoa): Fix cast when handling negative
32709 values. Noticed by Pavel Roskin.
32710
32711 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
32712 target compiler.
32713
32714 * genmk.rb: Add more flexible image type specification, also
32715 pass --strip-unneeded to objcopy.
32716 * conf/i386-pc.rmk: Use *_FORMAT.
32717 * conf/i386-pc.mk: Rebuilt.
32718
32719 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
32720 (OFDISK_HASH_SZ): Define.
32721 (ofdisk_hash): New hash table.
32722 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
32723 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
32724 instead of device phandle which is not unique.
32725
32726 * kern/sparc64/ieee1275/init.c: Delete, replace with...
32727 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
32728 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
32729 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
32730 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
32731 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
32732 GRUB_KERNEL_MACHINE_DATA_END): Define.
32733 (grub_kernel_image_size, grub_total_module_size): Declare.
32734
32735 2009-04-12 Pavel Roskin <proski@gnu.org>
32736
32737 * configure.ac: Change the logic when we check for target tools.
32738 Do it when the target is specified and it's different from the
32739 specified value of the host.
32740
32741 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
32742
32743 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
32744 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
32745 GNU/kFreeBSD. Check if a device is a character device. Use
32746 DIOCGMEDIASIZE to get the size.
32747 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
32748 support for GNU/kFreeBSD.
32749 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
32750 is a character device instead of a block device. Add support for
32751 FreeBSD device names.
32752
32753 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
32754 is a character device instead of a block device.
32755
32756 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
32757 is a character device instead of a block device.
32758
32759 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
32760
32761 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
32762 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
32763 FreeBSD. Check if a device is a character device. Use
32764 DIOCGMEDIASIZE to get the size.
32765 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
32766 support for FreeBSD.
32767 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
32768 is a character device instead of a block device. Add support for
32769 FreeBSD device names.
32770
32771 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
32772 a character device instead of a block device.
32773 (grub_util_check_char_device): New function.
32774
32775 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
32776 a character device instead of a block device.
32777
32778 * include/grub/util/getroot.h (grub_util_check_char_device): New
32779 prototype.
32780
32781 2009-04-11 David S. Miller <davem@davemloft.net>
32782
32783 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
32784 static libgcc.
32785 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
32786 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
32787 function, if present.
32788 (__bswapdi2): Likewise.
32789
32790 * include/grub/sparc64/ieee1275/boot.h: New file.
32791 * boot/sparc64/ieee1275/boot.S: Likewise.
32792 * boot/sparc64/ieee1275/diskboot.S: Likewise.
32793
32794 * kern/misc.c (grub_ltoa): New function.
32795 (grub_vsprintf): Use it to format 'long' integers.
32796
32797 2009-04-10 David S. Miller <davem@davemloft.net>
32798
32799 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
32800 slots are of type grub_ieee1275_cell_t.
32801 (grub_nand_read): Likewise.
32802 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
32803 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
32804 macros are used to compare values in arg/ret block of the call.
32805 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
32806 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
32807 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
32808 grub_ieee1275_instance_to_path, grub_ieee1275_write,
32809 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
32810 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
32811 grub_ieee1275_close, grub_ieee1275_set_property,
32812 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
32813 grub_ieee1275_cell_t.
32814 * kern/ieee1275/openfw.c (grub_map): Likewise.
32815 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
32816 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
32817
32818 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
32819 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
32820 (grub_devalias_iterate): Likewise.
32821
32822 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
32823
32824 UFS improvements
32825
32826 * fs/ufs.c (INODE_NBLOCKS): new definition
32827 (struct grub_ufs_dirent): added fields for non-BSD dirents
32828 (grub_ufs_get_file_block): fixed double indirect handling
32829 (grub_ufs_lookup_symlink): use more robust way to determine whether
32830 symlink is inline
32831 (grub_ufs_find_file): support for non-BSD dirents
32832 (grub_ufs_dir): support for non-BSD dirents
32833
32834 2009-04-10 Bean <bean123ch@gnail.com>
32835
32836 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
32837 attribute, otherwise the size would be wrong for i386 platform.
32838
32839 * include/grub/pci.h (grub_pci_read_word): New inline function.
32840 (grub_pci_read_byte): Likewise.
32841 (grub_pci_write): Likewise.
32842 (grub_pci_write_word): Likewise.
32843 (grub_pci_write_byte): Likewise.
32844
32845 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
32846
32847 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
32848 (find_framebuf): Scan pci to locate the frame buffer address.
32849
32850 * commands/efi/fixvideo.c: New file.
32851
32852 * commands/efi/loadbios.c: Likewise.
32853
32854 * commands/memrw.c: Likewise.
32855
32856 * util/grub-dumpbios.in: Likewise.
32857
32858 * conf/common.rmk (grub-dumpbios): New utility.
32859 (pkglib_MODULES): New module memrw.mod.
32860 (memrw_mod_SOURCE): New macro.
32861 (memrw_mod_CFLAGS): Likewise.
32862 (memrw_mod_LDFLAGS): Likewise.
32863
32864 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
32865 fixvideo.mod.
32866 (loadbios_mod_SOURCE): New macro.
32867 (loadbios_mod_CFLAGS): Likewise.
32868 (loadbios_mod_LDFLAGS): Likewise.
32869 (fixvideo_mod_SOURCE): Likewise.
32870 (fixvideo_mod_CFLAGS): Likewise.
32871 (fixvideo_mod_LDFLAGS): Likewise.
32872
32873 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
32874 fixvideo.mod.
32875 (loadbios_mod_SOURCE): New macro.
32876 (loadbios_mod_CFLAGS): Likewise.
32877 (loadbios_mod_LDFLAGS): Likewise.
32878 (fixvideo_mod_SOURCE): Likewise.
32879 (fixvideo_mod_CFLAGS): Likewise.
32880 (fixvideo_mod_LDFLAGS): Likewise.
32881
32882 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
32883
32884 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
32885
32886 2009-04-07 David S. Miller <davem@davemloft.net>
32887
32888 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
32889 support for R_SPARC_OLO10 relocations. Fix compile warning for
32890 R_SPARC_WDISP30 case.
32891 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
32892
32893 2009-04-06 Pavel Roskin <proski@gnu.org>
32894
32895 * include/grub/misc.h (ARRAY_SIZE): New macro.
32896 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
32897 New macro.
32898 * loader/i386/linux.c (allocate_pages): Use free_pages().
32899 (grub_linux_unload): Don't use free_pages().
32900 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
32901 wrong index. Treat all other modes as text modes.
32902 (grub_cmd_linux): Initialize vid_mode unconditionally to
32903 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
32904
32905 * commands/help.c (print_command_help): Use cmd->prio, not
32906 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
32907
32908 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
32909
32910 Parttool
32911
32912 * parttool/pcpart.c: new file
32913 * commands/parttool.c: likewise
32914 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
32915 (parttool_mod_SOURCES): new variable
32916 (parttool_mod_CFLAGS): likewise
32917 (parttool_mod_LDFLAGS): likewise
32918 (pcpart_mod_SOURCES): likewise
32919 (pcpart_mod_CFLAGS): likewise
32920 (pcpart_mod_LDFLAGS): likewise
32921 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
32922 and parttool/pcpart.c
32923 * conf/i386-efi.rmk: likewise
32924 * conf/i386-ieee1275.rmk: likewise
32925 * conf/i386-pc.rmk: likewise
32926 * conf/powerpc-ieee1275.rmk: likewise
32927 * conf/sparc64-ieee1275.rmk: likewise
32928 * conf/x86_64-ieee1275.rmk: likewise
32929
32930 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32931
32932 Support for mtime and further expandability of dir command
32933
32934 * include/grub/lib/datetime.h: moved to ...
32935 * include/grub/datetime.h: ... moved here and added
32936 declaration of grub_unixtime2datetime. All users updated
32937 * include/grub/fs.h: new syntax for dir and mtime functions in
32938 struct grub_fs
32939 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
32940 and GRUB_FSHELP_FLAGS_MASK
32941 * commands/ls.c (grub_ls_list_files): Write mtime in long format
32942 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
32943 (grub_ext2_mtime): new function
32944 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
32945 (grub_hfsplus_mtime): new function
32946 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
32947 (GRUB_UFS_ATTR_FILE): likewise
32948 (GRUB_UFS_ATTR_LNK): likewise
32949 (struct grub_ufs_sblock): new fields mtime
32950 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
32951 all users updated
32952 (grub_ufs_dir): mtime support
32953 (grub_ufs_mtime): new function
32954 * fs/affs.c (grub_affs_dir): use new dir syntax
32955 * fs/afs.c (grub_afs_dir): likewise
32956 * fs/cpio.c (grub_cpio_dir): likewise
32957 * fs/fat.c (grub_fat_find_dir): likewise
32958 * fs/hfs.c (grub_hfs_dir): likewise
32959 * fs/iso9660.c (grub_iso9660_dir): likewise
32960 * fs/jfs.c (grub_jfs_dir): likewise
32961 * fs/minix.c (grub_minix_dir): likewise
32962 * fs/ntfs.c (grub_ntfs_dir): likewise
32963 * fs/reiserfs.c (grub_reiserfs_dir): likewise
32964 * fs/sfs.c (grub_sfs_dir): likewise
32965 * fs/xfs.c (grub_xfs_dir): likewise
32966 * util/hostfs.c (grub_hostfs_dir): likewise
32967 * lib/datetime.c: moved to ...
32968 * normal/datetime.c: ... moved here
32969 (grub_unixtime2datetime): new function
32970 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
32971 * normal/completion.c (iterate_dir): use new dir syntax
32972 * normal/misc.c (grub_normal_print_device_info): tell the
32973 last modification time of a volume
32974 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
32975 * conf/common.rmk: added lib/datetime.c to ls.mod
32976 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
32977 (normal_mod_SOURCES): likewise
32978 (datetime_mod_SOURCES): Removed lib/datetime.c
32979 * conf/i386-efi.rmk: likewise
32980 * conf/i386-ieee1275.rmk: likewise
32981 * conf/i386-pc.rmk: likewise
32982 * conf/powerpc-ieee1275.rmk: likewise
32983 * conf/sparc64-ieee1275.rmk: likewise
32984 * conf/x86_64-efi.rmk: likewise
32985
32986 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32987
32988 Trim trailing spaces in FAT label and support mtools-like labels
32989
32990 * fs/fat.c (grub_fat_iterate_dir): New function based
32991 on grub_fat_find_dir
32992 (grub_fat_find_dir): use grub_fat_iterate_dir
32993 (grub_fat_label): likewise
32994
32995 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
32996
32997 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
32998 and command.h
32999 remove extraneous kernel_elf_HEADERS
33000
33001 2009-04-04 Bean <bean123ch@gnail.com>
33002
33003 * include/grub/util/misc.h: Add dummy function fsync for mingw.
33004
33005 * util/misc.c: Likewise.
33006
33007 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
33008
33009 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
33010 instead of grub_printf.
33011
33012 2009-04-03 Robert Millan <rmh@aybabtu.com>
33013
33014 * loader/i386/linux.c (grub_linux_setup_video): Fill
33015 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
33016 values from `mode info' structure instead of hardcoded
33017 values.
33018
33019 2009-04-01 Pavel Roskin <proski@gnu.org>
33020
33021 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
33022 unused now.
33023 * genmk.rb: Likewise.
33024 * configure.ac: Likewise.
33025
33026 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
33027
33028 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
33029 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
33030
33031 2009-04-01 David S. Miller <davem@davemloft.net>
33032
33033 * normal/sparc64/setjmp.S: Fix setjmp implementation.
33034 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
33035 (grub_setjmp): Mark with 'returns_twice' attribute.
33036 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
33037 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
33038 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
33039
33040 2009-04-01 Robert Millan <rmh@aybabtu.com>
33041
33042 Reapply fix from 2008-07-28 which was accidentally reverted; also
33043 perform the same fix to a similar check in same function.
33044
33045 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
33046 with the same number are found, just use issue a warning with
33047 grub_dprintf(), as this error has been reported to be non-fatal.
33048
33049 2009-03-31 Pavel Roskin <proski@gnu.org>
33050
33051 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
33052 for cross-compilation.
33053
33054 2009-03-30 Robert Millan <rmh@aybabtu.com>
33055
33056 Fix i386-ieee1275 build.
33057
33058 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
33059 Remove declaration.
33060
33061 2009-03-30 Pavel Roskin <proski@gnu.org>
33062
33063 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
33064 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
33065 zero-terminated, rely only on the strlen value. Fix comparison
33066 of strings differing in length.
33067
33068 2009-03-30 Robert Millan <rmh@aybabtu.com>
33069
33070 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
33071 checking for abi version. Improve error messages on BIOS to notify
33072 user about `linux16' command.
33073
33074 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
33075
33076 Leak fixes
33077
33078 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
33079 in case of collision
33080 * disk/scsi.c (grub_scsi_open): free scsi in case of error
33081
33082 2009-03-29 Robert Millan <rmh@aybabtu.com>
33083
33084 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
33085 set `vid_mode' accordingly.
33086 (grub_linux_boot): Process `vid_mode' and set video mode.
33087
33088 2009-03-29 Robert Millan <rmh@aybabtu.com>
33089
33090 * util/grub.d/10_linux.in (linux_entry): New function.
33091 Factorize generation of Linux boot entries.
33092
33093 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
33094
33095 Make the format of Environment Block plain text. The boot loader
33096 part is not tested well yet.
33097
33098 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
33099 (buffer): Removed.
33100 (envblk): Likewise.
33101 (usage): Remove "info" and "clear". Add "unset". Update the
33102 description of "set", as this does not delete variables any
33103 longer.
33104 (create_envblk_file): Complete rewrite.
33105 (open_envblk_file): Likewise.
33106 (cmd_info): Removed.
33107 (cmd_list): Likewise.
33108 (cmd_set): Likewise.
33109 (cmd_clear): Likewise.
33110 (list_variables): New function.
33111 (write_envblk): Likewise.
33112 (set_variables): Likewise.
33113 (unset_variables): Likewise.
33114 (main): Complete rewrite.
33115
33116 * commands/loadenv.c (buffer): Removed.
33117 (envblk): Likewise.
33118 (open_envblk_file): New function.
33119 (read_envblk_file): Complete rewrite.
33120 (grub_cmd_load_env): Likewise.
33121 (grub_cmd_list_env): Likewise.
33122 (struct blocklist): New struct.
33123 (free_blocklists): New function.
33124 (check_blocklists): Likewise.
33125 (write_blocklists): Likewise.
33126 (grub_cmd_save_env): Complete rewrite.
33127
33128 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
33129 a plain text signature.
33130 (GRUB_ENVBLK_MAXLEN): Removed.
33131 (struct grub_envblk): Complete rewrite.
33132 (grub_envblk_find): Removed.
33133 (grub_envblk_insert): Likewise.
33134 (grub_envblk_open): New prototype.
33135 (grub_envblk_set): Likewise.
33136 (grub_envblk_delete): Put const to VALUE.
33137 (grub_envblk_iterate): Put const to NAME and VALUE.
33138 (grub_envblk_close): New prototype.
33139 (grub_envblk_buffer): New inline function.
33140 (grub_envblk_size): Likewise.
33141
33142 * lib/envblk.c: Include grub/mm.h.
33143 (grub_env_find): Removed.
33144 (grub_envblk_open): New function.
33145 (grub_envblk_close): Likewise.
33146 (escaped_value_len): Likewise.
33147 (find_next_line): Likewise.
33148 (grub_envblk_insert): Removed.
33149 (grub_envblk_set): New function.
33150 (grub_envblk_delete): Complete rewrite.
33151 (grub_envblk_iterate): Likewise.
33152
33153 2009-03-28 Robert Millan <rmh@aybabtu.com>
33154
33155 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
33156 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
33157 variables. Use 16-bit loader.
33158 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
33159 loader.
33160 * kern/i386/loader.S (grub_linux_boot): Rename to ...
33161 (grub_linux16_boot): ... this. Update all users.
33162 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
33163 (grub_linux_boot): ... this. Update all users.
33164
33165 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
33166 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
33167 commands to `linux16' and `initrd16'.
33168 (GRUB_MOD_FINI(linux)): Rename to ...
33169 (GRUB_MOD_FINI(linux16)): ... this.
33170
33171 2009-03-24 Pavel Roskin <proski@gnu.org>
33172
33173 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
33174 not just for compilation.
33175
33176 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
33177
33178 Move multiboot helper out of kernel
33179
33180 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
33181 `loader/i386/multiboot_helper.S'.
33182 * conf/i386-coreboot.rmk: Likewise
33183 * conf/i386-ieee1275.rmk: Likewise
33184
33185 * kern/i386/loader.S: Move multiboot helpers from here...
33186 * loader/i386/multiboot_helper.S: ...moved here
33187 * include/grub/i386/loader.h: Move declarations of multiboot
33188 helpers from here...
33189 * include/grub/i386/multiboot.h: ...moved here
33190 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
33191
33192 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33193
33194 * kern/env.c (grub_env_context_open): Added an argument to specify
33195 whether a new context inherits exported variables from current
33196 one. This is useful when making a sandbox to interpret a config
33197 file.
33198 All callers updated.
33199
33200 * include/grub/env.h (grub_env_context_open): Updated the prototype.
33201
33202 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33203
33204 * kern/env.c (grub_env_context_close): Fix memory leaks.
33205
33206 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33207
33208 * normal/main.c (grub_normal_execute): Added an argument
33209 BATCH to specify if an interactive interface should be provided
33210 after reading a config file.
33211 All callers updated.
33212 (read_command_list): Prevent being executed twice.
33213 (read_fs_list): Likewise.
33214
33215 * include/grub/normal.h (grub_normal_execute): Updated the
33216 prototype.
33217
33218 2009-03-22 Pavel Roskin <proski@gno.org>
33219
33220 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
33221 _start.
33222 * kern/i386/pc/startup.S: Likewise.
33223 * kern/i386/efi/startup.S: Likewise.
33224 * kern/i386/ieee1275/startup.S: Likewise.
33225 * kern/i386/coreboot/startup.S: Likewise.
33226 * kern/x86_64/efi/startup.S: Likewise.
33227
33228 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
33229 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
33230 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
33231
33232 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
33233
33234 Bugfixes in multiboot for bugs uncovered by solaris kernel.
33235
33236 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
33237 limit detection.
33238 Use vaddr of correct segment for entry_point.
33239
33240 2009-03-21 Bean <bean123ch@gmail.com>
33241
33242 * commands/blocklist.c: Add include file <grub/command.h>, remove
33243 <grub/normal.h> and <grub/arg.h>.
33244 (grub_cmd_blocklist): Use the new command interface.
33245 (GRUB_MOD_INIT): Likewise.
33246 (GRUB_MOD_FINI): Likewise.
33247 * commands/boot.c: Likewise.
33248 * commands/cat.c: Likewise.
33249 * commands/cmp.c: Likewise.
33250 * commands/configfile.c: Likewise.
33251 * commands/crc.c: Likewise.
33252 * commands/echo.c: Likewise.
33253 * commands/halt.c: Likewise.
33254 * commands/handler.c: Likewise.
33255 * commands/hdparm.c: Likewise.
33256 * commands/help.c: Likewise.
33257 * commands/hexdump.c: Likewise.
33258 * commands/loadenv.c: Likewise.
33259 * commands/ls.c: Likewise.
33260 * commands/lsmmap.c: Likewise.
33261 * commands/lspci.c: Likewise.
33262 * commands/loadenv.c: Likewise.
33263 * commands/read.c: Likewise.
33264 * commands/reboot.c: Likewise.
33265 * commands/search.c: Likewise.
33266 * commands/sleep.c: Likewise.
33267 * commands/test.c: Likewise.
33268 * commands/usbtest.c: Likewise.
33269 * commands/videotest.c: Likewise.
33270 * commands/i386/cpuid.c: Likewise.
33271 * commands/i386/pc/halt.c: Likewise.
33272 * commands/i386/pc/play.c: Likewise.
33273 * commands/i386/pc/pxecmd.c: Likewise.
33274 * commands/i386/pc/vbeinfo.c: Likewise.
33275 * commands/i386/pc/vbetest.c: Likewise.
33276 * commands/ieee1275/suspend.c: Likewise.
33277 * disk/loopback.c: Likewise.
33278 * font/font_cmd.c: Likewise.
33279 * hello/hello.c: Likewise.
33280 * loader/efi/appleloader.c: Likewise.
33281 * loader/efi/chainloader.c: Likewise.
33282 * loader/i386/bsd.c: Likewise.
33283 * loader/i386/efi/linux.c: Likewise.
33284 * loader/i386/ieee1275/linux.c: Likewise.
33285 * loader/i386/linux.c: Likewise.
33286 * loader/i386/pc/chainloader.c: Likewise.
33287 * loader/i386/pc/linux.c: Likewise.
33288 * loader/powerpc/ieee1275/linux.c: Likewise.
33289 * loader/multiboot_loader.c: Likewise.
33290 * term/gfxterm.c: Likewise.
33291 * term/i386/pc/serial.c: Likewise.
33292 * term/terminfo.c: Likewise.
33293
33294 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
33295 * term/i386/pc/vga.c: Likewise.
33296 * video/readers/jpeg.c: Likewise.
33297 * video/readers/png.c: Likewise.
33298 * video/readers/tga.c: Likewise.
33299
33300 * util/grub-fstest (cmd_loopback): Removed.
33301 (cmd_blocklist): Likewise.
33302 (cmd_ls): Likewise.
33303 (grub_register_command): Likewise.
33304 (grub_unregister_command): Likewise.
33305 (execute_command): Use grub_command_find to locate command and execute
33306 it.
33307
33308 * include/grub/efi/chainloader.h: Removed.
33309 * loader/efi/chainloader_normal.c: Likewise.
33310 * loader/i386/bsd_normal.c: Likewise.
33311 * loader/i386/pc/chainloader_normal.c: Likewise.
33312 * loader/i386/pc/multiboot_normal.c: Likewise.
33313 * loader/linux_normal.c: Likewise.
33314 * loader/multiboot_loader_normal.c: Likewise.
33315 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
33316
33317 * gencmdlist.sh: Scan new registration command grub_register_extcmd
33318 and grub_register_command_p1.
33319
33320 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
33321 kern/command.c, lib/arg.c and commands/extcmd.c.
33322 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
33323 (minicmd_mod_SOURCES): New variable.
33324 (minicmd_mod_CFLAGS): Likewise.
33325 (minicmd_mod_LDFLAGS): Likewise.
33326 (extcmd_mod_SOURCES): Likewise.
33327 (extcmd_mod_CFLAGS): Likewise.
33328 (extcmd_mod_LDFLAGS): Likewise.
33329 (boot_mod_SOURCES): Removed.
33330 (boot_mod_CFLAGS): Likewise.
33331 (boot_mod_LDFLAGS): Likewise.
33332
33333 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
33334 kern/corecmd.c.
33335 (kernel_img_HEADERS): Add command.h.
33336 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
33337 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
33338 and lib/arg.c.
33339 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
33340 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
33341 remove the corresponding normal mode command.
33342 (normal_mod_SOURCES): Remove normal/arg.c.
33343 * conf/i386-coreboot.rmk: Likewise.
33344 * conf/i386-efi.rmk: Likewise.
33345 * conf/i386-ieee1275.rmk: Likewise.
33346 * conf/powerpc-ieee1275.rmk: Likewise.
33347 * conf/x86_64-efi.rmk: Likewise.
33348
33349 * include/grub/arg.h: Move from here ...
33350 * include/grub/lib/arg.h: ... to here.
33351
33352 * normal/arg.c: Move from here ...
33353 * lib/arg.c: ... to here.
33354
33355 * commands/extcmd.c: New file.
33356 * commands/minicmd.c: Likewise.
33357 * include/grub/command.h: Likewise.
33358 * include/grub/extcmd.h: Likewise.
33359 * kern/command.c: Likewise.
33360 * kern/corecmd.c: Likewise.
33361
33362 * kern/list.c (grub_list_iterate): Return int instead of void.
33363 (grub_list_insert): New function.
33364 (grub_prio_list_insert): Likewise.
33365
33366 * kern/rescue.c (grub_rescue_command): Removed.
33367 (grub_rescue_command_list): Likewise.
33368 (grub_rescue_register_command): Likewise.
33369 (grub_rescue_unregister_command): Likewise.
33370 (grub_rescue_cmd_boot): Move to minicmd.c
33371 (grub_rescue_cmd_help): Likewise.
33372 (grub_rescue_cmd_info): Likewise.
33373 (grub_rescue_cmd_boot): Likewise.
33374 (grub_rescue_cmd_testload): Likewise.
33375 (grub_rescue_cmd_dump): Likewise.
33376 (grub_rescue_cmd_rmmod): Likewise.
33377 (grub_rescue_cmd_lsmod): Likewise.
33378 (grub_rescue_cmd_exit): Likewise.
33379 (grub_rescue_print_devices): Moved to corecmd.c.
33380 (grub_rescue_print_files): Likewise.
33381 (grub_rescue_cmd_ls): Likewise.
33382 (grub_rescue_cmd_insmod): Likewise.
33383 (grub_rescue_cmd_set): Likewise.
33384 (grub_rescue_cmd_unset): Likewise.
33385 (attempt_normal_mode): Use grub_command_find to get normal module.
33386 (grub_enter_rescue_mode): Use grub_register_core_commands to register
33387 commands, remove grub_rescue_register_command calls.
33388
33389 * normal/command.c (grub_register_command): Removed.
33390 (grub_unregister_command): Likewise.
33391 (grub_command_find): Likewise.
33392 (grub_iterate_commands): Likewise.
33393 (rescue_command): Likewise.
33394 (export_command): Moved to corecmd.c.
33395 (set_command): Removed.
33396 (unset_command): Likewise.
33397 (insmod_command): Likewise.
33398 (rmmod_command): Likewise.
33399 (lsmod_command): Likewise.
33400 (grub_command_init): Likewise.
33401
33402 * normal/completion.c (iterate_command): Use cmd->prio to check for
33403 active command.
33404 (complete_arguments): Use grub_extcmd_t structure to find options.
33405 (grub_normal_do_completion): Change function grub_iterate_commands to
33406 grub_command_iterate.
33407
33408 * normal/execute.c (grub_script_execute_cmd): No need to parse
33409 argument here.
33410
33411 * normal/main.c (grub_dyncmd_dispatcher): New function.
33412 (read_command_list): Register unload commands as dyncmd.
33413 (grub_cmd_normal): Use new command interface, register rescue,
33414 unregister normal at entry, register normal, unregister rescue at exit.
33415
33416 * include/grub/list.h (grub_list_test_t): New type.
33417 (grub_list_iterate): Return int instead of void.
33418 (grub_list_insert): New function.
33419 (GRUB_AS_NAMED_LIST_P): New macro.
33420 (GRUB_AS_PRIO_LIST): Likewise.
33421 (GRUB_AS_PRIO_LIST_P): Likewise.
33422 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
33423 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
33424 (grub_prio_list): New structure.
33425 (grub_prio_list_insert): New function.
33426 (grub_prio_list_remove): New inline function.
33427
33428 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
33429 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
33430 (GRUB_COMMAND_FLAG_MENU): Likewise.
33431 (GRUB_COMMAND_FLAG_BOTH): Likewise.
33432 (GRUB_COMMAND_FLAG_TITLE): Likewise.
33433 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
33434 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
33435 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
33436 (grub_command): Likewise.
33437 (grub_register_command): Likewise.
33438 (grub_command_find): Likewise.
33439 (grub_iterate_commands): Likewise.
33440 (grub_command_init): Likewise.
33441 (grub_arg_parse): Likewise.
33442 (grub_arg_show_help): Likewise.
33443
33444 * include/grub/rescue.h (grub_rescue_register_command): Removed.
33445 (grub_rescue_unregister_command): Likewise.
33446
33447 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
33448 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
33449 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
33450
33451 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
33452 grub_rescue_cmd_initrd.
33453 * include/grub/i386/loader.h: Likewise.
33454 * include/grub/x86_64/loader.h: Likewise.
33455
33456 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
33457
33458 2009-03-21 Bean <bean123ch@gmail.com>
33459
33460 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
33461 instead of stat in mingw environment.
33462
33463 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
33464
33465 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
33466
33467 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
33468 AC_CONFIG_LINKS.
33469
33470 2009-03-21 Bean <bean123ch@gmail.com>
33471
33472 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
33473 out of range error.
33474
33475 2009-03-18 Michel Dänzer <michel@daenzer.net>
33476
33477 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
33478 checking inode flags for EXT4_EXTENTS_FLAG.
33479
33480 2009-03-18 Robert Millan <rmh@aybabtu.com>
33481
33482 * loader/i386/linux.c: Include `<grub/video.h>' and
33483 `<grub/i386/pc/vbe.h>'..
33484 (grub_linux_setup_video): New function. Loosely based on the EFI one.
33485 (grub_linux32_boot): Attempt to configure video settings with
33486 grub_linux_setup_video().
33487 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
33488 to avoid grub_console_fini() which would step out of graphical mode
33489 unconditionally.
33490
33491 2009-03-14 Robert Millan <rmh@aybabtu.com>
33492
33493 Fix build on powerpc.
33494 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
33495
33496 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
33497
33498 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
33499 background image command.
33500
33501 2009-03-12 Colin D Bennett <colin@gibibit.com>
33502
33503 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
33504 (grub_gfxterm_putchar): Extract pairs of identical calls to
33505 draw_cursor out of conditional blocks.
33506
33507 2009-03-11 Pavel Roskin <proski@gnu.org>
33508
33509 * fs/hfs.c (grub_hfs_strncasecmp): New function.
33510 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
33511
33512 2009-03-11 Robert Millan <rmh@aybabtu.com>
33513
33514 * loader/i386/multiboot_elfxx.c
33515 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
33516
33517 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
33518
33519 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
33520 `kern/handler.c'.
33521
33522 2009-03-11 Robert Millan <rmh@aybabtu.com>
33523
33524 * loader/i386/multiboot.c (code_size): New variable.
33525 (grub_multiboot): Define offsets by adding to `code_size' rather
33526 than subtracting from `grub_multiboot_payload_size'. Provide
33527 4-byte alignment to MBI and others by increasing
33528 `boot_loader_name_length' appropriately.
33529
33530 * loader/i386/multiboot_elfxx.c
33531 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
33532
33533 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
33534
33535 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
33536 `fs/ext2.c'.
33537
33538 2009-03-08 Robert Millan <rmh@aybabtu.com>
33539
33540 Make loader/i386/linux.c usable on i386-pc again.
33541
33542 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
33543 memory to heap.
33544 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
33545 `#error' stanza.
33546
33547 2009-03-07 Bean <bean123ch@gmail.com>
33548
33549 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
33550 allocation.
33551
33552 2009-03-06 Robert Millan <rmh@aybabtu.com>
33553
33554 Fix display issue on terminals with screen size other than 80x25
33555 (e.g. gfxterm with resolution higher than 640x480).
33556
33557 * normal/main.c (grub_normal_init_page): Display title text in a
33558 position relative to the center of the terminal instead of relying
33559 on a hardcoded offset.
33560
33561 2009-03-04 Robert Millan <rmh@aybabtu.com>
33562
33563 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
33564 installed.
33565
33566 * Makefile.in (host_kernel): New variable.
33567 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
33568 scripts instead of just the windows one.
33569 * configure.ac: Initialize and AC_SUBST `host_kernel'.
33570
33571 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33572
33573 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
33574 `kern/handler.c'.
33575 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33576 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33577 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33578 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33579 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33580 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33581
33582 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33583
33584 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
33585 or if there's no space for the disk label and print the partition number on a
33586 invalid magic.
33587
33588 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33589
33590 * util/misc.c: Include <time.h>.
33591 (grub_millisleep): New function.
33592
33593 2009-03-04 Bean <bean123ch@gmail.com>
33594
33595 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
33596 another option -mno-red-zone.
33597
33598 * commands/handler.c: Change module description.
33599
33600 * kern/handler.c: Add missing space at the end of description line.
33601
33602 * kern/list.c: Likewise.
33603
33604 2009-03-03 Robert Millan <rmh@aybabtu.com>
33605
33606 Move more components to the relocation area, and fix mbi pointer
33607 handling to use the destination rather than the origin (thanks to
33608 Vladimir Serbinenko for spotting).
33609
33610 * loader/i386/multiboot.c (mbi_dest): New variable.
33611 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
33612 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
33613 relocation area.
33614
33615 2009-03-01 Bean <bean123ch@gmail.com>
33616
33617 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
33618 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
33619 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
33620 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
33621
33622 * loader/i386/efi/linux.c (acpi_guid): New variable.
33623 (acpi_guid): Likewise.
33624 (EBDA_SEG_ADDR): New constant.
33625 (LOW_MEM_ADDR): Likewise.
33626 (FAKE_EBDA_SEG): Likewise.
33627 (fake_bios_data): New function.
33628 (grub_linux_boot): Call fake_bios_data.
33629
33630 2009-03-01 Bean <bean123ch@gmail.com>
33631
33632 * commands/terminal.c: Removed.
33633
33634 * commands/handler.c: New file.
33635
33636 * include/grub/list.h: Likewise.
33637
33638 * include/grub/handler.h: Likewise.
33639
33640 * kern/list.c: Likewise.
33641
33642 * kern/handler.c: Likewise.
33643
33644 * kern/term.h: Include header file <grub/handler.h>.
33645 (grub_term_input): Move next field to the beginning.
33646 (grub_term_output): Likewise.
33647 (grub_term_input_class): New variable.
33648 (grub_term_output_class): Likewise.
33649 (grub_term_register_input): Changed to inline function.
33650 (grub_term_register_output): Likewise.
33651 (grub_term_unregister_input): Likewise.
33652 (grub_term_unregister_output): Likewise.
33653 (grub_term_set_current_input): Likewise.
33654 (grub_term_set_current_output): Likewise.
33655 (grub_term_get_current_input): Likewise.
33656 (grub_term_get_current_output): Likewise.
33657 (grub_term_iterate_input): Removed.
33658 (grub_term_iterate_output): Likewise.
33659
33660 * kern/term.c (grub_term_list_input): Removed.
33661 (grub_term_list_output): Likewise.
33662 (grub_term_input_class): New variable.
33663 (grub_term_output_class): Likewise.
33664 (grub_cur_term_input): Change variable as macro.
33665 (grub_cur_term_output): Likewise.
33666 (grub_term_register_input): Removed.
33667 (grub_term_register_output): Likewise.
33668 (grub_term_unregister_input): Likewise.
33669 (grub_term_unregister_output): Likewise.
33670 (grub_term_set_current_input): Likewise.
33671 (grub_term_set_current_output): Likewise.
33672 (grub_term_iterate_input): Likewise.
33673 (grub_term_iterate_output): Likewise.
33674 (grub_term_get_current_input): Likewise.
33675 (grub_term_get_current_output): Likewise.
33676
33677 * util/grub-editenv.c: Include header file <grub/handler.h>.
33678 (grub_term_get_current_input): Removed.
33679 (grub_term_get_current_output): Likewise.
33680 (grub_term_input_class): New variable.
33681 (grub_term_output_class): Likewise.
33682
33683 * util/grub-fstest.c (grub_term_get_current_input): Removed.
33684 (grub_term_get_current_output): Likewise.
33685 (grub_term_input_class): New variable.
33686 (grub_term_output_class): Likewise.
33687
33688 * util/grub-probe.c (grub_term_get_current_input): Removed.
33689 (grub_term_get_current_output): Likewise.
33690 (grub_term_input_class): New variable.
33691 (grub_term_output_class): Likewise.
33692
33693 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
33694 (grub_term_get_current_output): Likewise.
33695 (grub_term_input_class): New variable.
33696 (grub_term_output_class): Likewise.
33697
33698 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
33699 (terminal_mod_SOURCES): Likewise.
33700 (terminal_mod_CFLAGS): Likewise.
33701 (terminal_mod_LDFLAGS): Likewise.
33702
33703 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
33704 handler.c.
33705 (kernel_img_SOURCES): Add list.c and handler.c.
33706 (kernel_img_HEADERS): Add list.h and handler.h.
33707
33708 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33709 handler.c.
33710 (kernel_mod_SOURCES): Add list.c and handler.c.
33711 (kernel_mod_HEADERS): Add list.h and handler.h.
33712
33713 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
33714 handler.c.
33715 (kernel_elf_SOURCES): Add list.c and handler.c.
33716 (kernel_elf_HEADERS): Add list.h and handler.h.
33717
33718 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33719 handler.c.
33720 (kernel_elf_SOURCES): Add list.c and handler.c.
33721 (kernel_elf_HEADERS): Add list.h and handler.h.
33722
33723 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33724 handler.c.
33725 (kernel_mod_SOURCES): Add list.c and handler.c.
33726 (kernel_mod_HEADERS): Add list.h and handler.h.
33727
33728 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33729 handler.c.
33730 (kernel_elf_SOURCES): Add list.c and handler.c.
33731 (kernel_elf_HEADERS): Add list.h and handler.h.
33732
33733 2009-02-27 Robert Millan <rmh@aybabtu.com>
33734
33735 Factorize elf32 / elf64 code in Multiboot loader. This will
33736 prevent it from getting out of sync again.
33737
33738 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
33739 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
33740 grub_multiboot_load_elf64): Move from here ...
33741 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
33742 grub_multiboot_load_elf): ... to here (new file).
33743
33744 2009-02-27 Robert Millan <rmh@aybabtu.com>
33745
33746 * util/grub.d/10_linux.in: Rename "single-user mode" to
33747 "recovery mode".
33748
33749 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
33750
33751 Don't leak in SCSI code.
33752 * disk/scsi.c (grub_scsi_close): free `scsi'.
33753
33754 2009-02-27 Robert Millan <rmh@aybabtu.com>
33755
33756 * loader/i386/pc/multiboot.c: Move from here ...
33757 * loader/i386/multiboot.c: ... to here. Update all users.
33758
33759 2009-02-27 Robert Millan <rmh@aybabtu.com>
33760
33761 Patch from Alexandre Bique <bique.alexandre@gmail.com>
33762 * util/i386/pc/grub-setup.c (setup): Fix directory path.
33763
33764 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
33765
33766 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
33767 b-tree.
33768
33769 2009-02-27 Robert Millan <rmh@aybabtu.com>
33770
33771 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
33772 `0x' qualifier as 0 when base is specified as parameter).
33773
33774 2009-02-24 Bean <bean123ch@gmail.com>
33775
33776 * configure.ac: Check for -mcmodel=large in x86_64 target.
33777
33778 * include/grub/efi/api.h (efi_call_10): New macro.
33779 (efi_wrap_10): New function.
33780
33781 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
33782 (GRUB_PE32_REL_BASED_HIGH): Likewise.
33783 (GRUB_PE32_REL_BASED_LOW): Likewise.
33784 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
33785 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
33786 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
33787 (GRUB_PE32_REL_BASED_SECTION): Likewise.
33788 (GRUB_PE32_REL_BASED_REL): Likewise.
33789 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
33790 (GRUB_PE32_REL_BASED_DIR64): Likewise.
33791 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
33792
33793 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
33794 issue.
33795
33796 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
33797 (efi_wrap_10): New function.
33798
33799 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
33800
33801 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
33802 MB/MBP model (NV chipset).
33803 (devdata_devs): Add devpath_5 to the list.
33804
33805 * load/i386/efi/linux.c (video_base): Remove variable.
33806 (RGB_MASK): New macro.
33807 (RGB_MAGIC): Likewise.
33808 (LINE_MIN): Likewise.
33809 (LINE_MAX): Likewise.
33810 (FBTEST_STEP): Likewise.
33811 (FBTEST_COUNT): Likewise.
33812 (fb_list): New variable.
33813 (grub_find_video_card): Remove function.
33814 (find_framebuf): New function.
33815 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
33816 line length.
33817
33818 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
33819 problem for x86_64.
33820
33821 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
33822
33823 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
33824
33825 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
33826 coding tool name.
33827
33828 2009-02-22 Robert Millan <rmh@aybabtu.com>
33829
33830 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
33831 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
33832 in our relocation, instead of using it directly from heap. Also
33833 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
33834
33835 2009-02-21 Robert Millan <rmh@aybabtu.com>
33836
33837 Implement USB keyboard support (based on patch by Marco Gerards)
33838
33839 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
33840 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
33841 (usb_keyboard_mod_LDFLAGS): New variables.
33842
33843 * term/usb_keyboard.c: New file.
33844
33845 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
33846
33847 Corrected wrong declaration
33848
33849 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
33850
33851 2009-02-14 Christian Franke <franke@computer.org>
33852
33853 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
33854 (grub_lspci_iter): Print class code and programming interface byte.
33855
33856 2009-02-14 Christian Franke <franke@computer.org>
33857
33858 * gendistlist.sh: Ignore `.svn' directories.
33859
33860 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
33861
33862 * fs/fat.c: Add 2009 to Copyright line.
33863
33864 2009-02-14 Christian Franke <franke@computer.org>
33865
33866 * commands/hdparm.c: New file. Provides `hdparm' command
33867 which sends ATA commands via grub_disk_ata_pass_through ().
33868
33869 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
33870
33871 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
33872 and <grub/cpu/io.h> to include/grub/ata.h.
33873 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
33874 (GRUB_CDROM_SECTOR_SIZE): Remove.
33875 (GRUB_ATA_*): Move to include/grub/ata.h.
33876 (GRUB_ATAPI_*): Likewise.
33877 (enum grub_ata_commands): Likewise.
33878 (enum grub_ata_timeout_milliseconds): Likewise.
33879 (struct grub_ata_device): Likewise.
33880 (grub_ata_regset): Likewise.
33881 (grub_ata_regget): Likewise.
33882 (grub_ata_regset2): Likewise.
33883 (grub_ata_regget2): Likewise.
33884 (grub_ata_check_ready): Likewise.
33885 (grub_ata_wait_not_busy): Remove static, exported in
33886 include/grub/ata.h.
33887 (grub_ata_wait_drq): Likewise.
33888 (grub_ata_pio_read): Likewise.
33889
33890 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
33891 function for hdparm.mod.
33892
33893 * include/grub/ata.h: New file, contains declarations from
33894 disk/ata.c.
33895 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
33896
33897 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
33898 (grub_disk_ata_pass_through): New exported variable.
33899
33900 * kern/disk.c (grub_disk_ata_pass_through): New variable.
33901
33902 2009-02-13 Colin D Bennett <colin@gibibit.com>
33903
33904 Support multiple fallback entries, and provide an API to support
33905 executing default+fallback menu entries. Renamed the `terminal' menu
33906 viewer to `text'.
33907
33908 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
33909 variable declaration.
33910 (grub_menu_execute_callback): New structure declaration.
33911 (grub_menu_execute_callback_t): New typedef.
33912 (grub_menu_execute_with_fallback): New function declaration.
33913 (grub_menu_get_entry): Likewise.
33914 (grub_menu_get_timeout): Likewise.
33915 (grub_menu_set_timeout): Likewise.
33916
33917 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
33918
33919 * normal/menu.c (grub_wait_after_message): Moved to
33920 `normal/menu_text.c'.
33921 (draw_border): Likewise.
33922 (print_message): Likewise.
33923 (print_entry): Likewise.
33924 (print_entries): Likewise.
33925 (grub_menu_init_page): Likewise.
33926 (get_entry_number): Likewise.
33927 (print_timeout): Likewise.
33928 (run_menu): Likewise.
33929 (grub_menu_execute_entry): Likewise.
33930 (show_text_menu): Likewise.
33931 (get_and_remove_first_entry_number): New function.
33932 (grub_menu_execute_with_fallback): Likewise.
33933 (get_entry): Renamed to ...
33934 (grub_menu_get_entry): .. this and made it global.
33935 (get_timeout): Renamed to ...
33936 (grub_menu_get_timeout): ... this and made it global.
33937 (set_timeout): Renamed to ...
33938 (grub_menu_set_timeout): ... this and made it global.
33939 (grub_normal_terminal_menu_viewer): Renamed to ...
33940 (grub_normal_text_menu_viewer): ... this.
33941
33942 * normal/menu_text.c: New file. Extracted text-menu-specific code
33943 from normal/menu.c.
33944
33945 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
33946 (normal_mod_SOURCES): Likewise.
33947
33948 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33949 (normal_mod_SOURCES): Likewise.
33950
33951 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33952 (normal_mod_SOURCES): Likewise.
33953
33954 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
33955 (normal_mod_SOURCES): Likewise.
33956
33957 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33958 (normal_mod_SOURCES): Likewise.
33959
33960 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33961 (normal_mod_SOURCES): Likewise.
33962
33963 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33964 (normal_mod_SOURCES): Likewise.
33965
33966 2009-02-11 Robert Millan <rmh@aybabtu.com>
33967
33968 * util/grub.d/00_header.in: Update old reference to `font' command.
33969
33970 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
33971
33972 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
33973
33974 Based on patch from Javier Martín.
33975
33976 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33977
33978 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
33979 to avoid false positives with FAT.
33980 (grub_fstest_SOURCES): Likewise.
33981 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33982 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33983 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33984 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33985 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33986 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33987
33988 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33989
33990 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
33991 bpb.version_specific.fat12_or_fat16.fstype and
33992 bpb.version_specific.fat32.fstype.
33993
33994 2009-02-08 Robert Millan <rmh@aybabtu.com>
33995
33996 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
33997
33998 2009-02-08 Robert Millan <rmh@aybabtu.com>
33999
34000 * Makefile.in (host_os, host_cpu): New variables.
34001 (target_os): Remove. Update all users.
34002
34003 2009-02-08 Marco Gerards <marco@gnu.org>
34004
34005 * Makefile.in (enable_grub_emu_usb): New variable.
34006 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
34007 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
34008 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
34009 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
34010 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
34011 `usbtest.mod' and `usbms.mod'.
34012 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
34013 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
34014 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
34015 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
34016 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
34017 variables.
34018
34019 * disk/usbms.c: New file.
34020
34021 * include/grub/usb.h: Likewise.
34022
34023 * include/grub/usbtrans.h: Likewise.
34024
34025 * include/grub/usbdesc.h: Likewise.
34026
34027 * bus/usb/usbtrans.c: Likewise.
34028
34029 * bus/usb/ohci.c: Likewise.
34030
34031 * bus/usb/uhci.c: Likewise.
34032
34033 * bus/usb/usbhub.c: Likewise.
34034
34035 * bus/usb/usb.c: Likewise.
34036
34037 * commands/usbtest.c: Likewise.
34038
34039 * util/usb.c: Likewise.
34040
34041 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
34042
34043 * configure.ac: Test for libusb presence.
34044
34045 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
34046
34047 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
34048
34049 * kern/mm.c: Add more comments.
34050
34051 2009-02-08 Robert Millan <rmh@aybabtu.com>
34052
34053 Patch from Javier Martín.
34054 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
34055 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
34056
34057 2009-02-08 Robert Millan <rmh@aybabtu.com>
34058
34059 * fs/cpio.c: Split tar functionality to ...
34060 * fs/tar.c: ... here (new file). Update all users.
34061
34062 2009-02-07 Robert Millan <rmh@aybabtu.com>
34063
34064 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
34065 backward-incompatible features.
34066
34067 Based on patch from Javier Martín, with some adjustments.
34068
34069 2009-02-07 Michael Scherer <misc@mandriva.org>
34070
34071 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
34072
34073 2009-02-07 Robert Millan <rmh@aybabtu.com>
34074
34075 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
34076 position of `disk/lvm.c' to ensure grub_init_all() always picks it
34077 after the RAID stuff.
34078
34079 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
34080
34081 Fixes problem when running vbetest command as reported by
34082 Vladimir Serbinenko <phcoder@gmail.com>.
34083
34084 * (grub_vbe_set_video_mode): Fixed problem with text modes.
34085
34086 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
34087
34088 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
34089 /dev/md/NpN style mdraid devices.
34090
34091 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
34092
34093 * util/unifont2pff.rb: Remove.
34094
34095 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
34096
34097 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
34098 `#'.
34099
34100 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
34101
34102 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
34103 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34104 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34105 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34106 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34107 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34108 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34109
34110 2009-02-02 Christian Franke <franke@computer.org>
34111
34112 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
34113
34114 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
34115
34116 * INSTALL: Note that we now require at least autoconf 2.59 and
34117 that LZO is optional.
34118
34119 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34120
34121 Base on patch on bug #24154 created by Tomas Tintera
34122 <trosos@seznam.cz>.
34123
34124 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
34125
34126 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34127
34128 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
34129 <bero@arklinux.org>.
34130
34131 * normal/parser.y (script_init): Add missing semicolon.
34132
34133 2009-01-31 Colin D Bennett <colin@gibibit.com>
34134
34135 * normal/main.c: Add include to grub/menu_viewer.h.
34136 (free_menu_entry_classes): Added.
34137 (grub_normal_menu_addentry): Added class property handling.
34138 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
34139 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
34140
34141 * normal/menu_viewer.c: New file.
34142
34143 * normal/menu.c (run_menu_entry): Renamed to ...
34144 (grub_menu_execute_entry): ... this and made it as global.
34145 (grub_menu_run): Renamed to ...
34146 (show_text_menu): ... this and made it local.
34147 (show_text_menu): Adapt to new function names.
34148 (grub_normal_terminal_menu_viewer): New global variable.
34149
34150 * include/grub/menu.h: New file.
34151
34152 * include/grub/menu_viewer.h: New file.
34153
34154 * include/grub/normal.h: Added include to grub/menu.h.
34155 (grub_menu_entry): Moved to include/grub/menu.h.
34156 (grub_menu_entry_t): Likewise.
34157 (grub_menu): Likewise.
34158 (grub_menu_t): Likewise.
34159 (grub_normal_terminal_menu_viewer): Added.
34160 (grub_menu_execute_entry): Likewise.
34161 (grub_menu_run): Removed.
34162
34163 * DISTLIST: Added include/grub/menu.h.
34164 Added include/grub/menu_viewer.h.
34165 Added normal/menu_viewer.c.
34166
34167 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
34168
34169 * normal/execute.c (grub_script_execute_menuentry): Changed to use
34170 arglist for menutitle arguments.
34171
34172 * normal/main.c (grub_normal_menu_addentry): Likewise.
34173
34174 * normal/parser.y (menuentry): Likewise.
34175
34176 * normal/script.c (grub_script_create_cmdmenu): Likewise.
34177
34178 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
34179 (grub_script_create_cmdmenu): Likewise.
34180
34181 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
34182
34183 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
34184 changes.
34185
34186 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
34187
34188 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
34189
34190 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
34191
34192 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34193
34194 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34195
34196 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34197
34198 2009-01-30 Christian Franke <franke@computer.org>
34199
34200 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
34201 in option help text.
34202
34203 2009-01-27 Pavel Roskin <proski@gnu.org>
34204
34205 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
34206
34207 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34208
34209 * commands/lsmmap.c: Add include to grub/machine/memory.h.
34210
34211 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
34212
34213 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
34214 unregister function.
34215
34216 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34217
34218 * disk/scsi.c (grub_scsi_read): Fix sign problem.
34219
34220 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
34221
34222 * util/grub-mkfont.c (usage): Fix typo.
34223
34224 * util/elf/grub-mkimage.c (load_modules): Fix warning.
34225
34226 2009-01-26 Daniel Mierswa <impulze@impulze.org>
34227
34228 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
34229
34230 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
34231
34232 * kern/misc.c (grub_strcasecmp): New function.
34233 (grub_strcasecmp): Use grub_size_t instead of int for length.
34234 Fix return value.
34235 * include/grub/misc.h: Update function prototypes.
34236
34237 2009-01-26 Robert Millan <rmh@aybabtu.com>
34238
34239 * configure.ac: Fix cross-compilation check.
34240
34241 2009-01-22 Christian Franke <franke@computer.org>
34242
34243 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
34244 (precision) digit string. Allow `.format2' without `format1' (width).
34245 Limit input chars for `%s' output to `format2' if specified. This is
34246 compatible with standard printf ().
34247
34248 2009-01-22 Christian Franke <franke@computer.org>
34249
34250 * disk/ata.c (grub_ata_wait_status): Replace by ...
34251 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
34252 other status bits may be invalid while BSY is asserted.
34253 (grub_ata_check_ready): New function.
34254 (grub_ata_cmd): Removed.
34255 (grub_ata_wait_drq): New function.
34256 (grub_ata_strncpy): Remove inline.
34257 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
34258 and error check now done by grub_ata_wait_drq ().
34259 (grub_ata_pio_write): Likewise.
34260 (grub_atapi_identify): Set DEV before check for !BSY. Use
34261 grub_ata_wait_drq () to wait for data.
34262 (grub_ata_device_initialize): Add status register check to
34263 detect missing SATA slave devices. Add debug messages.
34264 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
34265 (grub_atapi_packet): Set DEV before check for !BSY. Replace
34266 transfer loop by grub_ata_pio_write ().
34267 (grub_ata_identify): Set DEV before check for !BSY. Use
34268 grub_ata_wait_drq () to wait for data.
34269 (grub_ata_setaddress): Set DEV before check for !BSY.
34270 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
34271 read/write in one loop. Fix invalid command on write. Fix incomplete
34272 command on (size % batch) == 0. Add missing error check after write of
34273 last block. Add debug messages.
34274 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
34275
34276 2009-01-19 Christian Franke <franke@computer.org>
34277
34278 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
34279 (GRUB_ATAPI_IREASON_*): Likewise.
34280 (grub_ata_pio_write): Fix timeout error return.
34281 (grub_atapi_identify): Add grub_ata_wait () after cmd.
34282 (grub_atapi_wait_drq): New function.
34283 (grub_atapi_packet): New parameter `size'.
34284 Use grub_atapi_wait_drq () and direct write instead of
34285 grub_ata_pio_write ().
34286 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
34287 reads the number of bytes requested by the device for each DRQ
34288 assertion.
34289 (grub_atapi_write): Remove old implementation, return not
34290 implemented instead.
34291
34292 2009-01-19 Christian Franke <franke@computer.org>
34293
34294 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
34295 of 512 to calculate data size.
34296 (grub_scsi_read12): Likewise.
34297 (grub_scsi_write10): Likewise.
34298 (grub_scsi_write12): Likewise.
34299 (grub_scsi_read): Adjust size according to blocksize.
34300 Add checks for invalid blocksize and unaligned transfer.
34301
34302 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
34303
34304 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
34305
34306 * term/gfxterm.c (write_char): Fix background rendering for wide
34307 width glyphs.
34308
34309 2009-01-19 Robert Millan <rmh@aybabtu.com>
34310
34311 * config.guess: Update to latest version from config git.
34312 * config.sub: Likewise.
34313
34314 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
34315
34316 * Makefile.in: Change font compilation to use new grub-mkfont instead
34317 of java version.
34318
34319 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
34320 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34321 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34322 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34323 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34324 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34325 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34326 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34327 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34328
34329 2009-01-16 Christian Franke <franke@computer.org>
34330
34331 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
34332 (enum grub_ata_timeout_milliseconds): New enum.
34333 (grub_ata_wait_status): Add parameter milliseconds.
34334 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
34335 recovery from timed-out commands.
34336 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
34337 return grub_errno instead of REG_ERROR.
34338 (grub_ata_pio_write): Add parameter milliseconds.
34339 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
34340 Pass milliseconds to grub_ata_wait_status () and
34341 grub_ata_pio_read ().
34342 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
34343 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
34344 grub_ata_wait_status (). Fix IDENTIFY timeout check.
34345 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
34346 It is not suitable for device detection, because DEV bit is ignored,
34347 the command may run too long, and not all devices set the signature
34348 properly.
34349 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
34350 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
34351 Fix device selection, DEV bit must be set first to address the registers
34352 of the correct device.
34353 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
34354 grub_ata_pio_read/write ().
34355 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
34356 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
34357
34358 2009-01-13 Carles Pina i Estany <carles@pina.cat>
34359
34360 * util/grub-editenv.c (main): Use fseeko(), not fseek().
34361
34362 2009-01-13 Bean <bean123ch@gmail.com>
34363
34364 * util/grub-mkfont.c (write_font): forget to remove some debug code.
34365
34366 2009-01-13 Bean <bean123ch@gmail.com>
34367
34368 * Makefile.in: (enable_grub_mkfont): New variable.
34369 (freetype_cflags): Likewise.
34370 (freetype_libs): Likewise.
34371
34372 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
34373 (grub_mkfont_SOURCES): New variable.
34374 (grub_mkfont_CFLAGS): Likewise.
34375 (grub_mkfont_LDFLAGS): Likewise.
34376
34377 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
34378 library if `--enable-grub-mkfont' is requested.
34379 (enable_grub_mkfont): New variable.
34380 (freetype_cflags): Likewise.
34381 (freetype_libs): Likewise.
34382
34383 * util/grub-mkfont.c: New file.
34384
34385 2009-01-12 Christian Franke <franke@computer.org>
34386
34387 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
34388 mode check. Fix setting of compat_use[].
34389
34390 2009-01-10 Robert Millan <rmh@aybabtu.com>
34391
34392 Update a few copyright years which we forgot to do in 2008 (only for
34393 files whose changes made in 2008 were copyright-significant)
34394
34395 * Makefile.in: Add 2008 to Copyright line.
34396 * disk/ieee1275/ofdisk.c: Likewise.
34397 * disk/efi/efidisk.c: Likewise.
34398 * kern/dl.c: Likewise.
34399 * kern/sparc64/ieee1275/init.c: Likewise.
34400 * kern/mm.c: Likewise.
34401 * kern/efi/mm.c: Likewise.
34402 * boot/i386/pc/boot.S: Likewise.
34403 * genfslist.sh: Likewise.
34404 * fs/iso9660.c: Likewise.
34405 * fs/hfs.c: Likewise.
34406 * fs/jfs.c: Likewise.
34407 * fs/minix.c: Likewise.
34408 * fs/ufs.c: Likewise.
34409 * gensymlist.sh.in: Likewise.
34410 * genkernsyms.sh.in: Likewise.
34411 * include/grub/misc.h: Likewise.
34412 * include/grub/types.h: Likewise.
34413 * include/grub/symbol.h: Likewise.
34414 * include/grub/elf.h: Likewise.
34415 * include/grub/kernel.h: Likewise.
34416 * include/grub/disk.h: Likewise.
34417 * include/grub/dl.h: Likewise.
34418 * include/grub/i386/linux.h: Likewise.
34419 * include/grub/i386/pc/biosdisk.h: Likewise.
34420 * include/grub/efi/api.h: Likewise.
34421 * include/grub/efi/pe32.h: Likewise.
34422 * include/grub/util/misc.h: Likewise.
34423 * normal/execute.c: Likewise.
34424 * normal/arg.c: Likewise.
34425 * normal/completion.c: Likewise.
34426 * normal/lexer.c: Likewise.
34427 * normal/parser.y: Likewise.
34428 * normal/misc.c: Likewise.
34429 * commands/i386/pc/vbeinfo.c: Likewise.
34430 * commands/hexdump.c: Likewise.
34431 * commands/terminal.c: Likewise.
34432 * commands/ls.c: Likewise.
34433 * commands/help.c: Likewise.
34434 * partmap/pc.c: Likewise.
34435 * loader/efi/chainloader.c: Likewise.
34436 * loader/multiboot_loader.c: Likewise.
34437 * loader/i386/pc/multiboot2.c: Likewise.
34438 * term/efi/console.c: Likewise.
34439 * term/i386/pc/serial.c: Likewise.
34440 * util/lvm.c: Likewise.
34441 * util/console.c: Likewise.
34442 * util/i386/efi/grub-mkimage.c: Likewise.
34443 * util/raid.c: Likewise.
34444
34445 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
34446
34447 * commands/videotest.c: Removed include to grub/machine/memory.h.
34448
34449 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
34450 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
34451 (video_mod_SOURCES): Removed.
34452 (video_mod_CFLAGS): Likewise.
34453 (video_mod_LDFLAGS): Likewise.
34454 (gfxterm_mod_SOURCES): Likewise.
34455 (gfxterm_mod_CFLAGS): Likewise.
34456 (gfxterm_mod_LDFLAGS): Likewise.
34457 (videotest_mod_SOURCES): Likewise.
34458 (videotest_mod_CFLAGS): Likewise.
34459 (videotest_mod_LDFLAGS): Likewise.
34460 (bitmap_mod_SOURCES): Likewise.
34461 (bitmap_mod_CFLAGS): Likewise.
34462 (bitmap_mod_LDFLAGS): Likewise.
34463 (tga_mod_SOURCES): Likewise.
34464 (tga_mod_CFLAGS): Likewise.
34465 (tga_mod_LDFLAGS): Likewise.
34466 (jpeg_mod_SOURCES): Likewise.
34467 (jpeg_mod_CFLAGS): Likewise.
34468 (jpeg_mod_LDFLAGS): Likewise.
34469 (png_mod_SOURCES): Likewise.
34470 (png_mod_CFLAGS): Likewise.
34471 (png_mod_LDFLAGS): Likewise.
34472
34473 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
34474 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
34475 (video_mod_SOURCES): Added.
34476 (video_mod_CFLAGS): Likewise.
34477 (video_mod_LDFLAGS): Likewise.
34478 (videotest_mod_SOURCES): Likewise.
34479 (videotest_mod_CFLAGS): Likewise.
34480 (videotest_mod_LDFLAGS): Likewise.
34481 (bitmap_mod_SOURCES): Likewise.
34482 (bitmap_mod_CFLAGS): Likewise.
34483 (bitmap_mod_LDFLAGS): Likewise.
34484 (tga_mod_SOURCES): Likewise.
34485 (tga_mod_CFLAGS): Likewise.
34486 (tga_mod_LDFLAGS): Likewise.
34487 (jpeg_mod_SOURCES): Likewise.
34488 (jpeg_mod_CFLAGS): Likewise.
34489 (jpeg_mod_LDFLAGS): Likewise.
34490 (png_mod_SOURCES): Likewise.
34491 (png_mod_CFLAGS): Likewise.
34492 (png_mod_LDFLAGS): Likewise.
34493 (gfxterm_mod_SOURCES): Likewise.
34494 (gfxterm_mod_CFLAGS): Likewise.
34495 (gfxterm_mod_LDFLAGS): Likewise.
34496
34497 * term/gfxterm.c: Removed include to grub/machine/memory.h,
34498 grub/machine/console.h.
34499
34500 2009-01-04 Jerone Young <jerone@gmail.com>
34501
34502 Make on screen instructions clearer
34503
34504 Based on patch created by Jidanni <jidanni@jidanni.org>
34505
34506 * normal/menu.c: print clearer instructions on the screen
34507
34508 2009-01-02 Colin D Bennett <colin@gibibit.com>
34509
34510 New font engine.
34511
34512 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
34513 build system and fixed gfxterm.c to work with different sized fonts.
34514
34515 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34516
34517 * configure: Re-generated.
34518
34519 * DISTLIST: Removed font/manager.c.
34520 Added font/font.c.
34521 Added font/font_cmd.c.
34522
34523 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
34524 compilation.
34525
34526 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34527
34528 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
34529
34530 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34531
34532 * normal/menu.c: Likewise.
34533
34534 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
34535 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34536
34537 * include/grub/font.h: Replaced with new file.
34538
34539 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
34540 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
34541 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
34542 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
34543 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34544 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
34545 fg_red, fg_green, fg_blue, fg_alpha.
34546 (grub_video_adapter): Removed blit_glyph.
34547 (grub_video_blit_glyph): Removed.
34548
34549 * font/manager.c: Removed file.
34550
34551 * font/font.c: New file.
34552
34553 * font/font_cmd.c: Likewise.
34554
34555 * video/video.c (grub_video_blit_glyph): Removed.
34556
34557 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
34558 (grub_video_vbe_map_rgba): Likewise.
34559 (grub_video_vbe_unmap_color_int): Likewise.
34560 (grub_video_vbe_blit_glyph): Removed.
34561 (grub_video_vbe_adapter): Removed blit_glyph.
34562
34563 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
34564 (get_pixel): Likewise.
34565 (set_pixel): Likewise.
34566
34567 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34568
34569 * term/gfxterm.c: Adapted to new font engine.
34570
34571 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34572
34573 * term/i386/pc/vga.c: Likewise.
34574
34575 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34576
34577 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34578
34579 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34580
34581 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34582
34583 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34584
34585 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34586
34587 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34588
34589 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34590
34591 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34592
34593 * util/grub.d/00_header.in: Changed to use new loadfont command.
34594
34595 * util/grub-mkconfig_lib.in: Changed font extension.
34596
34597 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
34598
34599 * util/getroot.c (grub_util_get_grub_dev): Add support for
34600 /dev/md/dNNpNN style partitionable mdraid devices.
34601
34602 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
34603
34604 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
34605 at a time limit of the PXE TFTP API correctly.
34606 (grub_pxefs_close): Likewise.
34607
34608 2008-11-29 Robert Millan <rmh@aybabtu.com>
34609
34610 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
34611 grub_ata_device_initialize() calls.
34612
34613 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
34614
34615 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
34616 iteration failed.
34617 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
34618
34619 2008-11-28 Robert Millan <rmh@aybabtu.com>
34620
34621 Fix build on powerpc-ieee1275. Based on patch created by
34622 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
34623 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34624 `kern/ieee1275/mmap.c'.
34625 * include/grub/powerpc/ieee1275/memory.h: New file.
34626
34627 Provide grub-install on coreboot.
34628 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
34629 (grub_install_SOURCES): New variable.
34630 * util/i386/pc/grub-install.in: Add a few condition checks to make it
34631 usable on coreboot.
34632
34633 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
34634
34635 * util/grub-fstest.c (grub_term_get_current_input): Change return type
34636 to `grub_term_input_t'.
34637 (grub_term_get_current_output): Change return type to
34638 `grub_term_output_t'.
34639
34640 2008-11-22 Robert Millan <rmh@aybabtu.com>
34641
34642 Fix breakage on coreboot due to declaration mismatch.
34643 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
34644 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
34645 grub_vga_text_cls().
34646
34647 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34648 comments. Avoid copying one more byte than necessary (just in case).
34649
34650 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
34651 to 0x200000 (avoids trouble with some OFW implementations, and matches
34652 with the one in Yaboot).
34653 Reported by Manoel Abranches
34654
34655 2008-11-20 Robert Millan <rmh@aybabtu.com>
34656
34657 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
34658 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
34659
34660 * util/grub-mkconfig_lib.in (grub_warn): New function.
34661 (convert_system_path_to_grub_path): Use grub_warn() when issuing
34662 warnings, to obtain consistent formatting.
34663 * util/grub.d/00_header.in: Likewise.
34664 * util/update-grub_lib.in: Likewise.
34665
34666 * loader/i386/linux.c (allocate_pages): Fix a warning.
34667 Move comment text to `#error' stanza.
34668
34669 Harmonize ieee1275's grub_available_iterate() with the generic
34670 grub_machine_mmap_iterate() interface (fixes a recently-introduced
34671 build problem on i386-ieee1275):
34672 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
34673 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
34674 parameter `type'. Update all users of this function.
34675 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
34676 `kern/ieee1275/mmap.c'.
34677 * kern/ieee1275/init.c
34678 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
34679 with ...
34680 (grub_machine_mmap_iterate): ... this.
34681 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
34682 return type to `grub_err_t'. Update all implementations of this
34683 function prototype.
34684 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
34685 Likewise.
34686
34687 Add `lsmmap' command (lists firmware-provided memory map):
34688 * commands/lsmmap.c: New file.
34689 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
34690 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
34691 variables.
34692 * conf/powerpc-ieee1275.rmk: Likewise.
34693 * conf/i386-coreboot.rmk: Likewise.
34694 * conf/i386-ieee1275.rmk: Likewise.
34695
34696 2008-11-19 Robert Millan <rmh@aybabtu.com>
34697
34698 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
34699 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
34700 constraints to initrd allocation (based on code from
34701 loader/i386/pc/linux.c). Without them, initrd was allocated too high
34702 for Linux to find it.
34703
34704 2008-11-14 Robert Millan <rmh@aybabtu.com>
34705
34706 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
34707 order to cope with duplicate slashes.
34708
34709 2008-11-14 Robert Millan <rmh@aybabtu.com>
34710
34711 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
34712 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
34713 don't want to mess with lower memory, because it is used in the Linux
34714 loader.
34715
34716 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34717 an appropriate place in lower memory, between 0x10000 and 0x90000,
34718 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
34719 is in our heap (probably as a result of it being corrupted during
34720 decompression). Add #error instance with comment to explain why this
34721 loader isn't currently usable on PC/BIOS.
34722
34723 2008-11-14 Robert Millan <rmh@aybabtu.com>
34724
34725 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34726 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
34727
34728 2008-11-12 Robert Millan <rmh@aybabtu.com>
34729
34730 Make loader/i386/linux.c buildable on i386-pc (although disabled).
34731
34732 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
34733 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
34734 from here ...
34735 * include/grub/i386/pc/memory.h: ... to here.
34736
34737 2008-11-12 Robert Millan <rmh@aybabtu.com>
34738
34739 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
34740 split).
34741
34742 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
34743 (grub_console_cur_color, grub_console_real_putchar)
34744 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34745 (grub_console_setcolorstate, grub_console_setcolor)
34746 (grub_console_getcolor): Move from here ...
34747 * include/grub/i386/vga_common.h: ... to here (new file).
34748
34749 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
34750 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
34751 `<grub/i386/io.h>'.
34752 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
34753 `<grub/i386/vga_common.h>'.
34754
34755 2008-11-12 Robert Millan <rmh@aybabtu.com>
34756
34757 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
34758 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
34759 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
34760 variables.
34761 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34762 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
34763
34764 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
34765 grub_console_init() with call to grub_vga_text_init().
34766 (grub_machine_fini): Replace call to
34767 grub_console_fini() with call to grub_vga_text_fini() and
34768 grub_at_keyboard_fini().
34769
34770 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
34771 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34772 (grub_console_setcolorstate, grub_console_setcolor)
34773 (grub_console_getcolor): New function prototypes.
34774
34775 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
34776 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
34777 (grub_vga_text_setcursor): Static-ize.
34778 (grub_vga_text_term): New structure.
34779 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
34780
34781 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
34782 (grub_console_cur_color, grub_console_standard_color)
34783 (grub_console_normal_color, grub_console_highlight_color)
34784 (map_char, grub_console_putchar, grub_console_getcharwidth)
34785 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
34786 (grub_console_getcolor): Move from here ...
34787 * term/i386/vga_common.c: ... to here (same function names).
34788
34789 2008-11-12 Robert Millan <rmh@aybabtu.com>
34790
34791 Use newly-added Multiboot support in coreboot.
34792
34793 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34794 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
34795
34796 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
34797 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
34798 (codestart): Store the MBI in `startup_multiboot_info' when we're
34799 being loaded using Multiboot.
34800
34801 * kern/i386/coreboot/init.c (grub_machine_init): Move
34802 grub_at_keyboard_init() call to beginning of function (useful for
34803 debugging). Call grub_machine_mmap_init() before attempting to use
34804 grub_machine_mmap_iterate().
34805 (grub_lower_mem, grub_upper_mem): Move from here ...
34806 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
34807 here (new file).
34808
34809 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
34810 function prototype.
34811
34812 2008-11-12 Robert Millan <rmh@aybabtu.com>
34813
34814 Fix a regression introduced by the at_keyboard.mod split. Because
34815 some terminals are default on some platforms and non-default on
34816 others, the first terminal being registered determines which is
34817 going to be default.
34818
34819 * kern/term.c (grub_term_register_input): If this is the first
34820 terminal being registered, set it as the current one.
34821 (grub_term_register_output): Likewise.
34822
34823 * term/efi/console.c (grub_console_init): Do not call
34824 grub_term_set_current_output() or grub_term_set_current_input().
34825 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
34826 * term/i386/pc/console.c (grub_console_init): Likewise.
34827 (grub_console_fini): Do not call grub_term_set_current_input()
34828 (but leave grub_term_set_current_output() to restore text mode).
34829
34830 2008-11-10 Robert Millan <rmh@aybabtu.com>
34831
34832 * util/grub.d/00_header.in: Add backward compatibility check for
34833 versions of terminal.mod that don't understand `terminal_input' or
34834 `terminal_output'.
34835
34836 2008-11-09 Robert Millan <rmh@aybabtu.com>
34837
34838 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
34839 `terminal_input' / `terminal_output', not `terminal'.
34840
34841 2008-11-08 Robert Millan <rmh@aybabtu.com>
34842
34843 * Makefile.in (include_DATA): Fix srcdir=. assumption.
34844 (DISTCLEANFILES): Add `build_env.mk'.
34845
34846 2008-11-08 Robert Millan <rmh@aybabtu.com>
34847
34848 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
34849 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34850 members. Update all users.
34851 * util/console.c (grub_ncurses_term): Split in ...
34852 (grub_ncurses_term_input): ... this, and ...
34853 (grub_ncurses_term_output): ... this. Update all users.
34854 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
34855
34856 2008-11-08 Robert Millan <rmh@aybabtu.com>
34857
34858 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
34859 (PKGDATA): Add $(pkgdata_SRCDIR).
34860 (pkglib_BUILDDIR): New variable.
34861 (pkgdata_SRCDIR): New variable.
34862 (build_env.mk): New target.
34863 (include_DATA): New variable.
34864 (install-local): Install $(include_DATA) files in $(includedir).
34865
34866 2008-11-07 Pavel Roskin <proski@gnu.org>
34867
34868 * gendistlist.sh: Use C locale for sorting to ensure consistent
34869 output on all systems.
34870
34871 * util/grub.d/00_header.in: Remove incorrect space before
34872 "serial".
34873
34874 2008-11-07 Robert Millan <rmh@aybabtu.com>
34875
34876 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
34877 per specification.
34878 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
34879 * loader/multiboot_loader.c (find_multi_boot2_header): New function
34880 (based on find_multi_boot1_header).
34881 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
34882 using find_multi_boot2_header(), and abort if neither Multiboot or
34883 Multiboot headers were found.
34884
34885 2008-11-07 Robert Millan <rmh@aybabtu.com>
34886
34887 Modularize at_keyboard.mod:
34888
34889 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
34890 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
34891 (at_keyboard_mod_LDFLAGS): New variables.
34892
34893 Actual terminal split:
34894
34895 * include/grub/term.h (struct grub_term): Split in ...
34896 (struct grub_term_input): ... this, and ...
34897 (struct grub_term_output): ... this. Update all users.
34898 (grub_term_set_current): Split in ...
34899 (grub_term_set_current_input): ... this, and ...
34900 (grub_term_set_current_output): ... this.
34901 (grub_term_get_current): Split in ...
34902 (grub_term_get_current_input): ... this, and ...
34903 (grub_term_get_current_output): ... this.
34904 (grub_term_register): Split in ...
34905 (grub_term_register_input): ... this, and ...
34906 (grub_term_register_output): ... this.
34907 (grub_term_unregister): Split in ...
34908 (grub_term_unregister_input): ... this, and ...
34909 (grub_term_unregister_output): ... this.
34910 (grub_term_iterate): Split in ...
34911 (grub_term_iterate_input): ... this, and ...
34912 (grub_term_iterate_output): ... this.
34913
34914 * kern/term.c (grub_term_list): Split in ...
34915 (grub_term_list_input): ... this, and ...
34916 (grub_term_list_output): ... this. Update all users.
34917 (grub_cur_term): Split in ...
34918 (grub_cur_term_input): ... this, and ...
34919 (grub_cur_term_output): ... this. Update all users.
34920 (grub_term_set_current): Split in ...
34921 (grub_term_set_current_input): ... this, and ...
34922 (grub_term_set_current_output): ... this.
34923 (grub_term_get_current): Split in ...
34924 (grub_term_get_current_input): ... this, and ...
34925 (grub_term_get_current_output): ... this.
34926 (grub_term_register): Split in ...
34927 (grub_term_register_input): ... this, and ...
34928 (grub_term_register_output): ... this.
34929 (grub_term_unregister): Split in ...
34930 (grub_term_unregister_input): ... this, and ...
34931 (grub_term_unregister_output): ... this.
34932 (grub_term_iterate): Split in ...
34933 (grub_term_iterate_input): ... this, and ...
34934 (grub_term_iterate_output): ... this.
34935
34936 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
34937 a check for input and one for output (and only attempt to get keys
34938 from user when input works).
34939
34940 * util/grub-probe.c (grub_term_get_current): Split in ...
34941 (grub_term_get_current_input): ... this, and ...
34942 (grub_term_get_current_output): ... this.
34943 * util/grub-fstest.c: Likewise.
34944 * util/i386/pc/grub-setup.c: Likewise.
34945 * util/grub-editenv.c: Likewise.
34946
34947 Portability adjustments:
34948
34949 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
34950 `term/i386/pc/at_keyboard.c'.
34951 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
34952 grub_keyboard_controller_init() (now handled by terminal .init).
34953 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
34954 grub_at_keyboard_init().
34955 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
34956 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
34957 at_keyboard.mod via input terminal interface).
34958 * include/grub/i386/coreboot/console.h: Convert into a stub for
34959 `<grub/i386/pc/console.h>'.
34960
34961 Migrate full terminals to new API:
34962
34963 * term/efi/console.c (grub_console_term): Split into ...
34964 (grub_console_term_input): ... this, and ...
34965 (grub_console_term_output): ... this. Update all users.
34966 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
34967 (grub_ofconsole_init): Split into ...
34968 (grub_ofconsole_init_input): ... this, and ...
34969 (grub_ofconsole_init_output): ... this.
34970 (grub_ofconsole_term): Split into ...
34971 (grub_ofconsole_term_input): ... this, and ...
34972 (grub_ofconsole_term_output): ... this. Update all users.
34973 * term/i386/pc/serial.c (grub_serial_term): Split into ...
34974 (grub_serial_term_input): ... this, and ...
34975 (grub_serial_term_output): ... this. Update all users.
34976 * term/i386/pc/console.c (grub_console_term): Split into ...
34977 (grub_console_term_input): ... this, and ...
34978 (grub_console_term_output): ... this. Update all users.
34979 (grub_console_term_input): Only enable it on PC/BIOS platform.
34980 (grub_console_init): Remove grub_keyboard_controller_init() call.
34981
34982 Migrate input terminals to new API:
34983
34984 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
34985 `i386' and `i386/pc' to enable build on x86_64 (this driver is
34986 i386-specific anyway).
34987 (grub_console_checkkey): Rename to ...
34988 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
34989 users.
34990 (grub_keyboard_controller_orig): New variable.
34991 (grub_console_getkey): Rename to ...
34992 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
34993 users.
34994 (grub_keyboard_controller_init): Static-ize. Save original
34995 controller value so that it can be restored ...
34996 (grub_keyboard_controller_fini): ... here (new function).
34997 (grub_at_keyboard_term): New structure.
34998 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
34999 functions.
35000
35001 Migrate output terminals to new API:
35002
35003 * term/i386/pc/vga.c (grub_vga_term): Change type to
35004 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
35005 members. Update all users.
35006 * term/gfxterm.c (grub_video_term): Change type to
35007 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
35008 members. Update all users.
35009 * include/grub/i386/pc/console.h (grub_console_checkkey)
35010 (grub_console_getkey): Do not export (no longer needed by gfxterm,
35011 etc).
35012
35013 Migrate `terminal' command and userland tools to new API:
35014
35015 * commands/terminal.c (grub_cmd_terminal): Split into ...
35016 (grub_cmd_terminal_input): ... this, and ...
35017 (grub_cmd_terminal_output): ... this.
35018 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
35019 `terminal_input' and `terminal_output'.
35020 * util/grub.d/00_header.in: Adjust `terminal' calls to new
35021 `terminal_input' / `terminal_output' API.
35022 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
35023 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
35024 provided ${GRUB_TERMINAL}, convert it).
35025
35026 2008-11-04 Robert Millan <rmh@aybabtu.com>
35027
35028 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
35029 for FreeBSD.
35030 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
35031
35032 2008-11-03 Bean <bean123ch@gmail.com>
35033
35034 * kern/elf.c (grub_elf32_load): Revert to previous code.
35035 (grub_elf64_load): Likewise.
35036
35037 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
35038
35039 2008-11-01 Robert Millan <rmh@aybabtu.com>
35040
35041 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
35042 (TARGET_CPPFLAGS): Likewise.
35043 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
35044
35045 2008-11-01 Carles Pina i Estany <carles@pina.cat>
35046
35047 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
35048
35049 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
35050
35051 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
35052 addition of objects until the code is not going to be able to fail.
35053
35054 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
35055
35056 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
35057 (add a missing NULL check, and correct them by moving the pointer
35058 operations after the actual check).
35059
35060 2008-10-29 Robert Millan <rmh@aybabtu.com>
35061
35062 * util/i386/pc/grub-install.in: Handle empty string as output from
35063 make_system_path_relative_to_its_root().
35064
35065 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
35066
35067 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
35068 circular metadata worst case scenario. If the metadata is circular
35069 then copy the wrap in place.
35070 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
35071 project lib/format_text/layout.h
35072 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
35073
35074 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
35075
35076 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
35077
35078 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
35079
35080 * util/update-grub_lib.in: Mention filename in warning message.
35081
35082 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
35083
35084 * NEWS: Update for rename of update-grub to grub-mkconfig.
35085
35086 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
35087
35088 * util/update-grub_lib.in: Copy to ...
35089 * util/grub-mkconfig_lib.in: ... this. Update all users.
35090 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
35091 * util/update-grub.in: Rename to ...
35092 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
35093 option. Add `--output' option to allow users to specify the generated
35094 configuration file. Default to stdout.
35095 (update_grub_dir): Rename to ...
35096 (grub_mkconfig_dir): ... this.
35097 (grub_cfg): Default to an empty string.
35098 * conf/common.rmk (update-grub): Rename to ...
35099 (grub-mkconfig): ... this.
35100 (update-grub_lib): Copy to ...
35101 (grub-mkconfig_lib): ... this.
35102 (update-grub_SCRIPTS): Copy to ...
35103 (grub-mkconfig_SCRIPTS): ... this. Update all users.
35104 (update-grub_DATA): Rename to ...
35105 (grub-mkconfig_DATA): ... this.
35106
35107 2008-09-28 Robert Millan <rmh@aybabtu.com>
35108
35109 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
35110 to `modified'. Add the real `created' field.
35111 (grub_iso9660_uuid): Use `modified' rather than `created' for
35112 constructing the UUID.
35113
35114 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
35115
35116 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
35117 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
35118
35119 2008-09-28 Bean <bean123ch@gmail.com>
35120
35121 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
35122 Thanks to Christian Franke for finding this bug.
35123
35124 2008-09-25 Robert Millan <rmh@aybabtu.com>
35125
35126 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
35127 instances of grub_util_get_disk_name() (see previous commit).
35128
35129 2008-09-25 Robert Millan <rmh@aybabtu.com>
35130
35131 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
35132 `util/i386/get_disk_name.c'.
35133 * conf/i386-efi.rmk: Likewise.
35134 * conf/x86_64-efi.rmk: Likewise.
35135 * conf/i386-coreboot.rmk: Likewise.
35136 * conf/i386-ieee1275.rmk: Likewise.
35137 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
35138 `util/ieee1275/get_disk_name.c'.
35139 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
35140 * util/ieee1275/get_disk_name.c: Remove file.
35141 * util/i386/get_disk_name.c: Remove file.
35142 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
35143 "hd%d" for device.map entries, rather than using
35144 grub_util_get_disk_name().
35145
35146 2008-09-24 Carles Pina i Estany <carles@pina.cat>
35147
35148 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
35149 warning.
35150 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
35151
35152 2008-09-24 Carles Pina i Estany <carles@pina.cat>
35153
35154 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
35155 Changed to 0x5100.
35156 (GRUB_TERM_PPAGE): Changed to 0x4900.
35157
35158 2008-09-24 Robert Millan <rmh@aybabtu.com>
35159
35160 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
35161 macros (they were i386-pc specific).
35162 * include/grub/sparc64/ieee1275/console.h: Likewise.
35163 * include/grub/efi/console.h: Likewise.
35164
35165 2008-09-22 Bean <bean123ch@gmail.com>
35166
35167 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
35168 resident and in attribute list.
35169
35170 * include/grub/ntfs.h (BMP_LEN): Removed.
35171
35172 2008-09-22 Bean <bean123ch@gmail.com>
35173
35174 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
35175 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
35176
35177 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
35178 error occurs, as grub_disk_open will call grub_disk_close, which will
35179 call p->close (scsi).
35180
35181 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
35182
35183 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
35184 (AC_PREREQ): Bumped to 2.59.
35185 (AC_TRY_COMPILE): Replace obsolete macro with ...
35186 (AC_COMPILE_IFELSE): ... this.
35187 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
35188 (AC_LINK_IFELSE): ... this.
35189
35190 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
35191
35192 * autogen.sh: Add a call to `gendistlist.sh'.
35193
35194 2008-09-19 Christian Franke <franke@computer.org>
35195
35196 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
35197 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
35198 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
35199 Export __enable_execute_stack() to modules.
35200 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
35201 New function.
35202
35203 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
35204
35205 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
35206 Sort the list.
35207
35208 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
35209
35210 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
35211 #include <grub/util/hostdisk.h>.
35212
35213 2008-09-08 Robert Millan <rmh@aybabtu.com>
35214
35215 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
35216 segments when their filesz is zero (grub_file_read() interprets
35217 zero-size as "read until EOF", which results in memory corruption).
35218 Use `lowest_segment' rather than 0 for calculating the current
35219 segment load address.
35220
35221 2008-09-08 Robert Millan <rmh@aybabtu.com>
35222
35223 * util/hostdisk.c (open_device): Replace a grub_util_info() call
35224 with grub_dprintf("hostdisk", ...), as it was so verbose that it
35225 clobbered useful information.
35226
35227 2008-09-08 Robert Millan <rmh@aybabtu.com>
35228
35229 * include/grub/util/biosdisk.h: Move to ...
35230 * include/grub/util/hostdisk.h: ... here. Update all users.
35231 * util/biosdisk.c: Move to ...
35232 * util/hostdisk.c: ... here. Update all users.
35233
35234 2008-09-07 Robert Millan <rmh@aybabtu.com>
35235
35236 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
35237 variables.
35238 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
35239 and length can be stored directly in the `mbi->mmap_addr' and
35240 `mbi->mmap_length' struct fields.
35241
35242 2008-09-07 Robert Millan <rmh@aybabtu.com>
35243
35244 * conf/i386.rmk: New file. Provides declaration for building
35245 `cpuid.mod'.
35246 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
35247 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
35248 variables.
35249 Include `conf/i386.mk'.
35250 * conf/i386-efi.rmk: Likewise.
35251 * conf/x86_64-efi.rmk: Likewise.
35252 * conf/i386-coreboot.rmk: Likewise.
35253 * conf/i386-ieee1275.rmk: Likewise.
35254
35255 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
35256
35257 Based on patch created by Colin D Bennett <colin@gibibit.com>.
35258 Adds optimization support for BGR based modes.
35259
35260 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
35261 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35262 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35263 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35264 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35265 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35266 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35267 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35268 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35269 (grub_video_i386_vbeblit_index_index): Likewise.
35270 (grub_video_i386_vbeblit_replace_directN): Added.
35271 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35272 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35273 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35274 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35275 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35276 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
35277 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
35278 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35279 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35280 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35281 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35282 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35283 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
35284
35285 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
35286 (grub_video_i386_vbefill_R8G8B8): Likewise.
35287 (grub_video_i386_vbefill_index): Likewise.
35288 (grub_video_i386_vbefill_direct32): Added.
35289 (grub_video_i386_vbefill_direct24): Likewise.
35290 (grub_video_i386_vbefill_direct16): Likewise.
35291 (grub_video_i386_vbefill_direct8): Likewise.
35292
35293 * include/grub/video.h (grub_video_blit_format): Removed
35294 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
35295 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
35296 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
35297 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
35298 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
35299
35300 * video/video.c (grub_video_get_blit_format): Updated to use new
35301 blit formats. Added handling for 16 bit color modes.
35302
35303 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
35304 fillers.
35305 (common_blitter): Updated to use new blitters.
35306
35307 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
35308 Removed.
35309 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35310 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35311 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35312 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35313 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35314 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35315 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35316 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35317 (grub_video_i386_vbeblit_index_index): Likewise.
35318 (grub_video_i386_vbeblit_replace_directN): Added.
35319 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35320 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35321 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35322 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35323 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35324 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
35325 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
35326 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35327 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35328 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35329 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35330 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35331 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
35332
35333 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
35334 (grub_video_i386_vbefill_R8G8B8): Likewise.
35335 (grub_video_i386_vbefill_index): Likewise.
35336 (grub_video_i386_vbefill_direct32): Added.
35337 (grub_video_i386_vbefill_direct24): Likewise.
35338 (grub_video_i386_vbefill_direct16): Likewise.
35339 (grub_video_i386_vbefill_direct8): Likewise.
35340
35341 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
35342 types.
35343
35344 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
35345 types.
35346
35347 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
35348 blitter types.
35349
35350 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
35351 types.
35352
35353 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
35354
35355 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
35356 RAID level 1.
35357
35358 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
35359
35360 * fs/iso9660.c (grub_iso9660_date): New structure.
35361 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
35362 (grub_iso9660_uuid): New function.
35363
35364 2008-09-05 Bean <bean123ch@gmail.com>
35365
35366 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
35367
35368 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
35369 insensitive bit for names in Win32 and Win32 & DOS namespace.
35370
35371 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
35372
35373 * include/grub/types.h (LONG_MAX): Likewise.
35374
35375 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
35376
35377 * util/getroot.c: Include <config.h>.
35378 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
35379 add support for /dev/md/N devices and handle LVM double dash escaping.
35380
35381 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
35382
35383 * config.guess: Update to latest version from config git.
35384 * config.sub: Likewise.
35385
35386 2008-09-03 Robert Millan <rmh@aybabtu.com>
35387
35388 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
35389 `disk->total_sectors'.
35390
35391 2008-09-01 Colin D Bennett <colin@gibibit.com>
35392
35393 * include/grub/normal.h: Fixed incorrect comment for
35394 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
35395
35396 2008-09-01 Colin D Bennett <colin@gibibit.com>
35397
35398 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
35399 values with defines.
35400
35401 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
35402 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
35403 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
35404 (GRUB_VBE_MODEATTR_COLOR): Likewise.
35405 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
35406 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
35407 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
35408 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
35409 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
35410 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
35411 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
35412 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
35413 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
35414 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
35415 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
35416 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
35417 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
35418 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
35419 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
35420
35421 2008-08-31 Robert Millan <rmh@aybabtu.com>
35422
35423 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
35424 declaration.
35425 (grub_multiboot): Fix a few warnings.
35426
35427 2008-08-31 Robert Millan <rmh@aybabtu.com>
35428
35429 * loader/i386/pc/multiboot.c: Update comment not to say that
35430 boot_device support is unimplemented.
35431
35432 2008-08-31 Robert Millan <rmh@aybabtu.com>
35433
35434 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
35435 or memory map support are unimplemented.
35436
35437 2008-08-31 Colin D Bennett <colin@gibibit.com>
35438
35439 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
35440
35441 2008-08-31 Colin D Bennett <colin@gibibit.com>
35442
35443 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
35444 total video memory in 'vbeinfo' output; show color format details for
35445 each video mode.
35446
35447 2008-08-30 Pavel Roskin <proski@gnu.org>
35448
35449 * util/genmoddep.c: Remove for real this time.
35450 * DISTLIST: Remove util/genmoddep.c.
35451
35452 2008-08-30 Robert Millan <rmh@aybabtu.com>
35453
35454 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
35455 as required by Multiboot spec (it was already 4-byte aligned, but
35456 only by chance).
35457
35458 2008-08-29 Pavel Roskin <proski@gnu.org>
35459
35460 * kern/powerpc/ieee1275/crt0.S: Rename to ...
35461 * kern/powerpc/ieee1275/startup.S: ... this.
35462 * conf/powerpc-ieee1275.rmk: Adjust for the above.
35463 * DISTLIST: Likewise.
35464
35465 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
35466 grub/cpu/kernel.h. Add start label for consistency with other
35467 platforms. Add grub_prefix immediately after start. Add jump
35468 to the code after grub_prefix.
35469 * include/grub/powerpc/kernel.h: Provide valid values for
35470 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
35471
35472 2008-08-29 Bean <bean123ch@gmail.com>
35473
35474 * configure.ac: Change host_os to cygwin for mingw.
35475 (asprintf): New check for function.
35476
35477 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
35478 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
35479
35480 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
35481 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
35482 sync, sleep and grub_util_get_disk_size for mingw.
35483
35484 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
35485 to get size in mingw.
35486 (open_device): Use flag O_BINARY if it's defined.
35487 (find_root_device): Add dummy code for mingw.
35488
35489 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
35490 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
35491 (get_scsi_disk_name): Return 0 for mingw.
35492
35493 * util/hostfs.c: #include <grub/util/misc.h>.
35494 (grub_hostfs_open): Use "rb" flag to open file, use
35495 grub_util_get_disk_size to get disk size for mingw.
35496
35497 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
35498 (asprintf): New function if HAVE_ASPRINTF is not set.
35499 (sync): New function for mingw.
35500 (sleep): Likewise.
35501 (grub_util_get_disk_size): Likewise.
35502
35503 2008-08-28 Pavel Roskin <proski@gnu.org>
35504
35505 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35506 kern/time.c.
35507
35508 2008-08-28 Robert Millan <rmh@aybabtu.com>
35509
35510 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
35511
35512 2008-08-28 Robert Millan <rmh@aybabtu.com>
35513
35514 Change find_grub_drive() syntax so it doesn't prevent it from
35515 detecting NULL names as errors.
35516
35517 * util/biosdisk.c (find_grub_drive): Move free slot search code
35518 from here ...
35519 (find_free_slot): ... to here.
35520 (read_device_map): Use find_free_slot() to search for free slots.
35521
35522 2008-08-27 Marco Gerards <marco@gnu.org>
35523
35524 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
35525 (scsi_mod_SOURCES): New variable.
35526 (scsi_mod_CFLAGS): Likewise
35527 (scsi_mod_LDFLAGS): Likewise.
35528
35529 * disk/scsi.c: New file.
35530
35531 * include/grub/scsi.h: Likewise.
35532
35533 * include/grub/scsicmd.h: Likewise.
35534
35535 * disk/ata.c: Include <grub/scsi.h>.
35536 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
35537 instead.
35538 (grub_ata_iterate): Skip ATAPI devices.
35539 (grub_ata_open): Only handle ATAPI devices.
35540 (struct grub_atapi_read): Removed.
35541 (grub_atapi_readsector): Likewise.
35542 (grub_ata_read): No longer handle ATAPI devices.
35543 (grub_ata_write): Likewise.
35544 (grub_atapi_iterate): New function.
35545 (grub_atapi_read): Likewise.
35546 (grub_atapi_write): Likewise.
35547 (grub_atapi_open): Likewise.
35548 (grub_atapi_close): Likewise.
35549 (grub_atapi_dev): New variable.
35550 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
35551 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
35552
35553 * include/grub/disk.h (enum grub_disk_dev_id): Add
35554 `GRUB_DISK_DEVICE_SCSI_ID'.
35555
35556 2008-08-26 Robert Millan <rmh@aybabtu.com>
35557
35558 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
35559 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
35560 descriptive.
35561
35562 2008-08-23 Bean <bean123ch@gmail.com>
35563
35564 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
35565 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35566 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
35567 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
35568 dm_nv.mod.
35569 (raid5rec_mod_SOURCES): New macro.
35570 (raid5rec_mod_CFLAGS): Likewise.
35571 (raid5rec_mod_LDFLAGS): Likewise.
35572 (raid6rec_mod_SOURCES): Likewise.
35573 (raid6rec_mod_CFLAGS): Likewise.
35574 (raid6rec_mod_LDFLAGS): Likewise.
35575 (mdraid_mod_SOURCES): Likewise.
35576 (mdraid_mod_CFLAGS): Likewise.
35577 (mdraid_mod_LDFLAGS): Likewise.
35578 (dm_nv_mod_SOURCES): Likewise.
35579 (dm_nv_mod_CFLAGS): Likewise.
35580 (dm_nv_mod_LDFLAGS): Likewise.
35581
35582 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
35583 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35584 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35585
35586 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
35587 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35588
35589 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35590
35591 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35592
35593 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35594
35595 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35596
35597 * disk/raid5_recover.c: New file.
35598
35599 * disk/raid6_recover.c: Likewise.
35600
35601 * disk/mdraid_linux.c: Likewise.
35602
35603 * disk/dmraid_nvidia.c: Likewise.
35604
35605 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
35606 ULONG_MAX.
35607
35608 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
35609 calculate the size of raid device.
35610 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
35611 different layout of raid5.
35612 (grub_raid_scan_device): Remove code specific to mdraid.
35613 (grub_raid_list): New variable.
35614 (free_array): New function.
35615 (grub_raid_register): Likewise.
35616 (grub_raid_unregister): Likewise.
35617 (grub_raid_rescan): Likewise.
35618 (GRUB_MOD_INIT): Don't iterate device here.
35619 (GRUB_MOD_FINI): Use free_array to release resource.
35620
35621 * include/grub/raid.h: Remove macro and structure specific to mdraid.
35622 (grub_raid5_recover_func_t): New function variable type.
35623 (grub_raid6_recover_func_t): Likewise.
35624 (grub_raid5_recover_func): New variable.
35625 (grub_raid6_recover_func): Likewise.
35626 (grub_raid_register): New function.
35627 (grub_raid_unregister): Likewise.
35628 (grub_raid_rescan): Likewise.
35629 (grub_raid_block_xor): Likewise.
35630
35631 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
35632 (CMD_CRC): New macro.
35633 (part): Removed.
35634 (read_file): Handle device as well as file.
35635 (cmd_crc): New function.
35636 (fstest): Handle multiple disks.
35637 (options): Remove part, raw and long, add root and diskcount.
35638 (usage): Add crc, remove -p, -r, -l, add -r and -c.
35639 (main): Find the first non option entry and ignore subsequent options,
35640 add handling for the new options, support multiple disks.
35641
35642 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
35643
35644 2008-08-23 Bean <bean123ch@gmail.com>
35645
35646 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
35647
35648 * genfslist.sh: Ignore kernel.mod.
35649
35650 * genpartmaplist.sh: Likewise.
35651
35652 2008-08-23 Robert Millan <rmh@aybabtu.com>
35653
35654 * util/getroot.c (find_root_device): Skip anything that starts with
35655 a dot, not just directories. This avoids things like /dev/.tmp.md0.
35656
35657 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
35658
35659 * util/update-grub.in (GRUB_GFXMODE): Export variable.
35660 * util/grub.d/00_header.in: Allow the administrator to change default
35661 gfxmode via ${GRUB_GFXMODE}.
35662
35663 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
35664
35665 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
35666
35667 2008-08-21 Robert Millan <rmh@aybabtu.com>
35668
35669 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
35670 loader.
35671 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
35672 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
35673
35674 2008-08-20 Carles Pina i Estany <carles@pina.cat>
35675
35676 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
35677 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
35678
35679 2008-08-19 Robert Millan <rmh@aybabtu.com>
35680
35681 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
35682 (struct grub_virtual_screen): Remove `cursor_color'.
35683 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
35684 initialization.
35685 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
35686
35687 2008-08-18 Robert Millan <rmh@aybabtu.com>
35688
35689 Unify (identical) linux_normal.c files.
35690 * loader/i386/efi/linux_normal.c: Move from here ...
35691 * loader/linux_normal.c: ... to here. Update all users.
35692 * loader/i386/pc/linux_normal.c: Delete. Update all users.
35693 * loader/i386/ieee1275/linux_normal.c: Likewise.
35694
35695 2008-08-18 Robert Millan <rmh@aybabtu.com>
35696
35697 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
35698 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
35699 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
35700 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
35701 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
35702 New macros.
35703 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
35704 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
35705 (GRUB_LINUX_CL_END_OFFSET): ... to here.
35706 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
35707 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
35708 (GRUB_EFI_CL_END_OFFSET): Rename to ...
35709 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
35710 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
35711 Initialize `params->video_cursor_x' and `params->video_cursor_y'
35712 portably using grub_getxy().
35713 Replace `-EFI' with `-bzImage' in boot message.
35714
35715 2008-08-17 Robert Millan <rmh@aybabtu.com>
35716
35717 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
35718
35719 2008-08-17 Robert Millan <rmh@aybabtu.com>
35720
35721 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
35722
35723 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
35724 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
35725 (grub_machine_mmap_iterate): New function declaration.
35726 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
35727 structure.
35728 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
35729 macros.
35730
35731 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
35732 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
35733 Move e820 parsing from here ...
35734 * kern/i386/pc/mmap.c: New file.
35735 (grub_machine_mmap_iterate): ... to here.
35736
35737 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
35738 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
35739 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
35740 (grub_available_iterate): Redeclare to return `void', and redeclare
35741 its hook to use grub_uint64_t as addr and size parameters, and rename
35742 to ...
35743 (grub_machine_mmap_iterate): ... this. Update all users.
35744
35745 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
35746 to make it more readable. Rename to ...
35747 (grub_machine_mmap_iterate): ... this.
35748
35749 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
35750 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
35751 (grub_multiboot): Allocate an extra region after the payload, and fill
35752 it with a Multiboot memory map. Adjust a.out loader to calculate size
35753 with the extra space.
35754 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
35755 with the extra space.
35756
35757 2008-08-17 Carles Pina i Estany <carles@pina.cat>
35758
35759 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
35760
35761 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
35762
35763 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
35764 mdate-sh to the list `find' searches for.
35765 * DISTLIST: Regenerated.
35766
35767 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
35768
35769 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
35770 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
35771 genmoddep.awk, gensymlist.sh.in.
35772 (DISTDIRS): Add bus, docs, hook, lib.
35773 * DISTLIST: Regenerated.
35774 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
35775
35776 2008-08-16 Robert Millan <rmh@aybabtu.com>
35777
35778 * disk/raid.c (grub_raid_init): Handle/report errors set by
35779 grub_device_iterate().
35780 * disk/lvm.c (grub_lvm_init): Likewise.
35781
35782 2008-08-15 Bean <bean123ch@gmail.com>
35783
35784 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35785 and datehook.mod.
35786 (datetime_mod_SOURCES): New macro.
35787 (datetime_mod_CFLAGS): Likewise.
35788 (datetime_mod_LDFLAGS): Likewise.
35789 (date_mod_SOURCES): Likewise.
35790 (date_mod_CFLAGS): Likewise.
35791 (date_mod_LDFLAGS): Likewise.
35792 (datehook_mod_SOURCES): Likewise.
35793 (datehook_mod_CFLAGS): Likewise.
35794 (datehook_mod_LDFLAGS): Likewise.
35795
35796 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35797 and datehook.mod.
35798 (datetime_mod_SOURCES): New macro.
35799 (datetime_mod_CFLAGS): Likewise.
35800 (datetime_mod_LDFLAGS): Likewise.
35801 (date_mod_SOURCES): Likewise.
35802 (date_mod_CFLAGS): Likewise.
35803 (date_mod_LDFLAGS): Likewise.
35804 (datehook_mod_SOURCES): Likewise.
35805 (datehook_mod_CFLAGS): Likewise.
35806 (datehook_mod_LDFLAGS): Likewise.
35807
35808 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35809 and datehook.mod.
35810 (datetime_mod_SOURCES): New macro.
35811 (datetime_mod_CFLAGS): Likewise.
35812 (datetime_mod_LDFLAGS): Likewise.
35813 (date_mod_SOURCES): Likewise.
35814 (date_mod_CFLAGS): Likewise.
35815 (date_mod_LDFLAGS): Likewise.
35816 (datehook_mod_SOURCES): Likewise.
35817 (datehook_mod_CFLAGS): Likewise.
35818 (datehook_mod_LDFLAGS): Likewise.
35819
35820 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35821 and datehook.mod.
35822 (datetime_mod_SOURCES): New macro.
35823 (datetime_mod_CFLAGS): Likewise.
35824 (datetime_mod_LDFLAGS): Likewise.
35825 (date_mod_SOURCES): Likewise.
35826 (date_mod_CFLAGS): Likewise.
35827 (date_mod_LDFLAGS): Likewise.
35828 (datehook_mod_SOURCES): Likewise.
35829 (datehook_mod_CFLAGS): Likewise.
35830 (datehook_mod_LDFLAGS): Likewise.
35831
35832 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35833 and datehook.mod.
35834 (datetime_mod_SOURCES): New macro.
35835 (datetime_mod_CFLAGS): Likewise.
35836 (datetime_mod_LDFLAGS): Likewise.
35837 (date_mod_SOURCES): Likewise.
35838 (date_mod_CFLAGS): Likewise.
35839 (date_mod_LDFLAGS): Likewise.
35840 (datehook_mod_SOURCES): Likewise.
35841 (datehook_mod_CFLAGS): Likewise.
35842 (datehook_mod_LDFLAGS): Likewise.
35843
35844 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
35845
35846 * commands/date.c: New file.
35847
35848 * hook/datehook.c: Likewise.
35849
35850 * include/grub/lib/datetime.h: Likewise.
35851
35852 * include/grub/i386/cmos.h: Likewise.
35853
35854 * lib/datetime.c: Likewise.
35855
35856 * lib/i386/datetime.c: Likewise.
35857
35858 * lib/efi/datetime.c: Likewise.
35859
35860 2008-08-14 Robert Millan <rmh@aybabtu.com>
35861
35862 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
35863 (grub_mkelfimage_SOURCES): New variable.
35864 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
35865
35866 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
35867 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
35868 * conf/powerpc-ieee1275.rmk: Likewise.
35869 * conf/i386-ieee1275.rmk: Likewise.
35870
35871 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
35872 * kern/i386/coreboot/init.c: Likewise.
35873
35874 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
35875 with `<grub/cpu/kernel.h>'.
35876 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
35877 to ...
35878 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
35879 * kern/i386/coreboot/startup.S: Likewise.
35880
35881 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
35882 (GRUB_MOD_GAP): Remove.
35883 * include/grub/powerpc/kernel.h: New file.
35884 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
35885 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35886 * include/grub/i386/kernel.h: New file.
35887 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
35888 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
35889 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35890
35891 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
35892 `grub-mkelfimage'.
35893 Use --directory when invoking grub_mkimage.
35894
35895 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
35896 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
35897 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
35898 and GRUB_KERNEL_CPU_PREFIX.
35899
35900 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
35901
35902 * include/grub/err.h (grub_err_printf): New function prototype.
35903 * util/misc.c (grub_err_printf): New function.
35904 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
35905 grub_printf.
35906 * kern/err.c (grub_print_error): Use grub_err_printf.
35907
35908 2008-08-13 Robert Millan <rmh@aybabtu.com>
35909
35910 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
35911
35912 2008-08-13 Robert Millan <rmh@aybabtu.com>
35913
35914 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
35915 boot entry.
35916
35917 2008-08-12 Robert Millan <rmh@aybabtu.com>
35918
35919 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
35920 of the relocation code from here ...
35921 (grub_multiboot): ... to here.
35922 (forward_relocator, backward_relocator): Move from here ...
35923 * kern/i386/loader.S (grub_multiboot_forward_relocator)
35924 (grub_multiboot_backward_relocator): ... to here.
35925 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
35926 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
35927 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
35928 (grub_multiboot_forward_relocator_end)
35929 (grub_multiboot_backward_relocator)
35930 (grub_multiboot_backward_relocator_end): New variables.
35931
35932 2008-08-12 Bean <bean123ch@gmail.com>
35933
35934 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
35935
35936 2008-08-11 Robert Millan <rmh@aybabtu.com>
35937
35938 * kern/i386/linuxbios/startup.S: Move from here ...
35939 * kern/i386/coreboot/startup.S: ... to here.
35940
35941 * kern/i386/linuxbios/init.c: Move from here ...
35942 * kern/i386/coreboot/init.c: ... to here.
35943
35944 * kern/i386/linuxbios/table.c: Move from here ...
35945 * kern/i386/coreboot/mmap.c: ... to here.
35946
35947 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
35948
35949 2008-08-11 Robert Millan <rmh@aybabtu.com>
35950
35951 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
35952 errors. Leave it to the upper layer to handle them.
35953
35954 2008-08-09 Christian Franke <franke@computer.org>
35955
35956 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
35957 * conf/common.rmk: Install `grub-pe2elf' only if requested.
35958 Install `grub.d/10_windows' only on Cygwin.
35959 * configure.ac: Add subst of `target_os'.
35960 Check `target_os' also before setting TARGET_OBJ2ELF.
35961 Add `--enable-grub-pe2elf'.
35962
35963 2008-08-08 Robert Millan <rmh@aybabtu.com>
35964
35965 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35966 (grub_last_time): Change type to grub_uint64_t.
35967 (grub_disk_open): Migrate code from to using grub_get_time_ms().
35968 (grub_disk_close): Likewise.
35969
35970 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35971 (run_menu): Migrate code from to using grub_get_time_ms().
35972
35973 * util/misc.c (grub_get_time_ms): New function.
35974
35975 2008-08-08 Marco Gerards <marco@gnu.org>
35976
35977 * disk/ata.c (grub_ata_regget): Change return type to
35978 `grub_uint8_t'.
35979 (grub_ata_regget2): Likewise.
35980 (grub_ata_wait_status): New function.
35981 (grub_ata_wait_busy): Removed function, updated all users to use
35982 `grub_ata_wait_status'.
35983 (grub_ata_wait_drq): Likewise.
35984 (grub_ata_cmd): New function.
35985 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
35986 error handling.
35987 (grub_ata_pio_write): Add error handling.
35988 (grub_atapi_identify): Likewise.
35989 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
35990 handling.
35991 (grub_ata_identify): Use `grub_ata_cmd' and improve error
35992 handling. Actually use the detected registers. Reorder the
35993 detection logic such that it is easier to read.
35994 (grub_ata_pciinit): Do not assign the same ID to each controller.
35995 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
35996 handling.
35997 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
35998
35999 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
36000
36001 2008-08-08 Marco Gerards <marco@gnu.org>
36002
36003 * NEWS: Update.
36004
36005 2008-08-07 Bean <bean123ch@gmail.com>
36006
36007 * include/grub/x86_64/pci.h: New file.
36008
36009 2008-08-07 Christian Franke <franke@computer.org>
36010
36011 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
36012 (TIMER2_GATE): Likewise.
36013 (grub_pit_wait): Add enable/disable of the timer2 gate
36014 bit of port 0x61. This fixes a possible infinite loop.
36015
36016 2008-08-07 Bean <bean123ch@gmail.com>
36017
36018 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
36019 kern/i386/tsc.c and kern/i386/pit.c.
36020
36021 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
36022 x86_64 platform.
36023
36024 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
36025 <grub/i386/tsc.h>.
36026
36027 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
36028
36029 2008-08-07 Bean <bean123ch@gmail.com>
36030
36031 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
36032
36033 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
36034
36035 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
36036 multiple inclusion. Add #include <grub/types.h>.
36037
36038 2008-08-06 Christian Franke <franke@computer.org>
36039
36040 * conf/common.rmk: Build and install `10_windows'.
36041 * util/grub.d/10_windows.in: New script.
36042
36043 2008-08-06 Pavel Roskin <proski@gnu.org>
36044
36045 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
36046
36047 2008-08-06 Robert Millan <rmh@aybabtu.com>
36048
36049 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
36050 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
36051
36052 2008-08-06 Bean <bean123ch@gmail.com>
36053
36054 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
36055 (grub_pxefs_fs_int): Remove dummy definition.
36056 (grub_pxefs_open): Use data->block_size to store the current block
36057 size setting.
36058 (grub_pxefs_read): Use block size stored in data->block_size. As the
36059 value of grub_pxe_blksize can be changed after the file is opened.
36060
36061 2008-08-06 Bean <bean123ch@gmail.com>
36062
36063 * fs/i386/pc/pxe.c (curr_file): new variable.
36064 (grub_pxefs_open): Simply the handling of pxe file system. Don't
36065 require the dummy internal file system anymore.
36066 (grub_pxefs_read): Removed.
36067 (grub_pxefs_close): Likewise.
36068 (grub_pxefs_fs_int): Likewise.
36069 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
36070 connection when we switch file.
36071 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
36072
36073 2008-08-06 Robert Millan <rmh@aybabtu.com>
36074
36075 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
36076 `halt.mod'.
36077 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
36078 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
36079
36080 * kern/i386/halt.c: New file.
36081 * kern/i386/reboot.c: Likewise.
36082 * include/grub/i386/reboot.h: Likewise.
36083 * include/grub/i386/halt.h: Likewise.
36084
36085 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
36086 Include `<grub/cpu/halt.h>'.
36087 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
36088 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
36089
36090 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
36091 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
36092 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
36093 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
36094 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
36095 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
36096 from here ...
36097 * include/grub/i386/at_keyboard.h: ... to here.
36098
36099 2008-08-05 Robert Millan <rmh@aybabtu.com>
36100
36101 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
36102 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
36103 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
36104 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36105 `kern/generic/millisleep.c'.
36106
36107 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
36108 instead of grub_get_rtc().
36109 (grub_tsc_init): Initialize `tsc_boot_time'.
36110
36111 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
36112 (grub_machine_init): Use grub_tsc_init() rather than
36113 installing an RTC-based handler via grub_install_get_time_ms().
36114
36115 * kern/i386/pit.c: New file.
36116 * include/grub/i386/pit.h: Likewise.
36117
36118 2008-08-05 Bean <bean123ch@gmail.com>
36119
36120 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
36121
36122 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
36123 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
36124 (pxe_mod_SOURCES): New macro.
36125 (pxe_mod_CFLAGS): Likewise.
36126 (pxe_mod_LDFLAGS): Likewise.
36127 (pxecmd_mod_SOURCES): Likewise.
36128 (pxecmd_mod_CFLAGS): Likewise.
36129 (pxecmd_mod_LDFLAGS): Likewise.
36130
36131 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
36132 (grub_pxe_call): Likewise.
36133
36134 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
36135
36136 * commands/i386/pc/pxecmd.c: New file.
36137
36138 * fs/i386/pc/pxe.c: Likewise.
36139
36140 * include/grub/i386/pc/pxe.h: Likewise.
36141
36142 2008-08-05 Bean <bean123ch@gmail.com>
36143
36144 * util/console.c (grub_console_cur_color): New variable.
36145 (grub_console_standard_color): Likewise.
36146 (grub_console_normal_color): Likewise.
36147 (grub_console_highlight_color): Likewise.
36148 (color_map): Likewise.
36149 (use_color): Likewise.
36150 (NUM_COLORS): New macro.
36151 (grub_ncurses_setcolorstate): Handle color properly.
36152 (grub_ncurses_setcolor): Don't change color here, just remember the
36153 settings, color will be set in grub_ncurses_setcolorstate.
36154 (grub_ncurses_getcolor): New function.
36155 (grub_ncurses_init): Initialize color pairs.
36156 (grub_ncurses_term): New member grub_ncurses_getcolor.
36157
36158 2008-08-05 Colin D Bennett <colin@gibibit.com>
36159
36160 High resolution timer support. Implemented for x86 CPUs using TSC.
36161 Extracted generic grub_millisleep() so it's linked in only as needed.
36162 This requires a Pentium compatible CPU; if the RDTSC instruction is
36163 not supported, then it falls back on the generic grub_get_time_ms()
36164 implementation that uses the machine's RTC.
36165
36166 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
36167 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36168 `kern/generic/millisleep.c'.
36169
36170 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
36171 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
36172
36173 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
36174 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
36175
36176 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36177
36178 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
36179 `kern/generic/millisleep.c'.
36180
36181 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36182
36183 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
36184
36185 * kern/generic/rtc_get_time_ms.c: New file.
36186
36187 * kern/generic/millisleep.c: New file.
36188
36189 * kern/misc.c: Don't include
36190 <kern/time.h> anymore.
36191 (grub_millisleep_generic): Removed.
36192
36193 * commands/sleep.c (grub_interruptible_millisleep): Uses
36194 grub_get_time_ms() instead of grub_get_rtc().
36195
36196 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
36197 function.
36198 (grub_cpu_is_cpuid_supported): New inline function.
36199 (grub_cpu_is_tsc_supported): New inline function.
36200 (grub_tsc_init): New function prototype.
36201 (grub_tsc_get_time_ms): New function prototype.
36202
36203 * kern/i386/tsc.c (grub_get_time_ms): New file.
36204
36205 * include/grub/time.h: Include <grub/types.h.
36206 (grub_millisleep_generic): Removed.
36207 (grub_get_time_ms): New prototype.
36208 (grub_install_get_time_ms): New prototype.
36209 (grub_rtc_get_time_ms): New prototype.
36210
36211 * kern/time.c (grub_get_time_ms): New function.
36212 (grub_install_get_time_ms): New function.
36213
36214 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
36215 <grub/time.h> anymore.
36216 (grub_millisleep): Removed.
36217 (grub_machine_init): Call grub_tsc_init.
36218
36219 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
36220 get_time_ms() implementation.
36221
36222 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
36223 (ieee1275_get_time_ms): New function.
36224 (grub_machine_init): Install get_time_ms() implementation.
36225
36226 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
36227 (grub_machine_init): Call grub_tsc_init().
36228 (grub_millisleep): Removed.
36229
36230 * kern/ieee1275/init.c (grub_millisleep): Removed.
36231 (grub_machine_init): Install ieee1275_get_time_ms()
36232 implementation.
36233 (ieee1275_get_time_ms): New function.
36234 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
36235 real work.
36236
36237 2008-08-05 Marco Gerards <marco@gnu.org>
36238
36239 * disk/ata.c: Include <grub/pci.h>.
36240 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
36241 (grub_ata_initialize): Rewritten.
36242 (grub_ata_device_initialize): New function.
36243
36244 2008-08-04 Pavel Roskin <proski@gnu.org>
36245
36246 * kern/main.c: Include grub/mm.h.
36247
36248 2008-08-04 Robert Millan <rmh@aybabtu.com>
36249
36250 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
36251 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
36252 corruption problem).
36253
36254 2008-08-04 Robert Millan <rmh@aybabtu.com>
36255
36256 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
36257 warnings introduced in my last commit.
36258
36259 2008-08-03 Robert Millan <rmh@aybabtu.com>
36260
36261 Make PCI available on all i386 architectures.
36262
36263 * include/grub/i386/pc/pci.h: Move from here ...
36264 * include/grub/i386/pci.h: ... to here.
36265
36266 * include/grub/i386/pc/pci.h: Remove.
36267 * include/grub/i386/efi/pci.h: Remove.
36268 * include/grub/x86_64/efi/pci.h: Remove.
36269
36270 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
36271 `<grub/cpu/pci.h>'.
36272
36273 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
36274 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
36275 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
36276
36277 * conf/i386-ieee1275.rmk: Likewise.
36278
36279 2008-08-03 Robert Millan <rmh@aybabtu.com>
36280
36281 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
36282 (grub_console_setcursor): Make it possible to set cursor off.
36283
36284 2008-08-03 Robert Millan <rmh@aybabtu.com>
36285
36286 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
36287 of modules instead of assuming which platform provides what.
36288 * util/update-grub.in: Likewise.
36289
36290 2008-08-03 Robert Millan <rmh@aybabtu.com>
36291
36292 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
36293 instead of `grub_install_dos_part' to determine whether a drive needs
36294 to be prepended to prefix (`grub_install_dos_part' is not reliable,
36295 because it can be overridden when loading GRUB via Multiboot).
36296
36297 2008-08-02 Robert Millan <rmh@aybabtu.com>
36298
36299 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
36300
36301 2008-08-02 Robert Millan <rmh@aybabtu.com>
36302
36303 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
36304 of informational grub_dprintf() calls.
36305
36306 2008-08-02 Robert Millan <rmh@aybabtu.com>
36307
36308 * disk/memdisk.c (memdisk_size): Don't initialize.
36309 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
36310
36311 * include/grub/i386/pc/kernel.h
36312 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
36313 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
36314 (grub_memdisk_image_size, grub_arch_memdisk_addr)
36315 (grub_arch_memdisk_size): Remove.
36316
36317 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
36318 field (was only used to transfer a constant). Add `type' field to
36319 support multiple module types.
36320 (grub_module_iterate): New function.
36321
36322 * kern/device.c (grub_device_open): Do not hide error messages
36323 when grub_disk_open() fails. Use grub_print_error() instead.
36324
36325 * kern/i386/pc/init.c (grub_arch_modules_addr)
36326 (grub_arch_memdisk_size): Remove functions.
36327 (grub_arch_modules_addr): Return the module address in high memory
36328 (now that it isn't copied anymore).
36329
36330 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
36331 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
36332 decompression routine (grub_total_module_size already includes that
36333 now). Don't copy modules back to low memory.
36334
36335 * kern/main.c: Include `<grub/mm.h>'.
36336 (grub_load_modules): Split out (and use) ...
36337 (grub_module_iterate): ... this function, which iterates through
36338 module objects and runs a hook.
36339 Comment out grub_mm_init_region() call, as it would cause non-ELF
36340 modules to be overwritten.
36341
36342 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
36343 the memdisk image in its own region, make it part of the module list.
36344 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
36345 (main): Parse --memdisk|-m option, and pass user-provided path as
36346 parameter to generate_image().
36347 (add_segments): Pass `memdisk_path' down to load_modules().
36348 (load_modules): Embed memdisk image in module section when requested.
36349 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
36350 `header.type' instead of `header.offset'.
36351
36352 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
36353 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
36354 (memdisk_mod_LDFLAGS): New variables.
36355 * conf/i386-coreboot.rmk: Likewise.
36356 * conf/i386-ieee1275.rmk: Likewise.
36357
36358 2008-08-02 Robert Millan <rmh@aybabtu.com>
36359
36360 * loader/i386/pc/multiboot.c (playground, forward_relocator)
36361 (backward_relocator): New variables. Used to allocate and relocate
36362 the payload, respectively.
36363 (grub_multiboot_load_elf32): Load into heap instead of requested
36364 address, install the appropriate relocator code in each bound of
36365 the payload, and set the entry point such that
36366 grub_multiboot_real_boot() will jump to one of them.
36367
36368 * kern/i386/loader.S (grub_multiboot_payload_size)
36369 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36370 (grub_multiboot_payload_entry_offset): New variables.
36371 (grub_multiboot_real_boot): Set cpu context to what the relocator
36372 expects, and jump to the relocator instead of the payload.
36373
36374 * include/grub/i386/loader.h (grub_multiboot_payload_size)
36375 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36376 (grub_multiboot_payload_entry_offset): Export.
36377
36378 2008-08-01 Bean <bean123ch@gmail.com>
36379
36380 * normal/menu_entry.c (editor_getline): Don't return the original
36381 string as result, as it will be released by lexer once it has done
36382 using it.
36383
36384 2008-08-01 Robert Millan <rmh@aybabtu.com>
36385
36386 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
36387 within menuentries, not before them.
36388 util/grub.d/10_hurd.in: Likewise.
36389
36390 2008-08-01 Bean <bean123ch@gmail.com>
36391
36392 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
36393 (bufio_mod_SOURCES): New macro.
36394 (bufio_mod_CFLAGS): Likewise.
36395 (bufio_mod_LDFLAGS): Likewise.
36396
36397 * include/grub/bufio.h: New file.
36398
36399 * io/bufio.c: Likewise.
36400
36401 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
36402 (grub_video_reader_png): Use grub_buffile_open to open file.
36403
36404 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
36405 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
36406
36407 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
36408 (grub_video_reader_tga): Use grub_buffile_open to open file.
36409
36410 * font/manager.c: Include <grub/bufio.h>.
36411 (add_font): Use grub_buffile_open to open file.
36412
36413 2008-07-31 Robert Millan <rmh@aybabtu.com>
36414
36415 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
36416 ELF segments, use a macro for arbitrarily accessing any of them instead
36417 of preparing a pointer that allows access to one at a time.
36418 (grub_multiboot_load_elf64): Likewise.
36419
36420 2008-07-31 Bean <bean123ch@gmail.com>
36421
36422 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
36423 GRUB_KERNEL_MACHINE_DATA_END.
36424
36425 2008-07-30 Robert Millan <rmh@aybabtu.com>
36426
36427 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
36428 Increase from 0x50 to 0x60.
36429 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
36430 use UUIDs to identify the root drive for them. If that's not
36431 possible, abort.
36432 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
36433 check, for cross-disk installs.
36434
36435 2008-07-30 Robert Millan <rmh@aybabtu.com>
36436
36437 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
36438 is non-empty, use it to set the `prefix' environment variable instead
36439 of the usual approach.
36440 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
36441 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
36442 environment variable instead of dummy make_install_device().
36443
36444 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
36445 (start): Insert a data section, with `grub_prefix' variable.
36446 * kern/i386/linuxbios/startup.S: Likewise.
36447
36448 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
36449 New variable reference.
36450 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
36451 New macro. Defines offset of `grub_prefix' within startup.S (relative
36452 to `start').
36453 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
36454 section within startup.S (relative to `start').
36455 * include/grub/i386/coreboot/kernel.h: Likewise.
36456
36457 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
36458 Overwrite grub_prefix with its contents, at the beginning of the
36459 first segment.
36460 (main): Understand -p|--prefix.
36461
36462 2008-07-30 Robert Millan <rmh@aybabtu.com>
36463
36464 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
36465
36466 2008-07-30 Robert Millan <rmh@aybabtu.com>
36467
36468 * term/i386/pc/vga_text.c (grub_console_cls): Use
36469 grub_console_gotoxy() to go back to beginning of the screen.
36470 Found by Patrick Georgi <patrick.georgi@coresystems.de>
36471
36472 2008-07-29 Christian Franke <franke@computer.org>
36473
36474 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
36475 Add conversion of emulated mount points on Cygwin.
36476
36477 2008-07-29 Christian Franke <franke@computer.org>
36478
36479 * util/update-grub.in: Add a check for admin
36480 group on Cygwin.
36481 Remove old `grub.cfg.new' before creation.
36482 Add `-f' to `mv' to handle the different filesystem
36483 semantics of Windows.
36484
36485 2008-07-29 Bean <bean123ch@gmail.com>
36486
36487 * normal/main.c (get_line): Fix buffer overflow bug.
36488
36489 2008-07-28 Robert Millan <rmh@aybabtu.com>
36490
36491 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
36492 (struct grub_apple_header): New struct. Describes the layout of
36493 the partmap header.
36494 (apple_partition_map_iterate): Check the header magic as well as the
36495 partition magic (which was already being checked).
36496
36497 2008-07-28 Pavel Roskin <proski@gnu.org>
36498
36499 * genmk.rb: Add a warning to the beginning of the output that
36500 it's a generated file and should not be edited.
36501
36502 2008-07-28 Robert Millan <rmh@aybabtu.com>
36503
36504 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36505 with the same number are found, just use issue a warning with
36506 grub_dprintf(), as this error has been reported to be non-fatal.
36507
36508 2008-07-27 Robert Millan <rmh@aybabtu.com>
36509
36510 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
36511 information.
36512
36513 2008-07-27 Bean <bean123ch@gmail.com>
36514
36515 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
36516 (grub_fat_find_dir): Ignore case when comparing filename.
36517
36518 2008-07-27 Bean <bean123ch@gmail.com>
36519
36520 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
36521 smallino, as it's more descriptive, and i8count can be confused with
36522 the other field count.
36523 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
36524 inode type.
36525
36526 2008-07-27 Bean <bean123ch@gmail.com>
36527
36528 * commands/crc.c: New file.
36529
36530 * lib/crc.c: Likewise.
36531
36532 * include/grub/lib/crc.h: Likewise.
36533
36534 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
36535
36536 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
36537 (hexdump): Move this function to ...
36538
36539 * lib/hexdump.c: ... here.
36540
36541 * include/grub/hexdump.h: Renamed to ...
36542
36543 * include/grub/lib/hexdump.h: ... this.
36544
36545 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
36546
36547 * util/grub-editenv.c: Likewise.
36548
36549 * include/envblk.h: Renamed to ...
36550
36551 * include/lib/envblk.h: ... this.
36552
36553 * util/envblk.c: Renamed to ...
36554
36555 * lib/envblk.c: ... this.
36556
36557 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
36558 lib/hexdump.c.
36559 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
36560 (pkglib_MODULES): Add crc.mod.
36561 (hexdump_mod_SOURCES): Add lib/hexdump.c.
36562 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
36563 (crc_mod_SOURCES): New macro.
36564 (crc_mod_CFLAGS): Likewise.
36565 (crc_mod_LDFLAGS): Likewise.
36566
36567 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
36568
36569 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36570
36571 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36572
36573 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36574
36575 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36576
36577 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
36578
36579 * commands/help.c: Include <grub/term.h>.
36580 (TERM_WIDTH): Removed. Updated all users.
36581
36582 2008-07-27 Pavel Roskin <proski@gnu.org>
36583
36584 * util/getroot.c (find_root_device): Rephrase a comment to avoid
36585 spurious warnings about a comment within a comment.
36586
36587 2008-07-25 Robert Millan <rmh@aybabtu.com>
36588
36589 * util/getroot.c (find_root_device): Skip devices that match
36590 /dev/dm-[0-9]. This lets the real device be found for any type of
36591 abstraction (LVM, EVMS, RAID..).
36592 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
36593 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
36594 device is found first, find_root_device() will now skip it.
36595
36596 2008-07-24 Pavel Roskin <proski@gnu.org>
36597
36598 * include/grub/types.h: Use __builtin_bswap32() and
36599 __builtin_bswap64() with gcc 4.3 and newer.
36600
36601 2008-07-24 Christian Franke <franke@computer.org>
36602
36603 * util/i386/pc/grub-install.in: If `--debug' is specified,
36604 pass `--verbose' to grub-setup.
36605 Abort script if make_system_path_relative_to_its_root() fails.
36606
36607 2008-07-24 Bean <bean123ch@gmail.com>
36608
36609 * configure.ac: Fixed a bug caused by the previous cygwin patch,
36610 variable `target_platform' should be `platform'.
36611
36612 2008-07-24 Bean <bean123ch@gmail.com>
36613
36614 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
36615 (grub_png_init_fixed_block): New function.
36616 (grub_png_decode_image_data): Handle fixed huffman code compression.
36617
36618 2008-07-24 Bean <bean123ch@gmail.com>
36619
36620 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
36621 (grub_pe2elf_SOURCES): New macro.
36622 (CLEANFILES): Add grub-pe2elf.
36623
36624 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
36625 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
36626 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
36627 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
36628 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
36629 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
36630 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
36631 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
36632 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
36633 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
36634 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
36635 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
36636 (GRUB_PE32_DT_FUNCTION): Likewise.
36637 (GRUB_PE32_REL_I386_DIR32): Likewise.
36638 (GRUB_PE32_REL_I386_REL32): Likewise.
36639 (grub_pe32_symbol): New structure.
36640 (grub_pe32_reloc): Likewise.
36641
36642 * util/grub-pe2elf.c: New file.
36643
36644 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
36645 start symbol in non pc platform.
36646
36647 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
36648
36649 The following patches are from Christian Franke.
36650
36651 * include/grub/dl.h: Remove .previous, gas supports this only
36652 for ELF format.
36653
36654 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
36655 Remove .type, gas supports this only for ELF format.
36656
36657 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
36658 nullbytes in symbol table. This fixes an infinite loop if table is
36659 zero filled.
36660
36661 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
36662 TARGET_IMG_LDFLAGS and EXEEXT.
36663
36664 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
36665 TARGET_IMG_LDFLAGS_AC.
36666 (grub_CHECK_STACK_ARG_PROBE): New function.
36667
36668 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
36669
36670 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
36671
36672 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
36673 to set TARGET_IMG_LD* accordingly.
36674 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
36675 Add call to grub_CHECK_STACK_ARG_PROBE.
36676 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
36677
36678 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
36679
36680 * genmk.rb: Add EXEEXT to CLEANFILES.
36681
36682 2008-07-23 Robert Millan <rmh@aybabtu.com>
36683
36684 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
36685 define the codes for arrows and lines used for the menu).
36686 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
36687 as well.
36688
36689 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
36690 fonts, because the latter are too slow.
36691
36692 2008-07-21 Bean <bean123ch@gmail.com>
36693
36694 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
36695 a20. Run keyboard test last, as it will cause macbook to halt.
36696
36697 2008-07-18 Pavel Roskin <proski@gnu.org>
36698
36699 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
36700 load foreign architecture modules correctly anyway. Keep
36701 support for loading host architecture modules, whether we
36702 compile them or not.
36703
36704 2008-07-17 Pavel Roskin <proski@gnu.org>
36705
36706 * configure.ac: Use -m32 or -m64 regardless of whether we had to
36707 change target_cpu. The compiler default can mismatch target_cpu
36708 in any case.
36709
36710 * disk/efi/efidisk.c: Fix format warnings on x86_64.
36711 * kern/efi/efi.c: Likewise.
36712
36713 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
36714 target compiler is functional.
36715 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
36716 are set up.
36717
36718 * configure.ac: Default to efi platform for x86_64-apple. Allow
36719 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
36720 adjustments from the rest, only do them if target is not
36721 explicitly given. Merge other adjustments with the final sanity
36722 check. Remove an extraneous check for supported CPU. Be
36723 specific which CPU and which platform is not supported.
36724
36725 * configure.ac: Default to pc platform for x86_64.
36726
36727 2008-07-17 Robert Millan <rmh@aybabtu.com>
36728
36729 Partial LinuxBIOS -> Coreboot rename.
36730
36731 * conf/i386-linuxbios.rmk: Renamed to ...
36732 * conf/i386-coreboot.rmk: ... this.
36733 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
36734 * configure.ac: Accept "coreboot" as input platform (but maintain
36735 compatibility with "linuxbios").
36736 * include/grub/i386/linuxbios: Renamed to ...
36737 * include/grub/i386/coreboot: ... this.
36738
36739 2008-07-17 Bean <bean123ch@gmail.com>
36740
36741 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
36742 (appleldr_mod_SOURCE): New variable.
36743 (appleldr_mod_CFLAGS): Likewise.
36744 (appleldr_mod_LDFLAGS): Likewise.
36745 (pci_mod_SOURCES): Likewise.
36746 (pci_mod_CFLAGS): Likewise.
36747 (pci_mod_LDFLAGS): Likewise.
36748 (lspci_mod_SOURCES): Likewise.
36749 (lspci_mod_CFLAGS): Likewise.
36750 (lspci_mod_LDFLAGS): Likewise.
36751
36752 * conf/x86_64-efi.rmk: New file.
36753
36754 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
36755 macro.
36756 (grub_efidisk_write): Likewise.
36757
36758 * include/efi/api.h (efi_call_0): New macro.
36759 (efi_call_1): Likewise.
36760 (efi_call_2): Likewise.
36761 (efi_call_3): Likewise.
36762 (efi_call_4): Likewise.
36763 (efi_call_5): Likewise.
36764 (efi_call_6): Likewise.
36765
36766 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
36767 grub_rescue_cmd_chainloader.
36768
36769 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
36770 (grub_pe32_optional_header): Change some fields based on i386 or
36771 x86_64 platform.
36772 (GRUB_PE32_PE32_MAGIC): Likewise.
36773
36774 * include/grub/efi/uga_draw.h: New file.
36775
36776 * include/grub/elf.h (STN_ABS): New constant.
36777 (R_X86_64_NONE): Relocation constant for x86_64.
36778 (R_X86_64_64): Likewise.
36779 (R_X86_64_PC32): Likewise.
36780 (R_X86_64_GOT32): Likewise.
36781 (R_X86_64_PLT32): Likewise.
36782 (R_X86_64_COPY): Likewise.
36783 (R_X86_64_GLOB_DAT): Likewise.
36784 (R_X86_64_JUMP_SLOT): Likewise.
36785 (R_X86_64_RELATIVE): Likewise.
36786 (R_X86_64_GOTPCREL): Likewise.
36787 (R_X86_64_32): Likewise.
36788 (R_X86_64_32S): Likewise.
36789 (R_X86_64_16): Likewise.
36790 (R_X86_64_PC16): Likewise.
36791 (R_X86_64_8): Likewise.
36792 (R_X86_64_PC8): Likewise.
36793
36794 * include/grub/i386/efi/pci.h: New file.
36795
36796 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
36797 Change it value based on platform.
36798 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
36799 (GRUB_E820_RAM): Likewise.
36800 (GRUB_E820_RESERVED): Likewise.
36801 (GRUB_E820_ACPI): Likewise.
36802 (GRUB_E820_NVS): Likewise.
36803 (GRUB_E820_EXEC_CODE): Likewise.
36804 (GRUB_E820_MAX_ENTRY): Likewise.
36805 (grub_e820_mmap): New structure.
36806 (linux_kernel_header): Change the efi field according to different
36807 kernel version, also field from linux_kernel_header.
36808
36809 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
36810
36811 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
36812 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
36813 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
36814 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
36815 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
36816 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
36817 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
36818 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
36819 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
36820 (GRUB_PCI_ADDR_IO_MASK): Likewise.
36821
36822 * include/grub/x86_64/efi/kernel.h: New file.
36823
36824 * include/grub/x86_64/efi/loader.h: Likewise.
36825
36826 * include/grub/x86_64/efi/machine.h: Likewise.
36827
36828 * include/grub/x86_64/efi/pci.h: Likewise.
36829
36830 * include/grub/x86_64/efi/time.h: Likewise.
36831
36832 * include/grub/x86_64/linux.h: Likewise.
36833
36834 * include/grub/x86_64/setjmp.h: Likewise.
36835
36836 * include/grub/x86_64/time.h: Likewise.
36837
36838 * include/grub/x86_64/types.h: Likewise.
36839
36840 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
36841 GRUB_TARGET_SIZEOF_VOID_P.
36842
36843 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
36844 (grub_efi_locate_handle): Likewise.
36845 (grub_efi_open_protocol): Likewise.
36846 (grub_efi_set_text_mode): Likewise.
36847 (grub_efi_stall): Likewise.
36848 (grub_exit): Likewise.
36849 (grub_reboot): Likewise.
36850 (grub_halt): Likewise.
36851 (grub_efi_exit_boot_services): Likewise.
36852 (grub_get_rtc): Likewise.
36853
36854 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
36855 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
36856 (grub_efi_allocate_pages): Wrap efi calls.
36857 (grub_efi_free_pages): Wrap efi calls.
36858 (grub_efi_get_memory_map): Wrap efi calls.
36859
36860 * kern/x86_64/dl.c: New file.
36861
36862 * kern/x86_64/efi/callwrap.S: Likewise.
36863
36864 * kern/x86_64/efi/startup.S: Likewise.
36865
36866 * loader/efi/appleloader.c: Likewise.
36867
36868 * loader/efi/chainloader.c (cmdline): New variable.
36869 (grub_chainloader_unload): Wrap efi calls.
36870 (grub_chainloader_boot): Likewise.
36871 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
36872 command line.
36873
36874 * loader/efi/chainloader_normal.c (chainloader_command):
36875 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
36876 command line.
36877
36878 * loader/i386/efi/linux.c (allocate_pages): Change allocation
36879 method.
36880 (grub_e820_add_region): New function.
36881 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
36882 booting.
36883 (grub_find_video_card): New function.
36884 (grub_linux_setup_video): New function.
36885 (grub_rescue_cmd_linux): Probe for video information.
36886
36887 * normal/x86_64/setjmp.S: New file.
36888
36889 * term/efi/console.c (map_char): New function.
36890 (grub_console_putchar): Map unicode char.
36891 (grub_console_checkkey): Wrap efi calls.
36892 (grub_console_getkey): Likewise.
36893 (grub_console_getwh): Likewise.
36894 (grub_console_gotoxy): Likewise.
36895 (grub_console_cls): Likewise.
36896 (grub_console_setcolorstate): Likewise.
36897 (grub_console_setcursor): Likewise.
36898
36899 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
36900
36901 2008-07-16 Pavel Roskin <proski@gnu.org>
36902
36903 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
36904 format strings.
36905
36906 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
36907 pointer, not an integer. This fixes a warning and prevents
36908 precision loss on 64-bit systems.
36909 (relocate_addresses): Remove unneeded cast.
36910
36911 2008-07-15 Pavel Roskin <proski@gnu.org>
36912
36913 * kern/i386/ieee1275/init.c: Include grub/cache.h.
36914
36915 * term/ieee1275/ofconsole.c: Disable code unused on i386.
36916
36917 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
36918 Fix comparison between signed and unsigned.
36919
36920 * include/grub/i386/ieee1275/console.h: Declare
36921 grub_console_init() and grub_console_fini().
36922
36923 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
36924 It's empty and unused.
36925
36926 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
36927 beginning to avoid warnings with some compilers.
36928
36929 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
36930 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
36931
36932 2008-07-14 Pavel Roskin <proski@gnu.org>
36933
36934 * kern/env.c (grub_register_variable_hook): Don't copy empty
36935 string, it leaks memory. Pass "" to grub_env_set(), it should
36936 handle constant strings.
36937
36938 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
36939 * commands/cmp.c (grub_cmd_cmp): Likewise.
36940 * kern/dl.c (grub_dl_flush_cache): Likewise.
36941 (grub_dl_load_core): Likewise.
36942 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
36943 (grub_elf64_load_phdrs): Likewise.
36944
36945 2008-07-13 Pavel Roskin <proski@gnu.org>
36946
36947 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
36948 between signed and unsigned.
36949 (LzmaEnc_Finish): Fix warning about an unused parameter.
36950
36951 2008-07-13 Bean <bean123ch@gmail.com>
36952
36953 * Makefile.in (enable_lzo): New rule.
36954
36955 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
36956
36957 * configure.ac (ENABLE_LZO): New option --enable-lzo.
36958
36959 * boot/i386/pc/lnxboot.S: #include <config.h>.
36960
36961 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
36962 its value according to the compression algorithm used, lzo or lzma.
36963
36964 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
36965 compression algorithm according to configure macro.
36966
36967 * kern/i386/pc/startup.S (codestart): Likewise.
36968
36969 * kern/i386/pc/lzma_decode.S: New file.
36970
36971 * include/grub/lib/LzFind.h: Likewise.
36972
36973 * include/grub/lib/LzHash.h: Likewise.
36974
36975 * include/grub/lib/LzmaDec.h: Likewise.
36976
36977 * include/grub/lib/LzmaEnc.h: Likewise.
36978
36979 * include/grub/lib/LzmaTypes.h: Likewise.
36980
36981 * lib/LzFind.c: Likewise.
36982
36983 * lib/LzmaDec.c: Likewise.
36984
36985 * lib/LzmaEnc.c: Likewise.
36986
36987 2008-07-13 Bean <bean123ch@gmail.com>
36988
36989 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
36990 (grub_ext4_extent_header): New structure.
36991 (grub_ext4_extent): Likewise.
36992 (grub_ext4_extent_idx): Likewise.
36993 (grub_ext4_find_leaf): New function.
36994 (grub_ext2_read_block): Handle extents.
36995
36996 2008-07-12 Robert Millan <rmh@aybabtu.com>
36997
36998 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
36999
37000 2008-07-11 Robert Millan <rmh@aybabtu.com>
37001
37002 * util/grub.d/40_custom.in: New file. Example on how to add custom
37003 entries to /etc/grub.d.
37004 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
37005 40_custom (implicitly, by merging all the grub.d rules).
37006
37007 2008-07-11 Pavel Roskin <proski@gnu.org>
37008
37009 * commands/read.c (grub_getline): Fix invalid memory access.
37010 Don't add newline to the variable value.
37011
37012 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
37013 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
37014 (serial_hw_get_port): Check validity of the port number.
37015 (grub_cmd_serial): Check return value of serial_hw_get_port().
37016
37017 2008-07-07 Pavel Roskin <proski@gnu.org>
37018
37019 * boot/i386/pc/diskboot.S (notification_string): Replace
37020 "Loading kernel" with just "loading". This is shorter, less
37021 confusing and saves a few bytes for possible future changes.
37022
37023 2008-07-05 Pavel Roskin <proski@gnu.org>
37024
37025 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
37026 size for ATAPI devices, they are undefined. Output sector
37027 number in decimal form.
37028
37029 * disk/ata.c: Use named constants for status bits.
37030
37031 2008-07-04 Pavel Roskin <proski@gnu.org>
37032
37033 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
37034 grub_addr_t before casting it to the void pointer to fix a
37035 warning. Non-addressable regions are discarded earlier.
37036 (grub_arch_modules_addr): Cast _end to grub_addr_t.
37037 * kern/i386/linuxbios/table.c: Include grub/misc.h.
37038 (check_signature): Don't shadow table_header.
37039 (grub_linuxbios_table_iterate): Cast numeric constants to
37040 grub_linuxbios_table_header_t.
37041 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
37042 grub_stop().
37043
37044 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
37045 prevent warnings.
37046
37047 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
37048 pointer, which can cause warnings. Support 64-bit addresses.
37049
37050 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
37051 of sizeof(long). This fixes PowerPC image generation on x86_64.
37052
37053 2008-07-04 Robert Millan <rmh@aybabtu.com>
37054
37055 This fixes a performance issue when pc & gpt partmap iterators
37056 didn't abort iteration even after our hook found what it was
37057 looking for (often causing expensive probes of non-existent drives).
37058
37059 Some callers relied on previous buggy behaviour, since they would
37060 raise an error when their own hooks caused early abortion of its
37061 iteration.
37062
37063 * kern/device.c (grub_device_open): Improve error message.
37064 * disk/lvm.c (grub_lvm_open): Likewise.
37065 * disk/raid.c (grub_raid_open): Likewise.
37066
37067 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
37068 when hook requests it, independently of grub_errno.
37069 (pc_partition_map_probe): Do not fail when find_func() caused
37070 early abortion of pc_partition_map_iterate().
37071
37072 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
37073 when hook requests it, independently of grub_errno.
37074 (gpt_partition_map_probe): Do not fail when find_func() caused
37075 early abortion of gpt_partition_map_iterate().
37076
37077 * kern/partition.c (grub_partition_iterate): Abort parent iteration
37078 when hook requests it, independently of grub_errno. Do not fail when
37079 part_map_iterate_hook() caused early abortion of p->iterate().
37080
37081 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
37082 when grub_partition_iterate() returned with non-zero.
37083
37084 2008-07-03 Pavel Roskin <proski@gnu.org>
37085
37086 * disk/ata.c (grub_ata_pio_write): Check status before writing,
37087 like we do in grub_ata_pio_read().
37088 (grub_ata_readwrite): Always write individual sectors. Fix the
37089 sector count for the remainder.
37090 (grub_ata_write): Enable writing to ATA devices. Correctly
37091 report error for ATAPI devices.
37092
37093 2008-07-02 Pavel Roskin <proski@gnu.org>
37094
37095 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
37096 warning.
37097
37098 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
37099 for every read sector, we already increment it for the whole
37100 batch. This fixes reading more than 256 sectors at once.
37101
37102 * util/grub-editenv.c (cmd_info): Cast argument to long
37103 explicitly. ptrdiff_t reduces to int on i386.
37104
37105 * util/grub-editenv.c (main): Be specific which parameter is
37106 missing.
37107
37108 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
37109 (memdisk): Make memdisk_orig_addr a pointer.
37110
37111 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
37112 for file offsets, use grub_off_t instead. Fix printf format
37113 warnings.
37114
37115 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
37116 there. Real unexpected warnings should not drown in the noise
37117 about known problems.
37118
37119 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
37120 grub_disk_addr_t for memory addresses.
37121
37122 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
37123 explicitly to fix a warning.
37124
37125 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
37126
37127 * Makefile.in (MODULE_LDFLAGS): New variable.
37128 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
37129 the linker accepts --build-id=none.
37130 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
37131 MODULE_LDFLAGS.
37132 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
37133
37134 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
37135 those in Linux XFS code. Provide a way to access 64-bit parent
37136 inode.
37137 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
37138 the end of struct grub_xfs_dir_header.
37139
37140 2008-07-02 Bean <bean123ch@gmail.com>
37141
37142 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
37143 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37144 and GRUB_IEEE1275_FLAG_NO_ANSI.
37145
37146 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
37147 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37148 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
37149
37150 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
37151 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
37152
37153 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
37154 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
37155
37156 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
37157 esc sequence on non ANSI terminal.
37158 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
37159
37160 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
37161 beginning of file.
37162
37163 2008-07-02 Bean <bean123ch@gmail.com>
37164
37165 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
37166 (grub_editenv_SOURCES): New variable.
37167 (pkglib_MODULES): Add loadenv.mod.
37168 (loadenv_mod_SOURCES): New variable.
37169 (loadenv_mod_CFLAGS): Likewise.
37170 (loadenv_mod_LDFLAGS): Likewise.
37171
37172 * include/grub/envblk.h: New file.
37173
37174 * util/envblk.c: New file.
37175
37176 * util/grub-editenv.c: New file.
37177
37178 * commands/loadenv.c: New file.
37179
37180 2008-07-01 Pavel Roskin <proski@gnu.org>
37181
37182 * include/multiboot2.h (struct multiboot_tag_module): Use char,
37183 not unsigned char. This fixes warnings and is consistent with
37184 other tags.
37185
37186 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
37187
37188 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
37189
37190 * term/tparm.c (analyze): Always set *popcount.
37191
37192 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
37193 cast to fix a warning.
37194
37195 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
37196 cast to suppress a warning.
37197
37198 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
37199 grub_fshelp_read_file() expects.
37200
37201 * fs/fat.c: Fix UUID calculation on big-endian systems. We
37202 write uuid as a 32-bit value in CPU byte order, so declare and
37203 use it as such.
37204
37205 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
37206 long if the format specifier expects it.
37207 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
37208 * partmap/pc.c (pc_partition_map_iterate): Likewise.
37209 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
37210 long to fix a warning.
37211 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
37212 grub_dprintf() arguments to fix warnings.
37213
37214 2008-06-30 Pavel Roskin <proski@gnu.org>
37215
37216 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
37217 install_bsd_part immediately before core.img is embedded or
37218 modified on disk. This fixes core.img verification if core.img
37219 cannot be embedded.
37220
37221 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
37222 core_path to calculate the blocklist.
37223 Patch from Javier Martín <lordhabbit@gmail.com>
37224
37225 2008-06-29 Robert Millan <rmh@aybabtu.com>
37226
37227 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
37228 block to disk block.
37229 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
37230 Patch from Niels Böhm <bitbucket@arcor.de>
37231
37232 2008-06-29 Robert Millan <rmh@aybabtu.com>
37233
37234 * util/update-grub_lib.in (font_path): Search for fonts in
37235 /boot/grub first, which is more likely to be readable (we aren't
37236 deciding where fonts live, just looking for them).
37237
37238 2008-06-26 Pavel Roskin <proski@gnu.org>
37239
37240 * util/biosdisk.c (read_device_map): Don't leave dead map
37241 entries for devices failing stat() check.
37242
37243 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
37244 core_path_dev for the core.img path on the target device.
37245
37246 2008-06-26 Robert Millan <rmh@aybabtu.com>
37247
37248 * disk/fs_uuid.c: New file.
37249 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
37250 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
37251 (fs_uuid_mod_LDFLAGS): New variables.
37252 * include/grub/disk.h (grub_disk_dev_id): Add
37253 `GRUB_DISK_DEVICE_UUID_ID'.
37254 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
37255 implement iterate().
37256
37257 2008-06-26 Robert Millan <rmh@aybabtu.com>
37258
37259 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
37260 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
37261 Linux image includes no initrd.
37262
37263 2008-06-21 Javier Martín <lordhabbit@gmail.com>
37264
37265 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
37266 call to resolve the core image location that effectively appended the
37267 name twice.
37268
37269 2008-06-21 Robert Millan <rmh@aybabtu.com>
37270
37271 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
37272 call from here ...
37273
37274 * util/grub.d/10_hurd.in: ... to here ...
37275 * util/grub.d/10_linux.in: ... and here.
37276
37277 2008-06-19 Robert Millan <rmh@aybabtu.com>
37278
37279 * kern/main.c (grub_main): Export `prefix' variable immediately
37280 after it has been set by grub_machine_set_prefix().
37281
37282 2008-06-19 Robert Millan <rmh@aybabtu.com>
37283
37284 * commands/search.c (search_label, search_fs_uuid, search_file): Print
37285 search result when not saving to variable, not the other way around.
37286 When saving to variable, abort iteration as soon as a match is found.
37287
37288 2008-06-19 Robert Millan <rmh@aybabtu.com>
37289
37290 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
37291 check for partition that provides /boot/grub. Its logic is flawed,
37292 as it prevents prepare_grub_to_access_device() from being called
37293 multiple times.
37294
37295 2008-06-19 Robert Millan <rmh@aybabtu.com>
37296
37297 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
37298 "insmod" command directly when abstraction modules are needed,
37299 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
37300 since it had already been processed).
37301
37302 2008-06-19 Pavel Roskin <proski@gnu.org>
37303
37304 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
37305 changed. This is needed in case GRUB_LIBDIR changes.
37306 * conf/i386-ieee1275.rmk: Likewise.
37307 * conf/i386-linuxbios.rmk: Likewise.
37308 * conf/i386-pc.rmk: Likewise.
37309 * conf/powerpc-ieee1275.rmk: Likewise.
37310
37311 2008-06-18 Pavel Roskin <proski@gnu.org>
37312
37313 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
37314 kernel_elf_symlist.c to symlist.c for consistency with other
37315 architectures. Update all users.
37316 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37317
37318 2008-06-18 Robert Millan <rmh@aybabtu.com>
37319
37320 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
37321 it in prefix.
37322
37323 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
37324 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
37325 a RAID device, run setup() for all members independently on whether
37326 LVM abstraction is being used.
37327 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
37328 If grub-mkimage has set `*install_dos_part == -2', don't override this
37329 value.
37330 Perform *install_dos_part adjustments independently on whether
37331 we're embedding or not.
37332 Clarify error message when image is too big for embedding.
37333 Remove duplicate *install_dos_part stanza.
37334
37335 2008-06-17 Robert Millan <rmh@aybabtu.com>
37336
37337 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
37338 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
37339 variables.
37340 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
37341 values in grub_ofconsole_normal_color and
37342 grub_ofconsole_highlight_color (they're not directly related to
37343 background and foreground).
37344 (grub_ofconsole_setcolorstate): Extract background and foreground
37345 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
37346
37347 2008-06-17 Robert Millan <rmh@aybabtu.com>
37348
37349 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
37350 /boot/grub for the check in last commit, not /boot (they could be
37351 different partitions).
37352
37353 2008-06-16 Robert Millan <rmh@aybabtu.com>
37354
37355 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
37356 asked to setup access for the same partition that provides /boot,
37357 don't bother using UUIDs since our root already has the value we
37358 want.
37359
37360 2008-06-16 Robert Millan <rmh@aybabtu.com>
37361
37362 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
37363 I2O devices.
37364 Patch from Sven Mueller <sven@debian.org>.
37365
37366 2008-06-16 Robert Millan <rmh@aybabtu.com>
37367
37368 * util/update-grub.in: Check for $EUID instead of $UID.
37369 Reported by Vincent Zweije.
37370
37371 2008-06-16 Bean <bean123ch@gmail.com>
37372
37373 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
37374 (grub_ext2_read_block): Likewise.
37375 (grub_ext2_read_inode): Likewise.
37376 (grub_ext2_mount): Likewise.
37377 (grub_ext2_close): Likewise.
37378 (grub_ext3_get_journal): Removed.
37379
37380 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
37381 (grub_reiserfs_read_symlink): Likewise.
37382 (grub_reiserfs_mount): Likewise.
37383 (grub_reiserfs_open): Likewise.
37384 (grub_reiserfs_read): Likewise.
37385 (grub_reiserfs_close): Likewise.
37386 (grub_reiserfs_get_journal): Removed.
37387
37388 * fs/fshelp.c (grub_fshelp_read): Removed.
37389 (grub_fshelp_map_block): Likewise.
37390
37391 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
37392 (grub_fshelp_journal): Likewise.
37393 (grub_fshelp_read): Likewise.
37394 (grub_fshelp_map_block): Likewise.
37395
37396 2008-06-16 Pavel Roskin <proski@gnu.org>
37397
37398 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
37399 floating point anymore.
37400 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
37401
37402 2008-06-15 Pavel Roskin <proski@gnu.org>
37403
37404 * commands/ls.c (grub_ls_list_files): Use integer calculations
37405 for human readable format, avoid floating point use.
37406 * kern/misc.c (grub_ftoa): Remove.
37407 (grub_vsprintf): Remove floating point support.
37408
37409 2008-06-15 Robert Millan <rmh@aybabtu.com>
37410
37411 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
37412 devices.
37413 Reported by Max Vozeler.
37414
37415 2008-06-15 Robert Millan <rmh@aybabtu.com>
37416
37417 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
37418 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
37419 skipped later.
37420 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
37421 the beginning of the prefix.
37422
37423 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
37424 It is assumed that if we have a memdisk, grub-mkimage has set
37425 grub_prefix to include the "(memdisk)" drive in it.
37426
37427 2008-06-15 Robert Millan <rmh@aybabtu.com>
37428
37429 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
37430 Initialize keyboard controller after registering the terminal, so that
37431 grub_printf() can be called from grub_keyboard_controller_init().
37432
37433 2008-06-15 Robert Millan <rmh@aybabtu.com>
37434
37435 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
37436 extent-btree which is written as big endian on disk.
37437 Reported by Alain Greppin <al@chilibi.org>.
37438
37439 2008-06-14 Robert Millan <rmh@aybabtu.com>
37440
37441 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
37442 * util/i386/pc/grub-install.in (modules): Likewise.
37443
37444 2008-06-13 Pavel Roskin <proski@gnu.org>
37445
37446 * commands/ls.c (grub_ls_list_files): Fix format warnings.
37447
37448 2008-06-13 Bean <bean123ch@gmail.com>
37449
37450 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
37451
37452 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
37453
37454 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
37455 to indicate sparse block.
37456
37457 2008-06-12 Pavel Roskin <proski@gnu.org>
37458
37459 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
37460 number, grub_fshelp_read() does it for us.
37461
37462 * fs/fshelp.c (grub_fshelp_read): New function. Implement
37463 linear disk read with journal translation.
37464 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
37465 * include/grub/fshelp.h: Declare grub_fshelp_read().
37466
37467 2008-06-09 Pavel Roskin <proski@gnu.org>
37468
37469 * fs/minix.c (grub_minix_mount): Handle error reading
37470 superblock.
37471
37472 2008-06-08 Robert Millan <rmh@aybabtu.com>
37473
37474 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
37475 don't append the RAID prefix afterwards.
37476 Reported by Clint Adams.
37477
37478 2008-06-08 Robert Millan <rmh@aybabtu.com>
37479
37480 Based on description from Pavel:
37481 * kern/disk.c (grub_disk_check_range): Rename to ...
37482 (grub_disk_adjust_range): ... this. Add a comment explaining the
37483 tasks performed by this function.
37484
37485 2008-06-08 Robert Millan <rmh@aybabtu.com>
37486
37487 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
37488 `num_serial' (for consistency with other variables).
37489 (struct grub_ntfs_data): Add `uuid' member.
37490 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
37491 (grub_ntfs_uuid): New function.
37492 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
37493
37494 2008-06-07 Pavel Roskin <proski@gnu.org>
37495
37496 * util/biosdisk.c (open_device): Revert last change to the
37497 function, it broke installation. The sector needs to be
37498 different dependent on which device is opened.
37499
37500 2008-06-06 Robert Millan <rmh@aybabtu.com>
37501
37502 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
37503 rest of GRUB, and breakage doesn't happen if its value were modified.
37504
37505 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37506 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
37507 a constant (same value).
37508 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
37509 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
37510
37511 2008-06-06 Robert Millan <rmh@aybabtu.com>
37512
37513 * util/biosdisk.c (open_device): Do not modify sector offset when
37514 accessing a partition. kern/disk.c already handles this for us.
37515
37516 2008-06-06 Robert Millan <rmh@aybabtu.com>
37517
37518 * util/grub-emu.c (grub_machine_init): Move code in this function from
37519 here ...
37520 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
37521 segfault in case grub_printf() is called).
37522
37523 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
37524 grub_probe. Update all users not to explicitly add it again.
37525 (grub_device): New variable; contains corresponding device for grubdir.
37526 (fs_module, partmap_module, devabstraction_module): Pass
37527 `--device ${grub_device}' to grub_probe to avoid traversing /dev
37528 every time.
37529
37530 2008-06-05 Robert Millan <rmh@aybabtu.com>
37531
37532 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
37533 is found, print it (same layout as with labels).
37534
37535 2008-06-04 Robert Millan <rmh@aybabtu.com>
37536
37537 * util/biosdisk.c (get_drive): Rename to ...
37538 (find_grub_drive): ... this. Update all users.
37539
37540 (get_os_disk): Rename to ...
37541 (convert_system_partition_to_system_disk): ... this. Update all users.
37542
37543 (find_drive): Rename to ...
37544 (find_system_device): ... this. Update all users.
37545
37546 2008-06-04 Robert Millan <rmh@aybabtu.com>
37547
37548 * util/biosdisk.c (get_os_disk): Handle IDA devices.
37549 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37550 (make_device_map): Likewise.
37551
37552 2008-06-01 Robert Millan <rmh@aybabtu.com>
37553
37554 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
37555 before dereferencing it.
37556
37557 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
37558 union with fat12/fat16-specific ones. Add some new fields, including
37559 `num_serial' for both versions.
37560 (struct grub_fat_data): Add `uuid' member.
37561 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
37562 names. Initialize `data->uuid' using `num_serial'.
37563 (grub_fat_uuid): New function.
37564 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
37565
37566 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
37567 (grub_reiserfs_uuid): New function.
37568 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
37569 member.
37570
37571 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
37572 (grub_xfs_uuid): New function.
37573 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
37574
37575 2008-06-01 Robert Millan <rmh@aybabtu.com>
37576
37577 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
37578 code that is backward compatible with pre-uuid search command.
37579
37580 2008-05-31 Robert Millan <rmh@aybabtu.com>
37581
37582 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
37583 floppies after everything else, to ensure floppy drive isn't accessed
37584 unnecessarily (patch from Bean).
37585
37586 2008-05-31 Robert Millan <rmh@aybabtu.com>
37587
37588 * commands/search.c (search_label, search_fs_uuid, search_file): Do
37589 not print device names when we were asked to set a variable.
37590
37591 2008-05-31 Robert Millan <rmh@aybabtu.com>
37592
37593 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
37594 using "cursor-on" and "cursor-off" commands (understood at least by
37595 the Open Firmware flavour on OLPC).
37596
37597 2008-05-31 Michael Gorven <michael@gorven.za.net>
37598
37599 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
37600 on and off sequences.
37601
37602 2008-05-31 Robert Millan <rmh@aybabtu.com>
37603
37604 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
37605 * util/update-grub.in: Likewise.
37606
37607 2008-05-30 Pavel Roskin <proski@gnu.org>
37608
37609 * util/biosdisk.c (linux_find_partition): Simplify logic and
37610 make the code more universal. Keep special processing for
37611 devfs, but use a simple rule for all other devices. If the
37612 device ends with a number, append 'p' and the partition number.
37613 Otherwise, append only the partition number.
37614
37615 2008-05-30 Robert Millan <rmh@aybabtu.com>
37616
37617 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
37618 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
37619 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
37620 the `root' parameter to Linux.
37621
37622 2008-05-30 Robert Millan <rmh@aybabtu.com>
37623
37624 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
37625 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
37626 --fs_uuid with --fs-uuid.
37627 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
37628 all filesystems support them).
37629
37630 2008-05-30 Robert Millan <rmh@aybabtu.com>
37631
37632 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
37633 grub_printf() flags, since we're printing in units of 2 bytes.
37634
37635 2008-05-30 Robert Millan <rmh@aybabtu.com>
37636
37637 * util/grub.d/00_header.in: Remove obsolete comment referencing
37638 convert_system_path_to_grub_path().
37639 * util/update-grub.in: Likewise.
37640 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
37641 (convert_system_path_to_grub_path): Add a warning message explaining
37642 that this function is deprecated. Rely on is_path_readable_by_grub()
37643 for the readability checks.
37644 (font_path): Use is_path_readable_by_grub() for the readability
37645 check rather than convert_system_path_to_grub_path().
37646
37647 2008-05-30 Robert Millan <rmh@aybabtu.com>
37648
37649 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
37650 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
37651 converting it first.
37652 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
37653 grub.cfg for access to font file, and afterwards call it again to set
37654 the root device.
37655
37656 2008-05-30 Robert Millan <rmh@aybabtu.com>
37657
37658 * commands/search.c (options): Add --fs_uuid option.
37659 (search_fs_uuid): New function.
37660 (grub_cmd_search): Fix --set argument passing.
37661 Use search_fs_uuid() when requested via --fs_uuid.
37662 (grub_search_init): Update help message.
37663 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
37664 and redeclare it as an array of 16-bit words.
37665 (grub_ext2_uuid): New function.
37666 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
37667 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
37668 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
37669 (GRUB_DEVICE_BOOT_UUID): New variables.
37670 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
37671 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
37672 whenever possible.
37673 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
37674 just assume `root' variable has the right value.
37675 * util/grub.d/10_linux.in: Likewise.
37676 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
37677 via PRINT_FS_UUID.
37678 (main): Recognise `-t fs_uuid' argument.
37679
37680 2008-05-30 Robert Millan <rmh@aybabtu.com>
37681
37682 * util/biosdisk.c (map): Redefine structure to hold information
37683 about GRUB drive name.
37684 (get_drive): Reimplement without assuming (and verifying) BIOS-like
37685 drive names.
37686 (call_hook): Remove.
37687 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
37688 member. Assume drive has partitions.
37689 (grub_util_biosdisk_open): Access device names via `.device' struct
37690 member.
37691 (open_device): Likewise.
37692 (find_drive): Likewise.
37693 (read_device_map): Adjust map[] usage to match the new struct
37694 definition. Don't check for duplicates (still possible, but not cheap
37695 anymore).
37696 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
37697 (make_device_name): Remove assumption of BIOS-like drive names.
37698
37699 2008-05-30 Pavel Roskin <proski@gnu.org>
37700
37701 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
37702 compiling execute.c doesn't need grub_script.tab.h anymore.
37703 (normal/command.c_DEPENDENCIES): Likewise.
37704 (normal/function.c_DEPENDENCIES): Likewise.
37705 * conf/i386-ieee1275.rmk: Likewise.
37706 * conf/i386-linuxbios.rmk: Likewise.
37707 * conf/i386-pc.rmk: Likewise.
37708 * conf/powerpc-ieee1275.rmk: Likewise.
37709 * conf/sparc64-ieee1275.rmk: Likewise.
37710
37711 2008-05-29 Pavel Roskin <proski@gnu.org>
37712
37713 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
37714 when scanning metadata for volume group name.
37715
37716 * include/grub/script.h: Don't include grub_script.tab.h. It's
37717 a generated file, which may only be included from the files with
37718 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
37719 use union YYSTYPE, as the later allows forward declaration.
37720 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
37721
37722 2008-05-29 Robert Millan <rmh@aybabtu.com>
37723
37724 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
37725 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
37726 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
37727 (grub_console_checkkey): Add grub_dprintf() call to report unknown
37728 scan codes.
37729
37730 2008-05-29 Robert Millan <rmh@aybabtu.com>
37731
37732 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
37733 control key combinations.
37734
37735 2008-05-29 Robert Millan <rmh@aybabtu.com>
37736
37737 * util/powerpc/ieee1275/grub-install.in: Move from here ...
37738 * util/ieee1275/grub-install.in: ... to here.
37739 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
37740 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
37741 (grub_install_SOURCES): Likewise.
37742
37743 2008-05-29 Robert Millan <rmh@aybabtu.com>
37744
37745 * fs/affs.c: Update copyright year.
37746 * fs/ext2.c: Likewise.
37747 * fs/fshelp.c: Likewise.
37748 * fs/hfsplus.c: Likewise.
37749 * fs/ntfs.c: Likewise.
37750 * fs/xfs.c: Likewise.
37751 * include/grub/fshelp.h: Likewise.
37752 * util/grub-mkdevicemap.c: Likewise.
37753
37754 2008-05-28 Robert Millan <rmh@aybabtu.com>
37755
37756 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
37757 might need to be fatfs to support some firmware implementations
37758 (e.g. OFW or EFI).
37759
37760 2008-05-28 Robert Millan <rmh@aybabtu.com>
37761
37762 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
37763 devices.
37764 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37765 (make_device_map): Likewise.
37766
37767 2008-05-20 Bean <bean123ch@gmail.com>
37768
37769 * fs/fshelp.c (grub_fshelp_map_block): New function.
37770 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
37771 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
37772
37773 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
37774 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
37775 (grub_fshelp_journal): New structure.
37776 (grub_fshelp_map_block): New function prototype.
37777 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
37778 (grub_fshelp_map_block): Likewise.
37779
37780 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
37781 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
37782 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
37783 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
37784 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
37785 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
37786 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
37787 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
37788 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
37789 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
37790 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
37791 (grub_ext2_sblock): New members for journal support.
37792 (grub_ext3_journal_header): New structure.
37793 (grub_ext3_journal_revoke_header): Likewise.
37794 (grub_ext3_journal_block_tag): Likewise.
37795 (grub_ext3_journal_sblock): Likewise.
37796 (grub_fshelp_node): New members logfile and journal.
37797 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
37798 grub_fshelp_map_block to get real block number.
37799 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
37800 number.
37801 (grub_ext2_read_inode): Likewise.
37802 (grub_ext3_get_journal): New function.
37803 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
37804 (grub_ext2_close): Release memory used by journal.
37805
37806 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
37807 (REISERFS_MAGIC_DESC_BLOCK): New macro.
37808 (grub_reiserfs_transaction_header): Renamed to
37809 grub_reiserfs_description_block, replace field data with real_blocks.
37810 (grub_reiserfs_commit_block): New structure.
37811 (grub_reiserfs_data): New member journal.
37812 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
37813 number.
37814 (grub_reiserfs_read_symlink): Likewise.
37815 (grub_reiserfs_iterate_dir): Likewise.
37816 (grub_reiserfs_open): Likewise.
37817 (grub_reiserfs_read): Likewise.
37818 (grub_reiserfs_get_journal): New function.
37819 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
37820 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
37821 using grub_reiserfs_get_journal.
37822 (grub_reiserfs_close): Release memory used by journal.
37823
37824 * fs/affs.c (grub_affs_read_block): Change block type to
37825 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
37826
37827 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
37828
37829 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
37830
37831 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
37832
37833 * fs/udf.c (grub_udf_read_block): Change block type to
37834 grub_disk_addr_t. Use type cast to avoid warning.
37835
37836 * fs/xfs.c (grub_xfs_read_block): Likewise.
37837
37838 2008-05-16 Christian Franke <franke@computer.org>
37839
37840 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
37841 to ensure that break with ESC will always work.
37842 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
37843 Remove ESC from keyboard queue.
37844
37845 2008-05-16 Christian Franke <franke@computer.org>
37846
37847 * util/biosdisk.c: [__CYGWIN__] Add includes.
37848 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
37849 (get_os_disk): Move variable declarations to OS specific
37850 parts to avoid warning.
37851 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
37852 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
37853 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
37854 Cygwin.
37855 * util/getroot.c: [__CYGWIN__] Add includes.
37856 (strip_extra_slashes): Fix "/" case.
37857 [__CYGWIN__] (get_win32_path): New function.
37858 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
37859 [__CYGWIN__] (find_root_device): Disable.
37860 [__CYGWIN__] (get_bootsec_serial): New function.
37861 [__CYGWIN__] (find_cygwin_root_device): Likewise.
37862 [__linux__] (grub_guess_root_device): Add early returns to simplify
37863 structure.
37864 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
37865 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
37866 check for Linux only.
37867
37868 2008-05-15 Bean <bean123ch@gmail.com>
37869
37870 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
37871 keyboard hang problem in apple's intel mac.
37872
37873 2008-05-09 Robert Millan <rmh@aybabtu.com>
37874
37875 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
37876 devices.
37877 * util/grub-mkdevicemap.c (get_virtio_disk_name)
37878 (make_device_map): Likewise.
37879 Reported by Aurelien Jarno <aurel32@debian.org>
37880
37881 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
37882
37883 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
37884 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
37885 (make_device_map): Output entries for xvd type disks.
37886
37887 2008-05-07 Robert Millan <rmh@aybabtu.com>
37888
37889 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
37890 devices.
37891 * util/grub-mkdevicemap.c (get_cciss_disk_name)
37892 (make_device_map): Likewise.
37893 Reported by Roland Dreier <rdreier@cisco.com>
37894
37895 2008-05-07 Robert Millan <rmh@aybabtu.com>
37896
37897 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
37898 grub_strstr() call. Correct a few mistakes in failure path handling.
37899
37900 2008-05-06 Robert Millan <rmh@aybabtu.com>
37901
37902 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
37903 Do not print a trailing slash (therefore, the root directory is an
37904 empty string).
37905 (convert_system_path_to_grub_path): Do not remove trailing slash
37906 from make_system_path_relative_to_its_root() output.
37907
37908 * util/i386/pc/grub-install.in: Add trailing slash to output from
37909 make_system_path_relative_to_its_root().
37910
37911 2008-05-06 Robert Millan <rmh@aybabtu.com>
37912
37913 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
37914 ensures that output lines aren't intermangled with those sent to
37915 stderr (via grub_util_info()).
37916 * util/grub-probe.c (grub_refresh): Likewise.
37917 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
37918
37919 2008-05-05 Christian Franke <franke@computer.org>
37920
37921 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
37922 Add Cygwin device names.
37923 (get_ide_disk_name) [__CYGWIN__]: Likewise.
37924 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
37925 (check_device): Return error instead of success on empty name.
37926 (make_device_map): Move label inside linux specific code to
37927 prevent compiler warning.
37928
37929 2008-04-30 Robert Millan <rmh@aybabtu.com>
37930
37931 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
37932 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
37933 first boot option.
37934 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
37935
37936 2008-04-29 Robert Millan <rmh@aybabtu.com>
37937
37938 * docs/grub.cfg: New file (example GRUB configuration).
37939
37940 2008-04-26 Robert Millan <rmh@aybabtu.com>
37941
37942 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
37943 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
37944 and `disk/ieee1275/nand.c'.
37945
37946 2008-04-25 Bean <bean123ch@gmail.com>
37947
37948 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
37949 i386-linuxbios.
37950
37951 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
37952 change the buffer size to 4096 for cdrom device.
37953
37954 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
37955 and nand.mod.
37956 (_linux_mod_SOURCES): New variable.
37957 (_linux_mod_CFLAGS): Likewise.
37958 (_linux_mod_LDFLAGS): Likewise.
37959 (linux_mod_SOURCES): Likewise.
37960 (linux_mod_CFLAGS): Likewise.
37961 (linux_mod_LDFLAGS): Likewise.
37962 (nand_mod_SOURCES): Likewise.
37963 (nand_mod_CFLAGS): Likewise.
37964 (nand_mod_LDFLAGS): Likewise.
37965
37966 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
37967 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
37968 type property. (nand device in olpc don't have this property)
37969
37970 * include/grub/disk.h (grub_disk_dev_id): New macro
37971 GRUB_DISK_DEVICE_NAND_ID.
37972
37973 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
37974 function prototype.
37975 (grub_rescue_cmd_initrd): Likewise.
37976
37977 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
37978 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
37979 ofw_cif_handler and ofw_idt, adjust padding number.
37980
37981 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
37982 GRUB_MACHINE_IEEE1275 is defined.
37983
37984 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
37985 Use NESTED_FUNC_ATTR attribute on the hook parameter.
37986
37987 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
37988 on nested function heap_init.
37989 (grub_upper_mem): New variable for i386-ieee1275.
37990 (grub_get_extended_memory): New function for i386-ieee1275.
37991 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
37992
37993 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
37994 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
37995 property.
37996
37997 * loader/i386/ieee1275/linux.c: New file.
37998
37999 * loader/i386/ieee1275/linux_normal.c: New file.
38000
38001 * disk/ieee1275/nand.c: New file.
38002
38003 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
38004
38005 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
38006 value.
38007 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
38008
38009 2008-04-18 Robert Millan <rmh@aybabtu.com>
38010
38011 Restructures early code path on ieee1275 to unify grub_main() as
38012 the first C function that is executed in every platform.
38013
38014 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
38015 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
38016 cmain().
38017 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
38018 * kern/ieee1275/cmain.c (cmain): Rename to ...
38019 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
38020 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
38021 at the beginning.
38022
38023 2008-04-18 Robert Millan <rmh@aybabtu.com>
38024
38025 * util/update-grub.in: Fix syntax error when setting
38026 `GRUB_PRELOAD_MODULES'.
38027 Reported by Stephane Chazelas <stephane@artesyncp.com>
38028
38029 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
38030
38031 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
38032 section into account, newer toolchains generate unique build ids
38033 * configure.ac: remove the test for --build-id=none acceptance,
38034 we want build ids to be preserved
38035 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
38036 far from other sections don't cause the raw binary images grow
38037 size
38038
38039 2008-04-15 Robert Millan <rmh@aybabtu.com>
38040
38041 * disk/lvm.c: Update copyright year.
38042 * kern/misc.c: Likewise.
38043
38044 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
38045
38046 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
38047 there is no memory left for physical volume name.
38048
38049 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
38050
38051 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
38052 volume name mapping to support bigger than 9 character names properly.
38053
38054 2008-04-13 Robert Millan <rmh@aybabtu.com>
38055
38056 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
38057 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
38058
38059 2008-04-13 Christian Franke <franke@computer.org>
38060
38061 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
38062 to create a floppy emulation boot CD when non emulation mode
38063 does not work.
38064 Enable Joliet CD filesystem extension.
38065
38066 2008-04-13 Robert Millan <rmh@aybabtu.com>
38067
38068 * kern/misc.c (grub_strncat): Fix off-by-one error.
38069 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
38070
38071 * kern/env.c (grub_env_context_close): Clear current context, not
38072 previous one.
38073 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
38074
38075 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
38076
38077 2008-04-13 Robert Millan <rmh@aybabtu.com>
38078
38079 Improve robustness when handling LVM.
38080
38081 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
38082 (and leave `*p' unmodified).
38083 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
38084 through it.
38085 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
38086 iterating through it.
38087 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
38088 through it.
38089 (grub_lvm_scan_device): Check the return value (and fail gracefully
38090 when due) on each grub_lvm_getvalue() or grub_strstr() call.
38091 Don't assume `vg->pvs != NULL' when iterating through it.
38092
38093 2008-04-13 Robert Millan <rmh@aybabtu.com>
38094
38095 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
38096 * genmk.rb (partmap): New variable.
38097 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
38098 (#{partmap}): New target rule.
38099 * genpartmaplist.sh: New file.
38100 * Makefile.in (pkglib_DATA): Add partmap.lst.
38101 (partmap.lst): New target rule.
38102 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
38103 modules (including all partition maps), instead of preloading them.
38104
38105 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
38106
38107 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
38108 `linux-boot-prober' (if installed) to detect other operating
38109 systems which are installed on the computer and add them to
38110 the boot menu.
38111 * conf/common.rmk: Build and install 30_os-prober.
38112
38113 2008-04-12 Robert Millan <rmh@aybabtu.com>
38114
38115 * kern/powerpc/ieee1275/init.c: Move from here ...
38116 * kern/ieee1275/init.c: ... to here. Update all users.
38117
38118 * kern/powerpc/ieee1275/cmain.c: Move from here ...
38119 * kern/ieee1275/cmain.c: ... to here. Update all users.
38120
38121 * kern/powerpc/ieee1275/openfw.c: Move from here ...
38122 * kern/ieee1275/openfw.c: ... to here. Update all users.
38123
38124 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
38125 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
38126
38127 2008-04-10 Pavel Roskin <proski@gnu.org>
38128
38129 * configure.ac: Always use "_cv_" in cache variables for
38130 compatibility with Autoconf 2.62.
38131
38132 2008-04-07 Robert Millan <rmh@aybabtu.com>
38133
38134 Revert grub/machine/init.h addition by Pavel (since it breaks on
38135 i386-ieee1275 and others):
38136 * util/i386/pc/misc.c: Remove grub/machine/init.h.
38137 * util/powerpc/ieee1275/misc.c: Likewise.
38138
38139 2008-04-07 Robert Millan <rmh@aybabtu.com>
38140
38141 * util/grub-probe.c (probe): Improve error message.
38142
38143 2008-04-07 Robert Millan <rmh@aybabtu.com>
38144
38145 * util/biosdisk.c (read_device_map): Skip devices that don't exist
38146 (this prevents the presence of a bogus entry from ruining the whole
38147 thing).
38148
38149 2008-04-06 Pavel Roskin <proski@gnu.org>
38150
38151 * util/biosdisk.c: Include grub/util/biosdisk.h.
38152 * util/grub-fstest.c (execute_command): Make static.
38153 * util/grub-mkdevicemap.c (check_device): Likewise.
38154 * util/i386/pc/misc.c: Include grub/machine/init.h.
38155 * util/powerpc/ieee1275/misc.c: Likewise.
38156 * util/lvm.c: Include grub/util/lvm.h.
38157 * util/misc.c: Include grub/kernel.h, grub/misc.h and
38158 grub/cache.h.
38159 * util/raid.c: Include grub/util/raid.h.
38160 (grub_util_getdiskname): Make static.
38161
38162 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
38163 grub_hostfs_fini(), as they are called from grub_init_all() and
38164 grub_fini_all() respectively. This fixes an infinite loop in
38165 grub-fstest due to double registration of hostfs.
38166 Reported by Christian Franke <Christian.Franke@t-online.de>
38167
38168 2008-04-05 Pavel Roskin <proski@gnu.org>
38169
38170 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
38171 all 8 functions. Otherwise, probe function 0 only.
38172
38173 2008-04-04 Pavel Roskin <proski@gnu.org>
38174
38175 * commands/lspci.c (grub_lspci_iter): Print the bus number
38176 correctly.
38177
38178 * commands/lspci.c (grub_pci_classes): Fix typos.
38179 (grub_lspci_iter): Don't print func twice. Print vendor ID
38180 before device ID, as it's normally done.
38181
38182 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
38183 Fix signedness warnings.
38184 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
38185 Likewise.
38186 * util/ieee1275/get_disk_name.c: Include config.h so that
38187 _GNU_SOURCE is defined and getline() is declared. Mark an
38188 unused argument as such. Fix a signedness warning.
38189
38190 2008-04-02 Pavel Roskin <proski@gnu.org>
38191
38192 * genkernsyms.sh.in: Use more robust assignments for CC and
38193 srcdir. Quote srcdir.
38194 * gensymlist.sh.in: Likewise. Assert at the compile time that
38195 the symbol table is not empty.
38196
38197 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
38198 * fs/cpio.c (grub_cpio_read): Likewise.
38199
38200 2008-04-01 Pavel Roskin <proski@gnu.org>
38201
38202 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
38203 * disk/host.c (grub_host_open): Likewise.
38204 * disk/loopback.c (grub_loopback_open): Likewise.
38205 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
38206 disk->id as in disk/host.c, not a multi-character constant.
38207
38208 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
38209 later is obsolete, potentially dangerous and sets a bad example.
38210 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
38211 * util/misc.c (grub_util_get_image_size): Likewise.
38212
38213 * disk/loopback.c (options): Improve help for "--partitions".
38214
38215 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
38216 options to align them with the short options, e.g. "echo -e".
38217
38218 2008-03-31 Bean <bean123ch@gmail.com>
38219
38220 * video/reader/png.c (grub_png_data): New member is_16bit and
38221 image_data.
38222 (grub_png_decode_image_header): Detect 16 bit png image.
38223 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
38224 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
38225 (grub_video_reader_png): Release memory occupied by image_data.
38226
38227 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
38228 4096 bytes.
38229 (grub_nfs_mount): Skip the test for sector per cluster.
38230
38231 * include/grub/ntfs.h (MAX_SPC): Removed.
38232
38233 2008-03-31 Bean <bean123ch@gmail.com>
38234
38235 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
38236 (grub_probe_SOURCES): Add fs/afs.c.
38237 (grub_fstest_SOURCES): Likewise.
38238 (afs_mod_SOURCES): New variable.
38239 (afs_mod_CFLAGS): Likewise.
38240 (afs_mod_LDFLAGS): Likewise.
38241
38242 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
38243 (grub_emu_SOURCES): Likewise.
38244
38245 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38246
38247 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38248
38249 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38250
38251 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38252
38253 * fs/afs.c: New file.
38254
38255 2008-03-30 Pavel Roskin <proski@gnu.org>
38256
38257 * disk/host.c: Include grub/misc.h to fix a warning.
38258 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
38259 warnings about implicit declarations.
38260
38261 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
38262 variable.
38263 * include/grub/i386/loader.h: Change declaration of
38264 grub_linux_boot() to match what grub_loader_set() expects.
38265 * util/getroot.c (grub_guess_root_device): Return const char* to
38266 fix a warning.
38267 * util/grub-probe.c (probe): Fix a warning about uninitialized
38268 abstraction_name variable.
38269 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
38270 second argument as unused to fix a warning.
38271
38272 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
38273 missing grub_error() call.
38274
38275 * util/update-grub_lib.in: Define datarootdir, since Autoconf
38276 2.60 and newer uses it to define datadir.
38277
38278 * commands/sleep.c: Fix warning about implicit declaration.
38279 * disk/memdisk.c: Likewise.
38280 * loader/aout.c: Likewise.
38281 * loader/i386/bsd_normal.c: Likewise.
38282 * util/grub-probe.c: Likewise.
38283
38284 * commands/i386/cpuid.c (has_longmode): Make static.
38285 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
38286 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
38287
38288 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
38289 GDT. This is more robust, as %ds can change.
38290 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
38291 calling real_to_prot().
38292 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
38293
38294 2008-03-28 Pavel Roskin <proski@gnu.org>
38295
38296 * kern/i386/pc/startup.S: Assert that uncompressed functions
38297 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
38298 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
38299 code, as they push parts of the code (error handlers) beyond
38300 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
38301 code as correctness and size.
38302
38303 2008-03-28 Pavel Roskin <proski@gnu.org>
38304
38305 * kern/i386/pc/startup.S
38306 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
38307 data block address to the real mode, keep offset minimal. This
38308 works around a bug in AWARD BIOS on old Athlon systems, which
38309 makes CD detection hang.
38310
38311 2008-03-26 Pavel Roskin <proski@gnu.org>
38312
38313 * normal/color.c (grub_parse_color_name_pair): Make `name' a
38314 const.
38315 * include/grub/normal.h: Add grub_parse_color_name_pair()
38316 declaration.
38317
38318 2008-03-24 Bean <bean123ch@gmail.com>
38319
38320 * disk/i386/pc/biosdisk.c (cd_start): Removed.
38321 (cd_count): Removed.
38322 (cd_drive): New variable.
38323 (grub_biosdisk_get_drive): Don't check for (cdN) device.
38324 (grub_biosdisk_call_hook): Likewise.
38325 (grub_biosdisk_iterate): Change cdrom detection method.
38326 (grub_biosdisk_open): Replace cd_start with cd_drive.
38327 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
38328 detect cdrom device.
38329
38330 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
38331 Removed.
38332 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
38333 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
38334 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
38335 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
38336 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
38337 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
38338 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
38339 (grub_biosdisk_cdrp): New structure.
38340 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
38341
38342 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
38343
38344 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
38345 device.
38346
38347 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
38348 New function.
38349
38350 2008-03-20 Robert Millan <rmh@aybabtu.com>
38351
38352 Remove 2 TiB limit in ata.mod.
38353 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
38354 (grub_ata_dumpinfo): Print sector count with 0x%llx.
38355 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
38356 grub_uint64_t instead of grub_uint32_t.
38357
38358 2008-03-05 Bean <bean123ch@gmail.com>
38359
38360 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
38361 (grub_multiboot): Set boot device.
38362
38363 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
38364
38365 2008-03-02 Bean <bean123ch@gmail.com>
38366
38367 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
38368 symlink_buffer.
38369
38370 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
38371
38372 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
38373 texinfo.tex.
38374
38375 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
38376 modified.
38377
38378 * docs/fdl.texi: New file.
38379
38380 * docs/mdate-sh: New file. Copied from gnulib.
38381 * docs/texinfo.tex: Likewise.
38382
38383 * config.guess: Updated from gnulib.
38384 * install-sh: Likewise.
38385
38386 2008-02-28 Robert Millan <rmh@aybabtu.com>
38387
38388 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
38389 (aout_mod_SOURCES): New variable.
38390 (aout_mod_CFLAGS): Likewise.
38391 (aout_mod_LDFLAGS): Likewise.
38392
38393 * conf/i386-ieee1275.rmk: Likewise.
38394
38395 2008-02-28 Robert Millan <rmh@aybabtu.com>
38396
38397 * util/update-grub.in: Reorganise terminal validity check. Accept
38398 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
38399 Based on suggestion by Franklin PIAT.
38400
38401 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
38402
38403 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
38404 function.
38405 * util/getroot.c (grub_util_check_block_device): New function that
38406 returns the given argument if it is a block device and returns NULL else.
38407 * util/grub-probe.c (argument_is_device): New variable.
38408 (probe): Promote device_name from a variable to an argument. Receive
38409 device_name from grub_util_check_block_device() if path is NULL and from
38410 grub_guess_root_device() else. Do not free() device_name anymore.
38411 (options): Introduce new parameter '-d, --device'.
38412 (main): Add description of the new parameter to the help screen.
38413 Rename path variable to argument. Set argument_is_device if the '-d'
38414 option is given. Pass argument to probe() depending on
38415 argument_is_device.
38416
38417 2008-02-24 Bean <bean123ch@gmail.com>
38418
38419 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
38420 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
38421 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
38422 (GRUB_ISO9660_VOLDESC_PART): Likewise.
38423 (GRUB_ISO9660_VOLDESC_END): Likewise.
38424 (grub_iso9660_primary_voldesc): New member escape.
38425 (grub_iso9660_data): New member joliet.
38426 (grub_iso9660_convert_string): New function.
38427 (grub_iso9660_mount): Detect joliet extension.
38428 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
38429 (grub_iso9660_iso9660_label): Likewise.
38430
38431 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
38432 (grub_setup_SOURCES): Add fs/udf.c.
38433 (grub_fstest_SOURCES): Likewise.
38434 (udf_mod_SOURCES): New variable.
38435 (udf_mod_CFLAGS): Likewise.
38436 (udf_mod_LDFLAGS): Likewise.
38437
38438 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
38439 (grub_emu_SOURCES): Likewise.
38440
38441 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38442
38443 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38444
38445 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38446
38447 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38448
38449 * fs/udf.c: New file.
38450
38451 2008-02-24 Robert Millan <rmh@aybabtu.com>
38452
38453 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
38454 (normal/lexer.c_DEPENDENCIES): New variables.
38455 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38456 (normal/lexer.c_DEPENDENCIES): Likewise.
38457 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
38458 (normal/lexer.c_DEPENDENCIES): Likewise.
38459 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
38460 (normal/lexer.c_DEPENDENCIES): Likewise.
38461 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38462 (normal/lexer.c_DEPENDENCIES): Likewise.
38463 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38464 (normal/lexer.c_DEPENDENCIES): Likewise.
38465
38466 2008-02-23 Robert Millan <rmh@aybabtu.com>
38467
38468 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
38469 since they were intended to be in hex. This didn't break previously
38470 because of a bug in gpt_partition_map_iterate() (see below).
38471
38472 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
38473 when checking the validity of GPT header.
38474 Remove `partno', since it always provides the same information as `i'.
38475
38476 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
38477
38478 * include/grub/efi/time.h: Fix a wrong comment.
38479
38480 2008-02-19 Pavel Roskin <proski@gnu.org>
38481
38482 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
38483 message.
38484
38485 2008-02-19 Bean <bean123ch@gmail.com>
38486
38487 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
38488 (aout_mod_SOURCES): New variable.
38489 (aout_mod_CFLAGS): Likewise.
38490 (aout_mod_LDFLAGS): Likewise.
38491 (_bsd_mod_SOURCES): New variable.
38492 (_bsd_mod_CFLAGS): Likewise.
38493 (_bsd_mod_LDFLAGS): Likewise.
38494 (bsd_mod_SOURCES): New variable.
38495 (bsd_mod_CFLAGS): Likewise.
38496 (bsd_mod_LDFLAGS): Likewise.
38497
38498 * include/grub/aout.h: New file.
38499
38500 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
38501
38502 * include/grub/i386/bsd.h: New file.
38503
38504 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
38505 to make it public.
38506
38507 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
38508 function is called, so that it's possible to change it inside the hook.
38509 (grub_elf64_load): Likewise.
38510 (grub_elf_file): Don't close the file if elf header is not found.
38511 (grub_elf_close): Close the file if grub_elf_file fails (The new
38512 grub_elf_file won't close it).
38513 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
38514 (grub_elf64_size): Likewise.
38515
38516 * kern/i386/loader.S (grub_unix_real_boot): New function.
38517
38518 * loader/aout.c: New file.
38519
38520 * loader/i386/bsd.c: New file.
38521
38522 * loader/i386/bsd_normal.c: New file.
38523
38524 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
38525
38526 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
38527 can test other formats.
38528
38529 2008-02-19 Robert Millan <rmh@aybabtu.com>
38530
38531 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
38532 (grub_gpt_partition_type_empty): Redefine with macro from
38533 `<grub/gpt_partition.h>'.
38534 (gpt_partition_map_iterate): Adjust partition type comparison.
38535
38536 Export `entry' as partmap-specific `part.data' struct.
38537 (grub_gpt_header, grub_gpt_partentry): Move from here ...
38538
38539 * include/grub/gpt_partition.h (grub_gpt_header)
38540 (grub_gpt_partentry): ... to here (new file).
38541
38542 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
38543
38544 (grub_gpt_partition_type_bios_boot): New const variable, defined
38545 with macro from `<grub/gpt_partition.h>'.
38546
38547 (setup): Replace `first_start' with `embed_region', which keeps
38548 track of the embed region (and is partmap-agnostic).
38549
38550 Replace find_first_partition_start() with find_usable_region(),
38551 which finds a usable region for embedding using partmap-specific
38552 knowledge (supports PC/MSDOS and GPT).
38553
38554 Fix all assumptions that the embed region start at sector 1, using
38555 `embed_region.start' from now on. Similarly, use `embed_region.end'
38556 rather than `first_start' to calculate available size.
38557
38558 In grub_util_info() message, replace "into after the MBR" with an
38559 indication of the specific sector our embed region starts at.
38560
38561 2008-02-19 Robert Millan <rmh@aybabtu.com>
38562
38563 * DISTLIST: Replace `commands/ieee1275/halt.c' and
38564 `commands/ieee1275/reboot.c' with `commands/halt.c' and
38565 `commands/reboot.c'.
38566 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38567 (halt_mod_SOURCES): Likewise.
38568 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38569 (halt_mod_SOURCES): Likewise.
38570
38571 2008-02-17 Christian Franke <franke@computer.org>
38572
38573 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
38574
38575 2008-02-17 Robert Millan <rmh@aybabtu.com>
38576
38577 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38578 set `first_start' to 0 for non-PC/MSDOS partition maps.
38579
38580 2008-02-16 Robert Millan <rmh@aybabtu.com>
38581
38582 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38583 do not assume partition map is PC/MSDOS before performing checks that
38584 are specific to that layout.
38585
38586 2008-02-13 Robert Millan <rmh@aybabtu.com>
38587
38588 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
38589 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
38590 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
38591
38592 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
38593
38594 * configure.ac: Only a cosmetic change on the handling of
38595 -fno-stack-protector.
38596
38597 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
38598
38599 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
38600 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
38601 reboot.c.
38602 (grub_install_SOURCES): Add halt.mod and reboot.mod.
38603 (halt_mod_SOURCES): New variable.
38604 (halt_mod_CFLAGS): Likewise.
38605 (halt_mod_LDFLAGS): Likewise.
38606 (reboot_mod_SOURCES): Likewise.
38607 (reboot_mod_CFLAGS): Likewise.
38608 (reboot_mod_LDFLAGS): Likewise.
38609
38610 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
38611 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
38612 reboot.c.
38613 (halt_mod_SOURCES): Likewise.
38614 (reboot_mod_SOURCES): Likewise.
38615
38616 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
38617 commands/i386/pc/reboot.c by commands/reboot.c.
38618 (reboot_mod_SOURCES): Likewise.
38619
38620 * commands/i386/pc/reboot.c: merge this file ...
38621
38622 * commands/ieee1275/reboot.c: ... and this file ...
38623
38624 * commands/reboot.c: ... to this file.
38625 Add some precompiler directive to include the correct header for
38626 each machine.
38627
38628 * commands/ieee1275/halt.c: move this file ...
38629
38630 * commands/halt.c: ... to here.
38631 Add some precompiler directive to include the correct header for
38632 each machine.
38633
38634 * include/grub/efi/efi.h (grub_reboot): New function declaration.
38635 (grub_halt): Likewise.
38636
38637 * kern/efi/efi.c (grub_reboot): New function.
38638 (grub_halt): Likewise.
38639
38640 2008-02-12 Robert Millan <rmh@aybabtu.com>
38641
38642 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
38643 /dev (like it is done for /dev/mapper). This doesn't provide support
38644 for EVMS, but at least it is now easy to identify the problem when it
38645 arises.
38646
38647 2008-02-11 Robert Millan <rmh@aybabtu.com>
38648
38649 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
38650 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
38651 comparing it with -1, not 0.
38652
38653 2008-02-10 Robert Millan <rmh@aybabtu.com>
38654
38655 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
38656 `disk/lvm.c'.
38657 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38658 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
38659
38660 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
38661 `disk/lvm.c' to the end of the list.
38662 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38663 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38664
38665 2008-02-10 Robert Millan <rmh@aybabtu.com>
38666
38667 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
38668 grub_print_error() instead. This will let user know why we're entering
38669 rescue mode.
38670 Based on suggestions from Sam Morris.
38671
38672 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
38673
38674 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
38675 on remaining N args, instead of "--" arg N times.
38676
38677 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
38678
38679 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
38680 (fill_with_default_glyph): Changed to use unknown_glyph for fill
38681 pattern for unknown glyphs.
38682
38683 2008-02-09 Robert Millan <rmh@aybabtu.com>
38684
38685 * configure.ac: Probe for `help2man'.
38686 * Makefile.in (builddir): New variable.
38687 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
38688 or otherwise add a few flags/options to it.
38689 (install-local): For every executable utility or script that is
38690 installed, invoke $(HELP2MAN) to install a manpage based on --help
38691 output.
38692
38693 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
38694 that it doesn't prevent --help from working in build tree.
38695
38696 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
38697 with `bug-grub@gnu.org'.
38698 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
38699 * util/update-grub.in (usage): New function.
38700 Implement proper argument check, with support for --help and --version
38701 (as well as existing -y).
38702
38703 2008-02-09 Christian Franke <franke@computer.org>
38704
38705 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
38706 avoid overwriting previous output.
38707 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
38708
38709 2008-02-09 Robert Millan <rmh@aybabtu.com>
38710
38711 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
38712 drawing the menu.
38713
38714 2008-02-09 Robert Millan <rmh@aybabtu.com>
38715
38716 * commands/sleep.c: New file.
38717 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
38718 (sleep_mod_SOURCES): New variable.
38719 (sleep_mod_CFLAGS): Likewise.
38720 (sleep_mod_LDFLAGS): Likewise.
38721
38722 2008-02-09 Robert Millan <rmh@aybabtu.com>
38723
38724 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
38725 situations in which we can deduce the RAID size and the superblock
38726 doesn't match it.
38727
38728 2008-02-09 Robert Millan <rmh@aybabtu.com>
38729
38730 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
38731 and return a grub_diskmemberlist_t composed of LVM physical volumes.
38732 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
38733
38734 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
38735 and return a grub_diskmemberlist_t composed of physical array members.
38736 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
38737
38738 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
38739 prototype.
38740 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
38741 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
38742 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
38743
38744 * util/grub-probe.c (probe): Move partmap probing code from here ...
38745 (probe_partmap): ... to here.
38746 (probe): Use probe_partmap() once for the disk we're probing, and
38747 additionally, when such disk contains a memberlist() struct member,
38748 once for each disk that is contained in the structure returned by
38749 memberlist().
38750
38751 2008-02-09 Robert Millan <rmh@aybabtu.com>
38752
38753 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
38754 environment variable to 'all' in order to obtain debug output from
38755 non-util/ code.
38756 * util/i386/pc/grub-setup.c (main): Likewise.
38757
38758 2008-02-08 Robert Millan <rmh@aybabtu.com>
38759
38760 * disk/raid.c (grub_raid_scan_device): Check for
38761 `array->device[sb.this_disk.number]' rather than for
38762 `array->device[sb.this_disk.number]->name', since the latter is not
38763 guaranteed to be accessible.
38764
38765 2008-02-08 Robert Millan <rmh@aybabtu.com>
38766
38767 * disk/raid.c: Update copyright.
38768 * fs/cpio.c: Likewise.
38769 * include/grub/raid.h: Likewise.
38770 * loader/i386/pc/multiboot.c: Likewise.
38771 * util/hostfs.c: Likewise.
38772
38773 2008-02-08 Robert Millan <rmh@aybabtu.com>
38774
38775 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
38776 to a grub_disk_t array.
38777 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
38778 `device[x]'.
38779 (grub_raid_scan_device): Replace `device[x].name' accesses with
38780 `device[x]->name'. Simplify initialization of `array->device[x]'.
38781
38782 2008-02-08 Robert Millan <rmh@aybabtu.com>
38783
38784 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
38785 grub_dprintf() calls.
38786 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
38787 error message.
38788
38789 2008-02-07 Christian Franke <franke@computer.org>
38790
38791 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
38792 instead of fseek and ftell to support large files.
38793 (grub_hostfs_read): Likewise.
38794
38795 2008-02-07 Robert Millan <rmh@aybabtu.com>
38796
38797 Patch from Jeroen Dekkers.
38798 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
38799 failure, since successfully reading all array members might not be
38800 required.
38801
38802 2008-02-06 Robert Millan <rmh@aybabtu.com>
38803
38804 * util/grub-probe.c (probe): Simplify partmap probing (with the
38805 assumption that the first word up to the underscore equals to
38806 the module name).
38807
38808 2008-02-06 Christian Franke <franke@computer.org>
38809
38810 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
38811 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
38812 last block of a cpio or tar stream.
38813 Check for "TRAILER!!!" instead of any empty data
38814 block to detect last block of a cpio stream.
38815 (grub_cpio_dir): Fix constness of variable np.
38816 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
38817 cpio or tar trailer is detected. This fixes a crash
38818 on open of a non existing file.
38819
38820 2008-02-05 Bean <bean123ch@gmail.com>
38821
38822 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
38823 address of entry.
38824 (grub_multiboot_load_elf64): Likewise.
38825 (grub_multiboot): Initialize mbi structure.
38826
38827 * util/grub-fstest.c: Don't include unused header file script.h.
38828
38829 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
38830 of file.
38831 (grub_fstest_SOURCES): Likewise.
38832
38833 2008-02-05 Robert Millan <rmh@aybabtu.com>
38834
38835 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
38836 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
38837 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
38838 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
38839
38840 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
38841 (translation_table): Replace hardcoded values with macros
38842 provided by `<grub/term.h>'.
38843
38844 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
38845 (keyboard_map): Correct/add a few values, with macros provided
38846 by `<grub/term.h>'.
38847 (keyboard_map_shift): Zero values that don't differ from their
38848 `keyboard_map' equivalents.
38849 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
38850 Discard the second scan code that is always sent by Caps lock.
38851 Only use `keyboard_map_shift' when it provides a non-zero value,
38852 otherwise fallback to `keyboard_map'.
38853
38854 2008-02-04 Bean <bean123ch@gmail.com>
38855
38856 * Makefile.in (enable_grub_fstest): New variable.
38857
38858 * conf/common.rmk (grub_fstest_init.lst): New rule.
38859 (grub_fstest_init.h): Likewise.
38860 (grub_fstest_init.c): Likewise.
38861 (util/grub-fstest.c_DEPENDENCIES): New variable.
38862 (grub_fstest_SOURCES): Likewise.
38863
38864 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
38865
38866 * util/grub-fstest.c: New file.
38867
38868 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38869
38870 Make grub-setup handle a separate root device.
38871
38872 * util/i386/pc/grub-setup.c (setup): Always open the root device,
38873 so that the root device can be compared with the destination
38874 device.
38875 When embedding the core image, if the root and destination devices
38876 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
38877 0xFF.
38878 When not embedding, set ROOT_DRIVE to 0xFF.
38879
38880 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38881
38882 Add support for having a grub directory in a different drive. This
38883 is still only the data handling part.
38884
38885 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
38886 (codestart): Save %dh in GRUB_ROOT_DRIVE.
38887 (grub_root_drive): New variable.
38888
38889 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
38890 instead of GRUB_BOOT_DRIVE to construct a device name. Set
38891 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
38892 as it was.
38893
38894 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
38895
38896 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
38897 macro.
38898 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
38899
38900 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
38901 is bogus, because PXE booting does not specify any drive
38902 correctly.
38903
38904 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
38905 am not sure if this is really correct.
38906
38907 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
38908 is always identical to the boot drive when booting from a CD.
38909
38910 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
38911 longer.
38912 (root_drive): New variable.
38913 (real_start): Unconditionally set %dh to ROOT_DRIVE.
38914 (setup_sectors): Push %dx right after popping it, because %dh will
38915 be modified later.
38916 (copy_buffer): Restore %dx.
38917
38918 2008-02-03 Robert Millan <rmh@aybabtu.com>
38919
38920 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
38921 use `cdboot.img' for cdrom images.
38922
38923 2008-02-03 Robert Millan <rmh@aybabtu.com>
38924
38925 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
38926 only setup gfxterm when `font' command has succeeded.
38927
38928 2008-02-03 Robert Millan <rmh@aybabtu.com>
38929
38930 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
38931 (grub_rescue_cmd_multiboot_loader)
38932 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
38933
38934 2008-02-03 Pavel Roskin <proski@gnu.org>
38935
38936 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
38937 %edx and %esi from stack only after grub_gate_a20() is called.
38938 grub_gate_a20() clobbers %edx.
38939
38940 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38941
38942 * configure.ac (AC_INIT): Bumped to 1.96.
38943
38944 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
38945 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
38946 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
38947 video/readers/png.c.
38948
38949 2008-02-03 Bean <bean123ch@gmail.com>
38950
38951 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
38952 (cdboot_img_SOURCES): New variable.
38953 (cdboot_img_ASFLAGS): New variable.
38954 (cdboot_img_LDFLAGS): New variable.
38955
38956 * boot/i386/pc/cdboot.S: New file.
38957
38958 * disk/i386/pc/biosdisk.c (cd_start): New variable.
38959 (cd_count): Likewise.
38960 (grub_biosdisk_get_drive): Add support for cd device.
38961 (grub_biosdisk_call_hook): Likewise.
38962 (grub_biosdisk_iterate): Likewise.
38963 (grub_biosdisk_open): Likewise.
38964 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
38965 (grub_biosdisk_rw): Support reading from cd device.
38966 (GRUB_MOD_INIT): Iterate cd devices.
38967
38968 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
38969 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
38970 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
38971
38972 * kern/i386/pc/init.c (make_install_device): Check for cd device.
38973
38974 2008-02-02 Robert Millan <rmh@aybabtu.com>
38975
38976 * commands/read.c: New file.
38977 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
38978 (read_mod_SOURCES): New variable.
38979 (read_mod_CFLAGS): Likewise.
38980 (read_mod_LDFLAGS): Likewise.
38981
38982 2008-02-02 Robert Millan <rmh@aybabtu.com>
38983
38984 * normal/main.c (grub_normal_execute): Check for `menu->size' when
38985 determining whether menu has to be displayed.
38986
38987 2008-02-02 Marco Gerards <marco@gnu.org>
38988
38989 * bus/pci.c: New file.
38990
38991 * include/grub/pci.h: Likewise.
38992
38993 * include/grub/i386/pc/pci.h: Likewise.
38994
38995 * commands/lspci.c: Likewise.
38996
38997 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
38998 `lspci.mod'.
38999 (pci_mod_SOURCES): New variable.
39000 (pci_mod_CFLAGS): Likewise.
39001 (pci_mod_LDFLAGS): Likewise.
39002 (lspci_mod_SOURCES): Likewise.
39003 (lspci_mod_CFLAGS): Likewise.
39004 (lspci_mod_LDFLAGS): Likewise.
39005
39006 2008-02-02 Bean <bean123ch@gmail.com>
39007
39008 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
39009 (grub_ufs_get_file_block): Fix indirect block calculation problem.
39010
39011 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
39012 (grub_xfs_btree_node): New structure.
39013 (grub_xfs_btree_root): New structure.
39014 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
39015 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
39016 (GRUB_XFS_EXTENT_BLOCK): Likewise.
39017 (GRUB_XFS_EXTENT_SIZE): Likewise.
39018 (grub_xfs_read_block): Support btree format type.
39019 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
39020 Use directory block as basic unit.
39021
39022 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
39023
39024 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
39025 __attribute__ ((__regparm__ (1))).
39026
39027 2008-02-01 Robert Millan <rmh@aybabtu.com>
39028
39029 Correct a mistake in previous commit.
39030
39031 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
39032 top.
39033 (normal/command.c_DEPENDENCIES): New variable.
39034
39035 2008-02-01 Robert Millan <rmh@aybabtu.com>
39036
39037 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
39038 top.
39039 (normal/command.c_DEPENDENCIES): New variable.
39040 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
39041 * conf/i386-ieee1275.rmk: Likewise.
39042 * conf/i386-linuxbios.rmk: Likewise.
39043 * conf/i386-pc.rmk: Likewise.
39044 * conf/sparc64-ieee1275.rmk: Likewise.
39045 * conf/powerpc-ieee1275.rmk: Likewise.
39046 (grub_emu_SOURCES): Add `fs/fshelp.c'.
39047
39048 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
39049
39050 2008-02-01 Robert Millan <rmh@aybabtu.com>
39051
39052 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
39053 call at beginning of function.
39054
39055 2008-01-31 Pavel Roskin <proski@gnu.org>
39056
39057 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
39058 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
39059 (grub_mkrescue_SOURCES): Likewise.
39060 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
39061
39062 2008-01-30 Robert Millan <rmh@aybabtu.com>
39063
39064 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
39065 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
39066 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
39067 (grub_probe_SOURCES): ... to here.
39068
39069 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
39070 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
39071 * conf/i386-ieee1275.rmk: Likewise.
39072 * conf/i386-linuxbios.rmk: Likewise.
39073 * conf/powerpc-ieee1275.rmk: Likewise.
39074
39075 2008-01-30 Tristan Gingold <gingold@free.fr>
39076
39077 * kern/rescue.c: Silently accept empty lines.
39078
39079 2008-01-29 Bean <bean123ch@gmail.com>
39080
39081 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
39082 (real_code_2): Code cleanup and change comment style.
39083 (move_memory): Avoid using 32-bit address mode.
39084
39085 2008-01-29 Bean <bean123ch@gmail.com>
39086
39087 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
39088 (png_mod_SOURCES): New variable.
39089 (png_mod_CFLAGS): Likewise.
39090 (png_mod_LDFLAGS): Likewise.
39091
39092 * video/readers/png.c: New file.
39093
39094 2008-01-28 Robert Millan <rmh@aybabtu.com>
39095
39096 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
39097 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
39098 `ifndef GRUB_MOD_GAP' hack.
39099 * util/elf/grub-mkimage.c (add_segments): Likewise.
39100
39101 2008-01-27 Robert Millan <rmh@aybabtu.com>
39102
39103 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
39104 `GRUB_MOD_GAP' for platforms in which it's not defined.
39105 * util/elf/grub-mkimage.c (add_segments): Likewise.
39106
39107 2008-01-27 Robert Millan <rmh@aybabtu.com>
39108
39109 Get grub-emu to build again (including parallel builds).
39110
39111 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
39112 Split into ...
39113 (util/grub-emu.c_DEPENDENCIES): ... this, ...
39114 (normal/execute.c_DEPENDENCIES): ... this, ...
39115 (grub-emu_DEPENDENCIES): ... and this.
39116
39117 * conf/i386-efi.rmk: Likewise.
39118 * conf/i386-linuxbios.rmk: Likewise.
39119 * conf/i386-ieee1275.rmk: Likewise.
39120 * conf/powerpc-ieee1275.rmk: Likewise.
39121 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
39122
39123 2008-01-27 Robert Millan <rmh@aybabtu.com>
39124
39125 * NEWS: Add a few items.
39126
39127 2008-01-27 Robert Millan <rmh@aybabtu.com>
39128
39129 Fix parallel builds with grub-emu. Based on earlier commit for
39130 grub-probe and grub-setup.
39131
39132 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39133 (util/grub-emu.c_DEPENDENCIES): ... this.
39134 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39135 (util/grub-emu.c_DEPENDENCIES): ... this.
39136 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39137 (util/grub-emu.c_DEPENDENCIES): ... this.
39138 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39139 (util/grub-emu.c_DEPENDENCIES): ... this.
39140 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39141 (util/grub-emu.c_DEPENDENCIES): ... this.
39142
39143 2008-01-27 Pavel Roskin <proski@gnu.org>
39144
39145 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
39146 to create a gap between _end and the modules added to the image
39147 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
39148 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
39149 * util/elf/grub-mkimage.c (add_segments): Likewise.
39150
39151 2008-01-26 Pavel Roskin <proski@gnu.org>
39152
39153 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
39154 just return an error.
39155
39156 2008-01-26 Bean <bean123ch@gmail.com>
39157
39158 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
39159 (grub_reiserfs_get_item): Save offset of the next item.
39160 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
39161
39162 2008-01-25 Robert Millan <rmh@aybabtu.com>
39163
39164 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
39165 make all filesystem sources appear together (possibly fixing omissions
39166 while at it).
39167 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39168 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39169 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39170 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39171
39172 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
39173 add `kern/file.c'.
39174 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
39175 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39176 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
39177 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39178
39179 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
39180 (probe): Add a sanity check to make sure of our ability to read
39181 requested files when probing for filesystem type.
39182
39183 * genmk.rb: Update copyright year (2007).
39184
39185 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
39186 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
39187 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
39188 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
39189 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
39190 : Remove function prototypes.
39191
39192 2008-01-25 Robert Millan <rmh@aybabtu.com>
39193
39194 Revert my previous commits (based on wrong assumption of how grub_errno
39195 works).
39196
39197 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
39198 * kern/file.c (grub_file_open): Likewise.
39199
39200 2008-01-24 Pavel Roskin <proski@gnu.org>
39201
39202 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
39203 that hang if GRUB tries to setup colors.
39204 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
39205 colors for firmwares that don't support it.
39206 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
39207 Recognize Open Hack'Ware, set flags to work around its
39208 limitations.
39209
39210 2008-01-24 Robert Millan <rmh@aybabtu.com>
39211
39212 * kern/file.c (grub_file_open): Do not account previous failures of
39213 unrelated functions when grub_errno is checked for.
39214 Reported by Oleg Strikov.
39215
39216 2008-01-24 Bean <bean123ch@gmail.com>
39217
39218 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
39219 (grub_ufs_sblock): New member volume name.
39220 (grub_ufs_find_file): Fix string copy bug.
39221 (grub_ufs_label): Implement this function properly.
39222
39223 * fs/hfs.c (grub_hfs_cnid_type): New enum.
39224 (grub_hfs_iterate_records): Use the correct file number for extents
39225 and catalog file. Fix problem in next index calculation.
39226 (grub_hfs_find_node): Replace recursive function call with loop.
39227 (grub_hfs_iterate_dir): Replace recursive function call with loop.
39228
39229 2008-01-23 Robert Millan <rmh@aybabtu.com>
39230
39231 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
39232 `<grub/symbol.h>' and `<grub/multiboot.h>'.
39233 (grub_multiboot2_real_boot): New function prototype.
39234
39235 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
39236 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
39237
39238 * kern/i386/ieee1275/init.c (grub_os_area_addr)
39239 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
39240
39241 2008-01-23 Robert Millan <rmh@aybabtu.com>
39242
39243 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
39244 #ifdef'ed out grub_printf().
39245
39246 2008-01-23 Robert Millan <rmh@aybabtu.com>
39247
39248 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
39249 grub_dprintf calls, since they make "debug=all" mode unusable.
39250 (grub_console_checkkey): Likewise.
39251
39252 2008-01-23 Robert Millan <rmh@aybabtu.com>
39253
39254 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
39255 `term/i386/pc/at_keyboard.c'.
39256 (pkglib_MODULES): Add `serial.mod'.
39257 (serial_mod_SOURCES): New variable.
39258 (serial_mod_CFLAGS): Likewise.
39259 (serial_mod_LDFLAGS): Likewise.
39260
39261 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
39262 `<grub/powerpc/ieee1275/console.h>'.
39263 (grub_keyboard_controller_init): New function prototype.
39264 (grub_console_checkkey): Likewise.
39265 (grub_console_getkey): Likewise.
39266
39267 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
39268 keyboard on i386.
39269
39270 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
39271 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
39272
39273 2008-01-23 Robert Millan <rmh@aybabtu.com>
39274
39275 * kern/i386/pc/init.c (make_install_device): When memdisk image is
39276 present, "(memdisk)/boot/grub" becomes the default prefix.
39277
39278 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
39279 a memdisk tarball with all the modules. Add --overlay=DIR option that
39280 allows users to overlay additional files into the image.
39281
39282 2008-01-23 Robert Millan <rmh@aybabtu.com>
39283
39284 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
39285 and `machine/memory.h'.
39286 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
39287 (_multiboot_mod_SOURCES): New variable.
39288 (_multiboot_mod_CFLAGS): Likewise.
39289 (_multiboot_mod_LDFLAGS): Likewise.
39290 (multiboot_mod_SOURCES): Likewise.
39291 (multiboot_mod_CFLAGS): Likewise.
39292 (multiboot_mod_LDFLAGS): Likewise.
39293
39294 * include/grub/i386/ieee1275/loader.h: New file.
39295
39296 * include/grub/i386/ieee1275/machine.h: Likewise.
39297
39298 * include/grub/i386/ieee1275/memory.h: Likewise.
39299
39300 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
39301 variable declaration.
39302 (grub_os_area_size): Likewise.
39303
39304 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
39305 (grub_lower_mem, grub_upper_mem): New variables.
39306 (grub_stop_floppy): New function (just to make
39307 grub_multiboot2_real_boot() happy).
39308
39309 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
39310 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
39311 (grub_stop): New function.
39312 Include `"../realmode.S"' and `"../loader.S"'.
39313
39314 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
39315 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
39316
39317 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
39318 rely on grub_multiboot2_real_boot() for final boot.
39319
39320 2008-01-22 Robert Millan <rmh@aybabtu.com>
39321
39322 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
39323 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
39324 device that doesn't look like an SD card.
39325 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
39326 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
39327 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
39328 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
39329 found.
39330
39331 2008-01-22 Robert Millan <rmh@aybabtu.com>
39332
39333 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
39334 avoid claiming over our own code.
39335
39336 2008-01-22 Bean <bean123ch@gmail.com>
39337
39338 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
39339 (jpeg_mod_SOURCES): New variable.
39340 (jpeg_mod_CFLAGS): Likewise.
39341 (jpeg_mod_LDFLAGS): Likewise.
39342
39343 * video/readers/jpeg.c : New file.
39344
39345 2008-01-22 Bean <bean123ch@gmail.com>
39346
39347 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
39348 there are no more items.
39349
39350 2008-01-21 Robert Millan <rmh@aybabtu.com>
39351
39352 * kern/mm.c (grub_mm_init_region): Improve debug message.
39353
39354 2008-01-21 Robert Millan <rmh@aybabtu.com>
39355
39356 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
39357 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
39358 address.
39359 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
39360 a C macro.
39361 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
39362 Indicates start of upper memory.
39363 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
39364 (generate_image): Abort when image size is big enough to corrupt
39365 upper memory.
39366
39367 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
39368 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
39369 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39370 instead of hardcoding 0xA0000.
39371 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
39372 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39373 instead of hardcoding 0xA0000.
39374
39375 2008-01-21 Robert Millan <rmh@aybabtu.com>
39376
39377 * disk/memdisk.c (memdisk_size): New variable.
39378 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
39379 `memdisk_size'.
39380 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
39381 image to dynamic memory.
39382 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
39383 `memdisk_size'. Free memdisk block.
39384
39385 2008-01-21 Robert Millan <rmh@aybabtu.com>
39386
39387 Fix detection of very small filesystems (like tar).
39388
39389 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
39390 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
39391 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
39392 a problem with this disk).
39393
39394 2008-01-21 Robert Millan <rmh@aybabtu.com>
39395
39396 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
39397 on grub_biosdisk_rw_standard() error.
39398
39399 2008-01-21 Robert Millan <rmh@aybabtu.com>
39400
39401 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
39402 recent changes.
39403 * kern/elf.c: Likewise.
39404 * kern/ieee1275/ieee1275.c: Likewise.
39405 * kern/powerpc/ieee1275/openfw.c: Likewise.
39406 * term/ieee1275/ofconsole.c: Likewise.
39407
39408 2008-01-21 Robert Millan <rmh@aybabtu.com>
39409
39410 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
39411
39412 * include/grub/kernel.h (grub_arch_memdisk_addr)
39413 (grub_arch_memdisk_size): Moved from here ...
39414
39415 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
39416 (grub_arch_memdisk_size): ... to here.
39417
39418 2008-01-21 Robert Millan <rmh@aybabtu.com>
39419
39420 Mostly based on bugfix from Bean.
39421
39422 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
39423 attribute with hook() parameter.
39424 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
39425 declaration.
39426 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
39427 attribute with hook() parameter.
39428 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
39429 declaration.
39430
39431 2008-01-21 Robert Millan <rmh@aybabtu.com>
39432
39433 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
39434 (pkglib_MODULES): Add `memdisk.mod'.
39435 (memdisk_mod_SOURCES): New variable.
39436 (memdisk_mod_CFLAGS): Likewise.
39437 (memdisk_mod_LDFLAGS): Likewise.
39438
39439 * disk/memdisk.c: New file.
39440
39441 * include/grub/disk.h (grub_disk_dev_id): Add
39442 `GRUB_DISK_DEVICE_MEMDISK_ID'.
39443
39444 * include/grub/i386/pc/kernel.h
39445 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
39446 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
39447 (grub_kernel_image_size): New variable declaration.
39448 (grub_total_module_size): Likewise.
39449 (grub_memdisk_image_size): Likewise.
39450
39451 * include/grub/i386/pc/memory.h
39452 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
39453
39454 * include/grub/kernel.h: Include `<grub/symbol.h>'.
39455 (grub_arch_memdisk_addr): New variable declaration.
39456 (grub_arch_memdisk_size): Likewise.
39457
39458 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
39459 (grub_arch_memdisk_size): Likewise.
39460
39461 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
39462 (codestart): Replace hardcoded `0x100000' with
39463 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
39464
39465 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
39466 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
39467 not NULL, append the contents of the file it refers to, at the end of
39468 the compressed kernel image. Initialize `grub_memdisk_image_size'
39469 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
39470 (options): Add "memdisk"|'m' option.
39471 (main): Parse --memdisk|-m option, and pass user-provided path as
39472 parameter to generate_image().
39473
39474 2008-01-20 Robert Millan <rmh@aybabtu.com>
39475
39476 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
39477 grub_dprintf() calls from here ...
39478 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
39479
39480 2008-01-20 Robert Millan <rmh@aybabtu.com>
39481
39482 Fix detection of "real mode" when /options/real-mode? doesn't exist.
39483
39484 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
39485 declaration.
39486 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
39487 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
39488 `GRUB_IEEE1275_FLAG_REAL_MODE'.
39489 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
39490 property).
39491 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
39492 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
39493
39494 2008-01-19 Robert Millan <rmh@aybabtu.com>
39495
39496 Get rid of confusing function (superseded by
39497 `grub_ieee1275_get_integer_property')
39498 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
39499 prototype.
39500 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
39501 function.
39502 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
39503 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
39504 in native endianness from grub_ieee1275_get_integer_property().
39505
39506 2008-01-19 Robert Millan <rmh@aybabtu.com>
39507
39508 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
39509 command after "shut-down", since implementations differ on which
39510 the command for halt is.
39511
39512 2008-01-19 Robert Millan <rmh@aybabtu.com>
39513
39514 * include/grub/i386/linuxbios/console.h: Add header protection.
39515 (grub_keyboard_controller_init): New function prototype.
39516 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
39517 (KEYBOARD_COMMAND_READ): Likewise.
39518 (KEYBOARD_COMMAND_WRITE): Likewise.
39519 (KEYBOARD_SCANCODE_SET1): Likewise.
39520 (grub_keyboard_controller_write): New function.
39521 (grub_keyboard_controller_read): Likewise.
39522 (grub_keyboard_controller_init): Likewise.
39523
39524 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
39525 (grub_console_init): On coreboot/LinuxBIOS, call
39526 grub_keyboard_controller_init().
39527
39528 2008-01-19 Robert Millan <rmh@aybabtu.com>
39529
39530 PowerPC changes provided by Pavel Roskin.
39531
39532 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
39533 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
39534 don't rely on cmain() doing it.
39535 * kern/i386/ieee1275/startup.S (_start): Store %eax in
39536 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
39537
39538 2008-01-16 Robert Millan <rmh@aybabtu.com>
39539
39540 * include/grub/i386/linuxbios/memory.h
39541 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
39542 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
39543 receive `table_header' as argument. Instead, probe for it in the
39544 known memory ranges where it can be present.
39545 (grub_available_iterate): Do not pass a fixed `table_header' address
39546 to grub_linuxbios_table_iterate().
39547
39548 2008-01-15 Robert Millan <rmh@aybabtu.com>
39549
39550 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
39551 * conf/i386-ieee1275.rmk: New file.
39552 * include/grub/i386/ieee1275/console.h: Likewise.
39553 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
39554 * include/grub/i386/ieee1275/kernel.h: Likewise.
39555 * include/grub/i386/ieee1275/time.h: Likewise.
39556 * kern/i386/ieee1275/init.c: Likewise.
39557 * kern/i386/ieee1275/startup.S: Likewise.
39558
39559 2008-01-15 Robert Millan <rmh@aybabtu.com>
39560
39561 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
39562 when pointers are 32-bit (but still do set it to one when they are
39563 64-bit).
39564
39565 2008-01-15 Robert Millan <rmh@aybabtu.com>
39566
39567 * include/grub/ieee1275/ieee1275.h
39568 (grub_ieee1275_get_integer_property): New function prototype.
39569
39570 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
39571 (grub_ieee1275_get_integer_property): New function. Wraps around
39572 grub_ieee1275_get_property() to handle endianness.
39573
39574 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
39575 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
39576 where appropriate.
39577 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
39578 (grub_map): Likewise.
39579 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
39580
39581 2008-01-15 Bean <bean123ch@gmail.com>
39582
39583 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
39584 (grub_script_execute_cmdline): Reset grub_errno.
39585
39586 * normal/main.c (read_config_file): Reset grub_errno.
39587
39588 * normal/parse.y (script_init): New.
39589 (script): Move function and menuentry here.
39590 (delimiter): New.
39591 (command): Add delimiter at the end of command.
39592 (commands): Adjust to match the new command.
39593 (commandblock): Remove grub_script_lexer_record_start.
39594 (menuentry): Add grub_script_lexer_record_start, use the new commands.
39595 (if): Use the new commands.
39596
39597 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
39598
39599 2008-01-15 Robert Millan <rmh@aybabtu.com>
39600
39601 * normal/menu.c (run_menu): Move timeout message from here ...
39602 (print_timeout): ... to here.
39603 (run_menu): Use print_timeout() once during initial draw to print
39604 the whole message, and again in every clock tick to update only
39605 the number of seconds.
39606
39607 2008-01-15 Robert Millan <rmh@aybabtu.com>
39608
39609 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
39610 actual size of `available' from grub_ieee1275_get_property(), and
39611 restrict parsing to that bound.
39612
39613 2008-01-15 Christian Franke <franke@computer.org>
39614
39615 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
39616 (argp_program_version): Remove variable.
39617 (argp_program_bug_address): Likewise.
39618 (options): Convert from struct argp_option to struct option.
39619 (struct arguments): Remove.
39620 (parse_opt): Remove.
39621 (usage): New function.
39622 (main): Replace struct args members by simple variables.
39623 Replace argp_parse() by getopt_long().
39624 Add switch to evaluate options.
39625 Add missing "(...)" around root_dev in prefix string.
39626
39627 2008-01-14 Robert Millan <rmh@aybabtu.com>
39628
39629 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
39630 for grub_ieee1275_exit(), in order to improve portability.
39631
39632 2008-01-14 Robert Millan <rmh@aybabtu.com>
39633
39634 * util/grub.d/10_linux.in (prefix): Define.
39635 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
39636
39637 2008-01-13 Pavel Roskin <proski@gnu.org>
39638
39639 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
39640 grub_errno if no errors have been detected.
39641
39642 2008-01-12 Robert Millan <rmh@aybabtu.com>
39643
39644 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
39645 (grub_util_get_dev_abstraction): New function prototype.
39646
39647 * util/getroot.c: Include `<grub/util/getroot.h>'
39648 (grub_util_get_grub_dev): Move detection of abstraction type to ...
39649 (grub_util_get_dev_abstraction): ... here (new function).
39650
39651 * util/grub-probe.c: Convert PRINT_* to an enum. Add
39652 `PRINT_ABSTRACTION'.
39653 (probe): Probe for abstraction type when requested.
39654 (main): Understand `--target=abstraction'.
39655
39656 * util/i386/efi/grub-install.in: Add abstraction module to core
39657 image when it is found to be necessary.
39658 * util/i386/pc/grub-install.in: Likewise.
39659 * util/powerpc/ieee1275/grub-install.in: Likewise.
39660
39661 * util/update-grub_lib.in (font_path): Return system path without
39662 converting to GRUB path.
39663 * util/update-grub.in: Convert system path returned by font_path()
39664 to a GRUB path. Use `grub-probe -t abstraction' to determine what
39665 abstraction module is needed for loading fonts (if any). Export
39666 that as `GRUB_PRELOAD_MODULES'.
39667 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
39668 insmod commands).
39669
39670 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
39671
39672 Remove some unused code from reiserfs.
39673
39674 * fs/reiserfs.c (struct grub_reiserfs_key)
39675 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
39676 (struct grub_reiserfs_node_body): Removed.
39677 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39678 Likewise.
39679 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39680 Likewise.
39681 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39682 Likewise.
39683 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39684 Likewise.
39685 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39686 Likewise.
39687 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
39688 Likewise.
39689 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39690 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39691 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39692
39693 2008-01-10 Robert Millan <rmh@aybabtu.com>
39694
39695 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
39696 Determines if a file is garbage left by packaging systems, etc.
39697 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
39698 for processing /etc/grub.d scripts.
39699 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
39700 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
39701 as a condition for processing Linux images.
39702
39703 2008-01-10 Pavel Roskin <proski@gnu.org>
39704
39705 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
39706 to compile reiserfs.c on PowerPC.
39707
39708 2008-01-10 Robert Millan <rmh@aybabtu.com>
39709
39710 * kern/device.c (grub_device_iterate): Do not abort device iteration
39711 when one of the devices cannot be opened.
39712 * kern/disk.c (grub_disk_open): Do not account previous failures of
39713 unrelated functions when grub_errno is checked for.
39714
39715 2008-01-08 Robert Millan <rmh@aybabtu.com>
39716
39717 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
39718 `! grub_linux_is_bzimage', change order of address comparison to make
39719 it more intuitive, and improve "too big zImage" error message.
39720
39721 2008-01-08 Robert Millan <rmh@aybabtu.com>
39722
39723 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
39724 `$(update-grub_DATA)'.
39725 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
39726 targets.
39727
39728 2008-01-07 Robert Millan <rmh@aybabtu.com>
39729
39730 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
39731 which instruction is modified by grub-setup during installation
39732 (since it wasn't obvious by only looking at this file).
39733
39734 2008-01-07 Robert Millan <rmh@aybabtu.com>
39735
39736 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
39737 listing actual TODO items.
39738
39739 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39740
39741 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
39742 correctly.
39743 (grub_reiserfs_get_key_offset): Likewise.
39744 (grub_reiserfs_set_key_offset): Likewise.
39745 (grub_reiserfs_set_key_type): Likewise.
39746 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
39747
39748 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
39749 better to remove the bitfield version completely.
39750
39751 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39752
39753 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
39754 allocated from the heap, due to the fshelp implementation.
39755 (grub_reiserfs_dir): Free NODE, due to the same reason.
39756
39757 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39758
39759 Mostly from Vincent Pelletier:
39760
39761 * fs/reiserfs.c: New file.
39762
39763 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
39764 (reiserfs_mod_SOURCES): New variable.
39765 (reiserfs_mod_CFLAGS): Likewise.
39766 (reiserfs_mod_LDFLAGS): Likewise.
39767
39768 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
39769 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
39770 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
39771 normal/color.c.
39772
39773 2008-01-06 Robert Millan <rmh@aybabtu.com>
39774
39775 * normal/color.c: Remove `<grub/env.h>'.
39776
39777 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
39778
39779 * include/grub/normal.h: Include <grub/env.h>.
39780
39781 2008-01-05 Robert Millan <rmh@aybabtu.com>
39782
39783 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
39784 usage example with `(hd0,1)'.
39785 Reported by Samuel Thibault.
39786
39787 2008-01-05 Robert Millan <rmh@aybabtu.com>
39788
39789 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
39790 (grub_linux_boot_zimage): Rename to ...
39791 (grub_linux_boot): ... this.
39792 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
39793 (grub_linux_boot_zimage): Conditionalize zImage copy.
39794
39795 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
39796 (grub_linux_boot_bzimage): Remove prototype.
39797 (grub_linux_boot_zimage): Rename to ...
39798 (grub_linux_boot): ... this.
39799
39800 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
39801 (grub_linux_boot): Remove function.
39802
39803 2008-01-05 Robert Millan <rmh@aybabtu.com>
39804
39805 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
39806 (grub_env_write_color_highlight): Likewise.
39807 (grub_wait_after_message): Likewise.
39808
39809 * normal/color.c: New file.
39810
39811 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39812 (normal_mod_DEPENDENCIES): Likewise.
39813
39814 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39815 (normal_mod_DEPENDENCIES): Likewise.
39816
39817 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39818 (normal_mod_DEPENDENCIES): Likewise.
39819
39820 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39821 (normal_mod_DEPENDENCIES): Likewise.
39822
39823 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
39824 for waiting after a message is printed.
39825 * normal/main.c (read_config_file): Likewise.
39826 (grub_normal_init): Register grub_env_write_color_normal() and
39827 grub_env_write_color_highlight() hooks. Mark `color_normal' and
39828 `color_highlight' variables as global.
39829
39830 * normal/menu.c (grub_wait_after_message): New function.
39831 (grub_color_menu_normal): New variable. Replaces ...
39832 (GRUB_COLOR_MENU_NORMAL): ... this macro.
39833 (grub_color_menu_highlight): New variable. Replaces ...
39834 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
39835 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
39836 `GRUB_TERM_COLOR_STANDARD'.
39837 (print_message): Use `grub_setcolorstate' to reload colors. Rename
39838 `normal_code' and `highlight_code' to `old_color_normal' and
39839 `old_color_highlight', respectively.
39840 (grub_menu_init_page): Update colors when drawing the menu, based on
39841 `menu_color_normal' and `menu_color_highlight' variables.
39842 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
39843 a message is printed.
39844
39845 2008-01-05 Robert Millan <rmh@aybabtu.com>
39846
39847 * kern/env.c (grub_env_context_open): Propagate hooks for global
39848 variables to new context.
39849
39850 * kern/main.c (grub_set_root_dev): Export `root' variable.
39851
39852 2008-01-05 Robert Millan <rmh@aybabtu.com>
39853
39854 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
39855 discs unconditionally, since udev and others have options to provide
39856 them.
39857
39858 2008-01-05 Robert Millan <rmh@aybabtu.com>
39859
39860 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
39861
39862 2008-01-04 Christian Franke <franke@computer.org>
39863
39864 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
39865 of eisa_mmap.
39866
39867 2008-01-03 Pavel Roskin <proski@gnu.org>
39868
39869 * kern/i386/linuxbios/init.c: Put "void" to all function
39870 declarations with no arguments.
39871 * kern/powerpc/ieee1275/init.c: Likewise.
39872 * term/i386/pc/at_keyboard.c: Likewise.
39873 * term/i386/pc/vga_text.c: Likewise.
39874 * util/grub-mkdevicemap.c: Likewise.
39875
39876 2008-01-02 Robert Millan <rmh@aybabtu.com>
39877
39878 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
39879 message when loaded image is out of bounds.
39880 (grub_multiboot_load_elf64): Likewise.
39881
39882 2008-01-02 Pavel Roskin <proski@gnu.org>
39883
39884 * util/grub.d/10_linux.in: Try version without ".old" when
39885 looking for initrd. It's better to use initrd from the newer
39886 kernel of the same version than no initrd at all.
39887
39888 2008-01-01 Robert Millan <rmh@aybabtu.com>
39889
39890 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
39891
39892 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
39893
39894 * include/grub/video.h: Added grub_video_unmap_color and
39895 grub_video_get_active_render_target.
39896 (grub_video_adapter): Added unmap_color and get_active_render_target.
39897
39898 * video/video.c: Added grub_video_unmap_color and
39899 grub_video_get_active_render_target.
39900 (grub_video_get_info): Changed method to accept NULL pointer as an
39901 argument to allow detection of active video adapter.
39902
39903 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
39904 grub_video_vbe_unmap_color_int.
39905 Added grub_video_vbe_unmap_color and
39906 grub_video_vbe_get_active_render_target.
39907 (grub_video_vbe_adapter): Added unmap_color and
39908 get_active_render_target.
39909
39910 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
39911 with grub_video_vbe_unmap_color_int.
39912
39913 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
39914 (DEFAULT_NORMAL_COLOR): Likewise.
39915 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
39916 (DEFAULT_FG_COLOR): Removed.
39917 (DEFAULT_BG_COLOR): Likewise.
39918 (DEFAULT_CURSOR_COLOR): Changed value.
39919 (grub_virtual_screen): Added standard_color_setting,
39920 normal_color_setting, highlight_color_setting and term_color.
39921 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
39922 (bitmap_width): Added.
39923 (bitmap_height): Likewise.
39924 (bitmap): Likewise.
39925 (set_term_color): Likewise.
39926 (grub_virtual_screen_setup): Changed to use new terminal coloring
39927 settings.
39928 (grub_gfxterm_init): Added init for bitmap.
39929 (grub_gfxterm_fini): Added destroy for bitmap.
39930 (redraw_screen_rect): Updated to use background bitmap and new
39931 terminal coloring.
39932 (scroll_up): Added optimization for case when there is no bitmap.
39933 (grub_gfxterm_cls): Fixed to use correct background color.
39934 (grub_virtual_screen_setcolorstate): Changed to use new terminal
39935 coloring.
39936 (grub_virtual_screen_setcolor): Likewise.
39937 (grub_virtual_screen_getcolor): Added.
39938 (grub_gfxterm_background_image_cmd): Likewise.
39939 (grub_video_term): Added setcolor and getcolor.
39940 (MOD_INIT): Added registration of background_image command.
39941 (MOD_TERM): Added unregistration for background_image command.
39942
39943 2007-12-30 Pavel Roskin <proski@gnu.org>
39944
39945 * loader/multiboot_loader.c: Fix multiboot command
39946 unregistration. Fix all typos in the word "multiboot".
39947
39948 2007-12-29 Pavel Roskin <proski@gnu.org>
39949
39950 * util/grub.d/10_linux.in: Refactor search for initrd. Add
39951 support for initrd names used in Fedora.
39952
39953 2007-12-26 Bean <bean123ch@gmail.com>
39954
39955 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
39956 (cpio_mod_SOURCES): New variable.
39957 (cpio_mod_CFLAGS): Likewise.
39958 (cpio_mod_LDFLAGS): Likewise.
39959
39960 * fs/cpio.c: New file.
39961
39962 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
39963
39964 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39965
39966 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39967
39968 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39969
39970 2007-12-25 Robert Millan <rmh@aybabtu.com>
39971
39972 * include/grub/term.h (struct grub_term): Add `getcolor' function.
39973 (grub_getcolor): New function.
39974
39975 * kern/term.c (grub_getcolor): New function.
39976 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
39977 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
39978 (print_entry): Set normal and highlight colors to
39979 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
39980 respectively, before printing and restore them to old
39981 values afterwards.
39982 (grub_menu_init_page): Likewise. Fill an additional colored space
39983 that would otherwise be left blank.
39984
39985 * term/efi/console.c (grub_console_getcolor): New function.
39986 (struct grub_console_term.getcolor): New variable.
39987 * term/i386/pc/console.c (grub_console_getcolor): New function.
39988 (struct grub_console_term.getcolor): New variable.
39989 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
39990 (struct grub_console_term.getcolor): New variable.
39991
39992 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
39993 (struct grub_console_term.setcolor): Remove variable.
39994 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
39995 (struct grub_console_term.setcolor): Remove variable.
39996 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
39997 (struct grub_console_term.setcolor): Remove variable.
39998 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
39999 (struct grub_console_term.setcolor): Remove variable.
40000
40001 2007-12-25 Robert Millan <rmh@aybabtu.com>
40002
40003 * configure.ac: Search for possible unifont.hex locations, and
40004 define UNIFONT_HEX if found.
40005
40006 * Makefile.in (UNIFONT_HEX): Define variable.
40007 (DATA): Rename to ...
40008 (PKGLIB): ... this. Update all users.
40009 (PKGDATA): New variable.
40010 (pkgdata_IMAGES): Rename to ...
40011 (pkglib_IMAGES): ... this. Update all users.
40012 (pkgdata_MODULES): Rename to ...
40013 (pkglib_MODULES): ... this. Update all users.
40014 (pkgdata_PROGRAMS): Rename to ...
40015 (pkglib_PROGRAMS): ... this. Update all users.
40016 (pkgdata_DATA): Rename to ...
40017 (pkglib_DATA): ... this. Update all users.
40018 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
40019 (unicode.pff, ascii.pff): New rules.
40020 (all-local): Add `$(PKGDATA)' dependency.
40021 (install-local): Process `$(PKGDATA)'.
40022
40023 * util/update-grub_lib.in (font_path): Search for *.pff files in
40024 a few more locations, including `${pkgdata}'.
40025
40026 2007-12-23 Robert Millan <rmh@aybabtu.com>
40027
40028 Patch from Bean <bean123ch@gmail.com>:
40029 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
40030 `size'.
40031
40032 2007-12-21 Bean <bean123ch@gmail.com>
40033
40034 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
40035 (ntfscomp_mod_SOURCES): New variable.
40036 (ntfscomp_mod_CFLAGS): Likewise.
40037 (ntfscomp_mod_LDFLAGS): Likewise.
40038
40039 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
40040 (grub_probe_SOURCES): Likewise.
40041 (grub_emu_SOURCES): Likewise.
40042
40043 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40044 (grub_emu_SOURCES): Likewise.
40045
40046 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40047 (grub_emu_SOURCES): Likewise.
40048
40049 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40050 (grub_emu_SOURCES): Likewise.
40051
40052 * fs/ntfs.c (grub_ntfscomp_func): New variable.
40053 (read_run_list): Renamed to grub_ntfs_read_run_list.
40054 (decomp_nextvcn): Moved to ntfscomp.c.
40055 (decomp_getch): Likewise.
40056 (decomp_get16): Likewise.
40057 (decomp_block): Likewise.
40058 (read_block): Likewise.
40059 (read_data): Partially moved to ntfscomp.c.
40060 (fixup): Change unsigned to grub_uint16_t.
40061 (read_mft): Change unsigned long to grub_uint32_t.
40062 (read_attr): Likewise.
40063 (read_data): Likewise.
40064 (read_run_data): Likewise.
40065 (read_run_list): Likewise.
40066 (read_mft): Likewise.
40067
40068 * fs/ntfscomp.c: New file.
40069
40070 * include/grub/ntfs.h: New file.
40071
40072 2007-12-16 Robert Millan <rmh@aybabtu.com>
40073
40074 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
40075 IDE disk check, since Linux is known to support 20 IDE disks.
40076 Reported by Colin Watson.
40077
40078 2007-12-15 Bean <bean123ch@gmail.com>
40079
40080 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
40081 (lnxboot_img_SOURCES): New variable.
40082 (lnxboot_img_ASFLAGS): Likewise.
40083 (lnxboot_img_LDFLAGS): Likewise.
40084
40085 * boot/i386/pc/lnxboot.S: New file.
40086
40087 2007-11-24 Pavel Roskin <proski@gnu.org>
40088
40089 * configure.ac: Test if '--build-id=none' is supported by the
40090 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
40091 objcopy to generate incorrect binary files (binutils
40092 2.17.50.0.18-1 as shipped by Fedora 8).
40093 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
40094 linking, so that build ID doesn't break the test.
40095
40096 2007-11-24 Pavel Roskin <proski@gnu.org>
40097
40098 * include/grub/i386/time.h: use "void" in the argument list
40099 of grub_cpu_idle().
40100 * include/grub/powerpc/time.h: Likewise.
40101 * include/grub/sparc64/time.h: Likewise.
40102
40103 2007-11-18 Christian Franke <franke@computer.org>
40104
40105 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
40106 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
40107 This fixes the problem that function keys did not work in grub-emu.
40108
40109 2007-11-18 Christian Franke <franke@computer.org>
40110
40111 * disk/host.c (grub_host_open): Remove attribute unused from
40112 name parameter. Add check for "host". This fixes the problem
40113 that grub-emu does not find partitions.
40114
40115 2007-11-18 Christian Franke <franke@computer.org>
40116
40117 * util/hostfs.c (is_dir): New function.
40118 (grub_hostfs_dir): Handle missing dirent.d_type case.
40119 (grub_hostfs_read): Add missing fseek().
40120 (grub_hostfs_label): Clear label pointer. This fixes a crash
40121 of grub-emu on "ls (host)".
40122
40123 2007-11-18 Christian Franke <franke@computer.org>
40124
40125 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
40126 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
40127 to 64 bit boundary by default.
40128
40129 2007-11-18 Bean <bean123ch@gmail.com>
40130
40131 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
40132 (hexdump_mod_SOURCES): New variable.
40133 (hexdump_mod_CFLAGS): Likewise.
40134 (hexdump_mod_LDFLAGS): Likewise.
40135
40136 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40137
40138 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40139
40140 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40141
40142 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40143
40144 * include/grub/hexdump.h: New file.
40145
40146 * commands/hexdump.c: New file.
40147
40148 2007-11-10 Robert Millan <rmh@aybabtu.com>
40149
40150 * commands/i386/pc/play.c (beep_off): Switch order of arguments
40151 in grub_outb() calls.
40152 (beep_on): Likewise.
40153
40154 2007-11-10 Christian Franke <franke@computer.org>
40155
40156 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
40157 (grub_menu_run): Likewise.
40158
40159 2007-11-10 Robert Millan <rmh@aybabtu.com>
40160
40161 * include/grub/i386/efi/machine.h: New file.
40162 * include/grub/i386/linuxbios/machine.h: Likewise.
40163 * include/grub/i386/pc/machine.h: Likewise.
40164 * include/grub/powerpc/ieee1275/machine.h: Likewise.
40165 * include/grub/sparc64/ieee1275/machine.h: Likewise.
40166
40167 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
40168 (serial_hw_io_addr): New variable.
40169 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
40170 instead of `(unsigned short *) 0x400'.
40171
40172 2007-11-10 Bean <bean123ch@gmail.com>
40173
40174 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
40175
40176 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40177
40178 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
40179 (vga_mod_SOURCES): Added.
40180 (vga_mod_CFLAGS): Likewise.
40181 (vga_mod_LDFLAGS): Likewise.
40182
40183 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
40184 grub_outb() calls.
40185 (set_map_mask): Likewise.
40186 (set_read_map): Likewise.
40187 (set_read_address): Likewise.
40188 (vga_font): Removed variable.
40189 (get_vga_glyph): Removed function.
40190 (invalidate_char): Likewise.
40191 (write_char): Changed to use grub_font_get_glyph() for font
40192 information.
40193 (grub_vga_putchar): Likewise.
40194 (grub_vga_getcharwidth): Likewise.
40195
40196 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40197
40198 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
40199 flags.
40200 (pxeboot_img_LDFLAGS): Likewise.
40201 (diskboot_img_LDFLAGS): Likewise.
40202 (kernel_img_LDFLAGS): Likewise.
40203
40204 2007-11-06 Robert Millan <rmh@aybabtu.com>
40205
40206 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
40207 in grub_outb() calls.
40208 (serial_hw_init): Likewise.
40209
40210 2007-11-05 Robert Millan <rmh@aybabtu.com>
40211
40212 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
40213 spaces. Skip non-regular files.
40214
40215 2007-11-05 Robert Millan <rmh@aybabtu.com>
40216
40217 * kern/disk.c (grub_disk_firmware_fini)
40218 (grub_disk_firmware_is_tainted): New variables.
40219
40220 * include/grub/disk.h (grub_disk_firmware_fini)
40221 (grub_disk_firmware_is_tainted): Likewise.
40222
40223 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
40224 (grub_disk_biosdisk_fini): ... to here.
40225 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
40226 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
40227 is set. Register grub_disk_biosdisk_fini() in
40228 `grub_disk_firmware_fini'.
40229
40230 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
40231 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
40232 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
40233 to finish existing firmware disk interface.
40234
40235 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
40236 (ata_mod_SOURCES): New variable.
40237 (ata_mod_CFLAGS): Likewise.
40238 (ata_mod_LDFLAGS): Likewise.
40239
40240 2007-11-05 Robert Millan <rmh@aybabtu.com>
40241
40242 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
40243 (grub_ata_wait): Reimplement using grub_millisleep().
40244
40245 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
40246 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
40247
40248 2007-11-03 Marco Gerards <marco@gnu.org>
40249
40250 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
40251 (CRTC_ADDR_PORT): New macro.
40252 (CRTC_DATA_PORT): Likewise.
40253 (CRTC_CURSOR): Likewise.
40254 (CRTC_CURSOR_ADDR_HIGH): Likewise.
40255 (CRTC_CURSOR_ADDR_LOW): Likewise.
40256 (update_cursor): New function.
40257 (grub_console_real_putchar): Call `update_cursor'.
40258 (grub_console_gotoxy): Likewise.
40259 (grub_console_cls): Set the default color when clearing the
40260 screen.
40261 (grub_console_setcursor): Implemented.
40262
40263 2007-11-03 Marco Gerards <marco@gnu.org>
40264
40265 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
40266 become activate.
40267 (grub_ata_pio_write): Likewise.
40268
40269 (grub_atapi_identify): Wait after issuing an ATA command.
40270 (grub_atapi_packet): Likewise.
40271 (grub_ata_identify): Likewise.
40272 (grub_ata_readwrite): Likewise.
40273
40274 2007-11-03 Marco Gerards <marco@gnu.org>
40275
40276 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
40277 (grub_ata_pio_write): Likewise.
40278 (grub_ata_readwrite): Use `grub_error', instead of
40279 returning `grub_errno'.
40280
40281 2007-11-03 Marco Gerards <marco@gnu.org>
40282
40283 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
40284 grub_ata_pio_write once for every single sector, instead of for
40285 multiple sectors.
40286
40287 2007-10-31 Robert Millan <rmh@aybabtu.com>
40288
40289 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
40290
40291 * conf/i386-linuxbios.rmk: New file.
40292
40293 * kern/i386/pc/hardware.c: Likewise.
40294 * term/i386/pc/at_keyboard.c: Likewise.
40295 * term/i386/pc/vga_text.c: Likewise.
40296
40297 * include/grub/i386/linuxbios/boot.h: Likewise.
40298 * include/grub/i386/linuxbios/console.h: Likewise.
40299 * include/grub/i386/linuxbios/init.h: Likewise.
40300 * include/grub/i386/linuxbios/kernel.h: Likewise.
40301 * include/grub/i386/linuxbios/loader.h: Likewise.
40302 * include/grub/i386/linuxbios/memory.h: Likewise.
40303 * include/grub/i386/linuxbios/serial.h: Likewise.
40304 * include/grub/i386/linuxbios/time.h: Likewise.
40305
40306 * kern/i386/linuxbios/init.c: Likewise.
40307 * kern/i386/linuxbios/startup.S: Likewise.
40308 * kern/i386/linuxbios/table.c: Likewise.
40309
40310 2007-10-31 Marco Gerards <marco@gnu.org>
40311
40312 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
40313 (ata_mod_SOURCES): New variable.
40314 (ata_mod_CFLAGS): Likewise.
40315 (ata_mod_LDFLAGS): Likewise.
40316
40317 * disk/ata.c: New file.
40318
40319 * include/grub/disk.h (grub_disk_dev_id): Add
40320 `GRUB_DISK_DEV_ATA_ID'.
40321
40322 2007-10-31 Robert Millan <rmh@aybabtu.com>
40323
40324 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
40325 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
40326
40327 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
40328 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
40329
40330 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
40331 `<grub/types.h>'.
40332
40333 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
40334
40335 2007-10-27 Robert Millan <rmh@aybabtu.com>
40336
40337 * include/grub/types.h (ULONG_MAX): Define macro.
40338
40339 2007-10-22 Robert Millan <rmh@aybabtu.com>
40340
40341 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
40342 `"../realmode.S"'.
40343 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
40344
40345 2007-10-22 Robert Millan <rmh@aybabtu.com>
40346
40347 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
40348 (pkgdata_MODULES): Add `biosdisk.mod'.
40349 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
40350 variables.
40351
40352 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
40353 (grub_biosdisk_init): Replace with ...
40354 (GRUB_MOD_INIT(biosdisk)): ... this.
40355 (grub_biosdisk_fini): Replace with ...
40356 (GRUB_MOD_FINI(biosdisk)): ... this.
40357
40358 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
40359 (grub_machine_init): Remove call to grub_biosdisk_init().
40360 (grub_machine_fini): Remove call to grub_machine_fini().
40361
40362 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
40363
40364 2007-10-22 Robert Millan <rmh@aybabtu.com>
40365
40366 * include/grub/time.h: New file.
40367 * include/grub/i386/time.h: Likewise.
40368 * include/grub/powerpc/time.h: Likewise.
40369 * include/grub/sparc64/time.h: Likewise.
40370
40371 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
40372 instances to ...
40373 (KERNEL_MACHINE_TIME_HEADER): ... this.
40374 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40375 instances to ...
40376 (KERNEL_MACHINE_TIME_HEADER): ... this.
40377 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40378 instances to ...
40379 (KERNEL_MACHINE_TIME_HEADER): ... this.
40380
40381 * kern/i386/efi/init.c: Include `<grub/time.h>'.
40382 (grub_millisleep): New function.
40383 * kern/i386/pc/init.c: Include `<grub/time.h>'.
40384 (grub_millisleep): New function.
40385 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
40386 Remove `grub/machine/time.h' include.
40387 (grub_millisleep): New function.
40388 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
40389 Remove `grub/machine/time.h' include.
40390 (grub_millisleep): New function.
40391
40392 * include/grub/misc.h (grub_div_roundup): New function.
40393
40394 * kern/misc.c: Include `<grub/time.h>'.
40395 (grub_millisleep_generic): New function.
40396
40397 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
40398 Add `time.h'.
40399 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
40400 Add `time.h'.
40401 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
40402 `machine/time.h'. Add `time.h'.
40403 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40404
40405 2007-10-21 Robert Millan <rmh@aybabtu.com>
40406
40407 * include/grub/misc.h (grub_max): New function.
40408
40409 2007-10-21 Robert Millan <rmh@aybabtu.com>
40410
40411 * util/misc.c (grub_util_info): Call fflush() before returning.
40412
40413 2007-10-20 Robert Millan <rmh@aybabtu.com>
40414
40415 * genmk.rb (Image): Copy `extra_flags' from here ...
40416 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
40417
40418 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
40419 to `argc' and `args' arguments.
40420
40421 2007-10-17 Robert Millan <rmh@aybabtu.com>
40422
40423 * kern/i386/loader.S: New file.
40424
40425 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
40426 * kern/i386/loader.S (grub_linux_prot_size)... to here.
40427 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
40428 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
40429 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
40430 * kern/i386/loader.S (grub_linux_real_addr)... to here.
40431 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
40432 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
40433 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
40434 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
40435 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
40436 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
40437 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
40438 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
40439
40440 * kern/i386/realmode.S: New file.
40441
40442 * kern/i386/pc/startup.S (protstack): Moved from here ...
40443 * kern/i386/realmode.S (protstack)... to here.
40444 * kern/i386/pc/startup.S (gdt): Moved from here ...
40445 * kern/i386/realmode.S (gdt)... to here.
40446 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
40447 * kern/i386/realmode.S (prot_to_real)... to here.
40448
40449 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
40450 `kern/i386/realmode.S'.
40451
40452 2007-10-17 Robert Millan <rmh@aybabtu.com>
40453
40454 * include/grub/i386/loader.h: New file.
40455
40456 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
40457 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40458 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40459 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40460 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
40461 * include/grub/i386/loader.h (grub_linux_prot_size)
40462 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40463 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40464 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40465 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
40466
40467 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
40468
40469 2007-10-15 Robert Millan <rmh@aybabtu.com>
40470
40471 * normal/misc.c (grub_normal_print_device_info): Do not probe for
40472 filesystem when dev->disk is unset.
40473 Do probe for filesystem even when dev->disk->has_partitions is set.
40474 In case a filesystem is found, always report it.
40475 In case it isn't, if dev->disk->has_partitions is set, report that
40476 a partition table was found instead of reporting that no filesystem
40477 could be identified.
40478
40479 2007-10-12 Robert Millan <rmh@aybabtu.com>
40480
40481 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
40482 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
40483
40484 * include/grub/types.h (grub_host_to_target16): New macro.
40485 (grub_host_to_target32): Likewise.
40486 (grub_host_to_target64): Likewise.
40487 (grub_target_to_host16): Likewise.
40488 (grub_target_to_host32): Likewise.
40489 (grub_target_to_host64): Likewise.
40490
40491 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
40492 Renamed from to ...
40493 (GRUB_MOD_ALIGN): ...this. Update all users.
40494
40495 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
40496 grub_host_to_target32.
40497 Replace grub_be_to_cpu32 with grub_target_to_host32.
40498 (load_modules): Likewise.
40499 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
40500 Replace grub_be_to_cpu32 with grub_target_to_host32.
40501 Replace grub_cpu_to_be16 with grub_host_to_target16.
40502 Replace grub_cpu_to_be32 grub_host_to_target32.
40503
40504 2007-10-12 Robert Millan <rmh@aybabtu.com>
40505
40506 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
40507 * util/elf/grub-mkimage.c: ... here.
40508
40509 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
40510 `util/powerpc/ieee1275/grub-mkimage.c'.
40511
40512 2007-10-07 Robert Millan <rmh@aybabtu.com>
40513
40514 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
40515 and make it easier to figure out.
40516 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
40517 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
40518 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
40519 leave us with less than HEAP_MIN_SIZE total heap.
40520 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
40521
40522 2007-10-03 Robert Millan <rmh@aybabtu.com>
40523
40524 * include/grub/i386/io.h: New file.
40525 * commands/i386/pc/play.c (inb): Removed.
40526 (outb): Removed.
40527 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40528 with grub_outb().
40529 * term/i386/pc/serial.c (inb): Removed.
40530 (outb): Removed.
40531 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40532 with grub_outb().
40533 * term/i386/pc/vga.c (inb): Removed.
40534 (outb): Removed.
40535 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40536 with grub_outb().
40537
40538 2007-10-02 Robert Millan <rmh@aybabtu.com>
40539
40540 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
40541 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40542 Reported by Marcin Kurek.
40543
40544 2007-09-07 Robert Millan <rmh@aybabtu.com>
40545
40546 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
40547 SmartFirmware version updates (as released by Sven Luther), and avoid
40548 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
40549 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
40550 known broken.
40551
40552 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40553
40554 From Hitoshi Ozeki:
40555 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
40556 when merging two regions.
40557
40558 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40559
40560 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
40561 * normal/completion.c (grub_normal_do_completion): Likewise.
40562 Reported by Hitoshi Ozeki.
40563
40564 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40565
40566 Do not use devices at boot in chainloading.
40567
40568 * loader/i386/pc/chainloader.c (boot_drive): New variable.
40569 (boot_part_addr): Likewise.
40570 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
40571 with BOOT_DRIVE and BOOT_PART_ADDR.
40572 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
40573 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
40574
40575 2007-08-29 Robert Millan <rmh@aybabtu.com>
40576
40577 Patch from Simon Peter <dn.tlp@gmx.net>:
40578 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
40579 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
40580 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
40581 util/i386/pc/grub-setup.c_DEPENDENCIES.
40582 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
40583 util/grub-probe.c_DEPENDENCIES.
40584 * conf/powerpc-ieee1275.rmk: Likewise.
40585
40586 2007-08-28 Robert Millan <rmh@aybabtu.com>
40587
40588 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
40589 to tell grub-mkdevicemap how to name devices.
40590 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
40591 feature).
40592
40593 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
40594 util/i386/get_disk_name.c.
40595 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
40596 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
40597 util/ieee1275/get_disk_name.c.
40598
40599 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
40600
40601 * DISTLIST: Add util/i386/get_disk_name.c and
40602 util/ieee1275/get_disk_name.c.
40603
40604 * util/grub-mkdevicemap.c: Replace device naming logic with
40605 grub_util_get_disk_name() calls.
40606
40607 2007-08-20 Robert Millan <rmh@aybabtu.com>
40608
40609 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
40610 (so that it works for both plural and singular quantities).
40611
40612 2007-08-05 Robert Millan <rmh@aybabtu.com>
40613
40614 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
40615 so that [xz] isn't taken into account when determining order.
40616
40617 2007-08-02 Marco Gerards <marco@gnu.org>
40618
40619 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
40620 `include/multiboot2.h', `include/grub/elfload.h',
40621 `include/multiboot.h', `include/grub/multiboot.h',
40622 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
40623 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
40624 `kern/elf.c', `loader/multiboot_loader.c',
40625 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
40626 `loader/i386/pc/multiboot2.c',
40627 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
40628 `util/i386/pc/grub-mkrescue.in'. Remove
40629 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
40630 `include/grub/i386/pc/util/biosdisk.h' and
40631 `include/grub/powerpc/ieee1275/multiboot.h'.
40632
40633 2007-08-02 Bean <bean123ch@gmail.com>
40634
40635 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
40636 (ntfs_mod_SOURCES): New variable.
40637 (ntfs_mod_CFLAGS): Likewise.
40638 (ntfs_mod_LDFLAGS): Likewise.
40639
40640 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
40641 (grub_probe_SOURCES): Likewise.
40642 (grub_emu_SOURCES): Likewise.
40643
40644 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40645 (grub_emu_SOURCES): Likewise.
40646
40647 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40648 (grub_emu_SOURCES): Likewise.
40649
40650 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
40651
40652 * fs/ntfs.c: New file.
40653
40654 2007-08-02 Bean <bean123ch@gmail.com>
40655
40656 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
40657
40658 * file.h (grub_file): Likewise.
40659
40660 * fshelp.h (grub_fshelp_read_file): Likewise.
40661
40662 * util/i386/pc/grub-setup.c (setup): Likewise.
40663 (save_first_sector): Likewise.
40664 (save_blocklists): Likewise.
40665
40666 * fs/affs.c (grub_affs_read_file): Likewise.
40667
40668 * fs/ext2.c (grub_ext2_read_file): Likewise.
40669
40670 * fs/fat.c (grub_fat_read_data): Likewise.
40671
40672 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
40673
40674 * fs/hfs.c (grub_hfs_read_file): Likewise.
40675
40676 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
40677
40678 * fs/jfs.c (grub_jfs_read_file): Likewise.
40679
40680 * fs/minix.c (grub_minix_read_file): Likewise.
40681
40682 * fs/sfs.c (grub_sfs_read_file): Likewise.
40683
40684 * fs/ufs.c (grub_ufs_read_file): Likewise.
40685
40686 * fs/xfs.c (grub_xfs_read_file): Likewise.
40687
40688 * command/blocklist.c (read_blocklist): Likewise.
40689 (print_blocklist): Likewise.
40690
40691 2007-08-02 Marco Gerards <marco@gnu.org>
40692
40693 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
40694 `util/hostfs.c'.
40695
40696 * disk/host.c: New file.
40697
40698 * util/hostfs.c: Likewise.
40699
40700 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
40701 return `GRUB_ERR_BAD_FS'.
40702 * fs/sfs.c (grub_sfs_mount): Likewise.
40703 * fs/xfs.c (grub_xfs_mount): Likewise.
40704
40705 * include/grub/disk.h (enum grub_disk_dev_id): Add
40706 `GRUB_DISK_DEVICE_HOST_ID'.
40707
40708 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
40709
40710 2007-07-24 Jerone Young <jerone@gmail.com>
40711
40712 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
40713 modules for compilation.
40714 * conf/powerpc-ieee1275.rmk: Likewise.
40715
40716 * include/multiboot.h: Move multiboot definitions to one file. Rename
40717 many definitions to not get grub specific.
40718 * include/multiboot2.h: Create header with multiboot 2 definitions.
40719 * include/grub/multiboot.h: Header for grub specific function
40720 prototypes and definitions.
40721 * include/grub/multiboot2.h: Likewise.
40722 * include/grub/multiboot_loader.h: Likewise.
40723 * include/grub/i386/pc/multiboot.h: Removed.
40724 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
40725
40726 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
40727 and 2 to allow for one multiboot and module commands.
40728 * loader/multiboot2.c: Add multiboot2 functionality.
40729 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
40730 and definition names.
40731 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
40732 2 functions.
40733 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
40734 ieee1275 specific multiboot2 code.
40735
40736 * kern/i386/pc/startup.S: Change headers and definition names for
40737 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
40738
40739 2007-07-22 Robert Millan <rmh@aybabtu.com>
40740
40741 * geninitheader.sh: Process file specified in first parameter rather
40742 than hardcoding grub_modules_init.lst.
40743 * geninit.sh: Likewise. Also, construct header name dynamically rather
40744 than hardcoding grub_modules_init.h.
40745
40746 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
40747 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
40748 grub_probe_init.[ch] and grub_setup_init.[ch].
40749
40750 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
40751 grub_modules_init.h with grub_emu_init.h.
40752 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
40753 grub_probe_init.[ch] files.
40754 * conf/i386-efi.rmk: Likewise.
40755 * conf/i386-pc.rmk: Likewise.
40756 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
40757 grub_setup_init.[ch] files.
40758
40759 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
40760 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
40761 to initialize modules rather than a list of hardcoded functions.
40762 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
40763 grub_init_all() to initialize modules rather than a list of hardcoded
40764 functions.
40765
40766 2007-07-22 Robert Millan <rmh@aybabtu.com>
40767
40768 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
40769 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
40770
40771 2007-07-22 Robert Millan <rmh@aybabtu.com>
40772
40773 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
40774 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
40775 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
40776 flag when running on SmartFirmware.
40777 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
40778 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
40779 was set.
40780
40781 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40782 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
40783 rather than decreasing it.
40784
40785 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
40786 there's not enough space to do it, fail in the same way as when it
40787 can't be done because there are no partitions.
40788
40789 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
40790 when nvsetenv failed.
40791
40792 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40793
40794 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
40795 because this rule is automatically generated.
40796 (grub-mkrescue): Removed for the same reason as above.
40797
40798 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40799
40800 Migrate to GNU General Public License Version 3.
40801
40802 * COPYING: Replaced with the plain text version of GPLv3.
40803
40804 * config.guess: Updated from gnulib.
40805 * config.sub: Likewise.
40806
40807 * geninit.sh: Output a GPLv3 copyright notice.
40808 * geninitheader.sh: Likewise.
40809 * genmodsrc.sh: Likewise.
40810 * gensymlist.sh.in: Likewise.
40811
40812 * boot/i386/pc/boot.S: Upgraded to GPLv3.
40813 * boot/i386/pc/diskboot.S: Likewise.
40814 * boot/i386/pc/pxeboot.S: Likewise.
40815 * commands/blocklist.c: Likewise.
40816 * commands/boot.c: Likewise.
40817 * commands/cat.c: Likewise.
40818 * commands/cmp.c: Likewise.
40819 * commands/configfile.c: Likewise.
40820 * commands/echo.c: Likewise.
40821 * commands/help.c: Likewise.
40822 * commands/ls.c: Likewise.
40823 * commands/search.c: Likewise.
40824 * commands/terminal.c: Likewise.
40825 * commands/test.c: Likewise.
40826 * commands/videotest.c: Likewise.
40827 * commands/i386/cpuid.c: Likewise.
40828 * commands/i386/pc/halt.c: Likewise.
40829 * commands/i386/pc/play.c: Likewise.
40830 * commands/i386/pc/reboot.c: Likewise.
40831 * commands/i386/pc/vbeinfo.c: Likewise.
40832 * commands/i386/pc/vbetest.c: Likewise.
40833 * commands/ieee1275/halt.c: Likewise.
40834 * commands/ieee1275/reboot.c: Likewise.
40835 * commands/ieee1275/suspend.c: Likewise.
40836 * disk/loopback.c: Likewise.
40837 * disk/lvm.c: Likewise.
40838 * disk/raid.c: Likewise.
40839 * disk/efi/efidisk.c: Likewise.
40840 * disk/i386/pc/biosdisk.c: Likewise.
40841 * disk/ieee1275/ofdisk.c: Likewise.
40842 * font/manager.c: Likewise.
40843 * fs/affs.c: Likewise.
40844 * fs/ext2.c: Likewise.
40845 * fs/fat.c: Likewise.
40846 * fs/fshelp.c: Likewise.
40847 * fs/hfs.c: Likewise.
40848 * fs/hfsplus.c: Likewise.
40849 * fs/iso9660.c: Likewise.
40850 * fs/jfs.c: Likewise.
40851 * fs/minix.c: Likewise.
40852 * fs/sfs.c: Likewise.
40853 * fs/ufs.c: Likewise.
40854 * fs/xfs.c: Likewise.
40855 * hello/hello.c: Likewise.
40856 * include/grub/acorn_filecore.h: Likewise.
40857 * include/grub/arg.h: Likewise.
40858 * include/grub/bitmap.h: Likewise.
40859 * include/grub/boot.h: Likewise.
40860 * include/grub/cache.h: Likewise.
40861 * include/grub/device.h: Likewise.
40862 * include/grub/disk.h: Likewise.
40863 * include/grub/dl.h: Likewise.
40864 * include/grub/elfload.h: Likewise.
40865 * include/grub/env.h: Likewise.
40866 * include/grub/err.h: Likewise.
40867 * include/grub/file.h: Likewise.
40868 * include/grub/font.h: Likewise.
40869 * include/grub/fs.h: Likewise.
40870 * include/grub/fshelp.h: Likewise.
40871 * include/grub/gzio.h: Likewise.
40872 * include/grub/hfs.h: Likewise.
40873 * include/grub/kernel.h: Likewise.
40874 * include/grub/loader.h: Likewise.
40875 * include/grub/lvm.h: Likewise.
40876 * include/grub/misc.h: Likewise.
40877 * include/grub/mm.h: Likewise.
40878 * include/grub/net.h: Likewise.
40879 * include/grub/normal.h: Likewise.
40880 * include/grub/parser.h: Likewise.
40881 * include/grub/partition.h: Likewise.
40882 * include/grub/pc_partition.h: Likewise.
40883 * include/grub/raid.h: Likewise.
40884 * include/grub/rescue.h: Likewise.
40885 * include/grub/script.h: Likewise.
40886 * include/grub/setjmp.h: Likewise.
40887 * include/grub/symbol.h: Likewise.
40888 * include/grub/term.h: Likewise.
40889 * include/grub/terminfo.h: Likewise.
40890 * include/grub/tparm.h: Likewise.
40891 * include/grub/types.h: Likewise.
40892 * include/grub/video.h: Likewise.
40893 * include/grub/efi/api.h: Likewise.
40894 * include/grub/efi/chainloader.h: Likewise.
40895 * include/grub/efi/console.h: Likewise.
40896 * include/grub/efi/console_control.h: Likewise.
40897 * include/grub/efi/disk.h: Likewise.
40898 * include/grub/efi/efi.h: Likewise.
40899 * include/grub/efi/pe32.h: Likewise.
40900 * include/grub/efi/time.h: Likewise.
40901 * include/grub/i386/linux.h: Likewise.
40902 * include/grub/i386/setjmp.h: Likewise.
40903 * include/grub/i386/types.h: Likewise.
40904 * include/grub/i386/efi/kernel.h: Likewise.
40905 * include/grub/i386/efi/loader.h: Likewise.
40906 * include/grub/i386/efi/time.h: Likewise.
40907 * include/grub/i386/pc/biosdisk.h: Likewise.
40908 * include/grub/i386/pc/boot.h: Likewise.
40909 * include/grub/i386/pc/chainloader.h: Likewise.
40910 * include/grub/i386/pc/console.h: Likewise.
40911 * include/grub/i386/pc/init.h: Likewise.
40912 * include/grub/i386/pc/kernel.h: Likewise.
40913 * include/grub/i386/pc/loader.h: Likewise.
40914 * include/grub/i386/pc/memory.h: Likewise.
40915 * include/grub/i386/pc/multiboot.h: Likewise.
40916 * include/grub/i386/pc/serial.h: Likewise.
40917 * include/grub/i386/pc/time.h: Likewise.
40918 * include/grub/i386/pc/vbe.h: Likewise.
40919 * include/grub/i386/pc/vbeblit.h: Likewise.
40920 * include/grub/i386/pc/vbefill.h: Likewise.
40921 * include/grub/i386/pc/vbeutil.h: Likewise.
40922 * include/grub/i386/pc/vga.h: Likewise.
40923 * include/grub/ieee1275/ieee1275.h: Likewise.
40924 * include/grub/ieee1275/ofdisk.h: Likewise.
40925 * include/grub/powerpc/libgcc.h: Likewise.
40926 * include/grub/powerpc/setjmp.h: Likewise.
40927 * include/grub/powerpc/types.h: Likewise.
40928 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
40929 * include/grub/powerpc/ieee1275/console.h: Likewise.
40930 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
40931 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
40932 * include/grub/powerpc/ieee1275/loader.h: Likewise.
40933 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
40934 * include/grub/powerpc/ieee1275/time.h: Likewise.
40935 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
40936 * include/grub/sparc64/libgcc.h: Likewise.
40937 * include/grub/sparc64/setjmp.h: Likewise.
40938 * include/grub/sparc64/types.h: Likewise.
40939 * include/grub/sparc64/ieee1275/console.h: Likewise.
40940 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
40941 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
40942 * include/grub/sparc64/ieee1275/time.h: Likewise.
40943 * include/grub/util/biosdisk.h: Likewise.
40944 * include/grub/util/getroot.h: Likewise.
40945 * include/grub/util/lvm.h: Likewise.
40946 * include/grub/util/misc.h: Likewise.
40947 * include/grub/util/raid.h: Likewise.
40948 * include/grub/util/resolve.h: Likewise.
40949 * io/gzio.c: Likewise.
40950 * kern/device.c: Likewise.
40951 * kern/disk.c: Likewise.
40952 * kern/dl.c: Likewise.
40953 * kern/elf.c: Likewise.
40954 * kern/env.c: Likewise.
40955 * kern/err.c: Likewise.
40956 * kern/file.c: Likewise.
40957 * kern/fs.c: Likewise.
40958 * kern/loader.c: Likewise.
40959 * kern/main.c: Likewise.
40960 * kern/misc.c: Likewise.
40961 * kern/mm.c: Likewise.
40962 * kern/parser.c: Likewise.
40963 * kern/partition.c: Likewise.
40964 * kern/rescue.c: Likewise.
40965 * kern/term.c: Likewise.
40966 * kern/efi/efi.c: Likewise.
40967 * kern/efi/init.c: Likewise.
40968 * kern/efi/mm.c: Likewise.
40969 * kern/i386/dl.c: Likewise.
40970 * kern/i386/efi/init.c: Likewise.
40971 * kern/i386/efi/startup.S: Likewise.
40972 * kern/i386/pc/init.c: Likewise.
40973 * kern/i386/pc/lzo1x.S: Likewise.
40974 * kern/i386/pc/startup.S: Likewise.
40975 * kern/ieee1275/ieee1275.c: Likewise.
40976 * kern/powerpc/cache.S: Likewise.
40977 * kern/powerpc/dl.c: Likewise.
40978 * kern/powerpc/ieee1275/cmain.c: Likewise.
40979 * kern/powerpc/ieee1275/crt0.S: Likewise.
40980 * kern/powerpc/ieee1275/init.c: Likewise.
40981 * kern/powerpc/ieee1275/openfw.c: Likewise.
40982 * kern/sparc64/cache.S: Likewise.
40983 * kern/sparc64/dl.c: Likewise.
40984 * kern/sparc64/ieee1275/init.c: Likewise.
40985 * kern/sparc64/ieee1275/openfw.c: Likewise.
40986 * loader/efi/chainloader.c: Likewise.
40987 * loader/efi/chainloader_normal.c: Likewise.
40988 * loader/i386/efi/linux.c: Likewise.
40989 * loader/i386/efi/linux_normal.c: Likewise.
40990 * loader/i386/pc/chainloader.c: Likewise.
40991 * loader/i386/pc/chainloader_normal.c: Likewise.
40992 * loader/i386/pc/linux.c: Likewise.
40993 * loader/i386/pc/linux_normal.c: Likewise.
40994 * loader/i386/pc/multiboot.c: Likewise.
40995 * loader/i386/pc/multiboot_normal.c: Likewise.
40996 * loader/powerpc/ieee1275/linux.c: Likewise.
40997 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40998 * normal/arg.c: Likewise.
40999 * normal/cmdline.c: Likewise.
41000 * normal/command.c: Likewise.
41001 * normal/completion.c: Likewise.
41002 * normal/execute.c: Likewise.
41003 * normal/function.c: Likewise.
41004 * normal/lexer.c: Likewise.
41005 * normal/main.c: Likewise.
41006 * normal/menu.c: Likewise.
41007 * normal/menu_entry.c: Likewise.
41008 * normal/misc.c: Likewise.
41009 * normal/parser.y: Likewise.
41010 * normal/script.c: Likewise.
41011 * normal/i386/setjmp.S: Likewise.
41012 * normal/powerpc/setjmp.S: Likewise.
41013 * normal/sparc64/setjmp.S: Likewise.
41014 * partmap/acorn.c: Likewise.
41015 * partmap/amiga.c: Likewise.
41016 * partmap/apple.c: Likewise.
41017 * partmap/gpt.c: Likewise.
41018 * partmap/pc.c: Likewise.
41019 * partmap/sun.c: Likewise.
41020 * term/gfxterm.c: Likewise.
41021 * term/terminfo.c: Likewise.
41022 * term/efi/console.c: Likewise.
41023 * term/i386/pc/console.c: Likewise.
41024 * term/i386/pc/serial.c: Likewise.
41025 * term/i386/pc/vesafb.c: Likewise.
41026 * term/i386/pc/vga.c: Likewise.
41027 * term/ieee1275/ofconsole.c: Likewise.
41028 * util/biosdisk.c: Likewise.
41029 * util/console.c: Likewise.
41030 * util/genmoddep.c: Likewise.
41031 * util/getroot.c: Likewise.
41032 * util/grub-emu.c: Likewise.
41033 * util/grub-mkdevicemap.c: Likewise.
41034 * util/grub-probe.c: Likewise.
41035 * util/lvm.c: Likewise.
41036 * util/misc.c: Likewise.
41037 * util/raid.c: Likewise.
41038 * util/resolve.c: Likewise.
41039 * util/update-grub.in: Likewise.
41040 * util/update-grub_lib.in: Likewise.
41041 * util/grub.d/00_header.in: Likewise.
41042 * util/grub.d/10_hurd.in: Likewise.
41043 * util/grub.d/10_linux.in: Likewise.
41044 * util/i386/efi/grub-install.in: Likewise.
41045 * util/i386/efi/grub-mkimage.c: Likewise.
41046 * util/i386/pc/grub-install.in: Likewise.
41047 * util/i386/pc/grub-mkimage.c: Likewise.
41048 * util/i386/pc/grub-mkrescue.in: Likewise.
41049 * util/i386/pc/grub-setup.c: Likewise.
41050 * util/i386/pc/misc.c: Likewise.
41051 * util/powerpc/ieee1275/grub-install.in: Likewise.
41052 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
41053 * util/powerpc/ieee1275/misc.c: Likewise.
41054 * video/bitmap.c: Likewise.
41055 * video/video.c: Likewise.
41056 * video/i386/pc/vbe.c: Likewise.
41057 * video/i386/pc/vbeblit.c: Likewise.
41058 * video/i386/pc/vbefill.c: Likewise.
41059 * video/i386/pc/vbeutil.c: Likewise.
41060 * video/readers/tga.c: Likewise.
41061
41062 2007-07-02 Robert Millan <rmh@aybabtu.com>
41063
41064 * conf/i386-efi.rmk: Replace obsolete reference to
41065 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
41066 with util/getroot.c.
41067 * conf/powerpc-ieee1275.rmk: Likewise.
41068 * conf/sparc64-ieee1275.rmk: Likewise.
41069
41070 * util/grub-emu.c (main): Fix unchecked pointer handling.
41071
41072 2007-07-02 Robert Millan <rmh@aybabtu.com>
41073
41074 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
41075 invocation to fail, in order to support partition-less media.
41076
41077 * util/i386/pc/grub-install.in: Likewise.
41078
41079 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
41080 which fs or partmap modules are needed (akin to its sister scripts).
41081
41082 Also use grub-probe to get rid of unportable /proc/mounts check.
41083
41084 Print the same informational message that the other scripts do, before
41085 exiting.
41086
41087 2007-06-23 Robert Millan <rmh@aybabtu.com>
41088
41089 * util/update-grub_lib.in (font_path): New function. Determine whether
41090 a font file can be found and, if so, echo the GRUB path to it.
41091
41092 * util/update-grub.in: Handle multiple terminals depending on user
41093 input, platform availability and font file presence. Propagate
41094 variables of our findings to /etc/grub.d/ children.
41095
41096 * util/grub.d/00_header.in: Handle multiple terminals, based on
41097 environment setup by update-grub.
41098
41099 2007-06-23 Robert Millan <rmh@aybabtu.com>
41100
41101 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
41102
41103 2007-06-21 Robert Millan <rmh@aybabtu.com>
41104
41105 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
41106 indicate end of data section in kernel image.
41107 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
41108 GRUB_KERNEL_MACHINE_DATA_END.
41109
41110 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
41111 space for it.
41112 * kern/i386/efi/startup.S: Likewise.
41113
41114 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
41115 during image generation. Implement --prefix option to override this
41116 patch.
41117 * util/i386/efi/grub-mkimage.c: Likewise.
41118
41119 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
41120 code to make path relative to its root into a separate function.
41121
41122 * util/i386/pc/grub-install.in: Use newly provided
41123 make_system_path_relative_to_its_root() to convert ${grubdir}, then
41124 pass the result to grub-install --prefix.
41125
41126 2007-06-13 Robert Millan <rmh@aybabtu.com>
41127
41128 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
41129 DEFAULT_DEVICE_MAP.
41130 * util/grub-emu.c: Use above definitions from misc.h instead of
41131 defining them.
41132 * util/grub-mkdevicemap.c: Likewise.
41133 * util/i386/pc/grub-setup.c: Likewise.
41134 * util/grub-probe.c: Likewise.
41135 (probe): Abort with grub_util_error() when either
41136 grub_guess_root_device or grub_util_get_grub_dev fails.
41137
41138 2007-06-12 Robert Millan <rmh@aybabtu.com>
41139
41140 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
41141 "pager" assignment.
41142 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
41143 "pcdata".
41144 * util/grub-probe.c (probe): Likewise for "drive_name".
41145
41146 2007-06-11 Robert Millan <rmh@aybabtu.com>
41147
41148 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
41149 not just the cdrom one.
41150
41151 2007-06-11 Robert Millan <rmh@aybabtu.com>
41152
41153 * util/i386/pc/grub-mkrescue.in: Add "set -e".
41154 Add --pkglibdir=DIR option to override pkglibdir.
41155 Mention --image-type=TYPE in help output.
41156 Fix --grub-mkimage (it was a no-op).
41157 Abort gracefully when no parameter is given.
41158
41159 2007-06-11 Robert Millan <rmh@aybabtu.com>
41160
41161 * util/i386/pc/grub-mkrescue.in: New file.
41162 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
41163 * Makefile.in: Handle bin_SCRIPTS.
41164
41165 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
41166
41167 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
41168 list of video modes.
41169
41170 2007-06-06 Robert Millan <rmh@aybabtu.com>
41171
41172 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
41173 file doesn't exist, or if it is in a filesystem grub can't read.
41174
41175 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
41176 not abort if GRUB_DRIVE could not be defined. Rearrange generated
41177 header comment to fit in 80 columns when the variables are resolved.
41178
41179 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
41180 could be identified by update-grub. Remove redundant check for
41181 unifont.pff existence (since convert_system_path_to_grub_path now
41182 handles that).
41183
41184 2007-06-04 Robert Millan <rmh@aybabtu.com>
41185
41186 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
41187
41188 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
41189
41190 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
41191
41192 2007-06-04 Robert Millan <rmh@aybabtu.com>
41193
41194 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
41195
41196 * include/grub/partition.h: Declare grub_apple_partition_map_init and
41197 grub_apple_partition_map_fini.
41198
41199 * util/biosdisk.c
41200 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
41201 to access >2 TiB disks).
41202
41203 Print disk->total_sectors with %llu instead of %lu, since this
41204 variable is always 64-bit (prevents wrong disk size from being displayed
41205 on either >2 TiB disk or big-endian CPU).
41206
41207 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
41208 into a generic case that supports all (sane) partition maps.
41209
41210 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
41211 breaks big-endian.
41212
41213 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
41214 and grub_apple_partition_map_fini() after that.
41215
41216 2007-06-01 Robert Millan <rmh@aybabtu.com>
41217
41218 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
41219
41220 * util/grub.d/00_header.in: Only enable gfxterm when
41221 convert_system_path_to_grub_path() succeeds.
41222
41223 2007-05-20 Robert Millan <rmh@aybabtu.com>
41224
41225 * util/update-grub_lib.in: New file.
41226 * DISTLIST: Add update-grub_lib.in.
41227 * conf/common.rmk: Generate update-grub_lib and install it in
41228 $(lib_DATA).
41229 * Makefile.in: Add install routine for $(lib_DATA).
41230
41231 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
41232 function provided by update-grub_lib to support arbitrary paths of
41233 unifont.pff.
41234 * util/update-grub.in: Use convert_system_path_to_grub_path() to
41235 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
41236
41237 2007-05-19 Robert Millan <rmh@aybabtu.com>
41238
41239 * commands/i386/cpuid.c: New module.
41240 * DISTLIST: Add it.
41241 * conf/i386-efi.rmk: Enable cpuid.mod.
41242 * conf/i386-pc.rmk: Likewise.
41243
41244 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41245
41246 * kern/disk.c (grub_disk_read): Check return value of
41247 grub_realloc().
41248
41249 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41250
41251 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
41252 arrays.
41253 * disk/raid.c (grub_raid_open): Likewise.
41254
41255 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41256
41257 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
41258 stack instead of on the heap.
41259
41260 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
41261 before doing a read on it.
41262
41263 * configure.ac: Only use -fno-stack-protector for the target
41264 environment.
41265
41266 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41267
41268 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
41269 __attribute_ ((unused)) to mode_type argument.
41270
41271 * util/getroot.c (grub_guess_root_device): Fix #endif.
41272
41273 * kern/misc.c (memcmp): Fix prototype.
41274
41275 * include/grub/partition.h [GRUB_UTIL]
41276 (grub_gpt_partition_map_init): Add prototype.
41277 (grub_gpt_partition_map_fini): Likewise.
41278
41279 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
41280 at the right place.
41281
41282 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
41283 (grub_fat_read_data): Likewise.
41284 (grub_fat_find_dir): Likewise.
41285
41286 * font/manager.c (find_glyph): Make table a const.
41287 (grub_font_get_glyph): Remove bitmap from if statement.
41288
41289 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
41290
41291 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
41292 code, first search for device in /dev/mapper, then in /dev.
41293 (grub_util_get_grub_dev): New function.
41294 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
41295 prototype.
41296 * util/grub-probe.c (probe): Remove check for RAID, call
41297 grub_util_get_grub_dev() instead of
41298 grub_util_biosdisk_get_grub_dev().
41299 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
41300 grub_util_biosdisk_get_grub_dev().
41301 * util/i386/pc/grub-setup.c (main): Likewise.
41302
41303 2007-05-16 Robert Millan <rmh@aybabtu.com>
41304
41305 * DISTLIST: Update for the latest changes.
41306 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
41307 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
41308 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
41309 grub/util/biosdisk.h.
41310 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
41311 grub/util/biosdisk.h.
41312
41313 2007-05-16 Robert Millan <rmh@aybabtu.com>
41314
41315 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
41316
41317 2007-05-16 Robert Millan <rmh@aybabtu.com>
41318
41319 * util/i386/efi/grub-install.in: New.
41320 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
41321 newly added grub-install.
41322 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
41323 include.
41324 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
41325 grub/util/biosdisk.h.
41326 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
41327 grub/util/biosdisk.h.
41328
41329 2007-05-16 Robert Millan <rmh@aybabtu.com>
41330
41331 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
41332 * include/grub/util/biosdisk.h: ... here.
41333 * util/i386/pc/biosdisk.c: Moved to ...
41334 * util/biosdisk.c: ... here.
41335 * util/i386/pc/getroot.c: Moved to ...
41336 * util/getroot.c: ... here.
41337 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
41338 * util/grub-mkdevicemap.c: ... here.
41339 * util/i386/pc/grub-probe.c: Moved to ...
41340 * util/grub-probe.c: ... here.
41341
41342 2007-05-15 Robert Millan <rmh@aybabtu.com>
41343
41344 * util/update-grub.in: Remove duplicated line in grub.cfg header
41345 message.
41346
41347 2007-05-13 Robert Millan <rmh@aybabtu.com>
41348
41349 * util/update-grub.in: Fix a few assumptions about the devices holding
41350 /, /boot and /boot/grub being the same.
41351 * util/grub.d/00_header.in: Likewise.
41352 * util/grub.d/10_hurd.in: Likewise.
41353 * util/grub.d/10_linux.in: Likewise.
41354
41355 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
41356 patterns. Use that to define the `.old' suffix as older than `'.
41357
41358 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
41359
41360 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
41361 the grub.cfg header message.
41362
41363 2007-05-11 Robert Millan <rmh@aybabtu.com>
41364
41365 * util/update-grub.in: Create device.map if it doesn't already exist,
41366 before attempting to run grub-probe.
41367 Check for grub-probe and grub-mkdevicemap with the same code
41368 grub-install is using.
41369 Remove test mode.
41370
41371 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
41372
41373 * Makefile.in: Add the datarootdir autoconf variable.
41374
41375 2007-05-09 Robert Millan <rmh@aybabtu.com>
41376
41377 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
41378 fail gracefully if dev->disk->partition == NULL.
41379
41380 2007-05-07 Robert Millan <rmh@aybabtu.com>
41381
41382 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
41383 determine partition map module.
41384 * util/i386/pc/grub-install.in: Use this feature to decide which
41385 partition module to load, instead of hardcoding pc and gpt.
41386
41387 2007-05-07 Robert Millan <rmh@aybabtu.com>
41388
41389 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
41390 source directory differs from build directory.
41391
41392 2007-05-05 Robert Millan <rmh@aybabtu.com>
41393
41394 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
41395 initialisation.
41396
41397 2007-05-05 Robert Millan <rmh@aybabtu.com>
41398
41399 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
41400
41401 2007-05-05 Robert Millan <rmh@aybabtu.com>
41402
41403 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
41404 command-line arguments via ${GRUB_CMDLINE_LINUX}.
41405
41406 2007-05-05 Robert Millan <rmh@aybabtu.com>
41407
41408 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
41409 (grub_probe_SOURCES): Likewise.
41410 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
41411 GPT and initialize dos_part and bsd_part accordingly.
41412 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
41413 install_bsd_part.
41414 (main): Activate gpt module for use during partition identification,
41415 and deactivate it afterwards.
41416 * util/i386/pc/grub-install.in: Add gpt module to core.img.
41417 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
41418 partition identification, and deactivate it afterwards.
41419
41420 2007-05-05 Robert Millan <rmh@aybabtu.com>
41421
41422 * term/i386/pc/console.c (grub_console_fini): Call
41423 grub_term_set_current() before grub_term_unregister().
41424
41425 2007-05-04 Robert Millan <rmh@aybabtu.com>
41426
41427 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
41428 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
41429 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
41430 and update-grub_DATA.
41431 * conf/common.rmk: Build and install update-grub components.
41432 * conf/common.mk: Regenerate.
41433 * util/update-grub.in: New. Core of update-grub.
41434 * util/grub.d/00_header.in: New. Generates grub.cfg header.
41435 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
41436 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
41437 * util/grub.d/README: New. Document grub.d directory layout.
41438
41439 2007-05-01 Robert Millan <rmh@aybabtu.com>
41440
41441 * util/grub-emu.c: Move initialization functions
41442 grub_util_biosdisk_init() and grub_init_all() before
41443 grub_util_biosdisk_get_grub_dev(), which relies on them.
41444
41445 2007-04-19 Robert Millan <rmh@aybabtu.com>
41446
41447 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
41448 it is used later.
41449
41450 2007-04-18 Jerone Young <jerone@gmail.com>
41451
41452 * kernel/elf.c: Add missing parenthesis for conditional statement
41453 stanza.
41454
41455 2007-04-10 Jerone Young <jerone@gmail.com>
41456
41457 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
41458 continue on and look for device node with real device name.
41459
41460 2007-04-10 Jerone Young <jerone@gmail.com>
41461
41462 * configure.ac: Add argument for autoconf to use transformation
41463 ability.
41464 * Makefile.in: Add autoconf package transformation code.
41465 * util/i386/pc/grub-install.in: Likewise.
41466 * util/powerpc/ieee1275/grub-install.in: Likewise.
41467
41468 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
41469
41470 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
41471 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
41472 (EXT2_REVISION): Likewise.
41473 (EXT2_INODE_SIZE): Likewise.
41474 (struct grub_ext2_block_group): Added a missing member
41475 "used_dirs".
41476 (grub_ext2_read_inode): Divide by the inode size in a superblock
41477 instead of 128 to obtain INODES_PER_BLOCK.
41478 Use the macro EXT2_INODE_SIZE instead of directly using
41479 SBLOCK->INODE_SIZE.
41480
41481 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
41482
41483 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
41484 superblock instead of the structure size to compute an
41485 offset. This fixes the problem that GRUB could not read a
41486 filesystem when inode size is different from 128-byte.
41487
41488 2007-03-05 Marco Gerards <marco@gnu.org>
41489
41490 * normal/main.c (read_config_file): When "menu" is not set, create
41491 an initial context.
41492
41493 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41494
41495 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
41496 (HEAP_LIMIT): New macro.
41497 (grub_claim_heap): Claim memory up to `heaplimit'.
41498
41499 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41500
41501 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
41502 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
41503 (_start): Likewise.
41504 (grub_arch_modules_addr): Return address after `_end'.
41505 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
41506 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
41507 (add_segments): Calculate `_end' from phdr size and location.
41508 (ALIGN_UP): Moved to ...
41509 * include/grub/misc.h: here.
41510 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
41511 New macro.
41512 (GRUB_IEEE1275_MODULE_BASE): Removed.
41513
41514 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41515
41516 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
41517 loop boundary.
41518
41519 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41520
41521 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
41522 All users updated.
41523 (grub_elf64_load_hook_t): Likewise.
41524 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
41525 debug output.
41526
41527 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41528
41529 * kern/mm.c: Update copyright.
41530 (grub_mm_debug): Correct syntax error.
41531 (grub_mm_dump_free): New function.
41532 (grub_debug_free): Call `grub_free'.
41533 * include/grub/mm.h: Update copyright.
41534 (grub_mm_dump_free): Add declaration.
41535
41536 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41537
41538 * include/grub/ieee1275/ieee1275.h: Update copyright.
41539 * kern/powerpc/ieee1275/init.c: Likewise.
41540 * kern/powerpc/ieee1275/openfw.c: Likewise.
41541
41542 * loader/powerpc/ieee1275/linux.c: Likewise.
41543 * include/grub/elfload.h: Likewise.
41544 * kern/elf.c: Likewise.
41545 (grub_elf32_load): Pass `base' and `size' parameters. Update all
41546 callers.
41547 (grub_elf64_load): Likewise.
41548 (grub_elf32_load_segment): Move to a nested function.
41549 (grub_elf64_load_segment): Likewise.
41550
41551 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41552
41553 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
41554 prototype.
41555 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
41556 (grub_heap_len): Likewise.
41557 (HEAP_SIZE): New macro.
41558 (grub_claim_heap): New function.
41559 (grub_machine_init): Don't claim heap directly. Call
41560 `grub_claim_heap'.
41561 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
41562 (grub_available_iterate): New function.
41563
41564 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
41565
41566 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
41567 * configure.ac: Use it for testing the HOST and TARGET compilers.
41568
41569 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
41570
41571 * Makefile.in (enable_grub_emu): New variable.
41572 * configure.ac (--enable-grub-emu): New option.
41573 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
41574 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
41575 * conf/i386-pc.rmk: Likewise.
41576 * conf/powerpc-ieee1275.rmk: Likewise.
41577 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
41578
41579 2006-12-12 Marco Gerards <marco@gnu.org>
41580
41581 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
41582
41583 * kern/env.c (grub_env_unset): Don't free the member `value' when
41584 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
41585 pointer.
41586
41587 * normal/main.c (current_menu): Removed.
41588 (free_menu): Unset the `menu' environment variable.
41589 (grub_normal_menu_addentry): Make use of the environment variable
41590 `menu', instead of using the global `current_menu'. Allocate
41591 memory for the sourcecode of this entry.
41592 (read_config_file): New argument `nested', changed all callers.
41593 Only in the case of a new context, initialize a new menu. Set the
41594 `menu' environment variable.
41595 (grub_normal_execute): Don't set and unset the environment
41596 variable `menu' here anymore. Only free the menu when leaving the
41597 context.
41598
41599 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
41600 leak.
41601
41602 2006-12-11 Marco Gerards <marco@gnu.org>
41603
41604 * normal/menu_entry.c (run): Fix off by one bug so the last line
41605 is executed. Move the loader check to outside the loop.
41606
41607 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
41608
41609 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
41610
41611 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
41612
41613 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
41614 the number of sectors. Reported by Andrey Shuvikov
41615 <mr_hyro@yahoo.com>.
41616
41617 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
41618
41619 * kern/disk.c (grub_disk_read): When there is a read error, always
41620 try to read only the necessary data.
41621
41622 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
41623 disk/raid.c.
41624 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
41625 prototype.
41626 [GRUB_UTIL] (grub_raid_fini): Likewise.
41627 [GRUB_UTIL] (grub_lvm_init): Likewise.
41628 [GRUB_UTIL] (grub_lvm_fini): Likewise.
41629 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
41630 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
41631 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
41632 and grub_raid_fini().
41633
41634 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
41635
41636 * include/grub/types.h (__unused): Rename to UNUSED.
41637 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
41638 (grub_elf64_size): Likewise.
41639
41640 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41641
41642 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
41643 grub_error_push and grub_error_pop in the error-handling path.
41644 (grub_elf32_load_segment): Only call grub_file_read with non-zero
41645 length.
41646
41647 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41648
41649 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
41650 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41651 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41652 (kernel_elf_SOURCES): Likewise.
41653 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
41654 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
41655 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41656 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41657 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
41658 (elf_mod_SOURCES): New variable.
41659 (elf_mod_CFLAGS): Likewise.
41660 (elf_mod_LDFLAGS): Likewise.
41661 * include/grub/types.h (__unused): New macro.
41662 * include/grub/elfload.h: New file.
41663 * kern/elf.c: Likewise.
41664 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
41665 (ELF32_LOADMASK): New macro.
41666 (ELF64_LOADMASK): Likewise.
41667 (vmlinux): Removed.
41668 (grub_linux_load32): New function.
41669 (grub_linux_load64): Likewise.
41670 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
41671 Use grub_elf_t instead of grub_file_t.
41672
41673 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
41674
41675 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
41676 `catch_result' to struct set_color_args.
41677
41678 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
41679
41680 * normal/menu.c: Include grub/script.h.
41681 * normal/menu_entry.c: Likewise.
41682 * include/grub/normal.h: Do not include grub/script.h.
41683
41684 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41685
41686 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
41687
41688 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41689
41690 * kern/disk.c (grub_disk_open): Print debug messages when opening a
41691 disk.
41692 (grub_disk_close): Print debug messages when closing a disk.
41693 (grub_disk_read): Print debug messages when disk read fails.
41694 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
41695 filesystem type.
41696 * kern/partition.c: Include misc.h.
41697 (grub_partition_iterate): Print debug messages when detecting
41698 partition type.
41699
41700 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41701
41702 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
41703 is negative.
41704 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
41705
41706 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
41707
41708 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41709 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
41710
41711 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
41712
41713 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
41714 instead of sizeof(lv). Patch by Michael Guntsche.
41715
41716 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
41717
41718 * disk/lvm.c: Rename VGS to VG_LIST.
41719 (grub_lvm_iterate): Change VGS->LV to VG-LV.
41720 (grub_lvm_open): Likewise.
41721 Thanks to Michael Guntsche for finding this bug.
41722
41723 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
41724
41725 * configure.ac (AC_INIT): Bumped to 1.95.
41726
41727 2006-10-14 Robert Millan <rmh@aybabtu.com>
41728
41729 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
41730 with "/dev/.static/dev/md".
41731
41732 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41733
41734 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
41735 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
41736 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
41737 DRIVE_NAME are always freed.
41738
41739 * util/i386/pc/biosdisk.c (make_device_name): Add one into
41740 DOS_PART, as a DOS partition is counted from one instead of zero
41741 now. Reported by Robert Millan.
41742
41743 2006-10-14 Robert Millan <rmh@aybabtu.com>
41744
41745 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
41746 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
41747 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
41748 string returned by grub_guess_root_device.
41749 * util/i386/pc/grub-setup.c: Likewise.
41750 * util/i386/pc/grub-probefs.c: Likewise.
41751
41752 * util/i386/pc/grub-probefs.c: Rename to ...
41753 * util/i386/pc/grub-probe.c: ... this.
41754 * DISTLIST: Remove grub-probefs, add grub-probe.
41755 * conf/i386-efi.rmk: Likewise.
41756 * conf/i386-pc.rmk: Likewise.
41757 * util/i386/pc/grub-install.in: Likewise.
41758
41759 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
41760 choose which information we want to print.
41761
41762 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41763
41764 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
41765 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
41766 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
41767 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
41768 video/readers/tga.c and video/i386/pc/vbeutil.c.
41769
41770 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
41771
41772 Added support for RAID and LVM.
41773
41774 * disk/lvm.c: New file.
41775 * disk/raid.c: Likewise.
41776 * include/grub/lvm.h: Likewise.
41777 * include/grub/raid.h: Likewise.
41778 * include/grub/util/lvm.h: Likewise.
41779 * include/grub/util/raid.h: Likewise.
41780 * util/lvm.c: Likewise.
41781 * util/raid.c: Likewise.
41782
41783 * include/grub/disk.h (grub_disk_dev_id): Add
41784 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
41785 (grub_disk_get_size): New prototype.
41786 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
41787 returns a partition.
41788 (grub_disk_get_size): New function.
41789
41790 * kern/i386/pc/init.c (make_install_device): Copy the prefix
41791 verbatim if grub_install_dos_part is -2.
41792
41793 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
41794 and LVM devices.
41795
41796 * util/i386/pc/grub-setup.c (setup): New argument
41797 MUST_EMBED. Force embedding of GRUB when the argument is
41798 true. Close FILE before returning.
41799 (main): Add support for RAID and LVM.
41800
41801 * conf/common.rmk: Add RAID and LVM modules.
41802 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
41803 util/lvm.c.
41804 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
41805
41806 * kern/misc.c (grub_strstr): New function.
41807 * include/grub/misc.h (grub_strstr): New prototype.
41808
41809 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
41810
41811 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
41812
41813 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
41814
41815 * kern/misc.c (grub_strtoull): Guess the base only if not
41816 specified.
41817
41818 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41819
41820 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
41821 PowerMac support.
41822
41823 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41824
41825 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
41826
41827 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
41828 Remove `flags' argument. All callers changed.
41829 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
41830 (IEEE1275_IHANDLE_INVALID): New variable.
41831 (IEEE1275_CELL_INVALID): New variable.
41832 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
41833 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
41834 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
41835 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
41836 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
41837 codes from Open Firmware. All callers updated.
41838 (grub_ieee1275_next_property): Directly return Open Firmware return
41839 code.
41840 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41841 Standardize error checking from `grub_ieee1275_get_property'.
41842 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
41843 `devalias' to `aliases'. Correct comments. Consolidate error paths.
41844
41845 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41846
41847 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
41848 `instance_to_package_args' to `instance_to_path_args'.
41849
41850 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
41851 `grub_ieee1275_chosen'.
41852
41853 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
41854 `grub_ieee1275_interpret'.
41855
41856 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41857
41858 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
41859
41860 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41861
41862 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
41863 (__cmpdi): Likewise.
41864
41865 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
41866 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
41867 `grub_ssize_t'.
41868
41869 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
41870
41871 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
41872 to type `grub_ssize_t'.
41873 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
41874
41875 2006-09-22 Marco Gerards <marco@gnu.org>
41876
41877 * normal/script.c (grub_script_create_cmdmenu): Skip leading
41878 newlines.
41879
41880 2006-09-22 Marco Gerards <marco@gnu.org>
41881
41882 * commands/echo.c: New file.
41883
41884 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
41885
41886 * conf/common.rmk (echo_mod_SOURCES): New variable.
41887 (echo_mod_CFLAGS): Likewise.
41888 (echo_mod_LDFLAGS): Likewise.
41889
41890 2006-09-22 Marco Gerards <marco@gnu.org>
41891
41892 * normal/main.c (get_line): Malloc memory instead of using
41893 preallocated memory. Removed the arguments `cmdline' and
41894 `max_len'. Updated all callers.
41895
41896 2006-09-22 Marco Gerards <marco@gnu.org>
41897
41898 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
41899 (normal_mod_DEPENDENCIES): Likewise.
41900
41901 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
41902 (normal_mod_DEPENDENCIES): Likewise.
41903
41904 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
41905
41906 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
41907
41908 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
41909 programs.
41910 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
41911 (normal_mod_DEPENDENCIES): Likewise.
41912 * conf/i386-pc.mk: Regenerate.
41913 * conf/i386-efi.mk: Likewise
41914 * conf/common.mk: Likewise.
41915 * conf/powerpc-ieee1275.mk: Likewise.
41916 * conf/sparc64-ieee1275.mk: Likewise.
41917
41918 2006-09-22 Robert Millan <rmh@aybabtu.com>
41919
41920 Sync with i386 version.
41921 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
41922 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
41923
41924 2006-09-21 Robert Millan <rmh@aybabtu.com>
41925
41926 Import from GRUB Legacy (lib/device.c):
41927 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
41928 (init_device_map) [__linux__]: Add support for I2O devices.
41929
41930 2006-09-14 Marco Gerards <marco@gnu.org>
41931
41932 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
41933 `-melf_i386'.
41934
41935 2006-09-14 Robert Millan <rmh@aybabtu.com>
41936
41937 * util/i386/pc/grub-install.in: Skip menu.lst when removing
41938 /boot/grub/*.lst.
41939
41940 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
41941
41942 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
41943 before adding it to device.map.
41944
41945 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
41946
41947 * genmk.rb: Let GCC generate dependencies the first time it
41948 compiles a file; using the -MD option.
41949 * conf/common.mk: Regenerate.
41950 * conf/i386-pc.mk: Likewise.
41951 * conf/i386-efi.mk: Likewise.
41952 * conf/powerpc-ieee1275.mk: Likewise.
41953 * conf/sparc64-ieee1275.mk: Likewise.
41954
41955 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
41956
41957 Move the prototypes of grub_setjmp and grub_longjmp to
41958 cpu/setjmp.h, so that each architecture may specify different
41959 attributes.
41960
41961 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
41962 (grub_longjmp): Likewise.
41963 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
41964 (grub_longjmp): Likewise.
41965 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
41966 (grub_longjmp): Likewise.
41967
41968 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
41969 [!GRUB_UTIL] (grub_longjmp): Removed.
41970
41971 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
41972
41973 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
41974 "color!" method does not return any value.
41975
41976 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41977
41978 * include/grub/bitmap.h: New file.
41979
41980 * include/grub/i386/pc/vbeutil.h: Likewise.
41981
41982 * video/bitmap.c: Likewise.
41983
41984 * video/readers/tga.c: Likewise.
41985
41986 * video/i386/pc/vbeutil.c: Likewise.
41987
41988 * commands/videotest.c: Code cleanup and updated to reflect to new
41989 video API.
41990
41991 * term/gfxterm.c: Likewise.
41992
41993 * video/video.c: Likewise.
41994
41995 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
41996 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
41997 (bitmap_mod_SOURCES): New entry.
41998 (bitmap_mod_CFLAGS): Likewise.
41999 (bitmap_mod_LDFLAGS): Likewise.
42000 (tga_mod_SOURCES): Likewise.
42001 (tga_mod_CFLAGS): Likewise.
42002 (tga_mod_LDFLAGS): Likewise.
42003
42004 * include/grub/video.h (grub_video_blit_operators): New enum type.
42005 (grub_video_render_target): Changed as forward declaration and moved
42006 actual definition to be video driver specific.
42007 (grub_video_adapter.blit_bitmap): Added blitting operator.
42008 (grub_video_adapter.blit_render_target): Likewise.
42009 (grub_video_blit_bitmap): Likewise.
42010 (grub_video_blit_render_target): Likewise.
42011
42012 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
42013 driver specific render target definition.
42014 (grub_video_vbe_map_rgba): Added driver internal helper.
42015 (grub_video_vbe_unmap_color): Updated to use
42016 grub_video_i386_vbeblit_info.
42017 (grub_video_vbe_get_video_ptr): Likewise.
42018
42019 * include/grub/i386/pc/vbeblit.h
42020 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
42021 grub_video_i386_vbeblit_info.
42022 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42023 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42024 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42025 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42026 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42027 (grub_video_i386_vbeblit_index_index): Likewise.
42028 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
42029 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42030 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42031 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
42032 operator.
42033 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
42034 operator.
42035
42036 * video/i386/pc/vbeblit.c: Updated to reflect changes on
42037 include/grub/i386/pc/vbeblit.h.
42038
42039 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
42040 Updated to use grub_video_i386_vbeblit_info.
42041 (grub_video_i386_vbefill_R8G8B8): Likewise.
42042 (grub_video_i386_vbefill_index): Likewise.
42043 (grub_video_i386_vbefill): Added generic filler.
42044
42045 * video/i386/pc/vbefill.c: Updated to reflect changes on
42046 include/grub/i386/pc/vbefill.h.
42047
42048 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
42049 grub_video_i386_vbeblit_info.
42050 (grub_video_vbe_unmap_color): Likewise.
42051 (grub_video_vbe_blit_glyph): Likewise.
42052 (grub_video_vbe_scroll): Likewise.
42053 (grub_video_vbe_draw_pixel): Removed function.
42054 (grub_video_vbe_get_pixel): Likewise.
42055 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
42056 updated code to use it.
42057 (common_blitter): Added common blitter for render target and bitmap.
42058 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
42059 (grub_video_vbe_blit_render_target): Likewise.
42060
42061 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
42062
42063 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
42064 is in text mode if there is no console control protocol instance
42065 available.
42066
42067 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42068
42069 * include/grub/video.h: Code cleanup.
42070
42071 * include/grub/i386/pc/vbe.h: Likewise.
42072
42073 * video/i386/pc/vbe.c: Likewise.
42074
42075 * video/i386/pc/vbeblit.c: Likewise.
42076
42077 * video/i386/pc/vbefill.c: Likewise.
42078
42079 * video/video.c: Likewise. Also added more comments.
42080
42081 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42082
42083 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
42084 (struct grub_biosdisk_dap): Likewise.
42085
42086 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
42087 linkage settings for all functions.
42088
42089 2006-07-12 Marco Gerards <marco@gnu.org>
42090
42091 * configure.ac (--enable-mm-debug): Fix typo.
42092
42093 * genkernsyms.sh.in: Use proper quoting for `CC'.
42094
42095 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
42096
42097 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
42098 (normal_mod_ASFLAGS): Remove "-m32".
42099
42100 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
42101
42102 * util/misc.c: Include config.h.
42103 [!HAVE_MEMALIGN]: Do not include malloc.h.
42104 (grub_memalign): Use posix_memalign, if present. Then, use
42105 memalign, if present. Otherwise, emit an error.
42106
42107 * util/grub-emu.c: Do not include malloc.h.
42108
42109 * include/grub/util/misc.h: Include unistd.h. This is required for
42110 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
42111 D. Eades III <hde@foobar-qux.org>.
42112
42113 * configure.ac (AC_GNU_SOURCE): Added.
42114 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
42115 type.
42116
42117 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
42118
42119 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
42120 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
42121
42122 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
42123
42124 * include/grub/types.h (grub_host_addr_t): Rename to
42125 grub_target_addr_t.
42126 (grub_host_off_t): Rename to grub_target_off_t.
42127 (grub_host_size_t): Rename to grub_target_size_t.
42128 (grub_host_ssize_t): Rename to grub_target_ssize_t.
42129 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
42130
42131 * include/grub/kernel.h (struct grub_module_header): Change type
42132 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
42133 (grub_module_info): Likewise.
42134
42135 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42136
42137 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
42138 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
42139 Velazquez <jesus.velazquez@gmail.com>.
42140
42141 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42142
42143 Count partitions from 1 instead of 0 in the string representation
42144 of partitions. Still use 0-based internally.
42145
42146 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
42147 (sun_partition_map_iterate): Use grub_partition_t instead of
42148 struct grub_partition *. Cast DESC->START_CYLINDER to
42149 grub_uint64_t after converting the endian.
42150 (sun_partition_map_probe): Subtract 1 for PARTNUM.
42151 (sun_partition_map_get_name): Add 1 to P->INDEX.
42152
42153 * partmap/pc.c (grub_partition_parse): Subtract 1 for
42154 PCDATA->DOS_PART.
42155 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
42156
42157 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
42158 zero instead of one.
42159 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
42160 (gpt_partition_map_get_name): Add 1 into P->INDEX.
42161
42162 * partmap/apple.c (apple_partition_map_iterate): Change the type
42163 of POS to unsigned.
42164 (apple_partition_map_probe): Subtract 1 for PARTNUM.
42165 (apple_partition_map_get_name): Add 1 into P->INDEX.
42166
42167 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
42168 of POS to unsigned.
42169 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
42170 calculate the offset of a partition.
42171 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
42172 (amiga_partition_map_get_name): Add 1 into P->INDEX.
42173
42174 * partmap/acorn.c (acorn_partition_map_find): Change the type of
42175 SECTOR to grub_disk_addr_t.
42176 (acorn_partition_map_iterate): Likewise.
42177 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
42178 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
42179 top.
42180 (acorn_partition_map_get_name): Add 1 into P->INDEX.
42181
42182 * kern/i386/pc/init.c (make_install_device): Add 1 into
42183 GRUB_INSTALL_DOS_PART.
42184
42185 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
42186 conditional.
42187
42188 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42189
42190 Clean up the code to support 64-bit addressing in disks and
42191 files. This change is not enough for filesystems yet.
42192
42193 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
42194 type of "start" to grub_uint64_t.
42195 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
42196 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
42197 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
42198 convert addresses.
42199
42200 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
42201 to grub_disk_addr_t.
42202
42203 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
42204 string.
42205
42206 * partmap/pc.c (pc_partition_map_iterate): Likewise.
42207
42208 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
42209 to char *.
42210
42211 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
42212
42213 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
42214
42215 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
42216
42217 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
42218 to grub_off_t, to detect an error from grub_file_seek.
42219 (grub_multiboot_load_elf32): Likewise.
42220
42221 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
42222 maximum unsigned long value when an overflow is detected.
42223 (grub_strtoull): New function.
42224 (grub_divmod64): Likewise.
42225 (grub_lltoa): use grub_divmod64.
42226
42227 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
42228 grub_disk_addr_t.
42229 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
42230 the pointer to next character. Use grub_strtoull instead of
42231 grub_strtoul.
42232 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
42233 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
42234 respectively.
42235
42236 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
42237 return value is signed.
42238 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
42239 test if OFFSET is less than zero, as OFFSET is unsigned now.
42240
42241 * kern/disk.c (struct grub_disk_cache): Change the type of
42242 "sector" to grub_disk_addr_t.
42243 (grub_disk_cache_get_index): Change the type of SECTOR to
42244 grub_disk_addr_t. Calculate the hash with SECTOR casted to
42245 unsigned after shifting.
42246 (grub_disk_cache_invalidate): Change the type of SECTOR to
42247 grub_disk_addr_t.
42248 (grub_disk_cache_unlock): Likewise.
42249 (grub_disk_cache_store): Likewise.
42250 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
42251 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
42252 grub_disk_addr_t and grub_uint64_t, respectively.
42253 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
42254 body, as the value of OFFSET is tweaked by
42255 grub_disk_check_range. Change the types of START_SECTOR, LEN and
42256 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
42257 respectively.
42258 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
42259 body, as the value of OFFSET is tweaked by
42260 grub_disk_check_range. Change the types of LEN and N to
42261 grub_size_t.
42262
42263 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
42264 and "saved_offset" to grub_off_t.
42265 (test_header): Cast BUF to char *.
42266 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
42267 to char *.
42268 (grub_gzio_read): Change the types of OFFSET and SIZE to
42269 grub_off_t and grub_size_t, respectively.
42270
42271 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
42272 Removed.
42273 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
42274 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
42275 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
42276 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
42277 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
42278
42279 * include/grub/types.h (grub_off_t): Unconditionally set to
42280 grub_uint64_t.
42281 (grub_disk_addr_t): Changed to grub_uint64_t.
42282
42283 * include/grub/partition.h (struct grub_partition): Change the
42284 types of "start", "len" and "offset" to grub_disk_addr_t,
42285 grub_uint64_t and grub_disk_addr_t, respectively.
42286 (grub_partition_get_start): Return grub_disk_addr_t.
42287 (grub_partition_get_len): Return grub_uint64_t.
42288
42289 * include/grub/misc.h (grub_strtoull): New prototype.
42290 (grub_divmod64): Likewise.
42291
42292 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
42293 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
42294 grub_off_t, respectively.
42295 All callers and references changed.
42296
42297 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
42298 grub_size_t in "read".
42299 All callers and references changed.
42300
42301 * include/grub/file.h (struct grub_file): Change the types of
42302 "offset" and "size" to grub_off_t and grub_off_t,
42303 respectively. Change the type of SECTOR to grub_disk_addr_t in
42304 "read_hook".
42305 (grub_file_read): Change the type of LEN to grub_size_t.
42306 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
42307 grub_off_t.
42308 (grub_file_size): Return grub_off_t.
42309 (grub_file_tell): Likewise.
42310 All callers and references changed.
42311
42312 * include/grub/disk.h (struct grub_disk_dev): Change the types of
42313 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
42314 "write".
42315 (struct grub_disk): Change the type of "total_sectors" to
42316 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
42317 "read_hook".
42318 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
42319 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
42320 (grub_disk_write): Likewise.
42321 All callers and references changed.
42322
42323 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
42324 char * for grub_strncmp to silence gcc.
42325 (grub_iso9660_mount): Likewise.
42326 (grub_iso9660_mount): Likewise.
42327 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
42328 return statement.
42329 (grub_iso9660_iterate_dir): Likewise.
42330 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
42331
42332 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
42333 LEN to grub_disk_addr_t and grub_size_t, respectively.
42334
42335 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
42336
42337 * fs/jfs.c (grub_jfs_read_file): Likewise.
42338
42339 * fs/minix.c (grub_jfs_read_file): Likewise.
42340
42341 * fs/sfs.c (grub_jfs_read_file): Likewise.
42342
42343 * fs/ufs.c (grub_jfs_read_file): Likewise.
42344
42345 * fs/xfs.c (grub_jfs_read_file): Likewise.
42346
42347 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
42348 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
42349 respectively.
42350
42351 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
42352 BLKNR to -1 instead of returning GRUB_ERRNO.
42353 (grub_ext2_read_file): Change the types of SECTOR and
42354 LEN to grub_disk_addr_t and grub_size_t, respectively.
42355
42356 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
42357 LEN to grub_disk_addr_t and grub_size_t, respectively.
42358
42359 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
42360 grub_file_read.
42361
42362 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
42363 string. Do not cast SECTOR explicitly.
42364
42365 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
42366 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
42367 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
42368 grub_disk_addr_t and grub_size_t, respectively. If the sector is
42369 over 2TB and LBA mode is not supported, raise an error.
42370 (get_safe_sectors): New function.
42371 (grub_biosdisk_read): Use get_safe_sectors.
42372 (grub_biosdisk_write): Likewise.
42373
42374 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
42375 (grub_efidisk_write): Likewise.
42376
42377 * disk/loopback.c (delete_loopback): Cosmetic changes.
42378 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
42379 correctly.
42380 (grub_loopback_open): Likewise.
42381 (grub_loopback_read): Likewise. Also, change the type of POS to
42382 grub_off_t, and fix the usage of grub_memset.
42383
42384 * commands/i386/pc/play.c: Include grub/machine/time.h.
42385
42386 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
42387 print FILE->SIZE.
42388
42389 * commands/configfile.c: Include grub/env.h.
42390
42391 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
42392 GRUB_ERRNO directly instead. Change the type of POS to
42393 grub_off_t. Follow the coding standard.
42394
42395 * commands/blocklist.c: Include grub/partition.h.
42396 (grub_cmd_blocklist): Return an error if the underlying device is
42397 not a disk. Take the starting sector of a partition into account,
42398 if a partition is used.
42399
42400 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
42401 a length field.
42402 (lba_mode): Support 64-bit addresses.
42403 (chs_mode): Likewise.
42404 (copy_buffer): Adapted to the new offsets of a length field and a
42405 segment field.
42406 (blocklist_default_start): Allocate 64-bit space.
42407
42408 * boot/i386/pc/boot.S (force_lba): Removed.
42409 (boot_drive): Moved to under KERNEL_SECTOR.
42410 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
42411 space.
42412 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
42413 is useless.
42414 (lba_mode): Refactored to support a 64-bit address. More size
42415 optimization.
42416 (setup_sectors): Likewise.
42417
42418 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42419
42420 * DISTLIST: Added include/grub/i386/linux.h. Removed
42421 include/grub/i386/pc/linux.h
42422
42423 * configure.ac (AC_INIT): Bumped to 1.94.
42424
42425 * config.guess: Updated from gnulib.
42426 * config.sub: Likewise.
42427 * install-sh: Likewise.
42428 * mkinstalldirs: Likewise.
42429
42430 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42431
42432 * conf/common.rmk (grub_modules_init.lst): Depended on
42433 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
42434 MODSRCFILES.
42435
42436 * genmk.rb (PModule::rule): Reverted the previous change.
42437
42438 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42439
42440 * conf/common.rmk (grub_modules_init.lst): Depends on
42441 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
42442 that the target does not exist before producing.
42443 (grub_modules_init.h): Remove the target before generating.
42444 (grub_emu_init.c): Likewise.
42445
42446 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
42447
42448 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
42449
42450 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
42451 for the target-specific tests. Make sure that we also have the
42452 up-to-date target variables for those tests.
42453
42454 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42455
42456 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
42457 (PModule::rule): Likewise.
42458
42459 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42460
42461 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
42462 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
42463 target-specific flags should be prefixed.
42464 (PModule::rule): Likewise.
42465
42466 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
42467
42468 * configure.ac (CMP): Check if cmp is available explicitly.
42469
42470 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
42471
42472 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
42473 (target_cpu): New variable.
42474 (pkglibdir): Use target_cpu instead of host_cpu.
42475
42476 * util/i386/pc/grub-install.in (host_cpu): Removed.
42477 (target_cpu): New variable.
42478 (pkglibdir): Use target_cpu instead of host_cpu.
42479
42480 * util/genmoddep.c: Removed.
42481
42482 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
42483 instead of GRUB_HOST_SIZEOF_VOID_P.
42484 * kern/dl.c: Likewise.
42485
42486 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
42487 ...
42488 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42489 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42490 (GRUB_TARGET_SIZEOF_LONG): ... this.
42491 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42492 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42493 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42494 to ...
42495 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42496 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42497 (GRUB_TARGET_SIZEOF_LONG): ... this.
42498 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42499 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42500 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42501 to ...
42502 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42503 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42504 (GRUB_TARGET_SIZEOF_LONG): ... this.
42505 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42506 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42507
42508 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
42509 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
42510 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
42511 instead of GRUB_HOST_SIZEOF_LONG.
42512 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
42513 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
42514 GRUB_CPU_WORDS_BIGENDIAN.
42515 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
42516 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
42517 grub_host_ssize_t.
42518
42519 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
42520 (genmoddep_SOURCES): Likewise.
42521 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
42522 (genmoddep_SOURCES): Likewise.
42523 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
42524 (genmoddep_SOURCES): Likewise.
42525 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
42526 Likewise.
42527 (genmoddep_SOURCES): Likewise.
42528
42529 * genmoddep.awk: New file.
42530
42531 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
42532 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
42533 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
42534 (PModule::rule): Likewise.
42535 (Program::rule): Likewise.
42536 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
42537 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
42538 respectively.
42539
42540 * configure.ac: Rewritten intensively to use host and target
42541 instead of build and host, respectively.
42542
42543 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
42544 (host_cpu): Removed.
42545 (target_cpu): New variable.
42546 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
42547 (BUILD_CC): Removed.
42548 (BUILD_CFLAGS): Likewise.
42549 (BUILD_CPPFLAGS): Likewise.
42550 (TARGET_CC): New variable.
42551 (TARGET_CFLAGS): Likewise.
42552 (TARGET_CPPFLAGS): Likewise.
42553 (TARGET_LDFLAGS): Likewise.
42554 (AWK): Likewise.
42555 (include): Use target_cpu instead of host_cpu.
42556 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
42557
42558 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
42559
42560 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
42561
42562 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
42563 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
42564 field 'false' to 'exec_on_false'.
42565 (grub_script_create_cmdif): Renamed argument names to reflect above
42566 changes.
42567
42568 * normal/execute.c (grub_script_execute_cmdif): Likewise.
42569
42570 * normal/script.c (grub_script_create_cmdif): Likewise.
42571
42572 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
42573
42574 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
42575 top.
42576 (grub_hfsplus_btree_recptr): Likewise.
42577 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
42578 FILEBLOCK both to pass a block number and store next block
42579 number.
42580 (grub_hfsplus_read_block): Rewritten heavily to support an extent
42581 overflow file correctly. Specify errors appropriately, because
42582 fshelp expects that GRUB_ERRNO is set when fails. Reuse
42583 grub_hfsplus_btree_recptr to get the pointer to a found key.
42584 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
42585 is found.
42586
42587 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
42588 linux.mod.
42589 (_linux_mod_SOURCES): New variable.
42590 (_linux_mod_CFLAGS): Likewise.
42591 (_linux_mod_LDFLAGS): Likewise.
42592 (linux_mod_SOURCES): Likewise.
42593 (linux_mod_CFLAGS): Likewise.
42594 (linux_mod_LDFLAGS): Likewise.
42595
42596 * DISTLIST: Added loader/i386/efi/linux.c,
42597 loader/i386/efi/linux_normal.c and
42598 include/grub/i386/efi/loader.h.
42599
42600 * loader/i386/efi/linux.c: New file.
42601 * loader/i386/efi/linux_normal.c: Likewise.
42602 * include/grub/i386/efi/loader.h: Likewise.
42603
42604 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
42605
42606 * commands/blocklist.c: New file.
42607
42608 * DISTLIST: Added commands/blocklist.c.
42609
42610 * term/efi/console.c (grub_console_highlight_color): Use a lighter
42611 color for the background, and a darker color for the foreground.
42612 (grub_console_checkkey): Return READ_KEY.
42613 (grub_console_cls): Set the background to
42614 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
42615
42616 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
42617
42618 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
42619 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
42620
42621 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
42622 prototype.
42623
42624 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
42625 BG. The spec is wrong again.
42626
42627 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
42628 prototype.
42629 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
42630
42631 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
42632 commands/blocklist.c.
42633 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42634
42635 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
42636 (blocklist_mod_SOURCES): New variable.
42637 (blocklist_mod_CFLAGS): Likewise.
42638 (blocklist_mod_LDFLAGS): Likewise.
42639
42640 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
42641
42642 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
42643 duplication.
42644 (lba_mode): Use %eax more intensively to reduce the code size.
42645
42646 2006-05-20 Marco Gerards <marco@gnu.org>
42647
42648 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
42649
42650 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
42651 for `menuentry'.
42652 (script): Accept leading newlines.
42653 (newlines): New rule to describe 0 or more newlines.
42654 (commands): Accept `command' with trailing newline. Fixed the
42655 order in which arguments were passed to `grub_script_add_cmd'.
42656 Accept commands separated by newlines.
42657 (function): Changed to accept newlines.
42658 (menuentry) Rewritten.
42659
42660 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
42661 front of the list, instead of to the end.
42662
42663 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
42664
42665 * util/i386/pc/grub-install.in (bindir): New variable.
42666 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
42667 Shaver <lbgwjl@gmail.com>.
42668
42669 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
42670
42671 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
42672 grub/machine/linux.h
42673 * loader/i386/pc/linux.c: Likewise.
42674
42675 * include/grub/i386/pc/linux.h: Moved to ...
42676 * include/grub/i386/linux.h: ... here.
42677
42678 * include/grub/i386/linux.h (struct linux_kernel_params): New
42679 struct.
42680
42681 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
42682
42683 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
42684 checking.
42685 (grub_video_vbe_blit_glyph): Likewise.
42686 (grub_video_vbe_blit_bitmap): Likewise.
42687 (grub_video_vbe_blit_render_target): Likewise.
42688
42689 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
42690
42691 * configure.ac (--with-platform): Properly quote the square
42692 brackets.
42693
42694 2006-05-08 Marco Gerards <marco@gnu.org>
42695
42696 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
42697 this...
42698 (kernel_elf_HEADERS): ...to this. Updated all users.
42699 (grubof_symlist.c): Renamed from this...
42700 (kernel_elf_symlist.c): ...to this. Updated all users.
42701 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42702 (grubof_SOURCES): Renamed from this...
42703 (kernel_elf_SOURCES): ...to this.
42704 (grubof_HEADERS): Renamed from this...
42705 (kernel_elf_HEADERS): ...to this.
42706 (grubof_CFLAGS): Renamed from this...
42707 (kernel_elf_CFLAGS): ...to this.
42708 (grubof_ASFLAGS): Renamed from this...
42709 (kernel_elf_ASFLAGS): ...to this.
42710 (grubof_LDFLAGS): Renamed from this...
42711 (kernel_elf_LDFLAGS): ...to this.
42712
42713 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
42714 this...
42715 (kernel_elf_HEADERS): ...to this. Updated all users.
42716 (grubof_symlist.c): Renamed from this...
42717 (kernel_elf_symlist.c): ...to this. Updated all users.
42718 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42719 (grubof_SOURCES): Renamed from this...
42720 (kernel_elf_SOURCES): ...to this.
42721 (grubof_HEADERS): Renamed from this...
42722 (kernel_elf_HEADERS): ...to this.
42723 (grubof_CFLAGS): Renamed from this...
42724 (kernel_elf_CFLAGS): ...to this.
42725 (grubof_ASFLAGS): Renamed from this...
42726 (kernel_elf_ASFLAGS): ...to this.
42727 (grubof_LDFLAGS): Renamed from this...
42728 (kernel_elf_LDFLAGS): ...to this.
42729
42730 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
42731 `kernel.elf' instead of `grubof'.
42732
42733 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
42734
42735 Add --with-platform to configure. Use pkglibdir instead of
42736 pkgdatadir. This is reported by Roger Leigh.
42737
42738 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
42739 (host_vendor): Likewise.
42740 (host_os): Likewise.
42741 (pkgdatadir): Likewise.
42742 (platform): New variable.
42743 (pkglibdir): Likewise.
42744 Use PKGLIBDIR instead of PKGDATADIR.
42745
42746 * util/i386/pc/grub-install.in (datadir): Removed.
42747 (host_vendor): Likewise.
42748 (host_os): Likewise.
42749 (pkgdatadir): Likewise.
42750 (platform): New variable.
42751 (pkglibdir): Likewise.
42752 Use PKGLIBDIR instead of PKGDATADIR.
42753
42754 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
42755 instead of GRUB_DATADIR.
42756 (main): Likewise.
42757 * util/i386/pc/grub-mkimage.c (usage): Likewise.
42758 (main): Likewise.
42759 * util/i386/efi/grub-mkimage.c (usage): Likewise.
42760 (main): Likewise.
42761
42762 * configure.ac (--with-platform): New option.
42763 Use PLATFORM instead of HOST_VENDOR to specify a platform.
42764
42765 * Makefile.in: Include a makefile based on PLATFORM instead of
42766 HOST_VENDOR.
42767 (pkgdatadir): Not appended by the machine type.
42768 (pkglibdir): Appended by the machine type.
42769 (host_vendor): Removed.
42770 (platform): New variable.
42771 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
42772 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
42773 (uninstall): Likewise.
42774
42775 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
42776
42777 Use the environment context in the menu. Remove the commands
42778 "default" and "timeout", and use variables instead.
42779
42780 * normal/menu.c: Include grub/env.h.
42781 (print_entry): Cast TITLE to silence gcc.
42782 (get_timeout): New function.
42783 (set_timeout): Likewise.
42784 (get_entry_number): Likewise.
42785 (run_menu): Use a default entry, a fallback entry and a timeout
42786 in the environment variables "default", "fallback" and
42787 "timeout". Also, tweak the default entry if it is not within the
42788 current menu entries.
42789 (grub_menu_run): Use a fallback entry in the environment variable
42790 "fallback".
42791
42792 * normal/main.c (read_config_file): Do not initialize
42793 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
42794 NEWMENU->TIMEOUT.
42795 (grub_normal_execute): Use a data slot to store the menu.
42796
42797 * include/grub/normal.h (struct grub_menu): Removed default_entry,
42798 fallback_entry and timeout.
42799 (struct grub_menu_list): Removed.
42800 (grub_menu_list_t): Likewise.
42801 (struct grub_context): Likewise.
42802 (grub_context_t): Likewise.
42803 (grub_context_get): Likewise.
42804 (grub_context_get_current_menu): Likewise.
42805 (grub_context_push_menu): Likewise.
42806 (grub_context_pop_menu): Likewise.
42807 (grub_default_init): Likewise.
42808 (grub_default_fini): Likewise.
42809 (grub_timeout_init): Likewise.
42810 (grub_timeout_fini): Likewise.
42811
42812 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
42813 and timeout.mod.
42814 (normal_mod_SOURCES): Removed normal/context.c.
42815
42816 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
42817 commands/default.c, commands/timeout.c and normal/context.c.
42818 (normal_mod_SOURCES): Removed normal/context.c.
42819
42820 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
42821 commands/timeout.c and normal/context.c.
42822 (normal_mod_SOURCES): Removed normal/context.c.
42823
42824 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
42825 commands/default.c, commands/timeout.c and normal/context.c.
42826 (normal_mod_SOURCES): Removed normal/context.c.
42827
42828 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
42829 timeout.mod.
42830 (default_mod_SOURCES): Removed.
42831 (default_mod_CFLAGS): Likewise.
42832 (default_mod_LDFLAGS): Likewise.
42833 (timeout_mod_SOURCES): Removed.
42834 (timeout_mod_CFLAGS): Likewise.
42835 (timeout_mod_LDFLAGS): Likewise.
42836
42837 * DISTLIST: Removed commands/default.c, commands/timeout.c and
42838 normal/context.c.
42839
42840 * commands/default.c: Removed.
42841 * commands/timeout.c: Likewise.
42842 * normal/context.c: Likewise.
42843
42844 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
42845
42846 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
42847
42848 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
42849
42850 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
42851 "next" to "prev" for readability.
42852 (struct grub_env_sorted_var): New struct.
42853 (grub_env_context): Renamed to ...
42854 (initial_context): ... this.
42855 (grub_env_var_context): Renamed to ...
42856 (current_context): ... this.
42857 (grub_env_find): Look only at CURRENT_CONTEXT.
42858 (grub_env_context_open): Rewritten to copy exported variables from
42859 previous context.
42860 (grub_env_context_close): Rewritten according to the new
42861 scheme. Also, add an assertion to prevent the initial context from
42862 removed.
42863 (grub_env_insert): Removed the code for the sorted list.
42864 (grub_env_remove): Likewise.
42865 (grub_env_export): Simply mark the variable with
42866 GRUB_ENV_VAR_GLOBAL.
42867 (grub_env_set): A cosmetic change for naming consistency.
42868 (grub_env_get): Likewise.
42869 (grub_env_unset): Likewise.
42870 (grub_env_iterate): Rewritten to sort variables within this
42871 function.
42872 (grub_register_variable_hook): Fixed for naming consistency. Call
42873 grub_env_find again, only if NAME is not found at the first time.
42874 (mangle_data_slot_name): New function.
42875 (grub_env_set_data_slot): Likewise.
42876 (grub_env_get_data_slot): Likewise.
42877 (grub_env_unset_data_slot): Likewise.
42878
42879 * include/grub/env.h (grub_env_var_type): New enum.
42880 (GRUB_ENV_VAR_LOCAL): New constant.
42881 (GRUB_ENV_VAR_GLOBAL): Likewise.
42882 (GRUB_ENV_VAR_DATA): Likewise.
42883 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
42884 "type".
42885 (grub_env_set): Replace VAR with NAME for consistency.
42886 (grub_register_variable_hook): Likewise.
42887 (grub_env_export): Specify the name of the argument.
42888 (grub_env_set_data_slot): New prototype.
42889 (grub_env_get_data_slot): Likewise.
42890 (grub_env_unset_data_slot): Likewise.
42891
42892 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42893
42894 Extend the loader so that GRUB can accept a loader which comes
42895 back to GRUB when a loaded image exits. Also, this change adds
42896 support for a chainloader on EFI.
42897
42898 * term/efi/console.c: Include grub/misc.h.
42899 (grub_console_checkkey): Display a scan code on the top for
42900 debugging. This will be removed once the EFI port gets stable.
42901 Correct the scan code mapping.
42902
42903 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
42904 allocate memory from larger regions, in order to reduce the number
42905 of allocated regions. Otherwise, the MacOSX loader panics.
42906 (filter_memory_map): Avoid less than 1MB for compatibility with
42907 other loaders.
42908 (add_memory_regions): Allocate from the tail of a region, if
42909 possible, to avoid allocating a region near to 1MB, for the MacOSX
42910 loader.
42911
42912 * kern/efi/init.c (grub_efi_set_prefix): Specify
42913 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
42914
42915 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
42916 argument IMAGE_HANDLE and specify it to get a loaded image.
42917 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
42918 grub_efi_get_loaded_image.
42919 (grub_efi_get_filename): Divide the length by the size of
42920 grub_efi_char16_t.
42921 (grub_efi_get_device_path): New function.
42922 (grub_efi_print_device_path): Print End Device Path nodes. Divide
42923 the length by the size of grub_efi_char16_t for a file path device
42924 path node.
42925
42926 * kern/loader.c (grub_loader_noreturn): New variable.
42927 (grub_loader_set): Accept a new argument NORETURN. Set
42928 GRUB_LOADER_NORETURN to NORETURN.
42929 All callers changed.
42930 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
42931 grub_machine_fini.
42932
42933 * include/grub/efi/efi.h (grub_efi_get_device_path): New
42934 prototype.
42935 (grub_efi_get_loaded_image): Take an argument to specify an image
42936 handle.
42937
42938 * include/grub/loader.h (grub_loader_set): Added one more argument
42939 NORETURN.
42940
42941 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
42942 instead of grub_efi_open_protocol.
42943 (grub_efidisk_get_device_name): Likewise.
42944 (grub_efidisk_close): Print a newline.
42945 (grub_efidisk_get_device_handle): Fixed to use
42946 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
42947 GRUB_EFI_DEVICE_PATH_TYPE.
42948
42949 * disk/efi/efidisk.c (device_path_guid): Moved to ...
42950 * kern/efi/efi.c (device_path_guid): ... here.
42951
42952 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
42953 chain.mod.
42954 (kernel_mod_HEADERS): Added efi/disk.h.
42955 (_chain_mod_SOURCES): New variable.
42956 (_chain_mod_CFLAGS): Likewise.
42957 (_chain_mod_LDFLAGS): Likewise.
42958 (chain_mod_SOURCES): Likewise.
42959 (chain_mod_CFLAGS): Likewise.
42960 (chain_mod_LDFLAGS): Likewise.
42961
42962 * DISTLIST: Added include/grub/efi/chainloader.h,
42963 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
42964
42965 * include/grub/efi/chainloader.h: New file.
42966 * loader/efi/chainloader.c: Likewise.
42967 * loader/efi/chainloader_normal.c: Likewise.
42968
42969 2006-04-30 Marco Gerards <marco@gnu.org>
42970
42971 * commands/configfile.c (grub_cmd_source): New function.
42972 (GRUB_MOD_INIT): Register the commands `source' and `.'.
42973 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
42974
42975 2006-04-30 Marco Gerards <marco@gnu.org>
42976
42977 * normal/execute.c (grub_script_execute_cmd): Change the return
42978 type to `grub_err_t'. Correctly return the error.
42979 (grub_script_execute_cmdline): In case a command line is not a
42980 command or a function, try to interpret it as an assignment.
42981
42982 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42983
42984 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
42985 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
42986 skip a node whose name is obviously invalid as UTF-16,
42987 i.e. contains a NUL character. Stop the iteration when the last
42988 directory entry is found. Instead of using the return value of
42989 grub_hfsplus_btree_iterate_node, store the value in RET and use
42990 it, because the iterator can be stopped by the last directory
42991 entry.
42992
42993 2006-04-30 Marco Gerards <marco@gnu.org>
42994
42995 * include/grub/env.h (grub_env_export): New prototype. Reported
42996 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
42997
42998 2006-04-30 Marco Gerards <marco@gnu.org>
42999
43000 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
43001 size of the extents in a catalog file record.
43002
43003 2006-04-29 Marco Gerards <marco@gnu.org>
43004
43005 * commands/configfile.c (grub_cmd_configfile): Execute the
43006 configfile within its own context.
43007
43008 * include/grub/env.h (grub_env_context_open): New prototype.
43009 (grub_env_context_close): Likewise.
43010
43011 * kern/env.c (grub_env): Removed.
43012 (grub_env_sorted): Likewise.
43013 (grub_env_context): New variable.
43014 (grub_env_var_context): Likewise.
43015 (grub_env_find): Search both the active context and the global
43016 context.
43017 (grub_env_context_open): New function.
43018 (grub_env_context_close): Likewise.
43019 (grub_env_insert): Likewise.
43020 (grub_env_remove): Likewise.
43021 (grub_env_export): Likewise.
43022 (grub_env_set): Changed to use helper functions to avoid code
43023 duplication.
43024 (grub_env_iterate): Rewritten so both the current context and the
43025 global context are being used.
43026
43027 * normal/command.c (export_command): New function.
43028 (grub_command_init): Register the `export' function.
43029
43030 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
43031
43032 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
43033 explicitly to suppress gcc's warnings.
43034 * fs/fat.c (grub_fat_find_dir): Likewise.
43035 (grub_fat_label): Likewise.
43036 * fs/xfs.c (grub_xfs_read_inode): Likewise.
43037 (grub_xfs_mount): Likewise.
43038 (grub_xfs_label): Likewise.
43039 * fs/affs.c (grub_affs_mount): Likewise.
43040 (grub_affs_label): Likewise.
43041 (grub_affs_iterate_dir): Likewise.
43042 * fs/sfs.c (grub_sfs_mount): Likewise.
43043 (grub_sfs_iterate_dir): Likewise.
43044 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
43045 * fs/hfs.c (grub_hfs_mount): Likewise.
43046 (grub_hfs_cmp_catkeys): Likewise.
43047 (grub_hfs_find_dir): Likewise.
43048 (grub_hfs_dir): Likewise.
43049 (grub_hfs_label): Likewise.
43050 * fs/jfs.c (grub_jfs_mount): Likewise.
43051 (grub_jfs_opendir): Likewise.
43052 (grub_jfs_getent): Likewise.
43053 (grub_jfs_lookup_symlink): Likewise.
43054 (grub_jfs_label): Likewise.
43055 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
43056 (grub_hfsplus_iterate_dir): Likewise.
43057 (grub_hfsplus_btree_iterate_node): Made static.
43058
43059 * util/grub-emu.c (prefix): New variable.
43060 (grub_machine_set_prefix): New function.
43061 (main): Do not set the environment variable "prefix" here. Only
43062 set PREFIX, which is used later by grub_machine_set_prefix.
43063
43064 * include/grub/video.h: Do not include grub/symbol.h.
43065 (grub_video_register): Not exported. This symbol is not defined in
43066 the kernel.
43067 (grub_video_unregister): Likewise.
43068 (grub_video_iterate): Likewise.
43069 (grub_video_setup): Likewise.
43070 (grub_video_restore): Likewise.
43071 (grub_video_get_info): Likewise.
43072 (grub_video_get_blit_format): Likewise.
43073 (grub_video_set_palette): Likewise.
43074 (grub_video_get_palette): Likewise.
43075 (grub_video_set_viewport): Likewise.
43076 (grub_video_get_viewport): Likewise.
43077 (grub_video_map_color): Likewise.
43078 (grub_video_map_rgb): Likewise.
43079 (grub_video_map_rgba): Likewise.
43080 (grub_video_fill_rect): Likewise.
43081 (grub_video_blit_glyph): Likewise.
43082 (grub_video_blit_bitmap): Likewise.
43083 (grub_video_blit_render_target): Likewise.
43084 (grub_video_scroll): Likewise.
43085 (grub_video_swap_buffers): Likewise.
43086 (grub_video_create_render_target): Likewise.
43087 (grub_video_delete_render_target): Likewise.
43088 (grub_video_set_active_render_target): Likewise.
43089
43090 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
43091 Undefined.
43092 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
43093
43094 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
43095 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43096 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43097 instead of $(srcdir)/genkernsyms.sh.
43098
43099 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
43100 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43101 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43102 instead of $(srcdir)/genkernsyms.sh.
43103
43104 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
43105 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43106 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43107 instead of $(srcdir)/genkernsyms.sh.
43108
43109 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
43110 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43111 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43112 instead of $(srcdir)/genkernsyms.sh.
43113
43114 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
43115 genkernsyms.sh.
43116
43117 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
43118 genkernsyms.sh.
43119 (gensymlist.sh): New target.
43120 (genkernsyms.sh): Likewise.
43121
43122 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
43123 genkernsyms.sh.in and gensymlist.sh.in.
43124
43125 * genkernsyms.sh: Removed.
43126 * gensymlist.sh: Likewise.
43127
43128 * genkernsyms.sh.in: New file.
43129 * gensymlist.sh.in: Likewise.
43130
43131 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43132
43133 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
43134 clobber "prefix", since we may have already set it manually.
43135
43136 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43137
43138 * kern/misc.c (abort): New alias for grub_abort.
43139
43140 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
43141
43142 A new machine-specific function "grub_machine_set_prefix" is
43143 defined. This is called after loading modules, so that a prefix
43144 initialization can use modules. Also, this change adds an
43145 intensive debugging feature for the memory manager via the
43146 configure option "--enable-mm-debug".
43147
43148 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
43149 PART.LEN.
43150
43151 * kern/sparc64/ieee1275/init.c (abort): Removed.
43152 (grub_stop): Likewise.
43153 (grub_exit): New function.
43154 (grub_set_prefix): Renamed to ...
43155 (grub_machine_set_prefix): ... this.
43156 (grub_machine_init): Do not call grub_set_prefix.
43157
43158 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
43159 (grub_machine_set_prefix): ... this.
43160 (grub_machine_init): Do not call grub_set_prefix.
43161
43162 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
43163 (grub_machine_init): Do not set the prefix here.
43164
43165 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
43166
43167 * kern/efi/init.c: Include grub/mm.h.
43168 (grub_efi_set_prefix): New function.
43169
43170 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
43171 (grub_efi_get_filename): New function.
43172 (grub_print_device_path): Renamed to ...
43173 (grub_efi_print_device_path): ... this.
43174
43175 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
43176 [MM_DEBUG] (grub_realloc): Likewise.
43177 [MM_DEBUG] (grub_free): Likewise.
43178 [MM_DEBUG] (grub_memalign): Likewise.
43179 [MM_DEBUG] (grub_mm_debug): New variable.
43180 [MM_DEBUG] (grub_debug_malloc): New function.
43181 [MM_DEBUG] (grub_debug_free): New function.
43182 [MM_DEBUG] (grub_debug_realloc): New function.
43183 [MM_DEBUG] (grub_debug_memalign): New function.
43184
43185 * kern/misc.c (grub_abort): Print a newline to distinguish
43186 the message.
43187
43188 * kern/main.c (grub_main): Call grub_machine_set_prefix and
43189 grub_set_root_dev after loading modules. This is necessary when
43190 setting a prefix depends on modules.
43191
43192 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
43193 (grub_efi_print_device_path): ... this.
43194 (grub_efi_get_filename): New prototype.
43195 (grub_efi_set_prefix): Likewise.
43196
43197 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
43198 and grub/disk.h.
43199 (grub_efidisk_get_device_handle): New prototype.
43200 (grub_efidisk_get_device_name): Likewise.
43201
43202 * include/grub/mm.h: Include config.h.
43203 (MM_DEBUG): Removed.
43204 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
43205 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
43206 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
43207 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
43208 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
43209 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
43210 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
43211 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
43212 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
43213
43214 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
43215
43216 * disk/efi/efidisk.c: Include grub/partition.h.
43217 (iterate_child_devices): New function.
43218 (add_device): First, compare only last device path nodes, so that
43219 devices are sorted by the types.
43220 (grub_efidisk_get_device_handle): New function.
43221 (grub_efidisk_get_device_name): Likewise.
43222
43223 * configure.ac (--enable-mm-debug): New option to enable the
43224 memory manager debugging feature. This makes the binary much
43225 bigger, so is disabled by default.
43226
43227 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
43228
43229 Use grub_abort instead of grub_stop, and grub_exit must be
43230 define in each architecture now. Also, this change adds support
43231 for EFI disks.
43232
43233 * util/i386/pc/grub-probefs.c: Include grub/term.h.
43234 (grub_getkey): New function.
43235 (grub_term_get_current): Likewise.
43236
43237 * util/i386/pc/grub-setup.c: Include grub/term.h.
43238 (grub_getkey): New function.
43239 (grub_term_get_current): Likewise.
43240
43241 * util/misc.c (grub_stop): Renamed to ...
43242 (grub_exit): ... this.
43243
43244 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
43245 (grub_exit): ... this.
43246 (grub_machine_init): Use grub_abort instead of abort.
43247 (grub_stop): Removed.
43248
43249 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
43250 abort.
43251
43252 * kern/i386/pc/startup.S (grub_exit): New function.
43253 (cold_reboot): New label.
43254
43255 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
43256 (grub_efi_init): Call grub_efidisk_init.
43257 (grub_efi_fini): Call grub_efidisk_fini.
43258
43259 * kern/efi/efi.c: Include grub/mm.h.
43260 (grub_efi_console_control_guid): Renamed to ...
43261 (console_control_guid): ... this.
43262 (grub_efi_loaded_image_guid): Renamed to ...
43263 (loaded_image_guid): ... this.
43264 (grub_efi_locate_handle): New function.
43265 (grub_efi_open_protocol): Likewise.
43266 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
43267 GRUB_EFI_CONSOLE_CONTROL_GUID.
43268 (grub_efi_exit): Removed.
43269 (grub_stop): Likewise.
43270 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
43271 (grub_exit): New function.
43272 (grub_print_device_path): Likewise.
43273
43274 * kern/rescue.c (grub_rescue_cmd_exit): New function.
43275 (grub_enter_rescue_mode): Register "exit".
43276
43277 * kern/misc.c (grub_real_dprintf): A cosmetic change.
43278 (grub_abort): New function.
43279
43280 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
43281
43282 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
43283
43284 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
43285
43286 * include/grub/efi/efi.h (grub_efi_exit): Removed.
43287 (grub_print_device_path): New prototype.
43288 (grub_efi_locate_handle): Likewise.
43289 (grub_efi_open_protocol): Likewise.
43290
43291 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
43292 * disk/efi/efidisk.c: Likewise.
43293
43294 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
43295
43296 * include/grub/efi/console_control.h
43297 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
43298
43299 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
43300 last 8 bytes as an array.
43301 (GRUB_EFI_DISK_IO_GUID): New macro.
43302 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
43303 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
43304 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
43305 grub_uint8_t.
43306 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
43307 (struct grub_efi_device_path): Rename the member "sub_type" to
43308 "subtype".
43309 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
43310 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
43311 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
43312 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
43313 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
43314 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
43315 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
43316 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
43317 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
43318 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
43319 (struct grub_efi_pci_device_path): New structure.
43320 (grub_efi_pci_device_path_t): New type.
43321 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
43322 (struct grub_efi_pccard_device_path): New structure.
43323 (grub_efi_pccard_device_path_t): New type.
43324 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
43325 (struct grub_efi_memory_mapped_device_path): New structure.
43326 (grub_efi_memory_mapped_device_path_t): New type.
43327 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
43328 (struct grub_efi_vendor_device_path): New structure.
43329 (grub_efi_vendor_device_path_t): New type.
43330 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
43331 (struct grub_efi_controller_device_path): New structure.
43332 (grub_efi_controller_device_path_t): New type.
43333 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
43334 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
43335 (struct grub_efi_acpi_device_path): New structure.
43336 (grub_efi_acpi_device_path_t): New type.
43337 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
43338 (struct grub_efi_expanded_acpi_device_path): New structure.
43339 (grub_efi_expanded_acpi_device_path_t): New type.
43340 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
43341 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
43342 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
43343 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
43344 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
43345 (struct grub_efi_atapi_device_path): New structure.
43346 (grub_efi_atapi_device_path_t): New type.
43347 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
43348 (struct grub_efi_fibre_channel_device_path): New structure.
43349 (grub_efi_fibre_channel_device_path_t): New type.
43350 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
43351 (struct grub_efi_1394_device_path): New structure.
43352 (grub_efi_1394_device_path_t): New type.
43353 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
43354 (struct grub_efi_usb_device_path): New structure.
43355 (grub_efi_usb_device_path_t): New type.
43356 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
43357 (struct grub_efi_usb_class_device_path): New structure.
43358 (grub_efi_usb_class_device_path_t): New type.
43359 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
43360 (struct grub_efi_i2o_device_path): New structure.
43361 (grub_efi_i2o_device_path_t): New type.
43362 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
43363 (struct grub_efi_mac_address_device_path): New structure.
43364 (grub_efi_mac_address_device_path_t): New type.
43365 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
43366 (struct grub_efi_ipv4_device_path): New structure.
43367 (grub_efi_ipv4_device_path_t): New type.
43368 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
43369 (struct grub_efi_ipv6_device_path): New structure.
43370 (grub_efi_ipv6_device_path_t): New type.
43371 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
43372 (struct grub_efi_infiniband_device_path): New structure.
43373 (grub_efi_infiniband_device_path_t): New type.
43374 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
43375 (struct grub_efi_uart_device_path): New structure.
43376 (grub_efi_uart_device_path_t): New type.
43377 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
43378 (struct grub_efi_vendor_messaging_device_path): New structure.
43379 (grub_efi_vendor_messaging_device_path_t): New type.
43380 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
43381 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
43382 (struct grub_efi_hard_drive_device_path): New structure.
43383 (grub_efi_hard_drive_device_path_t): New type.
43384 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
43385 (struct grub_efi_cdrom_device_path): New structure.
43386 (grub_efi_cdrom_device_path_t): New type.
43387 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
43388 (struct grub_efi_vendor_media_device_path): New structure.
43389 (grub_efi_vendor_media_device_path_t): New type.
43390 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
43391 (struct grub_efi_file_path_device_path): New structure.
43392 (grub_efi_file_path_device_path_t): New type.
43393 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
43394 (struct grub_efi_protocol_device_path): New structure.
43395 (grub_efi_protocol_device_path_t): New type.
43396 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
43397 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
43398 (struct grub_efi_bios_device_path): New structure.
43399 (grub_efi_bios_device_path_t): New type.
43400 (struct grub_efi_disk_io): New structure.
43401 (grub_efi_disk_io_t): New type.
43402 (struct grub_efi_block_io_media): New structure.
43403 (grub_efi_block_io_media_t): New type.
43404 (struct grub_efi_block_io): New structure.
43405 (grub_efi_block_io_t): New type.
43406
43407 * include/grub/misc.h (grub_stop): Removed.
43408 (grub_exit): New prototype.
43409 (grub_abort): Likewise.
43410
43411 * include/grub/disk.h (enum grub_disk_dev_id): Added
43412 GRUB_DISK_DEVICE_EFIDISK_ID.
43413
43414 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
43415 disk/efi/efidisk.c.
43416 (kernel_syms.lst): Remove the target if an error occurs.
43417
43418 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
43419
43420 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
43421 as it was simply too buggy.
43422
43423 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
43424
43425 * kern/misc.c (grub_lltoa): New function.
43426 (grub_vsprintf): Added support for the long long suffix,
43427 i.e. "ll".
43428
43429 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
43430
43431 * Makefile.in (LDFLAGS): Add variable.
43432 (LD): Remove variable.
43433 * configure.ac: Add -m32 to LDFLAGS.
43434 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
43435 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
43436 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
43437 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
43438 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
43439 variables.
43440 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
43441 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
43442 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
43443
43444 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
43445
43446 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
43447 length for unknown glyph.
43448
43449 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43450
43451 Add support for pre-loaded modules into the EFI port.
43452
43453 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
43454 completely. Accept one more argument DIR. The caller has changed.
43455
43456 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
43457
43458 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
43459 (grub_efi_loaded_image_guid): New variable.
43460 (grub_efi_get_loaded_image): New function.
43461 (grub_arch_modules_addr): Likewise.
43462
43463 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
43464 prototype.
43465
43466 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
43467 (struct grub_efi_loaded_image): New structure.
43468 (grub_efi_loaded_image_t): New type.
43469
43470 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43471
43472 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
43473 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
43474 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
43475
43476 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
43477
43478 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
43479
43480 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
43481
43482 * DISTLIST: Added include/grub/efi/console.h,
43483 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
43484 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43485
43486 * include/grub/efi/console.h: New file.
43487 * include/grub/efi/time.h: Likewise.
43488 * include/grub/i386/efi/kernel.h: Likewise.
43489 * kern/efi/init.c: Likewise.
43490 * kern/efi/mm.c: Likewise.
43491 * term/efi/console.c: Likewise.
43492
43493 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
43494 (grub_stop): Removed.
43495 (grub_get_rtc): Likewise.
43496 (grub_machine_init): Simply call grub_efi_init.
43497 (grub_machine_fini): Call grub_efi_fini.
43498
43499 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
43500 (grub_efi_output_string): Removed.
43501 (grub_efi_stall): New function.
43502 (grub_stop): Likewise.
43503 (grub_get_rtc): Likewise.
43504
43505 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
43506 (grub_efi_stall): New prototype.
43507 (grub_efi_allocate_pages): Likewise.
43508 (grub_efi_free_pages): Likewise.
43509 (grub_efi_get_memory_map): Likewise.
43510 (grub_efi_mm_init): Likewise.
43511 (grub_efi_mm_fini): Likewise.
43512 (grub_efi_init): Likewise.
43513 (grub_efi_fini): Likewise.
43514
43515 * include/grub/i386/efi/time.h: Do not include
43516 grub/symbol.h. Include grub/efi/time.h.
43517 (GRUB_TICKS_PER_SECOND): Removed.
43518 (grub_get_rtc): Likewise.
43519
43520 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
43521 Added padding. The EFI spec is buggy.
43522 (GRUB_EFI_BLACK): New macro.
43523 (GRUB_EFI_BLUE): Likewise.
43524 (GRUB_EFI_GREEN): Likewise.
43525 (GRUB_EFI_CYAN): Likewise.
43526 (GRUB_EFI_RED): Likewise.
43527 (GRUB_EFI_MAGENTA): Likewise.
43528 (GRUB_EFI_BROWN): Likewise.
43529 (GRUB_EFI_LIGHTGRAY): Likewise.
43530 (GRUB_EFI_BRIGHT): Likewise.
43531 (GRUB_EFI_DARKGRAY): Likewise.
43532 (GRUB_EFI_LIGHTBLUE): Likewise.
43533 (GRUB_EFI_LIGHTGREEN): Likewise.
43534 (GRUB_EFI_LIGHTCYAN): Likewise.
43535 (GRUB_EFI_LIGHTRED): Likewise.
43536 (GRUB_EFI_LIGHTMAGENTA): Likewise.
43537 (GRUB_EFI_YELLOW): Likewise.
43538 (GRUB_EFI_WHITE): Likewise.
43539 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
43540 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
43541 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
43542 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
43543 (GRUB_EFI_BACKGROUND_RED): Likewise.
43544 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
43545 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
43546 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
43547 (GRUB_EFI_TEXT_ATTR): Likewise.
43548
43549 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
43550 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43551 (kernel_mod_HEADERS): Added efi/time.h.
43552
43553 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
43554
43555 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
43556 include/grub/efi/api.h, include/grub/efi/console_control.h,
43557 include/grub/efi/efi.h, include/grub/efi/pe32.h,
43558 include/grub/i386/efi/time.h, kern/efi/efi.c,
43559 kern/i386/efi/init.c, kern/i386/efi/startup.S,
43560 and util/i386/efi/grub-mkimage.c.
43561
43562 * Makefile.in (RMKFILES): Added i386-efi.rmk.
43563
43564 * genmk.rb (PModule#rule): Do not export symbols if
43565 #{prefix}_EXPORTS is set to "no".
43566
43567 * conf/i386-efi.mk: New file.
43568 * conf/i386-efi.rmk: Likewise.
43569 * include/grub/efi/api.h: Likewise.
43570 * include/grub/efi/console_control.h: Likewise.
43571 * include/grub/efi/efi.h: Likewise.
43572 * include/grub/efi/pe32.h: Likewise.
43573 * include/grub/i386/efi/time.h: Likewise.
43574 * kern/efi/efi.c: Likewise.
43575 * kern/i386/efi/init.c: Likewise.
43576 * kern/i386/efi/startup.S: Likewise.
43577 * util/i386/efi/grub-mkimage.c: Likewise.
43578
43579 2006-04-17 Marco Gerards <marco@gnu.org>
43580
43581 * include/grub/script.h: Include <grub/parser.h> and
43582 "grub_script.tab.h".
43583 (struct grub_lexer_param): New struct.
43584 (struct grub_parser_param): Likewise.
43585 (grub_script_create_arglist): Pass the state in an argument.
43586 (grub_script_add_arglist): Likewise.
43587 (grub_script_create_cmdline): Likewise.
43588 (grub_script_create_cmdblock): Likewise.
43589 (grub_script_create_cmdif): Likewise.
43590 (grub_script_create_cmdmenu): Likewise.
43591 (grub_script_add_cmd): Likewise.
43592 (grub_script_arg_add): Likewise.
43593 (grub_script_lexer_ref): Likewise.
43594 (grub_script_lexer_deref): Likewise.
43595 (grub_script_lexer_record_start): Likewise.
43596 (grub_script_lexer_record_stop): Likewise.
43597 (grub_script_mem_record): Likewise.
43598 (grub_script_mem_record_stop): Likewise.
43599 (grub_script_malloc): Likewise.
43600 (grub_script_yylex): Likewise.
43601 (grub_script_yyparse): Likewise.
43602 (grub_script_yyerror): Likewise.
43603 (grub_script_yylex): Likewise.
43604 (grub_script_lexer_init): Return the state.
43605
43606 * normal/lexer.c (grub_script_lexer_state): Removed variable.
43607 (grub_script_lexer_done): Likewise.
43608 (grub_script_lexer_getline): Likewise.
43609 (grub_script_lexer_refs): Likewise.
43610 (script): Likewise.
43611 (newscript): Likewise.
43612 (record): Likewise.
43613 (recording): Likewise.
43614 (recordpos): Likewise.
43615 (recordlen): Likewise.
43616 (grub_script_lexer_init): Return the state instead of setting
43617 global variables.
43618 (grub_script_lexer_ref): Use the newly added argument for state
43619 instead of globals.
43620 (grub_script_lexer_deref): Likewise.
43621 (grub_script_lexer_record_start): Likewise.
43622 (grub_script_lexer_record_stop): Likewise.
43623 (recordchar): Likewise.
43624 (nextchar): Likewise.
43625 (grub_script_yylex2): Likewise.
43626 (grub_script_yylex): Likewise.
43627 (grub_script_yyerror): Likewise.
43628
43629 * normal/parser.y (func_mem): Removed variable.
43630 (menu_entry): Likewise.
43631 (err): Likewise.
43632 (%lex-param): New parser option.
43633 (%parse-param): Likewise.
43634 (script): Always return the AST.
43635 (argument): Pass the state around.
43636 (arguments): Likewise.
43637 (grubcmd): Likewise.
43638 (commands): Likewise.
43639 (function): Likewise.
43640 (menuentry): Likewise.
43641 (if_statement): Likewise.
43642 (if): Likewise.
43643
43644 * normal/script.c (grub_script_memused): Removed variable.
43645 (grub_script_parsed): Likewise.
43646 (grub_script_malloc): Added a state argument. Use that instead of
43647 global variables.
43648 (grub_script_mem_record): Likewise.
43649 (grub_script_mem_record_stop): Likewise.
43650 (grub_script_arg_add): Likewise.
43651 (grub_script_add_arglist): Likewise.
43652 (grub_script_create_cmdline): Likewise.
43653 (grub_script_create_cmdif): Likewise.
43654 (grub_script_create_cmdmenu): Likewise.
43655 (grub_script_add_cmd): Likewise.
43656 (grub_script_parse): Setup the state before calling the parser.
43657
43658 2006-04-16 Marco Gerards <marco@gnu.org>
43659
43660 * normal/command.c (grub_command_init): Remove the title command.
43661
43662 * normal/lexer.c (grub_script_yylex): Renamed from this...
43663 (grub_script_yylex2): ... to this.
43664 (grub_script_yylex): New function. Temporary
43665 introduced to filter some tokens.
43666 (grub_script_yyerror): Print a newline.
43667
43668 * normal/main.c (read_config_file): Output information about the
43669 lines that contain errors. Wait for a key after all lines have
43670 been processed. Don't return an empty menu.
43671
43672 * normal/parser.y (func_mem): Don't initialize.
43673 (menu_entry): Likewise.
43674 (err): New variable.
43675 (script): Don't return anything when an error was encountered.
43676 (ws, returns): Removed rules.
43677 (argument): Disabled concatenated variable support.
43678 (arguments): Remove explicit separators.
43679 (grubcmd): Likewise.
43680 (function): Likewise.
43681 (menuentry): Likewise.
43682 (if): Likewise.
43683 (commands): Likewise. Add error handling.
43684
43685 * normal/script.c (grub_script_create_cmdline): If
43686 `grub_script_parsed' is 0, assume the parser encountered an error.
43687
43688 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
43689
43690 * configure.ac: Add support for EFI. Fix the typo
43691 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
43692
43693 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43694
43695 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
43696 foreign multibyte characters should be shown correctly.
43697
43698 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43699
43700 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
43701 calculation.
43702 (read_config_file): Made it to close file before returning.
43703
43704 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
43705
43706 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
43707 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
43708 video/i386/pc/vbefill.c.
43709
43710 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
43711 video/i386/pc/vbefill.c.
43712
43713 * include/grub/video.h (grub_video_blit_format): New enum.
43714 (grub_video_mode_info): Added new member blit_format.
43715 (grub_video_get_blit_format): New function prototype.
43716
43717 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
43718 function prototype.
43719 (grub_video_vbe_map_rgb): Likewise.
43720 (grub_video_vbe_unmap_color): Likewise.
43721
43722 * include/grub/i386/pc/vbeblit.h: New file.
43723
43724 * include/grub/i386/pc/vbefill.h: New file.
43725
43726 * video/video.c (grub_video_get_blit_format): New function.
43727 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
43728 (grub_video_vbe_map_rgb): Likewise.
43729 (grub_video_vbe_unmap_color): Likewise.
43730
43731 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
43732 optimized fills.
43733 (grub_video_vbe_blit_render_target): Changed to use more optimized
43734 blits.
43735 (grub_video_vbe_setup): Added detection for optimized settings.
43736 (grub_video_vbe_create_render_target): Likewise.
43737
43738 * video/i386/pc/vbeblit.c: New file.
43739
43740 * video/i386/pc/vbefill.c: New file.
43741
43742 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
43743
43744 * font/manager.c (grub_font_get_glyph): Removed font fixup from
43745 here...
43746
43747 * util/unifont2pff.rb: ... and moved it to here. Improved argument
43748 parsing to support both hex and dec ranges. If filename was missing
43749 show usage information.
43750
43751 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
43752
43753 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
43754 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
43755
43756 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
43757 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
43758 (video_mod_SOURCES): Added.
43759 (video_mod_CFLAGS): Likewise.
43760 (video_mod_LDFLAGS): Likewise.
43761 (gfxterm_mod_SOURCES): Likewise.
43762 (gfxterm_mod_CFLAGS): Likewise.
43763 (gfxterm_mod_LDFLAGS): Likewise.
43764 (videotest_mod_SOURCES): Likewise.
43765 (videotest_mod_CFLAGS): Likewise.
43766 (videotest_mod_LDFLAGS): Likewise.
43767 (vesafb_mod_SOURCES): Removed.
43768 (vesafb_mod_CFLAGS): Likewise.
43769 (vesafb_mod_LDFLAGS): Likewise.
43770 (vga_mod_SOURCES): Likewise.
43771 (vga_mod_CFLAGS): Likewise.
43772 (vga_mod_LDFLAGS): Likewise.
43773
43774 * commands/videotest.c: New file.
43775
43776 * font/manager.c (fill_with_default_glyph): Modified to use
43777 grub_font_glyph.
43778 (grub_font_get_glyph): Likewise.
43779 (fontmanager): Renamed from this...
43780 (font_manager): ... to this.
43781
43782 * include/grub/font.h (grub_font_glyph): Added new structure.
43783 (grub_font_get_glyph): Modified to use grub_font_glyph.
43784
43785 * include/grub/misc.h (grub_abs): Added as inline function.
43786
43787 * include/grub/video.h: New file.
43788
43789 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
43790 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
43791 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
43792 (grub_vbe_get_controller_info): Renamed from this...
43793 (grub_vbe_bios_get_controller_info): ... to this.
43794 (grub_vbe_get_mode_info): Renamed from this...
43795 (grub_vbe_bios_get_mode_info): ... to this.
43796 (grub_vbe_set_mode): Renamed from this...
43797 (grub_vbe_bios_set_mode): ... to this.
43798 (grub_vbe_get_mode): Renamed from this...
43799 (grub_vbe_bios_get_mode): ... to this.
43800 (grub_vbe_set_memory_window): Renamed from this...
43801 (grub_vbe_bios_set_memory_window): ... to this.
43802 (grub_vbe_get_memory_window): Renamed from this...
43803 (grub_vbe_bios_get_memory_window): ... to this.
43804 (grub_vbe_set_scanline_length): Renamed from this...
43805 (grub_vbe_set_scanline_length): ... to this.
43806 (grub_vbe_get_scanline_length): Renamed from this...
43807 (grub_vbe_bios_get_scanline_length): ... to this.
43808 (grub_vbe_set_display_start): Renamed from this...
43809 (grub_vbe_bios_set_display_start): ... to this.
43810 (grub_vbe_get_display_start): Renamed from this...
43811 (grub_vbe_bios_get_display_start): ... to this.
43812 (grub_vbe_set_palette_data): Renamed from this...
43813 (grub_vbe_bios_set_palette_data): ... to this.
43814 (grub_vbe_set_pixel_rgb): Removed.
43815 (grub_vbe_set_pixel_index): Likewise.
43816
43817 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
43818 from this...
43819 (grub_vbe_bios_get_controller_info): ... to this.
43820 (grub_vbe_get_mode_info): Renamed from this...
43821 (grub_vbe_bios_get_mode_info): ... to this.
43822 (grub_vbe_set_mode): Renamed from this...
43823 (grub_vbe_bios_set_mode): ... to this.
43824 (grub_vbe_get_mode): Renamed from this...
43825 (grub_vbe_bios_get_mode): ... to this.
43826 (grub_vbe_set_memory_window): Renamed from this...
43827 (grub_vbe_bios_set_memory_window): ... to this.
43828 (grub_vbe_get_memory_window): Renamed from this...
43829 (grub_vbe_bios_get_memory_window): ... to this.
43830 (grub_vbe_set_scanline_length): Renamed from this...
43831 (grub_vbe_set_scanline_length): ... to this.
43832 (grub_vbe_get_scanline_length): Renamed from this...
43833 (grub_vbe_bios_get_scanline_length): ... to this.
43834 (grub_vbe_set_display_start): Renamed from this...
43835 (grub_vbe_bios_set_display_start): ... to this.
43836 (grub_vbe_get_display_start): Renamed from this...
43837 (grub_vbe_bios_get_display_start): ... to this.
43838 (grub_vbe_set_palette_data): Renamed from this...
43839 (grub_vbe_bios_set_palette_data): ... to this.
43840 (grub_vbe_bios_get_controller_info): Fixed problem with registers
43841 getting corrupted after calling it. Added more pushes and pops.
43842 (grub_vbe_bios_set_mode): Likewise.
43843 (grub_vbe_bios_get_mode): Likewise.
43844 (grub_vbe_bios_get_memory_window): Likewise.
43845 (grub_vbe_bios_set_scanline_length): Likewise.
43846 (grub_vbe_bios_get_scanline_length): Likewise.
43847 (grub_vbe_bios_get_display_start): Likewise.
43848 (grub_vbe_bios_set_palette_data): Likewise.
43849
43850 * normal/cmdline.c (cl_set_pos): Refresh the screen.
43851 (cl_insert): Likewise.
43852 (cl_delete): Likewise.
43853
43854 * term/gfxterm.c: New file.
43855
43856 * term/i386/pc/vesafb.c: Removed file.
43857
43858 * video/video.c: New file.
43859
43860 * video/i386/pc/vbe.c (real2pm): Added new function.
43861 (grub_video_vbe_draw_pixel): Likewise.
43862 (grub_video_vbe_get_video_ptr): Likewise.
43863 (grub_video_vbe_get_pixel): Likewise
43864 (grub_video_vbe_init): Likewise.
43865 (grub_video_vbe_fini): Likewise.
43866 (grub_video_vbe_setup): Likewise.
43867 (grub_video_vbe_get_info): Likewise.
43868 (grub_video_vbe_set_palette): Likewise.
43869 (grub_video_vbe_get_palette): Likewise.
43870 (grub_video_vbe_set_viewport): Likewise.
43871 (grub_video_vbe_get_viewport): Likewise.
43872 (grub_video_vbe_map_color): Likewise.
43873 (grub_video_vbe_map_rgb): Likewise.
43874 (grub_video_vbe_map_rgba): Likewise.
43875 (grub_video_vbe_unmap_color): Likewise.
43876 (grub_video_vbe_fill_rect): Likewise.
43877 (grub_video_vbe_blit_glyph): Likewise.
43878 (grub_video_vbe_blit_bitmap): Likewise.
43879 (grub_video_vbe_blit_render_target): Likewise.
43880 (grub_video_vbe_scroll): Likewise.
43881 (grub_video_vbe_swap_buffers): Likewise.
43882 (grub_video_vbe_create_render_target): Likewise.
43883 (grub_video_vbe_delete_render_target): Likewise.
43884 (grub_video_vbe_set_active_render_target): Likewise.
43885 (grub_vbe_set_pixel_rgb): Remove function.
43886 (grub_vbe_set_pixel_index): Likewise.
43887 (index_color_mode): Remove static variable.
43888 (active_mode): Likewise.
43889 (framebuffer): Likewise.
43890 (bytes_per_scan_line): Likewise.
43891 (grub_video_vbe_adapter): Added new static variable.
43892 (framebuffer): Likewise.
43893 (render_target): Likewise.
43894 (initial_mode): Likewise.
43895 (mode_in_use): Likewise.
43896 (mode_list): Likewise.
43897
43898 2006-03-10 Marco Gerards <marco@gnu.org>
43899
43900 * configure.ac (AC_INIT): Bumped to 1.93.
43901
43902 * DISTLIST: Added `include/grub/hfs.h'.
43903
43904 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
43905
43906 * boot/i386/pc/boot.S (general_error): Before looping, try INT
43907 18H, which might help the BIOS falling back to next boot media.
43908
43909 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
43910
43911 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
43912 Poe Chen <poe.poechen@gmail.com>.
43913
43914 2006-01-17 Marco Gerards <marco@gnu.org>
43915
43916 * include/grub/normal.h: Include <grub/script.h>.
43917 (grub_command_list): Removed struct.
43918 (grub_command_list_t): Removed type.
43919 (grub_menu_entry): Remove members `num' and `command_list'. Add
43920 members `commands' and `sourcecode'.
43921 * include/grub/script.h: Add inclusion guards.
43922 (grub_script_cmd_menuentry): New struct.
43923 (grub_script_execute_menuentry): New prototype.
43924 (grub_script_lexer_record_start): Likewise.
43925 (grub_script_lexer_record_stop): Likewise.
43926 * normal/execute.c (grub_script_execute_menuentry): New function.
43927 * normal/lexer.c (record, recording, recordpos, recordlen): New
43928 variables.
43929 (grub_script_lexer_record_start): New function.
43930 (grub_script_lexer_record_stop): Likewise.
43931 (recordchar): Likewise.
43932 (nextchar): Likewise.
43933 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
43934 2048 as the buffer size. Add the tokens `menuentry' and `@'.
43935 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
43936 (current_menu): New variable.
43937 (free_menu): Mainly rewritten.
43938 (grub_normal_menu_addentry): New function.
43939 (read_config_file): Rewritten.
43940 * normal/menu.c (run_menu_entry): Mainly rewritten.
43941 * normal/menu_entry.c (make_screen): Rewritten the code to insert
43942 the menu entry.
43943 (run): Mainly rewritten.
43944 * normal/parser.y (menu_entry): New variable.
43945 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
43946 (menuentry): New rule.
43947 (command): Add `menuentry'.
43948 (if_statement): Allow additional returns before `fi'.
43949 * normal/script.c (grub_script_create_cmdmenu): New function.
43950
43951 2006-01-03 Marco Gerards <marco@gnu.org>
43952
43953 * INSTALL: GNU Bison is required.
43954 * configure.ac: Rewritten the test to detect Bison.
43955 * Makefile.in (YACC): New variable. Reported by Xun Sun
43956 <xun.sun.cn@gmail.com>.
43957
43958 2006-01-03 Marco Gerards <marco@gnu.org>
43959
43960 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
43961 the HFS+ filesystem to filesystem blocks.
43962 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
43963 GCC warning is silenced.
43964
43965 2006-01-03 Marco Gerards <marco@gnu.org>
43966
43967 * partmap/apple.c (apple_partition_map_iterate): Convert the data
43968 read from disk from big endian to host byte order.
43969
43970 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
43971
43972 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
43973 documentation.
43974 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
43975 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
43976 embedded HFS+ filesystem.
43977 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
43978 (grub_hfs_sblock): Move from here...
43979 * include/grub/hfs.h: To here... New file.
43980 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
43981 documentation.
43982 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
43983 New macros.
43984 (grub_hfsplus_volheader): Change type of member `magic' to
43985 `grub_uint16_t'.
43986 (grub_hfsplus_data): Add new member `embedded_offset'.
43987 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
43988 returned block.
43989 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
43990 Calculate the offset.
43991
43992 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43993
43994 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
43995 Removed.
43996 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
43997
43998 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43999
44000 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
44001 ENV->NAME is NULL after allocating ENV->VALUE.
44002
44003 2005-12-25 Marco Gerards <marco@gnu.org>
44004
44005 * kern/env.c (grub_env_set): Rewritten the error handling code.
44006
44007 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44008
44009 * geninit.sh: Made more robust, and more portable.
44010
44011 2005-12-25 Marco Gerards <marco@gnu.org>
44012
44013 Add support for Apple HFS+ filesystems.
44014
44015 * fs/hfsplus.c: New file.
44016
44017 * DISTLIST: Added `fs/hfsplus.c'.
44018
44019 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
44020 (hfsplus_mod_SOURCES): New variable.
44021 (hfsplus_mod_CFLAGS): Likewise.
44022 (hfsplus_mod_LDFLAGS): Likewise.
44023 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
44024 (grub_setup_SOURCES): Likewise.
44025 (grub_mkdevicemap_SOURCES): Likewise.
44026 (grub_emu_SOURCES): Likewise.
44027 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44028
44029 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
44030
44031 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
44032
44033 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44034
44035 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
44036 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
44037 include/grub/parser.h, include/grub/script.h, kern/parser.c,
44038 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
44039 normal/lexer.c, normal/parser.y, normal/script.c, and
44040 partmap/gpt.c.
44041 Removed kern/sparc64/cache.c.
44042
44043 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
44044 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
44045 grub_emu_init.c.
44046
44047 * configure.ac (AC_INIT): Bumped to 1.92.
44048
44049 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
44050
44051 * kern/err.c (grub_error_push): Added new function to support error
44052 stacks.
44053 (grub_error_pop): Likewise.
44054 (grub_error_stack_items): New local variable to support error stacks.
44055 (grub_error_stack_pos): Likewise.
44056 (grub_error_stack_assert): Likewise.
44057 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
44058 stack depth.
44059 (grub_print_error): Added support to print errors from error stack.
44060
44061 * include/grub/err.h (grub_error_push): Added function prototype.
44062 (grub_error_pop): Likewise.
44063
44064 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
44065
44066 * configure.ac: Accept `powerpc64' as host_cpu.
44067 (amd64): Rename to `biarch32'.
44068
44069 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
44070 non-cacheline-aligned addresses.
44071
44072 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
44073 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
44074 if `size' is non-zero.
44075
44076 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
44077
44078 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
44079 and `cd' to make sure the filename is not prefixed with a
44080 directory name.
44081 (pkgdata_MODULES): Add `gpt.mod'.
44082 (gpt_mod_SOURCES): New variable.
44083 (gpt_mod_CFLAGS): Likewise.
44084 (gpt_mod_LDFLAGS): Likewise.
44085
44086 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
44087
44088 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
44089 New macro.
44090
44091 * partmap/gpt.c: New file.
44092
44093 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
44094 GPT partition map is detected.
44095
44096 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
44097
44098 * commands/i386/pc/play.c: New file.
44099 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
44100 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
44101 macros.
44102
44103 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
44104
44105 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
44106 ((unused))' to silence gcc warning.
44107
44108 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
44109
44110 * configure.ac: Correct `AC_PROG_YACC' test.
44111
44112 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44113
44114 * util/powerpc/ieee1275/grub-install.in: Run the mount point
44115 check before installing files.
44116
44117 2005-11-22 Mike Small <smallm@panix.com>
44118
44119 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
44120 number regex so multidigit numbers are recognized correctly.
44121
44122 2005-11-22 Mike Small <smallm@panix.com>
44123
44124 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
44125 debugging message before attempting to claim memory.
44126 (grub_rescue_cmd_initrd): Add a claim debugging message and try
44127 multiple addresses in case of failure.
44128
44129 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44130
44131 * term/tparm.c (get_space): Remove empty `if' statement.
44132
44133 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
44134
44135 * kern/parser.c (check_varstate): Rename `state' to 's'.
44136
44137 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44138
44139 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
44140 variable definitions to the beginning of each function. Sort stack
44141 variables by size.
44142 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
44143 `buf' argument to `char *'.
44144
44145 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44146
44147 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
44148 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
44149 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
44150 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44151 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44152 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44153 configfile.mod, search.mod, gzio.mod and test.mod.
44154 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44155 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44156 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44157 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44158 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44159 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44160 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44161 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44162 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44163 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44164 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44165 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44166 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44167 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44168 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44169 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44170 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44171 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44172 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44173 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44174 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44175 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44176 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
44177
44178 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
44179 `grep --include'.
44180 (pkgdata_MODULES): Add test.mod.
44181
44182 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44183
44184 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
44185 appending to variables with "+=".
44186 (PModule): Use full pathname to generate *.lst filenames.
44187
44188 * Makefile.in: Fixed list rules moved from genmk.rb.
44189 (.DELETE_ON_ERROR): New special target.
44190 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
44191
44192 * conf/i386-pc.rmk: Include conf/common.mk.
44193 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
44194 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
44195 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44196 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44197 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44198 configfile.mod, search.mod, gzio.mod and test.mod.
44199 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44200 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44201 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44202 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44203 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44204 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44205 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44206 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44207 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44208 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44209 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44210 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44211 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44212 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44213 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44214 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44215 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44216 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44217 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44218 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44219 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44220 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44221 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
44222 here...
44223 * conf/common.rmk: ... to here. New file.
44224
44225 * conf/common.mk: New file.
44226
44227 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
44228
44229 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
44230 (grub_script.tab.c): ... here.
44231
44232 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
44233 (grub_script.tab.c): ... here.
44234
44235 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
44236 (grub_script.tab.c): ... here.
44237
44238 * normal/command.c (grub_command_find): Fixed a memory leak of
44239 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
44240
44241 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44242
44243 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
44244 "@" which marks the start of a comment on ARM.
44245 (VARIABLE): Likewise.
44246
44247 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44248
44249 Add support for Linux/ADFS partition tables.
44250
44251 * partmap/acorn.c: New file.
44252
44253 * include/grub/acorn_filecore.h: Likewise.
44254
44255 * DISTLIST: Added `partmap/acorn.c' and
44256 `include/grub/acorn_filecore.h'.
44257
44258 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44259 `partmap/acorn.c'.
44260 (pkgdata_MODULES): Add `acorn.mod'.
44261 (acorn_mod_SOURCES): New variable.
44262 (acorn_mod_CFLAGS): Likewise.
44263
44264 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44265 `partmap/acorn.c'.
44266 (pkgdata_MODULES): Add `acorn.mod'.
44267 (acorn_mod_SOURCES): New variable.
44268 (acorn_mod_CFLAGS): Likewise.
44269
44270 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
44271 (pkgdata_MODULES): Add `acorn.mod'.
44272 (acorn_mod_SOURCES): New variable.
44273 (acorn_mod_CFLAGS): Likewise.
44274 (acorn_mod_LDFLAGS): Likewise.
44275
44276 * include/types.h (grub_disk_addr_t): New typedef.
44277
44278 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
44279
44280 * geninit.sh: New file.
44281
44282 * geninitheader.sh: Likewise.
44283
44284 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
44285 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
44286 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
44287 * commands/configfile.c (grub_configfile_init)
44288 (grub_configfile_fini): Likewise.
44289 * commands/default.c (grub_default_init, grub_default_fini):
44290 Likewise.
44291 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
44292 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
44293 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
44294 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
44295 Likewise.
44296 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
44297 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
44298 Likewise.
44299 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
44300 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
44301 Likewise.
44302 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
44303 Likewise.
44304 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
44305 Likewise.
44306 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
44307 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
44308 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
44309 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
44310 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
44311 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
44312 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
44313 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
44314 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
44315 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
44316 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
44317 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
44318 * partmap/amiga.c (grub_amiga_partition_map_init)
44319 (grub_amiga_partition_map_fini): Likewise.
44320 * partmap/apple.c (grub_apple_partition_map_init)
44321 (grub_apple_partition_map_fini): Likewise.
44322 * partmap/pc.c (grub_pc_partition_map_init)
44323 (grub_pc_partition_map_fini): Likewise.
44324 * partmap/sun.c (grub_sun_partition_map_init,
44325 grub_sun_partition_map_fini): Likewise.
44326 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
44327 Likewise.
44328
44329 * util/grub-emu.c: Include <grub_modules_init.h>.
44330 (main): Don't initialize and de-initialize any modules directly,
44331 use `grub_init_all' and `grub_fini_all' instead.
44332
44333 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
44334 `grub_vesafb_mod_init'.
44335 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
44336 all users.
44337 * term/i386/pc/vga.c (grub_vga_init): Renamed to
44338 `grub_vga_mod_init'. Updated all users.
44339 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
44340
44341 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
44342 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
44343 rules.
44344
44345 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
44346 Generate a function to initialize the module in utilities.
44347 Updated all callers.
44348 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
44349 initialize the module in utilities. Updated all callers.
44350
44351 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44352
44353 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
44354 escape sequence and a literal ^L to clear the screen.
44355
44356 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
44357 when returning from Open Firmware.
44358
44359 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44360
44361 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
44362 (grub_ofconsole_height): Likewise.
44363 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
44364 manually insert a '\n'.
44365 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
44366 `grub_ofconsole_height'. Return early if these are already set.
44367
44368 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
44369
44370 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44371 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
44372 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
44373 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
44374 and `normal/script.c'.
44375 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44376 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44377 (test_mod_SOURCES): New variable.
44378 (test_mod_CFLAGS): Likewise.
44379 (test_mod_LDFLAGS): Likewise.
44380 (pkgdata_MODULES): Add `test.mod'.
44381 (grub_script.tab.c): New rule.
44382 (grub_script.tab.h): Likewise.
44383
44384 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
44385
44386 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44387 `commands/test.c', `normal/execute.c', `normal/lexer.c',
44388 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44389 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44390 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44391 (test_mod_SOURCES): New variable.
44392 (test_mod_CFLAGS): Likewise.
44393 (pkgdata_MODULES): Add `test.mod'.
44394 (grub_script.tab.c): New rule.
44395 (grub_script.tab.h): Likewise.
44396
44397 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
44398
44399 Add initial scripting support.
44400
44401 * commands/test.c: New file.
44402 * include/grub/script.h: Likewise.
44403 * normal/execute.c: Likewise.
44404 * normal/function.c: Likewise.
44405 * normal/lexer.c: Likewise.
44406 * normal/parser.y: Likewise.
44407 * normal/script.c: Likewise.
44408
44409 * configure.ac: Add `AC_PROG_YACC' test.
44410
44411 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
44412 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
44413 `normal/function.c' and `normal/script.c'.
44414 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44415 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44416 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
44417 variables.
44418 (pkgdata_MODULES): Add `test.mod'.
44419 (grub_script.tab.c): New rule.
44420 (grub_script.tab.h): Likewise.
44421
44422 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
44423
44424 * include/grub/normal.h (grub_test_init): New prototype.
44425 (grub_test_fini): Likewise.
44426
44427 * normal/command.c: Include <grub/script.h>.
44428 (grub_command_execute): Rewritten.
44429
44430 * util/grub-emu.c (main): Call `grub_test_init' and
44431 `grub_test_fini'.
44432
44433 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44434
44435 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
44436 to 0.
44437 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
44438 there are no pending characters.
44439
44440 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44441
44442 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
44443 `grub_strndup' to drop device arguments. Replace unnecessary
44444 `grub_strndup' with `grub_strdup'.
44445
44446 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44447
44448 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
44449 `debug' environment variable has been set.
44450
44451 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
44452
44453 * Makefile.in (install-local): Use $(DATA).
44454 (uninstall): Likewise.
44455 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
44456 (sbin_UTILITIES): ... to here.
44457 (sbin_SCRIPTS): New variable.
44458 (grub_install_SOURCES): New variable.
44459 * util/powerpc/ieee1275/grub-install.in: New file.
44460 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
44461 variable.
44462 (add_segments): Call `grub_util_get_path'.
44463
44464 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
44465
44466 From Timothy Baldwin:
44467 * commands/ls.c (grub_ls_list_files): Close FILE with
44468 grub_file_close.
44469 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
44470
44471 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
44472
44473 * include/grub/parser.h: New file.
44474
44475 * kern/parser.c: Likewise.
44476
44477 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
44478 (grub_setup_SOURCES): Likewise.
44479 (grub_probefs_SOURCES): Likewise.
44480 (grub_emu_SOURCES): Likewise.
44481 (kernel_img_HEADERS): Add `parser.h'.
44482
44483 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44484 (grub_emu_SOURCES): Add `kern/parser.c'.
44485 (grubof_SOURCES): Likewise.
44486
44487 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44488 (grubof_SOURCES): Add `kern/parser.c'.
44489
44490 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
44491
44492 * kern/misc.c (grub_split_cmdline): Removed function.
44493
44494 * kern/rescue.c: Include <grub/parser.h>.
44495 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
44496 of `grub_split_cmdline'.
44497
44498 * normal/command.c: Include <grub/parser.h>.
44499 (grub_command_execute): Use `grub_parser_split_cmdline' instead
44500 of `grub_split_cmdline'.
44501
44502 * normal/completion.c: Include <grub/parser.h>.
44503 (cmdline_state): New variable.
44504 (iterate_dir): End the filename with a quote depending on the
44505 command line state.
44506 (get_state): new function.
44507 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
44508 split the arguments and determine the current argument. When the
44509 argument string is not quoted, escape all spaces.
44510
44511 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44512
44513 * normal/sparc64/setjmp.S: New file.
44514
44515 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44516
44517 * include/grub/sparc64/libgcc.h: New file.
44518 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
44519 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
44520 normal/sparc64/setjmp.c.
44521
44522 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44523
44524 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
44525 * kern/sparc64/cache.S: New file.
44526 * kern/sparc64/cache.c: Removed.
44527 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
44528 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
44529 -mtune=ultrasparc.
44530 (COMMON_LDFLAGS): Add -melf64_sparc.
44531 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
44532 (grubof_SOURCES): Use cache.S instead of cache.c.
44533 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
44534 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
44535 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
44536 commented though.
44537 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
44538 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
44539 (linux_mod_CFLAGS): Commented out.
44540 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
44541 out because module isn't built.
44542 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
44543 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
44544 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
44545 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
44546 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
44547 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44548 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44549 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
44550 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
44551 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
44552 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44553 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44554 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
44555 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
44556
44557 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
44558
44559 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
44560 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
44561 longer, because HFS should not be used on PC.
44562
44563 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44564
44565 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
44566 consistently within the loop.
44567
44568 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
44569
44570 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
44571 directory can not be read.
44572
44573 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44574
44575 * configure.ac (AC_INIT): Increase the version number to 1.91.
44576
44577 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
44578 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
44579 term/i386/pc/serial.c.
44580
44581 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44582
44583 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
44584 file size must be permitted.
44585
44586 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
44587 between %ah and %al.
44588
44589 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44590
44591 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
44592 grub_uint64_t.
44593 Call the hook with a NUL-terminated filename.
44594 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
44595 grub_cpu_to_be32.
44596
44597 * kern/term.c (cursor_state): New variable.
44598 (grub_term_set_current): Reset the cursor state on a new
44599 terminal.
44600 (grub_setcursor): Rewritten to use CURSOR_STATE.
44601 (grub_getcursor): New function.
44602
44603 * include/grub/term.h (grub_getcursor): New prototype.
44604
44605 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
44606 integers on ARM. Reported by Timothy Baldwin
44607 <T.E.Baldwin99@members.leeds.ac.uk>.
44608
44609 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
44610
44611 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
44612 allocated.
44613 (grub_sfs_dir): Likewise.
44614
44615 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
44616
44617 Add support for the SFS filesystem.
44618
44619 * fs/sfs.c: New file.
44620
44621 * DISTLIST: Added `fs/sfs.c'.
44622
44623 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
44624 (grub_probefs_SOURCES): Likewise.
44625 (grub_emu_SOURCES): Likewise.
44626 (pkgdata_MODULES): Add `sfs.mod'.
44627 (sfs_mod_SOURCES): New variable.
44628 (sfs_mod_CFLAGS): Likewise.
44629 (sfs_mod_LDFLAGS): Likewise.
44630
44631 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
44632 (pkgdata_MODULES): Add `sfs.mod'.
44633 (sfs_mod_SOURCES): New variable.
44634 (sfs_mod_CFLAGS): Likewise.
44635
44636 * util/grub-emu.c (main): Call `grub_sfs_init' and
44637 `grub_sfs_fini'.
44638
44639 * include/grub/fs.h (grub_sfs_init): New prototype.
44640 (grub_sfs_fini): Likewise.
44641
44642 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
44643
44644 Add support for the AFFS filesystem.
44645
44646 * fs/affs.c: New file.
44647
44648 * DISTLIST: Added `fs/affs.c'.
44649
44650 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
44651 (grub_probefs_SOURCES): Likewise.
44652 (grub_emu_SOURCES): Likewise.
44653 (pkgdata_MODULES): Add `affs.mod'.
44654 (affs_mod_SOURCES): New variable.
44655 (affs_mod_CFLAGS): Likewise.
44656 (affs_mod_LDFLAGS): Likewise.
44657
44658 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
44659 (pkgdata_MODULES): Add `affs.mod'.
44660 (affs_mod_SOURCES): New variable.
44661 (affs_mod_CFLAGS): Likewise.
44662
44663 * util/grub-emu.c (main): Call `grub_affs_init' and
44664 `grub_affs_fini'.
44665
44666 * include/grub/fs.h (grub_affs_init): New prototype.
44667 (grub_affs_fini): Likewise.
44668
44669 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44670
44671 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
44672
44673 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44674
44675 * configure.ac: Accept `x86_64' as host_cpu. In that case add
44676 `-m32' to CFLAGS.
44677
44678 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
44679 linking.
44680
44681 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
44682 (COMMON_LDFLAGS): New variable.
44683 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
44684 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
44685 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
44686 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
44687 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
44688 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
44689 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
44690 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
44691 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
44692 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
44693 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44694 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44695 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
44696 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
44697 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
44698 variables.
44699 (normal_mod_ASFLAGS): Add `-m32'.
44700
44701 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
44702 (grub_host_size_t, grub_host_ssize_t): New types.
44703 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
44704 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
44705 `GRUB_HOST_SIZEOF_VOID_P'.
44706
44707 * include/grub/kernel.h (struct grub_module_header): Type of
44708 member offset changed to `grub_host_off_t'. Type of member size
44709 changed to `grub_host_size_t'.
44710 (struct grub_module_info): Type of member offset changed to
44711 `grub_host_off_t'. Type of member size changed to
44712 `grub_host_size_t'.
44713
44714 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
44715
44716 Make GRUB's kernel compliant to Multiboot Specification.
44717
44718 * kern/i386/pc/startup.S (multiboot_header): New label.
44719 (multiboot_entry): Likewise.
44720 (multiboot_trampoline): Likewise.
44721
44722 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44723 Increased to 0x4A0.
44724
44725 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
44726 put parentheses after a question mark.
44727 [!GRUB_UTIL] (my_mod): New variable.
44728
44729 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
44730
44731 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
44732
44733 Adds support for the XFS filesystem. Btrees are not supported
44734 yet.
44735
44736 * fs/xfs.c: New file.
44737
44738 * DISTLIST: Added `fs/xfs.c'.
44739
44740 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
44741 (grub_probefs_SOURCES): Likewise.
44742 (grub_emu_SOURCES): Likewise.
44743 (pkgdata_MODULES): Add `xfs.mod'.
44744 (xfs_mod_SOURCES): New variable.
44745 (xfs_mod_CFLAGS): Likewise.
44746
44747 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
44748 (pkgdata_MODULES): Add `xfs.mod'.
44749 (xfs_mod_SOURCES): New variable.
44750 (xfs_mod_CFLAGS): Likewise.
44751
44752 * util/grub-emu.c (main): Call `grub_xfs_init' and
44753 `grub_xfs_fini'.
44754
44755 * include/grub/fs.h (grub_xfs_init): New prototype.
44756 (grub_xfs_fini): Likewise.
44757
44758
44759 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
44760
44761 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
44762 color modes, allow greater than 16 colors to be configured as
44763 a default palette.
44764
44765 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44766
44767 * normal/completion.c (complete_arguments): Add the qualifier
44768 const into OPTIONS.
44769
44770 From Omniflux <omniflux+lists@omniflux.com>:
44771 * include/grub/terminfo.h: New file.
44772 * include/grub/tparm.h: Likewise.
44773 * include/grub/i386/pc/serial.h: Likewise.
44774 * term/terminfo.c: Likewise.
44775 * term/tparm.c: Likewise.
44776 * term/i386/pc/serial.c: Likewise.
44777 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
44778 serial.mod.
44779 (terminfo_mod_SOURCES): New variable.
44780 (terminfo_mod_CFLAGS): Likewise.
44781 (serial_mod_SOURCES): Likewise.
44782 (serial_mod_CFLAGS): Likewise.
44783
44784 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
44785
44786 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
44787 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
44788 and kern/powerpc/ieee1275/cmain.c, respectively.
44789
44790 * boot/powerpc/ieee1275/crt0.S: Moved to ...
44791 * kern/powerpc/ieee1275/crt0.S: ... here.
44792
44793 * boot/powerpc/ieee1275/cmain.c: Moved to ...
44794 * kern/powerpc/ieee1275/cmain.c: ... here.
44795
44796 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
44797 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
44798 instead of boot/powerpc/ieee1275/crt0.S and
44799 boot/powerpc/ieee1275/cmain.c, respectively.
44800
44801 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
44802 sectors. It was not used anyway.
44803
44804 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44805
44806 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
44807 `unused parameter' warning.
44808
44809 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44810
44811 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
44812 function.
44813 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
44814 getcharwidth.
44815
44816 2005-08-28 Marco Gerards <metgerards@student.han.nl>
44817
44818 * include/grub/normal.h (enum grub_completion_type): Added
44819 `GRUB_COMPLETION_TYPE_ARGUMENT'.
44820
44821 * normal/cmdline.c (print_completion): Handle
44822 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
44823 * normal/menu_entry.c (store_completion): Likewise.
44824
44825 * normal/completion.c (complete_arguments): New function.
44826 (grub_normal_do_completion): Call `complete_arguments' when the
44827 current words start with a dash.
44828
44829 2005-08-27 Marco Gerards <metgerards@student.han.nl>
44830
44831 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
44832 `gzio.mod' instead of `io.mod').
44833
44834 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
44835
44836 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
44837 (DISTDIRS): Added io and video.
44838 Rewrite the search routine to make an output consistently.
44839
44840 * DISTLIST: Added conf/sparc64-ieee1275.mk,
44841 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
44842 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
44843 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
44844 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
44845 util/powerpc/ieee1275/misc.c.
44846
44847 * include/grub/gzio.h: New file.
44848 * io/gzio.c: Likewise.
44849
44850 * kern/file.c (grub_file_close): Call grub_device_close only if
44851 FILE->DEVICE is not NULL.
44852
44853 * include/grub/mm.h [!NULL] (NULL): New macro.
44854
44855 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
44856
44857 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
44858 (pkgdata_MODULES): Added gzio.mod.
44859 (gzio_mod_SOURCES): New variable.
44860 (gzio_mod_CFLAGS): Likewise.
44861
44862 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
44863 (pkgdata_MODULES): Added gzio.mod.
44864 (gzio_mod_SOURCES): New variable.
44865 (gzio_mod_CFLAGS): Likewise.
44866
44867 * commands/cat.c: Include grub/gzio.h.
44868 (grub_cmd_cat): Use grub_gzfile_open instead of
44869 grub_file_open.
44870
44871 * commands/cmp.c: Include grub/gzio.h.
44872 (grub_cmd_cmp): Use grub_gzfile_open instead of
44873 grub_file_open.
44874
44875 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
44876 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
44877 grub_file_open.
44878 (grub_rescue_cmd_module): Likewise.
44879
44880 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44881
44882 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
44883 kern/sparc64/ieee1275/init.c because it contains _start.
44884 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
44885
44886 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44887
44888 * configure.ac: Add support for sparc64 host with ieee1275
44889 firmware.
44890 * configure: Generated from configure.ac.
44891 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
44892 instead of int.
44893 (grub_ofdisk_read): Likewise.
44894 (grub_ofdisk_open): Use %p to print pointer values, and cast the
44895 pointers as (void *) to remove a warning.
44896 (grub_ofdisk_close): Likewise.
44897 (grub_ofdisk_read): Likewise.
44898 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
44899 returns, so make it return void to remove a warning.
44900 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
44901 Corresponding prototype change.
44902 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
44903 values, and cast the pointers as (void *) to remove a warning.
44904 (grub_mm_dump): Likewise.
44905 * conf/sparc64-ieee1275.mk: New file.
44906 * conf/sparc64-ieee1275.rmk: Likewise.
44907 * include/grub/sparc64/setjmp.h: Likewise.
44908 * include/grub/sparc64/types.h: Likewise.
44909 * include/grub/sparc64/ieee1275/console.h: Likewise.
44910 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44911 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44912 * include/grub/sparc64/ieee1275/time.h: Likewise.
44913 * kern/sparc64/cache.c: Likewise.
44914 * kern/sparc64/dl.c: Likewise.
44915 * kern/sparc64/ieee1275/init.c: Likewise.
44916 * kern/sparc64/ieee1275/openfw.c: Likewise.
44917
44918 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
44919
44920 * util/console.c (grub_ncurses_putchar): If C is greater than
44921 0x7f, set C to a question mark.
44922 (grub_ncurses_getcharwidth): New function.
44923 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
44924 getcharwidth.
44925
44926 * normal/menu.c (print_entry): Made aware of Unicode. First,
44927 convert TITLE to UCS-4, and predict the cursor position by
44928 grub_getcharwidth.
44929
44930 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
44931 const to SRC.
44932 * kern/misc.c (grub_utf16_to_utf8): Likewise.
44933
44934 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44935
44936 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
44937 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44938 grub_strcat.
44939
44940 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
44941 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44942 grub_strcpy and grub_strlen. Take it into account that a space
44943 character is inserted as a delimiter.
44944
44945 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44946
44947 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
44948 invalid magic in the error.
44949
44950 * commands/search.c: New file.
44951
44952 * util/grub-emu.c (main): Call grub_search_init and
44953 grub_search_fini.
44954
44955 * kern/rescue.c (grub_rescue_print_disks): Removed.
44956 (grub_rescue_print_devices): New function.
44957 (grub_rescue_cmd_ls): Use grub_device_iterate with
44958 grub_rescue_print_devices instead of grub_disk_dev_iterate with
44959 grub_rescue_print_disks.
44960
44961 * kern/partition.c (grub_partition_iterate): Return the result of
44962 PARTMAP->ITERATE instead of GRUB_ERRNO.
44963
44964 * kern/device.c: Include grub/partition.h.
44965 (grub_device_iterate): New function.
44966
44967 * include/grub/partition.h (grub_partition_iterate): Return int
44968 instead of grub_err_t.
44969
44970 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
44971 prototype.
44972 [GRUB_UTIL] (grub_search_fini): Likewise.
44973
44974 * include/grub/device.h (grub_device_iterate): New prototype.
44975
44976 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44977 commands/search.c.
44978 (pkgdata_MODULES): Added search.mod.
44979 (search_mod_SOURCES): New variable.
44980 (search_mod_CFLAGS): Likewise.
44981
44982 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
44983 (pkgdata_MODULES): Added search.mod.
44984 (search_mod_SOURCES): New variable.
44985 (search_mod_CFLAGS): Likewise.
44986
44987 * commands/ls.c (grub_ls_list_disks): Renamed to ...
44988 (grub_ls_list_devices): ... this, and use grub_device_iterate.
44989 All callers changed.
44990
44991 * DISTLIST: Added commands/search.c.
44992
44993 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44994
44995 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
44996 conversion.
44997 (grub_getcharwidth): New function.
44998
44999 * kern/misc.c (grub_utf8_to_ucs4): New function.
45000
45001 * include/grub/term.h (struct grub_term): Added a new member
45002 "getcharwidth".
45003 (grub_getcharwidth): New prototype.
45004
45005 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
45006
45007 * term/i386/pc/console.c (map_char): New function. Segregated from
45008 grub_console_putchar.
45009 (grub_console_putchar): Use map_char.
45010 (grub_console_getcharwidth): New function.
45011 (grub_console_term): Specified grub_console_getcharwidth as
45012 getcharwidth.
45013
45014 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
45015 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
45016
45017 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
45018 GRUB_ERRNO.
45019 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
45020 on grub_strtoul completely.
45021 (write_char): Declare local variables in the beginning of the
45022 function.
45023 (grub_vesafb_getcharwidth): New function.
45024 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
45025 getcharwidth.
45026
45027 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
45028
45029 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
45030 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
45031 commands/i386/pc/vbetest.c.
45032
45033 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
45034 call grub_vbe_get_controller_info again, because the returned
45035 information is volatile.
45036 (grub_vbe_set_video_mode): Mostly rewritten.
45037 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
45038 grub_vbe_status_t correctly.
45039 (grub_vbe_get_video_mode_info): Likewise.
45040 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
45041 several if statements.
45042
45043 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
45044 * commands/i386/pc/vbeinfo.c: ... this.
45045
45046 * commands/i386/pc/vbe_test.c: Renamed to ...
45047 * commands/i386/pc/vbetest.c: ... this.
45048
45049 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
45050 ...
45051 (grub_cmd_vbeinfo): ... this. Save video modes before
45052 iterating. Skip a video mode, if it is not available, not enough
45053 information is given or it is monochrome. Show the memory
45054 model. Leave the interpretation of MODEVAR to grub_strtoul
45055 completely.
45056 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
45057 (GRUB_MOD_FINI): Likewise.
45058
45059 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
45060 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
45061 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
45062 duplicated grub_env_get. Leave the interpretation of MODEVAR to
45063 grub_strtoul completely.
45064 (real2pm): Removed.
45065 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
45066 (GRUB_MOD_FINI): Likewise.
45067
45068 * normal/misc.c: Include grub/mm.h.
45069
45070 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
45071 vbe_list_modes with vbetest.mod and vbeinfo.mod.
45072 (vbe_list_modes_mod_SOURCES): Removed.
45073 (vbe_list_modes_mod_CFLAGS): Likewise.
45074 (vbe_test_mod_SOURCES): Likewise.
45075 (vbe_test_mod_CFLAGS): Likewise.
45076 (vbeinfo_mod_SOURCES): New variable.
45077 (vbeinfo_mod_CFLAGS): Likewise.
45078 (vbetest_mod_SOURCES): Likewise.
45079 (vbetest_mod_CFLAGS): Likewise.
45080
45081 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
45082
45083 * normal/misc.c: New file.
45084
45085 * DISTLIST: Added normal/misc.c.
45086
45087 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
45088 DISK to HOOK. Call HOOK with DISK.
45089 * partmap/apple.c (apple_partition_map_iterate): Likewise.
45090 * partmap/pc.c (pc_partition_map_iterate): Likewise.
45091 * partmap/sun.c (sun_partition_map_iterate): Likewise.
45092
45093 * normal/menu_entry.c (struct screen): Added a new member
45094 "completion_shown".
45095 (completion_buffer): New global variable.
45096 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
45097 (store_completion): New function.
45098 (complete): Likewise.
45099 (clear_completions): Likewise.
45100 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
45101 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
45102 a tab, call complete.
45103
45104 * normal/completion.c (disk_dev): Removed.
45105 (print_simple_completion): Likewise.
45106 (print_partition_completion): Likewise.
45107 (print_func): New global variable.
45108 (add_completion): Do not take the arguments WHAT or PRINT any
45109 longer. Added a new argument TYPE. Instead of printing directly,
45110 call PRINT_FUNC if not NULL.
45111 All callers changed.
45112 (complete_device): Use a local variable DEV instead of
45113 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
45114 (grub_normal_do_completion): Take a new argument HOOK. Do not
45115 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
45116 empty string, return NULL instead.
45117 All callers changed.
45118
45119 * normal/cmdline.c (print_completion): New function.
45120
45121 * kern/partition.c (grub_partition_iterate): Add an argument DISK
45122 to HOOK.
45123 All callers changed.
45124
45125 * kern/disk.c (grub_print_partinfo): Removed.
45126
45127 * include/grub/partition.h (struct grub_partition_map): Add a new
45128 argument DISK into HOOK of ITERATE.
45129 (grub_partition_iterate): Add a new argument DISK to HOOK.
45130
45131 * include/grub/normal.h (enum grub_completion_type): New enum.
45132 (grub_completion_type_t): New type.
45133 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
45134 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
45135 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
45136 (GRUB_COMPLETION_TYPE_FILE): Likewise.
45137 (grub_normal_do_completion): Added a new argument HOOK.
45138 (grub_normal_print_device_info): New prototype.
45139
45140 * include/grub/disk.h (grub_print_partinfo): Removed.
45141
45142 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
45143 (normal_mod_SOURCES): Likewise.
45144 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45145 (normal_mod_SOURCES): Likewise.
45146
45147 * commands/ls.c (grub_ls_list_disks): Use
45148 grub_normal_print_device_info instead of grub_print_partinfo. Free
45149 PNAME.
45150 (grub_ls_list_files): Use grub_normal_print_device_info instead of
45151 duplicating the code.
45152
45153 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45154
45155 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
45156 follow GCS more precisely.
45157 * commands/i386/pc/vbe_test.c: Likewise.
45158 * include/grub/i386/pc/vbe.h: Likewise.
45159 * term/i386/pc/vesafb.c: Likewise.
45160 * video/i386/pc/vbe.c: Likewise.
45161
45162 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45163
45164 * DISTLIST: Added term/i386/pc/vesafb.c
45165 DISTLIST: Added video/i386/pc/vbe.c
45166 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
45167 DISTLIST: Added commands/i386/pc/vbe_test.c.
45168 * commands/i386/pc/vbe_list_modes.c: New file.
45169 * commands/i386/pc/vbe_test.c: Likewise.
45170 * term/i386/pc/vesafb.c: Likewise.
45171 * video/i386/pc/vbe.c: Likewise.
45172 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
45173 (grub_vbe_probe) Added prototype.
45174 (grub_vbe_set_video_mode) Likewise.
45175 (grub_vbe_get_video_mode) Likewise.
45176 (grub_vbe_get_video_mode_info) Likewise.
45177 (grub_vbe_set_pixel_rgb) Likewise.
45178 (grub_vbe_set_pixel_index) Likewise.
45179 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
45180 (pkgdata_MODULES): Added vesafb.mod.
45181 (pkgdata_MODULES): Added vbe_list_modes.mod.
45182 (pkgdata_MODULES): Added vbe_test.mod.
45183 (vbe_mod_SOURCES): Added.
45184 (vbe_mod_CFLAGS): Likewise.
45185 (vesafb_mod_SOURCES): Likewise.
45186 (vesafb_mod_CFLAGS): Likewise.
45187 (vbe_list_modes_mod_SOURCES): Likewise.
45188 (vbe_list_modes_mod_CFLAGS): Likewise.
45189 (vbe_test_mod_SOURCES): Likewise.
45190 (vbe_test_mod_CFLAGS): Likewise.
45191
45192 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
45193
45194 * normal/command.c (grub_command_execute): If INTERACTIVE is
45195 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
45196 CMDLINE. Disable the pager if INTERACTIVE is true.
45197 All callers are changed.
45198
45199 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
45200 before reading a config file.
45201 * normal/main.c (read_config_file): Even if a command is not
45202 found, register it if it is within an entry.
45203
45204 * util/grub-emu.c: Include sys/types.h and unistd.h.
45205 (options): Added --hold.
45206 (struct arguments): Added a new member "hold".
45207 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
45208 missing.
45209 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
45210 cleared by a debugger, if it is not zero.
45211
45212 * include/grub/normal.h (grub_command_execute): Add an argument
45213 INTERACTIVE.
45214
45215 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
45216
45217 * DISTLIST: Added include/grub/i386/pc/vbe.h.
45218
45219 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
45220
45221 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
45222 program with another one, because the old one didn't detect a bug
45223 in gcc-3.4. Always use regparm 2, because the new test is still
45224 not enough for gcc-4.0. Someone must investigate a simple test
45225 case which detects a bug in gcc-4.0.
45226
45227 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
45228
45229 * DISTLIST: Added normal/completion.c.
45230
45231 * normal/completion.c: New file.
45232
45233 * term/i386/pc/console.c (grub_console_getwh): New function.
45234 (grub_console_term): Assign grub_console_getwh to getwh.
45235
45236 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
45237 function is defined in normal/completion.c as
45238 grub_normal_do_completion.
45239 (grub_cmdline_get): Use grub_normal_do_completion instead of
45240 grub_tab_complete.
45241
45242 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
45243 returns non-zero, otherwise return 0.
45244 (grub_partition_iterate): First, probe the partition map. Then,
45245 call ITERATE only for this partition map.
45246
45247 * kern/misc.c (grub_strncmp): Rewritten.
45248
45249 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
45250 returns non-zero. Otherwise return 0.
45251
45252 * include/grub/partition.h (grub_partition_map_iterate): Return
45253 int instead of void.
45254
45255 * include/grub/normal.h (grub_normal_do_completion): New prototype.
45256
45257 * include/grub/misc.h (grub_strncmp): Change the type of N to
45258 grub_size_t.
45259
45260 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
45261 of void.
45262
45263 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
45264 unsigned explicitly before comparing it with I.
45265
45266 * kern/main.c (grub_env_write_root): Add the attribute unused into
45267 VAR.
45268
45269 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45270 normal/completion.c.
45271 (normal_mod_SOURCES): Likewise.
45272 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45273 (normal_mod_SOURCES): Likewise.
45274
45275 * normal/command.c (grub_iterate_commands): If ITERATE returns
45276 non-zero, return one immediately.
45277
45278 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
45279
45280 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
45281 * kern/i386/pc/startup.S: Updated Global Descriptor table's
45282 descriptions.
45283 (grub_vbe_get_controller_info): New function.
45284 (grub_vbe_get_mode_info): Likewise.
45285 (grub_vbe_set_mode): Likewise.
45286 (grub_vbe_get_mode): Likewise.
45287 (grub_vbe_set_memory_window): Likewise.
45288 (grub_vbe_get_memory_window): Likewise.
45289 (grub_vbe_set_scanline_length): Likewise.
45290 (grub_vbe_get_scanline_length): Likewise.
45291 (grub_vbe_set_display_start): Likewise.
45292 (grub_vbe_get_display_start): Likewise.
45293 (grub_vbe_set_palette_data): Likewise.
45294 * include/grub/i386/pc/vbe.h: New file.
45295
45296 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45297
45298 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45299 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
45300 * DISTLIST: Likewise.
45301 * kern/ieee1275/of.c: Moved to ...
45302 * kern/ieee1275/ieee1275.c: ... here.
45303
45304 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45305
45306 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
45307 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
45308 Pass 0 as `end' parameter to grub_strtoul().
45309
45310 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45311
45312 * include/grub/powerpc/ieee1275/console.h: Do not include
45313 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
45314 ifdef.
45315 (grub_console_cur_color): Remove i386-specific prototype.
45316 (grub_console_real_putchar): Likewise.
45317 (grub_console_checkkey): Likewise.
45318 (grub_console_getkey): Likewise.
45319 (grub_console_getxy): Likewise.
45320 (grub_console_gotoxy): Likewise.
45321 (grub_console_cls): Likewise.
45322 (grub_console_setcursor): Likewise.
45323 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
45324 Include <grub/machine/console.h>.
45325 * term/ieee1275/ofconsole.c: Likewise.
45326
45327 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
45328
45329 * Makefile.in (LIBLZO): New variable.
45330
45331 * configure.ac: Check for LZO version 2.
45332
45333 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
45334 lzo/lzo1x.h instead of lzo1x.h.
45335
45336 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
45337 of -llzo.
45338
45339 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
45340 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
45341
45342 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
45343 copying the data from PARTITION to P.
45344
45345 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45346
45347 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
45348 negative, unload the module.
45349
45350 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
45351 map is "pc_partition_map" but not "pc".
45352 (usage): Fix the description. The options are --boot-image and
45353 --core-image but not --boot-file or --core-file.
45354 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
45355 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
45356 DEFAULT_DIRECTORY.
45357
45358 * util/i386/pc/grub-install.in: Do not specify --boot-file or
45359 --core-file. Specify INSTALL_DEVICE as an argument.
45360
45361 * util/console.c: Include config.h.
45362 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
45363 [HAVE_NCURSES_H]: Include ncurses.h.
45364 [HAVE_CURSES_H]: Include curses.h.
45365 [!A_NORMAL] (A_NORMAL): Defined as zero.
45366 [!A_STANDOUT] (A_STANDOUT): Likewise.
45367
45368 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
45369 -lncurses.
45370 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
45371
45372 * configure.ac: Check for curses libraries and headers.
45373
45374 * Makefile.in (LIBCURSES): New variable.
45375
45376 * genmk.rb (Script::rule): Set the executable bits.
45377
45378 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
45379 name of the PC partition map is "pc_partition_map" but not "pc".
45380
45381 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45382
45383 * util/i386/pc/grub-install.in (grub_probefs): New variable.
45384 (modules): Likewise.
45385 (usage): Added descriptions for --modules and --grub-probefs.
45386 Handle --modules and --grub-probefs. Save the arguments in MODULES
45387 and GRUB_PROBEFS, respectively.
45388 Auto-detect a filesystem module against GRUBDIR. If the result is
45389 empty and modules are not specified explicitly, abort the
45390 installation. Add the result to MODULES.
45391
45392 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
45393 disk/powerpc/ieee1275/ofdisk.c,
45394 include/grub/powerpc/ieee1275/init.h and
45395 term/powerpc/ieee1275/ofconsole.c.
45396 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
45397 term/ieee1275/ofconsole.c.
45398
45399 * include/grub/powerpc/ieee1275/console.h: Resurrected.
45400
45401 * COPYING: Upgraded to the latest version. Only the address of the
45402 FSF office has changed.
45403
45404 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45405
45406 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45407 kern/ieee1275.c with kern/ieee1275/of.c.
45408
45409 * kern/ieee1275.c: Moved to ...
45410 * kern/ieee1275/of.c: ... here.
45411
45412 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
45413
45414 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
45415 readability.
45416
45417 * config.guess: Updated to the latest version from gnulib.
45418 * config.sub: Likewise.
45419 * install.sh: Likewise.
45420 * mkinstalldirs: Likewise.
45421
45422 * include/grub/console.h: Removed. This file is arch-specific. Do
45423 not put this in include/grub.
45424
45425 * include/grub/i386/pc/console.h: Resurrected.
45426
45427 * util/console.c: Include grub/machine/console.h instead of
45428 grub/console.h.
45429 * util/grub-emu.c: Likewise.
45430
45431 2005-08-04 Marco Gerards <metgerards@student.han.nl>
45432
45433 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
45434 hardcoded value.
45435
45436 From Vincent Pelletier <subdino2004@yahoo.fr>
45437 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
45438 Redefined to use grub_getwh.
45439 (grub_term): New member named getwh.
45440 (grub_getwh): New prototype.
45441 * kern/term.c (grub_getwh): New function.
45442 * term/i386/pc/console.c (grub_console_getwh): New function.
45443 (grub_console_term): New member `getwh'.
45444 * term/i386/pc/vga.c (grub_vga_getwh): New function.
45445 (grub_vga_term): New member `getwh'.
45446 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
45447 grub_ssize_t.
45448 (grub_ofconsole_getw): New function.
45449 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
45450 (grub_ofconsole_term): New field named getwh and new initial
45451 value.
45452
45453 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
45454
45455 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
45456 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
45457 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
45458 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
45459 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
45460 of <grub/machine/ieee1275.h>.
45461 * commands/ieee1275/reboot.c: Likewise.
45462 * boot/powerpc/ieee1275/ieee1275.c: Move ...
45463 * kern/ieee1275.c: ... to here. All users updated. Change all
45464 parameter structs to use new type `grub_ieee1275_cell_t'.
45465 * term/powerpc/ieee1275/ofconsole.c: Move ...
45466 * term/ieee1275/ofconsole.c: ... to here. All users updated.
45467 * disk/powerpc/ieee1275/ofdisk.c: Move ...
45468 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
45469 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
45470 to return int.
45471 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
45472 Remove unused prototypes. All users updated.
45473 * include/grub/powerpc/ieee1275/console.h: Removed.
45474 * include/grub/powerpc/ieee1275/ieee1275.h: Define
45475 `grub_ieee1275_cell_t'.
45476 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
45477 Cast comparisons with -1 to the correct type.
45478 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
45479 type to match `grub_ieee1275_entry_fn'.
45480
45481 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
45482
45483 * DISTLIST: Added util/i386/pc/grub-probefs.c.
45484
45485 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
45486 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
45487 partmap/sun.c.
45488 (grub_probefs_SOURCES): New variable.
45489
45490 * util/i386/pc/grub-probefs.c: New file.
45491
45492 * util/i386/pc/grub-setup.c (main): Call
45493 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
45494 grub_hfs_init and grub_jfs_init to initialize the system. Call
45495 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
45496 grub_pc_partition_map_fini to finish the system.
45497
45498 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
45499
45500 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
45501 function.
45502 (grub_multiboot_load_elf32): Likewise.
45503 (grub_multiboot_is_elf64): Likewise.
45504 (grub_multiboot_load_elf64): Likewise.
45505 (grub_multiboot_load_elf): Likewise.
45506 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
45507 an ELF32 or ELF64 file.
45508 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
45509
45510 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
45511 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
45512 NULL before calling FS->LABEL.
45513 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
45514 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
45515 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
45516 before calling FS->LABEL.
45517
45518 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
45519
45520 * util/i386/pc/grub-install.in (datadir): New variable.
45521 (libdir): Removed.
45522 (pkgdatadir): New variable.
45523 (pkglibdir): Removed.
45524
45525 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
45526
45527 * DISTLIST: Added util/i386/pc/grub-install.in.
45528
45529 * util/i386/pc/grub-install.in: New file.
45530
45531 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
45532 (grub_install_SOURCES): Likewise.
45533
45534 * genmk.rb: Added support for scripts.
45535 (Script): New class.
45536 (scripts): New variable.
45537
45538 * Makefile.in (install-local): Install sbin_SCRIPTS by
45539 INSTALL_SCRIPT.
45540 (uninstall): Remove sbin_SCRIPTS.
45541
45542 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
45543 device, try to get a GRUB device by
45544 grub_util_biosdisk_get_grub_dev.
45545 Free DEST_DEV.
45546
45547 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
45548 description for --device-map.
45549
45550 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45551
45552 Change the semantics of variable hooks. They now return strings
45553 instead of error values.
45554
45555 * util/i386/pc/grub-setup.c: Include grub/env.h.
45556 (setup): Use grub_device_set_root instead of grub_env_set.
45557
45558 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
45559 grub_env_get instead of grub_device_set_root and
45560 grub_device_get_root, respectively.
45561
45562 * kern/main.c (grub_env_write_root): New function.
45563 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
45564 grub_env_set instead of grub_device_set_root.
45565
45566 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
45567 many variables.
45568 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
45569 rather than calling ENV->WRITE_HOOK afterwards.
45570 (grub_env_get): Return the result of ENV->READ_HOOK rather than
45571 passing a pointer of a pointer.
45572 (grub_register_variable_hook): Change the types of "read_hook" and
45573 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
45574 respectively.
45575 Allocate the default empty string on the heap, because this string
45576 may be freed later.
45577
45578 * kern/device.c: Include grub/env.h.
45579 (grub_device_set_root): Removed.
45580 (grub_device_get_root): Likewise.
45581 (grub_device_open): Use grub_env_get instead of
45582 grub_device_get_root.
45583
45584 * include/grub/env.h (grub_env_read_hook_t): New type.
45585 (grub_env_write_hook_t): Likewise.
45586 (grub_env_var): Change the types of "read_hook" and "write_hook"
45587 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
45588 (grub_register_variable_hook): Likewise.
45589
45590 * include/grub/device.h (grub_device_set_root): Removed.
45591 (grub_device_set_root): Likewise.
45592
45593 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
45594 make sure that DIRNAME terminates with '/', so that
45595 grub_fat_find_dir will fail if PATH is not a directory.
45596
45597 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
45598 from DIRNAME.
45599 Use the qualifier auto for print_files and print_files_long.
45600 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
45601 as a regular file.
45602 Put a newline only if there is no error.
45603 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
45604 used.
45605
45606 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45607
45608 * kern/partition.c (grub_partition_probe): Initialize PART to
45609 NULL. Otherwise, when no partition map is registered, this returns
45610 a garbage.
45611
45612 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
45613
45614 * partmap/apple.c (apple_partition_map_iterate): Check if POS
45615 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
45616 valid.
45617
45618 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
45619
45620 * commands/ls.c (grub_ls_list_disks): Print the filesystem
45621 information on each device, if it does not have partitions. Print
45622 "Device" instead of "Disk", because this function is not specific
45623 to disk devices.
45624
45625 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
45626 static to ensure that it is put on the memory rather than a
45627 register.
45628
45629 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45630
45631 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
45632 (grub_cat_init): Likewise.
45633 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
45634 (options): Likewise.
45635 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
45636 (grub_configfile_init): Likewise.
45637 * font/manager.c (GRUB_MOD_INIT): Likewise.
45638 * commands/help.c (GRUB_MOD_INIT): Likewise.
45639 (grub_help_init): Likewise.
45640 * normal/command.c (grub_command_init): Likewise.
45641 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
45642 * disk/loopback.c (grub_loop_init): Likewise.
45643 (GRUB_MOD_INIT): Likewise.
45644 * commands/ls.c (grub_ls_init): Likewise.
45645 (GRUB_MOD_INIT): Likewise.
45646 (options): Likewise.
45647 * commands/boot.c (grub_boot_init): Likewise.
45648 (GRUB_MOD_INIT): Likewise.
45649 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
45650 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
45651 (GRUB_MOD_INIT): Likewise.
45652 * commands/cmp.c (grub_cmp_init): Likewise.
45653 (GRUB_MOD_INIT): Likewise.
45654
45655 * normal/arg.c: Use <> instead of "" to include header files.
45656 (SHORT_ARG_HELP): New macro.
45657 (SHORT_ARG_USAGE): Likewise.
45658 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
45659 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
45660 descriptions.
45661 (find_short): Check if C is 'h' or 'u' explicitly.
45662 (grub_arg_show_help): Use space characters instead of tabs. Treat
45663 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
45664 are shown with --help and --usage only if they are not used for
45665 the command itself.
45666 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
45667 'h' and 'u'.
45668
45669 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
45670 const into "longarg". Change the type of "shortarg" to int.
45671
45672 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45673
45674 * boot/i386/pc/boot.S (boot_drive_check): New label.
45675
45676 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
45677 macro.
45678
45679 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
45680 which do not pass a boot drive correctly. Copied from GRUB Legacy.
45681
45682 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45683
45684 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
45685 When turning off Gate A20, skip the check and return immediately,
45686 because this is not fatal usually.
45687
45688 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45689
45690 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
45691 be 0x7C00 instead of 0x8000.
45692
45693 * boot/i386/pc/pxeboot.S: Rewritten.
45694
45695 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
45696 EXT_C.
45697 (gate_a20_check_state): Read a byte from 0x108000. Invert the
45698 result.
45699
45700 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
45701
45702 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
45703 robustness. This routine now supports a BIOS call and System
45704 Control Port A to modify the gate A20.
45705
45706 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
45707 Increased to 0x440.
45708
45709 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
45710
45711 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
45712 device path and resulting ihandle.
45713 (grub_ofdisk_close): dprintf the ihandle being closed.
45714 (grub_ofdisk_read): dprintf function parameters.
45715 * kern/mm.c (grub_mm_init_region): Likewise.
45716 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
45717 (grub_linux_boot): dprintf the Linux entry point, initrd address and
45718 size, and boot arguments.
45719 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
45720 before loading into memory.
45721 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
45722 before loading into memory.
45723
45724 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
45725
45726 * kern/mm.c: Added much documentation.
45727 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
45728 8, set to 5 instead of 8.
45729
45730 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45731
45732 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
45733
45734 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
45735 (grub_mkdevicemap_SOURCES): New variable.
45736
45737 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
45738 lib/device.c of GRUB Legacy.
45739
45740 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45741
45742 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
45743 instead of PATH is NULL.
45744
45745 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
45746
45747 * commands/cmp.c (BUFFER_SIZE): New macro.
45748 (grub_cmd_cmp): Close the right file at the right time. Compare
45749 only data just read. Don't report files of different size as
45750 identical. Dynamically allocate buffers. Move variable
45751 declarations at the beginning of function.
45752
45753 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
45754
45755 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
45756 reverse.
45757
45758 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
45759
45760 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
45761 when backspace is pressed at beginning of line.
45762
45763 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
45764
45765 * DISTLIST: Added genfslist.sh.
45766
45767 * normal/main.c (fs_module_list): New variable.
45768 (autoload_fs_module): New function.
45769 (read_fs_list): Likewise.
45770 (grub_normal_execute): Call read_fs_list.
45771
45772 * kern/fs.c (grub_fs_autoload_hook): New variable.
45773 (grub_fs_probe): Added support for auto-loading.
45774
45775 * include/grub/normal.h (struct grub_fs_module_list): New struct.
45776 (grub_fs_module_list_t): New type.
45777
45778 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
45779 (grub_fs_autoload_hook): New prototype.
45780
45781 * genfslist.sh: New file.
45782
45783 * genmk.rb: Added a rule to generate a filesystem list.
45784
45785 2005-06-30 Marco Gerards <metgerards@student.han.nl>
45786
45787 * configure.ac: Fix the test for cross-compiling.
45788
45789 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
45790 define GRUB_UTIL anymore.
45791
45792 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
45793 so this function works on other systems than just big endian.
45794 (load_modules): Likewise.
45795 (add_segments): Likewise.
45796
45797 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
45798
45799 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
45800 contains `l' modifier, get a long from va_arg().
45801
45802 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
45803
45804 * kern/mm.c (grub_free): If the next free block which is being
45805 merged is the first free block, set the first block to the block
45806 being freed.
45807 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
45808
45809 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45810
45811 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
45812 `grub_ieee1275_chosen'.
45813
45814 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45815
45816 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
45817 (grub_ieee1275_chosen): New variable.
45818 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
45819 `chosen'.
45820 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
45821 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45822 Rename first argument to `phandle' for consistency.
45823 (grub_ieee1275_get_property_length): Likewise.
45824 (grub_ieee1275_next_property): Likewise. Change type of first argument
45825 to grub_ieee1275_phandle_t.
45826 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
45827 Move export next to declaration.
45828 (grub_ieee1275_chosen): New variable.
45829 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
45830 Correct cosmetic typo.
45831 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
45832 `grub_ieee1275_chosen'.
45833 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
45834 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
45835 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
45836 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
45837 `grub_ieee1275_chosen'.
45838
45839 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
45840
45841 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
45842 /chosen/bootargs.
45843 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
45844 /chosen/bootargs as "variable=value" pairs.
45845
45846 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
45847
45848 * include/grub/misc.h (grub_dprintf): New macro.
45849 (grub_real_dprintf): New prototype.
45850 (grub_strword): Likewise.
45851 (grub_iswordseparator): Likewise.
45852 * kern/misc.c (grub_real_dprintf): New function.
45853 (grub_strword): Likewise.
45854 (grub_iswordseparator): Likewise.
45855
45856 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
45857
45858 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
45859 (roundup): Remove macro.
45860 (grub_ieee1275_flags): Make static.
45861 (grub_ieee1275_realmode): Remove.
45862 (grub_ieee1275_test_flag): New function.
45863 (grub_ieee1275_set_flag): Likewise.
45864 (find_options): Rename to `grub_ieee1275_find_options'; update
45865 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
45866 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
45867 (cmain): New prototype.
45868 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
45869 `grub_ieee1275_flags' directly.
45870 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
45871 machine/biosdisk.h.
45872 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
45873 Don't include grub/machine/init.h.
45874 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
45875 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
45876 Remove prototype.
45877 (grub_ieee1275_realmode): Likewise.
45878 (grub_ieee1275_flag): New enum.
45879 (grub_ieee1275_test_flag): New prototype.
45880 (grub_ieee1275_set_flag): New prototype.
45881 * include/grub/powerpc/ieee1275/init.h: Remove file.
45882 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
45883 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
45884 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
45885 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
45886 comment.
45887 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
45888 `grub_ieee1275_test_flag'.
45889 (grub_ieee1275_encode_devname): Likewise.
45890
45891 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
45892
45893 * include/grub/powerpc/ieee1275/ieee1275.h
45894 (grub_ieee1275_encode_devname): New prototype.
45895 (grub_ieee1275_get_filename): Likewise.
45896 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
45897 function.
45898 (grub_set_prefix): Likewise.
45899 (grub_machine_init): Call grub_set_prefix.
45900 * kern/powerpc/ieee1275/openfw.c: Fix typos.
45901 (grub_parse_type): New enum.
45902 (grub_ieee1275_get_devargs): New function.
45903 (grub_ieee1275_get_devname): Likewise.
45904 (grub_ieee1275_parse_args): Likewise.
45905 (grub_ieee1275_get_filename): Likewise.
45906 (grub_ieee1275_encode_devname): Likewise.
45907
45908 2005-03-30 Marco Gerards <metgerards@student.han.nl>
45909
45910 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
45911 `grub_loader_unset'.
45912
45913 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
45914
45915 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
45916 instead of grub_ieee1275_interpret.
45917 (grub_halt_init): New function.
45918 (grub_halt_fini): Likewise.
45919 (GRUB_MOD_INIT): Correct message grammar.
45920 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
45921 instead of grub_ieee1275_interpret.
45922 (grub_reboot_init): New function.
45923 (grub_reboot_fini): Likewise.
45924 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
45925 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
45926 util/i386/pc/misc.c with commands/ieee1275/halt.c,
45927 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
45928 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
45929 function.
45930 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
45931 Add prototype.
45932 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
45933 prototype.
45934 (grub_halt): Likewise.
45935 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
45936 (cmain): Remove __attribute__((unused)).
45937 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
45938 (grub_heap_len): Likewise.
45939 (grub_machine_fini): New function.
45940 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
45941 (grub_halt): Likewise.
45942 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
45943 function.
45944 * util/powerpc/ieee1275/misc.c: New file.
45945
45946 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45947
45948 * DISTLIST: New file.
45949 * gendistlist.sh: Likewise.
45950
45951 * Makefile.in (COMMON_DISTFILES): Removed.
45952 (BOOT_DISTFILES): Likewise.
45953 (CONF_DISTFILES): Likewise.
45954 (DISK_DISTFILES): Likewise.
45955 (FS_DISTFILES): Likewise.
45956 (INCLUDE_DISTFILES): Likewise.
45957 (KERN_DISTFILES): Likewise.
45958 (LOADER_DISTFILES): Likewise.
45959 (TERM_DISTFILES): Likewise.
45960 (UTIL_DISTFILES): Likewise.
45961 (DISTFILES): Likewise.
45962 (uninstall): Uninstall files in $(pkgdata_DATA).
45963 (DISTLIST): New target.
45964 (distdir): Use the contents of the file DISTLIST to get a list of
45965 distributed files.
45966
45967 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45968
45969 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
45970 descriptor. This is ported from GRUB Legacy.
45971
45972 * gencmdlist.sh: Added an extra semicolon to make it work with
45973 old sed versions. Reported by Robert Bihlmeyer
45974 <robbe@orcus.priv.at>.
45975
45976 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
45977
45978 Automatic loading of commands is supported.
45979
45980 * normal/main.c (read_command_list): New function.
45981 (grub_normal_execute): Call read_command_list.
45982
45983 * normal/command.c (grub_register_command): Return zero or CMD.
45984 Allocate CMD->NAME from the heap.
45985 Initialize CMD->MODULE_NAME to zero.
45986 Find the same name as well. If the same command is found and it is
45987 a dummy command, overwrite members. If it is not a dummy command,
45988 return zero.
45989 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
45990 (grub_command_find): If a dummy command is found, load a module
45991 and retry to find a command only once.
45992
45993 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
45994 make sure that each command is loaded.
45995
45996 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
45997 macro.
45998 (struct grub_command): Remove const from the member `name'.
45999 Add a new member `module_name'.
46000 (grub_register_command): Return grub_command_t.
46001
46002 * commands/help.c (grub_cmd_help): Call grub_command_find to make
46003 sure that each command is loaded.
46004
46005 * genmk.rb (PModule::rule): Specify a module name without the
46006 suffix ".mod" to gencmdlist.sh.
46007
46008 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
46009
46010 * gencmdlist.sh: New file.
46011
46012 * genmk.rb (PModule::rule): Generate a rule for a command list.
46013 Clean command.lst.
46014 Generate command.lst from $(COMMANDFILES).
46015
46016 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
46017 (DATA): Added $(pkgdata_DATA).
46018 (install-local): Install files in $(pkgdata_DATA).
46019
46020 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
46021
46022 * term/i386/pc/vga.c (debug_command): Removed.
46023 (GRUB_MOD_INIT): Do not register the command "debug".
46024
46025 From Hollis Blanchard:
46026 * commands/configfile.c: New file.
46027 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46028 commands/configfile.c.
46029 (pkgdata_MODULES): Added configfile.mod.
46030 (configfile_mod_SOURCES): New variable.
46031 (configfile_mod_CFLAGS): Likewise.
46032 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
46033 commands/configfile.c.
46034 (pkgdata_MODULES): Added configfile.mod.
46035 (configfile_mod_SOURCES): New variable.
46036 (configfile_mod_CFLAGS): Likewise.
46037 * util/grub-emu.c (main): Call grub_configfile_init and
46038 grub_configfile_fini.
46039 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
46040 prototype.
46041 [GRUB_UTIL] (grub_configfile_fini): Likewise.
46042
46043 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
46044
46045 * normal/arg.c (grub_arg_show_help): Do not show the bug report
46046 address.
46047
46048 * commands/help.c (grub_cmd_help): Do not print newlines after
46049 the last command in print_command_help.
46050
46051 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
46052
46053 * commands/default.h: New file.
46054 * commands/timeout.h: Likewise.
46055 * normal/context.c: Likewise.
46056
46057 * util/misc.c: Do not include sys/times.h.
46058 Include sys/time.h and grub/machine/time.h.
46059 (grub_get_rtc): Rewritten with gettimeofday.
46060
46061 * util/grub-emu.c (main): Call grub_default_init and
46062 grub_timeout_init before grub_normal_init, and call
46063 grub_timeout_fini and grub_default_fini after grub_main.
46064
46065 * util/console.c (grub_ncurses_checkkey): Return the read
46066 character or -1.
46067
46068 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
46069 timeouts.
46070
46071 * normal/main.c (read_config_file): Push MENU. If this fails,
46072 print an error and wait for a user input.
46073 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
46074 If a menu is empty or an error occurs, pop MENU.
46075 (grub_normal_execute): Pop and free MENU after grub_menu_run
46076 returns.
46077
46078 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
46079
46080 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
46081 include time.h.
46082 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
46083 without GRUB_UTIL.
46084 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
46085 time.h.
46086 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
46087 without GRUB_UTIL.
46088
46089 * include/grub/normal.h (struct grub_menu_list): New struct.
46090 (grub_menu_list_t): New type.
46091 (struct grub_context): New struct.
46092 (grub_context_t): New type.
46093 (grub_register_command): Got rid of EXPORT_FUNC.
46094 (grub_unregister_command): Likewise.
46095 (grub_context_get): New prototype.
46096 (grub_context_get_current_menu): Likewise.
46097 (grub_context_push_menu): Likewise.
46098 (grub_context_pop_menu): Likewise.
46099 [GRUB_UTIL] (grub_default_init): Likewise.
46100 [GRUB_UTIL] (grub_default_fini): Likewise.
46101 [GRUB_UTIL] (grub_timeout_init): Likewise.
46102 [GRUB_UTIL] (grub_timeout_fini): Likewise.
46103
46104 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
46105 commands/timeout.c and normal/context.c.
46106 (pkgdata_MODULES): Added default.mod and timeout.mod.
46107 (normal_mod_SOURCES): Added normal/context.c.
46108 (default_mod_SOURCES): New variable.
46109 (default_mod_CFLAGS): Likewise.
46110 (timeout_mod_SOURCES): Likewise.
46111 (timeout_mod_CFLAGS): Likewise.
46112 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
46113 conf/i386-pc.rmk.
46114 (pkgdata_MODULES): Added default.mod and timeout.mod.
46115 (normal_mod_SOURCES): Added normal/context.c.
46116 (default_mod_SOURCES): New variable.
46117 (default_mod_CFLAGS): Likewise.
46118 (timeout_mod_SOURCES): Likewise.
46119 (timeout_mod_CFLAGS): Likewise.
46120
46121 * Makefile.in (all-local): Added $(MKFILES).
46122
46123 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
46124
46125 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
46126 (grub_emu_SOURCES): Likewise.
46127 (pkgdata_MODULES): Add `sun.mod'.
46128 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46129 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46130 `partmap/sun.c'.
46131 (pkgdata_MODULES): Add `sun.mod'.
46132 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46133 * include/grub/partition.h (grub_sun_partition_map_init): New
46134 prototype.
46135 (grub_sun_partition_map_fini): Likewise.
46136 * partmap/sun.c: New file.
46137 * util/grub-emu.c (main): Initialize and de-initialize the sun
46138 partitionmap support.
46139
46140 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
46141
46142 This implements an Emacs-like menu entry editor.
46143
46144 * normal/menu_entry.c: New file.
46145
46146 * util/console.c (grub_ncurses_putchar): Translate some Unicode
46147 characters to ASCII.
46148 (saved_char): New variable.
46149 (grub_ncurses_checkkey): Rewritten completely.
46150 (grub_ncurses_getkey): Likewise.
46151 (grub_ncurses_init): Call raw instead of cbreak.
46152
46153 * normal/menu.c (print_entry): Do not put a space.
46154 (init_page): Renamed to ...
46155 (grub_menu_init_page): ... this. All callers changed.
46156 (edit_menu_entry): Removed.
46157 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
46158
46159 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
46160
46161 * kern/misc.c (grub_vprintf): Call grub_refresh.
46162
46163 * normal/menu.c (DISP_LEFT): Renamed to ...
46164 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
46165 * normal/menu.c (DISP_UP): Renamed to ...
46166 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
46167 * normal/menu.c (DISP_RIGHT): Renamed to ...
46168 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
46169 * normal/menu.c (DISP_DOWN): Renamed to ...
46170 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
46171 * normal/menu.c (DISP_HLINE): Renamed to ...
46172 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
46173 * normal/menu.c (DISP_VLINE): Renamed to ...
46174 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
46175 * normal/menu.c (DISP_UL): Renamed to ...
46176 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
46177 * normal/menu.c (DISP_UR): Renamed to ...
46178 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
46179 * normal/menu.c (DISP_LL): Renamed to ...
46180 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
46181 * normal/menu.c (DISP_LR): Renamed to ...
46182 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
46183 * normal/menu.c (TERM_WIDTH): Renamed to ...
46184 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
46185 * normal/menu.c (TERM_HEIGHT): Renamed to ...
46186 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
46187 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
46188 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
46189 * normal/menu.c (TERM_MARGIN): Renamed to ...
46190 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
46191 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
46192 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
46193 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
46194 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
46195 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
46196 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
46197 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
46198 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
46199 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
46200 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
46201 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
46202 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
46203 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
46204 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
46205 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
46206 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
46207 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
46208 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
46209 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
46210 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
46211 All callers changed.
46212
46213 * include/grub/normal.h: New prototype.
46214
46215 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46216 normal/menu_entry.c.
46217 (normal_mod_SOURCES): Likewise.
46218 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46219 (normal_mod_SOURCES): Likewise.
46220
46221 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
46222
46223 * include/grub/normal.h (grub_halt_init): New prototype.
46224 (grub_halt_fini): Likewise.
46225 (grub_reboot_init): Likewise.
46226 (grub_reboot_fini): Likewise.
46227
46228 * util/grub-emu.c: Include signal.h.
46229 (main_env): New global variable.
46230 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
46231 catch C-c.
46232 (grub_machine_fini): New function.
46233 (main): Call grub_halt_init and grub_reboot_init before
46234 grub_main, and grub_reboot_fini and grub_halt_fini after it.
46235 Call setjmp with MAIN_ENV to go back afterwards.
46236 Call grub_machine_fini right before return.
46237
46238 * include/grub/util/misc.h: Include setjmp.h.
46239 (main_env): New prototype.
46240
46241 * include/grub/kernel.h (grub_machine_fini): New prototype.
46242 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
46243 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
46244
46245 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
46246 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
46247 * term/i386/pc/console.c (grub_console_fini): Likewise.
46248
46249 * util/i386/pc/misc.c: New file.
46250
46251 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46252 util/i386/pc/misc.c, commands/i386/pc/halt.c and
46253 commands/i386/pc/reboot.c.
46254
46255 2005-02-14 Guillem Jover <guillem@hadrons.org>
46256
46257 * include/grub/dl.h (grub_dl_check_header): New prototype.
46258 (grub_arch_dl_check_header): Change return type to grub_err_t,
46259 remove size parameter and export function. Update all callers.
46260 * kern/dl.c (grub_dl_check_header): New function.
46261 (grub_dl_load_core): Use `grub_dl_check_header' instead of
46262 `grub_arch_dl_check_header'. Check ELF type. Check if sections
46263 are inside the core.
46264 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
46265 independent ELF header checks.
46266 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46267 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
46268 `grub_dl_check_header' instead of explicit checks. Check for the
46269 ELF type.
46270 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
46271 `grub_dl_check_header' instead of explicit checks. Remove arch
46272 specific ELF header checks.
46273
46274 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
46275 argument SIZE.
46276
46277 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
46278
46279 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
46280 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
46281
46282 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
46283
46284 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
46285 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
46286 (part_map_iterate): Clear `grub_errno' and return 0 if
46287 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
46288 * partmap/amiga.c (amiga_partition_map_iterate): Return
46289 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
46290 * partmap/apple.c (apple_partition_map_iterate): Likewise.
46291
46292 2005-02-01 Guillem Jover <guillem@hadrons.org>
46293
46294 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
46295 help info.
46296
46297 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46298
46299 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
46300 Removed prototype.
46301 (grub_rescue_cmd_linux): New prototype.
46302 (grub_rescue_cmd_initrd): Likewise.
46303 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
46304 `bi_rec'.
46305 (grub_linux_release_mem): Release the memory for the initrd.
46306 (grub_load_linux): Renamed from this...
46307 (grub_rescue_cmd_linux): ...To this. Changed all callers.
46308 Changed `entry' not to be static. Loop over memory regions to
46309 find another one when the default fails.
46310 (grub_rescue_cmd_initrd): New function.
46311 (grub_linux_init): Remove function.
46312 (grub_linux_fini): Likewise.
46313 (GRUB_MOD_INIT): Register `initrd'.
46314 (GRUB_MOD_FINI): Unregister `initrd'.
46315 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
46316 Function removed.
46317 (grub_linux_normal_fini): Likewise.
46318 (GRUB_MOD_INIT): Register `initrd'.
46319 (GRUB_MOD_FINI): Unregister `initrd'.
46320
46321 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46322
46323 * commands/help.c: New file.
46324 * normal/arg.c (show_help): Renamed to...
46325 (grub_arg_show_help): ... this.
46326 * commands/i386/pc/halt.c: New file.
46327 * commands/i386/pc/reboot.c: Likewise.
46328 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
46329 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
46330 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
46331 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
46332 variables.
46333 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46334 `commands/help.c'.
46335 (pkgdata_MODULES): Add `help.mod'.
46336 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
46337 * grub/i386/pc/init.h (grub_reboot): New prototype.
46338 (grub_halt): Likewise.
46339 * include/grub/normal.h (grub_arg_show_help): New prototype.
46340 (grub_help_init): Likewise.
46341 (grub_help_fini): Likewise.
46342 * util/grub-emu.c (main): Initialize and deinitialize the help
46343 command.
46344
46345 * normal/cmdline.c (grub_cmdline_get): Doc fix.
46346
46347 * normal/command.c (grub_command_init): Fixed the description of
46348 the `set' and `unset' commands.
46349
46350 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46351
46352 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
46353 function.
46354 * commands/ieee1275/halt.c: New file.
46355 * commands/ieee1275/reboot.c: Likewise.
46356 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
46357 `__attribute__ ((unused))'. Some GCS related fixed.
46358 (grub_suspend_init) [GRUB_UTIL]: Function removed.
46359 (grub_suspend_fini): Likewise.
46360 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
46361 and `halt.mod'.
46362 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
46363 (halt_mod_CFLAGS): New variables.
46364 * include/grub/powerpc/ieee1275/ieee1275.h
46365 (grub_ieee1275_interpret): New prototype.
46366
46367 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
46368
46369 * include/grub/misc.h (memmove): New prototype.
46370 (memcpy): Likewise.
46371
46372 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
46373
46374 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
46375 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
46376
46377 2005-01-22 Marco Gerards <metgerards@student.han.nl>
46378
46379 * kern/misc.c (grub_strndup): Function rewritten.
46380
46381 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
46382
46383 * normal/menu.c (TERM_WIDTH): Macro redefined.
46384 (TERM_TOP_BORDER_Y): Likewise.
46385 (draw_border): Replaced while-loop by a for-loop. Make the number
46386 of lines consistent with the number of lines displayed in
46387 print_entries. Added a margin below the rectangle.
46388 (print_entry): Make the entry fit in the rectangle.
46389 (print_entries): Display the scroll arrows next to the right
46390 border.
46391
46392 2005-01-21 Marco Gerards <metgerards@student.han.nl>
46393
46394 * fs/minix.c (grub_minix_find_file): Reserve more space for
46395 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
46396 `grub_strncpy' to copy `path' into it.
46397
46398 2005-01-21 Marco Gerards <metgerards@student.han.nl>
46399
46400 Add the loopback device, a device via which files can be accessed
46401 as devices.
46402
46403 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
46404 (pkgdata_MODULES): Add loopback.mod.
46405 (loopback_mod_SOURCES): New variable.
46406 (loopback_mod_CFLAGS): Likewise.
46407 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46408 `disk/loopback.c'.
46409 (pkgdata_MODULES): Add loopback.mod.
46410 (loopback_mod_SOURCES): New variable.
46411 (loopback_mod_CFLAGS): Likewise.
46412 * disk/loopback.c: new file.
46413 * include/grub/normal.h (grub_loop_init): New prototype.
46414 (grub_loop_fini): New prototype.
46415 * util/grub-emu.c (main): Initialize and de-initialize loopback
46416 support.
46417 * include/grub/disk.h (grub_disk_dev_id): Add
46418 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
46419
46420 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
46421
46422 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
46423 function.
46424 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
46425 (suspend_mod_SOURCES): New variable.
46426 (suspend_mod_CFLAGS): Likewise.
46427 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
46428 New prototype.
46429 * commands/ieee1275/suspend.c: New file.
46430
46431 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46432
46433 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
46434 ((unused))' to `__attribute__ ((used))'.
46435 (GRUB_MOD_FINI): Likewise.
46436 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
46437 * genmk.rb (PModule): Assign space to common symbols when linking
46438 modules.
46439
46440 2005-01-20 Marco Gerards <metgerards@student.han.nl>
46441
46442 * include/grub/mm.h (grub_mm_init_region): Change the type of the
46443 `unsigned' arguments to `grub_size_t'.
46444 (grub_malloc): Likewise.
46445 (grub_realloc): Likewise.
46446 (grub_memalign): Likewise.
46447 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
46448 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46449 * util/misc.c (grub_malloc): Likewise.
46450 (grub_realloc): Likewise.
46451 * kern/mm.c (get_header_from_pointer): Change the casts to
46452 `unsigned' into a cast to `grub_size_t'.
46453
46454 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
46455 point to `currnode' when `currnode' is changed.
46456
46457 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
46458 Schottelius <nico-linux@schottelius.org>.
46459
46460 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
46461
46462 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
46463 (note_path): Remove variable.
46464 (GRUB_IEEE1275_NOTE_NAME): New macro.
46465 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
46466 (grub_ieee1275_note_hdr): New structure.
46467 (grub_ieee1275_note_desc): Likewise.
46468 (grub_ieee1275_note): Likewise.
46469 (load_note): Remove `dir' argument. All callers updated. Remove
46470 `note_img' and `path'. Do not load a file from `note_path'.
46471 Initialize a struct grub_ieee1275_note and write that to `out'.
46472 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
46473
46474 2005-01-05 Marco Gerards <metgerards@student.han.nl>
46475
46476 * util/misc.c (grub_util_read_image): Revert last change. It
46477 called `grub_util_read_at', which seeks from the beginning of the
46478 file.
46479
46480 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
46481
46482 * TODO: Add note about endianness in grub-mkimage.
46483 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
46484 section.
46485 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
46486 (grub_mkimage_SOURCES): New target.
46487 * include/grub/kernel.h (grub_start_addr): Remove variable.
46488 (grub_end_addr): Likewise.
46489 (grub_total_module_size): Likewise.
46490 (grub_kernel_image_size): Likewise.
46491 (GRUB_MODULE_MAGIC): New constant.
46492 (grub_module_info): New structure.
46493 (grub_arch_modules_addr): New prototype.
46494 (grub_get_end_addr): Remove prototype.
46495 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
46496 * include/grub/powerpc/ieee1275/kernel.h: New file.
46497 * include/grub/util/misc.h (grub_util_get_fp_size): New
46498 prototype.
46499 (grub_util_read_at): Likewise.
46500 (grub_util_write_image_at): Likewise.
46501 * kern/main.c (grub_get_end_addr): Remove function.
46502 (grub_load_modules): Call grub_arch_modules_addr instead of using
46503 grub_end_addr. Look for a grub_module_info struct in memory. Use
46504 the grub_module_info fields instead of calling grub_get_end_addr
46505 as loop conditions. Move grub_add_unused_region code here.
46506 (grub_add_unused_region): Remove function.
46507 * kern/i386/pc/init.c: Include grub/cache.h.
46508 (grub_machine_init): Remove call to grub_get_end_addr. Remove
46509 one call to add_mem_region.
46510 (grub_arch_modules_addr): New function.
46511 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
46512 (grub_total_module_size): Likewise.
46513 Include grub/machine/kernel.h.
46514 (grub_arch_modules_addr): New function.
46515 * util/grub-emu.c (grub_end_addr): Remove variable.
46516 (grub_total_module_size): Likewise.
46517 (grub_arch_modules_addr): New function.
46518 * util/misc.c: Include unistd.h.
46519 (grub_util_get_fp_size): New function.
46520 (grub_util_read_at): Likewise.
46521 (grub_util_write_image_at): Likewise.
46522 (grub_util_read_image): Call grub_util_read_at.
46523 (grub_util_write_image): Call grub_util_write_image_at.
46524 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
46525 additional memory in kernel_img for a struct grub_module_info.
46526 Fill in that grub_module_info.
46527 * util/powerpc/ieee1275/grub-mkimage.c: New file.
46528
46529 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46530
46531 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
46532 New function.
46533 * include/grub/powerpc/ieee1275/ieee1275.h
46534 (grub_ieee1275_milliseconds): New prototype.
46535 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
46536 Change to 1000.
46537 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
46538 grub_ieee1275_milliseconds.
46539
46540 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46541
46542 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
46543 variable.
46544 (find_options): New function.
46545 (cmain): Call find_options.
46546 * include/grub/powerpc/ieee1275/ieee1275.h
46547 (grub_ieee1275_realmode): New extern variable.
46548 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
46549 grub_map if grub_ieee1275_realmode is false.
46550
46551 2004-12-29 Marco Gerards <metgerards@student.han.nl>
46552
46553 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
46554 lines are inserted and make it work like readline. Reported by
46555 Vincent Pelletier <subdino2004@yahoo.fr>.
46556
46557 2004-12-28 Marco Gerards <metgerards@student.han.nl>
46558
46559 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
46560
46561 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
46562 `kern/powerpc/cache.S'.
46563
46564 2004-12-27 Marco Gerards <metgerards@student.han.nl>
46565
46566 * genmk.rb: Handle the `Program' class in the main loop. Written
46567 by Johan Rydberg <jrydberg@gnu.org>.
46568 (Program): New class.
46569 (programs): New variable.
46570 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
46571 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
46572 instead of "grub/kernel.h". Include <grub/machine/init.h>.
46573 (help_arch): Function removed.
46574 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
46575 `powerpc/libgcc.h' and `loader.h'.
46576 (pkgdata_PROGRAMS): New variable.
46577 (sbin_UTILITIES): Variable removed.
46578 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
46579 (grubof_SOURCES): Variable re-defined so it only includes the
46580 core functionality.
46581 (grubof_CFLAGS): Remove `-DGRUBOF'.
46582 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
46583 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
46584 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
46585 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
46586 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
46587 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
46588 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
46589 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
46590 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
46591 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
46592 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
46593 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
46594 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
46595 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
46596 (pc_mod_CFLAGS): New variables.
46597 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
46598 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
46599 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
46600 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
46601 Moved from here...
46602 * include/grub/i386/pc/init.h (grub_os_area_addr)
46603 (rub_os_area_size): ... to here.
46604 * include/grub/powerpc/ieee1275/ieee1275.h
46605 (grub_ieee1275_entry_fn): Export symbol.
46606 * include/grub/powerpc/ieee1275/init.h: New file.
46607 * include/grub/powerpc/libgcc.h: Likewise.
46608 * include/grub/cache.h: Likewise.
46609 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
46610 <hollis@penguinppc.org>.
46611 * kern/dl.c: Include <grub/cache.h>.
46612 (grub_dl_flush_cache): New function.
46613 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
46614 for this module.
46615 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
46616 (grub_console_init): Removed prototypes.
46617 (grub_machine_init): Don't initialize the modules anymore.
46618 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
46619 static.
46620 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
46621 Macro undef removed.
46622 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
46623 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
46624 relocation `R_PPC_REL32'. Return an error when the relocation is
46625 unknown.
46626 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
46627 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
46628 * util/misc.c (grub_arch_sync_caches): Likewise.
46629
46630 2004-12-19 Marco Gerards <metgerards@student.han.nl>
46631
46632 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
46633 `symlist.c', add `grubof_symlist.c'.
46634 (symlist.c): Variable removed.
46635 (grubof_HEADERS): Variable added.
46636 (grubof_symlist.c): New target.
46637 (kernel_syms.lst): Use `grubof_HEADERS' instead of
46638 `kernel_img_HEADERS'.
46639 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
46640 * kern/powerpc/dl.c: New file.
46641 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
46642 Function removed.
46643 (grub_arch_dl_relocate_symbols): Likewise.
46644 (grub_register_exported_symbols): Likewise.
46645
46646 2004-12-13 Marco Gerards <metgerards@student.han.nl>
46647
46648 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
46649 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
46650 to fail instead. Reported by Vincent Pelletier
46651 <subdino2004@yahoo.fr>.
46652
46653 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
46654 it is not allocated. Reported by Vincent Pelletier
46655 <subdino2004@yahoo.fr>.
46656
46657 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
46658 output so the output looks better.
46659
46660 2004-12-04 Marco Gerards <metgerards@student.han.nl>
46661
46662 Modulize the partition map support and add support for the amiga
46663 partition map.
46664
46665 * commands/ls.c: Include <grub/partition.h> instead of
46666 <grub/machine/partition.h>.
46667 * kern/disk.c: Likewise.
46668 * kern/rescue.c: Likewise.
46669 * loader/i386/pc/chainloader.c: Likewise.
46670 * normal/cmdline.c: Likewise.
46671 * kern/powerpc/ieee1275/init.c: Likewise.
46672 (grub_machine_init): Call `grub_pc_partition_map_init',
46673 `grub_amiga_partition_map_init' and
46674 `grub_apple_partition_map_init'.
46675 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
46676 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
46677 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
46678 `partition.h' and `pc_partition.h'.
46679 (grub_setup_SOURCES): Remove
46680 `disk/i386/pc/partition.c'. Add `kern/partition.c',
46681 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46682 (grub_emu_SOURCES): Likewise.
46683 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
46684 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
46685 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
46686 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46687 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
46688 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46689 (grubof_SOURCES): Likewise.
46690 * disk/i386/pc/partition.c: File removed.
46691 * disk/powerpc/ieee1275/partition.c: Likewise.
46692 * include/grub/powerpc/ieee1275/partition.h: Likewise.
46693 * include/grub/i386/pc/partition.h: Likewise.
46694 * kern/partition.c: New file.
46695 * partmap/amiga.c: Likewise.
46696 * partmap/apple.c: Likewise.
46697 * partmap/pc.c: Likewise.
46698 * include/grub/partition.h: Likewise..
46699 * include/grub/pc_partition.h: Likewise.
46700 * util/grub-emu.c: Include <grub/partition.h> instead of
46701 <grub/machine/partition.h>.
46702 (main): Call `grub_pc_partition_map_init',
46703 `grub_amiga_partition_map_init' and
46704 `grub_apple_partition_map_init' and deinitialize afterwards.
46705 * util/i386/pc/biosdisk.c: Include `#include
46706 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46707 `<grub/machine/partition.h>'.
46708 * util/i386/pc/grub-setup.c: Likewise.
46709 * util/i386/pc/biosdisk.c: Likewise.
46710 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
46711 partition information in case of a PC partition.
46712 * util/i386/pc/grub-setup.c: Include `#include
46713 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46714 `<grub/machine/partition.h>'.
46715 (setup): Only access the PC specific partition information in case
46716 of a PC partition.
46717
46718 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
46719
46720 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
46721 (grub_longjmp): Likewise.
46722 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
46723 20.
46724 * normal/powerpc/setjmp.S: New file.
46725 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46726 `normal/powerpc/setjmp.S'.
46727 (grubof_CFLAGS): Add `-DGRUBOF'.
46728 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
46729 [GRUB_UTIL && !GRUBOF].
46730
46731 2004-11-16 Marco Gerards <metgerards@student.han.nl>
46732
46733 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
46734 property named `name'. Correctly handle the error returned by
46735 `grub_ieee1275_finddevice' if a device can not be opened.
46736
46737 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
46738
46739 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
46740 `actual' for negativity.
46741 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46742 kern/fshelp.c.
46743
46744 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46745
46746 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
46747 (PAGE_OFFSET): New macro.
46748 (CRTC_ADDR_PORT): Likewise.
46749 (CRTC_DATA_PORT): Likewise.
46750 (START_ADDR_HIGH_REGISTER): Likewise.
46751 (START_ADDR_LOW_REGISTER): Likewise.
46752 (GRAPHICS_ADDR_PORT): Likewise.
46753 (GRAPHICS_DATA_PORT): Likewise.
46754 (READ_MAP_REGISTER): Likewise.
46755 (INPUT_STATUS1_REGISTER): Likewise.
46756 (INPUT_STATUS1_VERTR_BIT): Likewise.
46757 (page): New variable.
46758 (wait_vretrace): New function.
46759 (set_read_map): Likewise.
46760 (set_start_address): Likewise.
46761 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
46762 the right page.
46763 (check_vga_mem): Take the page into account.
46764 (write_char): Likewise.
46765 (write_cursor): Likewise.
46766 (scroll_up): Likewise. Copy the page to the page that is not
46767 shown and switch between both pages.
46768 (grub_vga_putchar): Fix off by one error.
46769 (grub_vga_cls): Wait for the vertical retrace. Take the page into
46770 account.
46771
46772 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46773
46774 Add support for iso9660 (including rockridge).
46775
46776 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46777 (iso9660_mod_SOURCES): New variable.
46778 (iso9660_mod_CFLAGS): Likewise.
46779 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46780 * include/grub/fs.h (grub_iso9660_init): New prototype.
46781 * util/grub-emu.c (main): Call `grub_iso9660_init'.
46782 * fs/iso9660.c: New file.
46783
46784 * include/grub/misc.h (grub_strncat): New prototype.
46785 * kern/misc.c (grub_strncat): New function.
46786
46787 * fs/hfs.c (grub_hfs_mount): Translate the error
46788 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
46789 * fs/jfs.c (grub_jfs_mount): Likewise.
46790 * fs/ufs.c (grub_ufs_mount): Likewise.
46791
46792 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
46793
46794 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
46795 which initialized BAT registers.
46796 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
46797 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46798 Move from here...
46799 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
46800 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46801 ... to here.
46802 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
46803 (grub_mapclaim): Likewise.
46804 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
46805 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
46806 hand.
46807
46808 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
46809
46810 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
46811 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
46812 -ffreestanding and -msoft-float.
46813
46814 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
46815
46816 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
46817 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
46818 set in grub_ieee1275_flags.
46819
46820 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
46821
46822 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
46823 prototype.
46824 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
46825 grub_console_init first.
46826 Change the memory range used for grub_ieee1275_claim and
46827 grub_mm_init_region.
46828 Print an error message if the claim fails.
46829 Include <grub/misc.h>.
46830
46831 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
46832
46833 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
46834 Call grub_children_iterate for device nodes of type `scsi',
46835 `ide', or `ata'.
46836 (grub_ofdisk_open): Remove manual device alias resolution.
46837 Fix memory leak when device cannot be opened.
46838 * include/grub/powerpc/ieee1275/ieee1275.h
46839 (grub_children_iterate): New prototype.
46840 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
46841 New function.
46842 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46843 Return -1 if args.size was -1.
46844
46845 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46846
46847 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
46848 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
46849 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
46850 Open Firmware's memory for it; claim memory from _start to _end.
46851 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
46852 (_end): New extern.
46853 (_start): Zero BSS from __bss_start to _end.
46854 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46855 New extern.
46856 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
46857
46858 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46859
46860 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
46861 -1 if args.base was -1.
46862
46863 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
46864
46865 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
46866 escape sequence instead of a literal ^L. Also call
46867 grub_ofconsole_gotoxy.
46868
46869 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
46870
46871 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
46872 void * arguments to grub_addr_t. All callers updated. Also make
46873 the `result' argument optional.
46874 (grub_ieee1275_release): change void * arguments to grub_addr_t.
46875 All callers updated.
46876
46877 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
46878
46879 * commands/ls.c (grub_ls_list_files): Use the string following the
46880 initial ')', if present, as the filesystem path.
46881 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
46882
46883 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
46884
46885 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
46886
46887 Make the source code of the menu interface more readable.
46888
46889 * normal/menu.c: Include grub/mm.h.
46890 (TERM_WIDTH): New macro.
46891 (TERM_HEIGHT): Likewise.
46892 (TERM_INFO_HEIGHT): Likewise.
46893 (TERM_MARGIN): Likewise.
46894 (TERM_SCROLL_WIDTH): Likewise.
46895 (TERM_TOP_BORDER_Y): Likewise.
46896 (TERM_LEFT_BORDER_X): Likewise.
46897 (TERM_BORDER_WIDTH): Likewise.
46898 (TERM_MESSAGE_HEIGHT): Likewise.
46899 (TERM_BORDER_HEIGHT): Likewise.
46900 (TERM_NUM_ENTRIES): Likewise.
46901 (TERM_FIRST_ENTRY_Y): Likewise.
46902 (TERM_ENTRY_WIDTH): Likewise.
46903 (TERM_CURSOR_X): Likewise.
46904 (draw_border): Use macros instead of magic numbers.
46905 (print_entry): Likewise.
46906 (print_entries): Likewise.
46907 (run_menu): Likewise. Also, handle the key 'e'.
46908 (run_menu_entry): Ignore empty command lines.
46909 (print_message): Added a new argument EDIT. If EDIT is true,
46910 print a different message.
46911 (init_page): Likewise.
46912 (edit_menu_entry): New function. Not implemented yet.
46913
46914 2004-09-17 Marco Gerards <metgerards@student.han.nl>
46915
46916 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
46917 can be loaded from normal mode.
46918
46919 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
46920 `multiboot.mod'.
46921 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
46922 (multiboot_mod_CFLAGS): New variables.
46923 * loader/i386/pc/linux_normal.c: New file.
46924 * loader/i386/pc/multiboot_normal.c: Likewise.
46925
46926 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
46927 attribute `unused'.
46928
46929 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
46930 `fdiro' to read the mode information from instead of `diro'.
46931
46932 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
46933 looking up a symlink.
46934
46935 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
46936 macro.
46937 * normal/command.c (grub_command_execute): Don't parse the
46938 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
46939 flags of the command.
46940
46941 * normal/menu.c (grub_menu_run): Fix typo.
46942
46943 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
46944
46945 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
46946
46947 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
46948 `y + 1' instead of `y - 1'.
46949
46950 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
46951
46952 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
46953
46954 From Hollis Blanchard <hollis@penguinppc.org>:
46955 * kern/misc.c (memmove): New alias for grub_memmove.
46956 (memcmp): New alias for grub_memcmp.
46957 (memset): New alias for grub_memset.
46958 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46959 Change "int handle" to "grub_ieee1275_phandle_t handle".
46960 * include/grub/powerpc/ieee1275/ieee1275.h
46961 (grub_ieee1275_get_property): Likewise.
46962
46963 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
46964
46965 Added normal mode command `chainloader' as module chain.mod, which
46966 depends on normal.mod and _chain.mod.
46967
46968 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
46969 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
46970 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
46971 Deleted prototype.
46972 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
46973 but arguments parsing moved to ...
46974 (grub_chainloader_cmd): ... here. New function.
46975 * include/grub/i386/pc/chainloader.h: New file.
46976 * loader/i386/pc/chainloader_normal.c: Likewise.
46977
46978 2004-09-11 Marco Gerards <metgerards@student.han.nl>
46979
46980 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
46981 (grub_mkimage_LDFLAGS): Likewise.
46982 (grub_emu_SOURCES): Likewise.
46983 (kernel_img_HEADERS): Added fshelp.h.
46984 * fs/ext2.c: Include <grub/fshelp.h>.
46985 (FILETYPE_REG): New macro.
46986 (FILETYPE_INO_REG): Likewise.
46987 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
46988 Changed all users.
46989 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
46990 all users.
46991 (grub_fshelp_node): New struct.
46992 (grub_ext2_data): Added member `diropen'. Changed member `inode'
46993 to a pointer.
46994 (grub_ext2_get_file_block): Removed function.
46995 (grub_ext2_read_block): New function.
46996 (grub_ext2_read_file): Replaced parameter `data' by `node'.
46997 This function was written.
46998 (grub_ext2_mount): Read the root inode. Create a diropen struct.
46999 (grub_ext2_find_file): Removed function.
47000 (grub_ext2_read_symlink): New function.
47001 (grub_ext2_iterate_dir): Likewise.
47002 (grub_ext2_open): Rewritten.
47003 (grub_ext2_dir): Rewritten.
47004 * include/grub/fshelp.h: New file.
47005 * fs/fshelp.c: Likewise.
47006
47007 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
47008
47009 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
47010 (print_message): Add a missing newline.
47011 (run_menu): Added timeout support.
47012 (run_menu_entry): New local function.
47013 (grub_menu_run): Added support for booting.
47014
47015 * kern/loader.c (grub_loader_is_loaded): New function.
47016
47017 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
47018 (grub_get_rtc): Exported.
47019
47020 * include/grub/i386/pc/time.h: Include grub/symbol.h.
47021 (grub_get_rtc): Exported.
47022
47023 * include/grub/normal.h (struct grub_command_list): Remove
47024 constant from the member `command'.
47025
47026 * include/grub/loader.h (grub_loader_is_loaded): Declared.
47027
47028 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
47029
47030 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
47031
47032 2004-08-28 Marco Gerards <metgerards@student.han.nl>
47033
47034 Add support for the JFS filesystem.
47035
47036 * fs/jfs.c: New file.
47037 * include/grub/fs.h (grub_jfs_init): New prototype.
47038 (grub_jfs_fini): New prototype.
47039 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
47040 (grub_emu_SOURCES): Likewise.
47041 (pkgdata_MODULES): Add jfs.mod.
47042 (jfs_mod_SOURCES): New variable.
47043 (jfs_mod_CFLAGS): Likewise.
47044 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
47045 (grubof_SOURCES): Likewise.
47046 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
47047
47048 * fs/fat.c (grub_fat_find_dir): Convert the filename little
47049 endian to the host endian.
47050 (grub_fat_utf16_to_utf8): Move function from there...
47051 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
47052 the endianness of the source string anymore.
47053 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
47054
47055 2004-08-24 Marco Gerards <metgerards@student.han.nl>
47056
47057 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
47058 (grub_boot_fini) [GRUB_UTIL]: Likewise.
47059 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
47060 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
47061
47062 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
47063 (grub_hfs_iterate_dir): Make the function static. Add prototypes
47064 for `node_found' and `it_dir'.
47065 (grub_hfs_dir): Add prototype for `dir_hook'.
47066
47067 * fs/minix.c (grub_minix_get_file_block): Add prototype for
47068 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
47069 and `indir32' to silence a gcc warning.
47070
47071 * include/grub/fs.h (grub_hfs_init): New prototype.
47072 (grub_hfs_fini): Likewise.
47073
47074
47075 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
47076
47077 Each disk device has its own id now. This is useful to make use
47078 of multiple disk devices.
47079
47080 * include/grub/disk.h (grub_disk_dev_id): New enum.
47081 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
47082 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
47083
47084 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
47085 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
47086
47087 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
47088 GRUB_DISK_DEVICE_OFDISK_ID as an id.
47089
47090 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
47091 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
47092
47093 * include/grub/disk.h (struct grub_disk_dev): Added a new member
47094 "id" which is used by the cache manager.
47095
47096 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
47097 of just "GRUB".
47098
47099 2004-08-18 Marco Gerards <metgerards@student.han.nl>
47100
47101 * fs/hfs.c: New file.
47102 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
47103 (grub_emu_SOURCES): Likewise.
47104 (pkgdata_MODULES): Add hfs.mod.
47105 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
47106 (grubof_SOURCES): Likewise.
47107 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
47108
47109 * include/grub/misc.h (grub_strncasecmp): Add prototype.
47110 * kern/misc.c (grub_strncasecmp): Add function.
47111
47112 2004-08-14 Marco Gerards <metgerards@student.han.nl>
47113
47114 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
47115 with parentheses.
47116
47117 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
47118 (grub_ext2_dir): In case the directory entry type is unknown, read
47119 it from the inode.
47120
47121 2004-08-02 Peter Bruin <pjbruin@dds.nl>
47122
47123 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
47124 grub_load_linux instead of grub_rescue_cmd_linux as second
47125 argument of grub_rescue_register_command.
47126
47127 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
47128
47129 2004-07-27 Marco Gerards <metgerards@student.han.nl>
47130
47131 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
47132 function.
47133 * commands/boot.c: Remove the check for `GRUB_UTIL'.
47134 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
47135 `loader/powerpc/ieee1275/linux.c',
47136 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
47137 * include/grub/powerpc/ieee1275/ieee1275.h
47138 (grub_ieee1275_release): New prototype.
47139 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
47140 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
47141 normal, boot, linux and linux_normal.
47142 * loader/powerpc/ieee1275/linux.c: New file.
47143 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47144
47145 2004-07-12 Marco Gerards <metgerards@student.han.nl>
47146
47147 * normal/arg.c (grub_arg_parse): Correct error handling after
47148 reallocating the argumentlist (check if `argl' is not null instead
47149 of checking if `args' is not null).
47150 * kern/mm.c (grub_realloc): Return the same pointer when using the
47151 same region, instead of returning the header address.
47152
47153 2004-07-11 Marco Gerards <metgerards@student.han.nl>
47154
47155 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
47156 one block instead of two when looking for the initial partition.
47157 (grub_partition_probe): Initialize the local variable `p' with 0.
47158 Use base 10 for the grub_strtoul call.
47159 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
47160 need for one local variable.
47161 (grub_strtoul): Don't add the new value to `num', instead of that
47162 just assign it.
47163
47164 2004-07-11 Marco Gerards <metgerards@student.han.nl>
47165
47166 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
47167 (pxeboot_img_SOURCES): New variable.
47168 (pxeboot_img_ASFLAGS): Likewise.
47169 (pxeboot_img_LDFLAGS): Likewise.
47170 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
47171 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
47172 <lode_leroy@hotmail.com>.
47173
47174 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47175
47176 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
47177 there was no input.
47178
47179 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47180
47181 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
47182 the history buffer logic.
47183
47184 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47185
47186 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
47187 (FILETYPE_INO_SYMLINK): New macros.
47188 (grub_ext2_find_file): Check if the node is a directory using the
47189 inode stat information instead of using the filetype in the
47190 dirent. Exclude the first character of an absolute symlink.
47191 (grub_ext2_dir): Mask out the filetype part of the mode member of
47192 the inode.
47193
47194 2004-05-24 Marco Gerards <metgerards@student.han.nl>
47195
47196 Add support for UFS version 1 and 2. Add support for the minix
47197 filesystem version 1 and 2, both the variants with 14 and 30 long
47198 filenames.
47199
47200 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
47201 fs/minix.c.
47202 (grub_emu_SOURCES): Likewise.
47203 (pkgdata_MODULES): Add ufs.mod and minix.mod.
47204 (ufs_mod_SOURCES): New variable.
47205 (ufs_mod_CFLAGS): Likewise.
47206 (minix_mod_SOURCES): Likewise.
47207 (minix_mod_CFLAGS): Likewise.
47208 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
47209 fs/minix.c.
47210 (grubof_SOURCES): Likewise.
47211 * fs/ufs.c: New file.
47212 * fs/minix.c: New file.
47213 * include/grub/fs.h (grub_ufs_init): New prototype.
47214 (grub_ufs_fini): Likewise.
47215 (grub_minix_init): Likewise.
47216 (grub_minix_fini): Likewise.
47217 * util/grub-emu.c (main): Initialize and deinitialize UFS and
47218 minix fs.
47219
47220 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
47221
47222 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
47223 commands/ls.c, commands/terminal.c, commands/boot.c,
47224 commands/cmp.c and commands/cat.c.
47225 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
47226
47227 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
47228 "env.h"
47229
47230 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47231
47232 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
47233 and grub_, respectively. Because the conversion is trivial and
47234 mechanical, I omit the details here. Please refer to the CVS
47235 if you need more information.
47236
47237 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47238
47239 * include/pupa: Renamed to ...
47240 * include/grub: ... this.
47241 * util/i386/pc/pupa-mkimage.c: Renamed to ...
47242 * util/i386/pc/grub-mkimage.c: ... this.
47243 * util/i386/pc/pupa-setup.c: Renamed to ...
47244 * util/i386/pc/grub-setup.c: ... this.
47245 * util/pupa-emu.c: Renamed to ...
47246 * util/grub-emu.c: ... this.
47247
47248 2004-03-29 Marco Gerards <metgerards@student.han.nl>
47249
47250 Add support for the newworld apple macintosh (PPC). This has been
47251 tested on the powerbook 2000 only. It only adds support for
47252 generic ieee1275 functions, console and disk support. This should
47253 be easy to port to other architectures with support for Open
47254 Firmware.
47255
47256 * configure.ac: Accept the powerpc as host_cpu. In the case of
47257 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
47258 specific tests are only executed while building for the i386.
47259 Inverse test for crosscompile.
47260 * genmk.rb (Utility): Allow assembler files.
47261 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
47262 * conf/powerpc-ieee1275.rmk: New file.
47263 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
47264 * disk/powerpc/ieee1275/partition.c: Likewise.
47265 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
47266 * include/pupa/powerpc/ieee1275/console.h: Likewise.
47267 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
47268 * include/pupa/powerpc/ieee1275/time.h: Likewise.
47269 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
47270 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
47271 * include/pupa/powerpc/ieee1275/loader.h
47272 * include/pupa/powerpc/setjmp.h: Likewise.
47273 * include/pupa/powerpc/types.h: Likewise.
47274 * kern/powerpc/ieee1275/init.c: Likewise.
47275 * kern/powerpc/ieee1275/openfw.c: Likewise.
47276 * term/powerpc/ieee1275/ofconsole.c: Likewise.
47277
47278 These files were written by Johan Rydberg
47279 (jrydberg@night.trouble.net) and I only modified them slightly.
47280
47281 * boot/powerpc/ieee1275/cmain.c: New file.
47282 * boot/powerpc/ieee1275/crt0.S: Likewise.
47283 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
47284 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
47285
47286 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
47287
47288 * Makefile.in: Update copyright.
47289 * genmodsrc.sh: Likewise.
47290 * gensymlist.sh: Likewise.
47291 * term/i386/pc/vga.c: Indent correctly.
47292
47293 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
47294 bugreporting address.
47295 * util/i386/pc/pupa-setup.c (usage): Likewise,
47296 (main): Call pupa_ext2_init and pupa_ext2_fini.
47297
47298 * fs/fat.c (log2): Renamed to ...
47299 (fat_log2): ... this.
47300 All callers changed.
47301 * kern/misc.c (memcpy): Alias to pupa_memmove.
47302 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
47303 lvalue cast.
47304 * util/console.c (pupa_ncurses_fini): Return 0.
47305
47306 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
47307 Move fail label here.
47308 [__GNU__]: Don't warn when using stat.
47309 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
47310 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
47311 long int. Use strtol instead of strtoul.
47312
47313 2004-03-14 Marco Gerards <metgerards@student.han.nl>
47314
47315 * commands/boot.c: New file.
47316 * commands/cat.c: Likewise.
47317 * commands/cmp.c: Likewise.
47318 * commands/ls.c: Likewise.
47319 * commands/terminal.c: Likewise.
47320 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
47321 (pupa_register_command): Changed interface to match the new
47322 argument parser.
47323 (pupa_command_execute): Changed (almost rewritten) so it uses
47324 pupa_split_command. Added support for setting variables using the
47325 syntax `foo=bar'.
47326 (rescue_command): Changed to work with the new argument parser.
47327 (terminal_command): Moved from here to commands/terminal.c.
47328 (set_command): New function.
47329 (unset_command): New function.
47330 (insmod_command): New function.
47331 (rmmod_command): New function.
47332 (lsmod_command): New function.
47333 (pupa_command_init): Don't initialize the command terminal
47334 anymore. Initialize the commands set, unset, insmod, rmmod and
47335 lsmod.
47336 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
47337 (kernel_img_HEADERS): Add arg.h and env.h.
47338 (pupa_mkimage_LDFLAGS): Add kern/env.c.
47339 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
47340 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
47341 normal/arg.c.
47342 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
47343 terminal.mod.
47344 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
47345 (boot_mod_SOURCES): New variable.
47346 (terminal_mod_SOURCES): Likewise.
47347 (ls_mod_SOURCES): Likewise.
47348 (cmp_mod_SOURCES): Likewise.
47349 (cat_mod_SOURCES): Likewise.
47350
47351 * normal/arg.c: New file.
47352 * kern/env.c: Likewise.
47353 * include/pupa/arg.h: Likewise.
47354 * include/pupa/env.h: Likewise.
47355 * font/manager.c (font_command): Changed to match argument parsing
47356 interface changes.
47357 (PUPA_MOD_INIT): Likewise.
47358 * hello/hello.c (pupa_cmd_hello): Likewise.
47359 (PUPA_MOD_INIT): Likewise.
47360 * include/pupa/disk.h: Include <pupa/device.h>.
47361 (pupa_print_partinfo): New prototype.
47362 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
47363 (pupa_dl_get_prefix): Likewise.
47364 * include/pupa/misc.h: Include <pupa/err.h>.
47365 (pupa_isgraph): New prototype.
47366 (pupa_isdigit): Likewise.
47367 (pupa_split_cmdline): Likewise.
47368 * include/pupa/normal.h: Include <pupa/arg.h>.
47369 (pupa_command): Changed the prototype of the member `func' to
47370 match the argument parsing interface. Added member `options'.
47371 (pupa_register_command): Updated to match function.
47372 (pupa_arg_parse): New prototype.
47373 (pupa_hello_init) [PUPA_UTIL]: New prototype.
47374 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
47375 (pupa_ls_init) [PUPA_UTIL]: Likewise.
47376 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
47377 (pupa_cat_init) [PUPA_UTIL]: Likewise.
47378 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
47379 (pupa_boot_init) [PUPA_UTIL]: Likewise.
47380 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
47381 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
47382 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
47383 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
47384 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
47385 * kern/disk.c: Include <pupa/file.h>.
47386 (pupa_print_partinfo): New function.
47387 * kern/dl.c: Include <pupa/env.h>.
47388 (pupa_dl_dir): Variable removed.
47389 (pupa_dl_load): Use the environment variable `prefix' instead of
47390 the variable pupa_dl_dir.
47391 (pupa_dl_set_prefix): Function removed.
47392 (pupa_dl_get_prefix): Likewise.
47393 * kern/i386/pc/init.c: Include <pupa/env.h>.
47394 (pupa_machine_init): Use the environment variable `prefix' instead of
47395 using pupa_dl_set_prefix to set the prefix.
47396 * kern/main.c: Include <pupa/env.h>.
47397 (pupa_set_root_dev): Use the environment variable `prefix' instead of
47398 using pupa_dl_get_prefix to get the prefix.
47399 * kern/misc.c: Include <pupa/env.h>.
47400 (pupa_isdigit): New function.
47401 (pupa_isgraph): Likewise.
47402 (pupa_ftoa): Likewise.
47403 (pupa_vsprintf): Added support for printing values of the type
47404 `double'. Make it possible to format variable output when using
47405 formatting like `%1.2%f'.
47406 (pupa_split_cmdline): New function.
47407 * kern/rescue.c: Include <pupa/env.h>.
47408 (next_word): Removed function.
47409 (pupa_rescue_cmd_prefix): Likewise.
47410 (pupa_rescue_cmd_set): New function.
47411 (pupa_rescue_cmd_unset): New function.
47412 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
47413 split the command line instead of splitting it here. Added
47414 support for setting variables using the syntax `foo=bar'. Don't
47415 initialize the prefix command anymore. Initialized the set and
47416 unset commands.
47417 * normal/cmdline.c: Include <pupa/env.h>.
47418 (pupa_tab_complete): Added prototypes for print_simple_completion,
47419 print_partition_completion, add_completion, iterate_commands,
47420 iterate_dev, iterate_part and iterate_dir. Moved code to print
47421 partition information from here to kern/disk.c.
47422 (pupa_cmdline_run): Don't check if the function exists anymore.
47423 * normal/main.c: Include <pupa/env.h>.
47424 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
47425 instead of using pupa_dl_get_prefix to get the prefix.
47426 * term/i386/pc/vga.c: Include <pupa/arg.h>.
47427 (check_vga_mem): Cast pointers to `void *' to silence a gcc
47428 warning.
47429 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
47430 (pupa_vga_setcolor): Declare unused variables with `__attribute__
47431 ((unused))' to silence a gcc warning.
47432 (pupa_vga_setcolor): Likewise.
47433 (debug_command): Changed to match argument parsing
47434 interface changes.
47435 * util/pupa-emu.c: Include <pupa/env.h>.
47436 (options): Added 0's for unused fields to silence a gcc warning.
47437 (argp): Likewise.
47438 (main): Use the environment variable `prefix' instead of using
47439 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
47440 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
47441 and terminal.
47442
47443 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
47444 * util/misc.c: Include <malloc.h>.
47445 (pupa_malloc): Rewritten so errors are correctly reported.
47446 (pupa_realloc): Likewise.
47447 (pupa_memalign): Likewise.
47448 (pupa_mm_init_region): Declare unused variables with
47449 `__attribute__ ((unused))' to silence a gcc warning.
47450 * normal/i386/setjmp.S: Remove tab at the end of the file to
47451 silence a gcc warning.
47452 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
47453 variables with `__attribute__ ((unused))' to silence a gcc
47454 warning.
47455 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
47456 local variable i unsigned to silence a gcc warning.
47457
47458 * kern/term.c: Include <pupa/misc.h>.
47459 (pupa_more_lines): New variable.
47460 (pupa_more): Likewise.
47461 (pupa_putcode): When the pager is active pause at the end of every
47462 screen.
47463 (pupa_set_more): New function.
47464 * include/pupa/term.h (pupa_set_more): New prototype.
47465
47466
47467 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
47468
47469 Now this project is GRUB 2 rather than PUPA. The location of
47470 the CVS repository was moved to GRUB's.
47471
47472 * configure.ac: Use bug-grub as the reporting address.
47473 Use GRUB instead of PUPA.
47474 Change the version number to 1.90.
47475
47476 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
47477
47478 * genkernsyms.sh: Updated copyright information.
47479 * genmk.rb: Likewise.
47480 * genmodsrc.sh: Likewise.
47481 * gensymlist.sh: Likewise.
47482 * boot/i386/pc/boot.S: Likewise.
47483 * boot/i386/pc/diskboot.S: Likewise.
47484 * disk/i386/pc/biosdisk.c: Likewise.
47485 * disk/i386/pc/partition.c: Likewise.
47486 * font/manager.c: Likewise.
47487 * fs/ext2.c: Likewise.
47488 * fs/fat.c: Likewise.
47489 * include/pupa/boot.h: Likewise.
47490 * include/pupa/device.h: Likewise.
47491 * include/pupa/disk.h: Likewise.
47492 * include/pupa/dl.h: Likewise.
47493 * include/pupa/elf.h: Likewise.
47494 * include/pupa/err.h: Likewise.
47495 * include/pupa/file.h: Likewise.
47496 * include/pupa/font.h: Likewise.
47497 * include/pupa/fs.h: Likewise.
47498 * include/pupa/kernel.h: Likewise.
47499 * include/pupa/loader.h: Likewise.
47500 * include/pupa/misc.h: Likewise.
47501 * include/pupa/mm.h: Likewise.
47502 * include/pupa/net.h: Likewise.
47503 * include/pupa/normal.h: Likewise.
47504 * include/pupa/rescue.h: Likewise.
47505 * include/pupa/setjmp.h: Likewise.
47506 * include/pupa/symbol.h: Likewise.
47507 * include/pupa/term.h: Likewise.
47508 * include/pupa/types.h: Likewise.
47509 * include/pupa/i386/setjmp.h: Likewise.
47510 * include/pupa/i386/types.h: Likewise.
47511 * include/pupa/i386/pc/biosdisk.h: Likewise.
47512 * include/pupa/i386/pc/boot.h: Likewise.
47513 * include/pupa/i386/pc/console.h: Likewise.
47514 * include/pupa/i386/pc/init.h: Likewise.
47515 * include/pupa/i386/pc/kernel.h: Likewise.
47516 * include/pupa/i386/pc/linux.h: Likewise.
47517 * include/pupa/i386/pc/loader.h: Likewise.
47518 * include/pupa/i386/pc/memory.h: Likewise.
47519 * include/pupa/i386/pc/multiboot.h: Likewise.
47520 * include/pupa/i386/pc/partition.h: Likewise.
47521 * include/pupa/i386/pc/time.h: Likewise.
47522 * include/pupa/i386/pc/vga.h: Likewise.
47523 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
47524 * include/pupa/util/getroot.h: Likewise.
47525 * include/pupa/util/misc.h: Likewise.
47526 * include/pupa/util/resolve.h: Likewise.
47527 * kern/device.c: Likewise.
47528 * kern/disk.c: Likewise.
47529 * kern/dl.c: Likewise.
47530 * kern/err.c: Likewise.
47531 * kern/file.c: Likewise.
47532 * kern/fs.c: Likewise.
47533 * kern/loader.c: Likewise.
47534 * kern/main.c: Likewise.
47535 * kern/misc.c: Likewise.
47536 * kern/mm.c: Likewise.
47537 * kern/rescue.c: Likewise.
47538 * kern/term.c: Likewise.
47539 * kern/i386/dl.c: Likewise.
47540 * kern/i386/pc/init.c: Likewise.
47541 * kern/i386/pc/lzo1x.S: Likewise.
47542 * kern/i386/pc/startup.S: Likewise.
47543 * loader/i386/pc/chainloader.c: Likewise.
47544 * loader/i386/pc/linux.c: Likewise.
47545 * loader/i386/pc/multiboot.c: Likewise.
47546 * normal/cmdline.c: Likewise.
47547 * normal/command.c: Likewise.
47548 * normal/main.c: Likewise.
47549 * normal/menu.c: Likewise.
47550 * normal/i386/setjmp.S: Likewise.
47551 * term/i386/pc/console.c: Likewise.
47552 * term/i386/pc/vga.c: Likewise.
47553 * util/console.c: Likewise.
47554 * util/genmoddep.c: Likewise.
47555 * util/misc.c: Likewise.
47556 * util/pupa-emu.c: Likewise.
47557 * util/resolve.c: Likewise.
47558 * util/unifont2pff.rb: Likewise.
47559 * util/i386/pc/biosdisk.c: Likewise.
47560 * util/i386/pc/getroot.c: Likewise.
47561 * util/i386/pc/pupa-mkimage.c: Likewise.
47562 * util/i386/pc/pupa-setup.c: Likewise.
47563
47564 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
47565
47566 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
47567 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
47568 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
47569 reading and reset it after reading.
47570 (pupa_ext2_close): Return PUPA_ERR_NONE.
47571
47572 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
47573 Correct value.
47574 (struct linux_kernel_header): Add kernel_version and
47575 initrd_addr_max.
47576 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
47577 pupa_file_read succeeds.
47578 (pupa_rescue_cmd_initrd): Implement.
47579
47580 2003-12-03 Marco Gerards <metgerards@student.han.nl>
47581
47582 * fs/ext2.c (pupa_ext2_label): New function.
47583 (pupa_ext2_fs): Added label.
47584 * fs/fat.c (pupa_fat_label): New function.
47585 (pupa_fat_fs): Added label.
47586 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
47587
47588 * kern/misc.c (pupa_strndup): New function.
47589 * include/pupa/misc.h (pupa_strndup): New prototype.
47590
47591 * include/pupa/normal.h: Include <pupa/err.h>.
47592 (pupa_set_history): New prototype.
47593 (pupa_iterate_commands): New prototype.
47594 * normal/cmdline.c: Include <pupa/machine/partition.h>,
47595 <pupa/disk.h>, <pupa/file.h>.
47596 (hist_size): New variable.
47597 (hist_lines): Likewise.
47598 (hist_end): Likewise.
47599 (hist_used): Likewise.
47600 (pupa_set_history): New function.
47601 (pupa_history_get): Likewise.
47602 (pupa_history_add): Likewise.
47603 (pupa_history_replace): Likewise.
47604 (pupa_tab_complete): Likewise.
47605 (pupa_cmdline_run): Added tab completion and history buffer. Tab
47606 completion shows partitionnames while completing partitions, this
47607 feature was suggested by Jeff Bailey.
47608 * normal/command.c (pupa_iterate_commands): New function.
47609 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
47610 (pupa_normal_init): Initialize history buffer.
47611 (PUPA_MOD_INIT): Likewise.
47612 (pupa_normal_fini): Free the history buffer.
47613 (PUPA_MOD_FINI): Likewise.
47614
47615 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
47616 key.
47617
47618 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
47619 * configure.ac [i386]: Check for regparam bug.
47620 (NESTED_FUNC_ATTR) [! i386]: Defined.
47621
47622 2003-11-17 Marco Gerards <metgerards@student.han.nl>
47623
47624 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
47625 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
47626 (pupa_emu_SOURCES): New variable.
47627 (pupa_emu_LDFLAGS): Likewise.
47628 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
47629 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
47630 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
47631 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47632 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
47633 (pupa_jmp_buf): New typedef.
47634 (pupa_setjmp) [PUPA_UTIL]: New macro.
47635 (pupa_longjmp) [PUPA_UTIL]: Likewise.
47636 * include/pupa/term.h (struct pupa_term): New member `refresh'.
47637 (pupa_refresh): New prototype.
47638 * include/pupa/util/getroot.h: New file.
47639 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
47640 it.
47641 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
47642 (pupa_rescue_cmd_cat): Likewise.
47643 (pupa_rescue_cmd_ls): Likewise.
47644 (pupa_rescue_cmd_testload): Likewise.
47645 (pupa_rescue_cmd_lsmod): Likewise.
47646 * normal/cmdline.c (pupa_cmdline_get): Likewise.
47647 * normal/menu.c (run_menu): Likewise.
47648 * kern/term.c (pupa_cls): Likewise.
47649 (pupa_refresh): New function.
47650 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
47651 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47652 * util/console.c: New file.
47653
47654 * util/i386/pc/getroot.c: New file.
47655 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
47656 (pupa_putchar): New function.
47657 (pupa_refresh): Likewise.
47658 (xgetcwd): Function moved to ...
47659 (strip_extra_slashes): Likewise.
47660 (get_prefix): Likewise.
47661 * util/i386/pc/getroot.c: ... here.
47662 (find_root_device): Function moved and renamed to...
47663 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
47664 Changed all callers.
47665 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
47666 and renamed to...
47667 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
47668 Changed all callers.
47669 * util/misc.c (pupa_memalign): New function.
47670 (pupa_mm_init_region): Likewise.
47671 (pupa_register_exported_symbols): Likewise.
47672 (pupa_putchar): Function removed.
47673 * util/pupa-emu.c: New file.
47674
47675 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
47676
47677 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
47678 (_multiboot_mod_SOURCES): New variable.
47679 (_multiboot_mod_CFLAGS): Likewise.
47680 * loader/i386/pc/multiboot.c: New file.
47681 * include/pupa/i386/pc/multiboot.h: Likewise.
47682 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
47683 (pupa_multiboot_real_boot): New function.
47684 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
47685 (pupa_multiboot_real_boot): New prototype.
47686 (pupa_rescue_cmd_multiboot): Likewise
47687 (pupa_rescue_cmd_module): Likewise.
47688
47689 * kern/loader.c (pupa_loader_set): Continue when
47690 pupa_loader_unload_func() fails.
47691 (pupa_loader_unset): New function.
47692 * include/pupa/loader.h (pupa_loader_unset): New prototype.
47693
47694 * kern/misc.c (pupa_stpcpy): New function.
47695 * include/pupa/misc.h (pupa_stpcpy): New prototype.
47696
47697 2003-11-12 Marco Gerards <metgerards@student.han.nl>
47698
47699 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
47700 for available extensions.
47701
47702 * include/pupa/i386/pc/time.h: New file.
47703 * kern/disk.c: Include <pupa/machine/time.h>.
47704 (PUPA_CACHE_TIMEOUT): New macro.
47705 (pupa_last_time): New variable.
47706 (pupa_disk_open): Flush the cache when there was a timeout.
47707 (pupa_disk_close): Reset the timer.
47708 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
47709 pupa_currticks.
47710 * util/misc.c: Include <sys/times.h>
47711 (pupa_get_rtc): New function.
47712
47713 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47714
47715 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
47716 as blocks.
47717 (pupa_ext2_get_file_block): Use blocks member.
47718
47719 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
47720 first block. Return -1 instead of pupa_errno on error.
47721
47722 2003-10-27 Marco Gerards <metgerards@student.han.nl>
47723
47724 * README: In the pupa-mkimage example use _chain instead of chain
47725 and ext2 instead of fat.
47726 * TODO: Replace ext2fs with jfs as an example. Add an item for
47727 adding journal playback for ext2fs.
47728 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
47729 (pkgdata_MODULES): Added ext2.mod.
47730 (ext2_mod_SOURCES): New variable.
47731 (ext2_mod_CFLAGS): Likewise.
47732 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
47733 * include/pupa/misc.h (pupa_strncpy): New prototype.
47734 (pupa_strcat): Likewise.
47735 (pupa_strncmp): Likewise.
47736 * kern/misc.c (pupa_strcat): Enable function.
47737 (pupa_strncpy): New function.
47738 (pupa_strncmp): Likewise.
47739 * fs/ext2.c: New file.
47740
47741 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
47742 when the read failed before retrying.
47743 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
47744 (_FILE_OFFSET_BITS): Likewise.
47745 * configure.ac: Added AC_SYS_LARGEFILE.
47746
47747 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47748
47749 * genmk.rb (PModule#rule): Make sure to get only symbol names
47750 from the output of nm.
47751 Reported by Robert Millan <rmh.grub@aybabtu.com>.
47752
47753 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47754
47755 I forgot to check in these changes for a long time. This adds
47756 incomplete support for VGA console, and this is still very
47757 buggy. Also, a lot of consideration is required for I18N,
47758 UNICODE, and VGA font issues. Therefore, assume that this is
47759 such that "better than nothing".
47760
47761 * font/manager.c: New file.
47762 * include/pupa/font.h: Likewise.
47763 * include/pupa/i386/pc/vga.h: Likewise.
47764 * term/i386/pc/vga.c: Likewise.
47765 * util/unifont2pff.rb: Likewise.
47766
47767 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
47768 (pkgdata_MODULES): Added vga.mod and font.mod.
47769 (vga_mod_SOURCES): New variables.
47770 (vga_mod_CFLAGS): Likewise.
47771 (font_mod_SOURCES): Likewise.
47772 (font_mod_CFLAGS): Likewise.
47773
47774 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
47775
47776 * include/pupa/term.h: Include pupa/err.h.
47777 (struct pupa_term): Added init and fini.
47778 Changed the argument of putchar to pupa_uint32_t.
47779
47780 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
47781 (pupa_console_real_putchar): New prototype.
47782 (pupa_console_putchar): Removed.
47783 (pupa_console_checkkey): Exported.
47784 (pupa_console_getkey): Likewise.
47785
47786 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
47787 characters.
47788
47789 * kern/term.c (pupa_term_set_current): Rewritten.
47790 (pupa_putchar): Likewise.
47791 (pupa_putcode): New function.
47792
47793 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
47794 (pupa_console_real_putchar): ... this.
47795 (pupa_vga_set_mode): New function.
47796 (pupa_vga_get_font): Likewise.
47797
47798 * normal/command.c: Include pupa/term.h.
47799 (terminal_command): New function.
47800 (pupa_command_init): Register the command "terminal".
47801
47802 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
47803 (DISP_UP): Likewise.
47804 (DISP_RIGHT): Likewise.
47805 (DISP_DOWN): Likewise.
47806 (DISP_HLINE): Likewise.
47807 (DISP_VLINE): Likewise.
47808 (DISP_UL): Likewise.
47809 (DISP_UR): Likewise.
47810 (DISP_LL): Likewise.
47811 (DISP_LR): Likewise.
47812
47813 * term/i386/pc/console.c (pupa_console_putchar): New function.
47814
47815 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
47816
47817 * util/resolve.c (pupa_util_resolve_dependencies): BUG
47818 FIX. Reverse the path_list.
47819
47820 * include/pupa/normal.h: Export pupa_register_command and
47821 pupa_unregister_command.
47822
47823 * hello/hello.c (pupa_cmd_hello): New module.
47824 * conf/i386-pc.rmk: Added hello.mod.
47825
47826 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
47827
47828 * kern/i386/pc/lzo1x.S: New file.
47829
47830 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
47831 (compress_kernel): New variable.
47832 (generate_image): Heavily modified to support compressing a
47833 large part of the core image.
47834
47835 * util/misc.c (pupa_util_read_image): Fix a file descriptor
47836 leak.
47837 (pupa_util_load_image): New function.
47838
47839 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
47840 (pupa_compressed_size): New variable.
47841 (codestart): Enable Gate A20 here.
47842 Decompress the compressed part of the core image.
47843 Rearrange the code to put functions and variables which are
47844 required for initialization in the non-compressed part.
47845 Include lzo1x.S.
47846
47847 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
47848 here.
47849
47850 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
47851
47852 * include/pupa/i386/pc/kernel.h
47853 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
47854 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
47855 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47856 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47857 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
47858
47859 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
47860
47861 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
47862 (Utility#rule): Likewise.
47863
47864 * configure.ac: Check if LZO is available.
47865
47866 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
47867
47868 * include/pupa/normal.h: New file.
47869 * include/pupa/setjmp.h: Likewise.
47870 * include/pupa/i386/setjmp.h: Likewise.
47871 * normal/cmdline.c: Likewise.
47872 * normal/command.c: Likewise.
47873 * normal/main.c: Likewise.
47874 * normal/menu.c: Likewise.
47875 * normal/i386/setjmp.S: Likewise.
47876
47877 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
47878 (pupa_rescue_cmd_initrd): Likewise.
47879
47880 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
47881 Likewise.
47882
47883 * kern/i386/pc/startup.S (translation_table): New variable.
47884 (translate_keycode): New function.
47885 (pupa_console_getkey): Call translate_keycode.
47886
47887 * kern/rescue.c (attempt_normal_mode): New function.
47888 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
47889 it failed, print a message.
47890
47891 * kern/mm.c (pupa_real_malloc): Print more information when a
47892 free magic is broken.
47893 (pupa_free): If the first free header is not free actually, set
47894 it to P.
47895
47896 * kern/main.c (pupa_load_normal_mode): Just load the module
47897 "normal".
47898 (pupa_main): Don't print the message
47899 "Entering into rescue mode..." here.
47900
47901 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
47902 Declared.
47903 (pupa_rescue_cmd_initrd): Likewise.
47904 (pupa_rescue_cmd_initrd): Likewise.
47905
47906 * include/pupa/symbol.h (FUNCTION): Specify the type.
47907 (VARIABLE): Likewise.
47908
47909 * include/pupa/err.h (pupa_err_t): Added
47910 PUPA_ERR_UNKNOWN_COMMAND.
47911
47912 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
47913 (pupa_dl_get_prefix): Likewise.
47914
47915 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
47916 Added _chain.mod and _linux.mod instead of chain.mod and
47917 linux.mod.
47918 (chain_mod_SOURCES): Renamed to ...
47919 (_chain_mod_SOURCES): ... this.
47920 (chain_mod_CFLAGS): Renamed to ...
47921 (_chain_mod_CFLAGS): ... this.
47922 (linux_mod_SOURCES): Renamed to ...
47923 (_linux_mod_SOURCES): ... this.
47924 (linux_mod_CFLAGS): Renamed to ...
47925 (_linux_mod_CFLAGS): ... this.
47926 (normal_mod_SOURCES): New variable.
47927 (normal_mod_CFLAGS): Likewise.
47928 (normal_mod_ASFLAGS): Likewise.
47929
47930 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
47931
47932 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
47933 possible.
47934
47935 * kern/dl.c (pupa_dl_ref): Refer depending modules
47936 recursively.
47937 (pupa_dl_unref): Unrefer depending modules recursively.
47938 Don't call pupa_dl_unload implicitly, because PUPA can crash if
47939 a module is unloaded before one depending on that module is
47940 unloaded.
47941 (pupa_dl_unload): Unload depending modules explicitly,
47942 if possible.
47943
47944 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
47945
47946 * include/pupa/i386/pc/linux.h: New file.
47947 * loader/i386/pc/linux.c: Likewise.
47948
47949 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
47950 Removed.
47951 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
47952 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
47953 of PUPA_CHAINLOADER_BOOT_SECTOR.
47954
47955 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
47956 (pupa_linux_prot_size): New variable.
47957 (pupa_linux_tmp_addr): Likewise.
47958 (pupa_linux_real_addr): Likewise.
47959 (pupa_linux_boot_zimage): New function.
47960 (pupa_linux_boot_bzimage): Likewise.
47961
47962 * kern/i386/pc/init.c (struct mem_region): New structure.
47963 (MAX_REGIONS): New macro.
47964 (mem_regions): New variable.
47965 (num_regions): Likewise.
47966 (pupa_os_area_addr): Likewise.
47967 (pupa_os_area_size): Likewise.
47968 (pupa_lower_mem): Likewise.
47969 (pupa_upper_mem): Likewise.
47970 (add_mem_region): New function.
47971 (compact_mem_regions): Likewise.
47972 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
47973 the size of the conventional memory and that of so-called upper
47974 memory (before the first memory hole).
47975 Instead of adding each found region to free memory, use
47976 add_mem_region and add them after removing overlaps.
47977 Also, add only 1/4 of the upper memory to free memory. The rest
47978 is used for loading OS images. Maybe this is ad hoc, but this
47979 makes it much easier to relocate OS images when booting.
47980
47981 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
47982 (pupa_enter_rescue_mode): Don't register initrd and module.
47983
47984 * kern/mm.c: Include pupa/dl.h.
47985
47986 * kern/main.c: Include pupa/file.h and pupa/device.h.
47987
47988 * kern/loader.c (pupa_loader_load_module_func): Removed.
47989 (pupa_loader_load_module): Likewise.
47990
47991 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
47992 ``.o''.
47993
47994 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
47995 (pupa_linux_tmp_addr): Likewise.
47996 (pupa_linux_real_addr): Likewise.
47997 (pupa_linux_boot_zimage): Likewise.
47998 (pupa_linux_boot_bzimage): Likewise.
47999
48000 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
48001 (pupa_upper_mem): Likewise.
48002 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
48003 module is too dangerous.
48004
48005 * include/pupa/loader.h (pupa_os_area_addr): Declared.
48006 (pupa_os_area_size): Likewise.
48007 (pupa_loader_set): Remove the first argument. Loader doesn't
48008 manage modules or initrd any longer.
48009 (pupa_loader_load_module): Removed.
48010
48011 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
48012 (linux_mod_SOURCES): New variable.
48013 (linux_mod_CFLAGS): Likewise.
48014
48015 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
48016
48017 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
48018 the length of a blocklist correctly.
48019
48020 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
48021 Use ioctl only if the OS file is a block device.
48022 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
48023 not very useful for normal files.
48024
48025 * kern/main.c (pupa_set_root_dev): New function.
48026 (pupa_load_normal_mode): Likewise.
48027 (pupa_main): Call those above.
48028
48029 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
48030 pupa_uint16_t.
48031
48032 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
48033
48034 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
48035
48036 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
48037 (setup): Configure the installed partition information and the
48038 dl prefix.
48039
48040 * loader/i386/pc/chainloader.c (my_mod): New variable.
48041 (pupa_chainloader_unload): New function.
48042 (pupa_rescue_cmd_chainloader): Refer itself.
48043 (PUPA_MOD_INIT): Save its own module in MY_MOD.
48044
48045 * kern/i386/pc/startup.S (install_partition): Removed.
48046 (version_string): Likewise.
48047 (config_file): Likewise.
48048 (pupa_install_dos_part): New variable.
48049 (pupa_install_bsd_part): Likewise.
48050 (pupa_prefix): Likewise.
48051 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
48052
48053 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
48054 and pupa/misc.h.
48055 (make_install_device): New function.
48056 (pupa_machine_init): Set the dl prefix.
48057
48058 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
48059 (buf): Renamed to ...
48060 (linebuf): ... this.
48061 (pupa_rescue_cmd_prefix): New function.
48062 (pupa_rescue_cmd_insmod): Likewise.
48063 (pupa_rescue_cmd_rmmod): Likewise.
48064 (pupa_rescue_cmd_lsmod): Likewise.
48065 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
48066 rmmod and lsmod.
48067
48068 * kern/mm.c (pupa_memalign): If failed even after invalidating
48069 disk caches, unload unneeded modules and retry.
48070
48071 * kern/misc.c (pupa_memmove): New function.
48072 (pupa_memcpy): Removed.
48073 (pupa_strcpy): New function.
48074 (pupa_itoa): Made static.
48075
48076 * kern/dl.c (pupa_dl_iterate): New function.
48077 (pupa_dl_ref): Likewise.
48078 (pupa_dl_unref): Likewise.
48079 (pupa_dl_unload): Return if succeeded or not.
48080 (pupa_dl_unload_unneeded): New function.
48081 (pupa_dl_unload_all): Likewise.
48082 (pupa_dl_init): Renamed to ...
48083 (pupa_dl_set_prefix): ... this.
48084 (pupa_dl_get_prefix): New function.
48085
48086 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
48087 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
48088 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
48089 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
48090 (pupa_install_dos_part): Declared.
48091 (pupa_install_bsd_part): Likewise.
48092 (pupa_prefix): Likewise.
48093 (pupa_boot_drive): Likewise.
48094
48095 * include/pupa/types.h: Fix a typo.
48096
48097 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
48098 pupa_memmove.
48099 (pupa_memmove): Declared.
48100 (pupa_strcpy): Likewise.
48101
48102 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
48103 pupa_mod_init takes one argument, its own module.
48104 (pupa_dl_unload_unneeded): Declared.
48105 (pupa_dl_unload_all): Likewise.
48106 (pupa_dl_ref): Likewise.
48107 (pupa_dl_unref): Likewise.
48108 (pupa_dl_iterate): Likewise.
48109 (pupa_dl_init): Renamed to ...
48110 (pupa_dl_set_prefix): ... this.
48111 (pupa_dl_get_prefix): Declared.
48112
48113 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
48114 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
48115 unloaded.
48116 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
48117 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
48118
48119 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
48120 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
48121
48122 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48123
48124 * util/i386/pc/pupa-setup.c (setup): Define the internal
48125 function find_first_partition_start at the top level, because GCC
48126 3.0.x cannot compile internal functions in deeper scopes
48127 correctly.
48128 (find_root_device): Use lstat instead of stat.
48129 Don't follow symbolic links.
48130 Fix the path-constructing code.
48131
48132 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
48133 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
48134 by a BLKGETSIZE ioctl first, because block devices don't fill
48135 the member st_mode of the structure stat on Linux.
48136 [__linux__] (linux_find_partition): Use a temporary buffer
48137 REAL_DEV for the working space. Copy it to DEV before returning.
48138 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
48139 buffer cache consistent.
48140 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
48141 strncmp. The previous value was merely wrong.
48142 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
48143
48144 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
48145 FAT size is 12. The previous value was merely wrong.
48146
48147 * kern/main.c (pupa_main): Don't split the starting message from
48148 newlines.
48149
48150 * kern/term.c (pupa_putchar): Put CR after LF instead of before
48151 LF, because BIOS goes crazy about character attributes in this
48152 case.
48153
48154 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48155
48156 * include/i386/pc/util/biosdisk.h: New file.
48157 * util/i386/pc/biosdisk.c: Likewise.
48158 * util/i386/pc/pupa-setup.c: Likewise.
48159
48160 * Makefile.in (INCLUDE_DISTFILES): Added
48161 include/pupa/i386/pc/util/biosdisk.h.
48162 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
48163 directory util/i386/pc.
48164 (install-local): Added a rule for sbin_UTILITIES.
48165 (uninstall): Likewise.
48166
48167 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
48168
48169 * util/misc.c (xrealloc): New function.
48170 (pupa_malloc): Likewise.
48171 (pupa_free): Likewise.
48172 (pupa_realloc): Likewise.
48173 (pupa_stop): Likewise.
48174 (pupa_putchar): Likewise.
48175
48176 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
48177
48178 * include/pupa/util/misc.h (xrealloc): Declared.
48179
48180 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
48181 macro.
48182 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
48183 (PUPA_BOOT_MACHINE_BPB_END): ... this.
48184
48185 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
48186 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48187
48188 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
48189 way should be implemented.
48190 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48191
48192 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
48193 the size of NAME for safety.
48194 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
48195 0x88.
48196
48197 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
48198 (pupa_setup_SOURCES): Likewise.
48199
48200 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
48201
48202 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48203
48204 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
48205 bunch of pushl's from pusha, because this destroys the return
48206 value.
48207
48208 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48209
48210 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
48211 This means that any missing prototypes could be fatal. Also, you
48212 must take care when writing assembly code. See the comments at
48213 the beginning of startup.S, for more details.
48214
48215 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
48216 compilation mechanism.
48217 (pupa_chainloader_real_boot): Likewise.
48218 (pupa_biosdisk_rw_int13_extensions): Likewise.
48219 (pupa_biosdisk_rw_standard): Likewise.
48220 (pupa_biosdisk_check_int13_extensions): Likewise.
48221 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
48222 (pupa_biosdisk_get_diskinfo_standard): Likewise.
48223 (pupa_get_memsize): Likewise.
48224 (pupa_get_mmap_entry): Likewise.
48225 (pupa_console_putchar): Likewise.
48226 (pupa_console_setcursor): Likewise.
48227 (pupa_getrtsecs): Use pushl instead of push.
48228
48229 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
48230 memory instead of the stack for a mmap entry, because some
48231 BIOSes may ignore the maximum size and overflow.
48232
48233 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
48234
48235 * genmk.rb (PModule#rule): Compile automatically generated
48236 sources with module-specific CFLAGS as well as other sources.
48237
48238 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48239
48240 * configure.ac: Check ld.
48241 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
48242 respectively, before checking endianness and sizes.
48243
48244 * Makefile.in (LD): New variable.
48245
48246 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48247
48248 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
48249
48250 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48251
48252 * Changelog: New file.
48253